!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=485)}([function(t,e,n){"use strict";(function(t,i){var r;
/**
* @license
* Lodash
* Copyright OpenJS Foundation and other contributors
* Released under MIT license
* Based on Underscore.js 1.8.3
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",l="[object Array]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",y="[object RegExp]",_="[object Set]",b="[object String]",w="[object Symbol]",T="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",O="[object Float32Array]",A="[object Float64Array]",P="[object Int8Array]",C="[object Int16Array]",x="[object Int32Array]",I="[object Uint8Array]",k="[object Uint16Array]",M="[object Uint32Array]",R=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,D=RegExp(R.source),L=RegExp(N.source),j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,F=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B=/[\\^$.*+?()[\]{}|]/g,U=RegExp(B.source),H=/^\s+/,G=/\s/,W=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,z=/\{\n\/\* \[wrapped with (.+)\] \*/,$=/,? & /,q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Y=/\\(\\)?/g,K=/\w*$/,X=/^[-+]0x[0-9a-f]+$/i,J=/^0b[01]+$/i,Z=/^\[object .+?Constructor\]$/,Q=/^0o[0-7]+$/i,tt=/^(?:0|[1-9]\d*)$/,et=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",it="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rt="[\\ud800-\\udfff]",ot="["+it+"]",at="["+nt+"]",st="\\d+",ut="[\\u2700-\\u27bf]",lt="[a-z\\xdf-\\xf6\\xf8-\\xff]",ct="[^\\ud800-\\udfff"+it+st+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",dt="\\ud83c[\\udffb-\\udfff]",ft="[^\\ud800-\\udfff]",ht="(?:\\ud83c[\\udde6-\\uddff]){2}",pt="[\\ud800-\\udbff][\\udc00-\\udfff]",gt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",mt="(?:"+lt+"|"+ct+")",vt="(?:"+gt+"|"+ct+")",yt="(?:"+at+"|"+dt+")"+"?",_t="[\\ufe0e\\ufe0f]?"+yt+("(?:\\u200d(?:"+[ft,ht,pt].join("|")+")[\\ufe0e\\ufe0f]?"+yt+")*"),bt="(?:"+[ut,ht,pt].join("|")+")"+_t,wt="(?:"+[ft+at+"?",at,ht,pt,rt].join("|")+")",Tt=RegExp("['’]","g"),St=RegExp(at,"g"),Et=RegExp(dt+"(?="+dt+")|"+wt+_t,"g"),Ot=RegExp([gt+"?"+lt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ot,gt,"$"].join("|")+")",vt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ot,gt+mt,"$"].join("|")+")",gt+"?"+mt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",gt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",st,bt].join("|"),"g"),At=RegExp("[\\u200d\\ud800-\\udfff"+nt+"\\ufe0e\\ufe0f]"),Pt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ct=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xt={};xt[O]=xt[A]=xt[P]=xt[C]=xt[x]=xt[I]=xt["[object Uint8ClampedArray]"]=xt[k]=xt[M]=!0,xt[u]=xt[l]=xt[S]=xt[c]=xt[E]=xt[d]=xt[f]=xt[h]=xt[g]=xt[m]=xt[v]=xt[y]=xt[_]=xt[b]=xt[T]=!1;var It={};It[u]=It[l]=It[S]=It[E]=It[c]=It[d]=It[O]=It[A]=It[P]=It[C]=It[x]=It[g]=It[m]=It[v]=It[y]=It[_]=It[b]=It[w]=It[I]=It["[object Uint8ClampedArray]"]=It[k]=It[M]=!0,It[f]=It[h]=It[T]=!1;var kt=parseFloat,Mt=parseInt,Rt="object"==typeof t&&t&&t.Object===Object&&t,Nt="object"==typeof self&&self&&self.Object===Object&&self,Dt=Rt||Nt||Function("return this")(),Lt=e&&!e.nodeType&&e,jt=Lt&&"object"==typeof i&&i&&!i.nodeType&&i,Ft=jt&&jt.exports===Lt,Vt=Ft&&Rt.process,Bt=function(){try{var t=jt&&jt.require&&jt.require("util").types;return t||Vt&&Vt.binding&&Vt.binding("util")}catch(t){}}(),Ut=Bt&&Bt.isArrayBuffer,Ht=Bt&&Bt.isDate,Gt=Bt&&Bt.isMap,Wt=Bt&&Bt.isRegExp,zt=Bt&&Bt.isSet,$t=Bt&&Bt.isTypedArray;function qt(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Yt(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r-1}function te(t,e,n){for(var i=-1,r=null==t?0:t.length;++i-1;);return n}function Se(t,e){for(var n=t.length;n--&&le(e,t[n],0)>-1;);return n}function Ee(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}var Oe=pe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ae=pe({"&":"&","<":"<",">":">",'"':""","'":"'"});function Pe(t){return At.test(t)}function Ce(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function xe(t,e){return function(n){return t(e(n))}}function Ie(t,e){for(var n=-1,i=t.length,r=0,o=[];++n",""":'"',"'":"'"});var je=function t(e){var n,i=(e=null==e?Dt:je.defaults(Dt.Object(),e,je.pick(Dt,Ct))).Array,r=e.Date,G=e.Error,nt=e.Function,it=e.Math,rt=e.Object,ot=e.RegExp,at=e.String,st=e.TypeError,ut=i.prototype,lt=nt.prototype,ct=rt.prototype,dt=e["__core-js_shared__"],ft=lt.toString,ht=ct.hasOwnProperty,pt=0,gt=(n=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",mt=ct.toString,vt=ft.call(rt),yt=Dt._,_t=ot("^"+ft.call(ht).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=Ft?e.Buffer:void 0,wt=e.Symbol,Et=e.Uint8Array,At=bt?bt.allocUnsafe:void 0,Rt=xe(rt.getPrototypeOf,rt),Nt=rt.create,Lt=ct.propertyIsEnumerable,jt=ut.splice,Vt=wt?wt.isConcatSpreadable:void 0,Bt=wt?wt.iterator:void 0,ae=wt?wt.toStringTag:void 0,pe=function(){try{var t=Ur(rt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Fe=e.clearTimeout!==Dt.clearTimeout&&e.clearTimeout,Ve=r&&r.now!==Dt.Date.now&&r.now,Be=e.setTimeout!==Dt.setTimeout&&e.setTimeout,Ue=it.ceil,He=it.floor,Ge=rt.getOwnPropertySymbols,We=bt?bt.isBuffer:void 0,ze=e.isFinite,$e=ut.join,qe=xe(rt.keys,rt),Ye=it.max,Ke=it.min,Xe=r.now,Je=e.parseInt,Ze=it.random,Qe=ut.reverse,tn=Ur(e,"DataView"),en=Ur(e,"Map"),nn=Ur(e,"Promise"),rn=Ur(e,"Set"),on=Ur(e,"WeakMap"),an=Ur(rt,"create"),sn=on&&new on,un={},ln=go(tn),cn=go(en),dn=go(nn),fn=go(rn),hn=go(on),pn=wt?wt.prototype:void 0,gn=pn?pn.valueOf:void 0,mn=pn?pn.toString:void 0;function vn(t){if(Ma(t)&&!wa(t)&&!(t instanceof wn)){if(t instanceof bn)return t;if(ht.call(t,"__wrapped__"))return mo(t)}return new bn(t)}var yn=function(){function t(){}return function(e){if(!ka(e))return{};if(Nt)return Nt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function _n(){}function bn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function wn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Tn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Vn(t,e,n,i,r,o){var a,s=1&e,l=2&e,f=4&e;if(n&&(a=r?n(t,i,r,o):n(t)),void 0!==a)return a;if(!ka(t))return t;var T=wa(t);if(T){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&ht.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!s)return ar(t,a)}else{var R=Wr(t),N=R==h||R==p;if(Oa(t))return tr(t,s);if(R==v||R==u||N&&!r){if(a=l||N?{}:$r(t),!s)return l?function(t,e){return sr(t,Gr(t),e)}(t,function(t,e){return t&&sr(e,ls(e),t)}(a,t)):function(t,e){return sr(t,Hr(t),e)}(t,Dn(a,t))}else{if(!It[R])return r?t:{};a=function(t,e,n){var i=t.constructor;switch(e){case S:return er(t);case c:case d:return new i(+t);case E:return function(t,e){var n=e?er(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case O:case A:case P:case C:case x:case I:case"[object Uint8ClampedArray]":case k:case M:return nr(t,n);case g:return new i;case m:case b:return new i(t);case y:return function(t){var e=new t.constructor(t.source,K.exec(t));return e.lastIndex=t.lastIndex,e}(t);case _:return new i;case w:return r=t,gn?rt(gn.call(r)):{}}var r}(t,R,s)}}o||(o=new An);var D=o.get(t);if(D)return D;o.set(t,a),ja(t)?t.forEach((function(i){a.add(Vn(i,e,n,i,t,o))})):Ra(t)&&t.forEach((function(i,r){a.set(r,Vn(i,e,n,r,t,o))}));var L=T?void 0:(f?l?Nr:Rr:l?ls:us)(t);return Kt(L||t,(function(i,r){L&&(i=t[r=i]),Mn(a,r,Vn(i,e,n,r,t,o))})),a}function Bn(t,e,n){var i=n.length;if(null==t)return!i;for(t=rt(t);i--;){var r=n[i],o=e[r],a=t[r];if(void 0===a&&!(r in t)||!o(a))return!1}return!0}function Un(t,e,n){if("function"!=typeof t)throw new st(o);return so((function(){t.apply(void 0,n)}),e)}function Hn(t,e,n,i){var r=-1,o=Qt,a=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=ee(e,_e(n))),i?(o=te,a=!1):e.length>=200&&(o=we,a=!1,e=new On(e));t:for(;++r-1},Sn.prototype.set=function(t,e){var n=this.__data__,i=Rn(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},En.prototype.clear=function(){this.size=0,this.__data__={hash:new Tn,map:new(en||Sn),string:new Tn}},En.prototype.delete=function(t){var e=Vr(this,t).delete(t);return this.size-=e?1:0,e},En.prototype.get=function(t){return Vr(this,t).get(t)},En.prototype.has=function(t){return Vr(this,t).has(t)},En.prototype.set=function(t,e){var n=Vr(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},On.prototype.add=On.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},On.prototype.has=function(t){return this.__data__.has(t)},An.prototype.clear=function(){this.__data__=new Sn,this.size=0},An.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},An.prototype.get=function(t){return this.__data__.get(t)},An.prototype.has=function(t){return this.__data__.has(t)},An.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Sn){var i=n.__data__;if(!en||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new En(i)}return n.set(t,e),this.size=n.size,this};var Gn=cr(Jn),Wn=cr(Zn,!0);function zn(t,e){var n=!0;return Gn(t,(function(t,i,r){return n=!!e(t,i,r)})),n}function $n(t,e,n){for(var i=-1,r=t.length;++i0&&n(s)?e>1?Yn(s,e-1,n,i,r):ne(r,s):i||(r[r.length]=s)}return r}var Kn=dr(),Xn=dr(!0);function Jn(t,e){return t&&Kn(t,e,us)}function Zn(t,e){return t&&Xn(t,e,us)}function Qn(t,e){return Zt(e,(function(e){return Ca(t[e])}))}function ti(t,e){for(var n=0,i=(e=Xi(e,t)).length;null!=t&&ne}function ri(t,e){return null!=t&&ht.call(t,e)}function oi(t,e){return null!=t&&e in rt(t)}function ai(t,e,n){for(var r=n?te:Qt,o=t[0].length,a=t.length,s=a,u=i(a),l=1/0,c=[];s--;){var d=t[s];s&&e&&(d=ee(d,_e(e))),l=Ke(d.length,l),u[s]=!n&&(e||o>=120&&d.length>=120)?new On(s&&d):void 0}d=t[0];var f=-1,h=u[0];t:for(;++f=s)return u;var l=n[i];return u*("desc"==l?-1:1)}}return t.index-e.index}(t,e,n)}))}function Ti(t,e,n){for(var i=-1,r=e.length,o={};++i-1;)s!==t&&jt.call(s,u,1),jt.call(t,u,1);return t}function Ei(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;Yr(r)?jt.call(t,r,1):Hi(t,r)}}return t}function Oi(t,e){return t+He(Ze()*(e-t+1))}function Ai(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=He(e/2))&&(t+=t)}while(e);return n}function Pi(t,e){return uo(no(t,e,Ns),t+"")}function Ci(t){return Cn(vs(t))}function xi(t,e){var n=vs(t);return fo(n,Fn(e,0,n.length))}function Ii(t,e,n,i){if(!ka(t))return t;for(var r=-1,o=(e=Xi(e,t)).length,a=o-1,s=t;null!=s&&++ro?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=i(o);++r>>1,a=t[o];null!==a&&!Va(a)&&(n?a<=e:a=200){var l=e?null:Ar(t);if(l)return ke(l);a=!1,r=we,u=new On}else u=e?[]:s;t:for(;++i=i?t:Ni(t,e,n)}var Qi=Fe||function(t){return Dt.clearTimeout(t)};function tr(t,e){if(e)return t.slice();var n=t.length,i=At?At(n):new t.constructor(n);return t.copy(i),i}function er(t){var e=new t.constructor(t.byteLength);return new Et(e).set(new Et(t)),e}function nr(t,e){var n=e?er(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ir(t,e){if(t!==e){var n=void 0!==t,i=null===t,r=t==t,o=Va(t),a=void 0!==e,s=null===e,u=e==e,l=Va(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||i&&a&&u||!n&&u||!r)return 1;if(!i&&!o&&!l&&t1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,a&&Kr(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),e=rt(e);++i-1?r[o?e[a]:a]:void 0}}function mr(t){return Mr((function(e){var n=e.length,i=n,r=bn.prototype.thru;for(t&&e.reverse();i--;){var a=e[i];if("function"!=typeof a)throw new st(o);if(r&&!s&&"wrapper"==Lr(a))var s=new bn([],!0)}for(i=s?i:n;++i1&&_.reverse(),d&&ls))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var d=-1,f=!0,h=2&n?new On:void 0;for(o.set(t,e),o.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(W,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return Kt(s,(function(n){var i="_."+n[0];e&n[1]&&!Qt(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(z);return e?e[1].split($):[]}(i),n)))}function co(t){var e=0,n=0;return function(){var i=Xe(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function fo(t,e){var n=-1,i=t.length,r=i-1;for(e=void 0===e?i:e;++n1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Lo(t,n)}));function Go(t){var e=vn(t);return e.__chain__=!0,e}function Wo(t,e){return e(t)}var zo=Mr((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,r=function(e){return jn(e,t)};return!(e>1||this.__actions__.length)&&i instanceof wn&&Yr(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:Wo,args:[r],thisArg:void 0}),new bn(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(r)}));var $o=ur((function(t,e,n){ht.call(t,n)?++t[n]:Ln(t,n,1)}));var qo=gr(bo),Yo=gr(wo);function Ko(t,e){return(wa(t)?Kt:Gn)(t,Fr(e,3))}function Xo(t,e){return(wa(t)?Xt:Wn)(t,Fr(e,3))}var Jo=ur((function(t,e,n){ht.call(t,n)?t[n].push(e):Ln(t,n,[e])}));var Zo=Pi((function(t,e,n){var r=-1,o="function"==typeof e,a=Sa(t)?i(t.length):[];return Gn(t,(function(t){a[++r]=o?qt(e,t,n):si(t,e,n)})),a})),Qo=ur((function(t,e,n){Ln(t,n,e)}));function ta(t,e){return(wa(t)?ee:mi)(t,Fr(e,3))}var ea=ur((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var na=Pi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Kr(t,e[0],e[1])?e=[]:n>2&&Kr(e[0],e[1],e[2])&&(e=[e[0]]),wi(t,Yn(e,1),[])})),ia=Ve||function(){return Dt.Date.now()};function ra(t,e,n){return e=n?void 0:e,Cr(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function oa(t,e){var n;if("function"!=typeof e)throw new st(o);return t=za(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var aa=Pi((function(t,e,n){var i=1;if(n.length){var r=Ie(n,jr(aa));i|=32}return Cr(t,i,e,n,r)})),sa=Pi((function(t,e,n){var i=3;if(n.length){var r=Ie(n,jr(sa));i|=32}return Cr(e,i,t,n,r)}));function ua(t,e,n){var i,r,a,s,u,l,c=0,d=!1,f=!1,h=!0;if("function"!=typeof t)throw new st(o);function p(e){var n=i,o=r;return i=r=void 0,c=e,s=t.apply(o,n)}function g(t){return c=t,u=so(v,e),d?p(t):s}function m(t){var n=t-l;return void 0===l||n>=e||n<0||f&&t-c>=a}function v(){var t=ia();if(m(t))return y(t);u=so(v,function(t){var n=e-(t-l);return f?Ke(n,a-(t-c)):n}(t))}function y(t){return u=void 0,h&&i?p(t):(i=r=void 0,s)}function _(){var t=ia(),n=m(t);if(i=arguments,r=this,l=t,n){if(void 0===u)return g(l);if(f)return Qi(u),u=so(v,e),p(l)}return void 0===u&&(u=so(v,e)),s}return e=qa(e)||0,ka(n)&&(d=!!n.leading,a=(f="maxWait"in n)?Ye(qa(n.maxWait)||0,e):a,h="trailing"in n?!!n.trailing:h),_.cancel=function(){void 0!==u&&Qi(u),c=0,i=l=r=u=void 0},_.flush=function(){return void 0===u?s:y(ia())},_}var la=Pi((function(t,e){return Un(t,1,e)})),ca=Pi((function(t,e,n){return Un(t,qa(e)||0,n)}));function da(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new st(o);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(da.Cache||En),n}function fa(t){if("function"!=typeof t)throw new st(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}da.Cache=En;var ha=Ji((function(t,e){var n=(e=1==e.length&&wa(e[0])?ee(e[0],_e(Fr())):ee(Yn(e,1),_e(Fr()))).length;return Pi((function(i){for(var r=-1,o=Ke(i.length,n);++r=e})),ba=ui(function(){return arguments}())?ui:function(t){return Ma(t)&&ht.call(t,"callee")&&!Lt.call(t,"callee")},wa=i.isArray,Ta=Ut?_e(Ut):function(t){return Ma(t)&&ni(t)==S};function Sa(t){return null!=t&&Ia(t.length)&&!Ca(t)}function Ea(t){return Ma(t)&&Sa(t)}var Oa=We||qs,Aa=Ht?_e(Ht):function(t){return Ma(t)&&ni(t)==d};function Pa(t){if(!Ma(t))return!1;var e=ni(t);return e==f||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Da(t)}function Ca(t){if(!ka(t))return!1;var e=ni(t);return e==h||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function xa(t){return"number"==typeof t&&t==za(t)}function Ia(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function ka(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ma(t){return null!=t&&"object"==typeof t}var Ra=Gt?_e(Gt):function(t){return Ma(t)&&Wr(t)==g};function Na(t){return"number"==typeof t||Ma(t)&&ni(t)==m}function Da(t){if(!Ma(t)||ni(t)!=v)return!1;var e=Rt(t);if(null===e)return!0;var n=ht.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ft.call(n)==vt}var La=Wt?_e(Wt):function(t){return Ma(t)&&ni(t)==y};var ja=zt?_e(zt):function(t){return Ma(t)&&Wr(t)==_};function Fa(t){return"string"==typeof t||!wa(t)&&Ma(t)&&ni(t)==b}function Va(t){return"symbol"==typeof t||Ma(t)&&ni(t)==w}var Ba=$t?_e($t):function(t){return Ma(t)&&Ia(t.length)&&!!xt[ni(t)]};var Ua=Sr(gi),Ha=Sr((function(t,e){return t<=e}));function Ga(t){if(!t)return[];if(Sa(t))return Fa(t)?Ne(t):ar(t);if(Bt&&t[Bt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Bt]());var e=Wr(t);return(e==g?Ce:e==_?ke:vs)(t)}function Wa(t){return t?(t=qa(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function za(t){var e=Wa(t),n=e%1;return e==e?n?e-n:e:0}function $a(t){return t?Fn(za(t),0,4294967295):0}function qa(t){if("number"==typeof t)return t;if(Va(t))return NaN;if(ka(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ka(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ye(t);var n=J.test(t);return n||Q.test(t)?Mt(t.slice(2),n?2:8):X.test(t)?NaN:+t}function Ya(t){return sr(t,ls(t))}function Ka(t){return null==t?"":Bi(t)}var Xa=lr((function(t,e){if(Qr(e)||Sa(e))sr(e,us(e),t);else for(var n in e)ht.call(e,n)&&Mn(t,n,e[n])})),Ja=lr((function(t,e){sr(e,ls(e),t)})),Za=lr((function(t,e,n,i){sr(e,ls(e),t,i)})),Qa=lr((function(t,e,n,i){sr(e,us(e),t,i)})),ts=Mr(jn);var es=Pi((function(t,e){t=rt(t);var n=-1,i=e.length,r=i>2?e[2]:void 0;for(r&&Kr(e[0],e[1],r)&&(i=1);++n1),e})),sr(t,Nr(t),n),i&&(n=Vn(n,7,Ir));for(var r=e.length;r--;)Hi(n,e[r]);return n}));var hs=Mr((function(t,e){return null==t?{}:function(t,e){return Ti(t,e,(function(e,n){return rs(t,n)}))}(t,e)}));function ps(t,e){if(null==t)return{};var n=ee(Nr(t),(function(t){return[t]}));return e=Fr(e),Ti(t,n,(function(t,n){return e(t,n[0])}))}var gs=Pr(us),ms=Pr(ls);function vs(t){return null==t?[]:be(t,us(t))}var ys=hr((function(t,e,n){return e=e.toLowerCase(),t+(n?_s(e):e)}));function _s(t){return Ps(Ka(t).toLowerCase())}function bs(t){return(t=Ka(t))&&t.replace(et,Oe).replace(St,"")}var ws=hr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ts=hr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ss=fr("toLowerCase");var Es=hr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Os=hr((function(t,e,n){return t+(n?" ":"")+Ps(e)}));var As=hr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Ps=fr("toUpperCase");function Cs(t,e,n){return t=Ka(t),void 0===(e=n?void 0:e)?function(t){return Pt.test(t)}(t)?function(t){return t.match(Ot)||[]}(t):function(t){return t.match(q)||[]}(t):t.match(e)||[]}var xs=Pi((function(t,e){try{return qt(t,void 0,e)}catch(t){return Pa(t)?t:new G(t)}})),Is=Mr((function(t,e){return Kt(e,(function(e){e=po(e),Ln(t,e,aa(t[e],t))})),t}));function ks(t){return function(){return t}}var Ms=mr(),Rs=mr(!0);function Ns(t){return t}function Ds(t){return fi("function"==typeof t?t:Vn(t,1))}var Ls=Pi((function(t,e){return function(n){return si(n,t,e)}})),js=Pi((function(t,e){return function(n){return si(t,n,e)}}));function Fs(t,e,n){var i=us(e),r=Qn(e,i);null!=n||ka(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=Qn(e,us(e)));var o=!(ka(n)&&"chain"in n&&!n.chain),a=Ca(t);return Kt(r,(function(n){var i=e[n];t[n]=i,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),r=n.__actions__=ar(this.__actions__);return r.push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,ne([this.value()],arguments))})})),t}function Vs(){}var Bs=br(ee),Us=br(Jt),Hs=br(oe);function Gs(t){return Xr(t)?he(po(t)):function(t){return function(e){return ti(e,t)}}(t)}var Ws=Tr(),zs=Tr(!0);function $s(){return[]}function qs(){return!1}var Ys=_r((function(t,e){return t+e}),0),Ks=Or("ceil"),Xs=_r((function(t,e){return t/e}),1),Js=Or("floor");var Zs,Qs=_r((function(t,e){return t*e}),1),tu=Or("round"),eu=_r((function(t,e){return t-e}),0);return vn.after=function(t,e){if("function"!=typeof e)throw new st(o);return t=za(t),function(){if(--t<1)return e.apply(this,arguments)}},vn.ary=ra,vn.assign=Xa,vn.assignIn=Ja,vn.assignInWith=Za,vn.assignWith=Qa,vn.at=ts,vn.before=oa,vn.bind=aa,vn.bindAll=Is,vn.bindKey=sa,vn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return wa(t)?t:[t]},vn.chain=Go,vn.chunk=function(t,e,n){e=(n?Kr(t,e,n):void 0===e)?1:Ye(za(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,a=0,s=i(Ue(r/e));or?0:r+n),(i=void 0===i||i>r?r:za(i))<0&&(i+=r),i=n>i?0:$a(i);n>>0)?(t=Ka(t))&&("string"==typeof e||null!=e&&!La(e))&&!(e=Bi(e))&&Pe(t)?Zi(Ne(t),0,n):t.split(e,n):[]},vn.spread=function(t,e){if("function"!=typeof t)throw new st(o);return e=null==e?0:Ye(za(e),0),Pi((function(n){var i=n[e],r=Zi(n,0,e);return i&&ne(r,i),qt(t,this,r)}))},vn.tail=function(t){var e=null==t?0:t.length;return e?Ni(t,1,e):[]},vn.take=function(t,e,n){return t&&t.length?Ni(t,0,(e=n||void 0===e?1:za(e))<0?0:e):[]},vn.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Ni(t,(e=i-(e=n||void 0===e?1:za(e)))<0?0:e,i):[]},vn.takeRightWhile=function(t,e){return t&&t.length?Wi(t,Fr(e,3),!1,!0):[]},vn.takeWhile=function(t,e){return t&&t.length?Wi(t,Fr(e,3)):[]},vn.tap=function(t,e){return e(t),t},vn.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new st(o);return ka(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),ua(t,e,{leading:i,maxWait:e,trailing:r})},vn.thru=Wo,vn.toArray=Ga,vn.toPairs=gs,vn.toPairsIn=ms,vn.toPath=function(t){return wa(t)?ee(t,po):Va(t)?[t]:ar(ho(Ka(t)))},vn.toPlainObject=Ya,vn.transform=function(t,e,n){var i=wa(t),r=i||Oa(t)||Ba(t);if(e=Fr(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:ka(t)&&Ca(o)?yn(Rt(t)):{}}return(r?Kt:Jn)(t,(function(t,i,r){return e(n,t,i,r)})),n},vn.unary=function(t){return ra(t,1)},vn.union=Mo,vn.unionBy=Ro,vn.unionWith=No,vn.uniq=function(t){return t&&t.length?Ui(t):[]},vn.uniqBy=function(t,e){return t&&t.length?Ui(t,Fr(e,2)):[]},vn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Ui(t,void 0,e):[]},vn.unset=function(t,e){return null==t||Hi(t,e)},vn.unzip=Do,vn.unzipWith=Lo,vn.update=function(t,e,n){return null==t?t:Gi(t,e,Ki(n))},vn.updateWith=function(t,e,n,i){return i="function"==typeof i?i:void 0,null==t?t:Gi(t,e,Ki(n),i)},vn.values=vs,vn.valuesIn=function(t){return null==t?[]:be(t,ls(t))},vn.without=jo,vn.words=Cs,vn.wrap=function(t,e){return pa(Ki(e),t)},vn.xor=Fo,vn.xorBy=Vo,vn.xorWith=Bo,vn.zip=Uo,vn.zipObject=function(t,e){return qi(t||[],e||[],Mn)},vn.zipObjectDeep=function(t,e){return qi(t||[],e||[],Ii)},vn.zipWith=Ho,vn.entries=gs,vn.entriesIn=ms,vn.extend=Ja,vn.extendWith=Za,Fs(vn,vn),vn.add=Ys,vn.attempt=xs,vn.camelCase=ys,vn.capitalize=_s,vn.ceil=Ks,vn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=qa(n))==n?n:0),void 0!==e&&(e=(e=qa(e))==e?e:0),Fn(qa(t),e,n)},vn.clone=function(t){return Vn(t,4)},vn.cloneDeep=function(t){return Vn(t,5)},vn.cloneDeepWith=function(t,e){return Vn(t,5,e="function"==typeof e?e:void 0)},vn.cloneWith=function(t,e){return Vn(t,4,e="function"==typeof e?e:void 0)},vn.conformsTo=function(t,e){return null==e||Bn(t,e,us(e))},vn.deburr=bs,vn.defaultTo=function(t,e){return null==t||t!=t?e:t},vn.divide=Xs,vn.endsWith=function(t,e,n){t=Ka(t),e=Bi(e);var i=t.length,r=n=void 0===n?i:Fn(za(n),0,i);return(n-=e.length)>=0&&t.slice(n,r)==e},vn.eq=va,vn.escape=function(t){return(t=Ka(t))&&L.test(t)?t.replace(N,Ae):t},vn.escapeRegExp=function(t){return(t=Ka(t))&&U.test(t)?t.replace(B,"\\$&"):t},vn.every=function(t,e,n){var i=wa(t)?Jt:zn;return n&&Kr(t,e,n)&&(e=void 0),i(t,Fr(e,3))},vn.find=qo,vn.findIndex=bo,vn.findKey=function(t,e){return se(t,Fr(e,3),Jn)},vn.findLast=Yo,vn.findLastIndex=wo,vn.findLastKey=function(t,e){return se(t,Fr(e,3),Zn)},vn.floor=Js,vn.forEach=Ko,vn.forEachRight=Xo,vn.forIn=function(t,e){return null==t?t:Kn(t,Fr(e,3),ls)},vn.forInRight=function(t,e){return null==t?t:Xn(t,Fr(e,3),ls)},vn.forOwn=function(t,e){return t&&Jn(t,Fr(e,3))},vn.forOwnRight=function(t,e){return t&&Zn(t,Fr(e,3))},vn.get=is,vn.gt=ya,vn.gte=_a,vn.has=function(t,e){return null!=t&&zr(t,e,ri)},vn.hasIn=rs,vn.head=So,vn.identity=Ns,vn.includes=function(t,e,n,i){t=Sa(t)?t:vs(t),n=n&&!i?za(n):0;var r=t.length;return n<0&&(n=Ye(r+n,0)),Fa(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&le(t,e,n)>-1},vn.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:za(n);return r<0&&(r=Ye(i+r,0)),le(t,e,r)},vn.inRange=function(t,e,n){return e=Wa(e),void 0===n?(n=e,e=0):n=Wa(n),function(t,e,n){return t>=Ke(e,n)&&t=-9007199254740991&&t<=9007199254740991},vn.isSet=ja,vn.isString=Fa,vn.isSymbol=Va,vn.isTypedArray=Ba,vn.isUndefined=function(t){return void 0===t},vn.isWeakMap=function(t){return Ma(t)&&Wr(t)==T},vn.isWeakSet=function(t){return Ma(t)&&"[object WeakSet]"==ni(t)},vn.join=function(t,e){return null==t?"":$e.call(t,e)},vn.kebabCase=ws,vn.last=Po,vn.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==n&&(r=(r=za(n))<0?Ye(i+r,0):Ke(r,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,r):ue(t,de,r,!0)},vn.lowerCase=Ts,vn.lowerFirst=Ss,vn.lt=Ua,vn.lte=Ha,vn.max=function(t){return t&&t.length?$n(t,Ns,ii):void 0},vn.maxBy=function(t,e){return t&&t.length?$n(t,Fr(e,2),ii):void 0},vn.mean=function(t){return fe(t,Ns)},vn.meanBy=function(t,e){return fe(t,Fr(e,2))},vn.min=function(t){return t&&t.length?$n(t,Ns,gi):void 0},vn.minBy=function(t,e){return t&&t.length?$n(t,Fr(e,2),gi):void 0},vn.stubArray=$s,vn.stubFalse=qs,vn.stubObject=function(){return{}},vn.stubString=function(){return""},vn.stubTrue=function(){return!0},vn.multiply=Qs,vn.nth=function(t,e){return t&&t.length?bi(t,za(e)):void 0},vn.noConflict=function(){return Dt._===this&&(Dt._=yt),this},vn.noop=Vs,vn.now=ia,vn.pad=function(t,e,n){t=Ka(t);var i=(e=za(e))?Re(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return wr(He(r),n)+t+wr(Ue(r),n)},vn.padEnd=function(t,e,n){t=Ka(t);var i=(e=za(e))?Re(t):0;return e&&ie){var i=t;t=e,e=i}if(n||t%1||e%1){var r=Ze();return Ke(t+r*(e-t+kt("1e-"+((r+"").length-1))),e)}return Oi(t,e)},vn.reduce=function(t,e,n){var i=wa(t)?ie:ge,r=arguments.length<3;return i(t,Fr(e,4),n,r,Gn)},vn.reduceRight=function(t,e,n){var i=wa(t)?re:ge,r=arguments.length<3;return i(t,Fr(e,4),n,r,Wn)},vn.repeat=function(t,e,n){return e=(n?Kr(t,e,n):void 0===e)?1:za(e),Ai(Ka(t),e)},vn.replace=function(){var t=arguments,e=Ka(t[0]);return t.length<3?e:e.replace(t[1],t[2])},vn.result=function(t,e,n){var i=-1,r=(e=Xi(e,t)).length;for(r||(r=1,t=void 0);++i9007199254740991)return[];var n=4294967295,i=Ke(t,4294967295);t-=4294967295;for(var r=ve(i,e=Fr(e));++n=o)return t;var s=n-Re(i);if(s<1)return i;var u=a?Zi(a,0,s).join(""):t.slice(0,s);if(void 0===r)return u+i;if(a&&(s+=u.length-s),La(r)){if(t.slice(s).search(r)){var l,c=u;for(r.global||(r=ot(r.source,Ka(K.exec(r))+"g")),r.lastIndex=0;l=r.exec(c);)var d=l.index;u=u.slice(0,void 0===d?s:d)}}else if(t.indexOf(Bi(r),s)!=s){var f=u.lastIndexOf(r);f>-1&&(u=u.slice(0,f))}return u+i},vn.unescape=function(t){return(t=Ka(t))&&D.test(t)?t.replace(R,Le):t},vn.uniqueId=function(t){var e=++pt;return Ka(t)+e},vn.upperCase=As,vn.upperFirst=Ps,vn.each=Ko,vn.eachRight=Xo,vn.first=So,Fs(vn,(Zs={},Jn(vn,(function(t,e){ht.call(vn.prototype,e)||(Zs[e]=t)})),Zs),{chain:!1}),vn.VERSION="4.17.21",Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){vn[t].placeholder=vn})),Kt(["drop","take"],(function(t,e){wn.prototype[t]=function(n){n=void 0===n?1:Ye(za(n),0);var i=this.__filtered__&&!e?new wn(this):this.clone();return i.__filtered__?i.__takeCount__=Ke(n,i.__takeCount__):i.__views__.push({size:Ke(n,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},wn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Kt(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=1==n||3==n;wn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Fr(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),Kt(["head","last"],(function(t,e){var n="take"+(e?"Right":"");wn.prototype[t]=function(){return this[n](1).value()[0]}})),Kt(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");wn.prototype[t]=function(){return this.__filtered__?new wn(this):this[n](1)}})),wn.prototype.compact=function(){return this.filter(Ns)},wn.prototype.find=function(t){return this.filter(t).head()},wn.prototype.findLast=function(t){return this.reverse().find(t)},wn.prototype.invokeMap=Pi((function(t,e){return"function"==typeof t?new wn(this):this.map((function(n){return si(n,t,e)}))})),wn.prototype.reject=function(t){return this.filter(fa(Fr(t)))},wn.prototype.slice=function(t,e){t=za(t);var n=this;return n.__filtered__&&(t>0||e<0)?new wn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=za(e))<0?n.dropRight(-e):n.take(e-t)),n)},wn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},wn.prototype.toArray=function(){return this.take(4294967295)},Jn(wn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),r=vn[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);r&&(vn.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,s=e instanceof wn,u=a[0],l=s||wa(e),c=function(t){var e=r.apply(vn,ne([t],a));return i&&d?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var d=this.__chain__,f=!!this.__actions__.length,h=o&&!d,p=s&&!f;if(!o&&l){e=p?e:new wn(this);var g=t.apply(e,a);return g.__actions__.push({func:Wo,args:[c],thisArg:void 0}),new bn(g,d)}return h&&p?t.apply(this,a):(g=this.thru(c),h?i?g.value()[0]:g.value():g)})})),Kt(["pop","push","shift","sort","splice","unshift"],(function(t){var e=ut[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);vn.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(wa(r)?r:[],t)}return this[n]((function(n){return e.apply(wa(n)?n:[],t)}))}})),Jn(wn.prototype,(function(t,e){var n=vn[e];if(n){var i=n.name+"";ht.call(un,i)||(un[i]=[]),un[i].push({name:e,func:n})}})),un[vr(void 0,2).name]=[{name:"wrapper",func:void 0}],wn.prototype.clone=function(){var t=new wn(this.__wrapped__);return t.__actions__=ar(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ar(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ar(this.__views__),t},wn.prototype.reverse=function(){if(this.__filtered__){var t=new wn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},wn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=wa(t),i=e<0,r=n?t.length:0,o=function(t,e,n){var i=-1,r=n.length;for(;++i=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},vn.prototype.plant=function(t){for(var e,n=this;n instanceof _n;){var i=mo(n);i.__index__=0,i.__values__=void 0,e?r.__wrapped__=i:e=i;var r=i;n=n.__wrapped__}return r.__wrapped__=t,e},vn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof wn){var e=t;return this.__actions__.length&&(e=new wn(this)),(e=e.reverse()).__actions__.push({func:Wo,args:[ko],thisArg:void 0}),new bn(e,this.__chain__)}return this.thru(ko)},vn.prototype.toJSON=vn.prototype.valueOf=vn.prototype.value=function(){return zi(this.__wrapped__,this.__actions__)},vn.prototype.first=vn.prototype.head,Bt&&(vn.prototype[Bt]=function(){return this}),vn}();Dt._=je,void 0===(r=function(){return je}.call(e,n,e,i))||(i.exports=r)}).call(this)}).call(this,n(128),n(488)(t))},function(t,e,n){"use strict";n.r(e),n.d(e,"DOCUMENTATION_URL",(function(){return i})),n.d(e,"default",(function(){return r})),n.d(e,"logWarning",(function(){return o})),n.d(e,"logError",(function(){return a}));
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
const i="https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html";class r extends Error{constructor(t,e,n){super(`${t}${n?" "+JSON.stringify(n):""}${s(t)}`),this.name="CKEditorError",this.context=e,this.data=n}is(t){return"CKEditorError"===t}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const n=new r(t.message,e);throw n.stack=t.stack,n}}function o(t,e){console.warn(...u(t,e))}function a(t,e){console.error(...u(t,e))}function s(t){return`\nRead more: ${i}#error-${t}`}function u(t,e){const n=s(t);return e?[t,e,n]:[t,n]}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),h}},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;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null;c(this,e),this.start=f.default._createAt(t),this.end=n?f.default._createAt(n):f.default._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}var n,i,r;return n=e,r=[{key:"_createFromPositionAndShift",value:function(t,e){var n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,n)}},{key:"_createIn",value:function(t){return new this(f.default._createAt(t,0),f.default._createAt(t,t.maxOffset))}},{key:"_createOn",value:function(t){return this._createFromPositionAndShift(f.default._createBefore(t),t.offsetSize)}},{key:"_createFromRanges",value:function(t){if(0===t.length)throw new p.default("range-create-from-ranges-empty-array",null);if(1==t.length)return t[0].clone();var e=t[0];t.sort((function(t,e){return t.start.isAfter(e.start)?1:-1}));var n=t.indexOf(e),i=new this(e.start,e.end);if(n>0)for(var r=n-1;t[r].end.isEqual(i.start);r++)i.start=f.default._createAt(t[r].start);for(var o=n+1;o1&&void 0!==arguments[1]&&arguments[1];t.isCollapsed&&(e=!1);var n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}},{key:"containsItem",value:function(t){var e=f.default._createBefore(t);return this.containsPosition(e)||this.start.isEqual(e)}},{key:"is",value:function(t){return"range"===t||"model:range"===t}},{key:"isEqual",value:function(t){return this.start.isEqual(t.start)&&this.end.isEqual(t.end)}},{key:"isIntersecting",value:function(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(new e(this.start,this.end)),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,i=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(i=t.end),new e(n,i)}return null}},{key:"getJoined",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.isIntersecting(t);if(i||(i=this.start.isBefore(t.start)?n?this.end.isTouching(t.start):this.end.isEqual(t.start):n?t.end.isTouching(this.start):t.end.isEqual(this.start)),!i)return null;var r=this.start,o=this.end;return t.start.isBefore(r)&&(r=t.start),t.end.isAfter(o)&&(o=t.end),new e(r,o)}},{key:"getMinimalFlatRanges",value:function(){for(var t=[],n=this.start.getCommonPath(this.end).length,i=f.default._createAt(this.start),r=i.parent;i.path.length>n+1;){var o=r.maxOffset-i.offset;0!==o&&t.push(new e(i,i.getShiftedBy(o))),i.path=i.path.slice(0,-1),i.offset++,r=r.parent}for(;i.path.length<=this.end.path.length;){var a=this.end.path[i.path.length-1],s=a-i.offset;0!==s&&t.push(new e(i,i.getShiftedBy(s))),i.offset=a,i.path.push(0)}return t}},{key:"getWalker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.boundaries=this,new h.default(t)}},{key:"getItems",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l().mark((function n(){var i,r,o,s;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.boundaries=t,e.ignoreElementEnd=!0,i=new h.default(e),r=a(i),n.prev=4,r.s();case 6:if((o=r.n()).done){n.next=12;break}return s=o.value,n.next=10,s.item;case 10:n.next=6;break;case 12:n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),r.e(n.t0);case 17:return n.prev=17,r.f(),n.finish(17);case 20:case"end":return n.stop()}}),n,null,[[4,14,17,20]])}))()}},{key:"getPositions",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l().mark((function n(){var i,r,o,s;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.boundaries=t,i=new h.default(e),n.next=4,i.position;case 4:r=a(i),n.prev=5,r.s();case 7:if((o=r.n()).done){n.next=13;break}return s=o.value,n.next=11,s.nextPosition;case 11:n.next=7;break;case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(5),r.e(n.t0);case 18:return n.prev=18,r.f(),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[5,15,18,21]])}))()}},{key:"getTransformedByOperation",value:function(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new e(this.start,this.end)]}},{key:"getTransformedByOperations",value:function(t){var n,i=[new e(this.start,this.end)],r=a(t);try{for(r.s();!(n=r.n()).done;)for(var s=n.value,u=0;u1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(t.position,t.howMany,e)}},{key:"_getTransformedByMoveOperation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.sourcePosition,i=t.howMany,r=t.targetPosition;return this._getTransformedByMove(n,r,i,e)}},{key:"_getTransformedBySplitOperation",value:function(t){var n=this.start._getTransformedBySplitOperation(t),i=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(i=this.end.getShiftedBy(1)),n.root!=i.root&&(i=this.end.getShiftedBy(-1)),new e(n,i)}},{key:"_getTransformedByMergeOperation",value:function(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new e(this.start);var n=this.start._getTransformedByMergeOperation(t),i=this.end._getTransformedByMergeOperation(t);return n.root!=i.root&&(i=this.end.getShiftedBy(-1)),n.isAfter(i)?(t.sourcePosition.isBefore(t.targetPosition)?(n=f.default._createAt(i)).offset=0:(t.deletionPosition.isEqual(n)||(i=t.deletionPosition),n=t.targetPosition),new e(n,i)):new e(n,i)}},{key:"_getTransformedByInsertion",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(i&&this.containsPosition(t))return[new e(this.start,t),new e(t.getShiftedBy(n),this.end._getTransformedByInsertion(t,n))];var r=new e(this.start,this.end);return r.start=r.start._getTransformedByInsertion(t,n),r.end=r.end._getTransformedByInsertion(t,n),[r]}},{key:"_getTransformedByMove",value:function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){var o=this.start._getTransformedByMove(t,n,i);return[new e(o)]}var a,s=e._createFromPositionAndShift(t,i),u=n._getTransformedByDeletion(t,i);if(this.containsPosition(n)&&!r&&(s.containsPosition(this.start)||s.containsPosition(this.end))){var l=this.start._getTransformedByMove(t,n,i),c=this.end._getTransformedByMove(t,n,i);return[new e(l,c)]}var d=this.getDifference(s),f=null,h=this.getIntersection(s);if(1==d.length?f=new e(d[0].start._getTransformedByDeletion(t,i),d[0].end._getTransformedByDeletion(t,i)):2==d.length&&(f=new e(this.start,this.end._getTransformedByDeletion(t,i))),a=f?f._getTransformedByInsertion(u,i,null!==h||r):[],h){var p=new e(h.start._getCombined(s.start,u),h.end._getCombined(s.start,u));2==a.length?a.splice(1,0,p):a.push(p)}return a}},{key:"_getTransformedByDeletion",value:function(t,n){var i=this.start._getTransformedByDeletion(t,n),r=this.end._getTransformedByDeletion(t,n);return null==i&&null==r?null:(null==i&&(i=t),null==r&&(r=t),new e(i,r))}}])&&d(n.prototype,i),r&&d(n,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(Symbol.iterator);e.default=m},function(t,e){t.exports=jQuery},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a})),n.d(e,"getTextNodeAtPosition",(function(){return s})),n.d(e,"getNodeAfterPosition",(function(){return u})),n.d(e,"getNodeBeforePosition",(function(){return l}));var i=n(115),r=n(62),o=n(1);n(186);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class a{constructor(t,e,n="toNone"){if(!t.is("element")&&!t.is("documentFragment"))throw new o.default("model-position-root-invalid",t);if(!(e instanceof Array)||0===e.length)throw new o.default("model-position-path-incorrect-format",t,{path:e});t.is("rootElement")?e=e.slice():(e=[...t.getPath(),...e],t=t.root),this.root=t,this.path=e,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(t){this.path[this.path.length-1]=t}get parent(){let t=this.root;for(let e=0;en.path.length){if(e.offset!==i.maxOffset)return!1;e.path=e.path.slice(0,-1),i=i.parent,e.offset++}else{if(0!==n.offset)return!1;n.path=n.path.slice(0,-1)}}}is(t){return"position"===t||"model:position"===t}hasSameParentAs(t){if(this.root!==t.root)return!1;const e=this.getParentPath(),n=t.getParentPath();return"same"==Object(r.default)(e,n)}getTransformedByOperation(t){let e;switch(t.type){case"insert":e=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":e=this._getTransformedByMoveOperation(t);break;case"split":e=this._getTransformedBySplitOperation(t);break;case"merge":e=this._getTransformedByMergeOperation(t);break;default:e=a._createAt(this)}return e}_getTransformedByInsertOperation(t){return this._getTransformedByInsertion(t.position,t.howMany)}_getTransformedByMoveOperation(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}_getTransformedBySplitOperation(t){const e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}_getTransformedByMergeOperation(t){const e=t.movedRange;let n;return e.containsPosition(this)||e.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?a._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}_getTransformedByDeletion(t,e){const n=a._createAt(this);if(this.root!=t.root)return n;if("same"==Object(r.default)(t.getParentPath(),this.getParentPath())){if(t.offsetthis.offset)return null;n.offset-=e}}else if("prefix"==Object(r.default)(t.getParentPath(),this.getParentPath())){const i=t.path.length-1;if(t.offset<=this.path[i]){if(t.offset+e>this.path[i])return null;n.path[i]-=e}}return n}_getTransformedByInsertion(t,e){const n=a._createAt(this);if(this.root!=t.root)return n;if("same"==Object(r.default)(t.getParentPath(),this.getParentPath()))(t.offset{Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)).forEach(n=>{if(n in t.prototype)return;const i=Object.getOwnPropertyDescriptor(e,n);i.enumerable=!1,Object.defineProperty(t.prototype,n,i)})})}n.r(e),n.d(e,"default",(function(){return i}))},function(t,e,n){"use strict";
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(187),e)},function(t,e,n){"use strict";var i=n(58);e.a=function(t){return null==t?"":Object(i.a)(t)}},function(t,e,n){"use strict";n.r(e),e.default=''},function(t,e,n){"use strict";(function(i){var r,o,a;a="object"==typeof self&&self.self==self&&self||"object"==typeof i&&i.global==i&&i,r=[n(0),n(3),e],void 0===(o=function(t,e,n){a.Backbone=function(t,e,n,i){var r=t.Backbone,o=Array.prototype.slice;e.VERSION="1.2.3",e.$=i,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=function(t,e,i){n.each(e,(function(e,r){n[r]&&(t.prototype[r]=function(t,e,i){switch(t){case 1:return function(){return n[e](this[i])};case 2:return function(t){return n[e](this[i],t)};case 3:return function(t,r){return n[e](this[i],s(t,this),r)};case 4:return function(t,r,o){return n[e](this[i],s(t,this),r,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[i]),n[e].apply(n,t)}}}(e,r,i))}))},s=function(t,e){return n.isFunction(t)?t:n.isObject(t)&&!e._isModel(t)?u(t):n.isString(t)?function(e){return e.get(t)}:t},u=function(t){var e=n.matches(t);return function(t){return e(t.attributes)}},l=e.Events={},c=/\s+/,d=function(t,e,i,r,o){var a,s=0;if(i&&"object"==typeof i){void 0!==r&&"context"in o&&void 0===o.context&&(o.context=r);for(a=n.keys(i);s7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(N,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var i=document.body,r=i.insertBefore(this.iframe,i.firstChild).contentWindow;r.document.open(),r.document.close(),r.location.hash="#"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),M.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),n.some(this.handlers,(function(e){if(e.route.test(t))return e.callback(t),!0})))},navigate:function(t,e){if(!M.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;""!==t&&"?"!==t.charAt(0)||(n=n.slice(0,-1)||"/");var i=n+t;if(t=this.decodeFragment(t.replace(D,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var r=this.iframe.contentWindow;e.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,"");t.replace(i+"#"+e)}else t.hash="#"+e}}),e.history=new M,y.extend=_.extend=P.extend=S.extend=M.extend=function(t,e){var i,r=this;i=t&&n.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,e);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,t&&n.extend(i.prototype,t),i.__super__=r.prototype,i};var L=function(){throw new Error('A "url" property or function must be specified')},j=function(t,e){var n=e.error;e.error=function(i){n&&n.call(e.context,t,i,e),t.trigger("error",t,i,e)}};return e}(a,n,t,e)}.apply(e,r))||(t.exports=o)}).call(this,n(128))},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r,o,a,s,u,l,c,d,f,h,p,g,m,v,y,_,b,w,T,S,E,O,A,P,C,x,I,k,M,R,N=i(n(0)),D=i(n(349)),L=i(n(493)),j=i(n(242)),F=i(n(494)),V=i(n(243)),B=(r=function(){var t=V.default.getDimensions();return t.width*t.height<5e5},o=function(){return window.innerWidth*window.innerHeight<5e5},a=function(){return L.default.isMobile},s=function(){return!a()},u=function(){return a()&&r()},l=function(){return f(navigator.userAgent)||a()&&!r()},c=function(){return D.default.canvas&&D.default.video},d=N.default.once((function(){return F.default.browser(navigator.userAgent)})),f=function(t){var e=(t=t||navigator.userAgent).match(/(Macintosh; Intel Mac)(.*Version\/([\d.]+)\sSafari)/i);return!!(e&&(window.navigator.maxTouchPoints||0)>1)&&e},p=(h=function(t){var e,n,i;/Windows/i.test(t)?(e=t.match(/Phone( (OS )?([\d.]+))?/))?(n="Windows Mobile",i=e[3]):(e=t.match(/Windows NT\s([0-9.]+)/))?(n="Windows",i=e[1]):n="Windows":(e=t.match(/(iPad|iPod|iPhone)(.*OS ([\d_]+))?/))?(n="iOS",e[3]&&(i=e[3].replace(/_/g,"."))):(e=f(t))?(n="iOS",i=e[3]):(e=t.match(/(Android ?([\d.]+)?)/))?(n="Android",i=e[2]):(e=t.match(/(BlackBerry|PlayBook|BB10)(.*Version\/(\d+\.\d+\.\d+))?/i))?(n="BlackBerry",i=e[3]):(e=t.match(/\(Macintosh(;\D*([\d_.]+)[);])?/))?(n="Mac OS X",e[2]&&(i=e[2].replace(/_/g,"."))):(e=t.match(/Linux\s([0-9._a-z]+)?/))?(n="Linux",i=e[1]):(e=t.match(/CrOS ?(\S+)?/))?(n="Chrome OS",i=e[1]):(e=t.match(/jsdom\/([0-9._a-z]+)/))&&(n="jsdom",i=e[1]);var r={};return n&&(r.name=n),i&&(r.version=i),r})(navigator.userAgent),g=function(){return window.orientation%180==0?"portrait":"landscape"},m=o()?50:200,v=N.default.once((function(){j.default.set("testcookie",1);var t=j.default.get("testcookie");return t&&j.default.remove("testcookie"),t})),y=function(){return d().msieVersion()},_=d().isEdge(),b=d().isWebkit(),w=d().isMozilla(),S=function(){return T()&&d().version.match(/^7\..*/)},E=function(t,e){if(!t)return!1;var n=t.split("."),i=Number(n[0]);return!isNaN(i)&&i=e},A=function(){return a()&&"Mobile Safari"===d().name},P=function(){return!a()&&"Safari"===d().name},I=function(){return C()&&!window.navigator.standalone&&A()},k=function(){return"Chrome"===d().name},M=function(){return d().isMozilla()},{touch:function(){return D.default.touch},mobile:a,desktop:s,smartPhone:u,tablet:l,retina:function(){var t=1;return void 0!==window.devicePixelRatio&&(t=window.devicePixelRatio),t>=2},renderingEngine:function(){return d().engine},edge:_,webkit:b,mozilla:w,html5:c,isBot:function(){return/(google web preview|google search console|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp)/i.test(window.navigator.userAgent)},browser:d,os:p,parseOS:h,standalone:function(){return!0===window.navigator.standalone},smallWindow:o,deviceType:function(){return u()?"smartphone":l()?"tablet":s()?"desktop":"other"},playerType:function(){return c()?"html5":"html4"},orientation:g,portrait:function(){return"portrait"===g()},landscape:function(){return"landscape"===g()},supportsOrientationChange:function(){return"onorientationchange"in window},getSlackHeight:function(t){var e=V.default.getDimensions();if(!R()&&t=n.width},isIframe:R=function(){return top!=window},isMac:function(){return"Mac OS X"===p.name},isWindows:function(){return"Windows"===p.name},isIos:T=function(){return"iOS"===p.name},isIosLessThan:function(t){return!!T()&&E(p.version,t)},isIosGreaterThanOrEqualTo:function(t){return!!T()&&O(p.version,t)},isBrowserChromeLessThan:function(t){return!!k()&&E(d().version,t)},isBrowserChromeGreaterThanOrEqualTo:function(t){return!!k()&&O(d().version,t)},isStudioDesktopApp:function(){return N.default.includes(navigator.userAgent,"CerosDesktop")},isBrowserFirefoxGreaterThanOrEqualTo:function(t){return!!M()&&O(d().version,t)},isDesktopSafariLessThan:function(t){return!!P()&&E(d().version,t)},isAndroid:function(){return"Android"===p.name},isIphone:C=function(){return/iPhone/i.test(navigator.userAgent)},isIpad:x=function(){return/iPad/i.test(navigator.userAgent)||!!f(navigator.userAgent)},isPhantomJS:function(){return"PhantomJS"===d().name},isJsDom:function(){return N.default.includes(navigator.userAgent,"jsdom")},isIE9OrEarlier:function(){return!1!==y()&&y()<=9},isBrowserChrome:k,isBrowserFirefox:M,isDesktopSafari:P,isMobileSafari:A,isIpadPretendingToBeDesktop:f,isIosSafari:function(){return T()&&d().name.includes("Safari")},reload:function(){d=N.default.once((function(){return F.default.browser(navigator.userAgent)})),p=h(navigator.userAgent)},DEVICE_TYPE_SMARTPHONE:"smartphone",DEVICE_TYPE_TABLET:"tablet",DEVICE_TYPE_DESKTOP:"desktop",DEVICE_TYPE_OTHER:"other"});e.default=B},function(t,e,n){"use strict";n.r(e),n.d(e,"_getEmitterListenedTo",(function(){return c})),n.d(e,"_setEmitterId",(function(){return d})),n.d(e,"_getEmitterId",(function(){return f}));var i=n(154),r=n(82),o=n(167),a=(n(186),n(1));
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
const s=Symbol("listeningTo"),u=Symbol("emitterId"),l={on(t,e,n={}){this.listenTo(this,t,e,n)},once(t,e,n){let i=!1;this.listenTo(this,t,(function(t,...n){i||(i=!0,t.off(),e.call(this,t,...n))}),n)},off(t,e){this.stopListening(this,t,e)},listenTo(t,e,n,i={}){let r,o;this[s]||(this[s]={});const a=this[s];f(t)||d(t);const u=f(t);(r=a[u])||(r=a[u]={emitter:t,callbacks:{}}),(o=r.callbacks[e])||(o=r.callbacks[e]=[]),o.push(n),function(t,e,n,i,r){e._addEventListener?e._addEventListener(n,i,r):t._addEventListener.call(e,n,i,r)}(this,t,e,n,i)},stopListening(t,e,n){const i=this[s];let r=t&&f(t);const o=i&&r&&i[r],a=o&&e&&o.callbacks[e];if(!(!i||t&&!o||e&&!a))if(n){m(this,t,e,n);-1!==a.indexOf(n)&&(1===a.length?delete o.callbacks[e]:m(this,t,e,n))}else if(a){for(;n=a.pop();)m(this,t,e,n);delete o.callbacks[e]}else if(o){for(e in o.callbacks)this.stopListening(t,e);delete i[r]}else{for(r in i)this.stopListening(i[r].emitter);delete this[s]}},fire(t,...e){try{const n=t instanceof i.a?t:new i.a(this,t),r=n.name;let o=function t(e,n){let i;if(!e._events||!(i=e._events[n])||!i.callbacks.length)return n.indexOf(":")>-1?t(e,n.substr(0,n.lastIndexOf(":"))):null;return i.callbacks}(this,r);if(n.path.push(this),o){const t=[n,...e];o=Array.from(o);for(let e=0;e{this._delegations||(this._delegations=new Map),t.forEach(t=>{const i=this._delegations.get(t);i?i.set(e,n):this._delegations.set(t,new Map([[e,n]]))})}}},stopDelegating(t,e){if(this._delegations)if(t)if(e){const n=this._delegations.get(t);n&&n.delete(e)}else this._delegations.delete(t);else this._delegations.clear()},_addEventListener(t,e,n){!function(t,e){const n=h(t);if(n[e])return;let i=e,r=null;const o=[];for(;""!==i&&!n[i];)n[i]={callbacks:[],childEvents:[]},o.push(n[i]),r&&n[i].childEvents.push(r),r=i,i=i.substr(0,i.lastIndexOf(":"));if(""!==i){for(const t of o)t.callbacks=n[i].callbacks.slice();n[i].childEvents.push(r)}}(this,t);const i=p(this,t),r=o.a.get(n.priority),a={callback:e,priority:r};for(const t of i){let e=!1;for(let n=0;n0?new this(n,i):new this(i,n)}static _createIn(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}static _createOn(t){const e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(i.a._createBefore(t),e)}}function a(t){return!(!t.item.is("attributeElement")&&!t.item.is("uiElement"))}},function(t,e,n){"use strict";e.a=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";e.a=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++nt.createTextNode(" "),a=t=>{const e=t.createElement("span");return e.dataset.ckeFiller=!0,e.innerHTML=" ",e},s=t=>{const e=t.createElement("br");return e.dataset.ckeFiller=!0,e},u=7,l="".repeat(u);function c(t){return Object(r.a)(t)&&t.data.substr(0,u)===l}function d(t){return t.data.length==u&&c(t)}function f(t){return c(t)?t.data.slice(u):t.data}function h(t){t.document.on("arrowKey",p,{priority:"low"})}function p(t,e){if(e.keyCode==i.f.arrowleft){const t=e.domTarget.ownerDocument.defaultView.getSelection();if(1==t.rangeCount&&t.getRangeAt(0).collapsed){const e=t.getRangeAt(0).startContainer,n=t.getRangeAt(0).startOffset;c(e)&&n<=u&&t.collapse(e,0)}}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(0)),o={debug:!1,info:!1,warn:!1,error:!1},a=!1,s=!1,u={debug:function(){o.debug&&(window.Rollbar&&window.Rollbar.debug.apply(window.Rollbar,arguments),console.debug.apply(console,arguments))},info:function(){o.info&&(window.Rollbar&&window.Rollbar.info.apply(window.Rollbar,arguments),console.info.apply(console,arguments))},forceInfo:function(){window.Rollbar&&window.Rollbar.info.apply(window.Rollbar,arguments),console.info.apply(console,arguments)},devWarn:function(){return a?u.warn.apply(this,arguments):u.info.apply(this,arguments)},warn:function(){o.warn&&(window.Rollbar&&window.Rollbar.warn.apply(window.Rollbar,arguments),console.warn.apply(console,arguments))},error:function(){o.error&&(window.Rollbar&&window.Rollbar.error.apply(window.Rollbar,arguments),console.error.apply(console,arguments))},init:function(t){o=r.default.defaults(t.modes||{},o),a=t.emitDevWarnings,s=r.default.reduce(o,(function(t,e,n){return t||e}),s)},isEnabled:function(t){return r.default.isUndefined(t)?s:o[t]}};u.d=u.debug,u.i=u.info,u.w=u.warn,u.e=u.error,u.fi=u.forceInfo,e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var i=n(136),r=n(139),o=n(27),a=n(91),s=n(54);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class u extends i.a{constructor(t,e,n){super(e),this.name=t,this._children=new r.a,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}is(t,e=null){return e?e===this.name&&("element"===t||"model:element"===t):"element"===t||"model:element"===t||"node"===t||"model:node"===t}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}findAncestor(t,e={includeSelf:!1}){let n=e.includeSelf?this:this.parent;for(;n;){if(n.name===t)return n;n=n.parent}return null}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length>0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map(t=>t._clone(!0)):null;return new u(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){if("string"==typeof t)return[new o.default(t)];Object(s.a)(t)||(t=[t]);return Array.from(t).map(t=>"string"==typeof t?new o.default(t):t instanceof a.a?new o.default(t.data,t.getAttributes()):t)}(e);for(const t of n)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const t of n)t.parent=null;return n}static fromJSON(t){let e=null;if(t.children){e=[];for(const n of t.children)n.name?e.push(u.fromJSON(n)):e.push(o.default.fromJSON(n))}return new u(t.name,t.attributes,e)}}},function(t,e,n){"use strict";n.d(e,"f",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"b",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"c",(function(){return h})),n.d(e,"e",(function(){return p}));var i=n(1),r=n(90);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
const o={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},a={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},s=function(){const t={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let e=65;e<=90;e++){const n=String.fromCharCode(e);t[n.toLowerCase()]=e}for(let e=48;e<=57;e++)t[e-48]=e;for(let e=112;e<=123;e++)t["f"+(e-111)]=e;return t}(),u=Object.fromEntries(Object.entries(s).map(([t,e])=>[e,t.charAt(0).toUpperCase()+t.slice(1)]));function l(t){let e;if("string"==typeof t){if(e=s[t.toLowerCase()],!e)throw new i.default("keyboard-unknown-key",null,{key:t})}else e=t.keyCode+(t.altKey?s.alt:0)+(t.ctrlKey?s.ctrl:0)+(t.shiftKey?s.shift:0)+(t.metaKey?s.cmd:0);return e}function c(t){return"string"==typeof t&&(t=function(t){return t.split("+").map(t=>t.trim())}(t)),t.map(t=>"string"==typeof t?function(t){if(t.endsWith("!"))return l(t.slice(0,-1));const e=l(t);return r.a.isMac&&e==s.ctrl?s.cmd:e}(t):t).reduce((t,e)=>e+t,0)}function d(t){let e=c(t);return Object.entries(r.a.isMac?o:a).reduce((t,[n,i])=>(0!=(e&s[n])&&(e&=~s[n],t+=i),t),"")+(e?u[e]:"")}function f(t){return t==s.arrowright||t==s.arrowleft||t==s.arrowup||t==s.arrowdown}function h(t,e){const n="ltr"===e;switch(t){case s.arrowleft:return n?"left":"right";case s.arrowright:return n?"right":"left";case s.arrowup:return"up";case s.arrowdown:return"down"}}function p(t,e){const n=h(t,e);return"down"===n||"right"===n}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n(136);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/class r extends i.a{constructor(t,e){super(e),this._data=t||""}get offsetSize(){return this.data.length}get data(){return this._data}is(t){return"$text"===t||"model:$text"===t||"text"===t||"model:text"===t||"node"===t||"model:node"===t}toJSON(){const t=super.toJSON();return t.data=this.data,t}_clone(){return new r(this.data,this.getAttributes())}static fromJSON(t){return new r(t.data,t.attributes)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n(55),r=n(4),o=n(2),a=n.n(o),s=n(1),u=n(62),l=n(92);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class c extends i.a{constructor(t,e,n,i){super(i),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toNext",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const t=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,t,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent,n=this.sourcePosition.offset,i=this.targetPosition.offset;if(n+this.howMany>t.maxOffset)throw new s.default("move-operation-nodes-do-not-exist",this);if(t===e&&n=n&&this.targetPosition.path[t]0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},r=this&&this.__spread||function(){for(var t=[],e=0;e"}})),e.TextPlusCommands={LETTER_SPACING:"letterSpacing",LETTER_SPACING_INCREMENT:"letterSpacingIncrement",FONT_COLOR:"fontColor",FONT_COLOR_RETAIN_OPACITY:"fontColorRetainOpacity",FONT_COLOR_OPACITY:"fontColorOpacity",FONT_SIZE:"fontSize",FONT_SIZE_INCREMENT:"fontSizeIncrement",ALIGNMENT:"alignment",TEXT_CASE:"textCase",UNDERLINE:"underline",TEXT_ALIGN:"textAlign",FONT_FAMILY:"fontFamily",LINK:"hyperlink",LINE_HEIGHT:"lineHeight",LINE_HEIGHT_INCREMENT:"lineHeightIncrement",LINE_HEIGHT_REFRESH:"lineHeightRefresh",HTML_TAG:"htmlTag",LIST_MARKER_STYLES:"listMarkerStyles"},e.TextPlusCommandNames={FONT_FAMILY:"FontFamily",LETTER_SPACING:"letterSpacing",FONT_COLOR:"FontColorPlus",UNDERLINE_PLUS:"UnderlinePlus",FONT_SIZE:"FontSizePlus",TEXT_CASE:"textCase",SUPERSCRIPT:"superscript",SUBSCRIPT:"subscript",LINK_PLUS:"LinkPlus",INDENT_LIST:"indentList",OUTDENT_LIST:"outdentList",LINK_PLUS_UI:"LinkPlusUi",SELECT_ALL:"selectAll",LINE_HEIGHT:"LineHeight",LINE_HEIGHT_INCREMENT:"lineHeightIncrement",LINE_HEIGHT_REFRESH:"lineHeightRefresh",LIST_MARKER_STYLES:"listMarkerStyles",BASE_OFFSET_APPLY:"BaseOffsetApply",BASE_OFFSET_LISTENER:"BaseOffsetListener"},e.TextPlusStyleAttributes={LETTER_SPACING:"letter-spacing",TEXT_CASE:"text-transform",FONT_SIZE:"font-size",UNDERLINE:"text-decoration",TEXT_ALIGN:"text-align",LINE_HEIGHT:"line-height",FONT_COLOR:"color",BASE_OFFSET_ATTRIBUTE:"margin-top"},e.IGNORE_DEBOUNCE_COMMANDS=r(Object.values(e.TextPlusCommands).filter((function(t){return"listMarkerStyles"!==t}))),e.SOFTBREAK_CHARACTER="\v",e.ZERO_WIDTH_SPACE="",e.LINE_HEIGHT_MODE={NO_BASELINE_OFFSET:"no_baseline_offset",USE_BASELINE_OFFSET:"use_baseline_offset"},e.IS_RENDERING_PLACEHOLDERS="is-rendering-placeholders",e.SUPERSCRIPT_FONT_SIZE_RATIO=.83},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ActionModelOptions=void 0;var i=n(134);e.ActionModelOptions=function(t){return i.BackboneShim(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(124);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/class r extends i.a{constructor(t,e){super(t),this._textData=e}is(t){return"$text"===t||"view:$text"===t||"text"===t||"view:text"===t||"node"===t||"view:node"===t}get data(){return this._textData}get _data(){return this.data}set _data(t){this._fireChange("text",this),this._textData=t}isSimilar(t){return t instanceof r&&(this===t||this.data===t.data)}_clone(){return new r(this.document,this.data)}}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var i=n(63),r=n(135);e.a=function(t){return null!=t&&Object(r.a)(t.length)&&!Object(i.a)(t)}},function(t,e,n){"use strict";var i=n(270),r=n(16),o=n(138);var a=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},s=Object.prototype.hasOwnProperty;var u=function(t){if(!Object(r.a)(t))return a(t);var e=Object(o.a)(t),n=[];for(var i in t)("constructor"!=i||!e&&s.call(t,i))&&n.push(i);return n},l=n(33);e.a=function(t){return Object(l.a)(t)?Object(i.a)(t,!0):u(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n(55),r=n(51),o=n(4),a=n(2),s=n.n(a),u=n(92),l=n(1);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class c extends i.a{constructor(t,e,n,i,r){super(r),this.splitPosition=t.clone(),this.splitPosition.stickiness="toNext",this.howMany=e,this.insertionPosition=n,this.graveyardPosition=i?i.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const t=this.insertionPosition.path.slice();return t.push(0),new o.default(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new s.a(this.splitPosition,t)}clone(){return new this.constructor(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.splitPosition.root.document.graveyard,e=new o.default(t,[0]);return new r.a(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){const t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset{this.set(e,t[e])},this);h(this);const n=this[s];if(t in this&&!n.has(t))throw new r.default("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n.get(t),set(e){const i=n.get(t);let r=this.fire("set:"+t,t,e,i);void 0===r&&(r=e),i===r&&n.has(t)||(n.set(t,r),this.fire("change:"+t,t,r,i))}}),this[t]=e},bind(...t){if(!t.length||!m(t))throw new r.default("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new r.default("observable-bind-duplicate-properties",this);h(this);const e=this[l];t.forEach(t=>{if(e.has(t))throw new r.default("observable-bind-rebind",this)});const n=new Map;return t.forEach(t=>{const i={property:t,to:[]};e.set(t,i),n.set(t,i)}),{to:p,toMany:g,_observable:this,_bindProperties:t,_to:[],_bindings:n}},unbind(...t){if(!this[s])return;const e=this[l],n=this[u];if(t.length){if(!m(t))throw new r.default("observable-unbind-wrong-properties",this);t.forEach(t=>{const i=e.get(t);if(!i)return;let r,o,a,s;i.to.forEach(t=>{r=t[0],o=t[1],a=n.get(r),s=a[o],s.delete(i),s.size||delete a[o],Object.keys(a).length||(n.delete(r),this.stopListening(r,"change"))}),e.delete(t)})}else n.forEach((t,e)=>{this.stopListening(e,"change")}),n.clear(),e.clear()},decorate(t){const e=this[t];if(!e)throw new r.default("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,(t,n)=>{t.return=e.apply(this,n)}),this[t]=function(...e){return this.fire(t,e)},this[t][d]=e,this[c]||(this[c]=[]),this[c].push(t)}};function h(t){t[s]||(Object.defineProperty(t,s,{value:new Map}),Object.defineProperty(t,u,{value:new Map}),Object.defineProperty(t,l,{value:new Map}))}function p(...t){const e=function(...t){if(!t.length)throw new r.default("observable-bind-to-parse-error",null);const e={to:[]};let n;"function"==typeof t[t.length-1]&&(e.callback=t.pop());return t.forEach(t=>{if("string"==typeof t)n.properties.push(t);else{if("object"!=typeof t)throw new r.default("observable-bind-to-parse-error",null);n={observable:t,properties:[]},e.to.push(n)}}),e}(...t),n=Array.from(this._bindings.keys()),i=n.length;if(!e.callback&&e.to.length>1)throw new r.default("observable-bind-to-no-callback",this);if(i>1&&e.callback)throw new r.default("observable-bind-to-extra-callback",this);var o;e.to.forEach(t=>{if(t.properties.length&&t.properties.length!==i)throw new r.default("observable-bind-to-properties-length",this);t.properties.length||(t.properties=this._bindProperties)}),this._to=e.to,e.callback&&(this._bindings.get(n[0]).callback=e.callback),o=this._observable,this._to.forEach(t=>{const e=o[u];let n;e.get(t.observable)||o.listenTo(t.observable,"change",(i,r)=>{n=e.get(t.observable)[r],n&&n.forEach(t=>{v(o,t.property)})})}),function(t){let e;t._bindings.forEach((n,i)=>{t._to.forEach(r=>{e=r.properties[n.callback?0:t._bindProperties.indexOf(i)],n.to.push([r.observable,e]),function(t,e,n,i){const r=t[u],o=r.get(n),a=o||{};a[i]||(a[i]=new Set);a[i].add(e),o||r.set(n,a)}(t._observable,n,r.observable,e)})})}(this),this._bindProperties.forEach(t=>{v(this._observable,t)})}function g(t,e,n){if(this._bindings.size>1)throw new r.default("observable-bind-to-many-not-one-binding",this);this.to(...function(t,e){const n=t.map(t=>[t,e]);return Array.prototype.concat.apply([],n)}(t,e),n)}function m(t){return t.every(t=>"string"==typeof t)}function v(t,e){const n=t[l].get(e);let i;n.callback?i=n.callback.apply(t,n.to.map(t=>t[0][t[1]])):(i=n.to[0],i=i[0][i[1]]),Object.prototype.hasOwnProperty.call(t,e)?t[e]=i:t.set(e,i)}Object(a.a)(f,i.default),f.stopListening=function(t,e,n){if(!t&&this[c]){for(const t of this[c])this[t]=this[t][d];delete this[c]}i.default.stopListening.call(this,t,e,n)},e.default=f},function(t,e,n){"use strict";var i=n(49),r=n(33),o=n(74),a=n(16);e.a=function(t,e,n){if(!Object(a.a)(n))return!1;var s=typeof e;return!!("number"==s?Object(r.a)(n)&&Object(o.a)(e,n.length):"string"==s&&e in n)&&Object(i.a)(n[e],t)}},function(t,e,n){"use strict";var i=n(50),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i.a?i.a.toStringTag:void 0;var u=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var r=a.call(t);return i&&(e?t[s]=n:delete t[s]),r},l=Object.prototype.toString;var c=function(t){return l.call(t)},d=i.a?i.a.toStringTag:void 0;e.a=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":d&&d in Object(t)?u(t):c(t)}},function(t,e,n){"use strict";
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/e.a={window:window,document:document}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n(191),r=n(217),o=n(282),a=n(60),s=n(189);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
const u=["top","right","bottom","left","width","height"];class l{constructor(t){const e=Object(i.a)(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),Object(s.a)(t)||e)if(e){const e=l.getDomRangeRects(t);c(this,l.getBoundingRect(e))}else c(this,t.getBoundingClientRect());else if(Object(r.a)(t)){const{innerWidth:e,innerHeight:n}=t;c(this,{top:0,right:e,bottom:n,left:0,width:e,height:n})}else c(this,t)}clone(){return new l(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left)};return e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0?null:new l(e)}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(!d(t)){let n=t.parentNode||t.commonAncestorContainer;for(;n&&!d(n);){const t=new l(n),i=e.getIntersection(t);if(!i)return null;i.getArea()1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(X,"{\n/* [wrapped with "+e+"] */\n")},Z=n(213),Q=n(71);var tt=function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o-1},ot=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var at=function(t,e){return Object(Q.a)(ot,(function(n){var i="_."+n[0];e&n[1]&&!rt(t,i)&&t.push(i)})),t.sort()};var st=function(t,e,n){var i=e+"";return Object(Z.a)(t,J(i,at(K(i),n)))};var ut=function(t,e,n,i,r,o,a,s,u,l){var c=8&e;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var d=[t,e,r,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,u,l],f=n.apply(void 0,d);return W(t)&&$(f,d),f.placeholder=i,st(f,t,e)};var lt=function(t){return t.placeholder},ct=n(74),dt=Math.min;var ft=function(t,e){for(var n=t.length,i=dt(e.length,n),r=Object(V.a)(t);i--;){var o=e[i];t[i]=Object(ct.a)(o,n)?r[o]:void 0}return t};var ht=function(t,e){for(var n=-1,i=t.length,r=0,o=[];++n1&&w.reverse(),d&&l0&&i(u)?n>1?t(u,n-1,i,r,o):Object(Kt.a)(o,u):r||(o[o.length]=u)}return o};var ee=function(t){return(null==t?0:t.length)?te(t,1):[]},ne=n(269);var ie=function(t){return Object(Z.a)(Object(ne.a)(t,void 0,ee),t+"")},re=ie(Yt),oe=n(7),ae=n(38),se=n(65);var ue=function(t){if(!Object(F.a)(t))return!1;var e=Object(ae.a)(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Object(se.a)(t)},le=Object(oe.a)((function(t,e){try{return Object(w.a)(t,void 0,e)}catch(t){return ue(t)?t:new Error(t)}}));var ce=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=c(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}},de=Object(oe.a)((function(t,e,n){var i=1;if(n.length){var r=ht(n,lt(de));i|=32}return bt(t,i,e,n,r)}));de.placeholder={};var fe=de,he=n(75),pe=ie((function(t,e){return Object(Q.a)(e,(function(e){e=zt(e),Object(he.a)(t,e,fe(t[e],t))})),t})),ge=Object(oe.a)((function(t,e,n){var i=3;if(n.length){var r=ht(n,lt(ge));i|=32}return bt(e,i,t,n,r)}));ge.placeholder={};var me=ge;var ve=function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i=i?t:ve(t,e,n)},_e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var be=function(t){return _e.test(t)};var we=function(t){return t.split("")},Te="[\\ud800-\\udfff]",Se="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ee="\\ud83c[\\udffb-\\udfff]",Oe="[^\\ud800-\\udfff]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="(?:"+Se+"|"+Ee+")"+"?",xe="[\\ufe0e\\ufe0f]?"+Ce+("(?:\\u200d(?:"+[Oe,Ae,Pe].join("|")+")[\\ufe0e\\ufe0f]?"+Ce+")*"),Ie="(?:"+[Oe+Se+"?",Se,Ae,Pe,Te].join("|")+")",ke=RegExp(Ee+"(?="+Ee+")|"+Ie+xe,"g");var Me=function(t){return t.match(ke)||[]};var Re=function(t){return be(t)?Me(t):we(t)};var Ne=function(t){return function(e){e=Object(Gt.a)(e);var n=be(e)?Re(e):void 0,i=n?n[0]:e.charAt(0),r=n?ye(n,1).join(""):e.slice(1);return i[t]()+r}},De=Ne("toUpperCase");var Le=function(t){return De(Object(Gt.a)(t).toLowerCase())};var je=function(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r=e?t:e)),t};var On=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=Object(u.a)(n))==n?n:0),void 0!==e&&(e=(e=Object(u.a)(e))==e?e:0),En(Object(u.a)(t),e,n)},An=n(238),Pn=n(108),Cn=n(236),xn=n(76);var In=function(t,e){return e="function"==typeof e?e:void 0,Object(xn.a)(t,4,e)};var kn=function(){return new L(this.value(),this.__chain__)};var Mn=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e2?e[2]:void 0;for(r&&Object(bn.a)(e[0],e[1],r)&&(i=1);++n=200&&(o=$i.a,a=!1,e=new Gi.a(e));t:for(;++r=0&&t.slice(n,r)==e};var fr=function(t,e){return Object(Nn.a)(e,(function(e){return[e,t[e]]}))},hr=n(70),pr=n(209);var gr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n};var mr=function(t){return function(e){var n=Object(hr.a)(e);return"[object Map]"==n?Object(pr.a)(e):"[object Set]"==n?gr(e):fr(e,t(e))}},vr=mr(Pt.a),yr=mr(kt.a),_r=Fe({"&":"&","<":"<",">":">",'"':""","'":"'"}),br=/[&<>"']/g,wr=RegExp(br.source);var Tr=function(t){return(t=Object(Gt.a)(t))&&wr.test(t)?t.replace(br,_r):t},Sr=n(261);var Er=function(t,e){for(var n=-1,i=null==t?0:t.length;++nr?0:r+n),(i=void 0===i||i>r?r:c(i))<0&&(i+=r),i=n>i?0:Pr(i);n-1?r[o?e[a]:a]:void 0}},Nr=Math.max;var Dr=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:c(n);return r<0&&(r=Nr(i+r,0)),tt(t,Xn(e,3),r)},Lr=Rr(Dr);var jr=function(t,e,n){var i;return n(t,(function(t,n,r){if(e(t,n,r))return i=n,!1})),i};var Fr=function(t,e){return jr(t,Xn(e,3),ai)},Vr=Math.max,Br=Math.min;var Ur=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==n&&(r=c(n),r=n<0?Vr(i+r,0):Br(r,i-1)),tt(t,Xn(e,3),r,!0)},Hr=Rr(Ur);var Gr=function(t,e){return jr(t,Xn(e,3),ur)};var Wr=function(t){return t&&t.length?t[0]:void 0};var zr=function(t,e){var n=-1,i=Object(Ot.a)(t)?Array(t.length):[];return ui(t,(function(t,r,o){i[++n]=e(t,r,o)})),i};var $r=function(t,e){return(Object(j.a)(t)?Nn.a:zr)(t,Xn(e,3))};var qr=function(t,e){return te($r(t,e),1)};var Yr=function(t,e){return te($r(t,e),1/0)};var Kr=function(t,e,n){return n=void 0===n?1:c(n),te($r(t,e),n)};var Xr=function(t){return(null==t?0:t.length)?te(t,1/0):[]};var Jr=function(t,e){return(null==t?0:t.length)?(e=void 0===e?1:c(e),te(t,e)):[]};var Zr=function(t){return bt(t,512)},Qr=vn("floor");var to=function(t){return ie((function(e){var n=e.length,i=n,r=L.prototype.thru;for(t&&e.reverse();i--;){var o=e[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!a&&"wrapper"==N(o))var a=new L([],!0)}for(i=a?i:n;++ie};var go=function(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Object(u.a)(e),n=Object(u.a)(n)),t(e,n)}},mo=go(po),vo=go((function(t,e){return t>=e})),yo=Object.prototype.hasOwnProperty;var _o=function(t,e){return null!=t&&yo.call(t,e)};var bo=function(t,e){return null!=t&&Wn(t,e,_o)},wo=Math.max,To=Math.min;var So=function(t,e,n){return t>=To(e,n)&&t-1:!!r&&it(t,e,n)>-1},Io=Math.max;var ko=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:c(n);return r<0&&(r=Io(i+r,0)),it(t,e,r)};var Mo=function(t){return(null==t?0:t.length)?ve(t,0,-1):[]},Ro=Math.min;var No=function(t,e,n){for(var i=n?Wi:rt,r=t[0].length,o=t.length,a=o,s=Array(o),u=1/0,l=[];a--;){var c=t[a];a&&e&&(c=Object(Nn.a)(c,Object(zi.a)(e))),u=Ro(c.length,u),s[a]=!n&&(e||r>=120&&c.length>=120)?new Gi.a(a&&c):void 0}c=t[0];var d=-1,f=s[0];t:for(;++d=-9007199254740991&&t<=9007199254740991},Ia=n(201);var ka=function(t){return void 0===t};var Ma=function(t){return Object(F.a)(t)&&"[object WeakMap]"==Object(hr.a)(t)};var Ra=function(t){return Object(F.a)(t)&&"[object WeakSet]"==Object(ae.a)(t)};var Na=function(t){return Xn("function"==typeof t?t:Object(xn.a)(t,1))},Da=Array.prototype.join;var La=function(t,e){return null==t?"":Da.call(t,e)},ja=fn((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Fa=ci((function(t,e,n){Object(he.a)(t,n,e)}));var Va=function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i},Ba=Math.max,Ua=Math.min;var Ha=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==n&&(r=(r=c(n))<0?Ba(i+r,0):Ua(r,i-1)),e==e?Va(t,e,r):tt(t,et,r,!0)},Ga=fn((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Wa=Ne("toLowerCase");var za=function(t,e){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},ys=n(171);var _s=function(t,e){var n=t.length;if(n)return e+=e<0?n:0,Object(ct.a)(e,n)?t[e]:void 0};var bs=function(t,e){return t&&t.length?_s(t,c(e)):void 0};var ws=function(t){return t=c(t),Object(oe.a)((function(e){return _s(e,t)}))};var Ts=function(t,e){return e=Wt(e,t),null==(t=qo(t,e))||delete t[zt(Ki(e))]};var Ss=function(t){return Object(se.a)(t)?void 0:t},Es=n(206),Os=ie((function(t,e){var n={};if(null==t)return n;var i=!1;e=Object(Nn.a)(e,(function(e){return e=Wt(e,t),i||(i=e.length>1),e})),Object(St.a)(t,Object(Es.a)(t),n),i&&(n=Object(xn.a)(n,7,Ss));for(var r=e.length;r--;)Ts(n,e[r]);return n}));var As=function(t,e,n,i){if(!Object(v.a)(t))return t;for(var r=-1,o=(e=Wt(e,t)).length,a=o-1,s=t;null!=s&&++re||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&t=s?u:u*("desc"==n[i]?-1:1)}return t.index-e.index};var Ns=function(t,e,n){e=e.length?Object(Nn.a)(e,(function(t){return Object(j.a)(t)?function(e){return $t(e,1===t.length?t[0]:t)}:t})):[f.a];var i=-1;e=Object(Nn.a)(e,Object(zi.a)(Xn));var r=zr(t,(function(t,n,r){return{criteria:Object(Nn.a)(e,(function(e){return e(t)})),index:++i,value:t}}));return ks(r,(function(t,e){return Rs(t,e,n)}))};var Ds=function(t,e,n,i){return null==t?[]:(Object(j.a)(e)||(e=null==e?[]:[e]),n=i?void 0:n,Object(j.a)(n)||(n=null==n?[]:[n]),Ns(t,e,n))};var Ls=function(t){return ie((function(e){return e=Object(Nn.a)(e,Object(zi.a)(Xn)),Object(oe.a)((function(n){var i=this;return t(e,(function(t){return Object(w.a)(t,i,n)}))}))}))},js=Ls(Nn.a),Fs=oe.a,Vs=Math.min,Bs=Fs((function(t,e){var n=(e=1==e.length&&Object(j.a)(e[0])?Object(Nn.a)(e[0],Object(zi.a)(Xn)):Object(Nn.a)(te(e,1),Object(zi.a)(Xn))).length;return Object(oe.a)((function(i){for(var r=-1,o=Vs(i.length,n);++r9007199254740991)return n;do{e%2&&(n+=t),(e=Ws(e/2))&&(t+=t)}while(e);return n},$s=qn("length"),qs="[\\ud800-\\udfff]",Ys="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ks="[^\\ud800-\\udfff]",Xs="(?:\\ud83c[\\udde6-\\uddff]){2}",Js="[\\ud800-\\udbff][\\udc00-\\udfff]",Zs="(?:"+Ys+"|\\ud83c[\\udffb-\\udfff])"+"?",Qs="[\\ufe0e\\ufe0f]?"+Zs+("(?:\\u200d(?:"+[Ks,Xs,Js].join("|")+")[\\ufe0e\\ufe0f]?"+Zs+")*"),tu="(?:"+[Ks+Ys+"?",Ys,Xs,Js,qs].join("|")+")",eu=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+tu+Qs,"g");var nu=function(t){for(var e=eu.lastIndex=0;eu.test(t);)++e;return e};var iu=function(t){return be(t)?nu(t):$s(t)},ru=Math.ceil;var ou=function(t,e){var n=(e=void 0===e?" ":Object(o.a)(e)).length;if(n<2)return n?zs(e,t):e;var i=zs(e,ru(t/iu(e)));return be(e)?ye(Re(i),0,t).join(""):i.slice(0,t)},au=Math.ceil,su=Math.floor;var uu=function(t,e,n){t=Object(Gt.a)(t);var i=(e=c(e))?iu(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return ou(su(r),n)+t+ou(au(r),n)};var lu=function(t,e,n){t=Object(Gt.a)(t);var i=(e=c(e))?iu(t):0;return e&&i-1;)s!==t&&Eu.call(s,u,1),Eu.call(t,u,1);return t};var Au=function(t,e){return t&&t.length&&e&&e.length?Ou(t,e):t},Pu=Object(oe.a)(Au);var Cu=function(t,e,n){return t&&t.length&&e&&e.length?Ou(t,e,Xn(n,2)):t};var xu=function(t,e,n){return t&&t.length&&e&&e.length?Ou(t,e,void 0,n):t},Iu=Array.prototype.splice;var ku=function(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;Object(ct.a)(r)?Iu.call(t,r,1):Ts(t,r)}}return t},Mu=ie((function(t,e){var n=null==t?0:t.length,i=Yt(t,e);return ku(t,Object(Nn.a)(e,(function(t){return Object(ct.a)(t,n)?+t:t})).sort(Ms)),i})),Ru=Math.floor,Nu=Math.random;var Du=function(t,e){return t+Ru(Nu()*(e-t+1))},Lu=parseFloat,ju=Math.min,Fu=Math.random;var Vu=function(t,e,n){if(n&&"boolean"!=typeof n&&Object(bn.a)(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=l(t),void 0===e?(e=t,t=0):e=l(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var r=Fu();return ju(t+r*(e-t+Lu("1e-"+((r+"").length-1))),e)}return Du(t,e)},Bu=Math.ceil,Uu=Math.max;var Hu=function(t,e,n,i){for(var r=-1,o=Uu(Bu((e-t)/(n||1)),0),a=Array(o);o--;)a[i?o:++r]=t,t+=n;return a};var Gu=function(t){return function(e,n,i){return i&&"number"!=typeof i&&Object(bn.a)(e,n,i)&&(n=i=void 0),e=l(e),void 0===n?(n=e,e=0):n=l(n),i=void 0===i?e1&&Object(bn.a)(t,e[0],e[1])?e=[]:n>2&&Object(bn.a)(e[0],e[1],e[2])&&(e=[e[0]]),Ns(t,te(e,1),[])})),El=Math.floor,Ol=Math.min;var Al=function(t,e,n,r){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(e=n(e))!=e,u=null===e,l=Object(i.a)(e),c=void 0===e;o>>1,s=t[a];null!==s&&!Object(i.a)(s)&&(n?s<=e:s>>0)?(t=Object(Gt.a)(t))&&("string"==typeof e||null!=e&&!Ca(e))&&!(e=Object(o.a)(e))&&be(t)?ye(Re(t),0,n):t.split(e,n):[]},Fl=Math.max;var Vl=function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=null==e?0:Fl(c(e),0),Object(oe.a)((function(n){var i=n[e],r=ye(n,0,e);return i&&Object(Kt.a)(r,i),Object(w.a)(t,this,r)}))},Bl=fn((function(t,e,n){return t+(n?" ":"")+De(e)}));var Ul=function(t,e,n){return t=Object(Gt.a)(t),n=null==n?0:En(c(n),0,t.length),e=Object(o.a)(e),t.slice(n,n+e.length)==e},Hl=n(163);var Gl=function(){return{}};var Wl=function(){return""};var zl=function(){return!0},$l=a((function(t,e){return t-e}),0);var ql=function(t){return t&&t.length?es(t,f.a):0};var Yl=function(t,e){return t&&t.length?es(t,Xn(e,2)):0};var Kl=function(t){var e=null==t?0:t.length;return e?ve(t,1,e):[]};var Xl=function(t,e,n){return t&&t.length?(e=n||void 0===e?1:c(e),ve(t,0,e<0?0:e)):[]};var Jl=function(t,e,n){var i=null==t?0:t.length;return i?(e=n||void 0===e?1:c(e),ve(t,(e=i-e)<0?0:e,i)):[]};var Zl=function(t,e){return t&&t.length?er(t,Xn(e,3),!1,!0):[]};var Ql=function(t,e){return t&&t.length?er(t,Xn(e,3)):[]};var tc=function(t,e){return e(t),t},ec=Object.prototype,nc=ec.hasOwnProperty;var ic=function(t,e,n,i){return void 0===t||Object(wi.a)(t,ec[n])&&!nc.call(i,n)?e:t},rc={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var oc=function(t){return"\\"+rc[t]},ac=/<%=([\s\S]+?)%>/g,sc={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:ac,variable:"",imports:{_:{escape:Tr}}},uc=/\b__p \+= '';/g,lc=/\b(__p \+=) '' \+/g,cc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dc=/[()=,{}\[\]\/\s]/,fc=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hc=/($^)/,pc=/['\n\r\u2028\u2029\\]/g,gc=Object.prototype.hasOwnProperty;var mc=function(t,e,n){var i=sc.imports._.templateSettings||sc;n&&Object(bn.a)(t,e,n)&&(e=void 0),t=Object(Gt.a)(t),e=Mt({},e,i,ic);var r,o,a=Mt({},e.imports,i.imports,ic),s=Object(Pt.a)(a),u=Ao(a,s),l=0,c=e.interpolate||hc,d="__p += '",f=RegExp((e.escape||hc).source+"|"+c.source+"|"+(c===ac?fc:hc).source+"|"+(e.evaluate||hc).source+"|$","g"),h=gc.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(f,(function(e,n,i,a,s,u){return i||(i=a),d+=t.slice(l,u).replace(pc,oc),n&&(r=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),d+="';\n";var p=gc.call(e,"variable")&&e.variable;if(p){if(dc.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(uc,""):d).replace(lc,"$1").replace(cc,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=le((function(){return Function(s,h+"return "+d).apply(void 0,u)}));if(g.source=d,ue(g))throw g;return g};var vc=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Object(v.a)(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Object(_i.a)(t,e,{leading:i,maxWait:e,trailing:r})};var yc=function(t,e){return e(t)},_c=n(203),bc=Math.min;var wc=function(t,e){if((t=c(t))<1||t>9007199254740991)return[];var n=4294967295,i=bc(t,4294967295);e=rr(e),t-=4294967295;for(var r=Object(_c.a)(i,e);++n-1;);return n};var Rc=function(t,e){for(var n=-1,i=t.length;++n-1;);return n};var Nc=function(t,e,n){if((t=Object(Gt.a)(t))&&(n||void 0===e))return Object(kc.a)(t);if(!t||!(e=Object(o.a)(e)))return t;var i=Re(t),r=Re(e),a=Rc(i,r),s=Mc(i,r)+1;return ye(i,a,s).join("")},Dc=n(279);var Lc=function(t,e,n){if((t=Object(Gt.a)(t))&&(n||void 0===e))return t.slice(0,Object(Dc.a)(t)+1);if(!t||!(e=Object(o.a)(e)))return t;var i=Re(t),r=Mc(i,Re(e))+1;return ye(i,0,r).join("")},jc=/^\s+/;var Fc=function(t,e,n){if((t=Object(Gt.a)(t))&&(n||void 0===e))return t.replace(jc,"");if(!t||!(e=Object(o.a)(e)))return t;var i=Re(t),r=Rc(i,Re(e));return ye(i,r).join("")},Vc=/\w*$/;var Bc=function(t,e){var n=30,i="...";if(Object(v.a)(e)){var r="separator"in e?e.separator:r;n="length"in e?c(e.length):n,i="omission"in e?Object(o.a)(e.omission):i}var a=(t=Object(Gt.a)(t)).length;if(be(t)){var s=Re(t);a=s.length}if(n>=a)return t;var u=n-iu(i);if(u<1)return i;var l=s?ye(s,0,u).join(""):t.slice(0,u);if(void 0===r)return l+i;if(s&&(u+=l.length-u),Ca(r)){if(t.slice(u).search(r)){var d,f=l;for(r.global||(r=RegExp(r.source,Object(Gt.a)(Vc.exec(r))+"g")),r.lastIndex=0;d=r.exec(f);)var h=d.index;l=l.slice(0,void 0===h?u:h)}}else if(t.indexOf(Object(o.a)(r),u)!=u){var p=l.lastIndexOf(r);p>-1&&(l=l.slice(0,p))}return l+i};var Uc=function(t){return wt(t,1)},Hc=Fe({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Gc=/&(?:amp|lt|gt|quot|#39);/g,Wc=RegExp(Gc.source);var zc=function(t){return(t=Object(Gt.a)(t))&&Wc.test(t)?t.replace(Gc,Hc):t},$c=n(182),qc=$c.a&&1/Object(ps.a)(new $c.a([,-0]))[1]==1/0?function(t){return new $c.a(t)}:I;var Yc=function(t,e,n){var i=-1,r=rt,o=t.length,a=!0,s=[],u=s;if(n)a=!1,r=Wi;else if(o>=200){var l=e?null:qc(t);if(l)return Object(ps.a)(l);a=!1,r=$i.a,u=new Gi.a}else u=e?[]:s;t:for(;++i1||this.__actions__.length)&&i instanceof x&&Object(ct.a)(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:yc,args:[r],thisArg:void 0}),new L(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(r)}));var gd=function(){return _n(this)};var md=function(){var t=this.__wrapped__;if(t instanceof x){var e=t;return this.__actions__.length&&(e=new x(this)),(e=e.reverse()).__actions__.push({func:yc,args:[rl],thisArg:void 0}),new L(e,this.__chain__)}return this.thru(rl)};var vd=function(t,e,n){var i=t.length;if(i<2)return i?Yc(t[0]):[];for(var r=-1,o=Array(i);++r1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,ad(t,n)})),Ad={chunk:Sn,compact:Mn,concat:Rn,difference:Yi,differenceBy:Xi,differenceWith:Ji,drop:Qi,dropRight:tr,dropRightWhile:nr,dropWhile:ir,fill:xr,findIndex:Dr,findLastIndex:Ur,first:Wr,flatten:ee,flattenDeep:Xr,flattenDepth:Jr,fromPairs:so,head:Wr,indexOf:ko,initial:Mo,intersection:Lo,intersectionBy:jo,intersectionWith:Fo,join:La,last:Ki,lastIndexOf:Ha,nth:bs,pull:Pu,pullAll:Au,pullAllBy:Cu,pullAllWith:xu,pullAt:Mu,remove:Zu,reverse:rl,slice:_l,sortedIndex:Cl,sortedIndexBy:xl,sortedIndexOf:Il,sortedLastIndex:kl,sortedLastIndexBy:Ml,sortedLastIndexOf:Rl,sortedUniq:Dl,sortedUniqBy:Ll,tail:Kl,take:Xl,takeRight:Jl,takeRightWhile:Zl,takeWhile:Ql,union:Kc,unionBy:Xc,unionWith:Jc,uniq:Zc,uniqBy:Qc,uniqWith:td,unzip:od,unzipWith:ad,without:fd,xor:yd,xorBy:_d,xorWith:bd,zip:wd,zipObject:Sd,zipObjectDeep:Ed,zipWith:Od},Pd={countBy:fi,each:or,eachRight:cr,every:Ar,filter:Mr,find:Lr,findLast:Hr,flatMap:qr,flatMapDeep:Yr,flatMapDepth:Kr,forEach:or,forEachRight:cr,groupBy:ho,includes:xo,invokeMap:Xo,keyBy:Fa,map:$r,orderBy:Ds,partition:yu,reduce:Yu,reduceRight:Xu,reject:Ju,sample:ul,sampleSize:fl,shuffle:vl,size:yl,some:Tl,sortBy:Sl},Cd={now:ys.a},xd={after:d,ary:wt,before:ce,bind:fe,bindKey:me,curry:mi,curryRight:yi,debounce:_i.a,defer:Ui,delay:Hi,flip:Zr,memoize:Vt,negate:fs,once:Is,overArgs:Bs,partial:gu,partialRight:vu,rearg:$u,rest:el,spread:Vl,throttle:vc,unary:Uc,wrap:hd},Id={castArray:pn,clone:An.a,cloneDeep:Pn.a,cloneDeepWith:Cn.a,cloneWith:In,conformsTo:ei,eq:wi.a,gt:mo,gte:vo,isArguments:Jt.a,isArray:j.a,isArrayBuffer:ta,isArrayLike:Ot.a,isArrayLikeObject:xi,isBoolean:ea,isBuffer:Ii.a,isDate:ra,isElement:oa.a,isEmpty:ua,isEqual:la.a,isEqualWith:ca.a,isError:ue,isFinite:fa,isFunction:ki.a,isInteger:ha,isLength:Gn.a,isMap:pa.a,isMatch:ga,isMatchWith:ma,isNaN:ya,isNative:Sa,isNil:Ea,isNull:Oa,isNumber:va,isObject:v.a,isObjectLike:F.a,isPlainObject:se.a,isRegExp:Ca,isSafeInteger:xa,isSet:Ia.a,isString:Oo.a,isSymbol:i.a,isTypedArray:Mi.a,isUndefined:ka,isWeakMap:Ma,isWeakSet:Ra,lt:$a,lte:qa,toArray:ms,toFinite:l,toInteger:c,toLength:Pr,toNumber:u.a,toPlainObject:Ni,toSafeInteger:Pc,toString:Gt.a},kd={add:s,ceil:yn,divide:Zi,floor:Qr,max:Qa,maxBy:ts,mean:is,meanBy:rs,min:us,minBy:ls,multiply:ds,round:ol,subtract:$l,sum:ql,sumBy:Yl},Md={clamp:On,inRange:Eo,random:Vu},Rd={assign:xt,assignIn:It.a,assignInWith:Mt,assignWith:Rt,at:re,create:pi,defaults:Ei,defaultsDeep:Vi,entries:vr,entriesIn:yr,extend:It.a,extendWith:Mt,findKey:Fr,findLastKey:Gr,forIn:io,forInRight:ro,forOwn:oo,forOwnRight:ao,functions:lo,functionsIn:co,get:qt,has:bo,hasIn:zn,invert:Ho,invertBy:$o,invoke:Ko,keys:Pt.a,keysIn:kt.a,mapKeys:Ya,mapValues:Ka,merge:os,mergeWith:Fi,omit:Os,omitBy:xs,pick:bu,pickBy:Cs,result:nl,set:hl,setWith:pl,toPairs:vr,toPairsIn:yr,transform:Ic,unset:id,update:ud,updateWith:ld,values:Po,valuesIn:dd},Nd={at:pd,chain:_n,commit:kn,lodash:G,next:vs,plant:wu,reverse:md,tap:tc,thru:yc,toIterator:Tc,toJSON:Ec,value:Ec,valueOf:Ec,wrapperChain:gd},Dd={camelCase:hn,capitalize:Le,deburr:He,endsWith:dr,escape:Tr,escapeRegExp:Sr.a,kebabCase:ja,lowerCase:Ga,lowerFirst:Wa,pad:uu,padEnd:lu,padStart:cu,parseInt:hu,repeat:Qu,replace:tl,snakeCase:bl,split:jl,startCase:Bl,startsWith:Ul,template:mc,templateSettings:sc,toLower:Oc,toUpper:Cc,trim:Nc,trimEnd:Lc,trimStart:Fc,truncate:Bc,unescape:zc,upperCase:cd,upperFirst:De,words:cn},Ld={attempt:le,bindAll:pe,cond:Jn,conforms:ti,constant:ni.a,defaultTo:bi,flow:eo,flowRight:no,identity:f.a,iteratee:Na,matches:Xa,matchesProperty:Ja,method:as,methodOf:ss,mixin:cs,noop:I,nthArg:ws,over:js,overEvery:Us,overSome:Gs,property:Kn,propertyOf:Tu,range:Wu,rangeRight:zu,stubArray:Hl.a,stubFalse:wa.a,stubObject:Gl,stubString:Wl,stubTrue:zl,times:wc,toPath:Ac,uniqueId:nd};var jd=function(){var t=new x(this.__wrapped__);return t.__actions__=Object(V.a)(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Object(V.a)(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Object(V.a)(this.__views__),t};var Fd=function(){if(this.__filtered__){var t=new x(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Vd=Math.max,Bd=Math.min;var Ud=function(t,e,n){for(var i=-1,r=n.length;++i
* Build: `lodash modularize exports="es" -o ./`
* Copyright OpenJS Foundation and other contributors
* Released under MIT license
* Based on Underscore.js 1.8.3
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/G.after=xd.after,G.ary=xd.ary,G.assign=Rd.assign,G.assignIn=Rd.assignIn,G.assignInWith=Rd.assignInWith,G.assignWith=Rd.assignWith,G.at=Rd.at,G.before=xd.before,G.bind=xd.bind,G.bindAll=Ld.bindAll,G.bindKey=xd.bindKey,G.castArray=Id.castArray,G.chain=Nd.chain,G.chunk=Ad.chunk,G.compact=Ad.compact,G.concat=Ad.concat,G.cond=Ld.cond,G.conforms=Ld.conforms,G.constant=Ld.constant,G.countBy=Pd.countBy,G.create=Rd.create,G.curry=xd.curry,G.curryRight=xd.curryRight,G.debounce=xd.debounce,G.defaults=Rd.defaults,G.defaultsDeep=Rd.defaultsDeep,G.defer=xd.defer,G.delay=xd.delay,G.difference=Ad.difference,G.differenceBy=Ad.differenceBy,G.differenceWith=Ad.differenceWith,G.drop=Ad.drop,G.dropRight=Ad.dropRight,G.dropRightWhile=Ad.dropRightWhile,G.dropWhile=Ad.dropWhile,G.fill=Ad.fill,G.filter=Pd.filter,G.flatMap=Pd.flatMap,G.flatMapDeep=Pd.flatMapDeep,G.flatMapDepth=Pd.flatMapDepth,G.flatten=Ad.flatten,G.flattenDeep=Ad.flattenDeep,G.flattenDepth=Ad.flattenDepth,G.flip=xd.flip,G.flow=Ld.flow,G.flowRight=Ld.flowRight,G.fromPairs=Ad.fromPairs,G.functions=Rd.functions,G.functionsIn=Rd.functionsIn,G.groupBy=Pd.groupBy,G.initial=Ad.initial,G.intersection=Ad.intersection,G.intersectionBy=Ad.intersectionBy,G.intersectionWith=Ad.intersectionWith,G.invert=Rd.invert,G.invertBy=Rd.invertBy,G.invokeMap=Pd.invokeMap,G.iteratee=Ld.iteratee,G.keyBy=Pd.keyBy,G.keys=Pt.a,G.keysIn=Rd.keysIn,G.map=Pd.map,G.mapKeys=Rd.mapKeys,G.mapValues=Rd.mapValues,G.matches=Ld.matches,G.matchesProperty=Ld.matchesProperty,G.memoize=xd.memoize,G.merge=Rd.merge,G.mergeWith=Rd.mergeWith,G.method=Ld.method,G.methodOf=Ld.methodOf,G.mixin=Jd,G.negate=fs,G.nthArg=Ld.nthArg,G.omit=Rd.omit,G.omitBy=Rd.omitBy,G.once=xd.once,G.orderBy=Pd.orderBy,G.over=Ld.over,G.overArgs=xd.overArgs,G.overEvery=Ld.overEvery,G.overSome=Ld.overSome,G.partial=xd.partial,G.partialRight=xd.partialRight,G.partition=Pd.partition,G.pick=Rd.pick,G.pickBy=Rd.pickBy,G.property=Ld.property,G.propertyOf=Ld.propertyOf,G.pull=Ad.pull,G.pullAll=Ad.pullAll,G.pullAllBy=Ad.pullAllBy,G.pullAllWith=Ad.pullAllWith,G.pullAt=Ad.pullAt,G.range=Ld.range,G.rangeRight=Ld.rangeRight,G.rearg=xd.rearg,G.reject=Pd.reject,G.remove=Ad.remove,G.rest=xd.rest,G.reverse=Ad.reverse,G.sampleSize=Pd.sampleSize,G.set=Rd.set,G.setWith=Rd.setWith,G.shuffle=Pd.shuffle,G.slice=Ad.slice,G.sortBy=Pd.sortBy,G.sortedUniq=Ad.sortedUniq,G.sortedUniqBy=Ad.sortedUniqBy,G.split=Dd.split,G.spread=xd.spread,G.tail=Ad.tail,G.take=Ad.take,G.takeRight=Ad.takeRight,G.takeRightWhile=Ad.takeRightWhile,G.takeWhile=Ad.takeWhile,G.tap=Nd.tap,G.throttle=xd.throttle,G.thru=yc,G.toArray=Id.toArray,G.toPairs=Rd.toPairs,G.toPairsIn=Rd.toPairsIn,G.toPath=Ld.toPath,G.toPlainObject=Id.toPlainObject,G.transform=Rd.transform,G.unary=xd.unary,G.union=Ad.union,G.unionBy=Ad.unionBy,G.unionWith=Ad.unionWith,G.uniq=Ad.uniq,G.uniqBy=Ad.uniqBy,G.uniqWith=Ad.uniqWith,G.unset=Rd.unset,G.unzip=Ad.unzip,G.unzipWith=Ad.unzipWith,G.update=Rd.update,G.updateWith=Rd.updateWith,G.values=Rd.values,G.valuesIn=Rd.valuesIn,G.without=Ad.without,G.words=Dd.words,G.wrap=xd.wrap,G.xor=Ad.xor,G.xorBy=Ad.xorBy,G.xorWith=Ad.xorWith,G.zip=Ad.zip,G.zipObject=Ad.zipObject,G.zipObjectDeep=Ad.zipObjectDeep,G.zipWith=Ad.zipWith,G.entries=Rd.toPairs,G.entriesIn=Rd.toPairsIn,G.extend=Rd.assignIn,G.extendWith=Rd.assignInWith,Jd(G,G),G.add=kd.add,G.attempt=Ld.attempt,G.camelCase=Dd.camelCase,G.capitalize=Dd.capitalize,G.ceil=kd.ceil,G.clamp=Md.clamp,G.clone=Id.clone,G.cloneDeep=Id.cloneDeep,G.cloneDeepWith=Id.cloneDeepWith,G.cloneWith=Id.cloneWith,G.conformsTo=Id.conformsTo,G.deburr=Dd.deburr,G.defaultTo=Ld.defaultTo,G.divide=kd.divide,G.endsWith=Dd.endsWith,G.eq=Id.eq,G.escape=Dd.escape,G.escapeRegExp=Dd.escapeRegExp,G.every=Pd.every,G.find=Pd.find,G.findIndex=Ad.findIndex,G.findKey=Rd.findKey,G.findLast=Pd.findLast,G.findLastIndex=Ad.findLastIndex,G.findLastKey=Rd.findLastKey,G.floor=kd.floor,G.forEach=Pd.forEach,G.forEachRight=Pd.forEachRight,G.forIn=Rd.forIn,G.forInRight=Rd.forInRight,G.forOwn=Rd.forOwn,G.forOwnRight=Rd.forOwnRight,G.get=Rd.get,G.gt=Id.gt,G.gte=Id.gte,G.has=Rd.has,G.hasIn=Rd.hasIn,G.head=Ad.head,G.identity=f.a,G.includes=Pd.includes,G.indexOf=Ad.indexOf,G.inRange=Md.inRange,G.invoke=Rd.invoke,G.isArguments=Id.isArguments,G.isArray=j.a,G.isArrayBuffer=Id.isArrayBuffer,G.isArrayLike=Id.isArrayLike,G.isArrayLikeObject=Id.isArrayLikeObject,G.isBoolean=Id.isBoolean,G.isBuffer=Id.isBuffer,G.isDate=Id.isDate,G.isElement=Id.isElement,G.isEmpty=Id.isEmpty,G.isEqual=Id.isEqual,G.isEqualWith=Id.isEqualWith,G.isError=Id.isError,G.isFinite=Id.isFinite,G.isFunction=Id.isFunction,G.isInteger=Id.isInteger,G.isLength=Id.isLength,G.isMap=Id.isMap,G.isMatch=Id.isMatch,G.isMatchWith=Id.isMatchWith,G.isNaN=Id.isNaN,G.isNative=Id.isNative,G.isNil=Id.isNil,G.isNull=Id.isNull,G.isNumber=Id.isNumber,G.isObject=v.a,G.isObjectLike=Id.isObjectLike,G.isPlainObject=Id.isPlainObject,G.isRegExp=Id.isRegExp,G.isSafeInteger=Id.isSafeInteger,G.isSet=Id.isSet,G.isString=Id.isString,G.isSymbol=Id.isSymbol,G.isTypedArray=Id.isTypedArray,G.isUndefined=Id.isUndefined,G.isWeakMap=Id.isWeakMap,G.isWeakSet=Id.isWeakSet,G.join=Ad.join,G.kebabCase=Dd.kebabCase,G.last=Ki,G.lastIndexOf=Ad.lastIndexOf,G.lowerCase=Dd.lowerCase,G.lowerFirst=Dd.lowerFirst,G.lt=Id.lt,G.lte=Id.lte,G.max=kd.max,G.maxBy=kd.maxBy,G.mean=kd.mean,G.meanBy=kd.meanBy,G.min=kd.min,G.minBy=kd.minBy,G.stubArray=Ld.stubArray,G.stubFalse=Ld.stubFalse,G.stubObject=Ld.stubObject,G.stubString=Ld.stubString,G.stubTrue=Ld.stubTrue,G.multiply=kd.multiply,G.nth=Ad.nth,G.noop=Ld.noop,G.now=Cd.now,G.pad=Dd.pad,G.padEnd=Dd.padEnd,G.padStart=Dd.padStart,G.parseInt=Dd.parseInt,G.random=Md.random,G.reduce=Pd.reduce,G.reduceRight=Pd.reduceRight,G.repeat=Dd.repeat,G.replace=Dd.replace,G.result=Rd.result,G.round=kd.round,G.sample=Pd.sample,G.size=Pd.size,G.snakeCase=Dd.snakeCase,G.some=Pd.some,G.sortedIndex=Ad.sortedIndex,G.sortedIndexBy=Ad.sortedIndexBy,G.sortedIndexOf=Ad.sortedIndexOf,G.sortedLastIndex=Ad.sortedLastIndex,G.sortedLastIndexBy=Ad.sortedLastIndexBy,G.sortedLastIndexOf=Ad.sortedLastIndexOf,G.startCase=Dd.startCase,G.startsWith=Dd.startsWith,G.subtract=kd.subtract,G.sum=kd.sum,G.sumBy=kd.sumBy,G.template=Dd.template,G.times=Ld.times,G.toFinite=Id.toFinite,G.toInteger=c,G.toLength=Id.toLength,G.toLower=Dd.toLower,G.toNumber=Id.toNumber,G.toSafeInteger=Id.toSafeInteger,G.toString=Id.toString,G.toUpper=Dd.toUpper,G.trim=Dd.trim,G.trimEnd=Dd.trimEnd,G.trimStart=Dd.trimStart,G.truncate=Dd.truncate,G.unescape=Dd.unescape,G.uniqueId=Ld.uniqueId,G.upperCase=Dd.upperCase,G.upperFirst=Dd.upperFirst,G.each=Pd.forEach,G.eachRight=Pd.forEachRight,G.first=Ad.head,Jd(G,(Wd={},ai(G,(function(t,e){qd.call(G.prototype,e)||(Wd[e]=t)})),Wd),{chain:!1}),G.VERSION="4.17.21",(G.templateSettings=Dd.templateSettings).imports._=G,Object(Q.a)(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){G[t].placeholder=G})),Object(Q.a)(["drop","take"],(function(t,e){x.prototype[t]=function(n){n=void 0===n?1:Kd(c(n),0);var i=this.__filtered__&&!e?new x(this):this.clone();return i.__filtered__?i.__takeCount__=Xd(n,i.__takeCount__):i.__views__.push({size:Xd(n,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},x.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Object(Q.a)(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=1==n||3==n;x.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Xn(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),Object(Q.a)(["head","last"],(function(t,e){var n="take"+(e?"Right":"");x.prototype[t]=function(){return this[n](1).value()[0]}})),Object(Q.a)(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");x.prototype[t]=function(){return this.__filtered__?new x(this):this[n](1)}})),x.prototype.compact=function(){return this.filter(f.a)},x.prototype.find=function(t){return this.filter(t).head()},x.prototype.findLast=function(t){return this.reverse().find(t)},x.prototype.invokeMap=Object(oe.a)((function(t,e){return"function"==typeof t?new x(this):this.map((function(n){return Yo(n,t,e)}))})),x.prototype.reject=function(t){return this.filter(fs(Xn(t)))},x.prototype.slice=function(t,e){t=c(t);var n=this;return n.__filtered__&&(t>0||e<0)?new x(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=c(e))<0?n.dropRight(-e):n.take(e-t)),n)},x.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},x.prototype.toArray=function(){return this.take(4294967295)},ai(x.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),r=G[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);r&&(G.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,s=e instanceof x,u=a[0],l=s||Object(j.a)(e),c=function(t){var e=r.apply(G,Object(Kt.a)([t],a));return i&&d?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var d=this.__chain__,f=!!this.__actions__.length,h=o&&!d,p=s&&!f;if(!o&&l){e=p?e:new x(this);var g=t.apply(e,a);return g.__actions__.push({func:yc,args:[c],thisArg:void 0}),new L(g,d)}return h&&p?t.apply(this,a):(g=this.thru(c),h?i?g.value()[0]:g.value():g)})})),Object(Q.a)(["pop","push","shift","sort","splice","unshift"],(function(t){var e=$d[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);G.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(Object(j.a)(r)?r:[],t)}return this[n]((function(n){return e.apply(Object(j.a)(n)?n:[],t)}))}})),ai(x.prototype,(function(t,e){var n=G[e];if(n){var i=n.name+"";qd.call(M,i)||(M[i]=[]),M[i].push({name:e,func:n})}})),M[pt(void 0,2).name]=[{name:"wrapper",func:void 0}],x.prototype.clone=jd,x.prototype.reverse=Fd,x.prototype.value=zd,G.prototype.at=Nd.at,G.prototype.chain=Nd.wrapperChain,G.prototype.commit=Nd.commit,G.prototype.next=Nd.next,G.prototype.plant=Nd.plant,G.prototype.reverse=Nd.reverse,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=Nd.value,G.prototype.first=G.prototype.head,Yd&&(G.prototype[Yd]=Nd.toIterator);var Zd=G;
/**
* @license
* Lodash (Custom Build)
* Build: `lodash modularize exports="es" -o ./`
* Copyright OpenJS Foundation and other contributors
* Released under MIT license
* Based on Underscore.js 1.8.3
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n$&").replace(/(^|[^\/])(www\.[\S]+(\b|$))/gim,'$1$2").replace(/[\w.]+@[a-zA-Z_-]+?(?:\.[a-zA-Z]{2,6})+/gim,'$&")},locationIsHtmlFile:function(){return!!window.location.pathname.match(/\.html$/)},makeUrlAbsolute:function(t){if(this.extractDomain(t))return t;if(!window.cerosBaseUrl)return t;var e="/"===t[0],n=window.cerosBaseUrl.lastIndexOf("/")===window.cerosBaseUrl.length-1;return n&&e?window.cerosBaseUrl+t.slice(1):n||e?window.cerosBaseUrl+t:window.cerosBaseUrl+"/"+t},hasQueryParam:function(t,e){return!r.default.isUndefined(this.getQueryParamValue(t,e))},getQueryParamValue:function(t,e){var n=s.getUrlParams(t);return r.default.find(n,(function(t,n){if(n.toLowerCase()===e.toLowerCase())return!0}))},prependProtocol:function(t,e){var n=e?"https://":"http://";return s.beginsWithHttpOrHttps(t)?t:n+t},replaceUrlContextVariables:function(t){return t.replace(/\{api-version\}/,o.default.apiVersion).replace(/\{account-slug\}/,o.default.accountSlug).replace(/\{scope\}/,o.default.accountSlug)},filterUrl:function(t){var e=0===t.trim().toLowerCase().indexOf("javascript:");return-1===t.indexOf(":")||e?"http://"+t:t},getRootDomain:function(){var t=location.host.split(".").reverse();return"."+t[1]+"."+t[0]},getExperiencePath:function(){var t=window.location.pathname,e=o.default.previewMode?t.search(/\/page\/page-.+/g):t.search(/\/p\/\d+/g);return e>=0?t.substr(0,e):t}};e.default=s},function(t,e,n){"use strict"},function(t,e,n){"use strict";var i=n(50),r=n(19),o=n(5),a=n(44),s=i.a?i.a.prototype:void 0,u=s?s.toString:void 0;e.a=function t(e){if("string"==typeof e)return e;if(Object(o.a)(e))return Object(r.a)(e,t)+"";if(Object(a.a)(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){"use strict";var i=n(278),r=n(16),o=n(44),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.a=function(t){if("number"==typeof t)return t;if(Object(o.a)(t))return NaN;if(Object(r.a)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Object(r.a)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Object(i.a)(t);var n=s.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):a.test(t)?NaN:+t}},function(t,e,n){"use strict";
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
function i(t){return"[object Text]"==Object.prototype.toString.call(t)}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";function i(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i3?e.i-4:e.i:Array.isArray(t)?1:h(t)?2:p(t)?3:0}function l(t,e){return 2===u(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){return 2===u(t)?t.get(e):t[e]}function d(t,e,n){var i=u(t);2===i?t.set(e,n):3===i?(t.delete(e),t.add(n)):t[e]=n}function f(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t){return G&&t instanceof Map}function p(t){return W&&t instanceof Set}function g(t){return t.o||t.t}function m(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=J(t);delete e[Y];for(var n=X(e),i=0;i1&&(t.set=t.add=t.clear=t.delete=y),Object.freeze(t),e&&s(t,(function(t,e){return v(e,!0)}),!0)),t}function y(){i(2)}function _(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function b(t){var e=Z[t];return e||i(18,t),e}function w(t,e){Z[t]||(Z[t]=e)}function T(){return U}function S(t,e){e&&(b("Patches"),t.u=[],t.s=[],t.v=e)}function E(t){O(t),t.p.forEach(P),t.p=null}function O(t){t===U&&(U=t.l)}function A(t){return U={p:[],l:U,h:t,m:!0,_:0}}function P(t){var e=t[Y];0===e.i||1===e.i?e.j():e.O=!0}function C(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||b("ES5").S(e,t,r),r?(n[Y].P&&(E(e),i(4)),o(t)&&(t=x(e,t),e.l||k(e,t)),e.u&&b("Patches").M(n[Y].t,t,e.u,e.s)):t=x(e,n,[]),E(e),e.u&&e.v(e.u,e.s),t!==$?t:void 0}function x(t,e,n){if(_(e))return e;var i=e[Y];if(!i)return s(e,(function(r,o){return I(t,i,e,r,o,n)}),!0),e;if(i.A!==t)return e;if(!i.P)return k(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=m(i.k):i.o;s(3===i.i?new Set(r):r,(function(e,o){return I(t,i,r,e,o,n)})),k(t,r,!1),n&&t.u&&b("Patches").N(i,n,t.u,t.s)}return i.o}function I(t,e,n,i,a,s){if(r(a)){var u=x(t,a,s&&e&&3!==e.i&&!l(e.R,i)?s.concat(i):void 0);if(d(n,i,u),!r(u))return;t.m=!1}if(o(a)&&!_(a)){if(!t.h.D&&t._<1)return;x(t,a),e&&e.A.l||k(t,a)}}function k(t,e,n){void 0===n&&(n=!1),t.h.D&&t.m&&v(e,n)}function M(t,e){var n=t[Y];return(n?g(n):t)[e]}function R(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var i=Object.getOwnPropertyDescriptor(n,e);if(i)return i;n=Object.getPrototypeOf(n)}}function N(t){t.P||(t.P=!0,t.l&&N(t.l))}function D(t){t.o||(t.o=m(t.t))}function L(t,e,n){var i=h(e)?b("MapSet").F(e,n):p(e)?b("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),i={i:n?1:0,A:e?e.A:T(),P:!1,I:!1,R:{},l:e,t:t,k:null,o:null,j:null,C:!1},r=i,o=Q;n&&(r=[i],o=tt);var a=Proxy.revocable(r,o),s=a.revoke,u=a.proxy;return i.k=u,i.j=s,u}(e,n):b("ES5").J(e,n);return(n?n.A:T()).p.push(i),i}function j(t){return r(t)||i(22,t),function t(e){if(!o(e))return e;var n,i=e[Y],r=u(e);if(i){if(!i.P&&(i.i<4||!b("ES5").K(i)))return i.t;i.I=!0,n=F(e,r),i.I=!1}else n=F(e,r);return s(n,(function(e,r){i&&c(i.t,e)===r||d(n,e,t(r))})),3===r?new Set(n):n}(t)}function F(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return m(t)}function V(){function t(t,e){var n=o[t];return n?n.enumerable=e:o[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[Y];return Q.get(e,t)},set:function(e){var n=this[Y];Q.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Y];if(!r.P)switch(r.i){case 5:i(r)&&N(r);break;case 4:n(r)&&N(r)}}}function n(t){for(var e=t.t,n=t.k,i=X(n),r=i.length-1;r>=0;r--){var o=i[r];if(o!==Y){var a=e[o];if(void 0===a&&!l(e,o))return!0;var s=n[o],u=s&&s[Y];if(u?u.t!==a:!f(s,a))return!0}}var c=!!e[Y];return i.length!==X(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var i=0;i1?i-1:0),o=1;o1?i-1:0),o=1;o=0;n--){var i=e[n];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}n>-1&&(e=e.slice(n+1));var o=b("Patches").$;return r(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}()),nt=et.produce;et.produceWithPatches.bind(et),et.setAutoFreeze.bind(et),et.setUseProxies.bind(et),et.applyPatches.bind(et),et.createDraft.bind(et),et.finishDraft.bind(et);e.b=nt},function(t,e,n){"use strict";
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
function i(t,e){const n=Math.min(t.length,e.length);for(let i=0;it._clone(!0))),e=new d(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const t=this.position.root.document.graveyard,e=new r.default(t,[0]);return new a.a(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffsett._clone(!0))),Object(s.a)(this.position,t)}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}static get className(){return"InsertOperation"}static fromJSON(t,e){const n=[];for(const e of t.nodes)e.name?n.push(l.default.fromJSON(e)):n.push(u.default.fromJSON(e));const i=new d(r.default.fromJSON(t.position,e),n,t.baseVersion);return i.shouldReceiveAttributes=t.shouldReceiveAttributes,i}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n(55),r=n(2),o=n.n(r),a=n(1),s=n(92),u=n(210);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class l extends i.a{constructor(t,e,n,i,r){super(r),this.range=t.clone(),this.key=e,this.oldValue=void 0===n?null:n,this.newValue=void 0===i?null:i}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new l(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new l(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const t=super.toJSON();return t.range=this.range.toJSON(),t}_validate(){if(!this.range.isFlat)throw new a.default("attribute-operation-range-not-flat",this);for(const t of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!Object(u.a)(t.getAttribute(this.key),this.oldValue))throw new a.default("attribute-operation-wrong-old-value",this,{item:t,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&t.hasAttribute(this.key))throw new a.default("attribute-operation-attribute-exists",this,{node:t,key:this.key})}}_execute(){Object(u.a)(this.oldValue,this.newValue)||Object(s.e)(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(t,e){return new l(o.a.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion)}}},function(t,e,n){"use strict";var i,r,o,a;
/*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/a=function(t){var e=Object.prototype.toString,n=Array.isArray||function(t){return"[object Array]"===e.call(t)};function i(t){return"function"==typeof t}function r(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(t,e){return null!=t&&"object"==typeof t&&e in t}var a=RegExp.prototype.test,s=/\S/;function u(t){return!function(t,e){return a.call(t,e)}(s,t)}var l={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},c=/\s*/,d=/\s+/,f=/\s*=/,h=/\s*\}/,p=/#|\^|\/|>|\{|&|=|!/;function g(t){this.string=t,this.tail=t,this.pos=0}function m(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function v(){this.cache={}}g.prototype.eos=function(){return""===this.tail},g.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},g.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=e.length,e},m.prototype.push=function(t){return new m(t,this)},m.prototype.lookup=function(t){var e,n=this.cache;if(n.hasOwnProperty(t))e=n[t];else{for(var r,a,s=this,u=!1;s;){if(t.indexOf(".")>0)for(e=s.view,r=t.split("."),a=0;null!=e&&a0?r[r.length-1][4]:n;break;default:i.push(e)}return n}(function(t){for(var e,n,i=[],r=0,o=t.length;r"===o?a=this.renderPartial(r,e,n,i):"&"===o?a=this.unescapedValue(r,e):"name"===o?a=this.escapedValue(r,e):"text"===o&&(a=this.rawValue(r)),void 0!==a&&(s+=a);return s},v.prototype.renderSection=function(t,e,r,o){var a=this,s="",u=e.lookup(t[1]);if(u){if(n(u))for(var l=0,c=u.length;l"'`=\/]/g,(function(t){return l[t]}))},t.Scanner=g,t.Context=m,t.Writer=v},e&&"string"!=typeof e.nodeName?a(e):(r=[e],void 0===(o="function"==typeof(i=a)?i.apply(e,r):i)||(t.exports=o))},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return r(e,t),e};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(740));e.default=a},function(t,e,n){"use strict";var i=n(107),r=n(22),o=Object(i.a)(r.a,"DataView"),a=n(178),s=Object(i.a)(r.a,"Promise"),u=n(182),l=n(193),c=n(38),d=n(155),f=Object(d.a)(o),h=Object(d.a)(a.a),p=Object(d.a)(s),g=Object(d.a)(u.a),m=Object(d.a)(l.a),v=c.a;(o&&"[object DataView]"!=v(new o(new ArrayBuffer(1)))||a.a&&"[object Map]"!=v(new a.a)||s&&"[object Promise]"!=v(s.resolve())||u.a&&"[object Set]"!=v(new u.a)||l.a&&"[object WeakMap]"!=v(new l.a))&&(v=function(t){var e=Object(c.a)(t),n="[object Object]"==e?t.constructor:void 0,i=n?Object(d.a)(n):"";if(i)switch(i){case f:return"[object DataView]";case h:return"[object Map]";case p:return"[object Promise]";case g:return"[object Set]";case m:return"[object WeakMap]"}return e});e.a=v},function(t,e,n){"use strict";e.a=function(t,e){for(var n=-1,i=null==t?0:t.length;++n-1&&t%1==0&&t{const n=e[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{for(const t of this.getRanges())if(!this._document._validateSelectionRange(t))throw new d.default("document-selection-wrong-position",this,{range:t})}),this.listenTo(this._model.markers,"update",(t,e,n,i)=>{this._updateMarker(e,i)}),this.listenTo(this._document,"change",(t,e)=>{!function(t,e){const n=t.document.differ;for(const i of n.getChanges()){if("insert"!=i.type)continue;const n=i.position.parent;i.length===n.maxOffset&&t.enqueueChange(e,t=>{const e=Array.from(n.getAttributeKeys()).filter(t=>t.startsWith("selection:"));for(const i of e)t.removeAttribute(i,n)})}}(this._model,e)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let t=0;t{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=i.deletionPosition;const t=this._ranges.indexOf(e);this._ranges.splice(t,1),e.detach()}}),e}_updateMarkers(){if(!this._observedMarkers.size)return;const t=[];let e=!1;for(const e of this._model.markers){const n=e.name.split(":",1)[0];if(!this._observedMarkers.has(n))continue;const i=e.getRange();for(const n of this.getRanges())i.containsRange(n,!n.isCollapsed)&&t.push(e)}const n=Array.from(this.markers);for(const n of t)this.markers.has(n)||(this.markers.add(n),e=!0);for(const n of Array.from(this.markers))t.includes(n)||(this.markers.remove(n),e=!0);e&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(t,e){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let i=!1;const r=Array.from(this.markers),o=this.markers.has(t);if(e){let n=!1;for(const t of this.getRanges())if(e.containsRange(t,!t.isCollapsed)){n=!0;break}n&&!o?(this.markers.add(t),i=!0):!n&&o&&(this.markers.remove(t),i=!0)}else o&&(this.markers.remove(t),i=!0);i&&this.fire("change:marker",{oldMarkers:r,directChange:!1})}_updateAttributes(t){const e=Object(l.a)(this._getSurroundingAttributes()),n=Object(l.a)(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else for(const[t,e]of this._attributePriority)"low"==e&&(this._attrs.delete(t),this._attributePriority.delete(t));this._setAttributesTo(e);const i=[];for(const[t,e]of this.getAttributes())n.has(t)&&n.get(t)===e||i.push(t);for(const[t]of n)this.hasAttribute(t)||i.push(t);i.length>0&&this.fire("change:attribute",{attributeKeys:i,directChange:!1})}_setAttribute(t,e,n=!0){const i=n?"normal":"low";if("low"==i&&"normal"==this._attributePriority.get(t))return!1;return super.getAttribute(t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,i),!0)}_removeAttribute(t,e=!0){const n=e?"normal":"low";return("low"!=n||"normal"!=this._attributePriority.get(t))&&(this._attributePriority.set(t,n),!!super.hasAttribute(t)&&(this._attrs.delete(t),!0))}_setAttributesTo(t){const e=new Set;for(const[e,n]of this.getAttributes())t.get(e)!==n&&this._removeAttribute(e,!1);for(const[n,i]of t){this._setAttribute(n,i,!1)&&e.add(n)}return e}*_getStoredAttributes(){const t=this.getFirstPosition().parent;if(this.isCollapsed&&t.isEmpty)for(const e of t.getAttributeKeys())if(e.startsWith("selection:")){const n=e.substr("selection:".length);yield[n,t.getAttribute(e)]}}_getSurroundingAttributes(){const t=this.getFirstPosition(),e=this._model.schema;let n=null;if(this.isCollapsed){const i=t.textNode?t.textNode:t.nodeBefore,r=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=g(i)),n||(n=g(r)),!this.isGravityOverridden&&!n){let t=i;for(;t&&!e.isInline(t)&&!n;)t=t.previousSibling,n=g(t)}if(!n){let t=r;for(;t&&!e.isInline(t)&&!n;)t=t.nextSibling,n=g(t)}n||(n=this._getStoredAttributes())}else{const t=this.getFirstRange();for(const i of t){if(i.item.is("element")&&e.isObject(i.item))break;if("text"==i.type){n=i.item.getAttributes();break}}}return n}_fixGraveyardSelection(t){const e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}function g(t){return t instanceof u.a||t instanceof s.default?t.getAttributes():null}},function(t,e,n){"use strict";
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
function i(t){return Array.isArray(t)?t:[t]}n.r(e),n.d(e,"default",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=n(124),r=n(31),o=n(127),a=n(118),s=n(78),u=n(54),l=n(149),c=n(233),d=n.n(c);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class f extends i.a{constructor(t,e,n,i){if(super(t),this.name=e,this._attrs=function(t){t=Object(a.a)(t);for(const[e,n]of t)null===n?t.delete(e):"string"!=typeof n&&t.set(e,String(n));return t}(n),this._children=[],i&&this._insertChild(0,i),this._classes=new Set,this._attrs.has("class")){const t=this._attrs.get("class");h(this._classes,t),this._attrs.delete("class")}this._styles=new d.a(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._isAllowedInsideAttributeElement=!1}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}get isAllowedInsideAttributeElement(){return this._isAllowedInsideAttributeElement}is(t,e=null){return e?e===this.name&&("element"===t||"view:element"===t):"element"===t||"view:element"===t||"node"===t||"view:node"===t}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(t){if("class"==t)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==t){const t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(t)}hasAttribute(t){return"class"==t?this._classes.size>0:"style"==t?!this._styles.isEmpty:this._attrs.has(t)}isSimilar(t){if(!(t instanceof f))return!1;if(this===t)return!0;if(this.name!=t.name)return!1;if(this.isAllowedInsideAttributeElement!=t.isAllowedInsideAttributeElement)return!1;if(this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;for(const[e,n]of this._attrs)if(!t._attrs.has(e)||t._attrs.get(e)!==n)return!1;for(const e of this._classes)if(!t._classes.has(e))return!1;for(const e of this._styles.getStyleNames())if(!t._styles.has(e)||t._styles.getAsString(e)!==this._styles.getAsString(e))return!1;return!0}hasClass(...t){for(const e of t)if(!this._classes.has(e))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(t){return this._styles.getAsString(t)}getNormalizedStyle(t){return this._styles.getNormalized(t)}getStyleNames(t=!1){return this._styles.getStyleNames(t)}hasStyle(...t){for(const e of t)if(!this._styles.has(e))return!1;return!0}findAncestor(...t){const e=new l.a(...t);let n=this.parent;for(;n;){if(e.match(n))return n;n=n.parent}return null}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map(t=>`${t[0]}="${t[1]}"`).sort().join(" ");return this.name+(""==t?"":` class="${t}"`)+(e?` style="${e}"`:"")+(""==n?"":" "+n)}_clone(t=!1){const e=[];if(t)for(const n of this.getChildren())e.push(n._clone(t));const n=new this.constructor(this.document,this.name,this._attrs,e);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._isAllowedInsideAttributeElement=this.isAllowedInsideAttributeElement,n}_appendChild(t){return this._insertChild(this.childCount,t)}_insertChild(t,e){this._fireChange("children",this);let n=0;const i=function(t,e){if("string"==typeof e)return[new r.a(t,e)];Object(u.a)(e)||(e=[e]);return Array.from(e).map(e=>"string"==typeof e?new r.a(t,e):e instanceof o.a?new r.a(t,e.data):e)}(this.document,e);for(const e of i)null!==e.parent&&e._remove(),e.parent=this,e.document=this.document,this._children.splice(t,0,e),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n0&&(this._classes.clear(),!0):"style"==t?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(t)}_addClass(t){this._fireChange("attributes",this);for(const e of Object(s.default)(t))this._classes.add(e)}_removeClass(t){this._fireChange("attributes",this);for(const e of Object(s.default)(t))this._classes.delete(e)}_setStyle(t,e){this._fireChange("attributes",this),this._styles.set(t,e)}_removeStyle(t){this._fireChange("attributes",this);for(const e of Object(s.default)(t))this._styles.remove(e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}function h(t,e){const n=e.split(/\s+/);t.clear(),n.forEach(e=>t.add(e))}},function(t,e,n){"use strict";(function(t){var i=n(268),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===r&&i.a.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();e.a=s}).call(this,n(314)(t))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var i=n(121),r=n(36),o=n(1),a=n(9);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class s{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(t){if(this._elements.has(t))throw new o.default("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",()=>this._focus(t),{useCapture:!0}),this.listenTo(t,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(t)}remove(t){t===this.focusedElement&&this._blur(t),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}destroy(){this.stopListening()}_focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}Object(a.default)(s,i.a),Object(a.default)(s,r.default)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
const i=new Array(256).fill().map((t,e)=>("0"+e.toString(16)).slice(-2));function r(){const t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0;return"e"+i[t>>0&255]+i[t>>8&255]+i[t>>16&255]+i[t>>24&255]+i[e>>0&255]+i[e>>8&255]+i[e>>16&255]+i[e>>24&255]+i[n>>0&255]+i[n>>8&255]+i[n>>16&255]+i[n>>24&255]+i[r>>0&255]+i[r>>8&255]+i[r>>16&255]+i[r>>24&255]}},function(t,e,n){"use strict";(function(t){var i=n(22),r=n(162),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?i.a.Buffer:void 0,u=(s?s.isBuffer:void 0)||r.a;e.a=u}).call(this,n(314)(t))},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n(4),r=n(15),o=n(9),a=n(1);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class s extends i.default{constructor(t,e,n="toNone"){if(super(t,e,n),!this.root.is("rootElement"))throw new a.default("model-liveposition-root-not-rootelement",t);u.call(this)}detach(){this.stopListening()}is(t){return"livePosition"===t||"model:livePosition"===t||"position"==t||"model:position"===t}toPosition(){return new i.default(this.root,this.path.slice(),this.stickiness)}static fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}function u(){this.listenTo(this.root.document.model,"applyOperation",(t,e)=>{const n=e[0];n.isDocumentOperation&&l.call(this,n)},{priority:"low"})}function l(t){const e=this.getTransformedByOperation(t);if(!this.isEqual(e)){const t=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",t)}}Object(o.default)(s,r.default)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(55);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/class r extends i.a{get type(){return"noop"}clone(){return new r(this.baseVersion)}getReversed(){return new r(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontConstants=void 0;var i=function(){function t(){}return t.GOOGLE_API_ID="Google",t.BUILTIN_API_ID="BuiltIn",t.UPLOADED_API_ID="Uploaded",t.FONT_PLUS_UPLOADED_API_ID="FontPlusUploaded",t.DEFAULT_FONT_FAMILY_GUID="Google|Roboto",t.DEFAULT_FONT_VARIANT_GUID="Google|Roboto|400|normal",t.DEFAULT_FONT_WEIGHT=400,t.DEFAULT_FONT_STYLE="normal",t.FONT_STYLE_ITALIC="italic",t.FONT_STYLE_NORMAL="normal",t.FONT_STYLE_OBLIQUE="oblique",t.EXPERIENCE_FAMILY_GUIDS_KEY="familyGuids",t}();e.FontConstants=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(121),r=n(9);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class o{constructor(t){this.view=t,this.document=t.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(t){return t&&3===t.nodeType&&(t=t.parentNode),!(!t||1!==t.nodeType)&&t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}Object(r.default)(o,i.a)},function(t,e,n){"use strict";e.a=function(t,e){for(var n=-1,i=e.length,r=t.length;++n-1}(i),isGecko:function(t){return!!t.match(/gecko\/\d+/)}(i),isSafari:function(t){return t.indexOf(" applewebkit/")>-1&&-1===t.indexOf("chrome")}(i),isAndroid:function(t){return t.indexOf("android")>-1}(i),isBlink:function(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0}(i),features:{isRegExpUnicodePropertySupported:function(){let t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}return t}()}};e.a=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(1);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/class r{constructor(t,e,n){if(this.textNode=t,e<0||e>t.offsetSize)throw new i.default("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new i.default("model-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(t){return"$textProxy"===t||"model:$textProxy"===t||"textProxy"===t||"model:textProxy"===t}getPath(){const t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}hasAttribute(t){return this.textNode.hasAttribute(t)}getAttribute(t){return this.textNode.getAttribute(t)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"b",(function(){return h})),n.d(e,"e",(function(){return p})),n.d(e,"c",(function(){return g}));var i=n(136),r=n(27),o=n(91),a=n(2),s=n.n(a),u=n(156),l=n(139),c=n(1);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
function d(t,e){const n=(e=g(e)).reduce((t,e)=>t+e.offsetSize,0),i=t.parent;v(t);const r=t.index;return i._insertChild(r,e),m(i,r+e.length),m(i,r),new s.a(t,t.getShiftedBy(n))}function f(t){if(!t.isFlat)throw new c.default("operation-utils-remove-range-not-flat",this);const e=t.start.parent;v(t.start),v(t.end);const n=e._removeChildren(t.start.index,t.end.index-t.start.index);return m(e,t.start.index),n}function h(t,e){if(!t.isFlat)throw new c.default("operation-utils-move-range-not-flat",this);const n=f(t);return d(e=e._getTransformedByDeletion(t.start,t.end.offset-t.start.offset),n)}function p(t,e,n){v(t.start),v(t.end);for(const i of t.getItems({shallow:!0})){const t=i.is("$textProxy")?i.textNode:i;null!==n?t._setAttribute(e,n):t._removeAttribute(e),m(t.parent,t.index)}m(t.end.parent,t.end.index)}function g(t){const e=[];t instanceof Array||(t=[t]);for(let n=0;nt.getAttribute("listIndent")))break;i=e}i&&(a.breakContainer(a.createPositionAfter(i)),a.move(a.createRangeOn(i.parent),a.createPositionAt(e,"end")))}}u(a,r,r.nextSibling),u(a,r.previousSibling,r)}function u(t,e,n){return!e||!n||"ul"!=e.name&&"ol"!=e.name||e.name!=n.name||e.getAttribute("class")!==n.getAttribute("class")?null:t.mergeContainers(t.createPositionAfter(e))}function l(t){return t.getLastMatchingPosition(t=>t.item.is("uiElement"))}function c(t,e){const n=!!e.sameIndent,i=!!e.smallerIndent,r=e.listIndent;let o=t;for(;o&&"listItem"==o.name;){const t=o.getAttribute("listIndent");if(n&&r==t||i&&r>t)return o;o="forward"===e.direction?o.nextSibling:o.previousSibling}return null}function d(t,e,n,i){t.ui.componentFactory.add(e,o=>{const a=t.commands.get(e),s=new r.ButtonView(o);return s.set({label:n,icon:i,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),s.on("execute",()=>{t.execute(e),t.editing.view.focus()}),s})}function f(t){for(const e of t.getChildren())if("ul"==e.name||"ol"==e.name)return e;return null}function h(t,e){const n=[],r=t.parent,o={ignoreElementEnd:!0,startPosition:t,shallow:!0,direction:e},a=r.getAttribute("listIndent"),s=[...new i.TreeWalker(o)].filter(t=>t.item.is("element")).map(t=>t.item);for(const t of s){if(!t.is("element","listItem"))break;if(t.getAttribute("listIndent")a)){if(t.getAttribute("listType")!==r.getAttribute("listType"))break;if(t.getAttribute("listStyle")!==r.getAttribute("listStyle"))break;"backward"===e?n.unshift(t):n.push(t)}}return n}function p(){const t=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||t?0:i.getFillerOffset.call(this)}},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n3*Math.PI/2?{x:a,y:s}:{x:-a,y:-s}):(a=n/100*f,s=i/100*50,u=l0&&e>0&&(t>e?(i=n,r=Math.round(n/t*e)):(i=Math.round(n/e*t),r=n)),{width:i,height:r}};e.distance=function(t,e){var n=t.x-e.x,i=t.y-e.y;return Math.sqrt(n*n+i*i)};e.lineLength=function(t){return e.distance({x:t.x1,y:t.y1},{x:t.x2,y:t.y2})};e.closestPointOnBezierCurve=function(t,n,i,r,o,a){if(null==a&&(a=e.BEZIER_CURVE_POINT_INCREMENT_DEFAULT),a<=0)return null;for(var s=1/0,u=null,l=a;l<1;l+=a){var c={x:e.evaluateBezierCurve(n.x,i.cx2,o.cx1,r.x,l),y:e.evaluateBezierCurve(n.y,i.cy2,o.cy1,r.y,l)},d=e.distance(t,c);d=0&&o<=1?e.vectorToSegment2D(o,{x:0,y:0},n):e.sqDiag2D(e.vectorToSegment2D(0,t,n))<=e.sqDiag2D(e.vectorToSegment2D(1,t,n))?{x:n.x1,y:n.y1}:{x:n.x2,y:n.y2}};e.vectorToSegment2D=function(t,e,n){return{x:(1-t)*n.x1+t*n.x2-e.x,y:(1-t)*n.y1+t*n.y2-e.y}};e.sqDiag2D=function(t){return Math.pow(t.x,2)+Math.pow(t.y,2)};e.cubicBezierCurveFirstDerivativeRoots=function(t,n,i,r){var o=[],a=3*(3*n-t-3*i+r),s=6*(t-2*n+i),u=s*s-4*a*(3*(n-t));if(u>=0){var l=(-s+Math.sqrt(u))/(2*a),c=(-s-Math.sqrt(u))/(2*a);l>0&&l<1&&o.push(e.evaluateBezierCurve(t,n,i,r,l)),c>0&&c<1&&o.push(e.evaluateBezierCurve(t,n,i,r,c))}return o};e.splitBezierCurveAtPoint=function(t,e,n){var r={x:t.x,y:t.y},o={x:t.cx2||t.x,y:t.cy2||t.y},a={x:e.cx1||e.x,y:e.cy1||e.y},s={x:e.x,y:e.y},u=function(t,e){return{x:(t.x+e.x)*(1-n),y:(t.y+e.y)*(1-n)}},l=u(r,o),c=u(o,a),d=u(a,s),f=u(l,c),h=u(c,d),p=u(f,h);return{left:i(i({},t),{cx2:l.x,cy2:l.y}),center:{x:p.x,y:p.y,cx1:f.x,cy1:f.y,cx2:h.x,cy2:h.y},right:i(i({},e),{cx1:d.x,cy1:d.y})}};e.evaluateBezierCurve=function(t,e,n,i,r){return t*(1-r)*(1-r)*(1-r)+3*e*r*(1-r)*(1-r)+3*n*r*r*(1-r)+i*r*r*r};e.round=function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n};e.toNextMultiple=function(t,e){return t>0?Math.ceil(t/e)*e:t<0?Math.floor(t/e)*e:0};e.maintainOffsetWhenRotated=function(t,e){var n=e.x,i=e.y;if(t&&0!==t&&void 0!==e.x&&void 0!==e.y){var r=e.x,o=e.y;t=Math.toRad(t),n=r*Math.cos(t)+o*Math.sin(t),i=o*Math.cos(t)-r*Math.sin(t)}return{x:n,y:i}};var r=Math.PI/2,o=Math.PI+r,a=2*Math.PI,s=a+r;e.hasTangentForOneRotation=function(t){if(t<0||t>s)throw new Error("Angle must be between 0 and 2π");return t!==r&&t!==o&&t!==s};e.isTangentZeroForOneRotation=function(t){if(t<0||t>s)throw new Error("Angle must be between 0 and 2π");return t===Math.PI||t===a};e.rotateCoord=function(t,e,n,i,r){var o=t-n,a=e-i;return t=Math.cos(r)*o+Math.sin(r)*a,e=-Math.sin(r)*o+Math.cos(r)*a,t+=n,e+=i,new u.Point(t,e)};e.rotatePointAtOrigin=function(t,e,n){var i=t.getX(),r=t.getY(),o=e.getX(),a=e.getY();return new u.rotateCoord(i,r,o,a,n)};var u={BEZIER_CURVE_POINT_INCREMENT_DEFAULT:e.BEZIER_CURVE_POINT_INCREMENT_DEFAULT,Point:e.Point,calcRotatedLineIntersect:e.calcRotatedLineIntersect,calcPointOnRect:e.calcPointOnRect,scaleBoxToMaxDimension:e.scaleBoxToMaxDimension,distance:e.distance,lineLength:e.lineLength,closestPointOnBezierCurve:e.closestPointOnBezierCurve,closestPointOnLine:e.closestPointOnLine,vectorToSegment2D:e.vectorToSegment2D,sqDiag2D:e.sqDiag2D,cubicBezierCurveFirstDerivativeRoots:e.cubicBezierCurveFirstDerivativeRoots,evaluateBezierCurve:e.evaluateBezierCurve,round:e.round,toNextMultiple:e.toNextMultiple,maintainOffsetWhenRotated:e.maintainOffsetWhenRotated,hasTangentForOneRotation:e.hasTangentForOneRotation,isTangentZeroForOneRotation:e.isTangentZeroForOneRotation,rotateCoord:e.rotateCoord,rotatePointAtOrigin:e.rotatePointAtOrigin};window.CerosMath=u,e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r,o=i(n(0)),a=i(n(3)),s=i(n(13)),u=i(n(14)),l=i(n(8)),c=i(n(24)),d=i(n(194)),f=i(n(144)),h=function(t){var e=d.default.getLayoutSettings();return d.default.doesVariantExist("mobile")&&t<=e.maxMobileWidthBreakpoint?"mobile":d.default.doesVariantExist("tablet")&&t<=e.maxTabletWidthBreakpoint?"tablet":"desktop"},p=function(t,e){return d.default.doesVariantExist(e)?e:d.default.doesVariantExist(t.deviceTypeMissingVariantFallback)?t.deviceTypeMissingVariantFallback:"desktop"};function g(){var t=u.default.deviceType();return"smartphone"===t&&(t="mobile"),t}var m=function(t){var e=d.default.getLayoutSettings();return 0!==d.default.getNumberOfExistingVariants()&&d.default.isValidVariantName(t)?"desktop"===t||d.default.doesVariantExist(t)?t:v(e.deviceTypeMissingVariantFallback):"desktop"},v=function(t){return d.default.doesVariantExist(t)?t:(c.default.info("FALLBACK RECTIFIED"),"tablet"===t?"desktop":"mobile"===t&&d.default.doesVariantExist("tablet")?"tablet":"desktop")},y=function(){if(!l.default.allowAdaptiveLayouts)return"desktop";if(!d.default.isDocVersionSet())throw new Error("Trying to resolve variant before DocVersion set");if(0===d.default.getNumberOfExistingVariants())return"desktop";if(l.default.previewMode)return function(){var t=d.default.getLayoutSettings(),e=g(),n=e!==u.default.DEVICE_TYPE_DESKTOP;if("device-type"===t.layoutPrimarySetting){if(n){var i=p(t,e);return c.default.debug("Resolved layout for touch device: "+e),i!==d.default.getPreviewerFrameSize()&&(c.default.debug("Forcing frame size as on touch device: "+i),d.default.setPreviewerFrameSize(i)),i}var r=d.default.getPreviewerFrameSize();return m(r)}var o=a.default(".adaptive-layouts-frame").width();return h(o)}();var t,e,n,i=("smartphone"===(t=d.default.getLayoutFromQueryParam())&&(t="mobile"),t&&d.default.doesVariantExist(t)?t:null);return i||("device-type"===d.default.getLayoutSettings().layoutPrimarySetting?m(g()):l.default.isEmbedded?(e=f.default.getInstance().getEmbedContextDimensions(),h(e.width)):(n=window.innerWidth,h(n)))};e.default=o.default.extend({},s.default.Events,{getVariant:function(){if(!r)throw new Error("Something wants to know the variant before detection");return r},hasDetectedVariant:function(){return!!r},detect:function(){var t=y();if(t!==r){var e=r;r=t,c.default.debug("Detected variant "+t+(e?", was "+e:"")),this.trigger("change",r,e)}return r}})},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},s=this&&this.__spread||function(){for(var t=[],e=0;e"}}));e.HTML_TAG_OPTIONS=s(d,[{tag:e.DEFAULT_HTML_TAG,title:e.DEFAULT_HTML_TAG_NAME+" <"+e.DEFAULT_HTML_TAG+">"}]),e.MAX_TITLE_LENGTH=40,function(t){t.TITLE="title",t.TEXT_CONTENT="textContent",t.TEXT_SPANS="textSpans",t.DEFAULT_SPAN="defaultSpan",t.TEXT_DATA="textData",t.INDENT="indent",t.VARIANT_GUID="variantGuid",t.VARIANT_NAME="variantName",t.FAMILY_GUID="familyGuid",t.UNDERLINE="underline",t.FONT_COLOR="fontColor",t.FONT_SIZE="fontSize",t.LETTER_SPACING="letterSpacing",t.LEADING="leading",t.TEXT_SHADOW="textShadow",t.AUTO_LEADING="autoLeading",t.JUSTIFY="justify",t.TEXT_TRANSFORM="textTransform",t.COLUMNS="columns",t.COLUMN_GAP="columnGap",t.PADDING_TOP="paddingTop",t.PADDING_RIGHT="paddingRight",t.PADDING_BOTTOM="paddingBottom",t.PADDING_LEFT="paddingLeft",t.SHOW_OVERFLOW="showOverflow",t.SYNCED="synced",t.HTML_TAG="htmlTag",t.HIDDEN_FROM_SCREEN_READERS="hiddenFromScreenReaders",t.HYPERLINK="hyperlink",t.BOLD="bold",t.ITALIC="italic",t.FONT_FAMILY="fontFamily",t.SUPERSCRIPT="superscript",t.SUBSCRIPT="subscript",t.TEXT_CASE="textCase",t.ALIGNMENT="alignment",t.BASE_LINE_OFFSET="baseLineOffset",t.EDITABLE="editable",t.LIST_DEFINITIONS="listDefinitions",t.LINES="lines",t.HEADINGS="headings",t.PARAGRAPHS="paragraphs",t.SOFT_BREAKS="softBreaks",t.LIST_MARKER_STYLES="listMarkerStyles",t.BASE_OFFSET="baseOffset"}(c=e.properties||(e.properties={})),function(t){t.PARAGRAPH="paragraph",t.LINE="line",t.CHAR="char"}(e.TextRenderMode||(e.TextRenderMode={})),e.MODEL_DEFAULTS=((i={})[c.HTML_TAG]=e.DEFAULT_HTML_TAG,i[c.TITLE]="Text",i[c.TEXT_CONTENT]="",i[c.TEXT_SPANS]=[],i[c.DEFAULT_SPAN]=void 0,i[c.INDENT]=0,i[c.JUSTIFY]="left",i[c.COLUMNS]=1,i[c.COLUMN_GAP]=0,i[c.LEADING]=38,i[c.TEXT_SHADOW]={},i[c.AUTO_LEADING]=!0,i[c.TEXT_TRANSFORM]="none",i[c.PADDING_TOP]=0,i[c.PADDING_BOTTOM]=0,i[c.PADDING_RIGHT]=0,i[c.PADDING_LEFT]=0,i[c.SHOW_OVERFLOW]=!0,i[c.SYNCED]=!1,i[c.EDITABLE]=!1,i[c.LIST_DEFINITIONS]=[],i[c.HEADINGS]=[],i[c.PARAGRAPHS]=[],i),e.TEXT_DEFAULT_FONT_SIZE=24,e.TEXT_PLUS_MODEL_DEFAULTS=o(((r={})[c.LINES]=[],r),l.default.pick(e.MODEL_DEFAULTS,[c.PADDING_TOP,c.PADDING_BOTTOM,c.PADDING_RIGHT,c.SYNCED,c.PADDING_LEFT,c.TITLE,c.TEXT_CONTENT,c.TEXT_SPANS,c.DEFAULT_SPAN,c.JUSTIFY,c.LETTER_SPACING,c.EDITABLE,c.LIST_DEFINITIONS,c.HEADINGS,c.PARAGRAPHS,c.COLUMNS,c.COLUMN_GAP,c.BASE_OFFSET])),e.VIEW_DEFAULTS={MIN_FONT_SIZE:1,MAX_FONT_SIZE:1e3,MIN_LEADING:0,AUTO_LEADING:-1,MAX_LEADING:2e3,MIN_COLUMN_GAP:0,MAX_COLUMN_GAP:100,MIN_PADDING:0,MAX_PADDING:100,MIN_COLUMNS:1,DEFAULT_BLOCK_FONT_SIZE:1},e.TEXT_COMPONENT_TYPE={OLD_TEXT:"old_text",TEXT_PLUS:"text_plus"},e.DEFAULT_LIST_INDENT_INCREMENT=24},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},u=this&&this.__spread||function(){for(var t=[],e=0;e0&&l.push({index:e,length:u,endIndex:e+u,attributes:c,isPlaceholder:o}),{definitions:l,text:s}}function D(t){var e=t;return"textCase"===t[0]&&t[1]&&t[1].textCase&&(t[1]=t[1].textCase),e}function L(t){var e,n,i=[],r=[],o=[],s=[],l=[],d=[],f=[],h=[],p="",m=0;try{for(var v=a(t),y=v.next();!y.done;y=v.next()){var _=y.value;if("elementStart"===_.type||"elementEnd"===_.type){var w=R(_,m,{text:i,paragraphs:r,headings:o,lists:s,listMarkerStyles:[],softBreaks:d,lines:h}),T=w.text,S=w.paragraphs,E=w.lists,O=w.headings,A=w.softBreaks,P=w.lines,C=w.listMarkerStyles;p+=T,r.push.apply(r,u(S)),s.push.apply(s,u(E)),l.push.apply(l,u(C)),o.push.apply(o,u(O)),d.push.apply(d,u(A)),b.reduceIntoRanges(P,h),m+=T.length}else if("text"==_.type){var x=N(_,m),I=(T=x.text,x.definitions);p+=T,i.push.apply(i,u(I)),m+=T.length}f.push(_)}}catch(t){e={error:t}}finally{try{y&&!y.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}return{textContent:p,treeWalkerValues:f,definitions:{text:i,paragraphs:r,headings:o,lists:c.default.filter(s,(function(t){return t.attributes.listElementType==g.ListElementEnum.LI})),listMarkerStyles:l,softBreaks:d,lines:h}}}function j(t,e){var n,i,r,o,s,l,d=new Map;for(t=c.default.cloneDeep(t);t.length>0;){var f=t.shift();if(c.default.isNil(f))return u(d.values());f.index=q(f.index,e),f.length=f.endIndex-f.index;var h=f.index+":"+f.endIndex;if(0!==d.size)if(d.has(h)){try{for(var p=(n=void 0,a(f.attributes)),g=p.next();!g.done;g=p.next()){var m=g.value;d.get(h).attributes.set(m[0],m[1])}}catch(t){n={error:t}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}t.push(d.get(h)),d.delete(h)}else{var v=!1;try{for(var y=(r=void 0,a(d.keys())),_=y.next();!_.done;_=y.next()){var b=_.value,w=d.get(b);if((f.index>=w.index&&f.index<=w.endIndex||f.endIndex<=w.endIndex&&f.endIndex>=w.index||f.index<=w.index&&f.endIndex>=w.endIndex)&&(v=Y(f,w,t,d,e)),(f.index==w.endIndex||f.endIndex==w.index)&&f.attributes.size==w.attributes.size){var T=!0;try{for(var S=(s=void 0,a(w.attributes)),E=S.next();!E.done;E=S.next()){m=E.value;c.default.isEqual(f.attributes.get(m[0]),m[1])||(T=!1)}}catch(t){s={error:t}}finally{try{E&&!E.done&&(l=S.return)&&l.call(S)}finally{if(s)throw s.error}}T&&(v=Y(f,w,t,d,e))}}}catch(t){r={error:t}}finally{try{_&&!_.done&&(o=y.return)&&o.call(y)}finally{if(r)throw r.error}}!v&&f.attributes.size>0&&d.set(h,f)}else d.set(h,f)}var O=u(d.values());return O.sort((function(t,e){return t.indexn&&("\n"===e[n-1]||e[n-1]===E.SOFTBREAK_CHARACTER);)n--;return n}function Y(t,e,n,i,r){var o,s,u=new Map;try{for(var l=a(e.attributes),d=l.next();!d.done;d=l.next()){var f=d.value,h=f[0],p=f[1];t.attributes.has(h)&&c.default.isEqual(t.attributes.get(h),p)&&(u.set(h,p),e.attributes.delete(h),t.attributes.delete(h))}}catch(t){o={error:t}}finally{try{d&&!d.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}if(u.size>0){var g=Math.min(t.index,e.index),m=Math.max(t.endIndex,e.endIndex);return n.push({index:g,endIndex:m,length:Math.min(et(r),m-g),attributes:u}),t.attributes.size>0&&n.push(t),e.attributes.size>0&&n.push(e),i.delete(e.index+":"+e.endIndex),!0}return!1}function K(t,e){return e.hasOwnProperty("variantGuid")?t.variantGuid=e.variantGuid:t.variantGuid="Google|Roboto|400|normal",t.variantGuid||""}function X(t,e,n){return 0==t&&e==n.replace(/[\n\t]+$/,"").length}function J(t,e,n){var r,o,s,l,d,f,h=(null==n?void 0:n.defaults)||O.variantDefaults.defaultSpan,g=Object.assign({},h,{underline:!1}),m=[],v=new Map,y={};try{for(var _=a(t),b=_.next();!b.done;b=_.next()){var w=b.value,T={};try{for(var S=(s=void 0,a(w.attributes)),A=S.next();!A.done;A=S.next()){var P=A.value,C=P[0],x=P[1];switch(C){case p.properties.FONT_COLOR:var I=x;T.fontColor=I.replace(/\s+/g,"");break;case p.properties.UNDERLINE:T.underline=!!x;break;case p.properties.LETTER_SPACING:T.letterSpacing=parseInt(x.toString());break;case p.properties.BOLD:T.variantGuid=K(T,p.properties.BOLD);break;case p.properties.ITALIC:T.variantGuid=K(T,p.properties.ITALIC);break;case p.properties.FONT_FAMILY:T.variantGuid=K(T,x),T.fontFamily=x.cssFamilyName;break;case p.properties.SUPERSCRIPT:T.superscript=!0;break;case p.properties.SUBSCRIPT:T.subscript=!0;break;case p.properties.TEXT_CASE:T.textCase=x;break;case p.properties.FONT_SIZE:T.fontSize=parseInt(x.toString());break;case p.properties.ALIGNMENT:T.alignment=x;break;case p.properties.HYPERLINK:T.hyperlink=x;break;case p.properties.BASE_LINE_OFFSET:break;default:console.log(C," property is not supported yet.")}}}catch(t){s={error:t}}finally{try{A&&!A.done&&(l=S.return)&&l.call(S)}finally{if(s)throw s.error}}var k={};X(w.index,w.length,e)?(T.hasOwnProperty("superscript")&&(k=i(i({},T),{index:w.index,length:w.length}),delete T.superscript),T.hasOwnProperty("subscript")&&(k=i(i({},T),{index:w.index,length:w.length}),delete T.subscript),T.hasOwnProperty(E.TextPlusCommands.TEXT_CASE)||delete g.textCase,(null==n?void 0:n.ignoreLinks)&&T.hasOwnProperty(E.TextPlusCommands.LINK)&&(c.default.isEmpty(T)||(k=i(i({},T),{index:w.index,length:w.length}),delete T.fontColor,delete T.underline,delete T.hyperlink)),y=c.default.extend({},g,T)):k=i(i({},T),{index:w.index,length:w.length}),k&&m.push(k),w.isPlaceholder&&v.set(w.index+":"+w.length,!0)}}catch(t){r={error:t}}finally{try{b&&!b.done&&(o=_.return)&&o.call(_)}finally{if(r)throw r.error}}y=c.default.extend({},g,y),c.default.each(m,(function(t){for(var e in y){var n=e,i=y[n],r=t[n];!c.default.isNil(r)&&c.default.isEqual(r,i)&&delete t[n]}})),c.default.remove(m,(function(t){return c.default.values(t).length<3}));var M=[],R=[];try{for(var N=a(m),D=N.next();!D.done;D=N.next()){k=D.value;v.has(k.index+":"+k.length)?(k.length=0,M.push(k)):R.push(k)}}catch(t){d={error:t}}finally{try{D&&!D.done&&(f=N.return)&&f.call(N)}finally{if(d)throw d.error}}return R=Z(R),{textSpans:c.default.orderBy(u(R,M),["index","length"]),defaultSpan:y}}function Z(t){var e,n,r,o,s=new Map;try{for(var l=a(t),d=l.next();!d.done;d=l.next())for(var f=d.value,h=f.index;h0?st(e,"height")-n:st(e,"height");t.style.setProperty("height",i+"px","important")}function ft(t,e){0===e?t.style.removeProperty("margin-top"):t.style.setProperty("margin-top",e+"px")}function ht(t){return 2*st(t,"defaultSpan").fontSize}function pt(t){return t.model&&"text-plus-component"===t.model.get("type")}e.SELECTION_MARKER="Selection-Marker",e.addOrUpdateSelectionMarker=function(t,n){var i=t.model,r=t.mapper;i.change((function(t){var o={range:r.toModelRange(n),usingOperation:!1,affectsData:!1};i.markers.has(e.SELECTION_MARKER)?t.updateMarker(e.SELECTION_MARKER,o):t.addMarker(e.SELECTION_MARKER,o)}))},e.getTextPlusDataFromEditor=function(t,e){var n=L(M(t)),i=n.textContent,r=n.definitions,o=J(j(c.default.cloneDeep(r.text),i),i,e);return{textContent:i,textSpans:o.textSpans,defaultSpan:o.defaultSpan,definitions:r}},e.getTextPlusDataFromRange=x,e.getTextPlusDataFromSelectedBlocks=function(t){var e;return r(this,void 0,Promise,(function(){var n,i,r;return o(this,(function(o){switch(o.label){case 0:return[4,null===(e=t.textEditorView)||void 0===e?void 0:e.getEditor()];case 1:return n=o.sent(),i=tt(n,t.view.hasFocus()),r=t.getDefaultSpan(),[2,I(n,i,r)]}}))}))},e.getTextPlusDataFromBlocks=I,e.getRangeFromBlocks=k,e.currentSelectionHasTextScripts=function(t,e){var n,i,r=!1,o=Q(t);if(c.default.isNil(o))return r;var s=x(o,{defaults:e}).textSpans;try{for(var u=a(s),l=u.next();!l.done;l=u.next()){var d=l.value;if(d.hasOwnProperty("superscript")||d.hasOwnProperty("subscript")){r=!0;break}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return r},e.getTreeWalker=M,e.parseElementDefinitions=R,e.parseTextDefinitions=N,e.parseDefinitions=L,e.consolidateParsedTextDefinitions=j,e.headingsAreEnabled=F,e.columnsAreEnabled=V,e.elementIsHeading=B,e.elementIsParagraph=U,e.elementIsList=H,e.elementIsSoftBreak=G,e.elementIsLine=W,e.getLineElement=z,e.getInlineElementsFromRange=function(t){var e=[];return $(t,e),e},e.getInlineElementsFromRanges=function(t){var e,n,i=[];try{for(var r=a(t),o=r.next();!o.done;o=r.next()){$(o.value,i)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return i},e.handleOverlappingDefinition=Y,e.isDefaultSpanDefinition=X,e.createTextSpans=J,e.combineOverlappingTextSpans=Z,e.getSelectedRangeFromEditor=Q,e.getSelectedBlocksFromEditor=tt,e.getTextFromRange=function(t){var e,n,i="";try{for(var r=a(t.getItems()),o=r.next();!o.done;o=r.next()){var s=o.value;if(s.is("textProxy"))i+=s.data}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return i},e.handleTextscriptButtonClicked=function(t,e,n){var i,r,o=Q(e);if(!c.default.isNil(o)){var s=x(o,{defaults:n}).textSpans,u=!1,l=!1;try{for(var d=a(s),f=d.next();!f.done;f=d.next()){var h=f.value;h.hasOwnProperty("superscript")&&(l=!0),h.hasOwnProperty("subscript")&&(u=!0)}}catch(t){i={error:t}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}var p=!0;return u&&l?(nt(e,["subscript","superscript"]),p=!1):nt(e,"superscript"==t?["subscript"]:["superscript"]),{command:t,active:p}}},e.getTextContentLength=et,e.removeAttributesFromSelection=nt,e.buildParagraphDefinition=function(t,e,n){return{attributes:{paragraphElementType:t,path:n},index:e}},e.buildListDefinition=function(t,e,n,i){return{attributes:{listIndent:t,listType:e,listElementType:n},index:i,uid:A.TEST_LIST_UID}},e.createTextViewElements=function(t,e,n){void 0===n&&(n=document.createElement("div"));var i=document.createElement("div");return i.id=t,i.style.height="100%",i.style.width="100%",i.style.columns="inherit",i.style.columnGap="inherit",i.classList.add(g.TextPlusClassName),e&&i.classList.add(g.IS_RENDERING_PLACEHOLDERS),n.appendChild(i),{wrapper:n,editorEl:i}},e.setTextContainerAttributes=it,e.setTextPlusContainerAttributes=function(t,e,n){return r(this,void 0,Promise,(function(){return o(this,(function(i){switch(i.label){case 0:return it(t,e),[4,lt(t,st(e,"defaultSpan"),n)];case 1:return i.sent(),[2]}}))}))},e.getFontSize=rt,e.getBiggestFontSize=function(t,e){var n,i;void 0===e&&(e=p.TEXT_DEFAULT_FONT_SIZE);var r=e;try{for(var o=a(t.getChildren()),s=o.next();!s.done;s=o.next()){var u=rt(s.value);r=u>r?u:r}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return r},e.getPaddingObject=ot,e.getColumnObject=at,e.resolveModelOrObject=st,e.setLineHeight=ut,e.applyMarginTopToElement=ft,e.adjustMarginsForSvg=function(t,e){var n=ht(e);dt(t,e);var i=t.style.getPropertyValue("margin-top");if(i){var r=function(t){if(null==t?void 0:t.endsWith("px"))return parseInt(t.substring(0,t.length-2))}(i);void 0!==r&&ft(t.children[0],r)}P.setClipPath(t,e),t.style.setProperty("margin-top",n+"px","important"),t.style.setProperty("margin-right",n+"px","important"),t.style.setProperty("margin-bottom",n+"px","important"),t.style.setProperty("margin-left",n+"px","important")},e.adjustMarginsForPlayer=function(t,e,n,i,a){return r(this,void 0,Promise,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return dt(t,e),a?[4,C.BaseOffsetUtils.getVerticalTrimMargin(t,n,i)]:[3,2];case 1:return void 0!==(r=o.sent())&&ft(t,r),P.setClipPath(t,e,r),[3,3];case 2:P.setClipPath(t,e),o.label=3;case 3:return[2]}}))}))},e.cloneEditorNodeWithContentOnly=function(t,e){void 0===e&&(e=!0);var n=t.cloneNode(e);return n.style.visibility="hidden",n.style.padding="0px",n.style.border="none",n.style.margin="none",n},e.getTextPlusModelShiftingSpacing=ht,e.peekable=function(t){var e=t.next(),n=function(){var n;return o(this,(function(i){switch(i.label){case 0:return e.done?[3,2]:(n=e.value,e=t.next(),[4,n]);case 1:return i.sent(),[3,0];case 2:return[2,e.value]}}))}();return n.peek=function(){return e},n},e.isPeekable=function(t){return"function"==typeof t.peek},e.isTextPlusView=pt,e.eventOccurredInTextPlusEditMode=function(t,e){return pt(t)&&t.isEditMode()&&t.htmlOverCanvasView.el.contains(e.target)}},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0},createAutogeneratedChangeStateInteraction:function(t){this.isInteractable()&&b.ObjectStateManager.isInteractionState(t)&&(u.default.find(this.interactions.models,(function(e){return e.get("autogenerated")&&e.get("trigger")===t}))||this.interactions.add({action:"change-state",trigger:t,layerTargets:[this.id],state:t,autogenerated:!0,lockState:t!==_.default.OBJECT_STATES_HOVER}));this.save()},removeIncompatiblePropertiesWhenMasking:function(t){var e;void 0===t&&(t=!1);var n=this.get("type"),r={};if("shape-component"===n||"custom-shape-component"===n){var o=this.get("background");o&&o.color||(r.background=i(i({},o),{color:w.default.MASK_ITEM_DEFAULT_FILL_COLOR})),r.shadow={};var a=this.get("border");if(a){var s=a.radius;void 0!==s&&s.split&&(s=a.radius.split(",")[0]),r.border=i(i({},a),{radius:s,color:void 0,width:void 0})}}r.visible=!0,r.animations=[],r.animationsRepeatAll=!1,r.animationsReplayOnScroll=!1;var u=!(!this.attributes.maskInfo||!(null===(e=this.attributes.maskInfo)||void 0===e?void 0:e.isBaseMaskObject));"image-component"===n&&u?this.removeInteractionsNotChangeState():(r.interactions=[],this.removeAllObjectStates(t)),this.set(r,{silent:t})}})},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var i=n(15),r=n(1),o=n(82),a=n(54),s=n(9);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class u{constructor(t={},e={}){const n=Object(a.a)(t);if(n||(e=t),this._items=[],this._itemMap=new Map,this._idProperty=e.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(const e of t)this._items.push(e),this._itemMap.set(this._getItemIdBeforeAdding(e),e)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,e){return this.addMany([t],e)}addMany(t,e){if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new r.default("collection-add-item-invalid-index",this);for(let n=0;n{this._setUpBindToBinding(e=>new t(e))},using:t=>{"function"==typeof t?this._setUpBindToBinding(e=>t(e)):this._setUpBindToBinding(e=>e[t])}}}_setUpBindToBinding(t){const e=this._bindToCollection,n=(n,i,r)=>{const o=e._bindToCollection==this,a=e._bindToInternalToExternalMap.get(i);if(o&&a)this._bindToExternalToInternalMap.set(i,a),this._bindToInternalToExternalMap.set(a,i);else{const n=t(i);if(!n)return void this._skippedIndexesFromExternal.push(r);let o=r;for(const t of this._skippedIndexesFromExternal)r>t&&o--;for(const t of e._skippedIndexesFromExternal)o>=t&&o++;this._bindToExternalToInternalMap.set(i,n),this._bindToInternalToExternalMap.set(n,i),this.add(n,o);for(let t=0;t{const i=this._bindToExternalToInternalMap.get(e);i&&this.remove(i),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((t,e)=>(ne&&t.push(e),t),[])})}_getItemIdBeforeAdding(t){const e=this._idProperty;let n;if(e in t){if(n=t[e],"string"!=typeof n)throw new r.default("collection-add-invalid-id",this);if(this.get(n))throw new r.default("collection-add-item-already-exists",this)}else t[e]=n=Object(o.a)();return n}_remove(t){let e,n,i,o=!1;const a=this._idProperty;if("string"==typeof t?(n=t,i=this._itemMap.get(n),o=!i,i&&(e=this._items.indexOf(i))):"number"==typeof t?(e=t,i=this._items[e],o=!i,i&&(n=i[a])):(i=t,n=i[a],e=this._items.indexOf(i),o=-1==e||!this._itemMap.get(n)),o)throw new r.default("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);const s=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(s),this.fire("remove",i,e),[i,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Object(s.default)(u,i.default)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(87),r=n(164);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class o extends i.a{constructor(t){super(t),this.useCapture=!1}observe(t){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(e=>{this.listenTo(t,e,(t,e)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(e.target)&&this.onDomEvent(e)},{useCapture:this.useCapture})})}fire(t,e,n){this.isEnabled&&this.document.fire(t,new r.a(this.view,e,n))}}},function(t,e,n){"use strict";
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
function i(t){return e=>e+t}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var i=n(38),r=n(135),o=n(18),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=function(t){return Object(o.a)(t)&&Object(r.a)(t.length)&&!!a[Object(i.a)(t)]},u=n(48),l=n(80),c=l.a&&l.a.isTypedArray,d=c?Object(u.a)(c):s;e.a=d},function(t,e,n){"use strict";var i=n(286);var r=function(t,e){return null==t?void 0:t[e]};e.a=function(t,e){var n=r(t,e);return Object(i.a)(n)?n:void 0}},function(t,e,n){"use strict";var i=n(76);e.a=function(t){return Object(i.a)(t,5)}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(24)),o=i(n(8)),a=i(n(56)),s={page_number:"/p/",page_slug:"/page/"},u={buildUri:function(t,e,n,i){return void 0===n&&(n=null),void 0===i&&(i=""),a.default.locationIsHtmlFile()?this.buildHtmlStyleUri(e,i):this.buildPathStyleUri(t,e,n,i)},buildHtmlStyleUri:function(t,e){e=e||"";var n,i=this.getWindowContext(),r=i.location.search;return 1===t?(r=r.replace(/page=(\d+)&?/,""),n=i.location.pathname+r):n=a.default.appendQueryParams(i.location.pathname+r,{page:t}),(n=n.replace(/[&|\?]$/,""))+e},buildPathStyleUri:function(t,e,n,i){if(!s[t])return r.default.warn("Mode is not supported"),null;i=i||"";var a=this.getWindowContext(),u=s[t]+e,l=o.default.previewMode&&n&&"desktop"!==n?"/layout/"+n:"",c=a.location.pathname;o.default.isEditor&&(c=c.replace(/\/editor$/,""));var d=c+"";return d=(d=(d=d.replace(/\/$/,"")).replace(/\/layout\/[a-z0-9-]+/,"")+l).replace(/\/(p|page)\/[a-z0-9-]*/,"")+u,o.default.isEditor&&(d+="/editor"),(d+=a.location.search)+i},buildUriForPageNumber:function(t){var e=this.parseLayoutFromLocation();return this.buildUri("page_number",t,e)},parsePageFromLocation:function(){var t=this.getWindowContext(),e=null;if(a.default.locationIsHtmlFile()){var n=t.location.search.match(/page=(\d+)/);return e=1,n&&(e=parseInt(n[1],10)),e}var i=t.location.pathname.match(/\/p\/(\d+)\/?$/);if(i&&(e=parseInt(i[1],10)),!e&&o.default.usePageSlugsInNavigation){var r=t.location.pathname.match(/\/page\/([a-z0-9-]+)\/?$/);r&&(e=r[1])}return e||(e=1),e},parseLayoutFromLocation:function(){var t=this.getWindowContext().location.pathname.match(/\/layout\/([a-z0-9-]+)\/?/);return t?t[1]:"desktop"},getLayoutFromQueryParam:function(){var t,e=window.location.search;return null===(t=new URLSearchParams(e).get("layout"))||void 0===t?void 0:t.toLowerCase()},getLocationWithoutParamsAndLayoutOrPageNumber:function(){return this.getWindowContext().location.href.replace(/\?.*$/,"").replace(/\/(layout\/[0-9a-z-]+)\\?/,"").replace(/\/(page\/[0-9a-z-]+|p\/\d+)\\?$/,"")},getWindowContext:function(){return window},getEditModeFromQueryParam:function(){return"true"===new URLSearchParams(window.location.search).get("editmode")},getIsEditor:function(){return!0===o.default.isEditor},getStackDistance:function(){var t=new URLSearchParams(window.location.search);return parseInt(t.get("distance"))},getEditorURL:function(){return o.default.adminUrl+"/account/"+o.default.accountSlug+"/editor/experience/"+o.default.issueAliasSlug}};e.default=u},function(t,e,n){"use strict";var i=n(353),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){return"[object Function]"===r.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;n0){var n=this.activeStateInteractions.findIndex((function(t){return t.lockState}));n>=0&&this.activeStateInteractions.splice(n,0,e)}},e.prototype.invokeObjectState=function(t,e){void 0===e&&(e=!1),"default"===t&&this.isInNonDefaultState()&&this.revertToDefaultState();var n=this.getObjectState(t);n&&this.applyState(n,e)},e.prototype.applyState=function(t,e){void 0===e&&(e=!1);var n="default"!==this.options.selectedState?this.getObjectState(this.options.selectedState):void 0;this.options.selectedState=t.state||"default",this.callObjectStateInvoker(t,n),e||v.default.trigger("viewport.send_state_data")},e.prototype.callObjectStateInvoker=function(t,e){f.ObjectStateInvoker.invokeObjectState(this,t,e)},e.prototype.revertToDefaultState=function(){var t=new d.ObjectState({state:"default"});this.activeStateInteractions=[],this.applyState(t)},e.prototype.revokeObjectState=function(t){var e,n;if(this.getObjectState(t)){var i=t===(null===(e=this.getCurrentActiveChangeStateInteraction())||void 0===e?void 0:e.state);if(this.activeStateInteractions=this.activeStateInteractions.filter((function(e){return e.state!==t})),i){var r=this.getObjectState(null===(n=this.getCurrentActiveChangeStateInteraction())||void 0===n?void 0:n.state);r?this.applyState(r):this.revertToDefaultState()}}},e.prototype.applyTransition=function(t,e){var n=this;if(void 0===t&&(t=this.options.transition),!g.default.shouldReduceMotion)if(t){var i="all "+(t.duration||0)+"s "+(t.easing||"linear")+" "+(t.delay||0)+"s";this.applyTransitionToTarget(i,e);var r=1e3*((t.duration||0)+(t.delay||0));this.transitionTimer&&clearTimeout(this.transitionTimer),this.transitionTimer=setTimeout((function(){n.applyTransitionToTarget("")}),r)}else this.applyTransitionToTarget("")},e.prototype.applyTransitionToTarget=function(t,e){this.$el.css("transition",t),this.$el.css("transition-property",e||"none")},e.prototype.applyDropShadow=function(t,e){var n;void 0===t&&(t=this.options.shadow),void 0===e&&(e=this.options.rotation);var i=this.getApplyShadowTarget(),r=null===(n=i[0])||void 0===n?void 0:n.style.filter,o="";if(r){var a=r.match(/[\w-]*\(.*?\)/g);a&&(o=a.filter((function(t){return!t.startsWith("drop-shadow")})).join(" "))}if(this.hasShadow(t)){var s=p.CssUtils.convertShadowObjectToCssFilter(t,e);i.css("-webkit-filter",s),i.css("filter",s)}else i.css("filter",o),i.css("-webkit-filter",o)},e.prototype.getParentsWithLinkInteraction=function(){return this.options.parentSmartGroup&&this.options.parentSmartGroup.interactions.find((function(t){var e;return"click"===(null===(e=t)||void 0===e?void 0:e.state)}))?[this.options.parentSmartGroup.id]:this.hasParents()?this.parentViews.filter((function(t){return t.isComponent()&&!!t.options.linkInteraction})).map((function(t){return t.id})):[]},e.prototype.triggerMouseUpAction=function(t){t.triggerOutAction()},e.prototype.removeAllActiveStates=function(){var t=this;this.activeStateInteractions.forEach((function(e){t.options.pageView.deactivateInteraction(e)})),this.activeStateInteractions=[]},e.prototype.removeActiveState=function(t){var e=this.activeStateInteractions.findIndex((function(e){return e===t}));-1!==e&&this.activeStateInteractions.splice(e,1),this.options.pageView.deactivateInteraction(t)},e.prototype.addActiveState=function(t){this.activeStateInteractions.find((function(e){return e===t}))||this.activeStateInteractions.push(t)},e.prototype.getCurrentActiveChangeStateInteraction=function(){if(this.activeStateInteractions&&this.activeStateInteractions.length>0)return this.activeStateInteractions[this.activeStateInteractions.length-1]},e.prototype.hasActiveClickStateWithLock=function(){return this.activeStateInteractions.some((function(t){return"click"===t.state&&t.lockState}))},e.prototype.hasActiveCustomStateWithLock=function(){return this.activeStateInteractions.some((function(t){return!("click"===t.state||"hover"===t.state||"default"===t.state)&&t.lockState}))},e.prototype.hasActiveBringToFront=function(){return!!this.activeBringToFrontInteraction},e.prototype.isInNonDefaultState=function(){return"default"!==this.options.selectedState},e.prototype.createHoverArea=function(){(this.isUsingHoverAreaForMouseOut()||this.isMask())&&(this.unbindInteractions(),this.hoverArea||(this.hoverArea=this.options.pageView.createHoverArea(this),this.hoverArea.render()),this._configureInteractions(),this.shouldAddHoverAreaPointerEvents()?this.addPointerEvents():this.removePointerEvents())},e.prototype.enableHoverArea=function(){var t;this.shouldAddHoverAreaPointerEvents(!0)&&(null===(t=this.hoverArea)||void 0===t||t.enableHoverArea(this))},e.prototype.disableHoverArea=function(){var t,e=this;this.usesHoverAreaForInteractions()&&(null===(t=this.hoverArea)||void 0===t||t.getHoverAreaTarget().on("click",(function(){var t;null===(t=e.hoverArea)||void 0===t||t.disableHoverArea(e)})))},e.prototype.isHoverAreaDisabled=function(){var t;return!!(null===(t=this.hoverArea)||void 0===t?void 0:t.isDisabled())},e.prototype.activateHoverArea=function(){var t;this.shouldAddHoverAreaPointerEvents()&&(null===(t=this.hoverArea)||void 0===t||t.activate())},e.prototype.shouldAddHoverAreaPointerEvents=function(t){void 0===t&&(t=!1);var e=this.hoverArea&&!(this.hoverArea.isDisabled()&&!t);return this.visible&&e},e.prototype.isHovered=function(t){var e,n=this.getHoverTarget();return!!(null===(e=this.hoverArea)||void 0===e?void 0:e.isHovered())||n.is((function(t,e){return e.matches(":hover")}))},e.prototype.getComponentActualWidthHeight=function(){var t=this.options.width,e=this.options.height,n=this.options.parentSmartgroup;return n&&(t*=n.options.scaleWidth,e*=n.options.scaleHeight),{width:t,height:e}},e.prototype.getComponentAbsolutePosition=function(){var t=this.options.absoluteX||0,e=this.options.absoluteY||0,n=this.options.parentSmartgroup;if(n){t*=n.options.scaleWidth,t+=n.options.originalX,e*=n.options.scaleHeight,e+=n.options.originalY;var i=Math.toRad(n.options.rotation);if(i){var r=this.options.width*n.options.scaleWidth,o=this.options.height*n.options.scaleHeight,a=this.options.x*n.options.scaleWidth,s=this.options.y*n.options.scaleHeight,u=new h.default.Point(a+r/2,s+o/2),l=n.options.width*n.options.scaleWidth/2,c=n.options.height*n.options.scaleHeight/2;u.rotate(l,c,-i),u.x+=n.options.absoluteX||0,u.y+=n.options.absoluteY||0,t=u.x-r/2,e=u.y-o/2}}return{componentTop:e,componentLeft:t}},e.prototype.getHoverTarget=function(){return this.$el},e.prototype.updatePositionForHoverArea=function(){var t;null===(t=this.hoverArea)||void 0===t||t.updatePosition()},e.prototype.setInitialZIndex=function(t){this.$el.css("z-index",t),this.zIndex=t,this.currentZIndex=t},e.prototype.setZIndex=function(t,e){var n;this.$el.css("z-index",t),this.currentZIndex=t,null===(n=this.hoverArea)||void 0===n||n.setZIndex(t+1),"click"===e&&(this.activeBringToFrontInteraction=!0)},e.prototype.resetZIndex=function(){var t;this.$el.css("z-index",this.zIndex),this.currentZIndex=this.zIndex,null===(t=this.hoverArea)||void 0===t||t.setZIndex(this.zIndex+1),this.activeBringToFrontInteraction=!1},e.prototype.getCurrentHighestZIndex=function(){return this.hoverArea?Math.max(this.hoverArea.currentZIndex,this.currentZIndex):this.currentZIndex},e.prototype.setDimensionsAsAttributes=function(t,e,n){t.attr("width",e),t.attr("height",n)},e.prototype.getPointerEventsTarget=function(){return this.$el},e.prototype.addPointerEvents=function(){var t;this.usesHoverAreaForInteractions()?null===(t=this.hoverArea)||void 0===t||t.activate():this.isMask()||this.isMaskGroup()?(this.getPointerEventsTarget().css("pointer-events","none"),this.addPointerEventsToChildren()):this.getPointerEventsTarget().css("pointer-events","auto")},e.prototype.addPointerEventsToChildren=function(){},e.prototype.removePointerEvents=function(){var t;this.usesHoverAreaForInteractions()?null===(t=this.hoverArea)||void 0===t||t.deactivate():this.getPointerEventsTarget().css("pointer-events","none")},e.prototype.assignCursor=function(){this.hasClickInteraction()||this.hasMouseDownInteraction()||this.options.showHoverCursor?this.getInteractionTarget().css("cursor","pointer"):this.getInteractionTarget().css("cursor","inherit")},e.prototype.getInteractionTarget=function(t){if((void 0===t&&(t=!1),this.hoverArea)&&!(this.hoverArea.isDisabled()&&!t))return this.hoverArea.getHoverAreaTarget();return this.getPointerEventsTarget()},e.prototype.bindClickInteraction=function(){this.hasClickInteraction()||this.isMask()?this.getInteractionTarget().on("click",s.default.bind(this._handleClickInteraction,this)):this.getInteractionTarget().on("click",s.default.bind(this.handleClickWithoutInteraction,this))},e.prototype.bindMouseDownInteraction=function(){(this.hasMouseDownInteraction()||this.isMask())&&this.getInteractionTarget().on("mousedown",s.default.bind(this._handleMouseDownInteraction,this))},e.prototype.bindMouseOverInteraction=function(){(this.hasHoverInteraction()||this.isMask())&&this.getInteractionTarget().on("mouseover",s.default.bind(this._handleMouseOverInteraction,this))},e.prototype.unbindInteractions=function(t){void 0===t&&(t=!1),this.$el.off("click"),this.$el.off("mouseover"),this.$el.off("mouseout"),this.$el.off("keydown"),this.$el.off("mousedown");var e=this.getInteractionTarget(t);e!==this.$el&&(e.off("click"),e.off("mouseover"),e.off("mouseout"),e.off("mousedown")),this.hasAccessibilityFeature&&this.$el.off("keydown",this._handleOnEscKeyPressed)},e.prototype._configureInteractions=function(){this.unbindInteractions(!0),this.assignCursor(),this.bindClickInteraction(),this.bindMouseDownInteraction(),this.bindMouseOverInteraction(),this.bindClickSelectInteraction(),this.hasAccessibilityFeature&&this.$el.on("keydown",this._handleOnEscKeyPressed)},e.prototype.bindClickSelectInteraction=function(){this.$el.on("keydown",this.handleKeydown.bind(this))},e.prototype.shouldTriggerClickOnKeyDown=function(){return!(!this.hasClickInteraction()||!this.hoverArea)},e.prototype.handleKeydown=function(t){var e=t.keyCode;this.isEditor()&&e===m.default.SPACE?t.target instanceof HTMLButtonElement&&t.target.blur():e!==m.default.SPACE&&e!==m.default.ENTER||(this.shouldTriggerClickOnKeyDown()?this._handleClickInteraction(t,!1,void 0,!0):this.handleClickWithoutInteraction(t),this.hasMouseDownInteraction()&&this._handleMouseDownInteraction(t,!0))},e.prototype.setMaskInteractions=function(t){this.options.interactions=t,this.createHoverArea()},e.prototype.usesHoverAreaForInteractions=function(){return!!this.hoverArea&&!this.hoverArea.isDisabled()},e.prototype.isBaseMaskObject=function(){return!1},e.prototype.isMask=function(){var t;return!(!this.options.maskInfo||!(null===(t=this.options.maskInfo)||void 0===t?void 0:t.maskedObjectId))},e.prototype.isMaskGroup=function(){return!1},e.prototype.isAlphaMask=function(){return!1},e.prototype.hasInteractions=function(){var t;return!!(null===(t=this.options.interactions)||void 0===t?void 0:t.length)},e.prototype.getMaskGroup=function(){return[]},e.prototype.isUsingHoverAreaForMouseOut=function(){var t,e=!!(null===(t=this.options.interactions)||void 0===t?void 0:t.find((function(t){return!!t.hasOutTrigger})));return u.default.desktop()&&!this.isBaseMaskObject()&&this.hasInteractions()&&e},e.prototype.getEventInteractionData=function(){var t,e;return this.isMask()&&this.parentViews.length?this.parentViews[0].getEventInteractionData():{componentSlug:this.id,componentName:this.options.title,componentType:this.options.type,pageSlug:null===(t=this.options.pageView.model)||void 0===t?void 0:t.get("slug"),pageName:null===(e=this.options.pageView.model)||void 0===e?void 0:e.get("name"),currentState:this.options.selectedState,sdkTags:this.options.sdkTags,sdkPayload:this.options.sdkPayload}},Object.defineProperty(e.prototype,"linkInteraction",{get:function(){return this.options.linkInteraction||"smartgroup"===this.options.type},enumerable:!1,configurable:!0}),e.prototype.getCurrentValue=function(t){var e=this.getComponentAbsolutePosition(),n=e.componentLeft,i=e.componentTop,r=this.options;if(this.isInNonDefaultState()){var a=this.getObjectState(this.options.selectedState),s=(null==a?void 0:a.config)||{},u=s.deltaX,l=void 0===u?0:u,c=s.deltaY,d={x:n+l,y:i+(void 0===c?0:c)};r=o(o(o({},r),null==a?void 0:a.config),d)}else{d={x:n,y:i};r=o(o({},r),d)}return r[t]},e.prototype.getEntryAnimations=function(){return this.entryAnimations},e.prototype.getHoverArea=function(){return this.hoverArea},e}(l.default);e.AbstractComponentView=y},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(187),a=n(148),s=n(101),u=function(t){function e(e,n){var i=t.call(this,e)||this;return i.attributeKey=n,e.conversion.for("editingDowncast").markerToHighlight({model:s.SELECTION_MARKER,view:{classes:["fake-selection"]}}),i}return r(e,t),e.prototype.refresh=function(){var t=this.editor.model,e=t.document;this.value=e.selection.getAttribute(this.attributeKey),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)},e.prototype.execute=function(t,e,n){var i=this;this.editor.model.change((function(r){n?i.applyAttributeForRange(r,n,t):e?i.executeForSelection(r,t):i.executeForAllRanges(r,t)}))},e.prototype.executeForSelection=function(t,e){var n=this.editor.model.document.selection;if(n.isCollapsed)this.applyAttributeForSelection(t,n,e);else{var i=Array.from(n.getRanges()),r=Array.from(this.editor.model.schema.getValidRanges(i,this.attributeKey));this.applyAttributeForRange(t,r,e)}},e.prototype.executeForAllRanges=function(t,e){var n=this.editor.model.document,i=a.getAllRanges(n,t,this.editor,this.attributeKey);i&&this.applyAttributeForRange(t,i,e)},e.prototype.applyAttributeForRange=function(t,e,n){a.applyAttributeForRange(t,e,this.attributeKey,n)},e.prototype.applyAttributeForSelection=function(t,e,n){a.applyAttributeForSelection(t,this.attributeKey,n)},e}(o.Command);e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(3)),o=i(n(0)),a=i(n(13)),s=i(n(8)),u=i(n(758)),l=i(n(765)),c=i(n(422)),d={VARIANT_ADDED:"variantAdded",VARIANT_ADDED_REMOTE:"variantAddedRemote",VARIANT_CHANGED:"variantChanged",VARIANT_DELETION_STARTED:"variantDeletionStarted",VARIANT_ABOUT_TO_DELETE:"variantAboutToDelete",VARIANT_DELETED:"variantDeleted",VARIANT_DELETED_REMOTE:"variantDeletedRemote",VARIANT_DELETED_FROM_ALL_PAGES:"variantDeletedFromAllPages",VARIANT_DELETE_FAILED:"variantDeleteFailed",VARIANT_SAVED:"variantSaved",VARIANT_SAVE_FAILED:"variantSaveFailed"},f=["desktop"],h={docVersion:null,currentVariant:"desktop",creatingComponent:!1,inIsolationMode:!1,EVENTS:d,doingCycleHack:!1,cachedAdaptiveLayoutsEnabled:null,defaultVariantValues:{mobile:{viewportWidth:540,viewportHeight:960},tablet:{viewportWidth:768,viewportHeight:1024}},setDocumentVersion:function(t){this.docVersion=t},setInIsolationMode:function(t){this.inIsolationMode=t},setCurrentVariant:function(t){t!==this.currentVariant&&(this.currentVariant=t,this.trigger(d.VARIANT_CHANGED))},setDoingCycleHack:function(t){this.doingCycleHack=t},isDoingCycleHack:function(){return this.doingCycleHack},setIsDeletingAVariant:function(t){this.deletingAVariant=t},isDeletingAVariant:function(){return this.deletingAVariant},isCurrentVariant:function(t){return this.currentVariant===t},isInIsolationMode:function(){return this.inIsolationMode},getExistingVariants:function(){if(!this.adaptiveLayoutsEnabled())return[];var t=this.docVersion.doc.at("overrides").get();return o.default.keys(t)},areAllVariantsCreated:function(){return 2===this.getExistingVariants().length},getMissingVariants:function(){return o.default.difference(o.default.keys(this.defaultVariantValues),this.getExistingVariants())},getOtherVariantIfExists:function(t){var e="mobile"===t?"tablet":"mobile";return this.doesVariantExist(e)?e:null},doesVariantExist:function(t){var e=this.getExistingVariants();return o.default.includes(e,t)||"desktop"===t},doesAnyVariantExist:function(){return this.getExistingVariants().length>0},getCurrentVariant:function(){return this.adaptiveLayoutsEnabled()?this.currentVariant:"desktop"},getAllExistingLayouts:function(){return this.getExistingVariants().concat("desktop")},getNonCurrentLayouts:function(){if(!this.adaptiveLayoutsEnabled())return[];if("desktop"===this.currentVariant)return this.getExistingVariants();var t=["desktop"],e=this.getOtherVariantIfExists(this.currentVariant);return e&&t.push(e),t},hasMultipleVariants:function(){return o.default.size(this.docVersion.doc.at("overrides").get())>0},addNewVariantToDocVersion:function(t){var e=r.default.Deferred();if(this.adaptiveLayoutsEnabled())if(this.doesVariantExist(t))e.reject("error-variant-exists");else try{var n=this.getSourceVariantName(),i=o.default.cloneDeep(this.docVersion.get("overrides"))||{};i[t]=this.defaultVariantValues[t],o.default.extend(i[t],this.getDocVersionAttributesToCopyFromSourceVariant(this.docVersion,n)),this.docVersion.set("overrides",i),this.trigger(d.VARIANT_ADDED,{newVariantName:t,sourceVariantName:n}),e.resolve()}catch(t){e.reject(t)}else e.reject("error-adaptiveLayouts-disabled");return e.promise()},beginVariantDelete:function(t){this.doesVariantExist(t)&&(this.setIsDeletingAVariant(!0),this.trigger(d.VARIANT_DELETION_STARTED),this.trigger(d.VARIANT_ABOUT_TO_DELETE,{variantName:t}))},deleteVariantFromDocVersion:function(t){var e=r.default.Deferred();if(this.doesVariantExist(t))try{this.setCurrentVariant("desktop");var n=o.default.cloneDeep(this.docVersion.get("overrides"));delete n[t],this.docVersion.set("overrides",n),this.setIsDeletingAVariant(!1),this.trigger(d.VARIANT_DELETED,{variantName:t}),e.resolve()}catch(t){e.reject(t),this.trigger(d.VARIANT_DELETE_FAILED)}else e.reject("error-variant-missing"),this.trigger(d.VARIANT_DELETE_FAILED);return e.promise()},saveVariant:function(t){this.trigger(d.VARIANT_SAVED,{variantName:t})},variantSaveFailed:function(t){this.trigger(d.VARIANT_SAVE_FAILED,{variantName:t})},listenForVariantSavedOrFailed:function(){var t=r.default.Deferred();return this.listenToOnce(h,h.EVENTS.VARIANT_SAVED,t.resolve),this.listenToOnce(h,h.EVENTS.VARIANT_SAVE_FAILED,t.reject),t},getDocVersionAttributesToCopyFromSourceVariant:function(t,e){return"desktop"!==e&&this.adaptiveLayoutsEnabled()?{scaleExperienceType:t.get("overrides")[e].scaleExperienceType}:{scaleExperienceType:t.get("scaleExperienceType")}},adaptiveLayoutsEnabled:function(){if(null!==this.cachedAdaptiveLayoutsEnabled)return this.cachedAdaptiveLayoutsEnabled;if(c.default.getCurrentUser()){var t=u.default.getActiveAccount().hasAdaptiveLayouts();return this.cachedAdaptiveLayoutsEnabled=t,t}return!1},getSourceVariantName:function(){var t=this.getExistingVariants();if(0===t.length)return"desktop";if(1===t.length)return t[0];throw"All 3 variants already exist"},cloneOverrides:function(t){var e=o.default.clone(t);return o.default.each(t,(function(t,n){e[n]=o.default.clone(t)})),e},reconcileJSONForCurrentVariant:function(t,e){var n;if(e&&e.isSyncedObject()||"desktop"===this.currentVariant)n=o.default.extend({},t);else{var i=t.overrides[this.currentVariant];if(i){var r=t.synced?o.default.omit(i,e.getSyncedProperties()):i;n=o.default.extend({},t,r)}else{var a={variant:this.currentVariant,modelJSON:JSON.stringify(t),issue:s.default.issueSlug,docDictionaryJson:JSON.stringify(this.docVersion.pageCollection.getCurrentPage().doc.at("layerDictionary").at(t.id).get())};window.Rollbar.warn("Missing Variant Overrides Object on reconcileJSONForCurrentVariant",a)}}return delete n.overrides,n},disableLayoutSwitch:function(){this.trigger("disableLayoutSwitch")},enableLayoutSwitchIfReady:function(){l.default.allClearToSwitchVariants()&&this.trigger("enableLayoutSwitch")},doesCurrentVariantSupportHover:function(){var t=this.getCurrentVariant();return f.indexOf(t)>-1}};o.default.extend(h,a.default.Events),e.default=h},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractCanvasTargetsActionModel=void 0;var s=a(n(0)),u=n(73),l=n(30),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.isValid=function(){var t=this,e=this.get("layerTargets");if(!e||s.default.isEmpty(e))return!1;if(!this.getSupportsMultipleTargets()&&1!==e.length)return!1;var n=this.getValidCanvasTargets();return e.every(function(e){return t.isCanvasTargetValid(e,n)}.bind(this))},e.prototype.getCanvasTargetsInContext=function(){return this.parentInteraction.getValidFullHierarchyTargets()},e.prototype.getValidCanvasTargets=function(){return this.getCanvasTargetsInContext()},e.prototype.isCanvasTargetTypeValid=function(t){var e=this.get("layerTargets");return!(!this.getSupportsMultipleTargets()&&e&&e.length>=1)&&t.isInteractable()},e.prototype.isCanvasTargetValid=function(t,e){return e||(e=this.getValidCanvasTargets()),!!e.get(t)},e.prototype.getCanvasTargetIds=function(){var t=this.get("layerTargets");return s.default.isArray(t)?t.slice():[]},e.prototype.getFirstCanvasTargetId=function(){var t=this.getCanvasTargetIds();return s.default.isEmpty(t)?null:t[0]},e.prototype.getCanvasTargetModels=function(){var t=this,e=new Array;return s.default.each(this.getCanvasTargetIds(),s.default.bind((function(n){var i=t.getValidCanvasTargets().get(n);i?e.push(i):console.warn("No canvas target model found for id "+n)}),this)),e},e.prototype.getFirstCanvasTargetModel=function(){var t=this.getCanvasTargetModels();return t.length>0?t[0]:null},e.prototype.hasACanvasTarget=function(){var t=this.getCanvasTargetIds();return!s.default.isEmpty(t)},e.prototype.addCanvasTarget=function(t){var e=this.getCanvasTargetIds();e.push(t),this.set("layerTargets",e)},e.prototype.setCanvasTargets=function(t){s.default.isString(t)&&(t=s.default.filter([t])),this.set("layerTargets",t)},e.prototype.updateCanvasTargets=function(t,e){var n=this.getCanvasTargetIds();n.length<=t?console.warn("Trying to update a canvas target that doesn't exist"):(n[t]=e,this.set("layerTargets",n))},e.prototype.removeCanvasTarget=function(t){var e=this.getCanvasTargetIds();e.length<=t?console.warn("Trying to update a canvas target that doesn't exist"):(e.splice(t,1),this.set("layerTargets",e))},e.prototype.getSupportsMultipleTargets=function(){return this.get("supportsMultipleTargets")},e=o([l.ActionModelOptions({defaults:{layerTargets:null,supportsMultipleTargets:!0}})],e)}(u.AbstractActionModel);e.AbstractCanvasTargetsActionModel=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var i=n(27),r=n(91),o=n(25),a=n(4),s=n(1);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class u{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new s.default("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if("forward"!=e&&"backward"!=e)throw new s.default("model-tree-walker-unknown-direction",t,{direction:e});this.direction=e,this.boundaries=t.boundaries||null,t.startPosition?this.position=t.startPosition.clone():this.position=a.default._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(t){let e,n,i,r;do{i=this.position,r=this._visitedParent,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this.position=i,this._visitedParent=r)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0};const s=e.parent,u=Object(a.getTextNodeAtPosition)(e,s),c=u||Object(a.getNodeAfterPosition)(e,s,u);if(c instanceof o.default)return this.shallow?e.offset++:(e.path.push(0),this._visitedParent=c),this.position=e,l("elementStart",c,t,e,1);if(c instanceof i.default){let i;if(this.singleCharacters)i=1;else{let t=c.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offsett&&(t=this.boundaries.start.offset),i=e.offset-t}const o=e.offset-c.startOffset,a=new r.a(c,o-i,i);return e.offset-=i,this.position=e,l("text",a,t,e,i)}return e.path.pop(),this.position=e,this._visitedParent=n.parent,l("elementStart",n,t,e,1)}}function l(t,e,n,i,r){return{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:r}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var i=n(121),r=n(26);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class o{constructor(){this._listener=Object.create(i.a)}listenTo(t){this._listener.listenTo(t,"keydown",(t,e)=>{this._listener.fire("_keydown:"+Object(r.a)(e),e)})}set(t,e,n={}){const i=Object(r.g)(t),o=n.priority;this._listener.listenTo(this._listener,"_keydown:"+i,(t,n)=>{e(n,()=>{n.preventDefault(),n.stopPropagation(),t.stop()}),t.return=!0},{priority:o})}press(t){return!!this._listener.fire("_keydown:"+Object(r.a)(t),t)}destroy(){this._listener.stopListening()}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n{this.fire(t,e)};return n.removeListener=()=>{this._domNode.removeEventListener(t,n,e),delete this._domListeners[t]},n}})},function(t,e,n){"use strict";var i=n(7),r=n(37);e.a=function(t){return Object(i.a)((function(e,n){var i=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&Object(r.a)(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++it.data.length)throw new i.default("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new i.default("view-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(t){return"$textProxy"===t||"view:$textProxy"===t||"textProxy"===t||"view:textProxy"===t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this.textNode:this.parent;for(;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(0)),o=i(n(13));e.default=r.default.extend({events:{},unregisteredHandlers:{},registerEvents:function(t,e){r.default.each(t,r.default.bind((function(t){this.events[t]=e,this.unregisteredHandlers[t]&&(r.default.each(this.unregisteredHandlers[t],r.default.bind((function(e){this.on(t,e)}),this)),this.unregisteredHandlers[t]=null)}),this))}},o.default.Events)},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return r(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=a(n(0)),u=a(n(3)),l=a(n(13)),c={Module:function(t){s.default.extend(this,t),this.status=c.Module.STATUS.PENDING,t.delegate&&this.setDelegate(t.delegate)}};s.default.extend(c.Module.prototype,l.default.Events,{setDelegate:function(t){if(!s.default.isObject(t))throw Error("invalid module delegate!");for(var e in t)!this.hasOwnProperty(e)&&t.hasOwnProperty(e)&&s.default.isFunction(t[e])&&(this[e]=s.default.bind(t[e],t))},getModule:function(t){return this.application.getModule(t)},setApplication:function(t){this.application=t},getApplication:function(){return this.application},getDependency:function(t){return this.application.getModule(t)},setStatus:function(t){this.status=t},getStatus:function(){return this.status},getDeferredLoadingTimeout:function(){return c.Application.DEFERRED_LOADING_TIMEOUT}}),c.Module.extend=l.default.View.extend,c.Module.STATUS={PENDING:1,LOADED:2,STARTED:4},c.Application=function(t){this.initCallbacks=new c.Callbacks,this.modules={};var e=this;this.loadedAllModules=(new u.default.Deferred).progress((function(t){e._loadModule(t),e._allLoaded()&&this.resolve()})),s.default.extend(this,t)},s.default.extend(c.Application.prototype,l.default.Events,{_allLoaded:function(){return s.default.every(s.default.values(this.modules),(function(t){return t&&t.getStatus()===c.Module.STATUS.LOADED}))},_loadModule:function(t){if(s.default.isUndefined(t)||s.default.isNull(t))throw Error("invalid module!");this.modules[t.id]=t,t.setApplication(this),t.trigger("load"),t.setStatus(c.Module.STATUS.LOADED),this.addInitializer((function(){t.trigger("start"),t.setStatus(c.Module.STATUS.STARTED)}))},use:function(t){var e=this;s.default.isString(t)?(this.modules[t]=null,Promise.resolve().then((function(){return o(n(526)("./"+t+"/module"))})).then((function(n){if(!n)throw Error("could not load module: "+t);e.loadedAllModules.notify(n)}))):this._loadModule(t)},getModule:function(t){return this.modules[t]},addInitializer:function(t){this.initCallbacks.add(t)},start:function(t){var e=s.default.bind((function(){this.trigger("initialize:before",t),this.initCallbacks.run(t,this),this.trigger("initialize:after",t),this.trigger("start",t)}),this);this._allLoaded()?e():u.default.when(this.loadedAllModules).then(e)}}),c.Application.extend=l.default.View.extend,c.Application.DEFERRED_LOADING_TIMEOUT=5e3,c.Callbacks=function(){this.deferred=u.default.Deferred(),this.promise=this.deferred.promise()},s.default.extend(c.Callbacks.prototype,{add:function(t,e){this.promise.done((function(n,i){e&&(n=e),t.call(n,i)}))},run:function(t,e){this.deferred.resolve(e,t)}}),e.default=c},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n200||o>200||i+o>300)return r.fastDiff(t,e,n,!0);let a,s;if(oo?-1:1;d[i+c]&&(d[i]=d[i+c].slice(0)),d[i]||(d[i]=[]),d[i].push(r>o?a:s);let h=Math.max(r,o),p=h-i;for(;pc;p--)f[p]=h(p);f[c]=h(c),g++}while(f[c]!==l);return d[c].slice(1)}r.fastDiff=i.a},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(0)),o=function(t,e,n,i){var o=parseFloat(i);return(r.default.isUndefined(i)||r.default.isNaN(o))&&(o=1),null!==t&&(this.r=parseInt(t,10)),null!==e&&(this.g=parseInt(e,10)),null!==n&&(this.b=parseInt(n,10)),this.a=o,this};o.prototype={toHex:function(){var t;return null===this.r||null===this.g||null===this.b?"transparent":(t=(this.b|this.g<<8|this.r<<16).toString(16),(t="#"+"000000".substr(0,6-t.length)+t).toUpperCase())},isTransparent:function(){return!this.a},set:function(t){return r.default.each(t,r.default.bind((function(t,e){this[e]=t}),this)),this},hsv:function(){var t={h:0,s:0,v:0},e=this.r/255,n=this.g/255,i=this.b/255,r=Math.min(e,Math.min(n,i)),o=Math.max(e,Math.max(n,i));if(r==o)return t.v=r,t;var a=e==r?n-i:i==r?e-n:i-e,s=e==r?3:i==r?1:5;return t.h=60*(s-a/(o-r)),t.s=(o-r)/o,t.v=o,t},rgb:function(){return{r:this.r,g:this.g,b:this.b}},rgba:function(){return{r:this.r,g:this.g,b:this.b,a:this.a}},cmyk:function(){var t={c:0,m:0,y:0,k:0},e=this.r/255,n=this.g/255,i=this.b/255;return t.k=Math.min(1-e,1-n,1-i),t.c=(1-e-t.k)/(1-t.k),t.m=(1-n-t.k)/(1-t.k),t.y=(1-i-t.k)/(1-t.k),isNaN(t.c)&&(t.c=0),isNaN(t.m)&&(t.m=0),isNaN(t.y)&&(t.y=0),t.c=Math.round(100*t.c),t.m=Math.round(100*t.m),t.y=Math.round(100*t.y),t.k=Math.round(100*t.k),t},contrastRatio:function(t){t=o.fromString(t);var e=this.relativeLuminance(),n=t.relativeLuminance();if(et.contrastRatio(n)?e:n},window.Color=o,e.default=o},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},s=this&&this.__spread||function(){for(var t=[],e=0;e-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n(118),r=n(1),o=n(62);n(186);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class a{constructor(t){this.parent=null,this._attrs=Object(i.a)(t)}get index(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new r.default("model-node-not-found-in-parent",this);return t}get startOffset(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new r.default("model-node-not-found-in-parent",this);return t}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.root.is("rootElement")}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}getAncestors(t={includeSelf:!1,parentFirst:!1}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),i=t.getAncestors(e);let r=0;for(;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),i=Object(o.default)(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i](t[e[0]]=e[1],t),{})),t}is(t){return"node"===t||"model:node"===t}_clone(){return new a(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(t,e){this._attrs.set(t,e)}_setAttributesTo(t){this._attrs=Object(i.a)(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}},function(t,e,n){"use strict";var i=n(75),r=n(49),o=Object.prototype.hasOwnProperty;e.a=function(t,e,n){var a=t[e];o.call(t,e)&&Object(r.a)(a,n)&&(void 0!==n||e in t)||Object(i.a)(t,e,n)}},function(t,e,n){"use strict";var i=Object.prototype;e.a=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||i)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(136),r=n(1);
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
class o{constructor(t){this._nodes=[],t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((t,e)=>t+e.offsetSize,0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return-1==e?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);return null===e?null:this._nodes.slice(0,e).reduce((t,e)=>t+e.offsetSize,0)}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new r.default("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}offsetToIndex(t){let e=0;for(const n of this._nodes){if(t>=e&&tt.toJSON())}}},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}function o(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(3)),l=s(n(0)),c=o(n(94)),d=s(n(14)),f=s(n(351)),h=["svg","path","rect","circle","ellipse","line","polyline","polygon","text"];e.default={VECTOR_IMAGE_CONVERSION_VERSION:2,isVectorBased:function(t){return"image/svg+xml"===t},hasCurrentConvertedVectorImageUri:function(t,e){return 2===t&&!!e},getImageAspectRatio:function(t){var e=this.getViewportDimensions(t);if(e&&e.height>0&&e.width>0)return e;var n=this.getViewBoxDimensions(t);return n&&n.height>0&&n.width>0?n:null},getViewBoxDimensions:function(t){var e=(t.documentElement.getAttribute("viewBox")||"").match(/-?[\d\.]+/g);if(e&&4===e.length){var n=parseInt(e[2],10),i=parseInt(e[3],10);if(n>0&&i>0)return{width:n,height:i}}return null},getViewportDimensions:function(t){var e=t.documentElement,n=parseInt(e.getAttribute("width"),10),i=parseInt(e.getAttribute("height"),10);return n>0&&i>0?{width:n,height:i}:null},setViewportDimensions:function(t,e,n){var i=t.documentElement;i.setAttribute("width",e+"px"),i.setAttribute("height",n+"px")},updateSVGColorStyle:function(t,e){l.default.each(h,l.default.bind((function(n){var i=t.getElementsByTagName(n);l.default.each(i,l.default.bind((function(t){this.canFillStyleBeUpdated(t)&&this.appendStyle(t,"fill",e),this.canStrokeStyleBeUpdated(t)&&this.appendStyle(t,"stroke",e)}),this))}),this))},canFillStyleBeUpdated:function(t){var e=this.getStyle(t,"fill");return!e||"none"!==e.trim()},canStrokeStyleBeUpdated:function(t){var e=this.getStyle(t,"stroke");return e&&"none"!==e.trim()},getStyle:function(t,e){var n=this.getStyleValue(t,e);return n||(n=t.getAttribute(e)),n},removeIllegalNodes:function(t){this.removeNodesByNodeName(t,"foreignObject")},removeNodesByNodeName:function(t,e){var n=t.getElementsByTagName(e);if(n)for(var i=n.length-1;i>=0;i--){var r=n[i];r.parentNode.removeChild(r)}},handleTitle:function(t,e,n){var i=t.getElementsByTagName("title"),r=t.documentElement;if(e||n){var o="title"+f.default.randomId();if(r.setAttribute("role","img"),r.setAttribute("aria-labelledby",o),r.removeAttribute("aria-hidden"),null==i||0===i.length){var a=t.createElement("title");r.appendChild(a),i=t.getElementsByTagName("title")}i[0].innerHTML=e,i[0].setAttribute("id",o)}else r.setAttribute("aria-hidden","true")},findChildNode:function(t,e){return l.default.find(t.childNodes,(function(t){return t.nodeName===e}))},appendNewChildNode:function(t,e,n){var i=this.createSVGNode(t,n);return e.appendChild(i,e.firstChild),i},prependNewChildNode:function(t,e,n){var i=this.createSVGNode(t,n);return e.insertBefore(i,e.firstChild),i},addLinearGradient:function(t,e,n){var i=t.documentElement,r=this.findChildNode(i,"defs");r||(r=this.prependNewChildNode(t,i,"defs"));var o=this.findChildNode(r,"linearGradient"),a=(null==o?void 0:o.getAttribute("id"))||"";null!=o&&0!==o.length||(o=this.prependNewChildNode(t,r,"linearGradient")),o.getAttribute("data-cerosgradient")||0===a.indexOf("CerosGradient_")||(o=this.prependNewChildNode(t,r,"linearGradient")),o.setAttribute("class","cerosgradient"),o.setAttribute("data-cerosgradient",!0),o.setAttribute("id",e),o.setAttribute("gradientUnits","userSpaceOnUse");var s=c.calcRotatedLineIntersect(n.angle,100,100);o.setAttribute("x1",s.startPt.getX()+"%"),o.setAttribute("y1",s.startPt.getY()+"%"),o.setAttribute("x2",s.endPt.getX()+"%"),o.setAttribute("y2",s.endPt.getY()+"%"),l.default.each(n.stops,l.default.bind((function(e,i){var r=100*i/(n.stops.length-1),a=o.getElementsByTagName("stop")[i];null!=a&&0!==a.length||(a=this.appendNewChildNode(t,o,"stop")),a.setAttribute("offset",r+"%"),a.setAttribute("stop-color",e.color)}),this))},createSVGNode:function(t,e){return t.createElementNS("http://www.w3.org/2000/svg",e)},supportsObjectURLs:function(){return!d.default.isPhantomJS()&&!d.default.isJsDom()},createObjectURL:function(t){if(this.supportsObjectURLs()){var e=this.createBlob(t);return this.getDOMURL().createObjectURL(e)}var n=this.createXmlString(t);return"data:image/svg+xml;base64,"+window.btoa(n)},createBlob:function(t){var e=this.createXmlString(t);return new Blob([e],{type:"image/svg+xml"})},createXmlString:function(t){return(new XMLSerializer).serializeToString(t)},revokeObjectURL:function(t){this.supportsObjectURLs()&&this.getDOMURL().revokeObjectURL(t)},getDOMURL:function(){return window.URL||window.webkitURL||window},isDataURL:function(t){return l.default.isString(t)&&0===t.indexOf("data:")},isVectorDataURL:function(t){return l.default.isString(t)&&0===t.indexOf("data:image/svg+xml;base64,")},convertToXMLString:function(t){if(!this.isVectorDataURL(t))throw new Error("Expected data url to start with data:image/svg+xml;base64,");var e=t.substring("data:image/svg+xml;base64,".length);return window.atob(e)},appendStyle:function(t,e,n){var i=t.getAttribute("style"),r=e+":"+n+";";i&&i.length>0?(";"!==i.substr(i.length-1)&&(i+=";"),i+=r):i=r,t.setAttribute("style",i)},getStyleValue:function(t,e){var n=t.getAttribute("style");if(!n||0===n.length)return null;var i=n.split(";");if(!i)return null;for(var r=null,o=i.length-1;o>=0;o--){var a=i[o].split(":");if(a&&2==a.length)if(a[0].trim()===e){r=a[1].trim();break}}return r},createImageElement:function(t,e){var n=u.default("
");return e&&n.attr(e),n.on("error",l.default.bind((function(){this.revokeObjectURL(t)}),this)),n.attr("src",t),n},renameCssClassesAndIds:function(t,e){return t=this.renameCssClasses(t,e),t=this.renameIds(t,e)},renameCssClasses:function(t,e){var n,i,r,o,s,u,c=this.extractStyleFromSvg(t),d=this.extractClassesFromSvg(t),f=null;c&&d&&(f=this.matchCssClasses(c[2]));var h=function(t){return t.original+t.newOne};if(f&&f.length>0){var p=l.default.uniq(f),g=new Array,m=new Set;try{for(var v=a(p),y=v.next();!y.done;y=v.next()){var _=y.value,b=_.indexOf("{")===_.length-1,w=new RegExp("[.|{|,]","gi"),T=_.replace(w,"").replace(" ","")+"-"+e,S=h(I={original:_,newOne:b?"."+T+"{":"."+T+","});m.has(S)||(g.push(I),m.add(S))}}catch(t){n={error:t}}finally{try{y&&!y.done&&(i=v.return)&&i.call(v)}finally{if(n)throw n.error}}try{for(var E=a(d),O=E.next();!O.done;O=E.next()){var A=O.value,P=A.replace("class=","").replace('"',"").replace('"',"").split(" ");S=h(I={original:A,newOne:'class="'+(P=this.formatClasses(P,e)).join(" ")+'"'});m.has(S)||(g.push(I),m.add(S))}}catch(t){r={error:t}}finally{try{O&&!O.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var C=a(g),x=C.next();!x.done;x=C.next()){var I=x.value;t=t.replaceAll(I.original,I.newOne)}}catch(t){s={error:t}}finally{try{x&&!x.done&&(u=C.return)&&u.call(C)}finally{if(s)throw s.error}}}return t},formatClasses:function(t,e){for(var n=0;n-1;t[n]=i?t[n]:t[n]+"-"+e}return t},renameIds:function(t,e){var n=this.matchIds(t);if(n)for(var i=l.default.uniq(n),r=0;r([\s\S]+?)<\/style>/)},matchCssClasses:function(t){return t.match(/(\.(?![^{]*})([\w+\-]+?)(\s+)?[\{|(\,])/g)},matchIds:function(t){var e=new RegExp('id=\\"?([a-zA-Z][\\w|\\:|\\.|\\-]*)\\"?',"gi");return t.match(e)},colorToGradient:function(t){return{angle:0,stops:[{color:t},{color:t}]}},preventXss:function(t){var e=/\b(on\w+=[\w|\(|\)|\'|\"| ]+)[ |\>|\/]/i,n=t.match(e);if(n){for(;n;)n=(t=t.replace(n[1]," ")).match(e);t=t.replace(/\s\s+/g," ").replace(" >",">")}return t},fetchSvg:function(t,e){var n=this;t.startsWith("http://")&&(t="https"+t.substring("http".length)),u.default.ajax({type:"GET",url:t,dataType:"text",cache:!0,success:function(t){t=n.preventXss(t),e.resolve(t)},error:function(){e.reject()}})}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(8)),o=i(n(0)),a=i(n(13)),s=null,u=a.default.Model.extend({defaults:{top:null,bottom:null,windowWidth:null,windowHeight:null},validPositionProperties:["top","bottom","windowWidth","windowHeight"],setPositionData:function(t){var e=o.default.pick(t,this.validPositionProperties);this.set(e)},getTop:function(){return this.get("top")},getBottom:function(){return this.get("bottom")},getWindowWidth:function(){return this.get("windowWidth")},getWindowHeight:function(){return this.get("windowHeight")},getVerticalCenterOfVisibleArea:function(t){var e=Math.max(this.getTop(),0);return(Math.min(this.getBottom(),t)-e)/2+e},getEmbedContextDimensions:function(){var t=this.getWindowWidth(),e=this.getWindowHeight();return r.default.allowAdaptiveLayouts&&!1===o.default.isNull(t)&&!1===o.default.isNull(e)?{width:t,height:e}:{width:window.innerWidth,height:window.innerHeight}},isActive:function(){return null!==this.get("top")&&null!==this.get("bottom")}},{getInstance:function(){return s||(s=new u),s}});e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(0)),o=i(n(94)),a=i(n(14)),s=i(n(143));e.default={CONSTANTS:{DEFAULT_VECTOR_IMAGE_MAX_DIM_SIZE:100},calculateWidthForDevicePixelRatio:function(t){return t*a.default.pixelRatio()},calculateDimensions:function(t,e,n,i){var r;if(s.default.isVectorBased(t)){var a=i?this.CONSTANTS.DEFAULT_VECTOR_IMAGE_MAX_DIM_SIZE:Math.min(e,n);r=o.default.scaleBoxToMaxDimension(e,n,a)}else r={width:Math.round(e/2),height:Math.round(n/2)};return r},shouldConstrainImageSize:function(t,e,n,i){return!!(s.default.isVectorBased(t)&&i||s.default.isVectorBased(t)&&(!e||!n))||!s.default.isVectorBased(t)},base64toBlob:function(t,e,n){e=r.default.isString(e)?e:"",n=r.default.isNumber(n)?n:512;for(var i=atob(t),o=[],a=0;a
* Copyright Brightcove, Inc.
* Available under Apache License Version 2.0
*
*
* Includes vtt.js
* Available under Apache License Version 2.0
*
*/
t.exports=function(t,n){t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var i=[],r=function e(n){var r,o="info",a=function(){for(var t=arguments.length,e=new Array(t),n=0;n0?l:0)}if(t.console){var c=t.console[r];c||"debug"!==r||(c=t.console.info||t.console.log),c&&s&&u.test(r)&&c[Array.isArray(a)?"apply":"call"](t.console,a)}}}(n,a),a.createLogger=function(t){return e(n+": "+t)},a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:o},a.level=function(t){if("string"==typeof t){if(!a.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');o=t}return o},(a.history=function(){return i?[].concat(i):[]}).filter=function(t){return(i||[]).filter((function(e){return new RegExp(".*"+t+".*").test(e[0])}))},a.history.clear=function(){i&&(i.length=0)},a.history.disable=function(){null!==i&&(i.length=0,i=null)},a.history.enable=function(){null===i&&(i=[])},a.error=function(){for(var t=arguments.length,e=new Array(t),n=0;n1?e-1:0),i=1;i=0)throw new Error("class has illegal whitespace characters")}function y(){return n===t.document}function _(t){return h(t)&&1===t.nodeType}function b(){try{return t.parent!==t.self}catch(t){return!0}}function w(t){return function(e,i){if(!m(e))return n[t](null);m(i)&&(i=n.querySelector(i));var r=_(i)?i:n;return r[t]&&r[t](e)}}function T(t,e,i,o){void 0===t&&(t="div"),void 0===e&&(e={}),void 0===i&&(i={});var a=n.createElement(t);return Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(r.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+t+" to "+n+"."),a.setAttribute(t,n)):"textContent"===t?S(a,n):a[t]!==n&&(a[t]=n)})),Object.getOwnPropertyNames(i).forEach((function(t){a.setAttribute(t,i[t])})),o&&H(a,o),a}function S(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function E(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function O(t,e){return v(e),t.classList?t.classList.contains(e):(n=e,new RegExp("(^|\\s)"+n+"($|\\s)")).test(t.className);var n}function A(t,e){return t.classList?t.classList.add(e):O(t,e)||(t.className=(t.className+" "+e).trim()),t}function P(t,e){return t.classList?t.classList.remove(e):(v(e),t.className=t.className.split(/\s+/).filter((function(t){return t!==e})).join(" ")),t}function C(t,e,n){var i=O(t,e);if("function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!i),n!==i)return n?A(t,e):P(t,e),t}function x(t,e){Object.getOwnPropertyNames(e).forEach((function(n){var i=e[n];null==i||!1===i?t.removeAttribute(n):t.setAttribute(n,!0===i?"":i)}))}function I(t){var e={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&&t.attributes&&t.attributes.length>0)for(var i=t.attributes,r=i.length-1;r>=0;r--){var o=i[r].name,a=i[r].value;"boolean"!=typeof t[o]&&-1===n.indexOf(","+o+",")||(a=null!==a),e[o]=a}return e}function k(t,e){return t.getAttribute(e)}function M(t,e,n){t.setAttribute(e,n)}function R(t,e){t.removeAttribute(e)}function N(){n.body.focus(),n.onselectstart=function(){return!1}}function D(){n.onselectstart=function(){return!0}}function L(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n.height||(n.height=parseFloat(g(t,"height"))),n.width||(n.width=parseFloat(g(t,"width"))),n}}function j(t){if(!t||t&&!t.offsetParent)return{left:0,top:0,width:0,height:0};var e=t.offsetWidth,n=t.offsetHeight,i=0,r=0;do{i+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent}while(t);return{left:i,top:r,width:e,height:n}}function F(t,e){var n={},i=j(e.target),r=j(t),o=r.width,a=r.height,s=e.offsetY-(r.top-i.top),u=e.offsetX-(r.left-i.left);return e.changedTouches&&(u=e.changedTouches[0].pageX-r.left,s=e.changedTouches[0].pageY+r.top),n.y=1-Math.max(0,Math.min(1,s/a)),n.x=Math.max(0,Math.min(1,u/o)),n}function V(t){return h(t)&&3===t.nodeType}function B(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function U(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map((function(t){return"function"==typeof t&&(t=t()),_(t)||V(t)?t:"string"==typeof t&&/\S/.test(t)?n.createTextNode(t):void 0})).filter((function(t){return t}))}function H(t,e){return U(e).forEach((function(e){return t.appendChild(e)})),t}function G(t,e){return H(B(t),e)}function W(t){return void 0===t.button&&void 0===t.buttons||0===t.button&&void 0===t.buttons||"mouseup"===t.type&&0===t.button&&0===t.buttons||0===t.button&&1===t.buttons}var z,$=w("querySelector"),q=w("querySelectorAll"),Y=Object.freeze({__proto__:null,isReal:y,isEl:_,isInFrame:b,createEl:T,textContent:S,prependTo:E,hasClass:O,addClass:A,removeClass:P,toggleClass:C,setAttributes:x,getAttributes:I,getAttribute:k,setAttribute:M,removeAttribute:R,blockTextSelection:N,unblockTextSelection:D,getBoundingClientRect:L,findPosition:j,getPointerPosition:F,isTextNode:V,emptyEl:B,normalizeContent:U,appendContent:H,insertContent:G,isSingleLeftClick:W,$:$,$$:q}),K=!1,X=function(){if(y()&&!1!==z.options.autoSetup){var t=Array.prototype.slice.call(n.getElementsByTagName("video")),e=Array.prototype.slice.call(n.getElementsByTagName("audio")),i=Array.prototype.slice.call(n.getElementsByTagName("video-js")),r=t.concat(e,i);if(r&&r.length>0)for(var o=0,a=r.length;o-1&&(a={passive:!0}),e.addEventListener(n,o.dispatcher,a)}else e.attachEvent&&e.attachEvent("on"+n,o.dispatcher)}function dt(t,e,n){if(ot.has(t)){var i=ot.get(t);if(i.handlers){if(Array.isArray(e))return st(dt,t,e,n);var r=function(t,e){i.handlers[e]=[],at(t,e)};if(void 0!==e){var o=i.handlers[e];if(o)if(n){if(n.guid)for(var a=0;a=n&&(e.apply(void 0,arguments),i=r)}},_t=function(){};_t.prototype.allowedEvents_={},_t.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},ct(this,t,e),this.addEventListener=n},_t.prototype.addEventListener=_t.prototype.on,_t.prototype.off=function(t,e){dt(this,t,e)},_t.prototype.removeEventListener=_t.prototype.off,_t.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},ht(this,t,e),this.addEventListener=n},_t.prototype.any=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},pt(this,t,e),this.addEventListener=n},_t.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=ut(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),ft(this,t)},_t.prototype.dispatchEvent=_t.prototype.trigger,_t.prototype.queueTrigger=function(e){var n=this;gt||(gt=new Map);var i=e.type||e,r=gt.get(this);r||(r=new Map,gt.set(this,r));var o=r.get(i);r.delete(i),t.clearTimeout(o);var a=t.setTimeout((function(){0===r.size&&(r=null,gt.delete(n)),n.trigger(e)}),0);r.set(i,a)};var bt=function(t){return t instanceof _t||!!t.eventBusEl_&&["on","one","off","trigger"].every((function(e){return"function"==typeof t[e]}))},wt=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},Tt=function(t){if(!t.nodeName&&!bt(t))throw new Error("Invalid target; must be a DOM node or evented object.")},St=function(t){if(!wt(t))throw new Error("Invalid event type; must be a non-empty string or array.")},Et=function(t){if("function"!=typeof t)throw new Error("Invalid listener; must be a function.")},Ot=function(t,e){var n,i,r,o=e.length<3||e[0]===t||e[0]===t.eventBusEl_;return o?(n=t.eventBusEl_,e.length>=3&&e.shift(),i=e[0],r=e[1]):(n=e[0],i=e[1],r=e[2]),Tt(n),St(i),Et(r),{isTargetingSelf:o,target:n,type:i,listener:r=vt(t,r)}},At=function(t,e,n,i){Tt(t),t.nodeName?mt[e](t,n,i):t[e](n,i)},Pt={on:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),ot.has(this.el_)&&ot.delete(this.el_),this.el_=null),this.player_=null}},n.isDisposed=function(){return Boolean(this.isDisposed_)},n.player=function(){return this.player_},n.options=function(t){return t?(this.options_=Rt(this.options_,t),this.options_):this.options_},n.el=function(){return this.el_},n.createEl=function(t,e,n){return T(t,e,n)},n.localize=function(t,e,n){void 0===n&&(n=t);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),o=r&&r[i],a=i&&i.split("-")[0],s=r&&r[a],u=n;return o&&o[t]?u=o[t]:s&&s[t]&&(u=s[t]),e&&(u=u.replace(/\{(\d+)\}/g,(function(t,n){var i=e[n-1],r=i;return void 0===i&&(r=t),r}))),u},n.contentEl=function(){return this.contentEl_||this.el_},n.id=function(){return this.id_},n.name=function(){return this.name_},n.children=function(){return this.children_},n.getChildById=function(t){return this.childIndex_[t]},n.getChild=function(t){if(t)return this.childNameIndex_[t]},n.getDescendant=function(){for(var t=arguments.length,e=new Array(t),n=0;n=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){t.parentComponent_=null,this.childIndex_[t.id()]=null,this.childNameIndex_[Mt(t.name())]=null,this.childNameIndex_[kt(t.name())]=null;var i=t.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},n.initChildren=function(){var t=this,n=this.options_.children;if(n){var i,r=this.options_,o=e.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(t){return!i.some((function(e){return"string"==typeof e?t===e:t===e.name}))}))).map((function(e){var i,r;return"string"==typeof e?r=n[i=e]||t.options_[i]||{}:(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||Mt(t.name));return n&&!o.isTech(n)})).forEach((function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var o=t.addChild(n,i);o&&(t[n]=o)}}))}},n.buildCSSClass=function(){return""},n.ready=function(t,e){if(void 0===e&&(e=!1),t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},n.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach((function(t){t.call(this)}),this),this.trigger("ready")}),1)},n.$=function(t,e){return $(t,e||this.contentEl())},n.$$=function(t,e){return q(t,e||this.contentEl())},n.hasClass=function(t){return O(this.el_,t)},n.addClass=function(t){A(this.el_,t)},n.removeClass=function(t){P(this.el_,t)},n.toggleClass=function(t,e){C(this.el_,t,e)},n.show=function(){this.removeClass("vjs-hidden")},n.hide=function(){this.addClass("vjs-hidden")},n.lockShowing=function(){this.addClass("vjs-lock-showing")},n.unlockShowing=function(){this.removeClass("vjs-lock-showing")},n.getAttribute=function(t){return k(this.el_,t)},n.setAttribute=function(t,e){M(this.el_,t,e)},n.removeAttribute=function(t){R(this.el_,t)},n.width=function(t,e){return this.dimension("width",t,e)},n.height=function(t,e){return this.dimension("height",t,e)},n.dimensions=function(t,e){this.width(t,!0),this.height(e)},n.dimension=function(t,e,n){if(void 0!==e)return null!==e&&e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[t],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+Mt(t)],10)},n.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if(e=g(this.el_,t),0===(e=parseFloat(e))||isNaN(e)){var n="offset"+Mt(t);e=this.el_[n]}return e},n.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},n.currentWidth=function(){return this.currentDimension("width")},n.currentHeight=function(){return this.currentDimension("height")},n.focus=function(){this.el_.focus()},n.blur=function(){this.el_.blur()},n.handleKeyDown=function(t){this.player_&&(t.stopPropagation(),this.player_.handleKeyDown(t))},n.handleKeyPress=function(t){this.handleKeyDown(t)},n.emitTapEvents=function(){var e,n=0,i=null;this.on("touchstart",(function(r){1===r.touches.length&&(i={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},n=t.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(i){var n=t.touches[0].pageX-i.pageX,r=t.touches[0].pageY-i.pageY;Math.sqrt(n*n+r*r)>10&&(e=!1)}}));var r=function(){e=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",(function(r){i=null,!0===e&&t.performance.now()-n<200&&(r.preventDefault(),this.trigger("tap"))}))},n.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,e=vt(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},n.setTimeout=function(e,n){var i,r=this;return e=vt(this,e),this.clearTimersOnDispose_(),i=t.setTimeout((function(){r.setTimeoutIds_.has(i)&&r.setTimeoutIds_.delete(i),e()}),n),this.setTimeoutIds_.add(i),i},n.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),t.clearTimeout(e)),e},n.setInterval=function(e,n){e=vt(this,e),this.clearTimersOnDispose_();var i=t.setInterval(e,n);return this.setIntervalIds_.add(i),i},n.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),t.clearInterval(e)),e},n.requestAnimationFrame=function(e){var n,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=vt(this,e),n=t.requestAnimationFrame((function(){i.rafIds_.has(n)&&i.rafIds_.delete(n),e()})),this.rafIds_.add(n),n):this.setTimeout(e,1e3/60)},n.requestNamedAnimationFrame=function(t,e){var n=this;if(!this.namedRafs_.has(t)){this.clearTimersOnDispose_(),e=vt(this,e);var i=this.requestAnimationFrame((function(){e(),n.namedRafs_.has(t)&&n.namedRafs_.delete(t)}));return this.namedRafs_.set(t,i),t}},n.cancelNamedAnimationFrame=function(t){this.namedRafs_.has(t)&&(this.cancelAnimationFrame(this.namedRafs_.get(t)),this.namedRafs_.delete(t))},n.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),t.cancelAnimationFrame(e)),e):this.clearTimeout(e)},n.clearTimersOnDispose_=function(){var t=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(e){var n=e[0],i=e[1];t[n].forEach((function(e,n){return t[i](n)}))})),t.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i,r=e.getComponent("Tech"),o=r&&r.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(o||!a)throw i=o?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+i+".");t=Mt(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var u=s.players,l=Object.keys(u);if(u&&l.length>0&&l.map((function(t){return u[t]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[kt(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();Ft.prototype.supportsRaf_="function"==typeof t.requestAnimationFrame&&"function"==typeof t.cancelAnimationFrame,Ft.registerComponent("Component",Ft);var Vt=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};s((function(t){function e(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(n)}t.exports=e})),s((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var Bt,Ut=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e},Ht=t.navigator&&t.navigator.userAgent||"",Gt=/AppleWebKit\/([\d.]+)/i.exec(Ht),Wt=Gt?parseFloat(Gt.pop()):null,zt=/iPod/i.test(Ht),$t=(Bt=Ht.match(/OS (\d+)_/i))&&Bt[1]?Bt[1]:null,qt=/Android/i.test(Ht),Yt=function(){var t=Ht.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),n=t[2]&&parseFloat(t[2]);return e&&n?parseFloat(t[1]+"."+t[2]):e||null}(),Kt=qt&&Yt<5&&Wt<537,Xt=/Firefox/i.test(Ht),Jt=/Edg/i.test(Ht),Zt=!Jt&&(/Chrome/i.test(Ht)||/CriOS/i.test(Ht)),Qt=function(){var t=Ht.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),te=function(){var t=/MSIE\s(\d+)\.\d/.exec(Ht),e=t&&parseFloat(t[1]);return!e&&/Trident\/7.0/i.test(Ht)&&/rv:11.0/.test(Ht)&&(e=11),e}(),ee=/Safari/i.test(Ht)&&!Zt&&!qt&&!Jt,ne=/Windows/i.test(Ht),ie=y()&&("ontouchstart"in t||t.navigator.maxTouchPoints||t.DocumentTouch&&t.document instanceof t.DocumentTouch),re=/iPad/i.test(Ht)||ee&&ie&&!/iPhone/i.test(Ht),oe=/iPhone/i.test(Ht)&&!re,ae=oe||re||zt,se=(ee||ae)&&!Zt,ue=Object.freeze({__proto__:null,IS_IPOD:zt,IOS_VERSION:$t,IS_ANDROID:qt,ANDROID_VERSION:Yt,IS_NATIVE_ANDROID:Kt,IS_FIREFOX:Xt,IS_EDGE:Jt,IS_CHROME:Zt,CHROME_VERSION:Qt,IE_VERSION:te,IS_SAFARI:ee,IS_WINDOWS:ne,TOUCH_ENABLED:ie,IS_IPAD:re,IS_IPHONE:oe,IS_IOS:ae,IS_ANY_SAFARI:se});function le(t,e,n,i){return function(t,e,n){if("number"!=typeof e||e<0||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}(t,i,n.length-1),n[i][e]}function ce(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:le.bind(null,"start",0,t),end:le.bind(null,"end",1,t)}}function de(t,e){return Array.isArray(t)?ce(t):void 0===t||void 0===e?ce():ce([[t,e]])}function fe(t,e){var n,i,r=0;if(!e)return 0;t&&t.length||(t=de(0,0));for(var o=0;oe&&(i=e),r+=i-n;return r/e}for(var he,pe={prefixed:!0},ge=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],me=ge[0],ve=0;ve=0;i--)if(e[i].enabled){ke(e,e[i]);break}return(n=t.call(this,e)||this).changing_=!1,n}Ut(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;e.enabled&&ke(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){n.changing_||(n.changing_=!0,ke(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(xe),Re=function(t,e){for(var n=0;n=0;i--)if(e[i].selected){Re(e,e[i]);break}return(n=t.call(this,e)||this).changing_=!1,Object.defineProperty(Vt(n),"selectedIndex",{get:function(){for(var t=0;t',r=o.firstChild,o.setAttribute("style","display:none; position:absolute;"),n.body.appendChild(o));for(var s={},u=0;ux',t=e.firstChild.href}return t},ze=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(t);if(e)return e.pop().toLowerCase()}return""},$e=function(e,n){void 0===n&&(n=t.location);var i=Ge(e);return(":"===i.protocol?n.protocol:i.protocol)+i.host!==n.protocol+n.host},qe=Object.freeze({__proto__:null,parseUrl:Ge,getAbsoluteURL:We,getFileExtension:ze,isCrossOrigin:$e}),Ye=function(t){var e=Ke.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}
/**
* @license
* slighly modified parse-headers 2.0.2
* Copyright (c) 2014 David Björklund
* Available under the MIT license
*
*/,Ke=Object.prototype.toString,Xe=Qe,Je=Qe;function Ze(t,e,n){var i=t;return Ye(e)?(n=e,"string"==typeof t&&(i={uri:t})):i=u({},e,{uri:t}),i.callback=n,i}function Qe(t,e,n){return tn(e=Ze(t,e,n))}function tn(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,n=function(n,i,r){e||(e=!0,t.callback(n,i,r))};function i(){var t=void 0;if(t=u.response?u.response:u.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(u),g)try{t=JSON.parse(t)}catch(t){}return t}function r(t){return clearTimeout(l),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,n(t,m)}function o(){if(!s){var e;clearTimeout(l),e=t.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var r=m,o=null;return 0!==e?(r={body:i(),statusCode:e,method:d,headers:{},url:c,rawRequest:u},u.getAllResponseHeaders&&(r.headers=function(t){var e={};return t?(t.trim().split("\n").forEach((function(t){var n=t.indexOf(":"),i=t.slice(0,n).trim().toLowerCase(),r=t.slice(n+1).trim();void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]})),e):e}(u.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),n(o,r,r.body)}}var a,s,u=t.xhr||null;u||(u=t.cors||t.useXDR?new Qe.XDomainRequest:new Qe.XMLHttpRequest);var l,c=u.url=t.uri||t.url,d=u.method=t.method||"GET",f=t.body||t.data,h=u.headers=t.headers||{},p=!!t.sync,g=!1,m={body:void 0,headers:{},statusCode:0,method:d,url:c,rawRequest:u};if("json"in t&&!1!==t.json&&(g=!0,h.accept||h.Accept||(h.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(h["content-type"]||h["Content-Type"]||(h["Content-Type"]="application/json"),f=JSON.stringify(!0===t.json?f:t.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(o,0)},u.onload=o,u.onerror=r,u.onprogress=function(){},u.onabort=function(){s=!0},u.ontimeout=r,u.open(d,c,!p,t.username,t.password),p||(u.withCredentials=!!t.withCredentials),!p&&t.timeout>0&&(l=setTimeout((function(){if(!s){s=!0,u.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)}}),t.timeout)),u.setRequestHeader)for(a in h)h.hasOwnProperty(a)&&u.setRequestHeader(a,h[a]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(u.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(u),u.send(f||null),u}Qe.XMLHttpRequest=t.XMLHttpRequest||function(){},Qe.XDomainRequest="withCredentials"in new Qe.XMLHttpRequest?Qe.XMLHttpRequest:t.XDomainRequest,function(t,e){for(var n=0;n0&&(t.console&&t.console.groupCollapsed&&t.console.groupCollapsed("Text Track parsing errors for "+n.src),o.forEach((function(t){return r.error(t)})),t.console&&t.console.groupEnd&&t.console.groupEnd()),i.flush()},nn=function(e,n){var i={uri:e},o=$e(e);o&&(i.cors=o);var a="use-credentials"===n.tech_.crossOrigin();a&&(i.withCredentials=a),Xe(i,vt(this,(function(e,i,o){if(e)return r.error(e,i);n.loaded_=!0,"function"!=typeof t.WebVTT?n.tech_&&n.tech_.any(["vttjsloaded","vttjserror"],(function(t){if("vttjserror"!==t.type)return en(o,n);r.error("vttjs failed to load, stopping trying to process "+n.src)})):en(o,n)})))},rn=function(e){function n(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var i=Rt(t,{kind:Be[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=Ue[i.mode]||"disabled",o=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),(n=e.call(this,i)||this).tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var a=new je(n.cues_),s=new je(n.activeCues_),u=!1,l=vt(Vt(n),(function(){this.activeCues=this.activeCues,u&&(this.trigger("cuechange"),u=!1)}));return"disabled"!==r&&n.tech_.ready((function(){n.tech_.on("timeupdate",l)}),!0),Object.defineProperties(Vt(n),{default:{get:function(){return o},set:function(){}},mode:{get:function(){return r},set:function(t){var e=this;Ue[t]&&(r=t,this.preload_||"disabled"===r||0!==this.cues.length||nn(this.src,this),"disabled"!==r?this.tech_.ready((function(){e.tech_.on("timeupdate",l)}),!0):this.tech_.off("timeupdate",l),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var t=this.tech_.currentTime(),e=[],n=0,i=this.cues.length;n=t||r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t)&&e.push(r)}if(u=!1,e.length!==this.activeCues_.length)u=!0;else for(var o=0;o59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function pn(){this.values=dn(null)}function gn(t,e,n,i){var r=i?t.split(i):[t];for(var o in r)if("string"==typeof r[o]){var a=r[o].split(n);2===a.length&&e(a[0],a[1])}}function mn(t,e,n){var i=t;function r(){var e=hn(t);if(null===e)throw new fn(fn.Errors.BadTimeStamp,"Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function o(){t=t.replace(/^\s+/,"")}if(o(),e.startTime=r(),o(),"--\x3e"!==t.substr(0,3))throw new fn(fn.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.substr(3),o(),e.endTime=r(),o(),function(t,e){var i=new pn;gn(t,(function(t,e){switch(t){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===e){i.set(t,n[r].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),a=o[0];i.integer(t,a),i.percent(t,a)&&i.set("snapToLines",!1),i.alt(t,a,["auto"]),2===o.length&&i.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=e.split(","),i.percent(t,o[0]),2===o.length&&i.alt("positionAlign",o[1],["start","center","end"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical","");try{e.line=i.get("line","auto")}catch(t){}e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100);try{e.align=i.get("align","center")}catch(t){e.align=i.get("align","middle")}try{e.position=i.get("position","auto")}catch(t){e.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}fn.prototype=dn(Error.prototype),fn.prototype.constructor=fn,fn.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},pn.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var i=0;i=0&&e<=100)&&(this.set(t,e),!0)}};var vn=n.createElement("textarea"),yn={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},_n={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},bn={v:"title",lang:"lang"},wn={rt:"ruby"};function Tn(t,e){function n(){if(!e)return null;var t,n=e.match(/^([^<]*)(<[^>]*>?)?/);return t=n[1]?n[1]:n[2],e=e.substr(t.length),t}function i(t,e){return!wn[e.localName]||wn[e.localName]===t.localName}function r(e,n){var i=yn[e];if(!i)return null;var r=t.document.createElement(i),o=bn[e];return o&&n&&(r[o]=n.trim()),r}for(var o,a,s=t.document.createElement("div"),u=s,l=[];null!==(o=n());)if("<"!==o[0])u.appendChild(t.document.createTextNode((a=o,vn.innerHTML=a,a=vn.textContent,vn.textContent="",a)));else{if("/"===o[1]){l.length&&l[l.length-1]===o.substr(2).replace(">","")&&(l.pop(),u=u.parentNode);continue}var c,d=hn(o.substr(1,o.length-2));if(d){c=t.document.createProcessingInstruction("timestamp",d),u.appendChild(c);continue}var f=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!f)continue;if(!(c=r(f[1],f[3])))continue;if(!i(u,c))continue;if(f[2]){var h=f[2].split(".");h.forEach((function(t){var e=/^bg_/.test(t),n=e?t.slice(3):t;if(_n.hasOwnProperty(n)){var i=e?"background-color":"color",r=_n[n];c.style[i]=r}})),c.className=h.join(" ")}l.push(f[1]),u.appendChild(c),u=c}return s}var Sn=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function En(t){for(var e=0;e=n[0]&&t<=n[1])return!0}return!1}function On(t){var e=[],n="";if(!t||!t.childNodes)return"ltr";function i(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function r(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(t.length=0,o[0]):n}return"ruby"===e.tagName?r(t):e.childNodes?(i(t,e),r(t)):void 0}for(i(e,t);n=r(e);)for(var o=0;o=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,i=0,r=0;rd&&(c=c<0?-1:1,c*=Math.ceil(d/l)*l),a<0&&(c+=""===o.vertical?n.height:n.width,s=s.reverse()),r.move(f,c)}else{var h=r.lineHeight/n.height*100;switch(o.lineAlign){case"center":a-=h/2;break;case"end":a-=h}switch(o.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],r=new Cn(e)}var p=function(t,e){for(var r,o=new Cn(t),a=1,s=0;su&&(r=new Cn(t),a=u),t=new Cn(o)}return r||o}(r,s);e.move(p.toCSSCompatValues(n))}function In(){}An.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},An.prototype.formatStyle=function(t,e){return 0===t?0:t+e},Pn.prototype=dn(An.prototype),Pn.prototype.constructor=Pn,Cn.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},Cn.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},Cn.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},Cn.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},Cn.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},Cn.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},Cn.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,i=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||i,height:t.height||e,bottom:t.bottom||i+(t.height||e),width:t.width||n}},In.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},In.convertCueToDOMTree=function(t,e){return t&&e?Tn(t,e):null},In.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=t.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),function(t){for(var e=0;e100)throw new Error("Position must be between 0 and 100.");h=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return p},set:function(t){var e=Nn(t);e?(p=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return g},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");g=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return m},set:function(t){var e=Nn(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");m=e,this.hasBeenReset=!0}}}),this.displayState=void 0}Dn.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Ln=Dn,jn={"":!0,up:!0};function Fn(t){return"number"==typeof t&&t>=0&&t<=100}var Vn=function(){var t=100,e=3,n=0,i=100,r=0,o=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!Fn(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!Fn(t))throw new Error("RegionAnchorX must be between 0 and 100.");i=t}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(t){if(!Fn(t))throw new Error("RegionAnchorY must be between 0 and 100.");n=t}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!Fn(t))throw new Error("ViewportAnchorY must be between 0 and 100.");o=t}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!Fn(t))throw new Error("ViewportAnchorX must be between 0 and 100.");r=t}},scroll:{enumerable:!0,get:function(){return a},set:function(t){var e=function(t){return"string"==typeof t&&!!jn[t.toLowerCase()]&&t.toLowerCase()}(t);!1===e?console.warn("Scroll: an invalid or illegal string was specified."):a=e}}})},Bn=s((function(e){var n=e.exports={WebVTT:kn,VTTCue:Ln,VTTRegion:Vn};t.vttjs=n,t.WebVTT=n.WebVTT;var i=n.VTTCue,r=n.VTTRegion,o=t.VTTCue,a=t.VTTRegion;n.shim=function(){t.VTTCue=i,t.VTTRegion=r},n.restore=function(){t.VTTCue=o,t.VTTRegion=a},t.VTTCue||n.shim()}));Bn.WebVTT,Bn.VTTCue,Bn.VTTRegion;var Un=function(e){function i(t,n){var i;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,(i=e.call(this,null,t,n)||this).hasStarted_=!1,i.on("playing",(function(){this.hasStarted_=!0})),i.on("loadstart",(function(){this.hasStarted_=!1})),cn.names.forEach((function(e){var n=cn[e];t&&t[n.getterName]&&(i[n.privateName]=t[n.getterName])})),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)})),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new cn.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}Ut(i,e);var o=i.prototype;return o.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",(function(){return e.setTimeout((function(){return e.triggerSourceset(t)}),1)})),this.trigger({src:t,type:"sourceset"})},o.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},o.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},o.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(vt(this,(function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()})),500)},o.onDurationChange=function(t){this.duration_=this.duration()},o.buffered=function(){return de(0,0)},o.bufferedPercent=function(){return fe(this.buffered(),this.duration_)},o.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},o.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},o.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},o.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},o.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},o.dispose=function(){this.clearTracks(un.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},o.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach((function(t){for(var n=e[t+"Tracks"]()||[],i=n.length;i--;){var r=n[i];"text"===t&&e.removeRemoteTextTrack(r),n.removeTrack(r)}}))},o.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var n=t[e];this.removeRemoteTextTrack(n)}},o.reset=function(){},o.crossOrigin=function(){},o.setCrossOrigin=function(){},o.error=function(t){return void 0!==t&&(this.error_=new _e(t),this.trigger("error")),this.error_},o.played=function(){return this.hasStarted_?de(0,0):de()},o.setScrubbing=function(){},o.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},o.initTrackListeners=function(){var t=this;un.names.forEach((function(e){var n=un[e],i=function(){t.trigger(e+"trackchange")},r=t[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),t.on("dispose",(function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)}))}))},o.addWebVttScript_=function(){var e=this;if(!t.WebVTT)if(n.body.contains(this.el())){if(!this.options_["vtt.js"]&&p(Bn)&&Object.keys(Bn).length>0)return void this.trigger("vttjsloaded");var i=n.createElement("script");i.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",i.onload=function(){e.trigger("vttjsloaded")},i.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){i.onload=null,i.onerror=null})),t.WebVTT=!0,this.el().parentNode.appendChild(i)}else this.ready(this.addWebVttScript_)},o.emulateTextTracks=function(){var t=this,e=this.textTracks(),n=this.remoteTextTracks(),i=function(t){return e.addTrack(t.track)},r=function(t){return e.removeTrack(t.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var o=function(){return t.trigger("texttrackchange")},a=function(){o();for(var t=0;t=0;r--){var o=t[r];o[e]&&o[e](i,n)}}(t,n,s,a),s}var qn={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1},Yn={setCurrentTime:1,setMuted:1,setVolume:1},Kn={play:1,pause:1};function Xn(t){return function(e,n){return e===Wn?Wn:n[t]?n[t](e):e}}var Jn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Zn=function(t){void 0===t&&(t="");var e=ze(t);return Jn[e.toLowerCase()]||""};function Qn(t){if(!t.type){var e=Zn(t.src);e&&(t.type=e)}return t}var ti=function(t){function e(e,n,i){var r,o=Rt({createEl:!1},n);if(r=t.call(this,e,o,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)e.src(n.playerOptions.sources);else for(var a=0,s=n.playerOptions.techOrder;a',className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&r.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),i=f({role:"button"},i),this.tabIndex_=n.tabIndex;var o=t.prototype.createEl.call(this,e,n,i);return this.createControlTextEl(o),o},n.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},n.createControlTextEl=function(t){return this.controlTextEl_=T("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},n.controlText=function(t,e){if(void 0===e&&(e=this.el()),void 0===t)return this.controlText_||"Need Text";var n=this.localize(t);this.controlText_=t,S(this.controlTextEl_,n),this.nonIconControl||e.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("keydown",this.handleKeyDown))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver),this.off("mouseout",this.handleMouseOut),this.off(["tap","click"],this.handleClick),this.off("keydown",this.handleKeyDown)},n.handleClick=function(t){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(e){Pe.isEventKey(e,"Space")||Pe.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(Ft);Ft.registerComponent("ClickableComponent",ei);var ni=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update(),e.on("posterchange",vt(Vt(i),i.update)),i}Ut(e,t);var n=e.prototype;return n.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},n.createEl=function(){return T("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},n.setSrc=function(t){var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e},n.handleClick=function(t){if(this.player_.controls()){var e=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(te||Jt)&&e||this.player_.tech(!0).focus(),this.player_.paused()?Se(this.player_.play()):this.player_.pause()}},e}(ei);Ft.registerComponent("PosterImage",ni);var ii={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function ri(t,e){var n;if(4===t.length)n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");n=t.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+e+")"}function oi(t,e,n){try{t.style[e]=n}catch(t){return}}var ai=function(e){function n(n,i,r){var o;o=e.call(this,n,i,r)||this;var a=vt(Vt(o),o.updateDisplay);return n.on("loadstart",vt(Vt(o),o.toggleDisplay)),n.on("texttrackchange",a),n.on("loadedmetadata",vt(Vt(o),o.preselectTrack)),n.ready(vt(Vt(o),(function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",a),n.on("playerresize",a),t.addEventListener("orientationchange",a),n.on("dispose",(function(){return t.removeEventListener("orientationchange",a)}));for(var e=this.options_.playerOptions.tracks||[],i=0;i',className:this.buildCSSClass()},e),n=f({type:"button"},n);var i=Ft.prototype.createEl.call(this,"button",e,n);return this.createControlTextEl(i),i},n.addChild=function(t,e){void 0===e&&(e={});var n=this.constructor.name;return r.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Ft.prototype.addChild.call(this,t,e)},n.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(e){Pe.isEventKey(e,"Space")||Pe.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(ei);Ft.registerComponent("Button",ui);var li=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).mouseused_=!1,i.on("mousedown",i.handleMouseDown),i}Ut(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Se(e),void(!this.player_.tech(!0)||(te||Jt)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(r){var o=function(){return r.focus()};Te(e)?e.then(o,(function(){})):this.setTimeout(o,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(e){this.mouseused_=!1,t.prototype.handleKeyDown.call(this,e)},n.handleMouseDown=function(t){this.mouseused_=!0},e}(ui);li.prototype.controlText_="Play Video",Ft.registerComponent("BigPlayButton",li);var ci=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).controlText(n&&n.controlText||i.localize("Close")),i}Ut(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(e){Pe.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(ui);Ft.registerComponent("CloseButton",ci);var di=function(t){function e(e,n){var i;return void 0===n&&(n={}),i=t.call(this,e,n)||this,n.replay=void 0===n.replay||n.replay,i.on(e,"play",i.handlePlay),i.on(e,"pause",i.handlePause),n.replay&&i.on(e,"ended",i.handleEnded),i}Ut(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},n.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},e}(ui);di.prototype.controlText_="Play",Ft.registerComponent("PlayToggle",di);var fi=function(t,e){t=t<0?0:t;var n=Math.floor(t%60),i=Math.floor(t/60%60),r=Math.floor(t/3600),o=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=i=n="-"),(r=r>0||a>0?r+":":"")+(i=((r||o>=10)&&i<10?"0"+i:i)+":")+(n=n<10?"0"+n:n)},hi=fi;function pi(t,e){return void 0===e&&(e=t),hi(t,e)}var gi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,["timeupdate","ended"],i.updateContent),i.updateTextNode_(),i}Ut(e,t);var i=e.prototype;return i.createEl=function(){var e=this.buildCSSClass(),n=t.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control",innerHTML:''+this.localize(this.labelText_)+" "});return this.contentEl_=T("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},i.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},i.updateTextNode_=function(t){var e=this;void 0===t&&(t=0),t=pi(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(e.contentEl_){var t=e.textNode_;e.textNode_=n.createTextNode(e.formattedTime_),e.textNode_&&(t?e.contentEl_.replaceChild(e.textNode_,t):e.contentEl_.appendChild(e.textNode_))}})))},i.updateContent=function(t){},e}(Ft);gi.prototype.labelText_="Time",gi.prototype.controlText_="Time",Ft.registerComponent("TimeDisplay",gi);var mi=function(t){function e(){return t.apply(this,arguments)||this}Ut(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(t){var e;e=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(e)},e}(gi);mi.prototype.labelText_="Current Time",mi.prototype.controlText_="Current Time",Ft.registerComponent("CurrentTimeDisplay",mi);var vi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,"durationchange",i.updateContent),i.on(e,"loadstart",i.updateContent),i.on(e,"loadedmetadata",i.updateContent),i}Ut(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(t){var e=this.player_.duration();this.updateTextNode_(e)},e}(gi);vi.prototype.labelText_="Duration",vi.prototype.controlText_="Duration",Ft.registerComponent("DurationDisplay",vi);var yi=function(t){function e(){return t.apply(this,arguments)||this}return Ut(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"/
"},{"aria-hidden":!0})},e}(Ft);Ft.registerComponent("TimeDivider",yi);var _i=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,"durationchange",i.updateContent),i}Ut(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var e=t.prototype.createEl.call(this);return e.insertBefore(T("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},n.updateContent=function(t){var e;"number"==typeof this.player_.duration()&&(e=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(e))},e}(gi);_i.prototype.labelText_="Remaining Time",_i.prototype.controlText_="Remaining Time",Ft.registerComponent("RemainingTimeDisplay",_i);var bi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).updateShowing(),i.on(i.player(),"durationchange",i.updateShowing),i}Ut(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=T("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+" "+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},n.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},n.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(Ft);Ft.registerComponent("LiveDisplay",bi);var wi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).updateLiveEdgeStatus(),i.player_.liveTracker&&i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatus),i}Ut(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=T("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatus),this.textEl_=null,t.prototype.dispose.call(this)},e}(ui);wi.prototype.controlText_="Seek to live, currently playing live",Ft.registerComponent("SeekToLive",wi);var Ti=function(t,e,n){return t=Number(t),Math.min(n,Math.max(e,isNaN(t)?e:t))},Si=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}Ut(e,t);var n=e.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("keydown",this.handleKeyDown),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("keydown",this.handleKeyDown),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(e,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=f({tabIndex:0},n),i=f({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),t.prototype.createEl.call(this,e,n,i)},n.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&&t.preventDefault(),"touchstart"!==t.type||Zt||t.preventDefault(),N(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},n.handleMouseMove=function(t){},n.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;D(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},n.update=function(){var t=this;if(this.el_&&this.bar){var e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",(function(){var n=t.vertical()?"height":"width";t.bar.el().style[n]=(100*e).toFixed(2)+"%"}))),e}},n.getProgress=function(){return Number(Ti(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(t){var e=F(this.el_,t);return this.vertical()?e.y:e.x},n.handleKeyDown=function(e){Pe.isEventKey(e,"Left")||Pe.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):Pe.isEventKey(e,"Right")||Pe.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){t.stopPropagation(),t.preventDefault()},n.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(Ft);Ft.registerComponent("Slider",Si);var Ei=function(t,e){return Ti(t/e*100,0,100).toFixed(2)+"%"},Oi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).partEls_=[],i.on(e,"progress",i.update),i}Ut(e,t);var i=e.prototype;return i.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),i=T("span",{className:"vjs-control-text"}),r=T("span",{textContent:this.localize("Loaded")}),o=n.createTextNode(": ");return this.percentageEl_=T("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(i),i.appendChild(r),i.appendChild(o),i.appendChild(this.percentageEl_),e},i.dispose=function(){this.partEls_=null,this.percentageEl_=null,t.prototype.dispose.call(this)},i.update=function(t){var e=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var t=e.player_.liveTracker,n=e.player_.buffered(),i=t&&t.isLive()?t.seekableEnd():e.player_.duration(),r=e.player_.bufferedEnd(),o=e.partEls_,a=Ei(r,i);e.percent_!==a&&(e.el_.style.width=a,S(e.percentageEl_,a),e.percent_=a);for(var s=0;sn.length;d--)e.el_.removeChild(o[d-1]);o.length=n.length}))},e}(Ft);Ft.registerComponent("LoadProgressBar",Oi);var Ai=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=yt(vt(Vt(i),i.update),30),i}Ut(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(t,e,n){var i=j(this.el_),r=L(this.player_.el()),o=t.width*e;if(r&&i){var a=t.left-r.left+o,s=t.width-o+(r.right-t.right),u=i.width/2;ai.width&&(u=i.width),this.el_.style.right="-"+u+"px",this.write(n)}},n.write=function(t){S(this.el_,t)},n.updateTime=function(t,e,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var o,a=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var s=r.player_.liveTracker.liveWindow(),u=s-e*s;o=(u<1?"":"-")+pi(u,s)}else o=pi(n,a);r.update(t,e,o),i&&i()}))},e}(Ft);Ft.registerComponent("TimeTooltip",Ai);var Pi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=yt(vt(Vt(i),i.update),30),i}Ut(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(t,e){var n=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(t,e,i)}},e}(Ft);Pi.prototype.options_={children:[]},ae||qt||Pi.prototype.options_.children.push("timeTooltip"),Ft.registerComponent("PlayProgressBar",Pi);var Ci=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=yt(vt(Vt(i),i.update),30),i}Ut(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(t,e){var n=this,i=e*this.player_.duration();this.getChild("timeTooltip").updateTime(t,e,i,(function(){n.el_.style.left=t.width*e+"px"}))},e}(Ft);Ci.prototype.options_={children:["timeTooltip"]},Ft.registerComponent("MouseTimeDisplay",Ci);var xi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).setEventHandlers_(),i}Ut(e,t);var i=e.prototype;return i.setEventHandlers_=function(){this.update_=vt(this,this.update),this.update=yt(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.on(this.player_,["playing"],this.enableInterval_),this.on(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in n&&"visibilityState"in n&&this.on(n,"visibilitychange",this.toggleVisibility_)},i.toggleVisibility_=function(t){n.hidden?this.disableInterval_(t):(this.enableInterval_(),this.update())},i.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},i.disableInterval_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&"ended"!==t.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},i.update=function(e){var n=this,i=t.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var t=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),e=n.player_.liveTracker,r=n.player_.duration();e&&e.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),n.currentTime_===t&&n.duration_===r||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[pi(t,r),pi(r,r)],"{1} of {2}")),n.currentTime_=t,n.duration_=r),n.bar&&n.bar.update(L(n.el()),n.getProgress())})),i},i.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},i.getPercent=function(){var t,e=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(t=(e-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t},i.handleMouseDown=function(e){W(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},i.handleMouseMove=function(t){if(W(t)){var e,n=this.calculateDistance(t),i=this.player_.liveTracker;if(i&&i.isLive()){if(n>=.99)return void i.seekToLiveEdge();var r=i.seekableStart(),o=i.liveCurrentTime();if((e=r+n*i.liveWindow())>=o&&(e=o),e<=r&&(e=r+.1),e===1/0)return}else(e=n*this.player_.duration())===this.player_.duration()&&(e-=.1);this.player_.currentTime(e)}},i.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},i.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},i.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Se(this.player_.play()):this.update_()},i.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},i.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},i.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},i.handleKeyDown=function(e){if(Pe.isEventKey(e,"Space")||Pe.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(Pe.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.player_.currentTime(0);else if(Pe.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.duration());else if(/^[0-9]$/.test(Pe(e))){e.preventDefault(),e.stopPropagation();var n=10*(Pe.codes[Pe(e)]-Pe.codes[0])/100;this.player_.currentTime(this.player_.duration()*n)}else Pe.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.currentTime()-60)):Pe.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.currentTime()+60)):t.prototype.handleKeyDown.call(this,e)},i.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableInterval_),this.off(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in n&&"visibilityState"in n&&this.off(n,"visibilitychange",this.toggleVisibility_),t.prototype.dispose.call(this)},e}(Si);xi.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},ae||qt||xi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Ft.registerComponent("SeekBar",xi);var Ii=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handleMouseMove=yt(vt(Vt(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=yt(vt(Vt(i),i.handleMouseSeek),30),i.enable(),i}Ut(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var n=e.getChild("playProgressBar"),i=e.getChild("mouseTimeDisplay");if(n||i){var r=e.el(),o=j(r),a=F(r,t).x;a=Ti(a,0,1),i&&i.update(o,a),n&&n.update(o,e.getProgress())}}},n.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&&e.handleMouseMove(t)},n.enabled=function(){return this.enabled_},n.disable=function(){this.children().forEach((function(t){return t.disable&&t.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},n.enable=function(){this.children().forEach((function(t){return t.enable&&t.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.handleMouseDown=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},n.handleMouseUp=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(t),this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e}(Ft);Ii.prototype.options_={children:["seekBar"]},Ft.registerComponent("ProgressControl",Ii);var ki=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,["enterpictureinpicture","leavepictureinpicture"],i.handlePictureInPictureChange),i.on(e,["disablepictureinpicturechanged","loadedmetadata"],i.handlePictureInPictureEnabledChange),i.disable(),i}Ut(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-picture-in-picture-control "+t.prototype.buildCSSClass.call(this)},i.handlePictureInPictureEnabledChange=function(){n.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},i.handlePictureInPictureChange=function(t){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},i.handleClick=function(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(ui);ki.prototype.controlText_="Picture-in-Picture",Ft.registerComponent("PictureInPictureToggle",ki);var Mi=function(t){function e(e,i){var r;return(r=t.call(this,e,i)||this).on(e,"fullscreenchange",r.handleFullscreenChange),!1===n[e.fsApi_.fullscreenEnabled]&&r.disable(),r}Ut(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},i.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},i.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(ui);Mi.prototype.controlText_="Fullscreen",Ft.registerComponent("FullscreenToggle",Mi);var Ri=function(t){function e(){return t.apply(this,arguments)||this}return Ut(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},e}(Ft);Ft.registerComponent("VolumeLevel",Ri);var Ni=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on("slideractive",i.updateLastVolume_),i.on(e,"volumechange",i.updateARIAAttributes),e.ready((function(){return i.updateARIAAttributes()})),i}Ut(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(e){W(e)&&t.prototype.handleMouseDown.call(this,e)},n.handleMouseMove=function(t){W(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",(function(){0===t.player_.volume()&&t.player_.lastVolume_(e)}))},e}(Si);Ni.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Ni.prototype.playerEvent="volumechange",Ft.registerComponent("VolumeBar",Ni);var Di=function(t){function e(e,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||p(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=t.call(this,e,n)||this,function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))}(Vt(i),e),i.throttledHandleMouseMove=yt(vt(Vt(i),i.handleMouseMove),30),i.on("mousedown",i.handleMouseDown),i.on("touchstart",i.handleMouseDown),i.on(i.volumeBar,["focus","slideractive"],(function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")})),i.on(i.volumeBar,["blur","sliderinactive"],(function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")})),i}Ut(e,t);var n=e.prototype;return n.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},n.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},n.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},n.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(Ft);Di.prototype.options_={children:["volumeBar"]},Ft.registerComponent("VolumeControl",Di);var Li=function(t){function e(e,n){var i;return i=t.call(this,e,n)||this,function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))}(Vt(i),e),i.on(e,["loadstart","volumechange"],i.update),i}Ut(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){var e=this.player_.volume(),n=this.player_.lastVolume_();if(0===e){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(t){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var t=this.player_.volume(),e=3;ae&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var n=0;n<4;n++)P(this.el_,"vjs-vol-"+n);A(this.el_,"vjs-vol-"+e)},n.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},e}(ui);Li.prototype.controlText_="Mute",Ft.registerComponent("MuteToggle",Li);var ji=function(t){function e(e,n){var i;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||p(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(i=t.call(this,e,n)||this).on(e,["loadstart"],i.volumePanelState_),i.on(i.muteToggle,"keyup",i.handleKeyPress),i.on(i.volumeControl,"keyup",i.handleVolumeControlKeyUp),i.on("keydown",i.handleKeyPress),i.on("mouseover",i.handleMouseOver),i.on("mouseout",i.handleMouseOut),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}Ut(e,t);var i=e.prototype;return i.sliderActive_=function(){this.addClass("vjs-slider-active")},i.sliderInactive_=function(){this.removeClass("vjs-slider-active")},i.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},i.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},i.dispose=function(){this.handleMouseOut(),t.prototype.dispose.call(this)},i.handleVolumeControlKeyUp=function(t){Pe.isEventKey(t,"Esc")&&this.muteToggle.focus()},i.handleMouseOver=function(t){this.addClass("vjs-hover"),ct(n,"keyup",vt(this,this.handleKeyPress))},i.handleMouseOut=function(t){this.removeClass("vjs-hover"),dt(n,"keyup",vt(this,this.handleKeyPress))},i.handleKeyPress=function(t){Pe.isEventKey(t,"Esc")&&this.handleMouseOut()},e}(Ft);ji.prototype.options_={children:["muteToggle","volumeControl"]},Ft.registerComponent("VolumePanel",ji);var Fi=function(t){function e(e,n){var i;return i=t.call(this,e,n)||this,n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",i.handleKeyDown),i.boundHandleBlur_=vt(Vt(i),i.handleBlur),i.boundHandleTapClick_=vt(Vt(i),i.handleTapClick),i}Ut(e,t);var i=e.prototype;return i.addEventListenerForItem=function(t){t instanceof Ft&&(this.on(t,"blur",this.boundHandleBlur_),this.on(t,["tap","click"],this.boundHandleTapClick_))},i.removeEventListenerForItem=function(t){t instanceof Ft&&(this.off(t,"blur",this.boundHandleBlur_),this.off(t,["tap","click"],this.boundHandleTapClick_))},i.removeChild=function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),t.prototype.removeChild.call(this,e)},i.addItem=function(t){var e=this.addChild(t);e&&this.addEventListenerForItem(e)},i.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=T(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),ct(n,"click",(function(t){t.preventDefault(),t.stopImmediatePropagation()})),n},i.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,t.prototype.dispose.call(this)},i.handleBlur=function(t){var e=t.relatedTarget||n.activeElement;if(!this.children().some((function(t){return t.el()===e}))){var i=this.menuButton_;i&&i.buttonPressed_&&e!==i.el().firstChild&&i.unpressButton()}},i.handleTapClick=function(t){if(this.menuButton_){this.menuButton_.unpressButton();var e=this.children();if(!Array.isArray(e))return;var n=e.filter((function(e){return e.el()===t.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},i.handleKeyDown=function(t){Pe.isEventKey(t,"Left")||Pe.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(Pe.isEventKey(t,"Right")||Pe.isEventKey(t,"Up"))&&(t.preventDefault(),t.stopPropagation(),this.stepBack())},i.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},i.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},i.focus=function(t){void 0===t&&(t=0);var e=this.children().slice();e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className)&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(Ft);Ft.registerComponent("Menu",Fi);var Vi=function(t){function e(e,i){var r;void 0===i&&(i={}),(r=t.call(this,e,i)||this).menuButton_=new ui(e,i),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var o=ui.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+o,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"keydown",r.handleKeyDown),r.on(r.menuButton_,"mouseenter",(function(){r.addClass("vjs-hover"),r.menu.show(),ct(n,"keyup",vt(Vt(r),r.handleMenuKeyUp))})),r.on("mouseleave",r.handleMouseLeave),r.on("keydown",r.handleSubmenuKeyDown),r}Ut(e,t);var i=e.prototype;return i.update=function(){var t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},i.createMenu=function(){var t=new Fi(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=T("li",{className:"vjs-menu-title",innerHTML:Mt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;var n=new Ft(this.player_,{el:e});t.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i