/*! For license information please see app.js.LICENSE.txt */
-!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=282)}([function(e,t,n){e.exports=n(184)},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],c=t.base?o[0]+t.base:o[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=s(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:v(f,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,m=0;function v(e,t){var n,r,i;if(t.singleton){var o=m++;n=p||(p=l(t)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=l(t),r=h.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=c(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},,function(e,t,n){"use strict";var r=n(54),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(216),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";var r=n(79),i=n.n(r);t.a={data:function(){return{searchClient:i()(php_vars.algolia_app_id,php_vars.algolia_search_key),prefix:php_vars.algolia_prefix}},props:[]}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.r(t);var r=n(29),i={components:{ProgressBar:n.n(r).a},data:function(){return{email:this.$root.publishState.email,recipients_count:0,status:"En attente",counters:{delivered:0,opened:0,clicked:0},publishing:!1,done:!1,statusData:{status:null,current:0,total:0}}},computed:{progress:function(){return"init"===this.statusData.status||0==this.statusData.total?0:Math.ceil(100*this.statusData.current/this.statusData.total)}},methods:{processMailEvent:function(e){"delivered"===e.data.event&&this.counters.delivered++,"opened"===e.data.event&&this.counters.opened++,"clicked"===e.data.event&&this.counters.clicked++},processProgressEvent:function(e){if(!this.done)switch(this.statusData=e.data,e.data.status){case"init":this.status="Préparation en cours";break;case"processing":this.status="Traitement en cours : (".concat(e.data.current," / ").concat(e.data.total,")");break;case"done":this.status="Terminé, ".concat(e.data.total," emails envoyés"),this.done=!0,this.$emit("can-continue",{value:!0})}},publish:function(){var e=this;axios({method:"post",url:"/publish",data:{data:this.$root.publishState}}).then((function(t){Echo.private("emailBatch.".concat(t.data.data)).listen(".mailgun.event",e.processMailEvent).listen(".batch.status",e.processProgressEvent),e.publishing=!0}))}},mounted:function(){var e=this;void 0===this.$root.publishState.recipient_group?axios.get("publish/recipients").then((function(t){return e.recipients_count=t.data.data})):this.recipients_count=this.$root.publishState.recipient_group.count}},o=(n(188),n(1)),a=Object(o.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-step"},[n("div",{staticClass:"mb-3"},[n("h3",{staticClass:"text-center"},[e._v("\n "+e._s(e.email.subject)+"\n ")])]),e._v(" "),e.publishing?e._e():n("div",{staticClass:"alert alert-info my-2 mx-auto d-block mw-400"},[n("i",{staticClass:"far fa-check-circle"}),e._v("\n Votre message est prêt à être envoyé !\n ")]),e._v(" "),e.publishing?e._e():n("div",{staticClass:"mt-3"},[n("button",{staticClass:"btn btn-success d-block m-auto",on:{click:e.publish}},[n("i",{staticClass:"far fa-paper-plane"}),e._v("\n Envoyer "+e._s(e.recipients_count)+" emails\n ")])]),e._v(" "),e.publishing?n("div",[n("div",{staticClass:"alert alert-success my-3 mx-auto d-block mw-400"},[n("strong",[e._v("Statut : ")]),e._v(e._s(e.status)+"\n ")]),e._v(" "),n("div",[n("progress-bar",{attrs:{size:"medium",val:e.progress,text:e.progress+"%"}})],1),e._v(" "),n("div",{staticClass:"row mt-4",attrs:{id:"counters"}},[e._m(0),e._v(" "),n("div",{staticClass:"col-md-4"},[n("mg-stats",{attrs:{icon:"delivered",current:e.counters.delivered,total:e.statusData.total,text:"reçus"}})],1),e._v(" "),n("div",{staticClass:"col-md-4"},[n("mg-stats",{attrs:{icon:"opened",current:e.counters.opened,total:e.statusData.total,text:"ouverts"}})],1),e._v(" "),n("div",{staticClass:"col-md-4"},[n("mg-stats",{attrs:{icon:"clicked",current:e.counters.clicked,total:e.statusData.total,text:"cliqués"}})],1)])]):e._e()])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"col-12 mb-2"},[t("h4",[this._v("Statistiques\n "),t("span",{staticClass:"badge badge-danger"},[t("span",{staticClass:"blink"},[this._v("•")]),this._v("\n en direct\n ")])])])}],!1,null,"1526165e",null);t.default=a.exports},function(e,t,n){var r=n(327),i=n(344),o=n(38),a=n(6),s=n(350);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){"use strict";var r=n(285),i=n(145),o=n(259);function a(e,t,n){return new r(e,t,n)}a.version=n(277),a.AlgoliaSearchHelper=r,a.SearchParameters=i,a.SearchResults=o,a.url=n(274),e.exports=a},function(e,t,n){var r=n(215),i=n(217),o=n(16);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(44),i=n(146);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(2),i=n(173);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(175);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(177);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(179);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(181);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(187);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(189);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(191);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(193);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(195);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(1))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},i=n(0),o="object"==typeof self&&self&&self.Object===Object&&self,a=i.a||o||Function("return this")(),s=function(){return a.Date.now()},c=a.Symbol,l=Object.prototype,u=l.hasOwnProperty,d=l.toString,f=c?c.toStringTag:void 0,h=Object.prototype.toString,p=c?c.toStringTag:void 0,m=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":p&&p in Object(e)?function(e){var t=u.call(e,f),n=e[f];try{e[f]=void 0;var r=!0}catch(e){}var i=d.call(e);return r&&(t?e[f]=n:delete e[f]),i}(e):function(e){return h.call(e)}(e)},v=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,y=/^0o[0-7]+$/i,k=parseInt,w=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==m(e)}(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(v,"");var n=b.test(e);return n||y.test(e)?k(e.slice(2),n?2:8):g.test(e)?NaN:+e},_=Math.max,C=Math.min,A={name:"ckeditor",render(e){return e(this.tagName)},props:{editor:{type:Function,default:null},value:{type:String,default:""},config:{type:Object,default:()=>({})},tagName:{type:String,default:"div"},disabled:{type:Boolean,default:!1}},data:()=>({instance:null,$_lastEditorData:{type:String,default:""}}),mounted(){const e=Object.assign({},this.config);this.value&&(e.initialData=this.value),this.editor.create(this.$el,e).then(e=>{this.instance=e,e.isReadOnly=this.disabled,this.$_setUpEditorEvents(),this.$emit("ready",e)}).catch(e=>{console.error(e)})},beforeDestroy(){this.instance&&(this.instance.destroy(),this.instance=null),this.$emit("destroy",this.instance)},watch:{value(e,t){e!==t&&e!==this.$_lastEditorData&&this.instance.setData(e)},disabled(e){this.instance.isReadOnly=e}},methods:{$_setUpEditorEvents(){const e=this.instance,t=function(e,t,n){var i,o,a,c,l,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=i,r=o;return i=o=void 0,d=t,c=e.apply(r,n)}function v(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-d>=a}function g(){var e=s();if(v(e))return b(e);l=setTimeout(g,function(e){var n=t-(e-u);return h?C(n,a-(e-d)):n}(e))}function b(e){return l=void 0,p&&i?m(e):(i=o=void 0,c)}function y(){var e=s(),n=v(e);if(i=arguments,o=this,u=e,n){if(void 0===l)return function(e){return d=e,l=setTimeout(g,t),f?m(e):c}(u);if(h)return clearTimeout(l),l=setTimeout(g,t),m(u)}return void 0===l&&(l=setTimeout(g,t)),c}return t=w(t)||0,r(n)&&(f=!!n.leading,a=(h="maxWait"in n)?_(w(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==l&&clearTimeout(l),d=0,i=u=o=l=void 0},y.flush=function(){return void 0===l?c:b(s())},y}(t=>{const n=this.$_lastEditorData=e.getData();this.$emit("input",n,t,e)},300,{leading:!0});e.model.document.on("change:data",t),e.editing.view.document.on("focus",t=>{this.$emit("focus",t,e)}),e.editing.view.document.on("blur",t=>{this.$emit("blur",t,e)})}}};const x={install(e){e.component("ckeditor",A)},component:A};t.default=x}]).default},function(e,t,n){e.exports=n(197)},function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VueSimpleProgress=void 0;var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r};"undefined"!=typeof window&&window.Vue&&Vue.component("vue-simple-progress",o.default),t.VueSimpleProgress=o.default,t.default=o.default},function(e,t,n){var r=n(2)(n(3),n(4),null,null);e.exports=r.exports},function(e,t){e.exports=function(e,t,n,r){var i,o=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(i=e,o=e.default);var s="function"==typeof o?o.options:o;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var c=Object.create(s.computed||null);Object.keys(r).forEach((function(e){var t=r[e];c[e]=function(){return t}})),s.computed=c}return{esModule:i,exports:o,options:s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};t.default={props:{val:{default:0},max:{default:100},size:{default:3},"bg-color":{type:String,default:"#eee"},"bar-color":{type:String,default:"#2196f3"},"bar-transition":{type:String,default:"all 0.5s ease"},"bar-border-radius":{type:Number,default:0},spacing:{type:Number,default:4},text:{type:String,default:""},"text-align":{type:String,default:"center"},"text-position":{type:String,default:"bottom"},"font-size":{type:Number,default:13},"text-fg-color":{type:String,default:"#222"}},computed:{pct:function(){var e=this.val/this.max*100;return e=e.toFixed(2),Math.min(e,this.max)},size_px:function(){switch(this.size){case"tiny":return 2;case"small":return 4;case"medium":return 8;case"large":return 12;case"big":return 16;case"huge":return 32;case"massive":return 64}return r(this.size)?this.size:32},text_padding:function(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(this.size_px/8),3),12)}return r(this.spacing)?this.spacing:4},text_font_size:function(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(1.4*this.size_px),11),32)}return r(this.fontSize)?this.fontSize:13},progress_style:function(){var e={background:this.bgColor};return"middle"!=this.textPosition&&"inside"!=this.textPosition||(e.position="relative",e["min-height"]=this.size_px+"px",e["z-index"]="-2"),this.barBorderRadius>0&&(e["border-radius"]=this.barBorderRadius+"px"),e},bar_style:function(){var e={background:this.barColor,width:this.pct+"%",height:this.size_px+"px",transition:this.barTransition};return this.barBorderRadius>0&&(e["border-radius"]=this.barBorderRadius+"px"),"middle"!=this.textPosition&&"inside"!=this.textPosition||(e.position="absolute",e.top="0",e.height="100%",e["min-height"]=this.size_px+"px",e["z-index"]="-1"),e},text_style:function(){var e={color:this.textFgColor,"font-size":this.text_font_size+"px","text-align":this.textAlign};return"top"!=this.textPosition&&"middle"!=this.textPosition&&"inside"!=this.textPosition||(e["padding-bottom"]=this.text_padding+"px"),"bottom"!=this.textPosition&&"middle"!=this.textPosition&&"inside"!=this.textPosition||(e["padding-top"]=this.text_padding+"px"),e}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.text.length>0&&"top"==e.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:e.text_style},[e._v(e._s(e.text))]):e._e(),e._v(" "),n("div",{staticClass:"vue-simple-progress",style:e.progress_style},[e.text.length>0&&"middle"==e.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:e.text_style},[e._v(e._s(e.text))]):e._e(),e._v(" "),e.text.length>0&&"inside"==e.textPosition?n("div",{staticStyle:{position:"relative",left:"-9999px"},style:e.text_style},[e._v(e._s(e.text))]):e._e(),e._v(" "),n("div",{staticClass:"vue-simple-progress-bar",style:e.bar_style},[e.text.length>0&&"inside"==e.textPosition?n("div",{style:e.text_style},[e._v(e._s(e.text))]):e._e()])]),e._v(" "),e.text.length>0&&"bottom"==e.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:e.text_style},[e._v(e._s(e.text))]):e._e()])},staticRenderFns:[]}}]).default},e.exports=r()},function(e,t,n){"use strict";var r=n(27),i=n.n(r);n(182);t.a={components:{ckeditor:i.a.component},data:function(){return{editor:ClassicEditor,editorConfig:{toolbar:{items:["heading","|","alignment","fontColor","fontSize","|","bold","italic","|","link","bulletedList","numberedList","|","indent","outdent","|","imageUpload","undo","redo"]},link:{addTargetToExternalLinks:!0,defaultProtocol:"http://"},mediaEmbed:{previewsInData:!0},fontSize:{options:[16,"default",18,22,24,28,34,38],supportAllValues:!0},language:"fr",image:{toolbar:["linkImage"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},fontColor:{colors:[{label:"psq_red",color:"#d04d4a"},{label:"psq_blue",color:"#074e9c"},{label:"psq_light_blue",color:"#cddceb"},{label:"psq_purple",color:"#AD5ED3"},{label:"psq_cyan",color:"#288ed7"},{label:"psq_magenta",color:"#ce317c"},{label:"psq_orange",color:"#e79817"},{label:"psq_grey",color:"#546983"},{label:"psq_denim",color:"#0c2c50"},{label:"psq_green",color:"#41BD53"},{label:"psq_mag_blue",color:"#2a6ba3"}]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Titre 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Titre 2",class:"ck-heading_heading2"}]},simpleUpload:{uploadUrl:"/ckeditor/upload",headers:{"X-CSRF-TOKEN":document.querySelectorAll('meta[name="csrf-token"]')[0].content}}}}}}},function(e,t,n){var r=n(43),i=n(288),o=n(289),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(32),i=n(13),o=n(242),a=n(6);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t,n){e.exports=n(121)},function(e,t,n){(function(e,r){var i;(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]],c="[object Arguments]",l="[object Array]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",g="[object Object]",b="[object RegExp]",y="[object Set]",k="[object String]",w="[object Symbol]",_="[object WeakMap]",C="[object ArrayBuffer]",A="[object DataView]",x="[object Float32Array]",S="[object Float64Array]",M="[object Int8Array]",E="[object Int16Array]",T="[object Int32Array]",D="[object Uint8Array]",O="[object Uint16Array]",P="[object Uint32Array]",I=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,B=RegExp(R.source),F=RegExp(L.source),z=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(W.source),K=/^\s+|\s+$/g,G=/^\s+/,Q=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ce=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",he="\\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",pe="[\\ud800-\\udfff]",me="["+he+"]",ve="["+fe+"]",ge="\\d+",be="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",ke="[^\\ud800-\\udfff"+he+ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",_e="[^\\ud800-\\udfff]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",Ae="[\\ud800-\\udbff][\\udc00-\\udfff]",xe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Se="(?:"+ye+"|"+ke+")",Me="(?:"+xe+"|"+ke+")",Ee="(?:"+ve+"|"+we+")"+"?",Te="[\\ufe0e\\ufe0f]?"+Ee+("(?:\\u200d(?:"+[_e,Ce,Ae].join("|")+")[\\ufe0e\\ufe0f]?"+Ee+")*"),De="(?:"+[be,Ce,Ae].join("|")+")"+Te,Oe="(?:"+[_e+ve+"?",ve,Ce,Ae,pe].join("|")+")",Pe=RegExp("['’]","g"),Ie=RegExp(ve,"g"),je=RegExp(we+"(?="+we+")|"+Oe+Te,"g"),Ne=RegExp([xe+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,xe,"$"].join("|")+")",Me+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,xe+Se,"$"].join("|")+")",xe+"?"+Se+"+(?:['’](?:d|ll|m|re|s|t|ve))?",xe+"+(?:['’](?: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_])",ge,De].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Be=["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"],Fe=-1,ze={};ze[x]=ze[S]=ze[M]=ze[E]=ze[T]=ze[D]=ze["[object Uint8ClampedArray]"]=ze[O]=ze[P]=!0,ze[c]=ze[l]=ze[C]=ze[u]=ze[A]=ze[d]=ze[f]=ze[h]=ze[m]=ze[v]=ze[g]=ze[b]=ze[y]=ze[k]=ze[_]=!1;var Ve={};Ve[c]=Ve[l]=Ve[C]=Ve[A]=Ve[u]=Ve[d]=Ve[x]=Ve[S]=Ve[M]=Ve[E]=Ve[T]=Ve[m]=Ve[v]=Ve[g]=Ve[b]=Ve[y]=Ve[k]=Ve[w]=Ve[D]=Ve["[object Uint8ClampedArray]"]=Ve[O]=Ve[P]=!0,Ve[f]=Ve[h]=Ve[_]=!1;var $e={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,Ue=parseInt,qe="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,Ye=qe||We||Function("return this")(),Ke=t&&!t.nodeType&&t,Ge=Ke&&"object"==typeof r&&r&&!r.nodeType&&r,Qe=Ge&&Ge.exports===Ke,Xe=Qe&&qe.process,Je=function(){try{var e=Ge&&Ge.require&&Ge.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Ze=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,it=Je&&Je.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function dt(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function ft(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ht(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function mt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function vt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var bt=xt("length");function yt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function kt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):kt(e,Ct,n)}function _t(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ct(e){return e!=e}function At(e,t){var n=null==e?0:e.length;return n?Et(e,t)/n:NaN}function xt(e){return function(t){return null==t?void 0:t[e]}}function St(e){return function(t){return null==e?void 0:e[t]}}function Mt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Et(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Tt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Dt(e){return function(t){return e(t)}}function Ot(e,t){return ht(t,(function(t){return e[t]}))}function Pt(e,t){return e.has(t)}function It(e,t){for(var n=-1,r=e.length;++n<r&&wt(t,e[n],0)>-1;);return n}function jt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Rt=St({"À":"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"}),Lt=St({"&":"&","<":"<",">":">",'"':""","'":"'"});function Bt(e){return"\\"+$e[e]}function Ft(e){return Re.test(e)}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Vt(e,t){return function(n){return e(t(n))}}function $t(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function qt(e){return Ft(e)?function(e){var t=je.lastIndex=0;for(;je.test(e);)++t;return t}(e):bt(e)}function Wt(e){return Ft(e)?function(e){return e.match(je)||[]}(e):function(e){return e.split("")}(e)}var Yt=St({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Kt=function e(t){var n,r=(t=null==t?Ye:Kt.defaults(Ye.Object(),t,Kt.pick(Ye,Be))).Array,i=t.Date,fe=t.Error,he=t.Function,pe=t.Math,me=t.Object,ve=t.RegExp,ge=t.String,be=t.TypeError,ye=r.prototype,ke=he.prototype,we=me.prototype,_e=t["__core-js_shared__"],Ce=ke.toString,Ae=we.hasOwnProperty,xe=0,Se=(n=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Me=we.toString,Ee=Ce.call(me),Te=Ye._,De=ve("^"+Ce.call(Ae).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=Qe?t.Buffer:void 0,je=t.Symbol,Re=t.Uint8Array,$e=Oe?Oe.allocUnsafe:void 0,qe=Vt(me.getPrototypeOf,me),We=me.create,Ke=we.propertyIsEnumerable,Ge=ye.splice,Xe=je?je.isConcatSpreadable:void 0,Je=je?je.iterator:void 0,bt=je?je.toStringTag:void 0,St=function(){try{var e=Zi(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Gt=t.clearTimeout!==Ye.clearTimeout&&t.clearTimeout,Qt=i&&i.now!==Ye.Date.now&&i.now,Xt=t.setTimeout!==Ye.setTimeout&&t.setTimeout,Jt=pe.ceil,Zt=pe.floor,en=me.getOwnPropertySymbols,tn=Oe?Oe.isBuffer:void 0,nn=t.isFinite,rn=ye.join,on=Vt(me.keys,me),an=pe.max,sn=pe.min,cn=i.now,ln=t.parseInt,un=pe.random,dn=ye.reverse,fn=Zi(t,"DataView"),hn=Zi(t,"Map"),pn=Zi(t,"Promise"),mn=Zi(t,"Set"),vn=Zi(t,"WeakMap"),gn=Zi(me,"create"),bn=vn&&new vn,yn={},kn=Mo(fn),wn=Mo(hn),_n=Mo(pn),Cn=Mo(mn),An=Mo(vn),xn=je?je.prototype:void 0,Sn=xn?xn.valueOf:void 0,Mn=xn?xn.toString:void 0;function En(e){if(Ua(e)&&!Ia(e)&&!(e instanceof Pn)){if(e instanceof On)return e;if(Ae.call(e,"__wrapped__"))return Eo(e)}return new On(e)}var Tn=function(){function e(){}return function(t){if(!Ha(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Dn(){}function On(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Pn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function In(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Nn;++t<n;)this.add(e[t])}function Ln(e){var t=this.__data__=new jn(e);this.size=t.size}function Bn(e,t){var n=Ia(e),r=!n&&Pa(e),i=!n&&!r&&La(e),o=!n&&!r&&!i&&Ja(e),a=n||r||i||o,s=a?Tt(e.length,ge):[],c=s.length;for(var l in e)!t&&!Ae.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ao(l,c))||s.push(l);return s}function Fn(e){var t=e.length;return t?e[Rr(0,t-1)]:void 0}function zn(e,t){return Ao(gi(e),Gn(t,0,e.length))}function Vn(e){return Ao(gi(e))}function $n(e,t,n){(void 0!==n&&!Ta(e[t],n)||void 0===n&&!(t in e))&&Yn(e,t,n)}function Hn(e,t,n){var r=e[t];Ae.call(e,t)&&Ta(r,n)&&(void 0!==n||t in e)||Yn(e,t,n)}function Un(e,t){for(var n=e.length;n--;)if(Ta(e[n][0],t))return n;return-1}function qn(e,t,n,r){return er(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Wn(e,t){return e&&bi(t,ks(t),e)}function Yn(e,t,n){"__proto__"==t&&St?St(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kn(e,t){for(var n=-1,i=t.length,o=r(i),a=null==e;++n<i;)o[n]=a?void 0:ms(e,t[n]);return o}function Gn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Qn(e,t,n,r,i,o){var a,s=1&t,l=2&t,f=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ha(e))return e;var _=Ia(e);if(_){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ae.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return gi(e,a)}else{var I=no(e),j=I==h||I==p;if(La(e))return di(e,s);if(I==g||I==c||j&&!i){if(a=l||j?{}:io(e),!s)return l?function(e,t){return bi(e,to(e),t)}(e,function(e,t){return e&&bi(t,ws(t),e)}(a,e)):function(e,t){return bi(e,eo(e),t)}(e,Wn(a,e))}else{if(!Ve[I])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case C:return fi(e);case u:case d:return new r(+e);case A:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case x:case S:case M:case E:case T:case D:case"[object Uint8ClampedArray]":case O:case P:return hi(e,n);case m:return new r;case v:case k:return new r(e);case b:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new r;case w:return i=e,Sn?me(Sn.call(i)):{}}var i}(e,I,s)}}o||(o=new Ln);var N=o.get(e);if(N)return N;o.set(e,a),Ga(e)?e.forEach((function(r){a.add(Qn(r,t,n,r,e,o))})):qa(e)&&e.forEach((function(r,i){a.set(i,Qn(r,t,n,i,e,o))}));var R=_?void 0:(f?l?Wi:qi:l?ws:ks)(e);return st(R||e,(function(r,i){R&&(r=e[i=r]),Hn(a,i,Qn(r,t,n,i,e,o))})),a}function Xn(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Jn(e,t,n){if("function"!=typeof e)throw new be(o);return ko((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,r){var i=-1,o=dt,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=ht(t,Dt(n))),r?(o=ft,a=!1):t.length>=200&&(o=Pt,a=!1,t=new Rn(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=l;f--;)if(t[f]===d)continue e;c.push(u)}else o(t,d,r)||c.push(u)}return c}En.templateSettings={escape:z,evaluate:V,interpolate:$,variable:"",imports:{_:En}},En.prototype=Dn.prototype,En.prototype.constructor=En,On.prototype=Tn(Dn.prototype),On.prototype.constructor=On,Pn.prototype=Tn(Dn.prototype),Pn.prototype.constructor=Pn,In.prototype.clear=function(){this.__data__=gn?gn(null):{},this.size=0},In.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},In.prototype.get=function(e){var t=this.__data__;if(gn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ae.call(t,e)?t[e]:void 0},In.prototype.has=function(e){var t=this.__data__;return gn?void 0!==t[e]:Ae.call(t,e)},In.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gn&&void 0===t?"__lodash_hash_undefined__":t,this},jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(e){var t=this.__data__,n=Un(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},jn.prototype.get=function(e){var t=this.__data__,n=Un(t,e);return n<0?void 0:t[n][1]},jn.prototype.has=function(e){return Un(this.__data__,e)>-1},jn.prototype.set=function(e,t){var n=this.__data__,r=Un(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new In,map:new(hn||jn),string:new In}},Nn.prototype.delete=function(e){var t=Xi(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Xi(this,e).get(e)},Nn.prototype.has=function(e){return Xi(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Xi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.clear=function(){this.__data__=new jn,this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ln.prototype.get=function(e){return this.__data__.get(e)},Ln.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.set=function(e,t){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var er=wi(cr),tr=wi(lr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function rr(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!Xa(a):n(a,s)))var s=a,c=o}return c}function ir(e,t){var n=[];return er(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function or(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=oo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?or(s,t-1,n,r,i):pt(i,s):r||(i[i.length]=s)}return i}var ar=_i(),sr=_i(!0);function cr(e,t){return e&&ar(e,t,ks)}function lr(e,t){return e&&sr(e,t,ks)}function ur(e,t){return ut(t,(function(t){return za(e[t])}))}function dr(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&n<r;)e=e[So(t[n++])];return n&&n==r?e:void 0}function fr(e,t,n){var r=t(e);return Ia(e)?r:pt(r,n(e))}function hr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bt&&bt in me(e)?function(e){var t=Ae.call(e,bt),n=e[bt];try{e[bt]=void 0;var r=!0}catch(e){}var i=Me.call(e);r&&(t?e[bt]=n:delete e[bt]);return i}(e):function(e){return Me.call(e)}(e)}function pr(e,t){return e>t}function mr(e,t){return null!=e&&Ae.call(e,t)}function vr(e,t){return null!=e&&t in me(e)}function gr(e,t,n){for(var i=n?ft:dt,o=e[0].length,a=e.length,s=a,c=r(a),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=ht(d,Dt(t))),l=sn(d.length,l),c[s]=!n&&(t||o>=120&&d.length>=120)?new Rn(s&&d):void 0}d=e[0];var f=-1,h=c[0];e:for(;++f<o&&u.length<l;){var p=d[f],m=t?t(p):p;if(p=n||0!==p?p:0,!(h?Pt(h,m):i(u,m,n))){for(s=a;--s;){var v=c[s];if(!(v?Pt(v,m):i(e[s],m,n)))continue e}h&&h.push(m),u.push(p)}}return u}function br(e,t,n){var r=null==(e=vo(e,t=si(t,e)))?e:e[So(Fo(t))];return null==r?void 0:ot(r,e,n)}function yr(e){return Ua(e)&&hr(e)==c}function kr(e,t,n,r,i){return e===t||(null==e||null==t||!Ua(e)&&!Ua(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=Ia(e),s=Ia(t),h=a?l:no(e),p=s?l:no(t),_=(h=h==c?g:h)==g,x=(p=p==c?g:p)==g,S=h==p;if(S&&La(e)){if(!La(t))return!1;a=!0,_=!1}if(S&&!_)return o||(o=new Ln),a||Ja(e)?Hi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!o(new Re(e),new Re(t)));case u:case d:case v:return Ta(+e,+t);case f:return e.name==t.name&&e.message==t.message;case b:case k:return e==t+"";case m:var s=zt;case y:var c=1&r;if(s||(s=Ht),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var h=Hi(s(e),s(t),r,i,o,a);return a.delete(e),h;case w:if(Sn)return Sn.call(e)==Sn.call(t)}return!1}(e,t,h,n,r,i,o);if(!(1&n)){var M=_&&Ae.call(e,"__wrapped__"),E=x&&Ae.call(t,"__wrapped__");if(M||E){var T=M?e.value():e,D=E?t.value():t;return o||(o=new Ln),i(T,D,n,r,o)}}if(!S)return!1;return o||(o=new Ln),function(e,t,n,r,i,o){var a=1&n,s=qi(e),c=s.length,l=qi(t).length;if(c!=l&&!a)return!1;var u=c;for(;u--;){var d=s[u];if(!(a?d in t:Ae.call(t,d)))return!1}var f=o.get(e),h=o.get(t);if(f&&h)return f==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);var m=a;for(;++u<c;){d=s[u];var v=e[d],g=t[d];if(r)var b=a?r(g,v,d,t,e,o):r(v,g,d,e,t,o);if(!(void 0===b?v===g||i(v,g,n,r,o):b)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var y=e.constructor,k=t.constructor;y==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof k&&k instanceof k||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o)}(e,t,n,r,kr,i))}function wr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=me(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var c=(s=n[i])[0],l=e[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in e))return!1}else{var d=new Ln;if(r)var f=r(l,u,c,e,t,d);if(!(void 0===f?kr(u,l,3,r,d):f))return!1}}return!0}function _r(e){return!(!Ha(e)||(t=e,Se&&Se in t))&&(za(e)?De:ae).test(Mo(e));var t}function Cr(e){return"function"==typeof e?e:null==e?Ws:"object"==typeof e?Ia(e)?Tr(e[0],e[1]):Er(e):tc(e)}function Ar(e){if(!fo(e))return on(e);var t=[];for(var n in me(e))Ae.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xr(e){if(!Ha(e))return function(e){var t=[];if(null!=e)for(var n in me(e))t.push(n);return t}(e);var t=fo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ae.call(e,r))&&n.push(r);return n}function Sr(e,t){return e<t}function Mr(e,t){var n=-1,i=Na(e)?r(e.length):[];return er(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Er(e){var t=Ji(e);return 1==t.length&&t[0][2]?po(t[0][0],t[0][1]):function(n){return n===e||wr(n,e,t)}}function Tr(e,t){return co(e)&&ho(t)?po(So(e),t):function(n){var r=ms(n,e);return void 0===r&&r===t?vs(n,e):kr(t,r,3)}}function Dr(e,t,n,r,i){e!==t&&ar(t,(function(o,a){if(i||(i=new Ln),Ha(o))!function(e,t,n,r,i,o,a){var s=bo(e,n),c=bo(t,n),l=a.get(c);if(l)return void $n(e,n,l);var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var f=Ia(c),h=!f&&La(c),p=!f&&!h&&Ja(c);u=c,f||h||p?Ia(s)?u=s:Ra(s)?u=gi(s):h?(d=!1,u=di(c,!0)):p?(d=!1,u=hi(c,!0)):u=[]:Ya(c)||Pa(c)?(u=s,Pa(s)?u=as(s):Ha(s)&&!za(s)||(u=io(c))):d=!1}d&&(a.set(c,u),i(u,c,r,o,a),a.delete(c));$n(e,n,u)}(e,t,a,n,Dr,r,i);else{var s=r?r(bo(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),$n(e,a,s)}}),ws)}function Or(e,t){var n=e.length;if(n)return ao(t+=t<0?n:0,n)?e[t]:void 0}function Pr(e,t,n){t=t.length?ht(t,(function(e){return Ia(e)?function(t){return dr(t,1===e.length?e[0]:e)}:e})):[Ws];var r=-1;return t=ht(t,Dt(Qi())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Mr(e,(function(e,n,i){return{criteria:ht(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var c=pi(i[r],o[r]);if(c){if(r>=s)return c;var l=n[r];return c*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Ir(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=dr(e,a);n(s,a)&&Vr(o,si(a,e),s)}return o}function jr(e,t,n,r){var i=r?_t:wt,o=-1,a=t.length,s=e;for(e===t&&(t=gi(t)),n&&(s=ht(e,Dt(n)));++o<a;)for(var c=0,l=t[o],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Ge.call(s,c,1),Ge.call(e,c,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;ao(i)?Ge.call(e,i,1):Zr(e,i)}}return e}function Rr(e,t){return e+Zt(un()*(t-e+1))}function Lr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function Br(e,t){return wo(mo(e,t,Ws),e+"")}function Fr(e){return Fn(Ts(e))}function zr(e,t){var n=Ts(e);return Ao(n,Gn(t,0,n.length))}function Vr(e,t,n,r){if(!Ha(e))return e;for(var i=-1,o=(t=si(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var c=So(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=a){var u=s[c];void 0===(l=r?r(u,c,s):void 0)&&(l=Ha(u)?u:ao(t[i+1])?[]:{})}Hn(s,c,l),s=s[c]}return e}var $r=bn?function(e,t){return bn.set(e,t),e}:Ws,Hr=St?function(e,t){return St(e,"toString",{configurable:!0,enumerable:!1,value:Hs(t),writable:!0})}:Ws;function Ur(e){return Ao(Ts(e))}function qr(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function Wr(e,t){var n;return er(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Yr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Xa(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Kr(e,t,Ws,n)}function Kr(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,s=null===t,c=Xa(t),l=void 0===t;i<o;){var u=Zt((i+o)/2),d=n(e[u]),f=void 0!==d,h=null===d,p=d==d,m=Xa(d);if(a)var v=r||p;else v=l?p&&(r||f):s?p&&f&&(r||!h):c?p&&f&&!h&&(r||!m):!h&&!m&&(r?d<=t:d<t);v?i=u+1:o=u}return sn(o,4294967294)}function Gr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ta(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function Qr(e){return"number"==typeof e?e:Xa(e)?NaN:+e}function Xr(e){if("string"==typeof e)return e;if(Ia(e))return ht(e,Xr)+"";if(Xa(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Jr(e,t,n){var r=-1,i=dt,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=ft;else if(o>=200){var l=t?null:Li(e);if(l)return Ht(l);a=!1,i=Pt,c=new Rn}else c=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Zr(e,t){return null==(e=vo(e,t=si(t,e)))||delete e[So(Fo(t))]}function ei(e,t,n,r){return Vr(e,t,n(dr(e,t)),r)}function ti(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?qr(e,r?0:o,r?o+1:i):qr(e,r?o+1:0,r?i:o)}function ni(e,t){var n=e;return n instanceof Pn&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,pt([e],t.args))}),n)}function ri(e,t,n){var i=e.length;if(i<2)return i?Jr(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],c=-1;++c<i;)c!=o&&(a[o]=Zn(a[o]||s,e[c],t,n));return Jr(or(a,1),t,n)}function ii(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function oi(e){return Ra(e)?e:[]}function ai(e){return"function"==typeof e?e:Ws}function si(e,t){return Ia(e)?e:co(e,t)?[e]:xo(ss(e))}var ci=Br;function li(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:qr(e,t,n)}var ui=Gt||function(e){return Ye.clearTimeout(e)};function di(e,t){if(t)return e.slice();var n=e.length,r=$e?$e(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Re(t).set(new Re(e)),t}function hi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function pi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Xa(e),a=void 0!==t,s=null===t,c=t==t,l=Xa(t);if(!s&&!l&&!o&&e>t||o&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!c)return-1}return 0}function mi(e,t,n,i){for(var o=-1,a=e.length,s=n.length,c=-1,l=t.length,u=an(a-s,0),d=r(l+u),f=!i;++c<l;)d[c]=t[c];for(;++o<s;)(f||o<a)&&(d[n[o]]=e[o]);for(;u--;)d[c++]=e[o++];return d}function vi(e,t,n,i){for(var o=-1,a=e.length,s=-1,c=n.length,l=-1,u=t.length,d=an(a-c,0),f=r(d+u),h=!i;++o<d;)f[o]=e[o];for(var p=o;++l<u;)f[p+l]=t[l];for(;++s<c;)(h||o<a)&&(f[p+n[s]]=e[o++]);return f}function gi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function bi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?Yn(n,s,c):Hn(n,s,c)}return n}function yi(e,t){return function(n,r){var i=Ia(n)?at:qn,o=t?t():{};return i(n,e,Qi(r,2),o)}}function ki(e){return Br((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=me(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}function wi(e,t){return function(n,r){if(null==n)return n;if(!Na(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=me(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function _i(e){return function(t,n,r){for(var i=-1,o=me(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}function Ci(e){return function(t){var n=Ft(t=ss(t))?Wt(t):void 0,r=n?n[0]:t.charAt(0),i=n?li(n,1).join(""):t.slice(1);return r[e]()+i}}function Ai(e){return function(t){return mt(zs(Ps(t).replace(Pe,"")),e,"")}}function xi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Tn(e.prototype),r=e.apply(n,t);return Ha(r)?r:n}}function Si(e){return function(t,n,r){var i=me(t);if(!Na(t)){var o=Qi(n,3);t=ks(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}function Mi(e){return Ui((function(t){var n=t.length,r=n,i=On.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new be(o);if(i&&!s&&"wrapper"==Ki(a))var s=new On([],!0)}for(r=s?r:n;++r<n;){var c=Ki(a=t[r]),l="wrapper"==c?Yi(a):void 0;s=l&&lo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[Ki(l[0])].apply(s,l[3]):1==a.length&&lo(a)?s[c]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ia(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ei(e,t,n,i,o,a,s,c,l,u){var d=128&t,f=1&t,h=2&t,p=24&t,m=512&t,v=h?void 0:xi(e);return function g(){for(var b=arguments.length,y=r(b),k=b;k--;)y[k]=arguments[k];if(p)var w=Gi(g),_=Nt(y,w);if(i&&(y=mi(y,i,o,p)),a&&(y=vi(y,a,s,p)),b-=_,p&&b<u){var C=$t(y,w);return Ni(e,t,Ei,g.placeholder,n,y,C,c,l,u-b)}var A=f?n:this,x=h?A[e]:e;return b=y.length,c?y=go(y,c):m&&b>1&&y.reverse(),d&&l<b&&(y.length=l),this&&this!==Ye&&this instanceof g&&(x=v||xi(x)),x.apply(A,y)}}function Ti(e,t){return function(n,r){return function(e,t,n,r){return cr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Di(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Xr(n),r=Xr(r)):(n=Qr(n),r=Qr(r)),i=e(n,r)}return i}}function Oi(e){return Ui((function(t){return t=ht(t,Dt(Qi())),Br((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Pi(e,t){var n=(t=void 0===t?" ":Xr(t)).length;if(n<2)return n?Lr(t,e):t;var r=Lr(t,Jt(e/qt(t)));return Ft(t)?li(Wt(r),0,e).join(""):r.slice(0,e)}function Ii(e){return function(t,n,i){return i&&"number"!=typeof i&&so(t,n,i)&&(n=i=void 0),t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n,i){for(var o=-1,a=an(Jt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,i=void 0===i?t<n?1:-1:ns(i),e)}}function ji(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=os(t),n=os(n)),e(t,n)}}function Ni(e,t,n,r,i,o,a,s,c,l){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,i,u?o:void 0,u?a:void 0,u?void 0:o,u?void 0:a,s,c,l],f=n.apply(void 0,d);return lo(e)&&yo(f,d),f.placeholder=r,_o(f,e,t)}function Ri(e){var t=pe[e];return function(e,n){if(e=os(e),(n=null==n?0:sn(rs(n),292))&&nn(e)){var r=(ss(e)+"e").split("e");return+((r=(ss(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Li=mn&&1/Ht(new mn([,-0]))[1]==1/0?function(e){return new mn(e)}:Xs;function Bi(e){return function(t){var n=no(t);return n==m?zt(t):n==y?Ut(t):function(e,t){return ht(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Fi(e,t,n,i,s,c,l,u){var d=2&t;if(!d&&"function"!=typeof e)throw new be(o);var f=i?i.length:0;if(f||(t&=-97,i=s=void 0),l=void 0===l?l:an(rs(l),0),u=void 0===u?u:rs(u),f-=s?s.length:0,64&t){var h=i,p=s;i=s=void 0}var m=d?void 0:Yi(e),v=[e,t,n,i,s,h,p,c,l,u];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?mi(l,c,t[4]):c,e[4]=l?$t(e[3],a):t[4]}(c=t[5])&&(l=e[5],e[5]=l?vi(l,c,t[6]):c,e[6]=l?$t(e[5],a):t[6]);(c=t[7])&&(e[7]=c);128&r&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(v,m),e=v[0],t=v[1],n=v[2],i=v[3],s=v[4],!(u=v[9]=void 0===v[9]?d?0:e.length:an(v[9]-f,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var i=xi(e);return function o(){for(var a=arguments.length,s=r(a),c=a,l=Gi(o);c--;)s[c]=arguments[c];var u=a<3&&s[0]!==l&&s[a-1]!==l?[]:$t(s,l);if((a-=u.length)<n)return Ni(e,t,Ei,o.placeholder,void 0,s,u,void 0,void 0,n-a);var d=this&&this!==Ye&&this instanceof o?i:e;return ot(d,this,s)}}(e,t,u):32!=t&&33!=t||s.length?Ei.apply(void 0,v):function(e,t,n,i){var o=1&t,a=xi(e);return function t(){for(var s=-1,c=arguments.length,l=-1,u=i.length,d=r(u+c),f=this&&this!==Ye&&this instanceof t?a:e;++l<u;)d[l]=i[l];for(;c--;)d[l++]=arguments[++s];return ot(f,o?n:this,d)}}(e,t,n,i);else var g=function(e,t,n){var r=1&t,i=xi(e);return function t(){var o=this&&this!==Ye&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,n);return _o((m?$r:yo)(g,v),e,t)}function zi(e,t,n,r){return void 0===e||Ta(e,we[n])&&!Ae.call(r,n)?t:e}function Vi(e,t,n,r,i,o){return Ha(e)&&Ha(t)&&(o.set(t,e),Dr(e,t,void 0,Vi,o),o.delete(t)),e}function $i(e){return Ya(e)?void 0:e}function Hi(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,h=2&n?new Rn:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var v=a?r(m,p,d,t,e,o):r(p,m,d,e,t,o);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!gt(t,(function(e,t){if(!Pt(h,t)&&(p===e||i(p,e,n,r,o)))return h.push(t)}))){f=!1;break}}else if(p!==m&&!i(p,m,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Ui(e){return wo(mo(e,void 0,jo),e+"")}function qi(e){return fr(e,ks,eo)}function Wi(e){return fr(e,ws,to)}var Yi=bn?function(e){return bn.get(e)}:Xs;function Ki(e){for(var t=e.name+"",n=yn[t],r=Ae.call(yn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Gi(e){return(Ae.call(En,"placeholder")?En:e).placeholder}function Qi(){var e=En.iteratee||Ys;return e=e===Ys?Cr:e,arguments.length?e(arguments[0],arguments[1]):e}function Xi(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ji(e){for(var t=ks(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ho(i)]}return t}function Zi(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return _r(n)?n:void 0}var eo=en?function(e){return null==e?[]:(e=me(e),ut(en(e),(function(t){return Ke.call(e,t)})))}:ic,to=en?function(e){for(var t=[];e;)pt(t,eo(e)),e=qe(e);return t}:ic,no=hr;function ro(e,t,n){for(var r=-1,i=(t=si(t,e)).length,o=!1;++r<i;){var a=So(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&$a(i)&&ao(a,i)&&(Ia(e)||Pa(e))}function io(e){return"function"!=typeof e.constructor||fo(e)?{}:Tn(qe(e))}function oo(e){return Ia(e)||Pa(e)||!!(Xe&&e&&e[Xe])}function ao(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ce.test(e))&&e>-1&&e%1==0&&e<t}function so(e,t,n){if(!Ha(n))return!1;var r=typeof t;return!!("number"==r?Na(n)&&ao(t,n.length):"string"==r&&t in n)&&Ta(n[t],e)}function co(e,t){if(Ia(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xa(e))||(U.test(e)||!H.test(e)||null!=t&&e in me(t))}function lo(e){var t=Ki(e),n=En[t];if("function"!=typeof n||!(t in Pn.prototype))return!1;if(e===n)return!0;var r=Yi(n);return!!r&&e===r[0]}(fn&&no(new fn(new ArrayBuffer(1)))!=A||hn&&no(new hn)!=m||pn&&"[object Promise]"!=no(pn.resolve())||mn&&no(new mn)!=y||vn&&no(new vn)!=_)&&(no=function(e){var t=hr(e),n=t==g?e.constructor:void 0,r=n?Mo(n):"";if(r)switch(r){case kn:return A;case wn:return m;case _n:return"[object Promise]";case Cn:return y;case An:return _}return t});var uo=_e?za:oc;function fo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function ho(e){return e==e&&!Ha(e)}function po(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in me(n)))}}function mo(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=an(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var c=r(t+1);++o<t;)c[o]=i[o];return c[t]=n(s),ot(e,this,c)}}function vo(e,t){return t.length<2?e:dr(e,qr(t,0,-1))}function go(e,t){for(var n=e.length,r=sn(t.length,n),i=gi(e);r--;){var o=t[r];e[r]=ao(o,n)?i[o]:void 0}return e}function bo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var yo=Co($r),ko=Xt||function(e,t){return Ye.setTimeout(e,t)},wo=Co(Hr);function _o(e,t,n){var r=t+"";return wo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(J);return t?t[1].split(Z):[]}(r),n)))}function Co(e){var t=0,n=0;return function(){var r=cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ao(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=Rr(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var xo=function(e){var t=Ca(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(q,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function So(e){if("string"==typeof e||Xa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mo(e){if(null!=e){try{return Ce.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Eo(e){if(e instanceof Pn)return e.clone();var t=new On(e.__wrapped__,e.__chain__);return t.__actions__=gi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var To=Br((function(e,t){return Ra(e)?Zn(e,or(t,1,Ra,!0)):[]})),Do=Br((function(e,t){var n=Fo(t);return Ra(n)&&(n=void 0),Ra(e)?Zn(e,or(t,1,Ra,!0),Qi(n,2)):[]})),Oo=Br((function(e,t){var n=Fo(t);return Ra(n)&&(n=void 0),Ra(e)?Zn(e,or(t,1,Ra,!0),void 0,n):[]}));function Po(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),kt(e,Qi(t,3),i)}function Io(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rs(n),i=n<0?an(r+i,0):sn(i,r-1)),kt(e,Qi(t,3),i,!0)}function jo(e){return(null==e?0:e.length)?or(e,1):[]}function No(e){return e&&e.length?e[0]:void 0}var Ro=Br((function(e){var t=ht(e,oi);return t.length&&t[0]===e[0]?gr(t):[]})),Lo=Br((function(e){var t=Fo(e),n=ht(e,oi);return t===Fo(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?gr(n,Qi(t,2)):[]})),Bo=Br((function(e){var t=Fo(e),n=ht(e,oi);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?gr(n,void 0,t):[]}));function Fo(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var zo=Br(Vo);function Vo(e,t){return e&&e.length&&t&&t.length?jr(e,t):e}var $o=Ui((function(e,t){var n=null==e?0:e.length,r=Kn(e,t);return Nr(e,ht(t,(function(e){return ao(e,n)?+e:e})).sort(pi)),r}));function Ho(e){return null==e?e:dn.call(e)}var Uo=Br((function(e){return Jr(or(e,1,Ra,!0))})),qo=Br((function(e){var t=Fo(e);return Ra(t)&&(t=void 0),Jr(or(e,1,Ra,!0),Qi(t,2))})),Wo=Br((function(e){var t=Fo(e);return t="function"==typeof t?t:void 0,Jr(or(e,1,Ra,!0),void 0,t)}));function Yo(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(Ra(e))return t=an(e.length,t),!0})),Tt(t,(function(t){return ht(e,xt(t))}))}function Ko(e,t){if(!e||!e.length)return[];var n=Yo(e);return null==t?n:ht(n,(function(e){return ot(t,void 0,e)}))}var Go=Br((function(e,t){return Ra(e)?Zn(e,t):[]})),Qo=Br((function(e){return ri(ut(e,Ra))})),Xo=Br((function(e){var t=Fo(e);return Ra(t)&&(t=void 0),ri(ut(e,Ra),Qi(t,2))})),Jo=Br((function(e){var t=Fo(e);return t="function"==typeof t?t:void 0,ri(ut(e,Ra),void 0,t)})),Zo=Br(Yo);var ea=Br((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Ko(e,n)}));function ta(e){var t=En(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=Ui((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Kn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Pn&&ao(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new On(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ia=yi((function(e,t,n){Ae.call(e,n)?++e[n]:Yn(e,n,1)}));var oa=Si(Po),aa=Si(Io);function sa(e,t){return(Ia(e)?st:er)(e,Qi(t,3))}function ca(e,t){return(Ia(e)?ct:tr)(e,Qi(t,3))}var la=yi((function(e,t,n){Ae.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var ua=Br((function(e,t,n){var i=-1,o="function"==typeof t,a=Na(e)?r(e.length):[];return er(e,(function(e){a[++i]=o?ot(t,e,n):br(e,t,n)})),a})),da=yi((function(e,t,n){Yn(e,n,t)}));function fa(e,t){return(Ia(e)?ht:Mr)(e,Qi(t,3))}var ha=yi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var pa=Br((function(e,t){if(null==e)return[];var n=t.length;return n>1&&so(e,t[0],t[1])?t=[]:n>2&&so(t[0],t[1],t[2])&&(t=[t[0]]),Pr(e,or(t,1),[])})),ma=Qt||function(){return Ye.Date.now()};function va(e,t,n){return t=n?void 0:t,Fi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ga(e,t){var n;if("function"!=typeof t)throw new be(o);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Br((function(e,t,n){var r=1;if(n.length){var i=$t(n,Gi(ba));r|=32}return Fi(e,r,t,n,i)})),ya=Br((function(e,t,n){var r=3;if(n.length){var i=$t(n,Gi(ya));r|=32}return Fi(t,r,e,n,i)}));function ka(e,t,n){var r,i,a,s,c,l,u=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw new be(o);function p(t){var n=r,o=i;return r=i=void 0,u=t,s=e.apply(o,n)}function m(e){return u=e,c=ko(g,t),d?p(e):s}function v(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-u>=a}function g(){var e=ma();if(v(e))return b(e);c=ko(g,function(e){var n=t-(e-l);return f?sn(n,a-(e-u)):n}(e))}function b(e){return c=void 0,h&&r?p(e):(r=i=void 0,s)}function y(){var e=ma(),n=v(e);if(r=arguments,i=this,l=e,n){if(void 0===c)return m(l);if(f)return ui(c),c=ko(g,t),p(l)}return void 0===c&&(c=ko(g,t)),s}return t=os(t)||0,Ha(n)&&(d=!!n.leading,a=(f="maxWait"in n)?an(os(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==c&&ui(c),u=0,r=l=i=c=void 0},y.flush=function(){return void 0===c?s:b(ma())},y}var wa=Br((function(e,t){return Jn(e,1,t)})),_a=Br((function(e,t,n){return Jn(e,os(t)||0,n)}));function Ca(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new be(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ca.Cache||Nn),n}function Aa(e){if("function"!=typeof e)throw new be(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ca.Cache=Nn;var xa=ci((function(e,t){var n=(t=1==t.length&&Ia(t[0])?ht(t[0],Dt(Qi())):ht(or(t,1),Dt(Qi()))).length;return Br((function(r){for(var i=-1,o=sn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),Sa=Br((function(e,t){return Fi(e,32,void 0,t,$t(t,Gi(Sa)))})),Ma=Br((function(e,t){return Fi(e,64,void 0,t,$t(t,Gi(Ma)))})),Ea=Ui((function(e,t){return Fi(e,256,void 0,void 0,void 0,t)}));function Ta(e,t){return e===t||e!=e&&t!=t}var Da=ji(pr),Oa=ji((function(e,t){return e>=t})),Pa=yr(function(){return arguments}())?yr:function(e){return Ua(e)&&Ae.call(e,"callee")&&!Ke.call(e,"callee")},Ia=r.isArray,ja=Ze?Dt(Ze):function(e){return Ua(e)&&hr(e)==C};function Na(e){return null!=e&&$a(e.length)&&!za(e)}function Ra(e){return Ua(e)&&Na(e)}var La=tn||oc,Ba=et?Dt(et):function(e){return Ua(e)&&hr(e)==d};function Fa(e){if(!Ua(e))return!1;var t=hr(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ya(e)}function za(e){if(!Ha(e))return!1;var t=hr(e);return t==h||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Va(e){return"number"==typeof e&&e==rs(e)}function $a(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ha(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ua(e){return null!=e&&"object"==typeof e}var qa=tt?Dt(tt):function(e){return Ua(e)&&no(e)==m};function Wa(e){return"number"==typeof e||Ua(e)&&hr(e)==v}function Ya(e){if(!Ua(e)||hr(e)!=g)return!1;var t=qe(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ce.call(n)==Ee}var Ka=nt?Dt(nt):function(e){return Ua(e)&&hr(e)==b};var Ga=rt?Dt(rt):function(e){return Ua(e)&&no(e)==y};function Qa(e){return"string"==typeof e||!Ia(e)&&Ua(e)&&hr(e)==k}function Xa(e){return"symbol"==typeof e||Ua(e)&&hr(e)==w}var Ja=it?Dt(it):function(e){return Ua(e)&&$a(e.length)&&!!ze[hr(e)]};var Za=ji(Sr),es=ji((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Na(e))return Qa(e)?Wt(e):gi(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=no(e);return(t==m?zt:t==y?Ht:Ts)(e)}function ns(e){return e?(e=os(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function is(e){return e?Gn(rs(e),0,4294967295):0}function os(e){if("number"==typeof e)return e;if(Xa(e))return NaN;if(Ha(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ha(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(K,"");var n=oe.test(e);return n||se.test(e)?Ue(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function as(e){return bi(e,ws(e))}function ss(e){return null==e?"":Xr(e)}var cs=ki((function(e,t){if(fo(t)||Na(t))bi(t,ks(t),e);else for(var n in t)Ae.call(t,n)&&Hn(e,n,t[n])})),ls=ki((function(e,t){bi(t,ws(t),e)})),us=ki((function(e,t,n,r){bi(t,ws(t),e,r)})),ds=ki((function(e,t,n,r){bi(t,ks(t),e,r)})),fs=Ui(Kn);var hs=Br((function(e,t){e=me(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&so(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=ws(o),s=-1,c=a.length;++s<c;){var l=a[s],u=e[l];(void 0===u||Ta(u,we[l])&&!Ae.call(e,l))&&(e[l]=o[l])}return e})),ps=Br((function(e){return e.push(void 0,Vi),ot(Cs,void 0,e)}));function ms(e,t,n){var r=null==e?void 0:dr(e,t);return void 0===r?n:r}function vs(e,t){return null!=e&&ro(e,t,vr)}var gs=Ti((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),Hs(Ws)),bs=Ti((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),Ae.call(e,t)?e[t].push(n):e[t]=[n]}),Qi),ys=Br(br);function ks(e){return Na(e)?Bn(e):Ar(e)}function ws(e){return Na(e)?Bn(e,!0):xr(e)}var _s=ki((function(e,t,n){Dr(e,t,n)})),Cs=ki((function(e,t,n,r){Dr(e,t,n,r)})),As=Ui((function(e,t){var n={};if(null==e)return n;var r=!1;t=ht(t,(function(t){return t=si(t,e),r||(r=t.length>1),t})),bi(e,Wi(e),n),r&&(n=Qn(n,7,$i));for(var i=t.length;i--;)Zr(n,t[i]);return n}));var xs=Ui((function(e,t){return null==e?{}:function(e,t){return Ir(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Ss(e,t){if(null==e)return{};var n=ht(Wi(e),(function(e){return[e]}));return t=Qi(t),Ir(e,n,(function(e,n){return t(e,n[0])}))}var Ms=Bi(ks),Es=Bi(ws);function Ts(e){return null==e?[]:Ot(e,ks(e))}var Ds=Ai((function(e,t,n){return t=t.toLowerCase(),e+(n?Os(t):t)}));function Os(e){return Fs(ss(e).toLowerCase())}function Ps(e){return(e=ss(e))&&e.replace(le,Rt).replace(Ie,"")}var Is=Ai((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),js=Ai((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ns=Ci("toLowerCase");var Rs=Ai((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ls=Ai((function(e,t,n){return e+(n?" ":"")+Fs(t)}));var Bs=Ai((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Fs=Ci("toUpperCase");function zs(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Vs=Br((function(e,t){try{return ot(e,void 0,t)}catch(e){return Fa(e)?e:new fe(e)}})),$s=Ui((function(e,t){return st(t,(function(t){t=So(t),Yn(e,t,ba(e[t],e))})),e}));function Hs(e){return function(){return e}}var Us=Mi(),qs=Mi(!0);function Ws(e){return e}function Ys(e){return Cr("function"==typeof e?e:Qn(e,1))}var Ks=Br((function(e,t){return function(n){return br(n,e,t)}})),Gs=Br((function(e,t){return function(n){return br(e,n,t)}}));function Qs(e,t,n){var r=ks(t),i=ur(t,r);null!=n||Ha(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ur(t,ks(t)));var o=!(Ha(n)&&"chain"in n&&!n.chain),a=za(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=gi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Xs(){}var Js=Oi(ht),Zs=Oi(lt),ec=Oi(gt);function tc(e){return co(e)?xt(So(e)):function(e){return function(t){return dr(t,e)}}(e)}var nc=Ii(),rc=Ii(!0);function ic(){return[]}function oc(){return!1}var ac=Di((function(e,t){return e+t}),0),sc=Ri("ceil"),cc=Di((function(e,t){return e/t}),1),lc=Ri("floor");var uc,dc=Di((function(e,t){return e*t}),1),fc=Ri("round"),hc=Di((function(e,t){return e-t}),0);return En.after=function(e,t){if("function"!=typeof t)throw new be(o);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},En.ary=va,En.assign=cs,En.assignIn=ls,En.assignInWith=us,En.assignWith=ds,En.at=fs,En.before=ga,En.bind=ba,En.bindAll=$s,En.bindKey=ya,En.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ia(e)?e:[e]},En.chain=ta,En.chunk=function(e,t,n){t=(n?so(e,t,n):void 0===t)?1:an(rs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Jt(i/t));o<i;)s[a++]=qr(e,o,o+=t);return s},En.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},En.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return pt(Ia(n)?gi(n):[n],or(t,1))},En.cond=function(e){var t=null==e?0:e.length,n=Qi();return e=t?ht(e,(function(e){if("function"!=typeof e[1])throw new be(o);return[n(e[0]),e[1]]})):[],Br((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},En.conforms=function(e){return function(e){var t=ks(e);return function(n){return Xn(n,e,t)}}(Qn(e,1))},En.constant=Hs,En.countBy=ia,En.create=function(e,t){var n=Tn(e);return null==t?n:Wn(n,t)},En.curry=function e(t,n,r){var i=Fi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},En.curryRight=function e(t,n,r){var i=Fi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},En.debounce=ka,En.defaults=hs,En.defaultsDeep=ps,En.defer=wa,En.delay=_a,En.difference=To,En.differenceBy=Do,En.differenceWith=Oo,En.drop=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=n||void 0===t?1:rs(t))<0?0:t,r):[]},En.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,0,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t):[]},En.dropRightWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!0,!0):[]},En.dropWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!0):[]},En.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&so(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=rs(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},En.filter=function(e,t){return(Ia(e)?ut:ir)(e,Qi(t,3))},En.flatMap=function(e,t){return or(fa(e,t),1)},En.flatMapDeep=function(e,t){return or(fa(e,t),1/0)},En.flatMapDepth=function(e,t,n){return n=void 0===n?1:rs(n),or(fa(e,t),n)},En.flatten=jo,En.flattenDeep=function(e){return(null==e?0:e.length)?or(e,1/0):[]},En.flattenDepth=function(e,t){return(null==e?0:e.length)?or(e,t=void 0===t?1:rs(t)):[]},En.flip=function(e){return Fi(e,512)},En.flow=Us,En.flowRight=qs,En.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},En.functions=function(e){return null==e?[]:ur(e,ks(e))},En.functionsIn=function(e){return null==e?[]:ur(e,ws(e))},En.groupBy=la,En.initial=function(e){return(null==e?0:e.length)?qr(e,0,-1):[]},En.intersection=Ro,En.intersectionBy=Lo,En.intersectionWith=Bo,En.invert=gs,En.invertBy=bs,En.invokeMap=ua,En.iteratee=Ys,En.keyBy=da,En.keys=ks,En.keysIn=ws,En.map=fa,En.mapKeys=function(e,t){var n={};return t=Qi(t,3),cr(e,(function(e,r,i){Yn(n,t(e,r,i),e)})),n},En.mapValues=function(e,t){var n={};return t=Qi(t,3),cr(e,(function(e,r,i){Yn(n,r,t(e,r,i))})),n},En.matches=function(e){return Er(Qn(e,1))},En.matchesProperty=function(e,t){return Tr(e,Qn(t,1))},En.memoize=Ca,En.merge=_s,En.mergeWith=Cs,En.method=Ks,En.methodOf=Gs,En.mixin=Qs,En.negate=Aa,En.nthArg=function(e){return e=rs(e),Br((function(t){return Or(t,e)}))},En.omit=As,En.omitBy=function(e,t){return Ss(e,Aa(Qi(t)))},En.once=function(e){return ga(2,e)},En.orderBy=function(e,t,n,r){return null==e?[]:(Ia(t)||(t=null==t?[]:[t]),Ia(n=r?void 0:n)||(n=null==n?[]:[n]),Pr(e,t,n))},En.over=Js,En.overArgs=xa,En.overEvery=Zs,En.overSome=ec,En.partial=Sa,En.partialRight=Ma,En.partition=ha,En.pick=xs,En.pickBy=Ss,En.property=tc,En.propertyOf=function(e){return function(t){return null==e?void 0:dr(e,t)}},En.pull=zo,En.pullAll=Vo,En.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?jr(e,t,Qi(n,2)):e},En.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?jr(e,t,void 0,n):e},En.pullAt=$o,En.range=nc,En.rangeRight=rc,En.rearg=Ea,En.reject=function(e,t){return(Ia(e)?ut:ir)(e,Aa(Qi(t,3)))},En.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Qi(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Nr(e,i),n},En.rest=function(e,t){if("function"!=typeof e)throw new be(o);return Br(e,t=void 0===t?t:rs(t))},En.reverse=Ho,En.sampleSize=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),(Ia(e)?zn:zr)(e,t)},En.set=function(e,t,n){return null==e?e:Vr(e,t,n)},En.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Vr(e,t,n,r)},En.shuffle=function(e){return(Ia(e)?Vn:Ur)(e)},En.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&so(e,t,n)?(t=0,n=r):(t=null==t?0:rs(t),n=void 0===n?r:rs(n)),qr(e,t,n)):[]},En.sortBy=pa,En.sortedUniq=function(e){return e&&e.length?Gr(e):[]},En.sortedUniqBy=function(e,t){return e&&e.length?Gr(e,Qi(t,2)):[]},En.split=function(e,t,n){return n&&"number"!=typeof n&&so(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Ka(t))&&!(t=Xr(t))&&Ft(e)?li(Wt(e),0,n):e.split(t,n):[]},En.spread=function(e,t){if("function"!=typeof e)throw new be(o);return t=null==t?0:an(rs(t),0),Br((function(n){var r=n[t],i=li(n,0,t);return r&&pt(i,r),ot(e,this,i)}))},En.tail=function(e){var t=null==e?0:e.length;return t?qr(e,1,t):[]},En.take=function(e,t,n){return e&&e.length?qr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},En.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},En.takeRightWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!1,!0):[]},En.takeWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3)):[]},En.tap=function(e,t){return t(e),e},En.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new be(o);return Ha(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ka(e,t,{leading:r,maxWait:t,trailing:i})},En.thru=na,En.toArray=ts,En.toPairs=Ms,En.toPairsIn=Es,En.toPath=function(e){return Ia(e)?ht(e,So):Xa(e)?[e]:gi(xo(ss(e)))},En.toPlainObject=as,En.transform=function(e,t,n){var r=Ia(e),i=r||La(e)||Ja(e);if(t=Qi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ha(e)&&za(o)?Tn(qe(e)):{}}return(i?st:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},En.unary=function(e){return va(e,1)},En.union=Uo,En.unionBy=qo,En.unionWith=Wo,En.uniq=function(e){return e&&e.length?Jr(e):[]},En.uniqBy=function(e,t){return e&&e.length?Jr(e,Qi(t,2)):[]},En.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Jr(e,void 0,t):[]},En.unset=function(e,t){return null==e||Zr(e,t)},En.unzip=Yo,En.unzipWith=Ko,En.update=function(e,t,n){return null==e?e:ei(e,t,ai(n))},En.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ei(e,t,ai(n),r)},En.values=Ts,En.valuesIn=function(e){return null==e?[]:Ot(e,ws(e))},En.without=Go,En.words=zs,En.wrap=function(e,t){return Sa(ai(t),e)},En.xor=Qo,En.xorBy=Xo,En.xorWith=Jo,En.zip=Zo,En.zipObject=function(e,t){return ii(e||[],t||[],Hn)},En.zipObjectDeep=function(e,t){return ii(e||[],t||[],Vr)},En.zipWith=ea,En.entries=Ms,En.entriesIn=Es,En.extend=ls,En.extendWith=us,Qs(En,En),En.add=ac,En.attempt=Vs,En.camelCase=Ds,En.capitalize=Os,En.ceil=sc,En.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==t&&(t=(t=os(t))==t?t:0),Gn(os(e),t,n)},En.clone=function(e){return Qn(e,4)},En.cloneDeep=function(e){return Qn(e,5)},En.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},En.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},En.conformsTo=function(e,t){return null==t||Xn(e,t,ks(t))},En.deburr=Ps,En.defaultTo=function(e,t){return null==e||e!=e?t:e},En.divide=cc,En.endsWith=function(e,t,n){e=ss(e),t=Xr(t);var r=e.length,i=n=void 0===n?r:Gn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},En.eq=Ta,En.escape=function(e){return(e=ss(e))&&F.test(e)?e.replace(L,Lt):e},En.escapeRegExp=function(e){return(e=ss(e))&&Y.test(e)?e.replace(W,"\\$&"):e},En.every=function(e,t,n){var r=Ia(e)?lt:nr;return n&&so(e,t,n)&&(t=void 0),r(e,Qi(t,3))},En.find=oa,En.findIndex=Po,En.findKey=function(e,t){return yt(e,Qi(t,3),cr)},En.findLast=aa,En.findLastIndex=Io,En.findLastKey=function(e,t){return yt(e,Qi(t,3),lr)},En.floor=lc,En.forEach=sa,En.forEachRight=ca,En.forIn=function(e,t){return null==e?e:ar(e,Qi(t,3),ws)},En.forInRight=function(e,t){return null==e?e:sr(e,Qi(t,3),ws)},En.forOwn=function(e,t){return e&&cr(e,Qi(t,3))},En.forOwnRight=function(e,t){return e&&lr(e,Qi(t,3))},En.get=ms,En.gt=Da,En.gte=Oa,En.has=function(e,t){return null!=e&&ro(e,t,mr)},En.hasIn=vs,En.head=No,En.identity=Ws,En.includes=function(e,t,n,r){e=Na(e)?e:Ts(e),n=n&&!r?rs(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Qa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},En.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),wt(e,t,i)},En.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<an(t,n)}(e=os(e),t,n)},En.invoke=ys,En.isArguments=Pa,En.isArray=Ia,En.isArrayBuffer=ja,En.isArrayLike=Na,En.isArrayLikeObject=Ra,En.isBoolean=function(e){return!0===e||!1===e||Ua(e)&&hr(e)==u},En.isBuffer=La,En.isDate=Ba,En.isElement=function(e){return Ua(e)&&1===e.nodeType&&!Ya(e)},En.isEmpty=function(e){if(null==e)return!0;if(Na(e)&&(Ia(e)||"string"==typeof e||"function"==typeof e.splice||La(e)||Ja(e)||Pa(e)))return!e.length;var t=no(e);if(t==m||t==y)return!e.size;if(fo(e))return!Ar(e).length;for(var n in e)if(Ae.call(e,n))return!1;return!0},En.isEqual=function(e,t){return kr(e,t)},En.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?kr(e,t,void 0,n):!!r},En.isError=Fa,En.isFinite=function(e){return"number"==typeof e&&nn(e)},En.isFunction=za,En.isInteger=Va,En.isLength=$a,En.isMap=qa,En.isMatch=function(e,t){return e===t||wr(e,t,Ji(t))},En.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,wr(e,t,Ji(t),n)},En.isNaN=function(e){return Wa(e)&&e!=+e},En.isNative=function(e){if(uo(e))throw new fe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return _r(e)},En.isNil=function(e){return null==e},En.isNull=function(e){return null===e},En.isNumber=Wa,En.isObject=Ha,En.isObjectLike=Ua,En.isPlainObject=Ya,En.isRegExp=Ka,En.isSafeInteger=function(e){return Va(e)&&e>=-9007199254740991&&e<=9007199254740991},En.isSet=Ga,En.isString=Qa,En.isSymbol=Xa,En.isTypedArray=Ja,En.isUndefined=function(e){return void 0===e},En.isWeakMap=function(e){return Ua(e)&&no(e)==_},En.isWeakSet=function(e){return Ua(e)&&"[object WeakSet]"==hr(e)},En.join=function(e,t){return null==e?"":rn.call(e,t)},En.kebabCase=Is,En.last=Fo,En.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?an(r+i,0):sn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):kt(e,Ct,i,!0)},En.lowerCase=js,En.lowerFirst=Ns,En.lt=Za,En.lte=es,En.max=function(e){return e&&e.length?rr(e,Ws,pr):void 0},En.maxBy=function(e,t){return e&&e.length?rr(e,Qi(t,2),pr):void 0},En.mean=function(e){return At(e,Ws)},En.meanBy=function(e,t){return At(e,Qi(t,2))},En.min=function(e){return e&&e.length?rr(e,Ws,Sr):void 0},En.minBy=function(e,t){return e&&e.length?rr(e,Qi(t,2),Sr):void 0},En.stubArray=ic,En.stubFalse=oc,En.stubObject=function(){return{}},En.stubString=function(){return""},En.stubTrue=function(){return!0},En.multiply=dc,En.nth=function(e,t){return e&&e.length?Or(e,rs(t)):void 0},En.noConflict=function(){return Ye._===this&&(Ye._=Te),this},En.noop=Xs,En.now=ma,En.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?qt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Pi(Zt(i),n)+e+Pi(Jt(i),n)},En.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?qt(e):0;return t&&r<t?e+Pi(t-r,n):e},En.padStart=function(e,t,n){e=ss(e);var r=(t=rs(t))?qt(e):0;return t&&r<t?Pi(t-r,n)+e:e},En.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ln(ss(e).replace(G,""),t||0)},En.random=function(e,t,n){if(n&&"boolean"!=typeof n&&so(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=un();return sn(e+i*(t-e+He("1e-"+((i+"").length-1))),t)}return Rr(e,t)},En.reduce=function(e,t,n){var r=Ia(e)?mt:Mt,i=arguments.length<3;return r(e,Qi(t,4),n,i,er)},En.reduceRight=function(e,t,n){var r=Ia(e)?vt:Mt,i=arguments.length<3;return r(e,Qi(t,4),n,i,tr)},En.repeat=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),Lr(ss(e),t)},En.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},En.result=function(e,t,n){var r=-1,i=(t=si(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[So(t[r])];void 0===o&&(r=i,o=n),e=za(o)?o.call(e):o}return e},En.round=fc,En.runInContext=e,En.sample=function(e){return(Ia(e)?Fn:Fr)(e)},En.size=function(e){if(null==e)return 0;if(Na(e))return Qa(e)?qt(e):e.length;var t=no(e);return t==m||t==y?e.size:Ar(e).length},En.snakeCase=Rs,En.some=function(e,t,n){var r=Ia(e)?gt:Wr;return n&&so(e,t,n)&&(t=void 0),r(e,Qi(t,3))},En.sortedIndex=function(e,t){return Yr(e,t)},En.sortedIndexBy=function(e,t,n){return Kr(e,t,Qi(n,2))},En.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Yr(e,t);if(r<n&&Ta(e[r],t))return r}return-1},En.sortedLastIndex=function(e,t){return Yr(e,t,!0)},En.sortedLastIndexBy=function(e,t,n){return Kr(e,t,Qi(n,2),!0)},En.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Yr(e,t,!0)-1;if(Ta(e[n],t))return n}return-1},En.startCase=Ls,En.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:Gn(rs(n),0,e.length),t=Xr(t),e.slice(n,n+t.length)==t},En.subtract=hc,En.sum=function(e){return e&&e.length?Et(e,Ws):0},En.sumBy=function(e,t){return e&&e.length?Et(e,Qi(t,2)):0},En.template=function(e,t,n){var r=En.templateSettings;n&&so(e,t,n)&&(t=void 0),e=ss(e),t=us({},t,r,zi);var i,o,a=us({},t.imports,r.imports,zi),s=ks(a),c=Ot(a,s),l=0,u=t.interpolate||ue,d="__p += '",f=ve((t.escape||ue).source+"|"+u.source+"|"+(u===$?ne:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),h="//# sourceURL="+(Ae.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fe+"]")+"\n";e.replace(f,(function(t,n,r,a,s,c){return r||(r=a),d+=e.slice(l,c).replace(de,Bt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),d+="';\n";var p=Ae.call(t,"variable")&&t.variable;p||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(I,""):d).replace(j,"$1").replace(N,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Vs((function(){return he(s,h+"return "+d).apply(void 0,c)}));if(m.source=d,Fa(m))throw m;return m},En.times=function(e,t){if((e=rs(e))<1||e>9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var i=Tt(r,t=Qi(t));++n<e;)t(n);return i},En.toFinite=ns,En.toInteger=rs,En.toLength=is,En.toLower=function(e){return ss(e).toLowerCase()},En.toNumber=os,En.toSafeInteger=function(e){return e?Gn(rs(e),-9007199254740991,9007199254740991):0===e?e:0},En.toString=ss,En.toUpper=function(e){return ss(e).toUpperCase()},En.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(K,"");if(!e||!(t=Xr(t)))return e;var r=Wt(e),i=Wt(t);return li(r,It(r,i),jt(r,i)+1).join("")},En.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(Q,"");if(!e||!(t=Xr(t)))return e;var r=Wt(e);return li(r,0,jt(r,Wt(t))+1).join("")},En.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Xr(t)))return e;var r=Wt(e);return li(r,It(r,Wt(t))).join("")},En.truncate=function(e,t){var n=30,r="...";if(Ha(t)){var i="separator"in t?t.separator:i;n="length"in t?rs(t.length):n,r="omission"in t?Xr(t.omission):r}var o=(e=ss(e)).length;if(Ft(e)){var a=Wt(e);o=a.length}if(n>=o)return e;var s=n-qt(r);if(s<1)return r;var c=a?li(a,0,s).join(""):e.slice(0,s);if(void 0===i)return c+r;if(a&&(s+=c.length-s),Ka(i)){if(e.slice(s).search(i)){var l,u=c;for(i.global||(i=ve(i.source,ss(re.exec(i))+"g")),i.lastIndex=0;l=i.exec(u);)var d=l.index;c=c.slice(0,void 0===d?s:d)}}else if(e.indexOf(Xr(i),s)!=s){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r},En.unescape=function(e){return(e=ss(e))&&B.test(e)?e.replace(R,Yt):e},En.uniqueId=function(e){var t=++xe;return ss(e)+t},En.upperCase=Bs,En.upperFirst=Fs,En.each=sa,En.eachRight=ca,En.first=No,Qs(En,(uc={},cr(En,(function(e,t){Ae.call(En.prototype,t)||(uc[t]=e)})),uc),{chain:!1}),En.VERSION="4.17.20",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){En[e].placeholder=En})),st(["drop","take"],(function(e,t){Pn.prototype[e]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!t?new Pn(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Pn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Pn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Pn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Pn.prototype[e]=function(){return this.__filtered__?new Pn(this):this[n](1)}})),Pn.prototype.compact=function(){return this.filter(Ws)},Pn.prototype.find=function(e){return this.filter(e).head()},Pn.prototype.findLast=function(e){return this.reverse().find(e)},Pn.prototype.invokeMap=Br((function(e,t){return"function"==typeof e?new Pn(this):this.map((function(n){return br(n,e,t)}))})),Pn.prototype.reject=function(e){return this.filter(Aa(Qi(e)))},Pn.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Pn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Pn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pn.prototype.toArray=function(){return this.take(4294967295)},cr(Pn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=En[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(En.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Pn,c=a[0],l=s||Ia(t),u=function(e){var t=i.apply(En,pt([e],a));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var d=this.__chain__,f=!!this.__actions__.length,h=o&&!d,p=s&&!f;if(!o&&l){t=p?t:new Pn(this);var m=e.apply(t,a);return m.__actions__.push({func:na,args:[u],thisArg:void 0}),new On(m,d)}return h&&p?e.apply(this,a):(m=this.thru(u),h?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);En.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ia(i)?i:[],e)}return this[n]((function(n){return t.apply(Ia(n)?n:[],e)}))}})),cr(Pn.prototype,(function(e,t){var n=En[t];if(n){var r=n.name+"";Ae.call(yn,r)||(yn[r]=[]),yn[r].push({name:t,func:n})}})),yn[Ei(void 0,2).name]=[{name:"wrapper",func:void 0}],Pn.prototype.clone=function(){var e=new Pn(this.__wrapped__);return e.__actions__=gi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=gi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=gi(this.__views__),e},Pn.prototype.reverse=function(){if(this.__filtered__){var e=new Pn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Pn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ia(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=sn(t,e+a);break;case"takeRight":e=an(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,c=s-a,l=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,h=sn(c,this.__takeCount__);if(!n||!r&&i==c&&h==c)return ni(e,this.__actions__);var p=[];e:for(;c--&&f<h;){for(var m=-1,v=e[l+=t];++m<d;){var g=u[m],b=g.iteratee,y=g.type,k=b(v);if(2==y)v=k;else if(!k){if(1==y)continue e;break e}}p[f++]=v}return p},En.prototype.at=ra,En.prototype.chain=function(){return ta(this)},En.prototype.commit=function(){return new On(this.value(),this.__chain__)},En.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},En.prototype.plant=function(e){for(var t,n=this;n instanceof Dn;){var r=Eo(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},En.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Pn){var t=e;return this.__actions__.length&&(t=new Pn(this)),(t=t.reverse()).__actions__.push({func:na,args:[Ho],thisArg:void 0}),new On(t,this.__chain__)}return this.thru(Ho)},En.prototype.toJSON=En.prototype.valueOf=En.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},En.prototype.first=En.prototype.head,Je&&(En.prototype[Je]=function(){return this}),En}();Ye._=Kt,void 0===(i=function(){return Kt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(7),n(42)(e))},function(e,t,n){var r;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,c=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},l=o.push,u=o.indexOf,d={},f=d.toString,h=d.hasOwnProperty,p=h.toString,m=p.call(Object),v={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},y=n.document,k={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||y).createElement("script");if(o.text=e,t)for(r in k)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var C=function(e,t){return new C.fn.init(e,t)};function A(e){var t=!!e&&"length"in e&&e.length,n=_(e);return!g(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:"3.5.1",constructor:C,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(C.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:o.sort,splice:o.splice},C.extend=C.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(C.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||C.isPlainObject(n)?n:{},i=!1,a[t]=C.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},C.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=a(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&p.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(A(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(A(Object(e))?C.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(A(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return c(a)},guid:1,support:v}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=o[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var x=function(e){var t,n,r,i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k="sizzle"+1*new Date,w=e.document,_=0,C=0,A=ce(),x=ce(),S=ce(),M=ce(),E=function(e,t){return e===t&&(d=!0),0},T={}.hasOwnProperty,D=[],O=D.pop,P=D.push,I=D.push,j=D.slice,N=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\["+L+"*("+B+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+L+"*\\]",z=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",V=new RegExp(L+"+","g"),$=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),H=new RegExp("^"+L+"*,"+L+"*"),U=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),q=new RegExp(L+"|>"),W=new RegExp(z),Y=new RegExp("^"+B+"$"),K={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){f()},ae=ke((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{I.apply(D=j.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(e){I={apply:D.length?function(e,t){P.apply(e,j.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,u,d,p,g,b=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(f(t),t=t||h,m)){if(11!==w&&(d=Z.exec(e)))if(o=d[1]){if(9===w){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(b&&(l=b.getElementById(o))&&y(t,l)&&l.id===o)return r.push(l),r}else{if(d[2])return I.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return I.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!M[e+" "]&&(!v||!v.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(g=e,b=t,1===w&&(q.test(e)||U.test(e))){for((b=ee.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=k)),s=(p=a(e)).length;s--;)p[s]=(u?"#"+u:":scope")+" "+ye(p[s]);g=p.join(",")}try{return I.apply(r,b.querySelectorAll(g)),r}catch(t){M(e,!0)}finally{u===k&&t.removeAttribute("id")}}}return c(e.replace($,"$1"),t,r,i)}function ce(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[k]=!0,e}function ue(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=h&&9===a.nodeType&&a.documentElement?(p=(h=a).documentElement,m=!o(h),w!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ue((function(e){return p.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=k,!h.getElementsByName||!h.getElementsByName(k).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},g=[],v=[],(n.qsa=J.test(h.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+L+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+L+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=J.test(b=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),g.push("!=",z)})),v=v.length&&new RegExp(v.join("|")),g=g.length&&new RegExp(g.join("|")),t=J.test(p.compareDocumentPosition),y=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==w&&y(w,e)?-1:t==h||t.ownerDocument==w&&y(w,t)?1:u?N(u,e)-N(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==h?-1:t==h?1:i?-1:o?1:u?N(u,e)-N(u,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&m&&!M[t+" "]&&(!g||!g.test(t))&&(!v||!v.test(t)))try{var r=b.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){M(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&f(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&f(e);var i=r.attrHandle[t.toLowerCase()],o=i&&T.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(E),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return u=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=A[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&A(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(V," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,f,h,p,m=o!==a?"nextSibling":"previousSibling",v=t.parentNode,g=s&&t.nodeName.toLowerCase(),b=!c&&!s,y=!1;if(v){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===g:1===f.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&b){for(y=(h=(l=(u=(d=(f=v)[k]||(f[k]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===_&&l[1])&&l[2],f=h&&v.childNodes[h];f=++h&&f&&f[m]||(y=h=0)||p.pop();)if(1===f.nodeType&&++y&&f===t){u[e]=[_,h,y];break}}else if(b&&(y=h=(l=(u=(d=(f=t)[k]||(f[k]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===_&&l[1]),!1===y)for(;(f=++h&&f&&f[m]||(y=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++y||(b&&((u=(d=f[k]||(f[k]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[_,y]),f!==t)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[k]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=N(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace($,"$1"));return r[k]?le((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return se(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:le((function(e){return Y.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ve((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function be(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ke(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,c){var l,u,d,f=[_,s];if(c){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(d=t[k]||(t[k]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=u[o])&&l[0]===_&&l[1]===s)return f[2]=l[2];if(u[o]=f,f[2]=e(t,n,c))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function _e(e,t,n,r,i){for(var o,a=[],s=0,c=e.length,l=null!=t;s<c;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(e,t,n,r,i,o){return r&&!r[k]&&(r=Ce(r)),i&&!i[k]&&(i=Ce(i,o)),le((function(o,a,s,c){var l,u,d,f=[],h=[],p=a.length,m=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?m:_e(m,f,e,s,c),g=n?i||(o?e:p||r)?[]:a:v;if(n&&n(v,g,s,c),r)for(l=_e(g,h),r(l,[],s,c),u=l.length;u--;)(d=l[u])&&(g[h[u]]=!(v[h[u]]=d));if(o){if(i||e){if(i){for(l=[],u=g.length;u--;)(d=g[u])&&l.push(v[u]=d);i(null,g=[],l,c)}for(u=g.length;u--;)(d=g[u])&&(l=i?N(o,d):f[u])>-1&&(o[l]=!(a[l]=d))}}else g=_e(g===a?g.splice(p,g.length):g),i?i(null,a,g,c):I.apply(a,g)}))}function Ae(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],c=a?1:0,u=ke((function(e){return e===t}),s,!0),d=ke((function(e){return N(t,e)>-1}),s,!0),f=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,i}];c<o;c++)if(n=r.relative[e[c].type])f=[ke(we(f),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[k]){for(i=++c;i<o&&!r.relative[e[i].type];i++);return Ce(c>1&&we(f),c>1&&ye(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace($,"$1"),n,c<i&&Ae(e.slice(c,i)),i<o&&Ae(e=e.slice(i)),i<o&&ye(e))}f.push(n)}return we(f)}return be.prototype=r.filters=r.pseudos,r.setFilters=new be,a=se.tokenize=function(e,t){var n,i,o,a,s,c,l,u=x[e+" "];if(u)return t?0:u.slice(0);for(s=e,c=[],l=r.preFilter;s;){for(a in n&&!(i=H.exec(s))||(i&&(s=s.slice(i[0].length)||s),c.push(o=[])),n=!1,(i=U.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace($," ")}),s=s.slice(n.length)),r.filter)!(i=K[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):x(e,c).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ae(t[n]))[k]?i.push(s):o.push(s);(s=S(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,c,u){var d,p,v,g=0,b="0",y=o&&[],k=[],w=l,C=o||i&&r.find.TAG("*",u),A=_+=null==w?1:Math.random()||.1,x=C.length;for(u&&(l=a==h||a||u);b!==x&&null!=(d=C[b]);b++){if(i&&d){for(p=0,a||d.ownerDocument==h||(f(d),s=!m);v=e[p++];)if(v(d,a||h,s)){c.push(d);break}u&&(_=A)}n&&((d=!v&&d)&&g--,o&&y.push(d))}if(g+=b,n&&b!==g){for(p=0;v=t[p++];)v(y,k,a,s);if(o){if(g>0)for(;b--;)y[b]||k[b]||(k[b]=O.call(c));k=_e(k)}I.apply(c,k),u&&!o&&k.length>0&&g+t.length>1&&se.uniqueSort(c)}return u&&(_=A,l=w),y};return n?le(o):o}(o,i))).selector=e}return s},c=se.select=function(e,t,n,i){var o,c,l,u,d,f="function"==typeof e&&e,h=!i&&a(e=f.selector||e);if(n=n||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&m&&r.relative[c[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(o=K.needsContext.test(e)?0:c.length;o--&&(l=c[o],!r.relative[u=l.type]);)if((d=r.find[u])&&(i=d(l.matches[0].replace(te,ne),ee.test(c[0].type)&&ge(t.parentNode)||t))){if(c.splice(o,1),!(e=i.length&&ye(c)))return I.apply(n,i),n;break}}return(f||s(e,h))(i,t,!m,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=k.split("").sort(E).join("")===k,n.detectDuplicates=!!d,f(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);C.find=x,C.expr=x.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=x.uniqueSort,C.text=x.getText,C.isXMLDoc=x.isXML,C.contains=x.contains,C.escapeSelector=x.escape;var S=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&C(e).is(n))break;r.push(e)}return r},M=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},E=C.expr.match.needsContext;function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,t,n){return g(t)?C.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?C.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?C.grep(e,(function(e){return u.call(t,e)>-1!==n})):C.filter(t,e,n)}C.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?C.find.matchesSelector(r,e)?[r]:[]:C.find.matches(e,C.grep(t,(function(e){return 1===e.nodeType})))},C.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(C(e).filter((function(){for(t=0;t<r;t++)if(C.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)C.find(e,i[t],n);return r>1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,"string"==typeof e&&E.test(e)?C(e):e||[],!1).length}});var P,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||P,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:I.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),D.test(r[1])&&C.isPlainObject(t))for(r in t)g(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=y.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,P=C(y);var j=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&C(e);if(!E.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?C.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(C(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return M((e.parentNode||{}).firstChild,e)},children:function(e){return M(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(T(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},(function(e,t){C.fn[e]=function(n,r){var i=C.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=C.filter(r,i)),this.length>1&&(N[e]||C.uniqueSort(i),j.test(e)&&i.reverse()),this.pushStack(i)}}));var L=/[^\x20\t\r\n\f]+/g;function B(e){return e}function F(e){throw e}function z(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(L)||[],(function(e,n){t[n]=!0})),t}(e):C.extend({},e);var t,n,r,i,o=[],a=[],s=-1,c=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){C.each(n,(function(n,r){g(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==_(r)&&t(r)}))}(arguments),n&&!t&&c()),this},remove:function(){return C.each(arguments,(function(e,t){for(var n;(n=C.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?C.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return C.Deferred((function(n){C.each(t,(function(t,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var o=0;function a(e,t,r,i){return function(){var s=this,c=arguments,l=function(){var n,l;if(!(e<o)){if((n=r.apply(s,c))===t.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,g(l)?i?l.call(n,a(o,t,B,i),a(o,t,F,i)):(o++,l.call(n,a(o,t,B,i),a(o,t,F,i),a(o,t,B,t.notifyWith))):(r!==B&&(s=void 0,c=[n]),(i||t.resolveWith)(s,c))}},u=i?l:function(){try{l()}catch(n){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(n,u.stackTrace),e+1>=o&&(r!==F&&(s=void 0,c=[n]),t.rejectWith(s,c))}};e?u():(C.Deferred.getStackHook&&(u.stackTrace=C.Deferred.getStackHook()),n.setTimeout(u))}}return C.Deferred((function(n){t[0][3].add(a(0,n,g(i)?i:B,n.notifyWith)),t[1][3].add(a(0,n,g(e)?e:B)),t[2][3].add(a(0,n,g(r)?r:F))})).promise()},promise:function(e){return null!=e?C.extend(e,i):i}},o={};return C.each(t,(function(e,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=C.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(z(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||g(i[n]&&i[n].then)))return o.then();for(;n--;)z(i[n],a(n),o.reject);return o.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&V.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){n.setTimeout((function(){throw e}))};var $=C.Deferred();function H(){y.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),C.ready()}C.fn.ready=function(e){return $.then(e).catch((function(e){C.readyException(e)})),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||$.resolveWith(y,[C]))}}),C.ready.then=$.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(C.ready):(y.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var U=function(e,t,n,r,i,o,a){var s=0,c=e.length,l=null==n;if("object"===_(n))for(s in i=!0,n)U(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(C(e),n)})),t))for(;s<c;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):c?t(e[0],n):o},q=/^-ms-/,W=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function K(e){return e.replace(q,"ms-").replace(W,Y)}var G=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=C.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[K(t)]=n;else for(r in t)i[K(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in r?[t]:t.match(L)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||C.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var X=new Q,J=new Q,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return J.hasData(e)||X.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),C.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=J.get(o),1===o.nodeType&&!X.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=K(r.slice(5)),te(o,r,i[r]));X.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){J.set(this,e)})):U(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=J.get(o,e))||void 0!==(n=te(o,e))?n:void 0;this.each((function(){J.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),C.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=X.get(e,t),n&&(!r||Array.isArray(n)?r=X.access(e,t,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),r=n.length,i=n.shift(),o=C._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){C.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:C.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",n])}))})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?C.queue(this[0],e):void 0===t?this:this.each((function(){var n=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&C.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){C.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=C.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=X.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],oe=y.documentElement,ae=function(e){return C.contains(e.ownerDocument,e)},se={composed:!0};oe.getRootNode&&(ae=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===C.css(e,"display")};function le(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return C.css(e,t,"")},c=s(),l=n&&n[3]||(C.cssNumber[t]?"":"px"),u=e.nodeType&&(C.cssNumber[t]||"px"!==l&&+c)&&re.exec(C.css(e,t));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;a--;)C.style(e,t,u+l),(1-o)*(1-(o=s()/c||.5))<=0&&(a=0),u/=o;u*=2,C.style(e,t,u+l),n=n||[]}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}var ue={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,i=ue[r];return i||(t=n.body.appendChild(n.createElement(r)),i=C.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ue[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=X.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ce(r)&&(i[o]=de(r))):"none"!==n&&(i[o]="none",X.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}C.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?C(this).show():C(this).hide()}))}});var he,pe,me=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;he=y.createDocumentFragment().appendChild(y.createElement("div")),(pe=y.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),he.appendChild(pe),v.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",v.option=!!he.lastChild;var be={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ye(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?C.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n<r;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,v.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);var we=/<|&#?\w+;/;function _e(e,t,n,r,i){for(var o,a,s,c,l,u,d=t.createDocumentFragment(),f=[],h=0,p=e.length;h<p;h++)if((o=e[h])||0===o)if("object"===_(o))C.merge(f,o.nodeType?[o]:o);else if(we.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(ve.exec(o)||["",""])[1].toLowerCase(),c=be[s]||be._default,a.innerHTML=c[1]+C.htmlPrefilter(o)+c[2],u=c[0];u--;)a=a.lastChild;C.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",h=0;o=f[h++];)if(r&&C.inArray(o,r)>-1)i&&i.push(o);else if(l=ae(o),a=ye(d.appendChild(o),"script"),l&&ke(a),n)for(u=0;o=a[u++];)ge.test(o.type||"")&&n.push(o);return d}var Ce=/^key/,Ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xe=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function Me(){return!1}function Ee(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Te(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Me;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return C().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=C.guid++)),e.each((function(){C.event.add(this,t,i,r,n)}))}function De(e,t,n){n?(X.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=X.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),X.set(this,t,o),r=n(this,t),this[t](),o!==(i=X.get(this,t))||r?X.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(X.set(this,t,{value:C.event.trigger(C.extend(o[0],C.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&C.event.add(e,t,Se)}C.event={global:{},add:function(e,t,n,r,i){var o,a,s,c,l,u,d,f,h,p,m,v=X.get(e);if(G(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&C.find.matchesSelector(oe,i),n.guid||(n.guid=C.guid++),(c=v.events)||(c=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(L)||[""]).length;l--;)h=m=(s=xe.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),h&&(d=C.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=C.event.special[h]||{},u=C.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:p.join(".")},o),(f=c[h])||((f=c[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u),C.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,a,s,c,l,u,d,f,h,p,m,v=X.hasData(e)&&X.get(e);if(v&&(c=v.events)){for(l=(t=(t||"").match(L)||[""]).length;l--;)if(h=m=(s=xe.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),h){for(d=C.event.special[h]||{},f=c[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)u=f[o],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(o,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,p,v.handle)||C.removeEvent(e,h,v.handle),delete c[h])}else for(h in c)C.event.remove(e,h+t[l],n,r,!0);C.isEmptyObject(c)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),c=C.event.fix(e),l=(X.get(this,"events")||Object.create(null))[c.type]||[],u=C.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,c)){for(a=C.event.handlers.call(this,c,l),t=0;(i=a[t++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==o.namespace&&!c.rnamespace.test(o.namespace)||(c.handleObj=o,c.data=o.data,void 0!==(r=((C.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,i,o,a,s=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<c;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?C(i,this).index(l)>-1:C.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&T(t,"input")&&De(t,"click",Se),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&T(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&T(t,"input")&&X.get(t,"click")||T(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Se:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Se,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Se,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Se,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ce.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ae.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},(function(e,t){C.event.special[e]={setup:function(){return De(this,e,Ee),!1},trigger:function(){return De(this,e),!0},delegateType:t}})),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||C.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),C.fn.extend({on:function(e,t,n,r){return Te(this,e,t,n,r)},one:function(e,t,n,r){return Te(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,C(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each((function(){C.event.remove(this,e,n,t)}))}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(i in X.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)C.event.add(t,i,s[i][n]);J.hasData(e)&&(o=J.access(e),a=C.extend({},o),J.set(t,a))}}function Be(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Fe(e,t,n,r){t=c(t);var i,o,a,s,l,u,d=0,f=e.length,h=f-1,p=t[0],m=g(p);if(m||f>1&&"string"==typeof p&&!v.checkClone&&Pe.test(p))return e.each((function(i){var o=e.eq(i);m&&(t[0]=p.call(this,i,o.html())),Fe(o,t,n,r)}));if(f&&(o=(i=_e(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=C.map(ye(i,"script"),Ne)).length;d<f;d++)l=i,d!==h&&(l=C.clone(l,!0,!0),s&&C.merge(a,ye(l,"script"))),n.call(e[d],l,d);if(s)for(u=a[a.length-1].ownerDocument,C.map(a,Re),d=0;d<s;d++)l=a[d],ge.test(l.type||"")&&!X.access(l,"globalEval")&&C.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&!l.noModule&&C._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):w(l.textContent.replace(Ie,""),l,u))}return e}function ze(e,t,n){for(var r,i=t?C.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||C.cleanData(ye(r)),r.parentNode&&(n&&ae(r)&&ke(ye(r,"script")),r.parentNode.removeChild(r));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),c=ae(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(a=ye(s),r=0,i=(o=ye(e)).length;r<i;r++)Be(o[r],a[r]);if(t)if(n)for(o=o||ye(e),a=a||ye(s),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,s);return(a=ye(s,"script")).length>0&&ke(a,!c&&ye(e,"script")),s},cleanData:function(e){for(var t,n,r,i=C.event.special,o=0;void 0!==(n=e[o]);o++)if(G(n)){if(t=n[X.expando]){if(t.events)for(r in t.events)i[r]?C.event.remove(n,r):C.removeEvent(n,r,t.handle);n[X.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),C.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return U(this,(function(e){return void 0===e?C.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Fe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return Fe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return C.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!be[(ve.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Fe(this,arguments,(function(t){var n=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(ye(this)),n&&n.replaceChild(t,this))}),e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){C.fn[e]=function(e){for(var n,r=[],i=C(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),C(i[a])[t](n),l.apply(r,n.get());return this.pushStack(r)}}));var Ve=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),$e=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},He=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ue=new RegExp(ie.join("|"),"i");function qe(e,t,n){var r,i,o,a,s=e.style;return(n=n||$e(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ae(e)||(a=C.style(e,t)),!v.pixelBoxStyles()&&Ve.test(a)&&Ue.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(l).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,c=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),i=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),oe.removeChild(l),u=null}}function t(e){return Math.round(parseFloat(e))}var r,i,o,a,s,c,l=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,C.extend(v,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,r,i;return null==s&&(e=y.createElement("table"),t=y.createElement("tr"),r=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",r.style.height="9px",oe.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),s=parseInt(i.height)>3,oe.removeChild(e)),s}}))}();var Ye=["Webkit","Moz","ms"],Ke=y.createElement("div").style,Ge={};function Qe(e){var t=C.cssProps[e]||Ge[e];return t||(e in Ke?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ye.length;n--;)if((e=Ye[n]+t)in Ke)return e}(e)||e)}var Xe=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=C.css(e,n+ie[a],!0,i)),r?("content"===n&&(c-=C.css(e,"padding"+ie[a],!0,i)),"margin"!==n&&(c-=C.css(e,"border"+ie[a]+"Width",!0,i))):(c+=C.css(e,"padding"+ie[a],!0,i),"padding"!==n?c+=C.css(e,"border"+ie[a]+"Width",!0,i):s+=C.css(e,"border"+ie[a]+"Width",!0,i));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-c-s-.5))||0),c}function rt(e,t,n){var r=$e(e),i=(!v.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,r),o=i,a=qe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ve.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&T(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===C.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===C.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+nt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function it(e,t,n,r,i){return new it.prototype.init(e,t,n,r,i)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=K(t),c=Je.test(t),l=e.style;if(c||(t=Qe(s)),a=C.cssHooks[t]||C.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=re.exec(n))&&i[1]&&(n=le(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||c||(n+=i&&i[3]||(C.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=K(t);return Je.test(t)||(t=Qe(s)),(a=C.cssHooks[t]||C.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=qe(e,t,r)),"normal"===i&&t in et&&(i=et[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),C.each(["height","width"],(function(e,t){C.cssHooks[t]={get:function(e,n,r){if(n)return!Xe.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):He(e,Ze,(function(){return rt(e,t,r)}))},set:function(e,n,r){var i,o=$e(e),a=!v.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===C.css(e,"boxSizing",!1,o),c=r?nt(e,t,r,s,o):0;return s&&a&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-nt(e,t,"border",!1,o)-.5)),c&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),tt(0,n,c)}}})),C.cssHooks.marginLeft=We(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-He(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(e,t){C.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(C.cssHooks[e+t].set=tt)})),C.fn.extend({css:function(e,t){return U(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=$e(e),i=t.length;a<i;a++)o[t[a]]=C.css(e,t[a],!1,r);return o}return void 0!==n?C.style(e,t,n):C.css(e,t)}),e,t,arguments.length>1)}}),C.Tween=it,it.prototype={constructor:it,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(C.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=it.prototype.init,C.fx.step={};var ot,at,st=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function lt(){at&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(lt):n.setTimeout(lt,C.fx.interval),C.fx.tick())}function ut(){return n.setTimeout((function(){ot=void 0})),ot=Date.now()}function dt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ht(e,t,n){var r,i,o=0,a=ht.prefilters.length,s=C.Deferred().always((function(){delete c.elem})),c=function(){if(i)return!1;for(var t=ot||ut(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:t,originalOptions:n,startTime:ot||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=C.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=K(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=C.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,l.opts.specialEasing);o<a;o++)if(r=ht.prefilters[o].call(l,e,u,l.opts))return g(r.stop)&&(C._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return C.map(u,ft,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),C.fx.timer(C.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}C.Animation=C.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(L);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,c,l,u,d="width"in t||"height"in t,f=this,h={},p=e.style,m=e.nodeType&&ce(e),v=X.get(e,"fxshow");for(r in n.queue||(null==(a=C._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,C.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],st.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;m=!0}h[r]=v&&v[r]||C.style(e,r)}if((c=!C.isEmptyObject(t))||!C.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=v&&v.display)&&(l=X.get(e,"display")),"none"===(u=C.css(e,"display"))&&(l?u=l:(fe([e],!0),l=e.style.display||l,u=C.css(e,"display"),fe([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===C.css(e,"float")&&(c||(f.done((function(){p.display=l})),null==l&&(u=p.display,l="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),c=!1,h)c||(v?"hidden"in v&&(m=v.hidden):v=X.access(e,"fxshow",{display:l}),o&&(v.hidden=!m),m&&fe([e],!0),f.done((function(){for(r in m||fe([e]),X.remove(e,"fxshow"),h)C.style(e,r,h[r])}))),c=ft(m?v[r]:0,r,f),r in v||(v[r]=c.start,m&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),C.speed=function(e,t,n){var r=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return C.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in C.fx.speeds?r.duration=C.fx.speeds[r.duration]:r.duration=C.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&C.dequeue(this,r.queue)},r},C.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=C.isEmptyObject(e),o=C.speed(t,n,r),a=function(){var t=ht(this,C.extend({},e),o);(i||X.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=C.timers,a=X.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ct.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||C.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=X.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=C.timers,a=r?r.length:0;for(n.finish=!0,C.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),C.each(["toggle","show","hide"],(function(e,t){var n=C.fn[t];C.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,r,i)}})),C.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){C.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(ot=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),ot=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){at||(at=!0,lt())},C.fx.stop=function(){at=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var pt,mt=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return U(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){C.removeAttr(this,e)}))}}),C.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?C.prop(e,t,n):(1===o&&C.isXMLDoc(e)||(i=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=C.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&T(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||C.find.attr;mt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=mt[a],mt[a]=i,i=null!=n(e,t,r)?a:null,mt[a]=o),i}}));var vt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function bt(e){return(e.match(L)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}C.fn.extend({prop:function(e,t){return U(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[C.propFix[e]||e]}))}}),C.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(e)||(t=C.propFix[t]||t,i=C.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,c=0;if(g(e))return this.each((function(t){C(this).addClass(e.call(this,t,yt(this)))}));if((t=kt(e)).length)for(;n=this[c++];)if(i=yt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,c=0;if(g(e))return this.each((function(t){C(this).removeClass(e.call(this,t,yt(this)))}));if(!arguments.length)return this.attr("class","");if((t=kt(e)).length)for(;n=this[c++];)if(i=yt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){C(this).toggleClass(e.call(this,n,yt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=C(this),a=kt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;C.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,C(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=C.map(i,(function(e){return null==e?"":e+""}))),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(wt,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:bt(C.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r<c;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(t=C(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=C.makeArray(t),a=i.length;a--;)((r=i[a]).selected=C.inArray(C.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},v.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),v.focusin="onfocusin"in n;var _t=/^(?:focusinfocus|focusoutblur)$/,Ct=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,r,i){var o,a,s,c,l,u,d,f,p=[r||y],m=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=r=r||y,3!==r.nodeType&&8!==r.nodeType&&!_t.test(m+C.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),l=m.indexOf(":")<0&&"on"+m,(e=e[C.expando]?e:new C.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:C.makeArray(t,[e]),d=C.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(r,t))){if(!i&&!d.noBubble&&!b(r)){for(c=d.delegateType||m,_t.test(c+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?c:d.bindType||m,(u=(X.get(a,"events")||Object.create(null))[e.type]&&X.get(a,"handle"))&&u.apply(a,t),(u=l&&a[l])&&u.apply&&G(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!G(r)||l&&g(r[m])&&!b(r)&&((s=r[l])&&(r[l]=null),C.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,Ct),r[m](),e.isPropagationStopped()&&f.removeEventListener(m,Ct),C.event.triggered=void 0,s&&(r[l]=s)),e.result}},simulate:function(e,t,n){var r=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(r,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each((function(){C.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),v.focusin||C.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,t);i||r.addEventListener(e,n,!0),X.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,t)-1;i?X.access(r,t,i):(r.removeEventListener(e,n,!0),X.remove(r,t))}}}));var At=n.location,xt={guid:Date.now()},St=/\?/;C.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+e),t};var Mt=/\[\]$/,Et=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,r){var i;if(Array.isArray(t))C.each(t,(function(t,i){n||Mt.test(e)?r(e,i):Ot(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==_(t))r(e,t);else for(i in t)Ot(e+"["+i+"]",t[i],n,r)}C.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,(function(){i(this.name,this.value)}));else for(n in e)Ot(n,e[n],t,i);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Dt.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,(function(e){return{name:t.name,value:e.replace(Et,"\r\n")}})):{name:t.name,value:n.replace(Et,"\r\n")}})).get()}});var Pt=/%20/g,It=/#.*$/,jt=/([?&])_=[^&]*/,Nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Bt={},Ft={},zt="*/".concat("*"),Vt=y.createElement("a");function $t(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(L)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ht(e,t,n,r){var i={},o=e===Ft;function a(s){var c;return i[s]=!0,C.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(c=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),c}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Ut(e,t){var n,r,i=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&C.extend(!0,e,r),e}Vt.href=At.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,C.ajaxSettings),t):Ut(C.ajaxSettings,e)},ajaxPrefilter:$t(Bt),ajaxTransport:$t(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,c,l,u,d,f,h=C.ajaxSetup({},t),p=h.context||h,m=h.context&&(p.nodeType||p.jquery)?C(p):C.event,v=C.Deferred(),g=C.Callbacks("once memory"),b=h.statusCode||{},k={},w={},_="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=Nt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,k[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)A.always(e[A.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||_;return r&&r.abort(t),x(0,t),this}};if(v.promise(A),h.url=((e||h.url||At.href)+"").replace(Lt,At.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(L)||[""],null==h.crossDomain){c=y.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Vt.protocol+"//"+Vt.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=C.param(h.data,h.traditional)),Ht(Bt,h,t,A),l)return A;for(d in(u=C.event&&h.global)&&0==C.active++&&C.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Rt.test(h.type),i=h.url.replace(It,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Pt,"+")):(f=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(St.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(jt,"$1"),f=(St.test(i)?"&":"?")+"_="+xt.guid+++f),h.url=i+f),h.ifModified&&(C.lastModified[i]&&A.setRequestHeader("If-Modified-Since",C.lastModified[i]),C.etag[i]&&A.setRequestHeader("If-None-Match",C.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&A.setRequestHeader("Content-Type",h.contentType),A.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+zt+"; q=0.01":""):h.accepts["*"]),h.headers)A.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(p,A,h)||l))return A.abort();if(_="abort",g.add(h.complete),A.done(h.success),A.fail(h.error),r=Ht(Ft,h,t,A)){if(A.readyState=1,u&&m.trigger("ajaxSend",[A,h]),l)return A;h.async&&h.timeout>0&&(s=n.setTimeout((function(){A.abort("timeout")}),h.timeout));try{l=!1,r.send(k,x)}catch(e){if(l)throw e;x(-1,e)}}else x(-1,"No Transport");function x(e,t,a,c){var d,f,y,k,w,_=t;l||(l=!0,s&&n.clearTimeout(s),r=void 0,o=c||"",A.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(k=function(e,t,n){for(var r,i,o,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}if(c[0]in n)o=c[0];else{for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),n[o]}(h,A,a)),!d&&C.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),k=function(e,t,n,r){var i,o,a,s,c,l={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=u.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=l[c+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[c+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}(h,k,A,d),d?(h.ifModified&&((w=A.getResponseHeader("Last-Modified"))&&(C.lastModified[i]=w),(w=A.getResponseHeader("etag"))&&(C.etag[i]=w)),204===e||"HEAD"===h.type?_="nocontent":304===e?_="notmodified":(_=k.state,f=k.data,d=!(y=k.error))):(y=_,!e&&_||(_="error",e<0&&(e=0))),A.status=e,A.statusText=(t||_)+"",d?v.resolveWith(p,[f,_,A]):v.rejectWith(p,[A,_,y]),A.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[A,h,d?f:y]),g.fireWith(p,[A,_]),u&&(m.trigger("ajaxComplete",[A,h]),--C.active||C.event.trigger("ajaxStop")))}return A},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],(function(e,t){C[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:i,data:n,success:r},C.isPlainObject(e)&&e))}})),C.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){C(this).wrapInner(e.call(this,t))})):this.each((function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){C(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var qt={0:200,1223:204},Wt=C.ajaxSettings.xhr();v.cors=!!Wt&&"withCredentials"in Wt,v.ajax=Wt=!!Wt,C.ajaxTransport((function(e){var t,r;if(v.cors||Wt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(qt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),C.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),C.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=C("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Yt,Kt=[],Gt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||C.expando+"_"+xt.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",(function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Gt,"$1"+i):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||C.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always((function(){void 0===o?C(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(i)),a&&g(o)&&o(a[0]),a=o=void 0})),"script"})),v.createHTMLDocument=((Yt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Yt.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(r)):t=y),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=_e([e],t,o),o&&o.length&&C(o).remove(),C.merge([],i.childNodes)));var r,i,o},C.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=bt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&C.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?C("<div>").append(C.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,(function(t){return e===t.elem})).length},C.offset={setOffset:function(e,t,n){var r,i,o,a,s,c,l=C.css(e,"position"),u=C(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),o=C.css(e,"top"),c=C.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+c).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(c)||0),g(t)&&(t=t.call(e,n,C.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){C.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===C.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),i.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-C.css(r,"marginTop",!0),left:t.left-i.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||oe}))}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;C.fn[e]=function(r){return U(this,(function(e,r,i){var o;if(b(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),C.each(["top","left"],(function(e,t){C.cssHooks[t]=We(v.pixelPosition,(function(e,n){if(n)return n=qe(e,t),Ve.test(n)?C(e).position()[t]+"px":n}))})),C.each({Height:"height",Width:"width"},(function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){C.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return U(this,(function(t,n,i){var o;return b(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?C.css(t,n,s):C.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){C.fn[t]=function(e){return this.on(t,e)}})),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;C.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||C.guid++,i},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=T,C.isFunction=g,C.isWindow=b,C.camelCase=K,C.type=_,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(Qt,"")},void 0===(r=function(){return C}.apply(t,[]))||(e.exports=r);var Xt=n.jQuery,Jt=n.$;return C.noConflict=function(e){return n.$===C&&(n.$=Jt),e&&n.jQuery===C&&(n.jQuery=Xt),C},void 0===i&&(n.jQuery=n.$=C),C}))},function(e,t,n){var r=n(298),i=n(301);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";n.r(t);var r=n(80),i=n.n(r),o=n(29),a=n.n(o),s={components:{FileUpload:i.a,ProgressBar:a.a},data:function(){return{files:[],collections:[],tags:[],file_collection:1,file_ref:null,progressMode:"determinate",csrf:document.querySelectorAll('meta[name="csrf-token"]')[0].content,status:"start",error:"",links:[],repeaterFields:[{name:"headline-repeater",value:""}]}},computed:{uploadedFile:function(){return this.files.length>0?this.files[0]:null},nextRef:function(){return this.getNextRef(this.file_collection)},fileValid:function(){if(!(this.files.length<1))return this.checkFileValid(this.files[0])},file_data:function(){return{collection_id:this.file_collection,ref:this.file_ref,tags:this.tags,headlines:JSON.stringify(this.lodash.map(this.repeaterFields,"value"))}}},watch:{file_ref:function(e){e.length>0?(this.status="ready",$("#file_ref").addClass("is-valid").removeClass("is-invalid")):(this.status="start",$("#file_ref").addClass("is-invalid").removeClass("is-valid"))},uploadedFile:function(e){e.success&&(this.progressMode="indeterminate")}},methods:{processStatusUpdate:function(e){var t=this;"done"===(e=e.data).status&&(this.progressMode="determinate",axios.get("/publish/file/"+e.data.file_id).then((function(e){t.$root.publishState.file=e.data.file,t.links=e.data.links,t.status="done",t.$emit("can-continue",{value:!0})}))),"failed"===e.status&&(this.progressMode="determinate",this.status="error",this.error=e.data.error,console.error(e.data.error))},getNextRef:function(e){var t=this.collections.find((function(t){return t.id===e}));return void 0===t?null:t.files[0].ref.replace(/(\d+)+/g,(function(e,t){return parseInt(t)+1}))},checkFileValid:function(e){return"application/pdf"===e.type},inputFile:function(e,t){!e||Boolean(e)===Boolean(t)&&t.error===e.error||this.$refs.upload.active||!this.checkFileValid(e)||(this.$refs.upload.active=!0,this.status="uploading"),e&&!0===e.success&&(this.status="processing")}},mounted:function(){var e=this;Echo.private("fileProcessingStatus").listen(".status.update",this.processStatusUpdate),axios.get("/publish/collections").then((function(t){e.collections=t.data.data,e.file_ref=e.getNextRef(1)})),axios.get("/publish/tags").then((function(t){var n=t.data.data;$("#file_tags").selectize({placeholder:"Mots-clés pour la recherche",persist:!1,createOnBlur:!0,create:!0,options:n,plugins:["remove_button"],onChange:function(t){return e.tags=t}})}))}},c=(n(180),n(1)),l=Object(c.a)(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-step file-upload p-3"},[n("div",{staticClass:"row mx-auto mb-3",staticStyle:{"max-width":"500px"}},[n("div",{staticClass:"col-8"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"file_collection"}},[e._v("Collection *")]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.file_collection,expression:"file_collection"}],staticClass:"form-control",attrs:{id:"file_collection"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.file_collection=t.target.multiple?n:n[0]}}},e._l(e.collections,(function(t){return n("option",{domProps:{value:t.id,textContent:e._s(t.name)}})})),0)])]),e._v(" "),n("div",{staticClass:"col-4"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"file_ref"}},[e._v("Numéro *")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.file_ref,expression:"file_ref"}],staticClass:"form-control is-valid",attrs:{type:"text",id:"file_ref",placeholder:e.nextRef,required:""},domProps:{value:e.file_ref},on:{input:function(t){t.target.composing||(e.file_ref=t.target.value)}}})])]),e._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"file_tags"}},[e._v("Mots-clés")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.tags,expression:"tags"}],attrs:{type:"text",id:"file_tags"},domProps:{value:e.tags},on:{input:function(t){t.target.composing||(e.tags=t.target.value)}}})])]),e._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"headlines"}},[e._v("Gros titres")]),e._v(" "),n("vue-repeater-after",{model:{value:e.repeaterFields,callback:function(t){e.repeaterFields=t},expression:"repeaterFields"}})],1)])]),e._v(" "),n("div",{staticClass:"text-center"},[e._m(0),e._v(" "),n("file-upload",{ref:"upload",staticClass:"btn btn-default btn-primary",attrs:{"post-action":"/publish/upload-file",multiple:!1,drop:!0,"drop-directory":!1,headers:{"X-CSRF-TOKEN":e.csrf},data:e.file_data},on:{"input-file":e.inputFile},model:{value:e.files,callback:function(t){e.files=t},expression:"files"}},[n("i",{staticClass:"fa fa-plus"}),e._v("\n Sélectionnez un fichier\n ")])],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.$refs.upload&&e.$refs.upload.dropActive,expression:"$refs.upload && $refs.upload.dropActive"}],staticClass:"drop-active"},[n("h3",[e._v("Déposez votre fichier")])]),e._v(" "),e.files.length>0?n("div",{staticClass:"my-3 file-selected"},[e.fileValid?n("div",[n("p",{staticClass:"mb-3"},[n("strong",[e._v("Fichier sélectionné : ")]),e._v(" "+e._s(e.files[0].name)+" ")])]):n("div",{staticClass:"alert alert-warning",attrs:{role:"alert"}},[n("span",{staticClass:"font-bold"},[e._v("Fichier incorrect")]),e._v(" "),n("span",[e._v("Le fichier "+e._s(e.uploadedFile.name)+" n'est pas valide, veuillez choisir un fichier .pdf !")])]),e._v(" "),n("div",[n("md-progress-bar",{attrs:{"md-mode":e.progressMode,"md-value":parseFloat(e.uploadedFile.progress)}}),e._v(" "),n("small",{staticClass:"text-center d-block"},[e._v(e._s(e.uploadedFile.progress+"%"))])],1),e._v(" "),""!==e.uploadedFile.error?n("div",{staticClass:"alert alert-danger",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-exclamation-triangle"}),e._v(" "),n("span",[e._v("Une erreur est survenue ("+e._s(e.uploadedFile.error)+")."),n("br"),e._v("Vérifiez que le numéro est entré et qu'il n'existe pas déjà.")])]):e._e(),e._v(" "),"processing"===e.status?n("div",{staticClass:"alert-info alert",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-cogs"}),e._v(" "),e._m(1)]):"error"===e.status?n("div",{staticClass:"alert-danger alert",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-exclamation-triangle"}),e._v(" \n "),n("span",[n("strong",[e._v("Une erreur est survenue lors du traitement du fichier. ")]),e._v(" ("+e._s(e.error)+")")])]):e._e(),e._v(" "),"done"===e.status?n("div",[n("div",{staticClass:"alert-success alert",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-check"}),e._v(" \n "),n("span",[n("strong",[e._v(e._s(e.collections.find((function(t){return t.id===e.file_collection})).name))]),e._v(" "+e._s(e.file_ref)+" enregistré. Vous pouvez passer à l'étape suivante.")])]),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-6"},[n("img",{staticClass:"mx-auto my-3 d-block",staticStyle:{width:"200px"},attrs:{src:e.$root.publishState.file.coverUrl,alt:""}})]),e._v(" "),n("div",{staticClass:"col-6"},[n("h3",[e._v(e._s(e.links.length)+" liens trouvés")]),e._v(" "),n("ul",e._l(e.links,(function(t){return n("li",[e._v(e._s(t))])})),0)])])]):e._e()]):e._e()])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("h3",[this._v("Glissez votre fichier PDF ici"),t("br"),this._v("ou")])},function(){var e=this.$createElement,t=this._self._c||e;return t("span",[this._v("Fichier enregistré, "),t("strong",[this._v("traitement en cours...")])])}],!1,null,"4a9146e1",null);t.default=l.exports},function(e,t,n){"use strict";n.r(t);var r={mixins:[n(30).a],data:function(){return{file:this.$root.publishState.file,csrf:document.querySelectorAll('meta[name="csrf-token"]')[0].content}},computed:{email:function(){var e=this.$root.publishState.file.headlines.reduce((function(e,t){return e+"\n <h3>".concat(t.headline,"</h3>\n <p>").concat(t.content,"</p>\n\n ")}),"");return{content:"\n <p>Bonjour %recipient.name%,</p>\n <p>Voici la nouvelle édition du jour !</p>\n <br>\n <h2>À LA UNE AUJOURD'HUI</h2>\n ".concat(e,"\n\n "),subject:"L'édition du jour [".concat(this.$root.publishState.file.title,"] "),type:1}}},watch:{email:{deep:!0,handler:function(e,t){""!==e.editorData&&""!==e.subject?(this.$root.publishState.email=e,this.$emit("can-continue",{value:!0})):this.$emit("can-continue",{value:!1})},immediate:!0}},methods:{},mounted:function(){this.$emit("can-continue",{value:!0})}},i=(n(186),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-step"},[n("div",{staticClass:"mb-3"},[n("h3",{staticClass:"text-center"},[n("strong",[e._v(e._s(e.file.title))])]),e._v(" "),n("a",{staticClass:"btn btn-primary",attrs:{href:"/preview/"+e.file.slug,target:"_blank"}},[e._v("Prévisualiser le document")])]),e._v(" "),n("div",[n("h4",{staticClass:"text-center"},[e._v("\n Contenu de l'email\n ")]),e._v(" "),n("div",[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"subject"}},[e._v("Sujet")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email.subject,expression:"email.subject"}],staticClass:"form-control",attrs:{type:"text",id:"subject",placeholder:"[PSQ 302] Les dernières nouvelles de Pfizer"},domProps:{value:e.email.subject},on:{input:function(t){t.target.composing||e.$set(e.email,"subject",t.target.value)}}})]),e._v(" "),n("div",{staticClass:"form-group ck-email"},[n("label",{attrs:{for:"content"}},[e._v("Contenu")]),e._v(" "),n("ckeditor",{attrs:{editor:e.editor,config:e.editorConfig,id:"content"},model:{value:e.email.content,callback:function(t){e.$set(e.email,"content",t)},expression:"email.content"}})],1)])]),e._v(" "),n("form",{attrs:{method:"post",action:"/publish/preview",target:"_blank"}},[n("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:e.csrf}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"subject"},domProps:{value:e.email.subject}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"type"},domProps:{value:e.email.type}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"content"},domProps:{value:e.email.content}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"link"},domProps:{value:"/preview/"+e.file.slug}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"image"},domProps:{value:e.file.coverUrl}}),e._v(" "),n("input",{staticClass:"btn btn-primary",attrs:{type:"submit",value:"Prévisualiser l'email"}})])])}),[],!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={mixins:[n(30).a],data:function(){return{file:this.$root.publishState.file,recipient_group:null,recipient_groups:[],email:{content:"\n <p>Bonjour %recipient.name%,</p>\n ",subject:"",type:2,link:""},csrf:document.querySelectorAll('meta[name="csrf-token"]')[0].content}},watch:{email:{deep:!0,handler:function(e,t){""!==e.editorData&&""!==e.subject?(this.$root.publishState.email=e,this.$emit("can-continue",{value:!0})):this.$emit("can-continue",{value:!1})},immediate:!0},recipient_group:function(e,t){this.$root.publishState.recipient_group=e}},methods:{},mounted:function(){var e=this;this.$emit("can-continue",{value:!0}),axios.get("/publish/recipient-groups").then((function(t){return e.recipient_groups=t.data}))}},i=(n(190),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-step"},[n("div",[n("div",[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"recipients"}},[e._v("Destinataires")]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.recipient_group,expression:"recipient_group"}],staticClass:"form-control",attrs:{name:"recipients",id:"recipients"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.recipient_group=t.target.multiple?n:n[0]}}},[0===e.recipient_groups.count?n("option",{attrs:{value:"-1",selected:"seleted"}},[e._v("Chargement en cours...")]):e._e(),e._v(" "),e._l(e.recipient_groups,(function(t){return n("option",{domProps:{value:t}},[e._v(e._s(t.text))])}))],2)]),e._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"subject"}},[e._v("Sujet")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email.subject,expression:"email.subject"}],staticClass:"form-control",attrs:{type:"text",id:"subject",placeholder:"Découvrez notre nouveau podcast !"},domProps:{value:e.email.subject},on:{input:function(t){t.target.composing||e.$set(e.email,"subject",t.target.value)}}})]),e._v(" "),n("div",{staticClass:"form-group ck-email"},[n("label",{attrs:{for:"content"}},[e._v("Contenu")]),e._v(" "),n("ckeditor",{attrs:{editor:e.editor,config:e.editorConfig,id:"content"},model:{value:e.email.content,callback:function(t){e.$set(e.email,"content",t)},expression:"email.content"}})],1),e._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"subject"}},[e._v("Lien principal")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email.link,expression:"email.link"}],staticClass:"form-control",attrs:{type:"text",id:"link",placeholder:"https://exemple.fr"},domProps:{value:e.email.link},on:{input:function(t){t.target.composing||e.$set(e.email,"link",t.target.value)}}})])])]),e._v(" "),n("form",{attrs:{method:"post",action:"/publish/preview",target:"_blank"}},[n("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:e.csrf}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"subject"},domProps:{value:e.email.subject}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"type"},domProps:{value:e.email.type}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"content"},domProps:{value:e.email.content}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"link"},domProps:{value:e.email.link}}),e._v(" "),n("input",{staticClass:"btn btn-primary",attrs:{type:"submit",value:"Prévisualiser l'email"}})])])}),[],!1,null,null,null);t.default=o.exports},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(8).Symbol;e.exports=r},function(e,t,n){var r=n(31),i=n(11);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(38),i=n(224),o=n(151);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t,n){var r=n(152),i=n(87),o=n(230),a=n(6);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},function(e,t,n){var r=n(6),i=n(157),o=n(345),a=n(158);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(71);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(160),i=n(73);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=o?o(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),a?i(n,l,u):r(n,l,u)}return n}},function(e,t,n){var r=n(215),i=n(358),o=n(16);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&"__lodash_placeholder__"!==a||(e[n]="__lodash_placeholder__",o[i++]=n)}return o}},function(e,t,n){"use strict";n.r(t),function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:c(s(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?u:10===e?d:u||d}function h(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,c=o.commonAncestorContainer;if(e!==c&&t!==c||r.contains(i))return"BODY"===(s=(a=c).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(c):c;var l=p(e);return l.host?m(l.host,t):m(e,p(t).host)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(t,"top"),i=v(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function k(e){var t=e.body,n=e.documentElement,r=f(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),C=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function x(e){return A({},e,{right:e.left+e.width,bottom:e.top+e.height})}function S(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=v(e,"top"),r=v(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?k(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,c=o.height||e.clientHeight||i.height,l=e.offsetWidth-s,u=e.offsetHeight-c;if(l||u){var d=a(e);l-=b(d,"x"),u-=b(d,"y"),i.width-=l,i.height-=u}return x(i)}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=f(10),i="HTML"===t.nodeName,o=S(e),s=S(t),l=c(e),u=a(t),d=parseFloat(u.borderTopWidth),h=parseFloat(u.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=x({top:o.top-s.top-d,left:o.left-s.left-h,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var m=parseFloat(u.marginTop),v=parseFloat(u.marginLeft);p.top-=d-m,p.bottom-=d-m,p.left-=h-v,p.right-=h-v,p.marginTop=m,p.marginLeft=v}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=g(p,t)),p}function E(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=M(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:v(n),s=t?0:v(n,"left"),c={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return x(c)}function T(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&T(n)}function D(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function O(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?D(e):m(e,l(t));if("viewport"===r)o=E(a,i);else{var u=void 0;"scrollParent"===r?"BODY"===(u=c(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var d=M(u,a,i);if("HTML"!==u.nodeName||T(a))o=d;else{var f=k(e.ownerDocument),h=f.height,p=f.width;o.top+=d.top-d.marginTop,o.bottom=h+d.top,o.left+=d.left-d.marginLeft,o.right=p+d.left}}var v="number"==typeof(n=n||0);return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function P(e){return e.width*e.height}function I(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=O(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map((function(e){return A({key:e},s[e],{area:P(s[e])})})).sort((function(e,t){return t.area-e.area})),l=c.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=l.length>0?l[0].key:c[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function j(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?D(t):m(t,l(n));return M(n,i,r)}function N(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function R(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function L(e,t,n){n=n.split("-")[0];var r=N(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",c=o?"height":"width",l=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,i[s]=n===s?t[s]-r[l]:t[R(s)],i}function B(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function F(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=B(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=x(t.offsets.popper),t.offsets.reference=x(t.offsets.reference),t=n(t,e))})),t}function z(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=j(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=I(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=L(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=F(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function V(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function $(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function H(){return this.state.isDestroyed=!0,V(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(e){var t=e.ownerDocument;return t?t.defaultView:window}function q(e,t,n,r){n.updateBound=r,U(e).addEventListener("resize",n.updateBound,{passive:!0});var i=c(e);return function e(t,n,r,i){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),o||e(c(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function W(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,U(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function K(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function G(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&K(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Q=n&&/Firefox/i.test(navigator.userAgent);function X(e,t,n){var r=B(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Z=J.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Z.indexOf(e),r=Z.slice(n+1).concat(Z.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function ie(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(B(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return(l=l.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return x(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){K(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var oe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",u={start:C({},c,o[c]),end:C({},c,o[c]+o[l]-a[l])};e.offsets.popper=A({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],c=void 0;return c=K(+n)?[+n,0]:ie(n,o,a,s),"left"===s?(o.top+=c[0],o.left-=c[1]):"right"===s?(o.top+=c[0],o.left+=c[1]):"top"===s?(o.left+=c[0],o.top-=c[1]):"bottom"===s&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=$("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var c=O(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=c;var l=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),C({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),C({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=A({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[l]),n[c]>o(r[s])&&(e.offsets.popper[c]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,c=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",m=N(r)[u];c[p]-m<s[f]&&(e.offsets.popper[f]-=s[f]-(c[p]-m)),c[f]+m>s[p]&&(e.offsets.popper[f]+=c[f]+m-s[p]),e.offsets.popper=x(e.offsets.popper);var v=c[f]+c[u]/2-m/2,g=a(e.instance.popper),b=parseFloat(g["margin"+d]),y=parseFloat(g["border"+d+"Width"]),k=v-e.offsets.popper[f]-b-y;return k=Math.max(Math.min(s[u]-m,k),0),e.arrowElement=r,e.offsets.arrow=(C(n={},f,Math.round(k)),C(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(V(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=O(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=R(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[r,i];break;case ne:a=ee(r);break;case re:a=ee(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],i=R(r);var l=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===r&&d(l.right)>d(u.left)||"right"===r&&d(l.left)<d(u.right)||"top"===r&&d(l.bottom)>d(u.top)||"bottom"===r&&d(l.top)<d(u.bottom),h=d(l.left)<d(n.left),p=d(l.right)>d(n.right),m=d(l.top)<d(n.top),v=d(l.bottom)>d(n.bottom),g="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===o&&h||b&&"end"===o&&p||!b&&"start"===o&&m||!b&&"end"===o&&v),k=!!t.flipVariationsByContent&&(b&&"start"===o&&p||b&&"end"===o&&h||!b&&"start"===o&&v||!b&&"end"===o&&m),w=y||k;(f||g||w)&&(e.flipped=!0,(f||g)&&(r=a[c+1]),w&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=A({},e.offsets.popper,L(e.instance.popper,e.offsets.reference,e.placement)),e=F(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=R(t),e.offsets.popper=x(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=B(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=B(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=h(e.instance.popper),c=S(s),l={position:i.position},u=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},c=o(i.width),l=o(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?u||d||c%2==l%2?o:a:s,h=t?o:s;return{left:f(c%2==1&&l%2==1&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!Q),d="bottom"===n?"top":"bottom",f="right"===r?"left":"right",p=$("transform"),m=void 0,v=void 0;if(v="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-c.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-c.width+u.right:u.left,a&&p)l[p]="translate3d("+m+"px, "+v+"px, 0)",l[d]=0,l[f]=0,l.willChange="transform";else{var g="bottom"===d?-1:1,b="right"===f?-1:1;l[d]=v*g,l[f]=m*b,l.willChange=d+", "+f}var y={"x-placement":e.placement};return e.attributes=A({},y,e.attributes),e.styles=A({},l,e.styles),e.arrowStyles=A({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return G(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&G(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=j(i,t,e,n.positionFixed),a=I(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),G(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ae=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=A({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(A({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=A({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return A({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return _(e,[{key:"update",value:function(){return z.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=J,ae.Defaults=oe,t.default=ae}.call(this,n(7))},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(5);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(5),i=n(105),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(59)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c}).call(this,n(58))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&h())}function h(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(5),i=n(106),o=n(55),a=n(108),s=n(111),c=n(112),l=n(60);e.exports=function(e){return new Promise((function(t,u){var d=e.data,f=e.headers;r.isFormData(d)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",m=e.auth.password||"";f.Authorization="Basic "+btoa(p+":"+m)}var v=a(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),o(v,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,u,r),h=null}},h.onabort=function(){h&&(u(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){u(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(l(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=n(113),b=(e.withCredentials||c(v))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;b&&(f[e.xsrfHeaderName]=b)}if("setRequestHeader"in h&&r.forEach(f,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),u(e),h=null)})),void 0===d&&(d=null),h.send(d)}))}},function(e,t,n){"use strict";var r=n(107);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(o,(function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):void 0!==e[i]&&(n[i]=e[i])})),r.forEach(a,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var s=i.concat(o).concat(a),c=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(c,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){var r=n(287),i=n(10),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(8),i=n(290),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c}).call(this,n(42)(e))},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(222),i=n(318),o=n(319);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},function(e,t,n){var r=n(229),i=n(15);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(340),i=n(149),o=n(341),a=n(342),s=n(237),c=n(31),l=n(220),u=l(r),d=l(i),f=l(o),h=l(a),p=l(s),m=c;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case f:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(48),i=n(49);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(31),i=n(10);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(353),i=n(87),o=n(13),a=n(354),s=n(6);e.exports=function(e,t,n){var c=s(e)?r:a,l=arguments.length<3;return c(e,o(t,4),n,l,i)}},function(e,t,n){var r=n(226);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(376);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(217),i=n(69),o=n(63),a=n(6),s=n(16),c=n(64),l=n(82),u=n(81),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},function(e,t,n){var r=n(31),i=n(6),o=n(10);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},function(e,t){e.exports=function(e){return e.placeholder}},function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(34),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=504)}([function(e,t){e.exports=function(e,t,n,r,i,o){var a,s,c,l,u,d=e=e||{},f=typeof e.default;return"object"!==f&&"function"!==f||(a=e,d=e.default),s="function"==typeof d?d.options:d,t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0),n&&(s.functional=!0),i&&(s._scopeId=i),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},s._ssrRegister=c):r&&(c=r),c&&(l=s.functional,u=l?s.render:s.beforeCreate,l?(s._injectStyles=c,s.render=function(e,t){return c.call(t),u(e,t)}):s.beforeCreate=u?[].concat(u,c):[c]),{esModule:a,exports:d,options:s}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={props:{mdTheme:null},computed:{$mdActiveTheme:function(){var e=o.default.enabled,t=o.default.getThemeName,n=o.default.getAncestorTheme;return e&&!1!==this.mdTheme?t(this.mdTheme||n(this)):null}}};return(0,s.default)(t,e)},i=n(4),o=r(i),a=n(6),s=r(a)},function(e,t){e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),n(7),i=n(5),o=r(i),a=n(4),s=r(a),c=function(){var e=new o.default({ripple:!0,theming:{},locale:{startYear:1900,endYear:2099,dateFormat:"yyyy-MM-dd",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shorterDays:["S","M","T","W","T","F","S"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],shorterMonths:["J","F","M","A","M","Ju","Ju","A","Se","O","N","D"],firstDayOfAWeek:0},router:{linkActiveClass:"router-link-active"}});return Object.defineProperties(e.theming,{metaColors:{get:function(){return s.default.metaColors},set:function(e){s.default.metaColors=e}},theme:{get:function(){return s.default.theme},set:function(e){s.default.theme=e}},enabled:{get:function(){return s.default.enabled},set:function(e){s.default.enabled=e}}}),e},t.default=function(e){e.material||(e.material=c(),e.prototype.$material=e.material)}},function(e,t,n){"use strict";var r,i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),i=null,o=null,a=null,t.default=new r.default({data:function(){return{prefix:"md-theme-",theme:"default",enabled:!0,metaColors:!1}},computed:{themeTarget:function(){return!this.$isServer&&document.documentElement},fullThemeName:function(){return this.getThemeName()}},watch:{enabled:{immediate:!0,handler:function(){var e=this.fullThemeName,t=this.themeTarget,n=this.enabled;t&&(n?(t.classList.add(e),this.metaColors&&this.setHtmlMetaColors(e)):(t.classList.remove(e),this.metaColors&&this.setHtmlMetaColors()))}},theme:function(e,t){var n=this.getThemeName,r=this.themeTarget;e=n(e),r.classList.remove(n(t)),r.classList.add(e),this.metaColors&&this.setHtmlMetaColors(e)},metaColors:function(e){e?this.setHtmlMetaColors(this.fullThemeName):this.setHtmlMetaColors()}},methods:{getAncestorTheme:function(e){var t,n=this;return e?(t=e.mdTheme,function e(r){if(r){var i=r.mdTheme,o=r.$parent;return i&&i!==t?i:e(o)}return n.theme}(e.$parent)):null},getThemeName:function(e){var t=e||this.theme;return this.prefix+t},setMicrosoftColors:function(e){i&&i.setAttribute("content",e)},setThemeColors:function(e){o&&o.setAttribute("content",e)},setMaskColors:function(e){a&&a.setAttribute("color",e)},setHtmlMetaColors:function(e){var t="#fff";e&&(t=window.getComputedStyle(document.documentElement).getPropertyValue("--"+e+"-primary")),t&&(this.setMicrosoftColors(t),this.setThemeColors(t),this.setMaskColors(t))}},mounted:function(){var e=this;i=document.querySelector('[name="msapplication-TileColor"]'),o=document.querySelector('[name="theme-color"]'),a=document.querySelector('[rel="mask-icon"]'),this.enabled&&this.metaColors&&window.addEventListener("load",(function(){e.setHtmlMetaColors(e.fullThemeName)}))}})},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};return i.default.util.defineReactive(t,"reactive",e),t.reactive},r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r)},function(e,t,n){e.exports=function(){"use strict";function e(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===a}(e)}function t(e,t){return!1!==t.clone&&t.isMergeableObject(e)?i(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function n(e,n,r){return e.concat(n).map((function(e){return t(e,r)}))}function r(e,n,r){var o={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(n){o[n]=t(e[n],r)})),Object.keys(n).forEach((function(a){r.isMergeableObject(n[a])&&e[a]?o[a]=function(e,t){if(!t.customMerge)return i;var n=t.customMerge(e);return"function"==typeof n?n:i}(a,r)(e[a],n[a],r):o[a]=t(n[a],r)})),o}function i(e,i,a){var s;return(a=a||{}).arrayMerge=a.arrayMerge||n,a.isMergeableObject=a.isMergeableObject||o,(s=Array.isArray(i))===Array.isArray(e)?s?a.arrayMerge(e,i,a):r(e,i,a):t(i,a)}var o=function(t){return function(e){return!!e&&"object"==typeof e}(t)&&!e(t)},a="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;return i.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce((function(e,n){return i(e,n,t)}),{})},i}()},function(e,t){},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r),t.default=function(e,t){return{validator:function(n){return!!t.includes(n)||(i.default.util.warn("The "+e+" prop is invalid. Given value: "+n+". Available options: "+t.join(", ")+".",void 0),!1)}}}},function(e,t,n){"use strict";t.a=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fpAk2"),console.warn(Error().stack)),new Date(NaN))}},function(e,t,n){(function(t){var r,i,o,a,s=n(14),c="undefined"==typeof window?t:window,l=["moz","webkit"],u="AnimationFrame",d=c["request"+u],f=c["cancel"+u]||c["cancelRequest"+u];for(r=0;!d&&r<l.length;r++)d=c[l[r]+"Request"+u],f=c[l[r]+"Cancel"+u]||c[l[r]+"CancelRequest"+u];d&&f||(i=0,o=0,a=[],d=function(e){if(0===a.length){var t=s(),n=Math.max(0,1e3/60-(t-i));i=n+t,setTimeout((function(){var e,t=a.slice(0);for(a.length=0,e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(i)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return a.push({handle:++o,callback:e,cancelled:!1}),o},f=function(e){for(var t=0;t<a.length;t++)a[t].handle===e&&(a[t].cancelled=!0)}),e.exports=function(e){return d.call(c,e)},e.exports.cancel=function(){f.apply(c,arguments)},e.exports.polyfill=function(e){e||(e=c),e.requestAnimationFrame=d,e.cancelAnimationFrame=f}}).call(t,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return Math.random().toString(36).slice(4)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(20),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(37),s=function(e){n(33)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){(function(t){(function(){var n,r,i,o,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),a=o-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(t,n(15))},function(e,t){function n(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function o(){f&&h&&(f=!1,h.length?d=h.concat(d):p=-1,d.length&&a())}function a(){var e,t;if(!f){for(e=i(o),f=!0,t=d.length;t;){for(h=d,d=[];++p<t;)h&&h[p].run();p=-1,t=d.length}h=null,f=!1,function(e){if(u===clearTimeout)return clearTimeout(e);if((u===r||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function c(){}var l,u,d,f,h,p,m=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{u="function"==typeof clearTimeout?clearTimeout:r}catch(e){u=r}}(),d=[],f=!1,p=-1,m.nextTick=function(e){var t,n=Array(arguments.length-1);if(arguments.length>1)for(t=1;t<arguments.length;t++)n[t-1]=arguments[t];d.push(new s(e,n)),1!==d.length||f||i(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=c,m.addListener=c,m.once=c,m.off=c,m.removeListener=c,m.removeAllListeners=c,m.emit=c,m.prependListener=c,m.prependOnceListener=c,m.listeners=function(e){return[]},m.binding=function(e){throw Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(e){throw Error("process.chdir is not supported")},m.umask=function(){return 0}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(18),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(26),s=function(e){n(23)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";t.a=function(e){if(null===e||!0===e||!1===e)return NaN;var t=+e;return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(10),a=r(o),s=r(n(1)),c=n(11),l=r(c),u=r(n(22)),t.default=new s.default({name:"MdRipple",components:{MdWave:u.default},props:{mdActive:null,mdDisabled:Boolean,mdCentered:Boolean,mdEventTrigger:{type:Boolean,default:!0}},data:function(){return{ripples:[],touchTimeout:null,eventType:null}},computed:{isDisabled:function(){return!this.$material.ripple||this.mdDisabled},rippleClasses:function(){return{"md-disabled":this.isDisabled}},waveClasses:function(){return{"md-centered":this.mdCentered}}},watch:{mdActive:function(e){var t="boolean"==typeof e,n="mouseevent"===(""+e.constructor).match(/function (\w*)/)[1].toLowerCase();t&&this.mdCentered&&e?this.startRipple({type:"mousedown"}):n&&this.startRipple(e),this.$emit("update:mdActive",!1)}},methods:{touchMoveCheck:function(){window.clearTimeout(this.touchTimeout)},touchStartCheck:function(e){var t=this;this.touchTimeout=window.setTimeout((function(){t.startRipple(e)}),100)},startRipple:function(e){var t=this;(0,a.default)((function(){var n,r,i=t.eventType,o=t.isDisabled,a=t.mdCentered;o||i&&i!==e.type||(n=t.getSize(),r=a?t.getCenteredPosition(n):t.getHitPosition(e,n),t.eventType=e.type,t.ripples.push({waveStyles:t.applyStyles(r,n),uuid:(0,l.default)()}))}))},applyStyles:function(e,t){return i({},e,{width:t+="px",height:t})},clearWave:function(e){this.ripples=e?this.ripples.filter((function(t){return t.uuid!==e})):[]},getSize:function(){var e=this.$el,t=e.offsetWidth,n=e.offsetHeight;return Math.round(Math.max(t,n))},getCenteredPosition:function(e){var t=-e/2+"px";return{"margin-top":t,"margin-left":t}},getHitPosition:function(e,t){var n=this.$el.getBoundingClientRect(),r=e.pageY,i=e.pageX;return"touchstart"===e.type&&(r=e.changedTouches[0].pageY,i=e.changedTouches[0].pageX),{top:r-n.top-t/2-document.documentElement.scrollTop+"px",left:i-n.left-t/2-document.documentElement.scrollLeft+"px"}}}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdWave",data:function(){return{animating:!1}},props:{waveClasses:null,waveStyles:null},mounted:function(){this.animating=!0},methods:{end:function(){this.animating=!1,this.$emit("md-end")}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(34)),t.default=new i.default({name:"MdIcon",components:{MdSvgLoader:o.default},props:{mdSrc:String}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};t.default={name:"MdSVGLoader",props:{mdSrc:{type:String,required:!0}},data:function(){return{html:null,error:null}},watch:{mdSrc:function(){this.html=null,this.loadSVG()}},methods:{isSVG:function(e){return"string"==typeof e&&e.indexOf("svg")>=0},setHtml:function(e){var t=this;r[this.mdSrc].then((function(e){return t.html=e,t.$nextTick()})).then((function(){return t.$emit("md-loaded")}))},unexpectedError:function(e){this.error="Something bad happened trying to fetch "+this.mdSrc+".",e(this.error)},loadSVG:function(){var e=this;r.hasOwnProperty(this.mdSrc)?this.setHtml():r[this.mdSrc]=new Promise((function(t,n){var r=new window.XMLHttpRequest;r.open("GET",e.mdSrc,!0),r.onload=function(){var i=r.getResponseHeader("content-type");200===r.status?e.isSVG(i)?(t(r.response),e.setHtml()):(e.error="The file "+e.mdSrc+" is not a valid SVG.",n(e.error)):r.status>=400&&r.status<500?(e.error="The file "+e.mdSrc+" do not exists.",n(e.error)):e.unexpectedError(n)},r.onerror=function(){return e.unexpectedError(n)},r.onabort=function(){return e.unexpectedError(n)},r.send()}))}},mounted:function(){this.loadSVG()}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(19),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(25),s=function(e){n(24)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-ripple",appear:""},on:{"after-enter":e.end}},[e.animating?n("span"):e._e()])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["md-ripple",e.rippleClasses],on:{"&touchstart":function(t){return function(t){return e.mdEventTrigger&&e.touchStartCheck(t)}(t)},"&touchmove":function(t){return function(t){return e.mdEventTrigger&&e.touchMoveCheck(t)}(t)},"&mousedown":function(t){return function(t){return e.mdEventTrigger&&e.startRipple(t)}(t)}}},[e._t("default"),e._v(" "),e._l(e.ripples,(function(t){return e.isDisabled?e._e():n("md-wave",{key:t.uuid,class:["md-ripple-wave",e.waveClasses],style:t.waveStyles,on:{"md-end":function(n){return e.clearWave(t.uuid)}}})}))],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(2),o=r(i),a=n(10),s=r(a),t.default={name:"MdPortal",abstract:!0,props:{mdAttachToParent:Boolean,mdTarget:{type:null,validator:function(e){return!!(HTMLElement&&e&&e instanceof HTMLElement)||(o.default.util.warn("The md-target-el prop is invalid. You should pass a valid HTMLElement.",this),!1)}}},data:function(){return{leaveTimeout:null,originalParentEl:null}},computed:{transitionName:function(){var e,t,n=this._vnode.componentOptions.children[0];if(n){if(e=n.data.transition)return e.name;if(t=n.componentOptions.propsData.name)return t}return"v"},leaveClass:function(){return this.transitionName+"-leave"},leaveActiveClass:function(){return this.transitionName+"-leave-active"},leaveToClass:function(){return this.transitionName+"-leave-to"}},watch:{mdTarget:function(e,t){this.changeParentEl(e),t&&this.$forceUpdate()}},methods:{getTransitionDuration:function(e){var t=window.getComputedStyle(e).transitionDuration,n=parseFloat(t,10),r=t.match(/m?s/);return r&&(r=r[0]),"s"===r?1e3*n:"ms"===r?n:0},killGhostElement:function(e){e.parentNode&&(this.changeParentEl(this.originalParentEl),this.$options._parentElm=this.originalParentEl,e.parentNode.removeChild(e))},initDestroy:function(e){var t=this,n=this.$el;e&&this.$el.nodeType===Node.COMMENT_NODE&&(n=this.$vnode.elm),n.classList.add(this.leaveClass),n.classList.add(this.leaveActiveClass),this.$nextTick().then((function(){n.classList.add(t.leaveToClass),clearTimeout(t.leaveTimeout),t.leaveTimeout=setTimeout((function(){t.destroyElement(n)}),t.getTransitionDuration(n))}))},destroyElement:function(e){var t=this;(0,s.default)((function(){e.classList.remove(t.leaveClass),e.classList.remove(t.leaveActiveClass),e.classList.remove(t.leaveToClass),t.$emit("md-destroy"),t.killGhostElement(e)}))},changeParentEl:function(e){e&&e.appendChild(this.$el)}},mounted:function(){this.originalParentEl||(this.originalParentEl=this.$el.parentNode,this.$emit("md-initial-parent",this.$el.parentNode)),this.mdAttachToParent&&this.$el.parentNode.parentNode?this.changeParentEl(this.$el.parentNode.parentNode):document&&this.changeParentEl(this.mdTarget||document.body)},beforeDestroy:function(){this.$el.classList?this.initDestroy():this.killGhostElement(this.$el)},render:function(e){var t=this.$slots.default;if(t&&t[0])return t[0]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{to:[String,Object],replace:Boolean,append:Boolean,activeClass:String,exact:Boolean,event:[String,Array],exactActiveClass:String}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e};t.default=function(e,t){var n=e.$options.components.RouterLink||e.$options.components["router-link"];return r({},t,n.options.props)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(38)),o=r(n(179)),t.default={mixins:[i.default],components:{MdListItemContent:o.default},props:{disabled:Boolean},computed:{isDisabled:function(){return!this.mdRipple||this.disabled}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(41)),s=r(n(38)),c=r(n(28)),l=n(29),u=r(l),d=r(n(45)),t.default=new o.default({name:"MdButton",data:function(){return{rippleActive:!1}},components:{MdButtonContent:d.default},mixins:[s.default,a.default,c.default],props:{href:String,type:{type:String,default:"button"},disabled:Boolean},computed:{rippleWorks:function(){return this.mdRipple&&!this.disabled},isRouterLink:function(){return this.$router&&this.to}},render:function(e){var t,n,r=this,o=e("md-button-content",{attrs:{mdRipple:this.mdRipple,disabled:this.disabled},props:{mdRippleActive:this.rippleActive},on:{"update:mdRippleActive":function(e){return r.rippleActive=e}}},this.$slots.default),a={staticClass:"md-button",class:[this.$mdActiveTheme,{"md-ripple-off":!this.mdRipple,"md-focused":this.mdHasFocus}],attrs:i({},this.attrs,{href:this.href,disabled:this.disabled,type:!this.href&&(this.type||"button")}),on:i({},this.$listeners,{touchstart:function(e){r.rippleWorks&&(r.rippleActive=e),r.$listeners.touchstart&&r.$listeners.touchstart(e)},touchmove:function(e){r.rippleWorks&&(r.rippleActive=e),r.$listeners.touchmove&&r.$listeners.touchmove(e)},mousedown:function(e){r.rippleWorks&&(r.rippleActive=e),r.$listeners.mousedown&&r.$listeners.mousedown(e)}})},s="button";return this.href?s="a":this.isRouterLink&&(this.$options.props=(0,u.default)(this,this.$options.props),s="router-link",t=this.$props.exactActiveClass,n=(this.$props.activeClass||this.$material.router.linkActiveClass)+" md-active",a.props=i({},this.$props,{exactActiveClass:t,activeClass:n}),delete a.props.type,delete a.attrs.type,delete a.props.href,delete a.attrs.href),e(s,a,[o])}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(16)),t.default={name:"MdButtonContent",components:{MdRipple:r.default},props:{mdRipple:Boolean,mdRippleActive:null,disabled:Boolean}}},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(21),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(36),s=function(e){n(35)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("i",{staticClass:"md-svg-loader",domProps:{innerHTML:e._s(e.html)}})},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.mdSrc?n("md-svg-loader",{staticClass:"md-icon md-icon-image",class:[e.$mdActiveTheme],attrs:{"md-src":e.mdSrc},on:{"md-loaded":function(t){return e.$emit("md-loaded")}}}):n("i",{staticClass:"md-icon md-icon-font",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(16)),t.default={components:{MdRipple:r.default},props:{mdRipple:{type:Boolean,default:!0}}}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(31),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(44)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(67),a=r(o),s=n(6),c=r(s),l=n(27),u=r(l),t.default={name:"MdPopover",abstract:!0,components:{MdPortal:u.default},props:{mdActive:Boolean,mdSettings:{type:Object,default:function(){return{}}}},data:function(){return{popperInstance:null,originalParentEl:null,shouldRender:!1,shouldActivate:!1}},computed:{popoverClasses:function(){return this.shouldActivate?"md-active":this.shouldRender?"md-rendering":void 0}},watch:{mdActive:{immediate:!0,handler:function(e){this.shouldRender=e,e?this.bindPopper():this.shouldActivate=!1}},mdSettings:function(){this.popperInstance&&this.createPopper()}},methods:{getPopperOptions:function(){var e=this;return{placement:"bottom",modifiers:{preventOverflow:{boundariesElement:"viewport",padding:16},computeStyle:{gpuAcceleration:!1}},onCreate:function(){e.shouldActivate=!0,e.$emit("md-active")}}},setOriginalParent:function(e){this.originalParentEl||(this.originalParentEl=e)},killPopper:function(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},bindPopper:function(){var e=this;this.$nextTick().then((function(){e.originalParentEl&&e.createPopper()}))},createPopper:function(){if(this.mdSettings){var e=(0,c.default)(this.getPopperOptions(),this.mdSettings);this.$el.nodeType!==Node.COMMENT_NODE&&(this.popperInstance=new a.default(this.originalParentEl,this.$el,e))}},resetPopper:function(){this.popperInstance&&(this.killPopper(),this.createPopper())}},beforeDestroy:function(){this.killPopper()},mounted:function(){this.resetPopper()},render:function(e){return e(u.default,{props:i({},this.$attrs),on:i({},this.$listeners,{"md-initial-parent":this.setOriginalParent,"md-destroy":this.killPopper})},this.$slots.default)}}},function(e,t,n){"use strict";function r(e){var t=(e.keyCode,e.target);d.currentElement=t}function i(e){d.currentElement=null}function o(){window.PointerEvent?l.addEventListener("pointerup",i):window.MSPointerEvent?l.addEventListener("MSPointerUp",i):(l.addEventListener("mouseup",i),"ontouchend"in window&&l.addEventListener("touchend",i,u)),l.addEventListener("keyup",r)}function a(){c||(l=document.body,function(){try{var e=Object.defineProperty({},"passive",{get:function(){u={passive:!0}}});window.addEventListener("ghost",null,e)}catch(e){}}(),o(),c=!0)}var s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),s=function(e){return e&&e.__esModule?e:{default:e}}(n(5)),c=!1,l=null,u=!1,d=new s.default({currentElement:null}),t.default={data:function(){return{mdHasFocus:!1}},computed:{focusedElement:function(){return d.currentElement}},watch:{focusedElement:function(e){this.mdHasFocus=e===this.$el}},mounted:function(){a()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e};t.default={props:{value:{},placeholder:String,name:String,maxlength:[String,Number],readonly:Boolean,required:Boolean,disabled:Boolean,mdCounter:[String,Number]},data:function(){return{localValue:this.value,textareaHeight:!1}},computed:{model:{get:function(){return this.localValue},set:function(e){var t=this;"inputevent"!==(""+e.constructor).match(/function (\w*)/)[1].toLowerCase()&&this.$nextTick((function(){t.localValue=e}))}},clear:function(){return this.MdField.clear},attributes:function(){return r({},this.$attrs,{type:this.type,id:this.id,name:this.name,disabled:this.disabled,required:this.required,placeholder:this.placeholder,readonly:this.readonly,maxlength:this.maxlength})}},watch:{model:function(){this.setFieldValue()},clear:function(e){e&&this.clearField()},placeholder:function(){this.setPlaceholder()},disabled:function(){this.setDisabled()},required:function(){this.setRequired()},maxlength:function(){this.setMaxlength()},mdCounter:function(){this.setMaxlength()},localValue:function(e){this.$emit("input",e)},value:function(e){this.localValue=e}},methods:{clearField:function(){this.$el.value="",this.model="",this.setFieldValue()},setLabelFor:function(){var e,t;this.$el.parentNode&&(e=this.$el.parentNode.querySelector("label"))&&(!(t=e.getAttribute("for"))||t.indexOf("md-")>=0)&&e.setAttribute("for",this.id)},setFieldValue:function(){this.MdField.value=this.model},setPlaceholder:function(){this.MdField.placeholder=!!this.placeholder},setDisabled:function(){this.MdField.disabled=!!this.disabled},setRequired:function(){this.MdField.required=!!this.required},setMaxlength:function(){this.mdCounter?this.MdField.counter=parseInt(this.mdCounter,10):this.MdField.maxlength=parseInt(this.maxlength,10)},onFocus:function(){this.MdField.focused=!0},onBlur:function(){this.MdField.focused=!1}},created:function(){this.setFieldValue(),this.setPlaceholder(),this.setDisabled(),this.setRequired(),this.setMaxlength()},mounted:function(){this.setLabelFor()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={methods:{isAssetIcon:function(e){return/\w+[\/\\.]\w+/.test(e)}}}},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(32),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(47),s=function(e){n(46)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-ripple",{attrs:{"md-disabled":!e.mdRipple||e.disabled,"md-event-trigger":!1,"md-active":e.mdRippleActive},on:{"update:mdActive":function(t){return e.$emit("update:mdRippleActive",t)}}},[n("div",{staticClass:"md-button-content"},[e._t("default")],2)])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("MutationObserver"in window){var r=new window.MutationObserver(n);return r.observe(e,t),{disconnect:function(){r.disconnect()}}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(63)),a=r(n(87)),s=r(n(89)),t.default=new i.default({name:"MdField",components:{MdClearIcon:o.default,MdPasswordOffIcon:a.default,MdPasswordOnIcon:s.default},props:{mdInline:Boolean,mdClearable:Boolean,mdCounter:{type:Boolean,default:!0},mdTogglePassword:{type:Boolean,default:!0}},data:function(){return{showPassword:!1,MdField:{value:null,focused:!1,highlighted:!1,disabled:!1,required:!1,placeholder:!1,textarea:!1,autogrow:!1,maxlength:null,counter:null,password:null,togglePassword:!1,clear:!1,file:!1}}},provide:function(){return{MdField:this.MdField}},computed:{stringValue:function(){return(this.MdField.value||0===this.MdField.value)&&""+this.MdField.value},hasCounter:function(){return this.mdCounter&&(this.MdField.maxlength||this.MdField.counter)},hasPasswordToggle:function(){return this.mdTogglePassword&&this.MdField.password},hasValue:function(){return this.stringValue&&this.stringValue.length>0},valueLength:function(){return this.stringValue?this.stringValue.length:0},fieldClasses:function(){return{"md-inline":this.mdInline,"md-clearable":this.mdClearable,"md-focused":this.MdField.focused,"md-highlight":this.MdField.highlighted,"md-disabled":this.MdField.disabled,"md-required":this.MdField.required,"md-has-value":this.hasValue,"md-has-placeholder":this.MdField.placeholder,"md-has-textarea":this.MdField.textarea,"md-has-password":this.MdField.password,"md-has-file":this.MdField.file,"md-has-select":this.MdField.select,"md-autogrow":this.MdField.autogrow}}},methods:{clearInput:function(){var e=this;this.MdField.clear=!0,this.$emit("md-clear"),this.$nextTick().then((function(){e.MdField.clear=!1}))},togglePassword:function(){this.MdField.togglePassword=!this.MdField.togglePassword},onBlur:function(){this.MdField.highlighted=!1}}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdClearIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdPasswordOffIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdPasswordOnIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(54),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(92),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=n(11),s=r(a),c=r(n(42)),t.default=new o.default({name:"MdInput",mixins:[c.default],inject:["MdField"],props:{id:{type:String,default:function(){return"md-input-"+(0,s.default)()}},type:{type:String,default:"text"}},computed:{toggleType:function(){return this.MdField.togglePassword},isPassword:function(){return"password"===this.type},listeners:function(){var e=i({},this.$listeners);return delete e.input,e}},watch:{type:function(e){this.setPassword(this.isPassword)},toggleType:function(e){e?this.setTypeText():this.setTypePassword()}},methods:{setPassword:function(e){this.MdField.password=e,this.MdField.togglePassword=!1},setTypePassword:function(){this.$el.type="password"},setTypeText:function(){this.$el.type="text"}},created:function(){this.setPassword(this.isPassword)},beforeDestroy:function(){this.setPassword(!1)}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(27)),t.default={name:"MdOverlay",components:{MdPortal:r.default},props:{mdActive:Boolean,mdAttachToParent:Boolean,mdFixed:Boolean},computed:{overlayClasses:function(){return{"md-fixed":this.mdFixed}}}}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(40),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(66)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdList",data:function(){return{MdList:{expandable:[],expandATab:this.expandATab,pushExpandable:this.pushExpandable,removeExpandable:this.removeExpandable}}},provide:function(){return{MdList:this.MdList}},props:{mdExpandSingle:{default:!1}},methods:{expandATab:function(e){this.mdExpandSingle&&e&&this.MdList.expandable.filter((function(t){return t!==e})).forEach((function(e){return e.close()}))},pushExpandable:function(e){var t=this.MdList.expandable;t.find((function(t){return t===e}))||(this.MdList.expandable=t.concat([e]))},removeExpandable:function(e){var t=this.MdList.expandable;t.find((function(t){return t===e}))&&(this.MdList.expandable=t.filter((function(t){return t!==e})))}}})},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(55),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(95),s=function(e){n(94)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r),t.default={name:"MdFocusTrap",abstract:!0,methods:{setFocus:function(){var e=this;window.setTimeout((function(){e.$el.tagName&&(e.$el.setAttribute("tabindex","-1"),e.$el.focus())}),20)}},mounted:function(){this.setFocus()},render:function(){try{var e=this.$slots.default;if(!e)return null;if(e.length>1)throw Error();return e[0]}catch(e){i.default.util.warn("MdFocusTrap can only render one, and exactly one child component.",this)}return null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){return t&&t.indexOf("click")>=0&&/iP/i.test(navigator.userAgent)&&(e.style.cursor="pointer"),e.addEventListener(t,n,r||!1),{destroy:function(){e.removeEventListener(t,n)}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(10),o=r(i),a=n(60),s=r(a),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=arguments[1];return{destroy:(0,s.default)(e,"resize",(function(){(0,o.default)(t)}),{passive:!0}).destroy}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(49),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(91),s=function(e){n(85)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(50),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(86),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";t.a=function(e){var t,n,i,o;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return t=1,o=((i=(n=Object(r.a)(e)).getUTCDay())<t?7:0)+i-t,n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n};var r=n(9)},function(e,t,n){"use strict";var r,i;t.a=function(e,t){var n,o,a,s,c,l,u,d;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(s=null==(a=(o=(n=t||{}).locale)&&o.options&&o.options.weekStartsOn)?0:Object(r.a)(a),!((c=null==n.weekStartsOn?s:Object(r.a)(n.weekStartsOn))>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");return d=((u=(l=Object(i.a)(e)).getUTCDay())<c?7:0)+u-c,l.setUTCDate(l.getUTCDate()-d),l.setUTCHours(0,0,0,0),l},r=n(17),i=n(9)},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(e){return e&&"[object Function]"==={}.toString.call(e)}function r(e,t){var n;return 1!==e.nodeType?[]:(n=e.ownerDocument.defaultView.getComputedStyle(e,null),t?n[t]:n)}function i(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function o(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=r(e),n=t.overflow,a=t.overflowX;return/(auto|scroll|overlay)/.test(n+t.overflowY+a)?e:o(i(e))}function a(e){return 11===e?W:10===e?Y:W||Y}function s(e){var t,n,i;if(!e)return document.documentElement;for(t=a(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;return(i=n&&n.nodeName)&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===r(n,"position")?s(n):n:e?e.ownerDocument.documentElement:document.documentElement}function c(e){return null!==e.parentNode?c(e.parentNode):e}function l(e,t){var n,r,i,o,a,u;return e&&e.nodeType&&t&&t.nodeType?(r=(n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)?e:t,i=n?t:e,(o=document.createRange()).setStart(r,0),o.setEnd(i,0),e!==(a=o.commonAncestorContainer)&&t!==a||r.contains(i)?function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||s(e.firstElementChild)===e)}(a)?a:s(a):(u=c(e)).host?l(u.host,t):l(e,c(t).host)):document.documentElement}function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r="top"===n?"scrollTop":"scrollLeft",i=e.nodeName;return"BODY"===i||"HTML"===i?(t=e.ownerDocument.documentElement,(e.ownerDocument.scrollingElement||t)[r]):e[r]}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=u(t,"top"),i=u(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function f(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function h(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],a(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function p(e){var t=e.body,n=e.documentElement,r=a(10)&&getComputedStyle(n);return{height:h("Height",t,n,r),width:h("Width",t,n,r)}}function m(e){return X({},e,{right:e.left+e.width,bottom:e.top+e.height})}function v(e){var t,n,i,o,s,c,l,d,h,v={};try{a(10)?(v=e.getBoundingClientRect(),t=u(e,"top"),n=u(e,"left"),v.top+=t,v.left+=n,v.bottom+=t,v.right+=n):v=e.getBoundingClientRect()}catch(e){}return i={left:v.left,top:v.top,width:v.right-v.left,height:v.bottom-v.top},s=(o="HTML"===e.nodeName?p(e.ownerDocument):{}).width||e.clientWidth||i.right-i.left,c=o.height||e.clientHeight||i.bottom-i.top,l=e.offsetWidth-s,d=e.offsetHeight-c,(l||d)&&(l-=f(h=r(e),"x"),d-=f(h,"y"),i.width-=l,i.height-=d),m(i)}function g(e,t){var n,i,s,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=a(10),u="HTML"===t.nodeName,f=v(e),h=v(t),p=o(e),g=r(t),b=parseFloat(g.borderTopWidth,10),y=parseFloat(g.borderLeftWidth,10);return c&&u&&(h.top=Math.max(h.top,0),h.left=Math.max(h.left,0)),(n=m({top:f.top-h.top-b,left:f.left-h.left-y,width:f.width,height:f.height})).marginTop=0,n.marginLeft=0,!l&&u&&(i=parseFloat(g.marginTop,10),s=parseFloat(g.marginLeft,10),n.top-=b-i,n.bottom-=b-i,n.left-=y-s,n.right-=y-s,n.marginTop=i,n.marginLeft=s),(l&&!c?t.contains(p):t===p&&"BODY"!==p.nodeName)&&(n=d(n,t)),n}function b(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=g(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:u(n),s=t?0:u(n,"left");return m({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}function y(e){var t,n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===r(e,"position")||!!(t=i(e))&&y(t))}function k(e){if(!e||!e.parentElement||a())return document.documentElement;for(var t=e.parentElement;t&&"none"===r(t,"transform");)t=t.parentElement;return t||document.documentElement}function w(e,t,n,r){var a,s,c,u,d,f,h=arguments.length>4&&void 0!==arguments[4]&&arguments[4],m={top:0,left:0},v=h?k(e):l(e,t);return"viewport"===r?m=b(v,h):(a=void 0,"scrollParent"===r?"BODY"===(a=o(i(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===r?e.ownerDocument.documentElement:r,s=g(a,v,h),"HTML"!==a.nodeName||y(v)?m=s:(u=(c=p(e.ownerDocument)).height,d=c.width,m.top+=s.top-s.marginTop,m.bottom=u+s.top,m.left+=s.left-s.marginLeft,m.right=d+s.left)),f="number"==typeof(n=n||0),m.left+=f?n:n.left||0,m.top+=f?n:n.top||0,m.right-=f?n:n.right||0,m.bottom-=f?n:n.bottom||0,m}function _(e){return e.width*e.height}function C(e,t,n,r,i){var o,a,s,c,l,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return-1===e.indexOf("auto")?e:(o=w(n,r,u,i),a={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},((c=(s=Object.keys(a).map((function(e){return X({key:e},a[e],{area:_(a[e])})})).sort((function(e,t){return t.area-e.area}))).filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}))).length>0?c[0].key:s[0].key)+((l=e.split("-")[1])?"-"+l:""))}function A(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return g(n,r?k(t):l(t,n),r)}function x(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function S(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function M(e,t,n){var r,i,o,a,s,c,l;return n=n.split("-")[0],i={width:(r=x(e)).width,height:r.height},s=(o=-1!==["right","left"].indexOf(n))?"left":"top",c=o?"height":"width",l=o?"width":"height",i[a=o?"top":"left"]=t[a]+t[c]/2-r[c]/2,i[s]=n===s?t[s]-r[l]:t[S(s)],i}function E(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function T(e,t,r){return(void 0===r?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=E(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",r))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=e.function||e.fn;e.enabled&&n(r)&&(t.offsets.popper=m(t.offsets.popper),t.offsets.reference=m(t.offsets.reference),t=r(t,e))})),t}function D(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=C(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=M(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=T(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function O(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function P(e){var t,n,r,i=[!1,"ms","Webkit","Moz","O"],o=e.charAt(0).toUpperCase()+e.slice(1);for(t=0;t<i.length;t++)if(r=(n=i[t])?""+n+o:e,void 0!==document.body.style[r])return r;return null}function I(){return this.state.isDestroyed=!0,O(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[P("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function j(e){var t=e.ownerDocument;return t?t.defaultView:window}function N(e,t,n,r){n.updateBound=r,j(e).addEventListener("resize",n.updateBound,{passive:!0});var i=o(e);return function e(t,n,r,i){var a="BODY"===t.nodeName,s=a?t.ownerDocument.defaultView:t;s.addEventListener(n,r,{passive:!0}),a||e(o(s.parentNode),n,r,i),i.push(s)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function R(){this.state.eventsEnabled||(this.state=N(this.reference,this.options,this.state,this.scheduleUpdate))}function L(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return j(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function B(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function F(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&B(t[n])&&(r="px"),e.style[n]=t[n]+r}))}function z(e,t,n){var r,i,o=E(e,(function(e){return e.name===t})),a=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));return a||(r="`"+t+"`",i="`"+n+"`",console.warn(i+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),a}function V(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ee.indexOf(e),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}function $(e,t,n,r){var i,o=[0,0],a=-1!==["right","left"].indexOf(r),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),c=s.indexOf(E(s,(function(e){return-1!==e.search(/,|\s/)})));return s[c]&&-1===s[c].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),i=/\s*,\s*|\s+/,(-1!==c?[s.slice(0,c).concat([s[c].split(i)[0]]),[s[c].split(i)[1]].concat(s.slice(c+1))]:[s]).map((function(e,r){var i=(1===r?!a:a)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i,o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],s=o[2];if(!a)return e;if(0===s.indexOf("%")){switch(i=void 0,s){case"%p":i=n;break;case"%":case"%r":default:i=r}return m(i)[t]/100*a}return"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a:a}(e,i,t,n)}))})).forEach((function(e,t){e.forEach((function(n,r){B(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var H,U,q,W,Y,K,G,Q,X,J,Z,ee,te,ne,re,ie="undefined"!=typeof window&&"undefined"!=typeof document,oe=["Edge","Trident","Firefox"],ae=0;for(H=0;H<oe.length;H+=1)if(ie&&navigator.userAgent.indexOf(oe[H])>=0){ae=1;break}U=ie&&window.Promise,q=U?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),ae))}},W=ie&&!(!window.MSInputMethodContext||!document.documentMode),Y=ie&&/MSIE 10/.test(navigator.userAgent),K=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},G=function(){function e(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Q=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},X=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},J=ie&&/Firefox/i.test(navigator.userAgent),ee=(Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"]).slice(3),te={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},ne={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,r,i,o,a,s,c=e.placement,l=c.split("-")[0],u=c.split("-")[1];return u&&(n=(t=e.offsets).reference,r=t.popper,a=(i=-1!==["bottom","top"].indexOf(l))?"width":"height",s={start:Q({},o=i?"left":"top",n[o]),end:Q({},o,n[o]+n[a]-r[a])},e.offsets.popper=X({},r,s[u])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,i=e.placement,o=e.offsets,a=o.popper,s=o.reference,c=i.split("-")[0];return n=B(+r)?[+r,0]:$(r,a,s,c),"left"===c?(a.top+=n[0],a.left-=n[1]):"right"===c?(a.top+=n[0],a.left+=n[1]):"top"===c?(a.left+=n[0],a.top-=n[1]):"bottom"===c&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n,r,i,o,a,c,l,u,d,f=t.boundariesElement||s(e.instance.popper);return e.instance.reference===f&&(f=s(f)),n=P("transform"),i=(r=e.instance.popper.style).top,o=r.left,a=r[n],r.top="",r.left="",r[n]="",c=w(e.instance.popper,e.instance.reference,t.padding,f,e.positionFixed),r.top=i,r.left=o,r[n]=a,t.boundaries=c,l=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),Q({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),Q({},n,r)}},l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=X({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[l]),n[c]>o(r[s])&&(e.offsets.popper[c]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n,i,o,a,s,c,l,u,d,f,h,p,v,g,b,y,k,w;if(!z(e.instance.modifiers,"arrow","keepTogether"))return e;if("string"==typeof(i=t.element)){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;return o=e.placement.split("-")[0],s=(a=e.offsets).popper,c=a.reference,u=(l=-1!==["left","right"].indexOf(o))?"height":"width",f=(d=l?"Top":"Left").toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",v=x(i)[u],c[p]-v<s[f]&&(e.offsets.popper[f]-=s[f]-(c[p]-v)),c[f]+v>s[p]&&(e.offsets.popper[f]+=c[f]+v-s[p]),e.offsets.popper=m(e.offsets.popper),g=c[f]+c[u]/2-v/2,b=r(e.instance.popper),y=parseFloat(b["margin"+d],10),k=parseFloat(b["border"+d+"Width"],10),w=g-e.offsets.popper[f]-y-k,w=Math.max(Math.min(s[u]-v,w),0),e.arrowElement=i,e.offsets.arrow=(Q(n={},f,Math.round(w)),Q(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){var n,r,i,o,a;if(O(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;switch(n=w(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=S(r),o=e.placement.split("-")[1]||"",a=[],t.behavior){case te.FLIP:a=[r,i];break;case te.CLOCKWISE:a=V(r);break;case te.COUNTERCLOCKWISE:a=V(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){var l,u,d,f,h,p,m,v,g,b,y,k,w;if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],i=S(r),l=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===r&&d(l.right)>d(u.left)||"right"===r&&d(l.left)<d(u.right)||"top"===r&&d(l.bottom)>d(u.top)||"bottom"===r&&d(l.top)<d(u.bottom),h=d(l.left)<d(n.left),p=d(l.right)>d(n.right),m=d(l.top)<d(n.top),v=d(l.bottom)>d(n.bottom),g="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===o&&h||b&&"end"===o&&p||!b&&"start"===o&&m||!b&&"end"===o&&v),k=!!t.flipVariationsByContent&&(b&&"start"===o&&p||b&&"end"===o&&h||!b&&"start"===o&&v||!b&&"end"===o&&m),w=y||k,(f||g||w)&&(e.flipped=!0,(f||g)&&(r=a[c+1]),w&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=X({},e.offsets.popper,M(e.instance.popper,e.offsets.reference,e.placement)),e=T(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=S(t),e.offsets.popper=m(i),e}},hide:{order:800,enabled:!0,fn:function(e){var t,n;if(!z(e.instance.modifiers,"hide","preventOverflow"))return e;if(t=e.offsets.reference,n=E(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries,t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n,r,i,o,a,c,l,u,d,f,h,p,m,g=t.x,b=t.y,y=e.offsets.popper,k=E(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;return void 0!==k&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"),n=void 0!==k?k:t.gpuAcceleration,i=v(r=s(e.instance.popper)),o={position:y.position},a=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},c=o(i.width),l=o(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?u||d||c%2==l%2?o:a:s,h=t?o:s;return{left:f(c%2==1&&l%2==1&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!J),c="bottom"===g?"top":"bottom",l="right"===b?"left":"right",u=P("transform"),f="bottom"===c?"HTML"===r.nodeName?-r.clientHeight+a.bottom:-i.height+a.bottom:a.top,d="right"===l?"HTML"===r.nodeName?-r.clientWidth+a.right:-i.width+a.right:a.left,n&&u?(o[u]="translate3d("+d+"px, "+f+"px, 0)",o[c]=0,o[l]=0,o.willChange="transform"):(h="bottom"===c?-1:1,p="right"===l?-1:1,o[c]=f*h,o[l]=d*p,o.willChange=c+", "+l),m={"x-placement":e.placement},e.attributes=X({},m,e.attributes),e.styles=X({},o,e.styles),e.arrowStyles=X({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return F(e.instance.popper,e.styles),function(e,t){Object.keys(t).forEach((function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)}))}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&F(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=A(i,t,e,n.positionFixed),a=C(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),F(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},(re=function(){function e(t,r){var i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};K(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=q(this.update.bind(this)),this.options=X({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(X({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){o.options.modifiers[t]=X({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return X({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&n(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update(),(i=this.options.eventsEnabled)&&this.enableEventListeners(),this.state.eventsEnabled=i}return G(e,[{key:"update",value:function(){return D.call(this)}},{key:"destroy",value:function(){return I.call(this)}},{key:"enableEventListeners",value:function(){return R.call(this)}},{key:"disableEventListeners",value:function(){return L.call(this)}}]),e}()).Utils=("undefined"!=typeof window?window:e).PopperUtils,re.placements=Z,re.Defaults=ne,t.default=re}.call(t,n(12))},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(70),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(155),s=function(e){n(154)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdContent",props:{mdTag:{type:String,default:"div"}},render:function(e){return e(this.mdTag,{staticClass:"md-content",class:[this.$mdActiveTheme],attrs:this.$attrs,on:this.$listeners},this.$slots.default)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(27)),a=r(n(58)),s=r(n(59)),t.default=new i.default({name:"MdDialog",components:{MdPortal:o.default,MdOverlay:a.default,MdFocusTrap:s.default},props:{mdActive:Boolean,mdBackdrop:{type:Boolean,default:!0},mdBackdropClass:{type:String,default:"md-dialog-overlay"},mdCloseOnEsc:{type:Boolean,default:!0},mdClickOutsideToClose:{type:Boolean,default:!0},mdFullscreen:{type:Boolean,default:!0},mdAnimateFromSource:Boolean},computed:{dialogClasses:function(){return{"md-dialog-fullscreen":this.mdFullscreen}}},watch:{mdActive:function(e){var t=this;this.$nextTick().then((function(){e?t.$emit("md-opened"):t.$emit("md-closed")}))}},methods:{closeDialog:function(){this.$emit("update:mdActive",!1)},onClick:function(){this.mdClickOutsideToClose&&this.closeDialog(),this.$emit("md-clicked-outside")},onEsc:function(){this.mdCloseOnEsc&&this.closeDialog()}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(97)),a=r(n(43)),t.default=new i.default({name:"MdEmptyState",mixins:[a.default],props:o.default,computed:{emptyStateClasses:function(){return{"md-rounded":this.mdRounded}},emptyStateStyles:function(){if(this.mdRounded){var e=this.mdSize+"px";return{width:e,height:e}}}}})},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),t.default={name:"MdMenu",props:{mdActive:Boolean,mdAlignTrigger:Boolean,mdOffsetX:Number,mdOffsetY:Number,mdFullWidth:Boolean,mdDense:Boolean,mdDirection:r({type:String,default:"bottom-start"},(0,i.default)("md-direction",["top-end","top-start","bottom-end","bottom-start"])),mdCloseOnSelect:{type:Boolean,default:!0},mdCloseOnClick:{type:Boolean,default:!1},mdSize:r({type:String,default:"small"},(0,i.default)("md-size",["auto","small","medium","big","huge"]))},data:function(){return{triggerEl:null,MdMenu:{instance:this,active:this.mdActive,direction:this.mdDirection,size:this.mdSize,alignTrigger:this.mdAlignTrigger,offsetX:this.mdOffsetX,offsetY:this.mdOffsetY,fullWidth:this.mdFullWidth,dense:this.mdDense,closeOnSelect:this.mdCloseOnSelect,closeOnClick:this.mdCloseOnClick,bodyClickObserver:null,windowResizeObserver:null,$el:this.$el}}},provide:function(){return{MdMenu:this.MdMenu}},computed:{isActive:function(){return this.MdMenu.active}},watch:{mdActive:{immediate:!0,handler:function(e){this.MdMenu.active=e}},mdDirection:function(e){this.MdMenu.direction=e},mdSize:function(e){this.MdMenu.size=e},mdAlignTrigger:function(e){this.MdMenu.alignTrigger=e},mdOffsetX:function(e){this.MdMenu.offsetX=e},mdOffsetY:function(e){this.MdMenu.offsetY=e},isActive:function(e){this.$emit("update:mdActive",e),e?this.$emit("md-opened"):this.$emit("md-closed")},mdCloseOnSelect:function(){this.MdMenu.closeOnSelect=this.mdCloseOnSelect},mdCloseOnClick:function(){this.MdMenu.closeOnClick=this.mdCloseOnClick}},methods:{toggleContent:function(e){this.MdMenu.active=!this.MdMenu.active}},mounted:function(){var e=this;this.MdMenu.$el=this.$el,this.$nextTick().then((function(){e.triggerEl=e.$el.querySelector("[md-menu-trigger]"),e.triggerEl&&e.triggerEl.addEventListener("click",e.toggleContent)}))},beforeDestroy:function(){this.triggerEl&&this.triggerEl.removeEventListener("click",this.toggleContent)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s,c,l,u,d,f,h;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=r(n(1)),r(n(8)),s=n(60),c=r(s),l=n(61),u=r(l),d=r(n(56)),f=r(n(59)),h=r(n(74)),t.default=new a.default({name:"MdMenuContent",components:{MdPopover:d.default,MdFocusTrap:f.default,MdList:h.default},props:{mdListClass:[String,Boolean],mdContentClass:[String,Boolean]},inject:["MdMenu"],data:function(){return{highlightIndex:-1,didMount:!1,highlightItems:[],popperSettings:null,menuStyles:""}},computed:{filteredAttrs:function(){var e=this.$attrs;return delete e.id,e},highlightedItem:function(){return this.highlightItems[this.highlightIndex]},shouldRender:function(){return this.MdMenu.active},menuClasses:function(){var e,t="md-menu-content-";return i(e={},t+this.MdMenu.direction,!0),i(e,t+this.MdMenu.size,!0),i(e,"md-menu-content",this.didMount),i(e,"md-shallow",!this.didMount),e},listClasses:function(){return o({"md-dense":this.MdMenu.dense},this.mdListClass)}},watch:{shouldRender:function(e){var t=this;e&&(this.setPopperSettings(),this.$nextTick().then((function(){t.setInitialHighlightIndex(),t.createClickEventObserver(),t.createResizeObserver(),t.createKeydownListener()})))}},methods:{setPopperSettings:function(){var e=this.MdMenu,t=e.direction,n=(e.alignTrigger,this.getOffsets()),r=n.offsetX,i=n.offsetY;this.hasCustomOffsets()||(this.MdMenu.instance.$el&&this.MdMenu.instance.$el.offsetHeight&&(i=-this.MdMenu.instance.$el.offsetHeight-11),t.includes("start")?r=-8:t.includes("end")&&(r=8)),this.popperSettings={placement:t,modifiers:{keepTogether:{enabled:!0},flip:{enabled:!1},offset:{offset:r+", "+i}}}},setInitialHighlightIndex:function(){var e=this;this.setHighlightItems(),this.highlightItems.forEach((function(t,n){t.classList.contains("md-selected")&&(e.highlightIndex=n-1)}))},setHighlightItems:function(){if(this.$el.querySelectorAll){var e=this.$el.querySelectorAll(".md-list-item-container:not(.md-list-item-default):not([disabled])");this.highlightItems=Array.from(e)}},setHighlight:function(e){this.setHighlightItems(),this.highlightItems.length&&("down"===e?this.highlightIndex===this.highlightItems.length-1?this.highlightIndex=0:this.highlightIndex++:0===this.highlightIndex?this.highlightIndex=this.highlightItems.length-1:this.highlightIndex--,this.clearAllHighlights(),this.setItemHighlight())},clearAllHighlights:function(){this.highlightItems.forEach((function(e){e.parentNode.__vue__.highlighted=!1}))},setItemHighlight:function(){this.highlightedItem&&(this.highlightedItem.parentNode.__vue__.highlighted=!0,this.$parent.$parent.setOffsets&&this.$parent.$parent.setOffsets(this.highlightedItem.parentNode))},setSelection:function(){this.highlightedItem&&this.highlightedItem.parentNode.click()},onEsc:function(){this.MdMenu.active=!1,this.destroyKeyDownListener()},getOffsets:function(){var e=this.getBodyPosition(),t=this.MdMenu.offsetX||0,n=this.MdMenu.offsetY||0;return{offsetX:t-e.x,offsetY:n-e.y}},hasCustomOffsets:function(){var e=this.MdMenu,t=e.offsetX,n=e.offsetY;return!!(e.alignTrigger||n||t)},isMenu:function(e){var t=e.target;return!!this.MdMenu.$el&&this.MdMenu.$el.contains(t)},isMenuContentEl:function(e){var t=e.target;return!!this.$refs.menu&&this.$refs.menu.contains(t)},isBackdropExpectMenu:function(e){return!this.$el.contains(e.target)&&!this.isMenu(e)},createClickEventObserver:function(){var e=this;document&&(this.MdMenu.bodyClickObserver=new c.default(document.body,"click",(function(t){t.stopPropagation(),e.isMenu(t)||!e.MdMenu.closeOnClick&&!e.isBackdropExpectMenu(t)||(e.MdMenu.active=!1,e.MdMenu.bodyClickObserver.destroy(),e.MdMenu.windowResizeObserver.destroy(),e.destroyKeyDownListener())})))},createKeydownListener:function(){window.addEventListener("keydown",this.keyNavigation)},destroyKeyDownListener:function(){window.removeEventListener("keydown",this.keyNavigation)},keyNavigation:function(e){switch(e.key){case"ArrowUp":e.preventDefault(),this.setHighlight("up");break;case"ArrowDown":e.preventDefault(),this.setHighlight("down");break;case"Enter":case"Space":this.setSelection();break;case"Escape":this.onEsc()}},createResizeObserver:function(){this.MdMenu.windowResizeObserver=new u.default(window,this.setStyles)},setupWatchers:function(){this.$watch("MdMenu.direction",this.setPopperSettings),this.$watch("MdMenu.alignTrigger",this.setPopperSettings),this.$watch("MdMenu.offsetX",this.setPopperSettings),this.$watch("MdMenu.offsetY",this.setPopperSettings)},setStyles:function(){this.MdMenu.fullWidth&&(this.menuStyles="\n width: "+this.MdMenu.instance.$el.offsetWidth+"px;\n max-width: "+this.MdMenu.instance.$el.offsetWidth+"px\n ")},getBodyPosition:function(){var e=document.body,t=e.getBoundingClientRect(),n=t.top;return{x:t.left+(void 0!==window.pageXOffset?window.pageXOffset:e.scrollLeft),y:n+(void 0!==window.pageYOffset?window.pageYOffset:e.scrollTop)}}},mounted:function(){var e=this;this.$nextTick().then((function(){e.setHighlightItems(),e.setupWatchers(),e.setStyles(),e.didMount=!0}))},beforeDestroy:function(){this.MdMenu.bodyClickObserver&&this.MdMenu.bodyClickObserver.destroy(),this.MdMenu.windowResizeObserver&&this.MdMenu.windowResizeObserver.destroy(),this.destroyKeyDownListener()}})},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(57),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(99),s=function(e){n(98)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return e.hasOwnProperty("mdExpand")&&!1!==e.mdExpand}function o(e,t){if(i(e))return{"md-expand":function(){return t["md-expand"][0]}}}function a(e,t,n,r){return i(e)?C.default:e.disabled?g.default:function(e,t){return e&&e.$router&&t.to}(t,e)?(w.default.props=(0,d.default)(t,{target:String}),delete w.default.props.href,w.default):e.href?y.default:function(e){var t=Object.keys(e),n=!1;return t.forEach((function(e){l.default.includes(e)&&(n=!0)})),n}(n)?function(e){return function(e){return e.default.some((function(e){return e.componentOptions&&"md-button"===e.componentOptions.tag}))}(e)?m.default:g.default}(r):h.default}var s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_,C,A;Object.defineProperty(t,"__esModule",{value:!0}),s=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},c=n(100),l=r(c),u=n(29),d=r(u),f=n(178),h=r(f),p=n(182),m=r(p),v=n(184),g=r(v),b=n(186),y=r(b),k=n(188),w=r(k),_=n(190),C=r(_),A=r(n(39)),t.default={name:"MdListItem",functional:!0,components:{MdButton:A.default},render:function(e,t){var n=t.parent,r=t.props,i=t.listeners,c=t.data,l=(0,t.slots)(),u=a(r,n,i,l),d="md-list-item";return c.staticClass&&(d+=" "+c.staticClass),e("li",s({},c,{staticClass:d,on:i}),[e(u,{props:r,scopedSlots:o(r,l),staticClass:"md-list-item-container md-button-clean",on:i},l.default)])}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemDefault",mixins:[r.default],methods:{toggleControl:function(){var e=this.$el.querySelector(".md-checkbox-container, .md-switch-container, .md-radio-container");e&&e.click()}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(16)),t.default={name:"MdListItemContent",components:{MdRipple:r.default},props:{mdDisabled:Boolean}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemFakeButton",mixins:[r.default]}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemButton",mixins:[r.default]}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemLink",mixins:[r.default],props:{download:String,href:String,hreflang:String,ping:String,rel:String,target:String,type:String}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemRouter",mixins:[r.default],computed:{routerProps:function(){return this.$props}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(10),o=r(i),a=r(n(192)),s=r(n(30)),t.default={name:"MdListItemExpand",components:{MdArrowDownIcon:a.default},mixins:[s.default],inject:["MdList"],data:function(){return{expandStyles:{},showContent:!1}},props:{mdExpanded:Boolean},computed:{expandClasses:function(){return{"md-active":this.showContent}}},methods:{getChildrenSize:function(){var e=this.$refs.listExpand,t=0;return Array.from(e.children).forEach((function(e){t+=e.offsetHeight})),t},fetchStyle:function(){var e=this;return new Promise((function(t){(0,o.default)((function(){var n=0;e.showContent||(n="auto"),e.expandStyles={height:n},t()}))}))},toggleExpand:function(){var e=this;this.fetchStyle().then((function(){e.showContent=!e.showContent}))},open:function(){var e=this;if(this.showContent)return!1;this.fetchStyle().then((function(){return[e.showContent=!0]}))},close:function(){var e=this;if(!this.showContent)return!1;this.fetchStyle().then((function(){e.showContent=!1}))}},watch:{mdExpanded:function(){this.mdExpanded?this.open():this.close()},showContent:function(){var e=this,t=this.showContent;this.$emit("update:mdExpanded",t),this.$nextTick((function(){return e.$emit(t?"md-expanded":"md-collapsed")})),t&&this.MdList.expandATab(this)}},created:function(){this.MdList.pushExpandable(this)},mounted:function(){this.mdExpanded&&this.open()},beforeDestroy:function(){this.MdList.removeExpandable(this)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdArrowDownIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdToolbar",props:{mdElevation:{type:[String,Number],default:4}}})},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(1)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])},function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-icon",{staticClass:"md-icon-image"},[e._m(0)])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(51),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(88),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(52),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(90),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-field",class:[e.$mdActiveTheme,e.fieldClasses],on:{blur:e.onBlur}},[e._t("default"),e._v(" "),e.hasCounter?n("span",{staticClass:"md-count"},[e._v(e._s(e.valueLength)+" / "+e._s(e.MdField.maxlength||e.MdField.counter))]):e._e(),e._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[e.hasValue&&e.mdClearable?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-clear",attrs:{tabindex:"-1",disabled:e.MdField.disabled},on:{click:e.clearInput}},[n("md-clear-icon")],1):e._e()],1),e._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[e.hasPasswordToggle?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-toggle-password",attrs:{tabindex:"-1"},on:{click:e.togglePassword}},[n(e.MdField.togglePassword?"md-password-on-icon":"md-password-off-icon")],1):e._e()],1)],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return"checkbox"===e.attributes.type?n("input",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e.model},on:{focus:e.onFocus,blur:e.onBlur,change:function(t){var n,r=e.model,i=t.target,o=!!i.checked;Array.isArray(r)?(n=e._i(r,null),i.checked?n<0&&(e.model=r.concat([null])):n>-1&&(e.model=r.slice(0,n).concat(r.slice(n+1)))):e.model=o}}},"input",e.attributes,!1),e.listeners)):"radio"===e.attributes.type?n("input",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{type:"radio"},domProps:{checked:e._q(e.model,null)},on:{focus:e.onFocus,blur:e.onBlur,change:function(t){e.model=null}}},"input",e.attributes,!1),e.listeners)):n("input",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{type:e.attributes.type},domProps:{value:e.model},on:{focus:e.onFocus,blur:e.onBlur,input:function(t){t.target.composing||(e.model=t.target.value)}}},"input",e.attributes,!1),e.listeners))},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o;t.a=function(e,t){var n,a,s,c,l,u,d,f,h,p,m;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(a=(n=Object(i.a)(e,t)).getUTCFullYear(),u=null==(l=(c=(s=t||{}).locale)&&c.options&&c.options.firstWeekContainsDate)?1:Object(r.a)(l),!((d=null==s.firstWeekContainsDate?u:Object(r.a)(s.firstWeekContainsDate))>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");return(f=new Date(0)).setUTCFullYear(a+1,0,d),f.setUTCHours(0,0,0,0),h=Object(o.a)(f,t),(p=new Date(0)).setUTCFullYear(a,0,d),p.setUTCHours(0,0,0,0),m=Object(o.a)(p,t),n.getTime()>=h.getTime()?a+1:n.getTime()>=m.getTime()?a:a-1},r=n(17),i=n(9),o=n(65)},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-portal",{attrs:{"md-attach-to-parent":e.mdAttachToParent}},[n("transition",{attrs:{name:"md-overlay"}},[e.mdActive?n("div",e._g({staticClass:"md-overlay",class:e.overlayClasses},e.$listeners)):e._e()])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,i,o;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=(t=Object(r.a)(e)).getFullYear(),i=t.getMonth(),(o=new Date(0)).setFullYear(n,i+1,0),o.setHours(0,0,0,0),o.getDate()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={mdRounded:Boolean,mdSize:{type:Number,default:420},mdIcon:String,mdLabel:String,mdDescription:String}},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("ul",e._g(e._b({staticClass:"md-list",class:[e.$mdActiveTheme]},"ul",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["click","dblclick","mousedown","mouseup"]},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(216),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(466),s=function(e){n(463)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e){return e&&e.__esModule?e:{default:e}}(n(16)),t.default={components:{MdRipple:i.default},props:{model:[String,Boolean,Object,Number,Array],value:{type:[String,Boolean,Object,Number]},name:[String,Number],required:Boolean,disabled:Boolean,indeterminate:Boolean,trueValue:{default:!0},falseValue:{default:!1}},model:{prop:"model",event:"change"},data:function(){return{rippleActive:!1}},computed:{attrs:function(){var e={id:this.id,name:this.name,disabled:this.disabled,required:this.required,"true-value":this.trueValue,"false-value":this.falseValue};return this.$options.propsData.hasOwnProperty("value")&&(null!==this.value&&"object"===r(this.value)||(e.value=null===this.value||void 0===this.value?"":this.value+"")),e},isSelected:function(){return this.isModelArray?this.model.includes(this.value):this.hasValue?this.model===this.value:this.model===this.trueValue},isModelArray:function(){return Array.isArray(this.model)},checkClasses:function(){return{"md-checked":this.isSelected,"md-disabled":this.disabled,"md-required":this.required,"md-indeterminate":this.indeterminate}},hasValue:function(){return this.$options.propsData.hasOwnProperty("value")}},methods:{removeItemFromModel:function(e){var t=e.indexOf(this.value);-1!==t&&e.splice(t,1)},handleArrayCheckbox:function(){var e=this.model;this.isSelected?this.removeItemFromModel(e):e.push(this.value),this.$emit("change",e)},handleSingleSelectCheckbox:function(){this.$emit("change",this.isSelected?null:this.value)},handleSimpleCheckbox:function(){this.$emit("change",this.isSelected?this.falseValue:this.trueValue)},toggleCheck:function(){this.disabled||(this.rippleActive=!0,this.isModelArray?this.handleArrayCheckbox():this.hasValue?this.handleSingleSelectCheckbox():this.handleSimpleCheckbox())}}}},function(e,t,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(69),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(0)(i.a,null,!1,null,null,null),t.default=a.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{mdSwipeable:Boolean,mdSwipeThreshold:{type:Number,default:150},mdSwipeRestraint:{type:Number,default:100},mdSwipeTime:{type:Number,default:300}},data:function(){return{swipeStart:!1,swipeStartTime:null,swiped:null,touchPosition:{startX:0,startY:0}}},computed:{getSwipeElement:function(){return this.mdSwipeElement||window}},methods:{handleTouchStart:function(e){this.touchPosition.startX=e.touches[0].screenX,this.touchPosition.startY=e.touches[0].screenY,this.swipeStartTime=new Date,this.swipeStart=!0},handleTouchMove:function(e){var t,n,r,i;this.swipeStart&&(t=e.touches[0].screenX,n=e.touches[0].screenY,r=t-this.touchPosition.startX,i=n-this.touchPosition.startY,new Date-this.swipeStartTime<=this.mdSwipeTime&&(Math.abs(r)>=this.mdSwipeThreshold&&Math.abs(i)<=this.mdSwipeRestraint?this.swiped=r<0?"left":"right":Math.abs(i)>=this.mdSwipeThreshold&&Math.abs(r)<=this.mdSwipeRestraint&&(this.swiped=i<0?"up":"down")))},handleTouchEnd:function(){this.touchPosition={startX:0,startY:0},this.swiped=null,this.swipeStart=!1}},mounted:function(){this.mdSwipeable&&(this.getSwipeElement.addEventListener("touchstart",this.handleTouchStart,!1),this.getSwipeElement.addEventListener("touchend",this.handleTouchEnd,!1),this.getSwipeElement.addEventListener("touchmove",this.handleTouchMove,!1))},beforeDestroy:function(){this.mdSwipeable&&(this.getSwipeElement.removeEventListener("touchstart",this.handleTouchStart,!1),this.getSwipeElement.removeEventListener("touchend",this.handleTouchEnd,!1),this.getSwipeElement.removeEventListener("touchmove",this.handleTouchMove,!1))}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(71),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(163),s=function(e){n(162)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(13),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(72),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(167),s=function(e){n(166)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(73),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(169),s=function(e){n(168)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(75),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(177)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return!e||!1!==e[t]};t.default=function(e,t,n){var i=r(n,"leading"),o=(r(n,"trailing"),null);return function(){var t=this,n=arguments,r=function(){return e.apply(t,n)};if(o)return!1;i&&r()}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(84),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(227),s=function(e){n(226)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function o(e,t){return e&&g.includes(e.slot)||function(e){return e&&g.includes(i(e.tag))}(t)}function a(e,t,n,r,a){var s=[],l=!1;return e&&e.forEach((function(e){var d,f,h,p=e.data,m=e.componentOptions;if(o(p,m)){if(d=p.slot||i(m.tag),e.data.slot=d,"md-app-drawer"===d){if(f=function(e){return!(!e||""!==e.mdRight&&!e.mdRight)}(m.propsData),l)return void u.default.util.warn("There shouldn't be more than one drawer in a MdApp at one time.");l=!0,e.data.slot+="-"+(f?"right":"left"),e.key=function(e){return JSON.stringify({persistent:e&&e["md-persistent"],permanent:e&&e["md-permanent"]})}(p.attrs),f&&((h=a(v.default,{props:c({},e.data.attrs)})).data.slot="md-app-drawer-right-previous",s.push(h))}e.data.provide=r.Ctor.options.provide,e.context=t,e.functionalContext=n,s.push(e)}})),s}function s(e){var t=e.filter((function(e){return"md-app-drawer"===(e.data.slot||i(e.componentOptions.tag))}));return t.length?t:[]}var c,l,u,d,f,h,p,m,v,g;Object.defineProperty(t,"__esModule",{value:!0}),c=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},l=n(2),u=r(l),d=n(237),f=r(d),h=n(240),p=r(h),m=n(243),v=r(m),g=["md-app-toolbar","md-app-drawer","md-app-content"],t.default={name:"MdApp",functional:!0,render:function(e,t){var n,r=t.children,i=t.props,o=t.data,l=f.default,u=e(l),d=a(r,u.context,u.functionalContext,u.componentOptions,e);return s(d).forEach((function(e){e&&function(e){var t=e&&e["md-permanent"];return t&&("clipped"===t||"card"===t)}(e.data.attrs)&&(l=p.default)})),n={},o.staticClass&&o.staticClass.split(/\s+/).forEach((function(e){0!==e.length&&(n[e]=!0)})),e(l,{attrs:i,class:c({},n,o.class),style:c({},o.staticStyle,o.style)},d)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(114)),t.default=new i.default({name:"MdAppSideDrawer",mixins:[o.default]})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(10),a=r(o),s=r(n(8)),c=["fixed","fixed-last","reveal","overlap","flexible"],t.default={props:{mdMode:i({type:String},(0,s.default)("md-mode",c)),mdWaterfall:Boolean,mdScrollbar:{type:Boolean,default:!0}},data:function(){return{revealTimer:null,revealLastPos:0,manualTick:!1,MdApp:{options:{mode:null,waterfall:!1,flexible:!1},toolbar:{element:null,titleElement:null,height:"0px",initialHeight:0,top:0,titleSize:20,hasElevation:!0,revealActive:!1,fixedLastActive:!1,fixedLastHeight:!1,overlapOff:!1},drawer:{initialWidth:0,active:!1,mode:"temporary",submode:null,width:0,right:!1}}}},provide:function(){return{MdApp:this.MdApp}},computed:{isFixed:function(){return this.mdMode&&"fixed"!==this.mdMode},isDrawerMini:function(){return"persistent"===this.MdApp.drawer.mode&&"mini"===this.MdApp.drawer.submode},contentPadding:function(){return this.MdApp.drawer,this.MdApp.drawer.active&&"persistent"===this.MdApp.drawer.mode&&"full"===this.MdApp.drawer.submode?this.MdApp.drawer.width:0},contentStyles:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"padding-"+(this.MdApp.drawer.right?"right":"left"),this.contentPadding)},containerStyles:function(){var e={};return this.isFixed&&(e["margin-top"]=this.MdApp.toolbar.initialHeight+"px"),this.isDrawerMini&&(e["padding-"+(this.MdApp.drawer.right?"right":"left")]=this.MdApp.drawer.active?0:this.MdApp.drawer.initialWidth+"px"),e},scrollerClasses:function(){if(this.mdScrollbar)return"md-scrollbar"},appClasses:function(){return{"md-waterfall":this.mdWaterfall,"md-flexible":"flexible"===this.mdMode,"md-fixed":"fixed"===this.mdMode,"md-fixed-last":"fixed-last"===this.mdMode,"md-reveal":"reveal"===this.mdMode,"md-overlap":"overlap"===this.mdMode,"md-drawer-active":this.MdApp.drawer.active}}},watch:{mdMode:function(e){this.MdApp.options.mode=e},mdWaterfall:function(e){this.MdApp.options.waterfall=e,this.setToolbarElevation()}},methods:{setToolbarElevation:function(){this.MdApp.toolbar.hasElevation=!this.mdWaterfall},setToolbarTimer:function(e){var t=this;window.clearTimeout(this.revealTimer),this.revealTimer=window.setTimeout((function(){t.revealLastPos=e}),100)},setToolbarMarginAndHeight:function(e,t){this.MdApp.toolbar.top=e,this.MdApp.toolbar.height=t},getToolbarConstrants:function(e){var t=this.MdApp.toolbar.element.offsetHeight,n=t+10,r=e.target.scrollTop;return this.MdApp.toolbar.initialHeight||(this.MdApp.toolbar.initialHeight=t),{toolbarHeight:t,safeAmount:10,threshold:n,scrollTop:r,initialHeight:this.MdApp.toolbar.initialHeight}},handleWaterfallScroll:function(e){var t=this.getToolbarConstrants(e),n=t.threshold,r=t.scrollTop,i=4;"reveal"===this.mdMode&&(i=n),this.MdApp.toolbar.hasElevation=r>=i},handleFlexibleMode:function(e){var t,n,r,i,o,a,s=this.getToolbarConstrants(e),c=s.scrollTop,l=s.initialHeight,u=this.MdApp.toolbar.element,d=u.querySelector(".md-toolbar-row:first-child").offsetHeight,f=l-c,h=c<l-d;d&&(u.style.height=h?f+"px":d+"px"),(t=this.MdApp.toolbar.titleElement)&&(n=this.MdApp.toolbar.titleSize,h?(r=Math.max(0,1-(c-n)/(f+n+1e-6))*(n-20)+20,t.style.fontSize=r+"px"):t.style.fontSize="20px"),o=(i=this.getToolbarConstrants(e)).threshold,a=i.toolbarHeight,this.setToolbarMarginAndHeight(c-o,a)},handleRevealMode:function(e){var t=this.getToolbarConstrants(e),n=t.toolbarHeight,r=t.safeAmount,i=t.threshold,o=t.scrollTop;this.setToolbarTimer(o),this.setToolbarMarginAndHeight(o-i,n),this.MdApp.toolbar.revealActive=!(o>=i)||this.revealLastPos>o+r},handleFixedLastMode:function(e){var t=this.getToolbarConstrants(e),n=t.scrollTop,r=t.toolbarHeight,i=t.safeAmount,o=this.MdApp.toolbar.element.querySelector(".md-toolbar-row:first-child").offsetHeight;this.setToolbarTimer(n),this.setToolbarMarginAndHeight(n-o,r),this.MdApp.toolbar.fixedLastHeight=o,this.MdApp.toolbar.fixedLastActive=!(n>=o)||this.revealLastPos>n+i},handleOverlapMode:function(e){var t=this.getToolbarConstrants(e),n=t.toolbarHeight,r=t.scrollTop,i=t.initialHeight,o=this.MdApp.toolbar.element,a=o.querySelector(".md-toolbar-row:first-child").offsetHeight,s=i-r-100*r/(i-a-a/1.5);a&&(r<i-a&&s>=a?(this.MdApp.toolbar.overlapOff=!1,o.style.height=s+"px"):(this.MdApp.toolbar.overlapOff=!0,o.style.height=a+"px")),this.setToolbarMarginAndHeight(r,n)},handleModeScroll:function(e){"reveal"===this.mdMode?this.handleRevealMode(e):"fixed-last"===this.mdMode?this.handleFixedLastMode(e):"overlap"===this.mdMode?this.handleOverlapMode(e):"flexible"===this.mdMode&&this.handleFlexibleMode(e)},handleScroll:function(e){var t=this;this.MdApp.toolbar.element&&(0,a.default)((function(){t.mdWaterfall&&t.handleWaterfallScroll(e),t.mdMode&&t.handleModeScroll(e)}))}},created:function(){this.MdApp.options.mode=this.mdMode,this.MdApp.options.waterfall=this.mdWaterfall,this.setToolbarElevation()},mounted:function(){var e={target:{scrollTop:0}};"reveal"===this.mdMode&&(this.MdApp.toolbar.revealActive=!0,this.handleRevealMode(e)),"flexible"===this.mdMode&&(this.MdApp.toolbar.revealActive=!0,this.handleFlexibleMode(e)),"fixed-last"===this.mdMode&&(this.MdApp.toolbar.fixedLastActive=!0,this.handleFixedLastMode(e)),"overlap"===this.mdMode&&this.handleOverlapMode(e)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(114)),t.default=new i.default({name:"MdAppInternalDrawer",mixins:[o.default]})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),t.default=new o.default({name:"MdDrawer",props:{mdPermanent:i({type:String},(0,a.default)("md-permanent",["full","clipped","card"])),mdPersistent:i({type:String},(0,a.default)("md-persistent",["mini","full"])),mdActive:Boolean,mdFixed:Boolean},computed:{drawerClasses:function(){var e={"md-temporary":this.isTemporary,"md-persistent":this.mdPersistent,"md-permanent":this.mdPermanent,"md-active":this.mdActive,"md-fixed":this.mdFixed};return this.mdPermanent&&(e["md-permanent-"+this.mdPermanent]=!0),this.mdPersistent&&(e["md-persistent-"+this.mdPersistent]=!0),e},isTemporary:function(){return!this.mdPermanent&&!this.mdPersistent}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdAppToolbar",inject:["MdApp"],computed:{toolbarClasses:function(){return{"md-no-elevation":!this.MdApp.toolbar.hasElevation,"md-reveal-active":this.MdApp.toolbar.revealActive,"md-fixed-last-active":this.MdApp.toolbar.fixedLastActive,"md-overlap-off":this.MdApp.toolbar.overlapOff}},toolbarStyles:function(){var e={top:this.MdApp.toolbar.top+"px"};return this.MdApp.toolbar.fixedLastActive&&(e.transform="translate3D(0, "+this.MdApp.toolbar.fixedLastHeight+"px, 0)"),e}},mounted:function(){var e=this.$el.querySelector(".md-title, .md-display-1, .md-display-2");this.MdApp.toolbar.element=this.$el,this.MdApp.toolbar.titleElement=e,e&&(this.MdApp.toolbar.titleSize=parseInt(window.getComputedStyle(e).fontSize,10))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdAppContent",inject:["MdApp"],computed:{showCard:function(){return this.MdApp.options&&"overlap"===this.MdApp.options.mode}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdAppDrawer",inject:["MdApp"],data:function(){return{drawerElement:{mdActive:null,mode:null,submode:null},initialized:!1}},props:{mdRight:{type:Boolean,default:!1},mdActive:{type:Boolean,default:!1}},computed:{visible:function(){return this.drawerElement.mdActive},mode:function(){return this.drawerElement.mode},submode:function(){return this.drawerElement.submode}},watch:{visible:function(e){this.MdApp.drawer.width=this.getDrawerWidth(),this.MdApp.drawer.active=e},mode:function(e){this.MdApp.drawer.mode=e},submode:function(e){this.MdApp.drawer.submode=e},mdRight:function(e){this.MdApp.drawer.right=e}},methods:{getDrawerWidth:function(){return this.$el?window.getComputedStyle(this.$el).width:0},updateDrawerData:function(){this.MdApp.drawer.width=this.getDrawerWidth(),this.MdApp.drawer.active=this.visible,this.MdApp.drawer.mode=this.mode,this.MdApp.drawer.submode=this.submode,this.MdApp.drawer.right=this.mdRight},clearDrawerData:function(){this.MdApp.drawer.width=0,this.MdApp.drawer.active=!1,this.MdApp.drawer.mode="temporary",this.MdApp.drawer.submode=null,this.MdApp.drawer.initialWidth=0}},mounted:function(){var e=this;this.$nextTick().then((function(){e.MdApp.drawer.initialWidth=e.$el.offsetWidth,e.drawerElement=e.$refs.drawer,e.updateDrawerData(),e.initialized=!0}))},updated:function(){this.drawerElement=this.$refs.drawer},beforeDestroy:function(){this.clearDrawerData()}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=r(n(1)),s=r(n(8)),c=r(n(256)),t.default=new a.default({name:"MdBadge",components:{MdBadgeStandalone:c.default},props:{mdContent:[String,Number],mdPosition:o({type:String,default:"top"},(0,s.default)("md-position",["top","bottom"])),mdDense:Boolean},computed:{hasDefaultSlot:function(){return!!this.$slots.default},badgeClasses:function(){var e,t=this.getStaticClass(),n=this.$vnode.data.class;return o((i(e={},"md-position-"+this.mdPosition,!0),i(e,"md-dense",this.mdDense),e),t,n)},styles:function(){var e=this.$vnode.data.staticStyle,t=this.$vnode.data.style;return o({},e,t)}},methods:{getStaticClass:function(){var e=this.$vnode.data.staticClass;return e?e.split(" ").filter((function(e){return e})).reduce((function(e,t){return e[t]=!0,e}),{}):{}}}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdBadgeStandalone"})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=n(263),s=r(a),c=n(264),l=r(c),u=r(n(8)),t.default={name:"MdAutocomplete",props:{value:{type:null,required:!0},mdDense:Boolean,mdLayout:o({type:String,default:"floating"},(0,u.default)("md-layout",["floating","box"])),mdOpenOnFocus:{type:Boolean,default:!0},mdFuzzySearch:{type:Boolean,default:!0},mdOptions:{type:[Array,Promise],required:!0},mdInputName:String,mdInputId:String,mdInputMaxlength:[String,Number],mdInputPlaceholder:[String,Number]},data:function(){return{searchTerm:this.value,showMenu:!1,triggerPopover:!1,isPromisePending:!1,filteredAsyncOptions:[]}},computed:{isBoxLayout:function(){return"box"===this.mdLayout},fieldClasses:function(){if(this.isBoxLayout)return"md-autocomplete-box"},contentClasses:function(){if(this.isBoxLayout)return"md-autocomplete-box-content"},shouldFilter:function(){return this.mdOptions[0]&&this.searchTerm},filteredStaticOptions:function(){if(this.isPromise(this.mdOptions))return!1;var e=this.mdOptions[0];if(this.shouldFilter){if("string"==typeof e)return this.filterByString();if("object"===(void 0===e?"undefined":i(e)))return this.filterByObject()}return this.mdOptions},hasFilteredItems:function(){return this.filteredStaticOptions.length>0||this.filteredAsyncOptions.length>0},hasScopedEmptySlot:function(){return this.$scopedSlots["md-autocomplete-empty"]}},watch:{mdOptions:{deep:!0,immediate:!0,handler:function(){var e=this;this.isPromise(this.mdOptions)&&(this.isPromisePending=!0,this.mdOptions.then((function(t){e.filteredAsyncOptions=t,e.isPromisePending=!1})))}},value:function(e){this.searchTerm=e}},methods:{getOptions:function(){return this.isPromise(this.mdOptions)?this.filteredAsyncOptions:this.filteredStaticOptions},isPromise:function(e){return(0,l.default)(e)},matchText:function(e){var t=e.toLowerCase(),n=this.searchTerm.toLowerCase();return this.mdFuzzySearch?(0,s.default)(n,t):t.includes(n)},filterByString:function(){var e=this;return this.mdOptions.filter((function(t){return e.matchText(t)}))},filterByObject:function(){var e=this;return this.mdOptions.filter((function(t){var n,r=Object.values(t),i=r.length;for(n=0;n<=i;n++)if("string"==typeof r[n]&&e.matchText(r[n]))return!0}))},openOnFocus:function(){this.mdOpenOnFocus&&this.showOptions()},onInput:function(e){this.$emit("input",e),this.mdOpenOnFocus||this.showOptions(),"inputevent"!==(""+this.searchTerm.constructor).match(/function (\w*)/)[1].toLowerCase()&&this.$emit("md-changed",this.searchTerm)},showOptions:function(){var e=this;if(this.showMenu)return!1;this.showMenu=!0,this.$nextTick((function(){e.triggerPopover=!0,e.$emit("md-opened")}))},hideOptions:function(){var e=this;this.$nextTick((function(){e.triggerPopover=!1,e.$emit("md-closed")}))},selectItem:function(e,t){var n=t.target.textContent.trim();this.searchTerm=n,this.$emit("input",e),this.$emit("md-selected",e),this.hideOptions()}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdAvatar"})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),s=r(n(16)),t.default=new o.default({name:"MdBottomBar",components:{MdRipple:s.default},props:{mdSyncRoute:Boolean,mdActiveItem:[String,Number],mdType:i({type:String,default:"fixed"},(0,a.default)("md-type",["fixed","shift"]))},data:function(){return{MdBottomBar:{mouseEvent:null,activeItem:null,items:{},syncRoute:this.mdSyncRoute}}},provide:function(){return{MdBottomBar:this.MdBottomBar}},computed:{activeItem:function(){return this.MdBottomBar.activeItem},barClasses:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"md-type-"+this.mdType,!0)}},watch:{activeItem:function(){this.$emit("md-changed",this.activeItem)},mdSyncRoute:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return""+e},t}((function(){this.MdBottomBar.syncRoute=mdSyncRoute}))},methods:{hasActiveItem:function(){return this.MdBottomBar.activeItem||this.mdActiveItem},getItemsAndKeys:function(){var e=this.MdBottomBar.items;return{items:e,keys:Object.keys(e)}},setActiveItemByIndex:function(e){var t=this.getItemsAndKeys().keys;this.mdActiveItem?this.MdBottomBar.activeItem=this.mdActiveItem:this.MdBottomBar.activeItem=t[e]}},created:function(){this.MdBottomBar.type=this.mdType},mounted:function(){var e=this;this.$nextTick().then((function(){e.mdSyncRoute||e.setActiveItemByIndex(0)}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(43)),a=r(n(28)),s=n(11),c=r(s),l=n(29),u=r(l),d=["id","mdLabel","mdIcon","mdDisabled"],t.default={name:"MdBottomBarItem",mixins:[o.default,a.default],props:{id:{type:String,default:function(){return"md-bottom-bar-item-"+(0,c.default)()}},mdLabel:String,mdIcon:String,mdDisabled:Boolean},inject:["MdBottomBar"],watch:{$props:{deep:!0,handler:function(){this.setItemData()}},$attrs:{deep:!0,handler:function(){this.setItemData()}}},computed:{itemClasses:function(){return{"md-active":this.id===this.MdBottomBar.activeItem}},attrs:function(){var e=this,t=i({},this.$attrs);return Object.keys(this.$options.propsData).forEach((function(n){d.includes(n)||(t[n]=e[n])})),t}},methods:{getPropValues:function(){var e=this,t=Object.keys(this.$options.props),n={};return t.forEach((function(t){d.includes(t)||(e[t]?n[t]=e[t]:e.$attrs&&e.$attrs.hasOwnProperty(t)&&(n[t]=!t||e.$attrs[t]))})),n},setItemData:function(){this.$set(this.MdBottomBar.items,this.id,{disabled:this.mdDisabled,options:this.mdTemplateOptions,props:this.getPropValues()})},setActiveItem:function(e){this.MdBottomBar.syncRoute||(this.MdBottomBar.activeItem=this.id),"shift"===this.MdBottomBar.type&&(this.MdBottomBar.mouseEvent=e)}},beforeCreate:function(){if(this.$router&&this.$options.propsData.to){var e=(0,u.default)(this,this.$options.props);this.$options.props=e}},created:function(){this.setItemData()},beforeDestroy:function(){this.$delete(this.MdBottomBar.items,this.id)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdCard",props:{mdWithHover:Boolean},data:function(){return{MdCard:{expand:!1}}},provide:function(){return{MdCard:this.MdCard}},computed:{cardClasses:function(){return{"md-with-hover":this.mdWithHover,"md-expand-active":this.MdCard.expand}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardArea",props:{mdInset:Boolean},computed:{areaClasses:function(){return{"md-inset":this.mdInset}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardHeader"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardHeaderText",data:function(){return{parentClasses:null}},mounted:function(){this.parentClasses=this.$parent.$el.classList,this.parentClasses.contains("md-card-header")&&this.parentClasses.add("md-card-header-flex")},beforeDestroy:function(){this.parentClasses.remove("md-card-header-flex")}}},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n,r,i=[],o=!0,a=!1,s=void 0;try{for(n=e[Symbol.iterator]();!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){a=!0,s=e}finally{try{!o&&n.return&&n.return()}finally{if(a)throw s}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),t.default={name:"MdCardMedia",props:{mdRatio:i({type:String},(0,o.default)("md-ratio",["16-9","16/9","16:9","4-3","4/3","4:3","1-1","1/1","1:1"])),mdMedium:Boolean,mdBig:Boolean},computed:{mediaClasses:function(){var e,t,n={};return this.mdRatio&&(e=this.getAspectRatio())&&(n["md-ratio-"+(t=r(e,2))[0]+"-"+t[1]]=!0),(this.mdMedium||this.mdBig)&&(n={"md-medium":this.mdMedium,"md-big":this.mdBig}),n}},methods:{getAspectRatio:function(){var e=[];return-1!==this.mdRatio.indexOf(":")?e=this.mdRatio.split(":"):-1!==this.mdRatio.indexOf("/")?e=this.mdRatio.split("/"):-1!==this.mdRatio.indexOf("-")&&(e=this.mdRatio.split("-")),2===e.length?e:null}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardMediaActions"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardMediaCover",props:{mdTextScrim:Boolean,mdSolid:Boolean},data:function(){return{backdropBackground:{}}},computed:{coverClasses:function(){return{"md-text-scrim":this.mdTextScrim,"md-solid":this.mdSolid}},coverStyles:function(){return{background:this.backdropBackground}}},methods:{applyScrimColor:function(e){this.$refs.backdrop&&(this.backdropBackground="linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, "+e/2+") 66%, rgba(0, 0, 0, "+e+") 100%)")},applySolidColor:function(e){var t=this.$el.querySelector(".md-card-area");t&&(t.style.background="rgba(0, 0, 0, "+e+")")},getImageLightness:function(e,t,n){var r=document.createElement("canvas");e.crossOrigin="Anonymous",e.onload=function(){var e,n,i,o=0,a=void 0,s=void 0,c=void 0,l=void 0;for(r.width=this.width,r.height=this.height,(a=r.getContext("2d")).drawImage(this,0,0),e=0,n=(i=a.getImageData(0,0,r.width,r.height).data).length;e<n;e+=4)s=i[e],c=i[e+1],l=i[e+2],o+=Math.floor((s+c+l)/3);t(Math.floor(o/(this.width*this.height)))},e.onerror=n}},mounted:function(){var e=this,t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.6;e.mdTextScrim?e.applyScrimColor(t):e.mdSolid&&e.applySolidColor(t)},n=this.$el.querySelector("img");n&&(this.mdTextScrim||this.mdSolid)&&this.getImageLightness(n,(function(e){var n=(100*Math.abs(256-e)/256+15)/100;n>=.7&&(n=.7),t(n)}),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardContent"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardExpand",inject:["MdCard"]}},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n,r,i=[],o=!0,a=!1,s=void 0;try{for(n=e[Symbol.iterator]();!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){a=!0,s=e}finally{try{!o&&n.return&&n.return()}finally{if(a)throw s}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},t.default={name:"MdCardExpandTrigger",inject:["MdCard"],render:function(e){var t=this,n=i(this.$slots.default,1)[0],o=" md-card-expand-trigger",a={click:function(){t.MdCard.expand=!t.MdCard.expand}};return n?(n.componentOptions.listeners=r({},n.componentOptions.listeners,a),n.data.staticClass+=o,n):e("div",{staticClass:o,on:a})}}},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(48),i=function(e){return e&&e.__esModule?e:{default:e}}(r),t.default={name:"MdCardExpandContent",inject:["MdCard"],data:function(){return{marginTop:0,resizeObserver:null,transitionEnabled:!0}},computed:{expand:function(){return this.MdCard.expand},contentStyles:function(){return{"margin-top":"-"+this.marginTop+"px",opacity:0===this.marginTop?1:0,"transition-property":this.transitionEnabled?null:"none"}}},methods:{calculateMarginTop:function(){this.expand?this.marginTop=0:this.marginTop=this.$el.children[0].offsetHeight},calculateMarginTopImmediately:function(){var e=this;this.expand||(this.transitionEnabled=!1,this.$nextTick((function(){e.calculateMarginTop(),e.$nextTick((function(){e.$el.offsetHeight,e.transitionEnabled=!0}))})))}},watch:{expand:function(){this.calculateMarginTop()}},mounted:function(){this.calculateMarginTopImmediately(),this.resizeObserver=(0,i.default)(this.$el,{childList:!0,characterData:!0,subtree:!0},this.calculateMarginTopImmediately)},beforeDestroy:function(){this.resizeObserver.disconnect()}}},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),o=["left","right","space-between"],t.default={name:"MdCardActions",props:{mdAlignment:r({type:String,default:"right"},(0,i.default)("md-alignment",o))}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(102)),a=n(11),s=r(a),t.default=new i.default({name:"MdCheckbox",mixins:[o.default],props:{id:{type:String,default:function(){return"md-checkbox-"+(0,s.default)()}}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(62)),s=r(n(53)),c=n(11),l=r(c),u=r(n(8)),t.default=new o.default({name:"MdChips",components:{MdField:a.default,MdInput:s.default},props:{value:Array,id:{type:[String,Number],default:function(){return"md-chips-"+(0,l.default)()}},mdInputType:i({type:[String,Number]},(0,u.default)("md-input-type",["email","number","password","search","tel","text","url"])),mdPlaceholder:[String,Number],mdStatic:Boolean,mdLimit:Number,mdCheckDuplicated:{type:Boolean,default:!1},mdFormat:{type:Function}},data:function(){return{inputValue:"",duplicatedChip:null}},computed:{chipsClasses:function(){return{"md-has-value":this.value&&this.value.length}},modelRespectLimit:function(){return!this.mdLimit||this.value.length<this.mdLimit},formattedInputValue:function(){return this.mdFormat?this.mdFormat(this.inputValue):this.inputValue}},methods:{insertChip:function(e){var t=this,n=(e.target,this.formattedInputValue);if(n&&this.modelRespectLimit){if(this.value.includes(n))return this.duplicatedChip=null,void this.$nextTick((function(){t.duplicatedChip=n}));this.value.push(n),this.$emit("input",this.value),this.$emit("md-insert",n),this.inputValue=""}},removeChip:function(e){var t=this,n=this.value.indexOf(e);this.value.splice(n,1),this.$emit("input",this.value),this.$emit("md-delete",e,n),this.$nextTick((function(){return t.$refs.input.$el.focus()}))},handleBackRemove:function(){this.inputValue||this.removeChip(this.value[this.value.length-1])},handleInput:function(){this.mdCheckDuplicated?this.checkDuplicated():this.duplicatedChip=null},checkDuplicated:function(){return this.value.includes(this.formattedInputValue)?!!this.mdCheckDuplicated&&void(this.duplicatedChip=this.formattedInputValue):(this.duplicatedChip=null,!1)}},watch:{value:function(){this.checkDuplicated()}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(41)),a=r(n(38)),s=r(n(63)),c=r(n(39)),t.default=new i.default({name:"MdChip",components:{MdButton:c.default,MdClearIcon:s.default},mixins:[o.default,a.default],props:{mdDisabled:Boolean,mdDeletable:Boolean,mdClickable:Boolean,mdDuplicated:{type:Boolean,default:!1}},computed:{chipClasses:function(){return{"md-disabled":this.mdDisabled,"md-deletable":this.mdDeletable,"md-clickable":this.mdClickable,"md-focused":this.mdHasFocus,"md-duplicated":this.mdDuplicated}}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_,C;Object.defineProperty(t,"__esModule",{value:!0}),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=n(2),s=r(a),c=n(327),l=r(c),u=n(328),d=r(u),f=n(329),h=r(f),p=n(143),m=r(p),v=r(n(8)),g=r(n(58)),b=r(n(330)),y=r(n(348)),k=n(350),w=r(k),_=r(n(62)),C=r(n(53)),t.default={name:"MdDatepicker",components:{MdOverlay:g.default,MdDateIcon:y.default,MdField:_.default,MdInput:C.default,MdDatepickerDialog:b.default},props:{value:[String,Number,Date],mdDisabledDates:[Array,Function],mdOpenOnFocus:{type:Boolean,default:!0},mdOverrideNative:{type:Boolean,default:!0},mdImmediately:{type:Boolean,default:!1},mdModelType:o({type:Function,default:Date},(0,v.default)("md-model-type",[Date,String,Number])),MdDebounce:{type:Number,default:1e3}},data:function(){return{showDialog:!1,inputDate:"",localDate:null}},computed:{locale:function(){return this.$material.locale},type:function(){return this.mdOverrideNative?"text":"date"},dateFormat:function(){return this.locale.dateFormat||"yyyy-MM-dd"},modelType:function(){return this.isModelTypeString?String:this.isModelTypeNumber?Number:this.isModelTypeDate?Date:this.mdModelType},isModelNull:function(){return null===this.value||void 0===this.value},isModelTypeString:function(){return"string"==typeof this.value},isModelTypeNumber:function(){return Number.isInteger(this.value)&&this.value>=0},isModelTypeDate:function(){return"object"===i(this.value)&&this.value instanceof Date&&(0,m.default)(this.value)},localString:function(){return this.localDate&&(0,d.default)(this.localDate,this.dateFormat)},localNumber:function(){return this.localDate&&+this.localDate},parsedInputDate:function(){var e=(0,h.default)(this.inputDate,this.dateFormat,new Date);return e&&(0,m.default)(e)?e:null},pattern:function(){return this.dateFormat.replace(/yyyy|MM|dd/g,(function(e){switch(e){case"yyyy":return"[0-9]{4}";case"MM":case"dd":return"[0-9]{2}"}}))}},watch:{inputDate:function(e){this.inputDateToLocalDate()},localDate:function(){this.inputDate=this.localString,this.modelType===Date&&this.$emit("input",this.localDate)},localString:function(){this.modelType===String&&this.$emit("input",this.localString)},localNumber:function(){this.modelType===Number&&this.$emit("input",this.localNumber)},value:{immediate:!0,handler:function(){this.valueDateToLocalDate()}},mdModelType:function(e){switch(e){case Date:this.$emit("input",this.localDate);break;case String:this.$emit("input",this.localString);break;case Number:this.$emit("input",this.localNumber)}},dateFormat:function(){this.localDate&&(this.inputDate=(0,d.default)(this.localDate,this.dateFormat))}},methods:{toggleDialog:function(){!l.default||this.mdOverrideNative?(this.showDialog=!this.showDialog,this.showDialog?this.$emit("md-opened"):this.$emit("md-closed")):this.$refs.input.$el.click()},onFocus:function(){this.mdOpenOnFocus&&this.toggleDialog()},inputDateToLocalDate:function(){this.inputDate?this.parsedInputDate&&(this.localDate=this.parsedInputDate):this.localDate=null},valueDateToLocalDate:function(){if(this.isModelNull)this.localDate=null;else if(this.isModelTypeNumber)this.localDate=new Date(this.value);else if(this.isModelTypeDate)this.localDate=this.value;else if(this.isModelTypeString){var e=(0,h.default)(this.value,this.dateFormat,new Date);(0,m.default)(e)?this.localDate=(0,h.default)(this.value,this.dateFormat,new Date):s.default.util.warn("The datepicker value is not a valid date. Given value: "+this.value+", format: "+this.dateFormat)}else s.default.util.warn("The datepicker value is not a valid date. Given value: "+this.value)}},created:function(){this.inputDateToLocalDate=(0,w.default)(this.inputDateToLocalDate,this.MdDebounce)}}},function(e,t,n){"use strict";t.a=function(e){var t,n=new Date(e.getTime()),i=n.getTimezoneOffset();return n.setSeconds(0,0),t=n.getTime()%r,i*r+t};var r=6e4},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e);return!isNaN(t)};var r=n(9)},function(e,t,n){"use strict";function r(e){return function(t){var n=t||{},r=n.width?n.width+"":e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}function i(e){return function(t,n){var r=n||{},i=r.width?r.width+"":e.defaultWidth;return("formatting"==(r.context?r.context+"":"standalone")&&e.formattingValues?e.formattingValues[i]||e.formattingValues[e.defaultFormattingWidth]:e.values[i]||e.values[e.defaultWidth])[e.argumentCallback?e.argumentCallback(t):t]}}function o(e){return function(t,n){var r,i,o,a=t+"",s=n||{},c=s.width,l=c&&e.matchPatterns[c]||e.matchPatterns[e.defaultMatchWidth],u=a.match(l);return u?(r=u[0],i=c&&e.parsePatterns[c]||e.parsePatterns[e.defaultParseWidth],o="[object Array]"===Object.prototype.toString.call(i)?i.findIndex((function(e){return e.test(a)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(i,(function(e){return e.test(a)})),o=e.valueCallback?e.valueCallback(o):o,{value:o=s.valueCallback?s.valueCallback(o):o,rest:a.slice(r.length)}):null}}var a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},s={date:r({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:r({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:r({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l={formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof a[e]?a[e]:1===t?a[e].one:a[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:s,formatRelative:function(e,t,n,r){return c[e]},localize:{ordinalNumber:function(e,t){var n=+e,r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:i({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:i({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return+e-1}}),month:i({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:i({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:i({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t,n){var r,i,o,a=t+"",s=n||{},c=a.match(e.matchPattern);return c?(r=c[0],(i=a.match(e.parsePattern))?(o=e.valueCallback?e.valueCallback(i[0]):i[0],{value:o=s.valueCallback?s.valueCallback(o):o,rest:a.slice(r.length)}):null):null}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:o({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:o({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:o({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:o({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=l},function(e,t,n){"use strict";function r(e){var t,n;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return t=Object(s.a)(e),(n=new Date(0)).setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Object(a.a)(n)}var i,o=n(9),a=n(64),s=n(146);t.a=function(e){var t,n;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return t=Object(o.a)(e),n=Object(a.a)(t).getTime()-r(t).getTime(),Math.round(n/i)+1},i=6048e5},function(e,t,n){"use strict";var r,i;t.a=function(e){var t,n,o,a,s,c;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=(t=Object(r.a)(e)).getUTCFullYear(),(o=new Date(0)).setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0),a=Object(i.a)(o),(s=new Date(0)).setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),c=Object(i.a)(s),t.getTime()>=a.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1},r=n(9),i=n(64)},function(e,t,n){"use strict";function r(e,t){var n,r,i,o,l,u,d;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return o=null==(i=(r=(n=t||{}).locale)&&r.options&&r.options.firstWeekContainsDate)?1:Object(s.a)(i),l=null==n.firstWeekContainsDate?o:Object(s.a)(n.firstWeekContainsDate),u=Object(c.a)(e,t),(d=new Date(0)).setUTCFullYear(u,0,l),d.setUTCHours(0,0,0,0),Object(a.a)(d,t)}var i,o=n(9),a=n(65),s=n(17),c=n(93);t.a=function(e,t){var n,s;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=Object(o.a)(e),s=Object(a.a)(n,t).getTime()-r(n,t).getTime(),Math.round(s/i)+1},i=6048e5},function(e,t,n){"use strict";function r(e,t){var n,r;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(o.a)(e).getTime(),r=Object(i.a)(t),new Date(n+r)}var i=n(17),o=n(9);t.a=function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return r(e,-Object(i.a)(t))}},function(e,t,n){"use strict";t.a=function(e){return-1!==r.indexOf(e)},t.b=function(e){throw new RangeError("`options.awareOfUnicodeTokens` must be set to `true` to use `"+e+"` token; see: https://git.io/fxCyr")};var r=["D","DD","YY","YYYY"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_,C,A,x,S,M,E,T,D,O,P,I,j,N;Object.defineProperty(t,"__esModule",{value:!0}),i=n(151),o=r(i),a=n(332),s=r(a),c=n(333),l=r(c),u=n(334),d=r(u),f=n(335),h=r(f),p=n(96),m=r(p),v=n(336),g=r(v),b=n(337),y=r(b),k=n(338),w=r(k),_=n(339),C=r(_),A=n(340),x=r(A),S=n(341),M=r(S),E=n(342),T=r(E),D=r(n(1)),O=r(n(56)),P=r(n(343)),I=r(n(345)),j=r(n(68)),N=function(e,t){return!(!e||!e.querySelector)&&e.querySelectorAll(t)},t.default=new D.default({name:"MdDatepickerDialog",components:{MdPopover:O.default,MdArrowRightIcon:P.default,MdArrowLeftIcon:I.default,MdDialog:j.default},props:{mdDate:Date,mdDisabledDates:[Array,Function],mdImmediately:{type:Boolean,default:!1}},data:function(){return{currentDate:null,selectedDate:null,showDialog:!1,monthAction:null,currentView:"day",contentStyles:{},availableYears:null}},computed:{firstDayOfAWeek:function(){var e=+this.locale.firstDayOfAWeek;return Number.isNaN(e)||!Number.isFinite(e)?0:(e=Math.floor(e)%7,e+=e<0?7:0)},locale:function(){return this.$material.locale},popperSettings:function(){return{placement:"bottom-start",modifiers:{keepTogether:{enabled:!0},flip:{enabled:!1}}}},calendarClasses:function(){return"next"===this.monthAction?"md-next":"md-previous"},firstDayOfMonth:function(){return(0,s.default)(this.currentDate).getDay()},prefixEmptyDays:function(){var e=this.firstDayOfMonth-this.firstDayOfAWeek;return e+=e<0?7:0},daysInMonth:function(){return(0,m.default)(this.currentDate)},currentDay:function(){return this.selectedDate?(0,d.default)(this.selectedDate):(0,d.default)(this.currentDate)},currentMonth:function(){return(0,g.default)(this.currentDate)},currentMonthName:function(){return this.locale.months[this.currentMonth]},currentYear:function(){return(0,y.default)(this.currentDate)},selectedYear:function(){return this.selectedDate?(0,y.default)(this.selectedDate):(0,y.default)(this.currentDate)},shortDayName:function(){return this.selectedDate?this.locale.shortDays[(0,h.default)(this.selectedDate)]:this.locale.shortDays[(0,h.default)(this.currentDate)]},shortMonthName:function(){return this.selectedDate?this.locale.shortMonths[(0,g.default)(this.selectedDate)]:this.locale.shortMonths[(0,g.default)(this.currentDate)]}},watch:{mdDate:function(){this.currentDate=this.mdDate||new Date,this.selectedDate=this.mdDate},currentDate:function(e,t){var n=this;this.$nextTick().then((function(){t&&n.setContentStyles()}))},currentView:function(){var e=this;this.$nextTick().then((function(){if("year"===e.currentView){var t=N(e.$el,".md-datepicker-year-button.md-datepicker-selected");t.length&&t[0].scrollIntoView({behavior:"instant",block:"center",inline:"center"})}}))}},methods:{setContentStyles:function(){var e,t=N(this.$el,".md-datepicker-month");t.length&&(e=t[t.length-1],this.contentStyles={height:e.offsetHeight+10+"px"})},setAvailableYears:function(){for(var e=this.locale,t=e.startYear,n=e.endYear,r=t,i=[];r<=n;)i.push(r++);this.availableYears=i},handleDisabledDateByArray:function(e){return this.mdDisabledDates.some((function(t){return(0,C.default)(t,e)}))},isDisabled:function(e){if(this.mdDisabledDates){var t=(0,x.default)(this.currentDate,e);if(Array.isArray(this.mdDisabledDates))return this.handleDisabledDateByArray(t);if("function"==typeof this.mdDisabledDates)return this.mdDisabledDates(t)}},isSelectedDay:function(e){return(0,w.default)(this.selectedDate,(0,x.default)(this.currentDate,e))},isToday:function(e){return(0,C.default)(new Date,(0,x.default)(this.currentDate,e))},previousMonth:function(){this.monthAction="previous",this.currentDate=(0,l.default)(this.currentDate,1)},nextMonth:function(){this.monthAction="next",this.currentDate=(0,o.default)(this.currentDate,1)},switchMonth:function(e){this.currentDate=(0,M.default)(this.currentDate,e),this.currentView="day"},switchYear:function(e){this.currentDate=(0,T.default)(this.currentDate,e),this.currentView="month"},selectDate:function(e){this.currentDate=(0,x.default)(this.currentDate,e),this.selectedDate=this.currentDate,this.mdImmediately&&(this.$emit("update:mdDate",this.selectedDate),this.closeDialog())},closeDialog:function(){this.$emit("md-closed")},onClose:function(){this.closeDialog()},onCancel:function(){this.closeDialog()},onConfirm:function(){this.$emit("update:mdDate",this.selectedDate),this.closeDialog()},resetDate:function(){this.currentDate=this.mdDate||new Date,this.selectedDate=this.mdDate,this.currentView="day"}},created:function(){this.setAvailableYears(),this.resetDate()}})},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,a,s,c,l;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(e),a=Object(r.a)(t),s=n.getMonth()+a,(c=new Date(0)).setFullYear(n.getFullYear(),s,1),c.setHours(0,0,0,0),l=Object(o.default)(c),n.setMonth(s,Math.min(l,n.getDate())),n},r=n(17),i=n(9),o=n(96)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdArrowRightIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdArrowLeftIcon",components:{MdIcon:r.default}}},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-portal",[n("transition",{attrs:{name:"md-dialog"}},[e.mdActive?n("div",e._g({staticClass:"md-dialog",class:[e.dialogClasses,e.$mdActiveTheme],on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.onEsc(t)}}},e.$listeners),[n("md-focus-trap",[n("div",{staticClass:"md-dialog-container"},[e._t("default"),e._v(" "),n("keep-alive",[e.mdBackdrop?n("md-overlay",{class:e.mdBackdropClass,attrs:{"md-fixed":"","md-active":e.mdActive},on:{click:e.onClick}}):e._e()],1)],2)])],1):e._e()])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdDateIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogTitle"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdDialogContent"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogActions"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdDivider",computed:{insideList:function(){return"md-list"===this.$parent.$options._componentTag}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(58)),s=r(n(8)),c=r(n(104)),t.default=new o.default({name:"MdDrawer",mixins:[c.default],components:{MdOverlay:a.default},props:{mdRight:Boolean,mdPermanent:i({type:String},(0,s.default)("md-permanent",["full","clipped","card"])),mdPersistent:i({type:String},(0,s.default)("md-persistent",["mini","full"])),mdActive:Boolean,mdFixed:Boolean},watch:{mdActive:function(e){e?this.$emit("md-opened"):this.$emit("md-closed")},swiped:function(e){"right"!==e&&"left"!==e||this.$emit("update:mdActive","right"===e)}},computed:{drawerClasses:function(){var e={"md-left":!this.mdRight,"md-right":this.mdRight,"md-temporary":this.isTemporary,"md-persistent":this.mdPersistent,"md-permanent":this.mdPermanent,"md-active":this.mdActive,"md-fixed":this.mdFixed};return this.mdPermanent&&(e["md-permanent-"+this.mdPermanent]=!0),this.mdPersistent&&(e["md-persistent-"+this.mdPersistent]=!0),e},isTemporary:function(){return!this.mdPermanent&&!this.mdPersistent},mode:function(){return this.mdPersistent?"persistent":this.mdPermanent?"permanent":"temporary"},submode:function(){return this.mdPersistent?this.mdPersistent:this.mdPermanent?this.mdPermanent:void 0},mdSwipeElement:function(){return this.$el.parentNode}},methods:{closeDrawer:function(){this.$emit("update:mdActive",!1)}}})},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-empty-state",appear:""}},[n("div",{staticClass:"md-empty-state",class:[e.emptyStateClasses,e.$mdActiveTheme],style:e.emptyStateStyles},[n("div",{staticClass:"md-empty-state-container"},[e.mdIcon?[e.isAssetIcon(e.mdIcon)?n("md-icon",{staticClass:"md-empty-state-icon",attrs:{"md-src":e.mdIcon}}):n("md-icon",{staticClass:"md-empty-state-icon"},[e._v(e._s(e.mdIcon))])]:e._e(),e._v(" "),e.mdLabel?n("strong",{staticClass:"md-empty-state-label"},[e._v(e._s(e.mdLabel))]):e._e(),e._v(" "),e.mdDescription?n("p",{staticClass:"md-empty-state-description"},[e._v(e._s(e.mdDescription))]):e._e(),e._v(" "),e._t("default")],2)])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},r(n(10)),r(n(1)),o=r(n(377)),a=r(n(107)),s=r(n(108)),c=r(n(53)),l=r(n(42)),u={x:-15,y:-48},t.default={name:"MdSelect",components:{MdInput:c.default,MdMenu:a.default,MdMenuContent:s.default,MdDropDownIcon:o.default},mixins:[l.default],props:{mdDense:Boolean,mdClass:String,multiple:Boolean,id:String,name:String},inject:["MdField"],data:function(){return{menuStyles:{},offset:{x:u.x,y:0},showSelect:!0,didMount:!1,MdSelect:{items:{},label:null,multiple:!1,modelValue:this.localValue,setValue:this.setValue,setContent:this.setContent,setMultipleValue:this.setMultipleValue,setMultipleContent:this.setMultipleContent}}},provide:function(){return{MdSelect:this.MdSelect}},computed:{attrs:function(){return i({},this.$attrs,{name:this.name,id:void 0})},inputListeners:function(){return i({},this.$listeners,{input:void 0})}},watch:{localValue:{immediate:!0,handler:function(e){this.setFieldContent(),this.MdSelect.modelValue=this.localValue,this.didMount&&this.emitSelected(e)}},multiple:{immediate:!0,handler:function(e){this.MdSelect.multiple=e,this.$nextTick(this.initialLocalValueByDefault)}}},methods:{elHasScroll:function(e){return e.scrollHeight>e.offsetHeight},scrollToSelectedOption:function(e,t){var n=e.offsetTop,r=e.offsetHeight,i=t.offsetHeight;t.scrollTop=n-(i-r)/2},setOffsets:function(e){var t,n;this.$isServer||(t=this.$refs.menu.$refs.container)&&((n=e||t.querySelector(".md-selected"))?(this.scrollToSelectedOption(n,t),this.offset.y=u.y-n.offsetTop+t.scrollTop+8,this.menuStyles={"transform-origin":"0 "+Math.abs(this.offset.y)+"px"}):(this.offset.y=u.y+1,this.menuStyles={}))},onMenuEnter:function(){this.didMount&&(this.setOffsets(),this.MdField.focused=!0,this.$emit("md-opened"))},applyHighlight:function(){this.MdField.focused=!1,this.MdField.highlighted=!0,this.$refs.input.$el.focus()},onClose:function(){this.$emit("md-closed"),this.didMount&&this.applyHighlight()},onFocus:function(){this.didMount&&this.applyHighlight()},removeHighlight:function(){this.MdField.highlighted=!1},openSelect:function(){this.disabled||(this.showSelect=!0)},arrayAccessorRemove:function(e,t){var n=e.slice(0,t),r=e.slice(t+1,e.length);return n.concat(r)},toggleArrayValue:function(e){var t=this.localValue.indexOf(e),n=t>-1;this.localValue=n?this.arrayAccessorRemove(this.localValue,t):this.localValue.concat([e])},setValue:function(e){this.model=e,this.setFieldValue(),this.showSelect=!1},setContent:function(e){this.MdSelect.label=e},setContentByValue:function(){var e=this.MdSelect.items[this.localValue];e?this.setContent(e):this.setContent("")},setMultipleValue:function(e){var t=e;this.toggleArrayValue(t),this.setFieldValue()},setMultipleContentByValue:function(){var e,t=this;this.localValue||this.initialLocalValueByDefault(),e=[],this.localValue.forEach((function(n){var r=t.MdSelect.items[n];r&&e.push(r)})),this.setContent(e.join(", "))},setFieldContent:function(){this.multiple?this.setMultipleContentByValue():this.setContentByValue()},isLocalValueSet:function(){return void 0!==this.localValue&&null!==this.localValue},setLocalValueIfMultiple:function(){this.isLocalValueSet()?this.localValue=[this.localValue]:this.localValue=[]},setLocalValueIfNotMultiple:function(){this.localValue.length>0?this.localValue=this.localValue[0]:this.localValue=null},initialLocalValueByDefault:function(){var e=Array.isArray(this.localValue);this.multiple&&!e?this.setLocalValueIfMultiple():!this.multiple&&e&&this.setLocalValueIfNotMultiple()},emitSelected:function(e){this.$emit("md-selected",e)}},mounted:function(){var e=this;this.showSelect=!1,this.setFieldContent(),this.$nextTick().then((function(){e.didMount=!0}))},updated:function(){this.setFieldContent()}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdDropDownIcon",components:{MdIcon:r.default}}},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",e._g({staticClass:"md-menu"},e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-popover",{attrs:{"md-settings":e.popperSettings,"md-active":e.shouldRender}},[e.shouldRender?n("transition",e._g({attrs:{name:"md-menu-content",css:e.didMount}},e.$listeners),[n("div",{ref:"menu",class:[e.menuClasses,e.mdContentClass,e.$mdActiveTheme],style:e.menuStyles},[n("div",{ref:"container",staticClass:"md-menu-content-container md-scrollbar",class:e.$mdActiveTheme},[n("md-list",e._b({class:e.listClasses},"md-list",e.filteredAttrs,!1),[e._t("default")],2)],1)])]):e._e()],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(11),i=function(e){return e&&e.__esModule?e:{default:e}}(r),t.default={name:"MdOption",props:{value:[String,Number,Boolean],disabled:Boolean},inject:{MdSelect:{},MdOptgroup:{default:{}}},data:function(){return{uniqueId:"md-option-"+(0,i.default)(),isSelected:!1,isChecked:!1}},computed:{selectValue:function(){return this.MdSelect.modelValue},isMultiple:function(){return this.MdSelect.multiple},isDisabled:function(){return this.MdOptgroup.disabled||this.disabled},key:function(){return this.value||0===this.value?this.value:this.uniqueId},inputLabel:function(){return this.MdSelect.label},optionClasses:function(){return{"md-selected":this.isSelected||this.isChecked}}},watch:{selectValue:function(){this.setIsSelected()},isChecked:function(e){e!==this.isSelected&&this.setSelection()},isSelected:function(e){this.isChecked=e}},methods:{getTextContent:function(){if(this.$el)return this.$el.textContent.trim();var e=this.$slots.default;return e?e[0].text.trim():""},setIsSelected:function(){return this.isMultiple?void 0===this.selectValue?void(this.isSelected=!1):void(this.isSelected=this.selectValue.includes(this.value)):void(this.isSelected=this.selectValue===this.value)},setSingleSelection:function(){this.MdSelect.setValue(this.value)},setMultipleSelection:function(){this.MdSelect.setMultipleValue(this.value)},setSelection:function(){this.isDisabled||(this.isMultiple?this.setMultipleSelection():this.setSingleSelection())},setItem:function(){this.$set(this.MdSelect.items,this.key,this.getTextContent())}},updated:function(){this.setItem()},created:function(){this.setItem(),this.setIsSelected()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdOptgroup",props:{label:String,disabled:Boolean},provide:function(){return{MdOptgroup:{disabled:this.disabled}}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(11),o=r(i),a=r(n(388)),s=r(n(42)),t.default={name:"MdFile",components:{MdFileIcon:a.default},props:{id:{type:String,default:function(){return"md-file-"+(0,o.default)()}},name:String},computed:{iconClass:function(){return{"md-disabled":this.disabled}}},mixins:[s.default],inject:["MdField"],methods:{getMultipleName:function(e){var t=[];return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e)).forEach((function(e){var n=e.name;return t.push(n)})),t.join(", ")},getFileName:function(e,t){return e&&0!==e.length?e.length>1?this.getMultipleName(e):1===e.length?e[0].name:null:t.value.split("\\").pop()},openPicker:function(){this.onFocus(),this.$refs.inputFile.click()},onChange:function(e){this.onFileSelected(e)},onFileSelected:function(e){var t=e.target,n=e.dataTransfer,r=t.files||n.files;this.model=this.getFileName(r,t),this.$emit("md-change",r||t.value)}},created:function(){this.MdField.file=!0},beforeDestroy:function(){this.MdField.file=!1}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdFileIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=n(11),s=r(a),c=r(n(42)),t.default=new o.default({name:"MdTextarea",mixins:[c.default],inject:["MdField"],props:{id:{type:String,default:function(){return"md-textarea-"+(0,s.default)()}},mdAutogrow:Boolean},computed:{listeners:function(){return i({},this.$listeners,{input:this.onInput})},textareaStyles:function(){return{height:this.textareaHeight}}},methods:{getTextAreaLineSize:function(){var e=window.getComputedStyle(this.$el);return parseInt(e.lineHeight,10)},setTextAreaSize:function(e){var t,n=e;e||(t=this.getTextAreaLineSize(),n=function(e,t){var n=e.style.height,r=e.offsetHeight,i=e.scrollHeight;return e.style.overflow="hidden",r>=i&&(e.style.height=r+t+"px",i<e.scrollHeight)?(e.style.height=n,r):i}(this.$el,t)),this.textareaHeight=n+"px"},applyStyles:function(){var e=this;this.mdAutogrow&&(this.setTextAreaSize(32),this.$nextTick().then((function(){e.setTextAreaSize(),window.setTimeout((function(){e.$el.style.overflow="auto"}),10)})))},setTextarea:function(){this.MdField.textarea=!0},setAutogrow:function(){this.MdField.autogrow=this.mdAutogrow},onInput:function(){this.setFieldValue()}},watch:{localValue:function(){this.applyStyles()}},created:function(){this.setTextarea(),this.setAutogrow()},mounted:function(){this.$nextTick().then(this.applyStyles)},beforeDestroy:function(){this.setTextarea(!1)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e;return t||(t="$&"),'<span class="md-highlight-text-match">'+t+"</span>"}function o(e,t,n){var r=e.text;return r&&t&&t[0]?n?function e(t,n){var r,o,a;if(0===n.length)return t;if(-1===(r=t.toLowerCase().indexOf(n[0].toLowerCase())))return"";for(o=0,a=1;a<n.length&&t[r+a]===n[a];a++)o=a;return t.slice(0,r)+i(t.slice(r,r+o+1))+e(t.slice(r+o+1),n.slice(o+1))}(r,t)||r:function(e,t){var n=RegExp(t+"(?!([^<]+)?<)","gi");return e.replace(n,i())}(r,t):r}var a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),a=n(2),s=r(a),c=r(n(1)),t.default=new c.default({name:"MdHighlightText",abstract:!0,props:{mdTerm:String,mdFuzzySearch:{type:Boolean,default:!0}},render:function(e){var t,n;try{if(!(t=this.$slots.default))return null;if(t.length>1||t[0].tag)throw Error();return n=o(t[0],this.mdTerm,this.mdFuzzySearch),e("div",{staticClass:"md-highlight-text",class:this.$mdActiveTheme,domProps:{innerHTML:n}})}catch(e){s.default.util.warn("MdHighlightText can only render text nodes.",this)}return null}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdImage",props:{mdSrc:String}})},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(76),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(181),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(77),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(180),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-ripple",{staticClass:"md-list-item-content",attrs:{"md-disabled":e.mdDisabled}},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-list-item-default",on:{click:e.toggleControl}},[n("md-list-item-content",{attrs:{"md-disabled":""}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(78),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(183),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-list-item-fake-button",attrs:{disabled:e.disabled}},[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(79),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(185),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"md-list-item-button",attrs:{type:"button",disabled:e.disabled}},[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(80),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(187),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._b({staticClass:"md-list-item-link"},"a",e.$props,!1),[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(81),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(189),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("router-link",e._b({staticClass:"md-list-item-router"},"router-link",e.routerProps,!1),[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(82),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(194),s=function(e){n(191)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(83),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(193),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}}),e._v(" "),n("path",{attrs:{d:"M0-.75h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-list-item-expand",class:e.expandClasses},[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled},nativeOn:{click:function(t){return e.toggleExpand(t)}}},[e._t("default"),e._v(" "),n("md-arrow-down-icon",{staticClass:"md-list-expand-icon"})],2),e._v(" "),n("div",{ref:"listExpand",staticClass:"md-list-expand",style:e.expandStyles},[e._t("md-expand")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=n(100),a=r(o),r(n(109)),t.default=new i.default({name:"MdMenuItem",props:{disabled:Boolean},inject:["MdMenu"],data:function(){return{highlighted:!1}},computed:{itemClasses:function(){return{"md-highlight":this.highlighted}},listeners:function(){var e,t=this;return this.disabled?{}:this.MdMenu.closeOnSelect?(e={},Object.keys(this.$listeners).forEach((function(n){a.default.includes(n)?e[n]=function(e){t.$listeners[n](e),t.closeMenu()}:e[n]=t.$listeners[n]})),e):this.$listeners}},methods:{closeMenu:function(){this.MdMenu.active=!1,this.MdMenu.eventObserver&&this.MdMenu.eventObserver.destroy()},triggerCloseMenu:function(){this.disabled||this.closeMenu()}},mounted:function(){this.$el.children&&this.$el.children[0]&&"A"===this.$el.children[0].tagName.toUpperCase()&&this.$el.addEventListener("click",this.triggerCloseMenu)},beforeDestroy:function(){this.$el.removeEventListener("click",this.triggerCloseMenu)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),t.default=new o.default({name:"MdProgressBar",props:{mdValue:{type:Number,default:0},mdBuffer:{type:Number,default:0},mdMode:i({type:String,default:"determinate"},(0,a.default)("md-mode",["determinate","indeterminate","query","buffer"]))},computed:{isDeterminate:function(){return"determinate"===this.mdMode},isBuffer:function(){return"buffer"===this.mdMode},hasAmountFill:function(){return this.isBuffer||this.isDeterminate},progressClasses:function(){return"md-"+this.mdMode},progressValueStyle:function(){if(this.hasAmountFill)return"width: "+this.mdValue+"%"},progressTrackStyle:function(){if(this.hasAmountFill)return"width: "+this.mdBuffer+"%"},progressBufferStyle:function(){if(this.hasAmountFill)return"left: calc("+this.mdBuffer+"% + 8px)"}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=r(n(1)),s=r(n(8)),new Set,t.default=new a.default({name:"MdProgressSpinner",props:{mdValue:{type:Number,default:0},mdDiameter:{type:Number,default:60},mdStroke:{type:Number,default:6},mdMode:o({type:String,default:"determinate"},(0,s.default)("md-mode",["determinate","indeterminate"]))},computed:{isDeterminate:function(){return"determinate"===this.mdMode},isIndeterminate:function(){return"indeterminate"===this.mdMode},isIE:function(){return!this.$isServer&&navigator.userAgent.toLowerCase().includes("trident")},progressClasses:function(){var e,t="md-progress-spinner-indeterminate";return this.isIE&&(t+="-fallback"),i(e={},t,!0),i(e,"md-"+this.mdMode,!0),e},circleRadius:function(){return(this.mdDiameter-this.mdStroke)/2},circleStrokeWidth:function(){return this.mdStroke+"px"},circleCircumference:function(){return 2*Math.PI*this.circleRadius},circleStrokeDashArray:function(){return this.circleCircumference+"px"},circleStrokeDashOffset:function(){return this.isDeterminate?this.circleCircumference*(100-this.mdValue)/100+"px":this.isIndeterminate&&this.isIE?.2*this.circleCircumference+"px":null}},watch:{mdValue:function(){this.attachCircleStyle()},mdDiameter:function(){this.attachSvgStyle(),this.attachCircleStyle()},mdStroke:function(){this.attachCircleStyle()}},methods:{attachSvgStyle:function(){var e=this.$refs["md-progress-spinner-draw"],t=this.mdDiameter+"px";e.style.width=t,e.style.height=t},attachCircleStyle:function(){var e=this.$refs["md-progress-spinner-circle"];e.style.strokeDashoffset=this.circleStrokeDashOffset,e.style.strokeDasharray=this.circleStrokeDashArray,e.style.strokeWidth=this.circleStrokeWidth,e.style.setProperty("--md-progress-spinner-start-value",.95*this.circleCircumference),e.style.setProperty("--md-progress-spinner-end-value",.2*this.circleCircumference)}},mounted:function(){this.attachSvgStyle(),this.attachCircleStyle()}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=n(11),a=r(o),s=r(n(16)),t.default=new i.default({name:"MdRadio",components:{MdRipple:s.default},props:{model:[String,Number,Boolean,Object],value:{type:[String,Number,Boolean,Object],default:"on"},id:{type:String,default:function(){return"md-radio-"+(0,a.default)()}},name:[String,Number],required:Boolean,disabled:Boolean},model:{prop:"model",event:"change"},data:function(){return{rippleActive:!1}},computed:{isSelected:function(){return this.model===this.value},radioClasses:function(){return{"md-checked":this.isSelected,"md-disabled":this.disabled,"md-required":this.required}}},methods:{toggleCheck:function(){this.disabled||(this.rippleActive=!0,this.$emit("change",this.value))}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),s=r(n(27)),c=r(n(421)),l=n(423),t.default=new o.default({name:"MdSnackbar",components:{MdPortal:s.default,MdSnackbarContent:c.default},props:{mdActive:Boolean,mdPersistent:Boolean,mdDuration:{type:Number,default:4e3},mdPosition:i({type:String,default:"center"},(0,a.default)("md-position",["center","left"]))},computed:{snackbarClasses:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"md-position-"+this.mdPosition,!0)}},watch:{mdActive:function(e){var t=this;e?(0,l.createSnackbar)(this.mdDuration,this.mdPersistent,this).then((function(){t.$emit("update:mdActive",!1),t.$emit("md-opened")})):((0,l.destroySnackbar)(),this.$emit("md-closed"))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdSnackbarContent",props:{mdClasses:Array}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=r(n(1)),s=r(n(8)),t.default=new a.default({name:"MdSpeedDial",props:{mdEvent:o({type:String,default:"hover"},(0,s.default)("md-event",["click","hover"])),mdDirection:o({type:String,default:"top"},(0,s.default)("md-direction",["top","bottom"])),mdEffect:o({type:String,default:"fling"},(0,s.default)("md-effect",["fling","scale","opacity"]))},data:function(){return{MdSpeedDial:{active:!1,event:this.mdEvent,direction:this.mdDirection}}},provide:function(){return{MdSpeedDial:this.MdSpeedDial}},computed:{speedDialClasses:function(){var e;return i(e={"md-active":this.MdSpeedDial.active,"md-with-hover":"hover"===this.mdEvent},"md-direction-"+this.mdDirection,!0),i(e,"md-effect-"+this.mdEffect,!0),e}}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(39)),t.default={name:"MdSpeedDialTarget",components:{MdButton:r.default},inject:["MdSpeedDial"],methods:{handleClick:function(){"click"===this.MdSpeedDial.event&&(this.MdSpeedDial.active=!this.MdSpeedDial.active)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdSpeedDialContent",inject:["MdSpeedDial"],methods:{setChildrenIndexes:function(){var e=this;this.$nextTick().then((function(){var t=e.$children.length;e.$children.forEach((function(n,r){if("button"===n._vnode.tag){var i=function(e,t,n){return"top"===e?n-t-1:t}(e.MdSpeedDial.direction,r,t);n.$el.setAttribute("md-button-index",i),n.$el.classList.add("md-raised")}}))}))}},mounted:function(){this.setChildrenIndexes()},updated:function(){this.setChildrenIndexes()}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=n(48),a=r(o),s=n(110),c=r(s),l=r(n(205)),t.default=new i.default({name:"MdSteppers",components:{MdStepHeader:l.default},props:{mdSyncRoute:Boolean,mdDynamicHeight:Boolean,mdVertical:Boolean,mdLinear:Boolean,mdAlternative:Boolean,mdActiveStep:[String,Number]},data:function(){return{activeStepIndex:0,noTransition:!0,contentStyles:{},activeButtonEl:null,MdSteppers:{activeStep:0,isLinear:!1,isVertical:!1,items:{},syncRoute:this.mdSyncRoute,getStepperNumber:this.getStepperNumber,setActiveStep:this.setActiveStep,isPreviousStepperDone:this.isPreviousStepperDone}}},provide:function(){return{MdSteppers:this.MdSteppers}},computed:{steppersClasses:function(){return{"md-no-transition":this.noTransition,"md-alternative":this.mdAlternative,"md-horizontal":!this.mdVertical,"md-vertical":this.mdVertical,"md-dynamic-height":this.mdDynamicHeight}},activeIndex:function(){return this.MdSteppers.activeStep},containerStyles:function(){return{transform:!this.mdVertical&&"translate3D("+100*-this.activeStepIndex+"%, 0, 0)"}}},watch:{mdActiveStep:function(e){this.MdSteppers.activeStep=e,this.$emit("md-changed",e)},mdLinear:function(e){this.MdSteppers.isLinear=e},mdVertical:function(e){this.MdSteppers.isVertical=e},activeIndex:function(){this.$nextTick(this.setActiveButtonEl)},activeStepIndex:function(){this.onActiveStepIndex(),this.$nextTick(this.calculateStepperPos)},activeButtonEl:function(e){this.activeStepIndex=e?[].indexOf.call(e.parentNode.childNodes,e):0},$route:function(){this.$nextTick(this.setActiveButtonEl)}},methods:{hasActiveStep:function(){return this.MdSteppers.activeStep||this.mdActiveStep},getItemsAndKeys:function(){var e=this.MdSteppers.items;return{items:e,keys:Object.keys(e)}},getStepperNumber:function(e){return Object.keys(this.MdSteppers.items).indexOf(e)+1},isStepperDone:function(e){return this.MdSteppers.items[e].done},isPreviousStepperDone:function(e){var t=this.MdSteppers.items,n=Object.keys(t)[this.getStepperNumber(e)-2];return!n||t[n].done},isStepperEditable:function(e){return this.MdSteppers.items[e].editable},setStepperAsDone:function(e){this.MdSteppers.items[e].done=!0},setPreviousStepperAsDone:function(e){var t=this.getStepperNumber(this.MdSteppers.activeStep);this.getStepperNumber(e)>t&&this.setStepperAsDone(this.MdSteppers.activeStep)},setActiveStep:function(e){if(this.mdLinear&&!this.isPreviousStepperDone(e))return!1;e===this.MdSteppers.activeStep||!this.isStepperEditable(e)&&this.isStepperDone(e)||(this.setPreviousStepperAsDone(e),this.MdSteppers.activeStep=e,this.$emit("md-changed",e),this.$emit("update:mdActiveStep",e),this.MdSteppers.items[e].error=null)},setActiveButtonEl:function(){this.activeButtonEl=this.$el.querySelector(".md-stepper-header.md-button.md-active")},setActiveStepByIndex:function(e){var t=this.getItemsAndKeys().keys;this.hasActiveStep()||(this.MdSteppers.activeStep=t[e])},setupObservers:function(){var e=this.$el.querySelector(".md-steppers-wrapper");"ResizeObserver"in window?(this.resizeObserver=new window.ResizeObserver(this.calculateStepperPos),this.resizeObserver.observe(this.$el)):window.addEventListener("resize",this.calculateStepperPos),e&&(this.resizeObserver=(0,a.default)(this.$el.querySelector(".md-steppers-wrapper"),{childList:!0,characterData:!0,subtree:!0},this.calculateStepperPos))},calculateStepperPos:function(){if(!this.mdVertical){var e=this.$el.querySelector(".md-stepper:nth-child("+(this.activeStepIndex+1)+")");this.contentStyles={height:e.offsetHeight+"px"}}},onActiveStepIndex:function(){var e,t=this.getItemsAndKeys(),n=(t.items,t.keys);if(this.hasActiveStep()||this.activeStepIndex)for(this.MdSteppers.activeStep=n[this.activeStepIndex],e=0;e<this.activeStepIndex;e++)this.setStepperAsDone(n[e]);else this.MdSteppers.activeStep=n[0]}},created:function(){this.calculateStepperPos=(0,c.default)(this.calculateStepperPos,300),this.MdSteppers.activeStep=this.mdActiveStep,this.MdSteppers.isLinear=this.mdLinear,this.MdSteppers.isVertical=this.mdVertical},mounted:function(){var e=this;this.$nextTick().then((function(){return e.mdSyncRoute?e.onActiveStepIndex():e.setActiveStepByIndex(0),e.$nextTick()})).then((function(){e.setActiveButtonEl(),e.calculateStepperPos(),window.setTimeout((function(){e.noTransition=!1,e.setupObservers()}),100)}))},beforeDestroy:function(){"ResizeObserver"in window||window.removeEventListener("resize",this.calculateStepperPos)}})},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(206),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(444),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(438)),o=r(n(440)),a=r(n(442)),t.default={name:"MdStepperHeader",components:{MdWarningIcon:i.default,MdCheckIcon:o.default,MdEditIcon:a.default},props:{index:{type:String,required:!0}},inject:["MdSteppers"],computed:{data:function(){return this.MdSteppers.items[this.index]},shouldDisable:function(){var e=this.data,t=this.index,n=this.MdSteppers;return!(!e.done||e.editable)||n.isLinear&&!n.isPreviousStepperDone(t)},classes:function(){return{"md-active":!this.MdSteppers.syncRoute&&this.index===this.MdSteppers.activeStep,"md-error":this.data.error,"md-done":this.data.done}}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdWarningIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdCheckIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdEditIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(11),a=r(o),s=r(n(28)),c=r(n(205)),t.default={name:"MdStep",components:{MdStepHeader:c.default},mixins:[s.default],props:{id:{type:String,default:function(){return"md-stepper-"+(0,a.default)()}},href:[String,Number],mdLabel:String,mdDescription:String,mdError:String,mdDone:Boolean,mdEditable:{type:Boolean,default:!0}},inject:["MdSteppers"],watch:{$props:{deep:!0,handler:function(){this.setStepperData()}}},methods:{getPropValues:function(){var e=this,t=Object.keys(this.$options.props),n=["id","mdLabel","mdDescription","mdError","mdEditable"],r={};return t.forEach((function(t){n.includes(t)||(e[t]?r[t]=e[t]:e.$attrs.hasOwnProperty(t)&&(r[t]=!t||e.$attrs[t]))})),r},setStepperData:function(){this.$set(this.MdSteppers.items,this.id,{label:this.mdLabel,description:this.mdDescription,error:this.mdError,done:this.mdDone,editable:this.mdEditable,props:this.getPropValues(),events:this.$listeners})},setupWatchers:function(){var e=this,t=function(t){if(e.MdSteppers.items[e.id])return e.MdSteppers.items[e.id][t]};this.$watch((function(){return t("error")}),(function(){return e.$emit("update:mdError",t("error"))})),this.$watch((function(){return t("done")}),(function(){return e.$emit("update:mdDone",t("done"))}))}},created:function(){this.setStepperData(),this.setupWatchers()},beforeDestroy:function(){this.$delete(this.MdSteppers.items,this.id)},render:function(e){var t={staticClass:"md-stepper",attrs:i({},this.$attrs,{id:this.id}),on:this.$listeners};return this.href?this.buttonProps=this.$options.props:this.$router&&this.to&&(this.$options.props=MdRouterLinkProps(this,this.$options.props),t.props=this.$props),e("div",t,this.$slots.default)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdSubheader",computed:{insideList:function(){return"md-list"===this.$parent.$options._componentTag}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(102)),a=n(11),s=r(a),t.default=new i.default({name:"MdSwitch",mixins:[o.default],props:{id:{type:String,default:function(){return"md-switch-"+(0,s.default)()}}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(10),a=r(o),s=r(n(461)),c=n(11),l=r(c),u=r(n(8)),d=r(n(462)),f=r(n(470)),h=r(n(220)),p=r(n(477)),m=r(n(222)),v=n(61),g=r(v),b=function(e,t){var n,r,i=e,o=!0,a=!1,s=void 0;try{for(n=t.split(".")[Symbol.iterator]();!(o=(r=n.next()).done);o=!0)i=i[r.value]}catch(e){a=!0,s=e}finally{try{!o&&n.return&&n.return()}finally{if(a)throw s}}return i},t.default={name:"MdTable",components:{MdTagSwitcher:s.default,MdTableAlternateHeader:f.default,MdTableThead:d.default,MdTableRow:h.default,MdTableRowGhost:p.default,MdTableCellSelection:m.default},props:{value:[Array,Object],mdModelId:{type:String,default:"id"},mdCard:Boolean,mdFixedHeader:Boolean,mdHeight:{type:[Number,String],default:400},mdSort:String,mdSortOrder:i({type:String,default:"asc"},(0,u.default)("md-sort-order",["asc","desc"])),mdSortFn:{type:Function,default:function(e){var t=this;return e.sort((function(e,n){var r=t.MdTable.sort,i=b(e,r),o=b(n,r),a="asc"===t.MdTable.sortOrder;return i?o?"number"==typeof i?a?i-o:o-i:a?i.localeCompare(o):o.localeCompare(i):-1:1}))}},mdSelectedValue:{type:[Array,Object]}},data:function(){return{windowResizeObserver:null,fixedHeaderTableWidth:0,fixedHeaderPadding:0,hasContentScroll:!1,MdTable:{items:{},sort:null,sortOrder:null,singleSelection:null,selectedItems:[],selectable:[],fixedHeader:null,contentPadding:null,contentEl:null,hasValue:this.hasValue,emitEvent:this.emitEvent,sortTable:this.sortTable,manageItemSelection:this.manageItemSelection,getModel:this.getModel,getModelItem:this.getModelItem,selectingMode:null},itemsUuidMap:new WeakMap}},computed:{contentTag:function(){return this.mdCard?"md-card":"md-content"},headerCount:function(){return Object.keys(this.MdTable.items).length},selectedCount:function(){return this.MdTable.selectedItems.length},headerStyles:function(){if(this.mdFixedHeader)return"padding-right: "+this.fixedHeaderPadding+"px"},hasValue:function(){return this.value&&0!==this.value.length},headerClasses:function(){if(this.mdFixedHeader&&this.hasContentScroll||!this.hasValue)return"md-table-fixed-header-active"},contentStyles:function(){if(this.mdFixedHeader){var e="number"==typeof this.mdHeight?this.mdHeight+"px":this.mdHeight;return"height: "+e+";max-height: "+e}},contentClasses:function(){if(this.mdFixedHeader&&0===this.value.length)return"md-table-empty"},fixedHeaderTableStyles:function(){return{width:this.fixedHeaderTableWidth+"px"}}},provide:function(){return{MdTable:this.MdTable}},watch:{mdSort:{immediate:!0,handler:function(){this.MdTable.sort=this.mdSort}},mdSortOrder:{immediate:!0,handler:function(){this.MdTable.sortOrder=this.mdSortOrder}},mdFixedHeader:{immediate:!0,handler:function(){this.MdTable.fixedHeader=this.mdFixedHeader}},hasValue:{immediate:!0,handler:function(){this.MdTable.hasValue=this.hasValue}},"MdTable.selectedItems":function(e,t){var n=this;(function(){var r=n.isEmpty(e),i=n.isEmpty(t),o=r&&i;return!(o||!o&&e.length===t.length&&e.every((function(e,n){return e==t[n]})))})()&&this.select(e)},"MdTable.singleSelection":function(e,t){e!=t&&this.select(e)},mdSelectedValue:function(){this.syncSelectedValue()},value:function(){this.syncSelectedValue(),this.setWidth()}},methods:{isEmpty:function(e){return!e||0===e.length},emitEvent:function(e,t){this.$emit(e,t)},getRowId:function(e,t){var n=e[t];return n||((n=this.itemsUuidMap.get(e))||(n="md-row-"+(0,l.default)(),this.itemsUuidMap.set(e,n)),n)},setScroll:function(e){var t=this;(0,a.default)((function(){t.mdFixedHeader&&(t.$refs.fixedHeaderContainer.scrollLeft=e.target.scrollLeft),t.hasContentScroll=e.target.scrollTop>0}))},setHeaderScroll:function(e){var t=this;(0,a.default)((function(){t.MdTable.contentEl.scrollLeft=e.target.scrollLeft}))},getContentEl:function(){return this.$el.querySelector(".md-table-content")},setContentEl:function(){this.MdTable.contentEl=this.getContentEl()},setHeaderPadding:function(){var e,t;this.setContentEl(),t=(e=this.MdTable.contentEl).childNodes[0],this.fixedHeaderPadding=e.offsetWidth-t.offsetWidth},getModel:function(){return this.value},getModelItem:function(e){return this.value[e]},manageItemSelection:function(e){this.MdTable.selectedItems.includes(e)?this.MdTable.selectedItems=this.MdTable.selectedItems.filter((function(t){return t!==e})):this.MdTable.selectedItems=this.MdTable.selectedItems.concat([e])},sortTable:function(){Array.isArray(this.value)&&this.$emit("input",this.mdSortFn(this.value))},select:function(e){this.$emit("update:mdSelectedValue",e),this.$emit("md-selected",e)},syncSelectedValue:function(){var e=this;this.$nextTick().then((function(){"single"===e.MdTable.selectingMode?e.MdTable.singleSelection=e.mdSelectedValue:"multiple"===e.MdTable.selectingMode&&(e.MdTable.selectedItems=e.mdSelectedValue||[])}))},setWidth:function(){this.mdFixedHeader&&(this.fixedHeaderTableWidth=this.$refs.contentTable.offsetWidth)}},created:function(){this.mdSort&&this.sortTable(),this.syncSelectedValue()},mounted:function(){this.setContentEl(),this.$nextTick().then(this.setWidth),this.mdFixedHeader&&(this.setHeaderPadding(),this.windowResizeObserver=new g.default(window,this.setWidth))},beforeDestroy:function(){this.windowResizeObserver&&this.windowResizeObserver.destroy()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e};t.default={functional:!0,props:{mdTag:{type:String,default:"div"}},render:function(e,t){var n=t.props,i=t.children,o=t.data,a=t.listeners;return e(n.mdTag,r({},o,{on:a}),i)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(101)),o=r(n(467)),t.default={name:"MdTableThead",inject:["MdTable"],components:{MdTableHead:i.default,MdTableHeadSelection:o.default}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(464)),o=n(61),a=r(o),t.default={name:"MdTableHead",components:{MdUpwardIcon:i.default},props:{mdNumeric:Boolean,numeric:Boolean,id:[String,Number],label:String,tooltip:String,sortBy:String},inject:["MdTable"],data:function(){return{width:null,windowResizeObserver:null}},computed:{hasSort:function(){return this.MdTable.sort&&this.sortBy},isSorted:function(){if(this.MdTable.sort)return this.MdTable.sort===this.sortBy},isDescSorted:function(){return this.isSorted&&"desc"===this.MdTable.sortOrder},isAscSorted:function(){return this.isSorted&&"asc"===this.MdTable.sortOrder},headStyles:function(){return{width:this.width+"px"}},headClasses:function(){return{"md-numeric":this.numeric||this.mdNumeric,"md-sortable":this.hasSort,"md-sorted":this.isSorted,"md-sorted-desc":this.isDescSorted}}},methods:{changeSort:function(){this.hasSort&&(this.isAscSorted?this.MdTable.sortOrder="desc":this.MdTable.sortOrder="asc",this.MdTable.sort=this.sortBy,this.MdTable.emitEvent("md-sorted",this.MdTable.sort),this.MdTable.emitEvent("update:mdSort",this.MdTable.sort),this.MdTable.emitEvent("update:mdSortOrder",this.MdTable.sortOrder),this.MdTable.sortTable())},getChildNodesBySelector:function(e,t){return Array.from(e.childNodes).filter((function(e){var n=e.classList;return n&&n.contains(t)}))},getNodeIndex:function(e,t){return[].indexOf.call(e,t)},setWidth:function(){var e,t,n;this.MdTable.fixedHeader&&(e=this.getChildNodesBySelector(this.$el.parentNode,"md-table-head"),t=this.MdTable.contentEl.querySelectorAll("tr:first-child .md-table-cell"),n=this.getNodeIndex(e,this.$el),this.width=t[n].offsetWidth)}},updated:function(){this.$nextTick().then(this.setWidth)},mounted:function(){this.$nextTick().then(this.setWidth),this.MdTable.fixedHeader&&(this.windowResizeObserver=new a.default(window,this.setWidth))},beforeDestroy:function(){this.windowResizeObserver&&this.windowResizeObserver.destroy()}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdUpwardIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(101)),t.default={name:"MdTableHeadSelection",components:{MdTableHead:r.default},inject:["MdTable"],computed:{selectableCount:function(){return Object.keys(this.selectable).length},isDisabled:function(){return!this.selectableCount},selectable:function(){return this.MdTable.selectable},selectedItems:function(){return this.MdTable.selectedItems},allSelected:function(){var e=this;return 0!==this.selectableCount&&this.selectable.every((function(t){return e.selectedItems.includes(t)}))}},methods:{onChange:function(e){var t=this;this.MdTable.selectedItems=e?this.selectedItems.concat(this.selectable.filter((function(e){return!t.selectedItems.includes(e)}))):this.selectedItems.filter((function(e){return!t.selectable.includes(e)}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTableAlternateHeader"}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(221),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(476),s=function(e){n(473)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(8)),a=r(n(222)),t.default={name:"MdTableRow",components:{MdTableCellSelection:a.default},props:{mdIndex:[Number,String],mdId:[Number,String],mdSelectable:i({type:[String]},(0,o.default)("md-selectable",["multiple","single"])),mdDisabled:Boolean,mdAutoSelect:Boolean,mdItem:[Array,Object]},inject:["MdTable"],data:function(){return{index:null}},computed:{selectableCount:function(){return this.MdTable.selectable.length},isMultipleSelected:function(){return this.MdTable.selectedItems.includes(this.mdItem)},isSingleSelected:function(){return this.MdTable.singleSelection===this.mdItem},hasMultipleSelection:function(){return this.MdTable.hasValue&&"multiple"===this.mdSelectable},hasSingleSelection:function(){return this.MdTable.hasValue&&"single"===this.mdSelectable},rowClasses:function(){if(this.MdTable.hasValue)return{"md-has-selection":!this.mdDisabled&&(this.mdAutoSelect||this.hasSingleSelection),"md-selected":this.isMultipleSelected,"md-selected-single":this.isSingleSelected}},isInSelectedItems:function(){return this.MdTable.selectedItems.includes(this.mdItem)}},watch:{mdDisabled:function(){this.mdDisabled?this.removeSelectableItem():this.addSelectableItem()},mdSelectable:function(){this.MdTable.selectingMode=this.mdSelectable},mdItem:function(e,t){this.removeSelectableItem(t),this.$nextTick(this.addSelectableItem)}},methods:{onClick:function(){this.MdTable.hasValue&&!this.mdDisabled&&(this.hasMultipleSelection?this.selectRowIfMultiple():this.hasSingleSelection&&this.selectRowIfSingle())},toggleSelection:function(){this.MdTable.manageItemSelection(this.mdItem)},addSelection:function(){this.isMultipleSelected||(this.MdTable.selectedItems=this.MdTable.selectedItems.concat([this.mdItem]))},removeSelection:function(){var e=this;this.isMultipleSelected&&(this.MdTable.selectedItems=this.MdTable.selectedItems.filter((function(t){return t!==e.mdItem})))},selectRowIfSingle:function(){this.MdTable.singleSelection===this.mdItem?this.MdTable.singleSelection=null:this.MdTable.singleSelection=this.mdItem},selectRowIfMultiple:function(){this.mdAutoSelect&&this.toggleSelection()},addSelectableItem:function(){return!(!this.hasMultipleSelection||this.mdDisabled)&&!this.MdTable.selectable.includes(this.mdItem)&&void(this.MdTable.selectable=this.MdTable.selectable.concat([this.mdItem]))},removeSelectableItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mdItem;"multiple"===this.mdSelectable&&(this.MdTable.selectable=this.MdTable.selectable.filter((function(t){return t!==e})))}},created:function(){var e=this;this.$nextTick((function(){e.addSelectableItem(),e.MdTable.selectingMode=e.mdSelectable}))},beforeDestroy:function(){this.removeSelectableItem()}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(223),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(475),s=function(e){n(474)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTableCellSelection",props:{value:Boolean,mdRowId:[Number,String],mdSelectable:Boolean,mdDisabled:Boolean},inject:["MdTable"],data:function(){return{isSelected:!1}},watch:{value:{immediate:!0,handler:function(e){this.isSelected=e}}},methods:{onChange:function(){this.$emit("input",this.isSelected)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTableRowGhost",props:{mdIndex:[String,Number],mdId:[String,Number],mdItem:[Array,Object]},render:function(){return this.$slots.default[0].componentOptions.propsData.mdIndex=this.mdIndex,this.$slots.default[0].componentOptions.propsData.mdId=this.mdId,this.$slots.default[0].componentOptions.propsData.mdItem=this.mdItem,this.$slots.default[0]}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(111)),t.default={name:"MdTableToolbar",components:{MdToolbar:r.default},inject:["MdTable"]}},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-toolbar",class:[e.$mdActiveTheme,"md-elevation-"+e.mdElevation]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i;Object.defineProperty(t,"__esModule",{value:!0}),r(n(105)),i=r(n(97)),t.default={name:"MdTableEmptyState",props:i.default,inject:["MdTable"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTableCell",props:{mdId:[String,Number],mdLabel:String,mdNumeric:Boolean,mdTooltip:String,mdSortBy:String},inject:["MdTable"],data:function(){return{index:null,parentNode:null}},computed:{cellClasses:function(){return{"md-numeric":this.mdNumeric}}},watch:{mdSortBy:function(){this.setCellData()},mdNumeric:function(){this.setCellData()},mdLabel:function(){this.setCellData()},mdTooltip:function(){this.setCellData()}},methods:{setCellData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;this.$set(this.MdTable.items,e.index,{id:e.mdId,label:e.mdLabel,numeric:e.mdNumeric,tooltip:e.mdTooltip,sortBy:e.mdSortBy})},updateAllCellData:function(){var e=this;this.MdTable.items={},Array.from(this.parentNode.childNodes).filter((function(e){var t=e.tagName,n=e.classList,r=n&&n.contains("md-table-cell-selection");return t&&"td"===t.toLowerCase()&&!r})).forEach((function(t,n){var r=t.__vue__;r.index=n,e.setCellData(r)}))}},mounted:function(){this.parentNode=this.$el.parentNode,this.updateAllCellData()},destroyed:function(){if(null!==this.$el.parentNode)return!1;this.updateAllCellData()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTablePagination",inject:["MdTable"],props:{mdPageSize:{type:[String,Number],default:10},mdPageOptions:{type:Array,default:function(){return[10,25,50,100]}},mdPage:{type:Number,default:1},mdTotal:{type:[String,Number],default:"Many"},mdLabel:{type:String,default:"Rows per page:"},mdSeparator:{type:String,default:"of"}},data:function(){return{currentPageSize:0}},computed:{currentItemCount:function(){return(this.mdPage-1)*this.mdPageSize+1},currentPageCount:function(){return this.mdPage*this.mdPageSize}},watch:{mdPageSize:{immediate:!0,handler:function(e){this.currentPageSize=this.pageSize}}},methods:{setPageSize:function(){this.$emit("update:mdPageSize",this.currentPageSize)},goToPrevious:function(){},goToNext:function(){}},created:function(){this.currentPageSize=this.mdPageSize}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s,c,l,u,d,f,h,p,m,v;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=n(10),s=r(a),c=r(n(1)),l=r(n(43)),u=r(n(8)),d=n(48),f=r(d),h=n(110),p=r(h),m=r(n(103)),v=r(n(104)),t.default=new c.default({name:"MdTabs",mixins:[l.default,v.default],components:{MdContent:m.default},props:{mdAlignment:o({type:String,default:"left"},(0,u.default)("md-alignment",["left","right","centered","fixed"])),mdElevation:{type:[Number,String],default:0},mdSyncRoute:Boolean,mdDynamicHeight:Boolean,mdActiveTab:[String,Number]},data:function(){return{resizeObserver:null,activeTab:0,activeTabIndex:0,indicatorStyles:{},indicatorClass:null,noTransition:!0,containerStyles:{},contentStyles:{height:"0px"},hasContent:!1,MdTabs:{items:{}},activeButtonEl:null}},provide:function(){return{MdTabs:this.MdTabs}},computed:{tabsClasses:function(){var e;return i(e={},"md-alignment-"+this.mdAlignment,!0),i(e,"md-no-transition",this.noTransition),i(e,"md-dynamic-height",this.mdDynamicHeight),e},navigationClasses:function(){return"md-elevation-"+this.mdElevation},mdSwipeElement:function(){return this.$refs.tabsContent.$el}},watch:{MdTabs:{deep:!0,handler:function(){this.setHasContent()}},activeTab:function(e){var t=this;this.$emit("md-changed",e),this.$nextTick().then((function(){t.setIndicatorStyles(),t.setActiveButtonEl()}))},mdActiveTab:function(e){this.activeTab=e,this.$emit("md-changed",e)},activeButtonEl:function(e){this.activeTabIndex=e?[].indexOf.call(e.parentNode.childNodes,e):-1},activeTabIndex:function(e){this.setIndicatorStyles(),this.calculateTabPos()},$route:function(){this.$nextTick(this.setActiveButtonEl)},swiped:function(e){var t=this.getItemsAndKeys().keys.length||0;this.activeTabIndex<t&&"right"===e?this.setSwipeActiveTabByIndex(this.activeTabIndex+1):this.activeTabIndex>0&&"left"===e&&this.setSwipeActiveTabByIndex(this.activeTabIndex-1)}},methods:{hasActiveTab:function(){return this.activeTab||this.mdActiveTab},getItemsAndKeys:function(){var e=this.MdTabs.items;return{items:e,keys:Object.keys(e)}},setActiveTab:function(e){this.mdSyncRoute||(this.activeTab=e)},setActiveButtonEl:function(){this.activeButtonEl=this.$refs.navigation.querySelector(".md-tab-nav-button.md-active")},setSwipeActiveTabByIndex:function(e){var t=this.getItemsAndKeys().keys;t&&(this.activeTab=t[e])},setActiveTabByIndex:function(e){var t=this.getItemsAndKeys().keys;this.hasActiveTab()||(this.activeTab=t[e])},setHasContent:function(){var e=this.getItemsAndKeys(),t=e.items,n=e.keys;this.hasContent=n.some((function(e){return t[e].hasContent}))},setIndicatorStyles:function(){var e=this;(0,s.default)((function(){e.$nextTick().then((function(){var t,n,r;e.activeButtonEl&&e.$refs.indicator?(t=e.activeButtonEl.offsetWidth,n=e.activeButtonEl.offsetLeft,r=e.$refs.indicator.offsetLeft,e.indicatorClass=r<n?"md-tabs-indicator-right":"md-tabs-indicator-left",e.indicatorStyles={left:n+"px",right:"calc(100% - "+(t+n)+"px)"}):e.indicatorStyles={left:"100%",right:"100%"}}))}))},calculateTabPos:function(){if(this.hasContent){var e=this.$el.querySelector(".md-tab:nth-child("+(this.activeTabIndex+1)+")");this.contentStyles={height:e?e.offsetHeight+"px":0},this.containerStyles={transform:"translate3D("+100*-this.activeTabIndex+"%, 0, 0)"}}},callResizeFunctions:function(){this.setIndicatorStyles(),this.calculateTabPos()},setupObservers:function(){var e=this;this.resizeObserver=(0,f.default)(this.$el.querySelector(".md-tabs-content"),{childList:!0,characterData:!0,subtree:!0},(function(){e.callResizeFunctions()})),window.addEventListener("resize",this.callResizeFunctions)}},created:function(){this.setIndicatorStyles=(0,p.default)(this.setIndicatorStyles,300),this.setHasContent(),this.activeTab=this.mdActiveTab},mounted:function(){var e=this;this.setupObservers(),this.$nextTick().then((function(){return e.mdSyncRoute||e.setActiveTabByIndex(0),e.$nextTick()})).then((function(){e.setActiveButtonEl(),e.calculateTabPos(),window.setTimeout((function(){e.noTransition=!1,e.setupObservers()}),100)})),this.$refs.navigation.addEventListener("transitionend",this.setIndicatorStyles)},beforeDestroy:function(){this.resizeObserver&&this.resizeObserver.disconnect(),window.removeEventListener("resize",this.callResizeFunctions),this.$refs.navigation.removeEventListener("transitionend",this.setIndicatorStyles)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(11),a=r(o),s=r(n(28)),c=n(48),l=r(c),u=n(29),d=r(u),t.default={name:"MdTab",mixins:[s.default],props:{id:{type:String,default:function(){return"md-tab-"+(0,a.default)()}},href:[String,Number],mdDisabled:Boolean,mdLabel:[String,Number],mdIcon:String,mdTemplateData:{type:Object,default:function(){return{}}}},inject:["MdTabs"],data:function(){return{observer:null}},watch:{$props:{deep:!0,handler:function(){this.setTabData()}},$attrs:{deep:!0,handler:function(){this.setTabData()}}},methods:{setTabContent:function(){this.$set(this.MdTabs.items[this.id],"hasContent",!!this.$slots.default)},setupObserver:function(){this.observer=(0,l.default)(this.$el,{childList:!0},this.setTabContent)},setTabData:function(){this.$set(this.MdTabs.items,this.id,{hasContent:!!this.$slots.default,label:this.mdLabel,icon:this.mdIcon,disabled:this.mdDisabled,data:this.mdTemplateData,props:this.getPropValues(),events:this.$listeners})},getPropValues:function(){var e=this,t=Object.keys(this.$options.props),n=["id","mdLabel","mdDisabled","mdTemplateData"],r={};return t.forEach((function(t){n.includes(t)||(e[t]?r[t]=e[t]:e.$attrs.hasOwnProperty(t)&&(r[t]=!t||e.$attrs[t]))})),r}},mounted:function(){this.setupObserver(),this.setTabData()},beforeDestroy:function(){this.observer&&this.observer.disconnect(),this.$delete(this.MdTabs.items,this.id)},render:function(e){var t={staticClass:"md-tab",attrs:i({},this.$attrs,{id:this.id}),on:this.$listeners};return this.href?this.buttonProps=this.$options.props:this.$router&&this.to&&(this.$options.props=(0,d.default)(this,this.$options.props),t.props=this.$props),e("div",t,this.$slots.default)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),s=r(n(56)),t.default=new o.default({name:"MdTooltip",components:{MdPopover:s.default},props:{mdActive:Boolean,mdDelay:{type:[String,Number],default:0},mdDirection:i({type:String,default:"bottom"},(0,a.default)("md-direction",["top","right","bottom","left"]))},data:function(){return{shouldRender:!1,targetEl:null}},computed:{tooltipClasses:function(){return"md-tooltip-"+this.mdDirection},tooltipStyles:function(){return"transition-delay: "+this.mdDelay+"ms"},popperSettings:function(){return{placement:this.mdDirection,modifiers:{offset:{offset:"0, 16"}}}}},watch:{mdActive:function(){this.shouldRender=this.mdActive},shouldRender:function(e){this.$emit("update:mdActive",e)}},methods:{show:function(){this.shouldRender=!0},hide:function(){this.shouldRender=!1}},mounted:function(){var e=this;this.$nextTick().then((function(){e.shouldRender=e.mdActive,e.targetEl=e._vnode.componentInstance.originalParentEl,e.targetEl&&(e.targetEl.addEventListener("mouseenter",e.show,!1),e.targetEl.addEventListener("mouseleave",e.hide,!1))}))},beforeDestroy:function(){this.targetEl&&(this.targetEl.removeEventListener("mouseenter",this.show),this.targetEl.removeEventListener("mouseleave",this.hide))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(235),s=r(a),c=n(245),l=r(c),u=n(248),d=r(u),f=n(251),h=r(f),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(112),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(236)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(113),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(239),s=function(e){n(238)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-app md-app-side-drawer md-layout-row",class:[e.appClasses,e.$mdActiveTheme]},[e._t("md-app-drawer-left"),e._v(" "),e._t("md-app-drawer-right-previous"),e._v(" "),n("main",{staticClass:"md-app-container md-flex md-layout-column",class:[e.$mdActiveTheme,e.scrollerClasses],style:e.contentStyles,on:{"&scroll":function(t){return e.handleScroll(t)}}},[e._t("md-app-toolbar"),e._v(" "),n("div",{staticClass:"md-app-scroller md-layout-column md-flex",class:[e.$mdActiveTheme,e.scrollerClasses],style:e.containerStyles,on:{"&scroll":function(t){return e.handleScroll(t)}}},[e._t("md-app-content")],2)],2),e._v(" "),e._t("md-app-drawer-right")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(115),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(242),s=function(e){n(241)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-app md-app-internal-drawer md-layout-column",class:[e.appClasses,e.$mdActiveTheme]},[e._t("md-app-toolbar"),e._v(" "),n("main",{staticClass:"md-app-container md-flex md-layout-row",class:[e.$mdActiveTheme,e.scrollerClasses],style:[e.containerStyles,e.contentStyles]},[e._t("md-app-drawer-left"),e._v(" "),e._t("md-app-drawer-right-previous"),e._v(" "),n("div",{staticClass:"md-app-scroller md-layout-column md-flex",class:[e.$mdActiveTheme,e.scrollerClasses]},[e._t("md-app-content")],2),e._v(" "),e._t("md-app-drawer-right")],2)],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(116),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(244),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"md-drawer md-right-previous",class:e.drawerClasses})},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(117),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(247),s=function(e){n(246)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-toolbar",e._g(e._b({staticClass:"md-app-toolbar",class:e.toolbarClasses,style:e.toolbarStyles},"md-toolbar",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(118),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(250),s=function(e){n(249)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.showCard?n("md-card",e._g(e._b({staticClass:"md-app-content md-flex"},"md-card",e.$attrs,!1),e.$listeners),[e._t("default")],2):n("md-content",e._g(e._b({staticClass:"md-app-content md-flex"},"md-content",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(119),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(252),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-drawer",e._g(e._b({ref:"drawer",staticClass:"md-app-drawer",attrs:{"md-active":e.mdActive&&e.initialized,"md-right":e.mdRight}},"md-drawer",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(254),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(120),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(259),s=function(e){n(255)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(121),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(258),s=function(e){n(257)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-badge",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hasDefaultSlot?n("div",{staticClass:"md-badge-content"},[e._t("default"),e._v(" "),n("md-badge-standalone",{class:e.badgeClasses,style:e.styles},[n("div",[e._v("\n "+e._s(e.mdContent)+"\n ")])])],2):n("md-badge-standalone",{class:e.badgeClasses,style:e.styles},[e._v("\n "+e._s(e.mdContent)+"\n")])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(261),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(122),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(265),s=function(e){n(262)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o=t.length,a=e.length;if(a>o)return!1;if(a===o)return e===t;e:for(n=0,r=0;n<a;n++){for(i=e.charCodeAt(n);r<o;)if(t.charCodeAt(r++)===i)continue e;return!1}return!0}},function(e,t){e.exports=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-field",{staticClass:"md-autocomplete",class:e.fieldClasses,attrs:{"md-clearable":"","md-inline":e.isBoxLayout}},[n("md-menu",{attrs:{"md-direction":"bottom-start","md-dense":e.mdDense,"md-align-trigger":"","md-full-width":"","md-active":e.showMenu},on:{"update:mdActive":function(t){e.showMenu=t},"update:md-active":function(t){e.showMenu=t}}},[n("md-input",e._b({attrs:{id:e.mdInputId,name:e.mdInputName,maxlength:e.mdInputMaxlength,placeholder:e.mdInputPlaceholder},on:{focus:function(t){return t.stopPropagation(),e.openOnFocus(t)},blur:e.hideOptions,input:e.onInput,click:function(t){return t.stopPropagation(),t.preventDefault(),e.openOnFocus(t)}},model:{value:e.searchTerm,callback:function(t){e.searchTerm=t},expression:"searchTerm"}},"md-input",e.$attrs,!1)),e._v(" "),n("md-menu-content",{directives:[{name:"show",rawName:"v-show",value:e.hasScopedEmptySlot||e.hasFilteredItems,expression:"hasScopedEmptySlot || hasFilteredItems"}],class:e.contentClasses},[e.isPromisePending?n("div",{staticClass:"md-autocomplete-loading"},[n("md-progress-spinner",{attrs:{"md-diameter":40,"md-stroke":4,"md-mode":"indeterminate"}})],1):e._e(),e._v(" "),e.hasFilteredItems?n("div",{staticClass:"md-autocomplete-items"},e._l(e.getOptions(),(function(t,r){return n("md-menu-item",{key:r,on:{click:function(n){return e.selectItem(t,n)}}},[e.$scopedSlots["md-autocomplete-item"]?e._t("md-autocomplete-item",null,{item:t,term:e.searchTerm}):[e._v(e._s(t))]],2)})),1):e.hasScopedEmptySlot?n("md-menu-item",[n("div",{staticClass:"md-autocomplete-empty"},[e._t("md-autocomplete-empty",null,{term:e.searchTerm})],2)]):e._e()],1)],1),e._v(" "),e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(267),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(123),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(269),s=function(e){n(268)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-avatar",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(271),s=r(a),c=n(274),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(124),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(273),s=function(e){n(272)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-bottom-bar",class:[e.$mdActiveTheme,e.barClasses]},[n("md-ripple",{attrs:{"md-disabled":"fixed"===e.mdType,"md-active":e.MdBottomBar.mouseEvent}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(125),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(275),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-button",e._g(e._b({staticClass:"md-bottom-bar-item",class:e.itemClasses,attrs:{id:e.id,disabled:e.mdDisabled,"md-ripple":"fixed"===e.MdBottomBar.type},on:{click:e.setActiveItem}},"md-button",e.attrs,!1),e.$listeners),[e.$slots.default?e._t("default"):[e.isAssetIcon(e.mdIcon)?n("md-icon",{staticClass:"md-bottom-bar-icon",attrs:{"md-src":e.mdIcon}}):n("md-icon",{staticClass:"md-bottom-bar-icon"},[e._v(e._s(e.mdIcon))]),e._v(" "),n("span",{staticClass:"md-bottom-bar-label"},[e._v(e._s(e.mdLabel))])]],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(39),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_,C,A,x,S,M,E,T;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(278),s=r(a),c=n(281),l=r(c),u=n(284),d=r(u),f=n(287),h=r(f),p=n(289),m=r(p),v=n(292),g=r(v),b=n(295),y=r(b),k=n(298),w=r(k),_=n(301),C=r(_),A=n(304),x=r(A),S=n(306),M=r(S),E=n(309),T=r(E),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default),e.component(m.default.name,m.default),e.component(g.default.name,g.default),e.component(y.default.name,y.default),e.component(w.default.name,w.default),e.component(C.default.name,C.default),e.component(x.default.name,x.default),e.component(M.default.name,M.default),e.component(T.default.name,T.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(126),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(280),s=function(e){n(279)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card",class:[e.$mdActiveTheme,e.cardClasses]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(127),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(283),s=function(e){n(282)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-area",class:e.areaClasses},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(128),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(286),s=function(e){n(285)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-header"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(129),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(288),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-header-text"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(130),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(291),s=function(e){n(290)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-media",class:e.mediaClasses},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(131),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(294),s=function(e){n(293)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-media-actions"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(132),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(297),s=function(e){n(296)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-card-media-cover",class:e.coverClasses},[e._t("default"),e._v(" "),e.mdTextScrim?n("div",{ref:"backdrop",staticClass:"md-card-backdrop",style:e.coverStyles}):e._e()],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(133),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(300),s=function(e){n(299)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-content"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(134),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(303),s=function(e){n(302)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-expand"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(135),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(305)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(136),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(308),s=function(e){n(307)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-expand-content",style:e.contentStyles},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(137),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(311),s=function(e){n(310)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-actions",class:"md-alignment-"+e.mdAlignment},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(313),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(138),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(315),s=function(e){n(314)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-checkbox",class:[e.$mdActiveTheme,e.checkClasses]},[n("div",{staticClass:"md-checkbox-container",on:{click:function(t){return t.stopPropagation(),e.toggleCheck(t)}}},[n("md-ripple",{attrs:{"md-centered":"","md-active":e.rippleActive,"md-disabled":e.disabled},on:{"update:mdActive":function(t){e.rippleActive=t},"update:md-active":function(t){e.rippleActive=t}}},[n("input",e._b({attrs:{id:e.id,type:"checkbox"},domProps:{indeterminate:e.indeterminate}},"input",e.attrs,!1))])],1),e._v(" "),e.$slots.default?n("label",{staticClass:"md-checkbox-label",attrs:{for:e.id},on:{click:function(t){return t.preventDefault(),e.toggleCheck(t)}}},[e._t("default")],2):e._e()])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(317),s=r(a),c=n(320),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(139),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(319),s=function(e){n(318)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-field",{staticClass:"md-chips",class:[e.$mdActiveTheme,e.chipsClasses]},[e._t("default"),e._v(" "),e._l(e.value,(function(t,r){return n("md-chip",{key:t,attrs:{"md-deletable":!e.mdStatic,"md-clickable":!e.mdStatic,"md-duplicated":e.duplicatedChip===t},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.$emit("md-click",t,r)},"md-delete":function(n){return n.stopPropagation(),e.removeChip(t)}},nativeOn:{click:function(n){return e.$emit("md-click",t,r)}}},[e.$scopedSlots["md-chip"]?e._t("md-chip",[e._v(e._s(t))],{chip:t}):[e._v(e._s(t))]],2)})),e._v(" "),!e.mdStatic&&e.modelRespectLimit?n("md-input",{ref:"input",attrs:{type:e.mdInputType,id:e.id,placeholder:e.mdPlaceholder},on:{input:e.handleInput,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.insertChip(t)},function(t){return t.type.indexOf("key")||8===t.keyCode?e.handleBackRemove(t):null}]},model:{value:e.inputValue,callback:function(t){e.inputValue="string"==typeof t?t.trim():t},expression:"inputValue"}}):e._e()],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(140),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(322),s=function(e){n(321)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-chip",appear:""}},[n("div",e._g({staticClass:"md-chip",class:[e.$mdActiveTheme,e.chipClasses],attrs:{tabindex:"0"}},e.$listeners),[e.mdClickable||!e.mdRipple?n("md-ripple",{attrs:{"md-disabled":e.mdDisabled}},[e._t("default")],2):e._t("default"),e._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[e.mdDeletable?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-clear",attrs:{tabindex:"-1"},on:{click:function(t){return e.$emit("md-delete",t)}}},[n("md-clear-icon")],1):e._e()],1)],2)])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(103),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(325),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(141),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(351),s=function(e){n(326)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent)},function(e,t,n){"use strict";function r(e,t){for(var n=e<0?"-":"",r=""+Math.abs(e);r.length<t;)r="0"+r;return n+r}function i(e,t){var n=e>0?"-":"+",i=Math.abs(e),o=Math.floor(i/60),a=i%60;return 0===a?n+(o+""):n+(o+"")+(t||"")+r(a,2)}function o(e,t){return e%60==0?(e>0?"-":"+")+r(Math.abs(e)/60,2):a(e,t)}function a(e,t){var n=t||"",i=e>0?"-":"+",o=Math.abs(e);return i+r(Math.floor(o/60),2)+n+r(o%60,2)}function s(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function c(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function l(e){return e.match(E)[1].replace(T,"'")}var u,d,f,h,p,m,v,g,b,y,k,w,_,C,A,x,S,M,E,T;Object.defineProperty(t,"__esModule",{value:!0}),u=n(17),d=n(142),f=n(9),h=n(143),p=n(144),m={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?n+1+"":r(n+1,2)},d:function(e,t){return r(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return r(e.getUTCHours()%12||12,t.length)},H:function(e,t){return r(e.getUTCHours(),t.length)},m:function(e,t){return r(e.getUTCMinutes(),t.length)},s:function(e,t){return r(e.getUTCSeconds(),t.length)}},v=864e5,g=n(145),b=n(146),y=n(147),k=n(93),w={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){var r,i;return"yo"===t?(i=(r=e.getUTCFullYear())>0?r:1-r,n.ordinalNumber(i,{unit:"year"})):m.y(e,t)},Y:function(e,t,n,i){var o=Object(k.a)(e,i),a=o>0?o:1-o;return"YY"===t?r(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):r(a,t.length)},R:function(e,t){return r(Object(b.a)(e),t.length)},u:function(e,t){return r(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return i+"";case"QQ":return r(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return i+"";case"qq":return r(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return m.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return i+1+"";case"LL":return r(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var o=Object(y.a)(e,i);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):r(o,t.length)},I:function(e,t,n){var i=Object(g.a)(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):r(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):m.d(e,t)},D:function(e,t,n){var i=function(e){var t,n,r;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=(t=Object(f.a)(e)).getTime(),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),r=n-t.getTime(),Math.floor(r/v)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):r(i,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var o=e.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(t){case"e":return a+"";case"ee":return r(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var o=e.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(t){case"c":return a+"";case"cc":return r(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),o=0===i?7:i;switch(t){case"i":return o+"";case"ii":return r(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?w.noon:0===i?w.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?w.evening:i>=12?w.afternoon:i>=4?w.morning:w.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return m.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):m.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):r(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):r(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):m.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):m.s(e,t)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds();return r(Math.floor(i*Math.pow(10,n-3)),n)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return o(i);case"XXXX":case"XX":return a(i);case"XXXXX":case"XXX":default:return a(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return o(i);case"xxxx":case"xx":return a(i);case"xxxxx":case"xxx":default:return a(i,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+i(o,":");case"OOOO":default:return"GMT"+a(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+i(o,":");case"zzzz":default:return"GMT"+a(o,":")}},t:function(e,t,n,i){var o=i._originalDate||e;return r(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,i){return r((i._originalDate||e).getTime(),t.length)}},C={p:c,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return s(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",s(i,t)).replace("{{time}}",c(o,t))}},A=n(148),x=n(149),t.default=function(e,t,n){var r,i,o,a,s,c,m,v,g,b,y,k,w;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");if(r=t+"",s=null==(a=(o=(i=n||{}).locale||p.a).options&&o.options.firstWeekContainsDate)?1:Object(u.a)(a),!((c=null==i.firstWeekContainsDate?s:Object(u.a)(i.firstWeekContainsDate))>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");if(v=null==(m=o.options&&o.options.weekStartsOn)?0:Object(u.a)(m),!((g=null==i.weekStartsOn?v:Object(u.a)(i.weekStartsOn))>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");if(b=Object(f.a)(e),!Object(h.default)(b))throw new RangeError("Invalid time value");return y=Object(d.a)(b),k=Object(A.a)(b,y),w={firstWeekContainsDate:c,weekStartsOn:g,locale:o,_originalDate:b},r.match(M).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,C[t])(e,o.formatLong,w):e})).join("").match(S).map((function(e){var t,n;return"''"===e?"'":"'"===(t=e[0])?l(e):(n=_[t])?(!i.awareOfUnicodeTokens&&Object(x.a)(e)&&Object(x.b)(e),n(k,e,o.localize,w)):e})).join("")},S=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,E=/^'(.*?)'?$/,T=/''/g},function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function i(e,t,n){var r,i,o,a,s,c,l,u;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");if(a=null==(o=(i=(r=n||{}).locale)&&i.options&&i.options.weekStartsOn)?0:Object(m.a)(o),!((s=null==r.weekStartsOn?a:Object(m.a)(r.weekStartsOn))>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");return c=Object(g.a)(e),u=(((l=Object(m.a)(t))%7+7)%7<s?7:0)+l-c.getUTCDay(),c.setUTCDate(c.getUTCDate()+u),c}function o(e,t,n){var r,i=t.match(e);return i?(r=parseInt(i[0],10),{value:n?n(r):r,rest:t.slice(i[0].length)}):null}function a(e,t){var n,r,i,o,a=t.match(e);return a?"Z"===a[0]?{value:0,rest:t.slice(1)}:(n="+"===a[1]?1:-1,r=a[2]?parseInt(a[2],10):0,i=a[3]?parseInt(a[3],10):0,o=a[5]?parseInt(a[5],10):0,{value:n*(r*x+i*S+o*M),rest:t.slice(a[0].length)}):null}function s(e,t){return o(E.anyDigitsSigned,e,t)}function c(e,t,n){switch(e){case 1:return o(E.singleDigit,t,n);case 2:return o(E.twoDigits,t,n);case 3:return o(E.threeDigits,t,n);case 4:return o(E.fourDigits,t,n);default:return o(RegExp("^\\d{1,"+e+"}"),t,n)}}function l(e,t,n){switch(e){case 1:return o(E.singleDigitSigned,t,n);case 2:return o(E.twoDigitsSigned,t,n);case 3:return o(E.threeDigitsSigned,t,n);case 4:return o(E.fourDigitsSigned,t,n);default:return o(RegExp("^-?\\d{1,"+e+"}"),t,n)}}function u(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function d(e,t){var n,r,i=t>0,o=i?t:1-t;return o<=50?n=e||100:(r=o+50,n=e+100*Math.floor(r/100)-(e>=r%100?100:0)),i?n:1-n}function f(e){return e%400==0||e%4==0&&e%100!=0}function h(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function p(e){return e.match(R)[1].replace(L,"'")}var m,v,g,b,y,k,w,_,C,A,x,S,M,E,T,D,O,P,I,j,N,R,L,B;Object.defineProperty(t,"__esModule",{value:!0}),m=n(17),v=n(142),g=n(9),b=n(148),y=n(144),k=n(93),w=n(147),_=n(65),C=n(145),A=n(64),x=36e5,S=6e4,M=1e3,E={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},T={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/},D=[31,28,31,30,31,30,31,31,30,31,30,31],O=[31,29,31,30,31,30,31,31,30,31,30,31],P={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return e.setUTCFullYear(1===n?10:-9,0,1),e.setUTCHours(0,0,0,0),e}},y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return c(4,e,i);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return c(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i,o,a=Object(k.a)(e,r);return n.isTwoDigitYear?(i=d(n.year,a),e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e):(o=a>0?n.year:1-n.year,e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e)}},Y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return c(4,e,i);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return c(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i,o,a=e.getUTCFullYear();return n.isTwoDigitYear?(i=d(n.year,a),e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(_.a)(e,r)):(o=a>0?n.year:1-n.year,e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(_.a)(e,r))}},R:{priority:130,parse:function(e,t,n,r){return l("R"===t?4:t.length,e)},set:function(e,t,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Object(A.a)(i)}},u:{priority:130,parse:function(e,t,n,r){return l("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return c(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return c(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},M:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"M":return o(E.month,e,i);case"MM":return c(2,e,i);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},L:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"L":return o(E.month,e,i);case"LL":return c(2,e,i);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return o(E.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Object(_.a)(function(e,t,n){var r,i,o;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return r=Object(g.a)(e),i=Object(m.a)(t),o=Object(w.a)(r,n)-i,r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return o(E.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Object(A.a)(function(e,t){var n,r,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(g.a)(e),r=Object(m.a)(t),i=Object(C.a)(n)-r,n.setUTCDate(n.getUTCDate()-7*i),n}(e,n,r),r)}},d:{priority:90,parse:function(e,t,n,r){switch(t){case"d":return o(E.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return c(t.length,e)}},validate:function(e,t,n){var r=f(e.getUTCFullYear()),i=e.getUTCMonth();return r?t>=1&&t<=O[i]:t>=1&&t<=D[i]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}},D:{priority:90,parse:function(e,t,n,r){switch(t){case"D":case"DD":return o(E.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return c(t.length,e)}},validate:function(e,t,n){return f(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=i(e,n,r)).setUTCHours(0,0,0,0),e}},e:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return c(t.length,e,i);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=i(e,n,r)).setUTCHours(0,0,0,0),e}},c:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return c(t.length,e,i);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=i(e,n,r)).setUTCHours(0,0,0,0),e}},i:{priority:90,parse:function(e,t,n,r){var i=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return c(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:i})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return(e=function(e,t){var n,r,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return(n=Object(m.a)(t))%7==0&&(n-=7),i=((n%7+7)%7<1?7:0)+n-(r=Object(g.a)(e)).getUTCDay(),r.setUTCDate(r.getUTCDate()+i),r}(e,n,r)).setUTCHours(0,0,0,0),e}},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(u(n),0,0,0),e}},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(u(n),0,0,0),e}},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(u(n),0,0,0),e}},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return o(E.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):i||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return o(E.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e}},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return o(E.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return o(E.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e}},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return o(E.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e}},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return o(E.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e}},S:{priority:30,parse:function(e,t,n,r){return c(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e}},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return a(T.basicOptionalMinutes,e);case"XX":return a(T.basic,e);case"XXXX":return a(T.basicOptionalSeconds,e);case"XXXXX":return a(T.extendedOptionalSeconds,e);case"XXX":default:return a(T.extended,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)}},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return a(T.basicOptionalMinutes,e);case"xx":return a(T.basic,e);case"xxxx":return a(T.basicOptionalSeconds,e);case"xxxxx":return a(T.extendedOptionalSeconds,e);case"xxx":default:return a(T.extended,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)}},t:{priority:40,parse:function(e,t,n,r){return s(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]}},T:{priority:20,parse:function(e,t,n,r){return s(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]}}},I=n(149),t.default=function(e,t,n,i){var o,a,s,c,l,u,d,f,k,w,_,C,A,x,S,M,E,T,D,O,R,L,F,z;if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");if(o=e+"",a=t+"",!(c=(s=i||{}).locale||y.a).match)throw new RangeError("locale must contain match property");if(u=null==(l=c.options&&c.options.firstWeekContainsDate)?1:Object(m.a)(l),!((d=null==s.firstWeekContainsDate?u:Object(m.a)(s.firstWeekContainsDate))>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");if(k=null==(f=c.options&&c.options.weekStartsOn)?0:Object(m.a)(f),!((w=null==s.weekStartsOn?k:Object(m.a)(s.weekStartsOn))>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===a)return""===o?Object(g.a)(n):new Date(NaN);for(_={firstWeekContainsDate:d,weekStartsOn:w,locale:c},C=[{priority:j,set:h,index:0}],x=a.match(N),A=0;A<x.length;A++)if(S=x[A],!s.awareOfUnicodeTokens&&Object(I.a)(S)&&Object(I.b)(S),M=S[0],E=P[M]){if(!(T=E.parse(o,S,c.match,_)))return new Date(NaN);C.push({priority:E.priority,set:E.set,validate:E.validate,value:T.value,index:C.length}),o=T.rest}else{if("''"===S?S="'":"'"===M&&(S=p(S)),0!==o.indexOf(S))return new Date(NaN);o=o.slice(S.length)}if(o.length>0&&B.test(o))return new Date(NaN);if(D=C.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return C.filter((function(t){return t.priority===e})).reverse()})).map((function(e){return e[0]})),O=Object(g.a)(n),isNaN(O))return new Date(NaN);for(R=Object(b.a)(O,Object(v.a)(O)),L={},A=0;A<D.length;A++){if((F=D[A]).validate&&!F.validate(R,F.value,_))return new Date(NaN);(z=F.set(R,L,F.value,_))[0]?(R=z[0],r(L,z[1])):R=z}return R},j=10,N=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,R=/^'(.*?)'?$/,L=/''/g,B=/\S/},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(150),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(347),s=function(e){n(331)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e);return t.setDate(1),t.setHours(0,0,0,0),t};var r=n(9)},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(t);return Object(i.default)(e,-n)},r=n(17),i=n(151)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getDate()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getDay()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getMonth()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getFullYear()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(r.a)(e),i=Object(r.a)(t),n.getTime()===i.getTime()};var r=n(9)},function(e,t,n){"use strict";function r(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(i.a)(e);return t.setHours(0,0,0,0),t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(9);t.default=function(e,t){var n,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=r(e),i=r(t),n.getTime()===i.getTime()}},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,o;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(e),o=Object(r.a)(t),n.setDate(o),n},r=n(17),i=n(9)},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,a,s,c,l,u;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(e),a=Object(r.a)(t),s=n.getFullYear(),c=n.getDate(),(l=new Date(0)).setFullYear(s,a,15),l.setHours(0,0,0,0),u=Object(o.default)(l),n.setMonth(a,Math.min(c,u)),n},r=n(17),i=n(9),o=n(96)},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,o;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(e),o=Object(r.a)(t),isNaN(n)?new Date(NaN):(n.setFullYear(o),n)},r=n(17),i=n(9)},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(152),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(344),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}}),e._v(" "),n("path",{attrs:{d:"M0-.25h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(153),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(346),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}}),e._v(" "),n("path",{attrs:{d:"M0-.5h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-popover",{attrs:{"md-settings":e.popperSettings,"md-active":""}},[n("transition",{attrs:{name:"md-datepicker-dialog",appear:""},on:{enter:e.setContentStyles,"after-leave":e.resetDate}},[n("div",{staticClass:"md-datepicker-dialog",class:[e.$mdActiveTheme]},[n("div",{staticClass:"md-datepicker-header"},[n("span",{staticClass:"md-datepicker-year-select",class:{"md-selected":"year"===e.currentView},on:{click:function(t){e.currentView="year"}}},[e._v(e._s(e.selectedYear))]),e._v(" "),n("div",{staticClass:"md-datepicker-date-select",class:{"md-selected":"year"!==e.currentView},on:{click:function(t){e.currentView="day"}}},[n("strong",{staticClass:"md-datepicker-dayname"},[e._v(e._s(e.shortDayName)+", ")]),e._v(" "),n("strong",{staticClass:"md-datepicker-monthname"},[e._v(e._s(e.shortMonthName))]),e._v(" "),n("strong",{staticClass:"md-datepicker-day"},[e._v(e._s(e.currentDay))])])]),e._v(" "),n("div",{staticClass:"md-datepicker-body"},[n("transition",{attrs:{name:"md-datepicker-body-header"}},["day"===e.currentView?n("div",{staticClass:"md-datepicker-body-header"},[n("md-button",{staticClass:"md-dense md-icon-button",on:{click:e.previousMonth}},[n("md-arrow-left-icon")],1),e._v(" "),n("md-button",{staticClass:"md-dense md-icon-button",on:{click:e.nextMonth}},[n("md-arrow-right-icon")],1)],1):e._e()]),e._v(" "),n("div",{staticClass:"md-datepicker-body-content",style:e.contentStyles},[n("transition",{attrs:{name:"md-datepicker-view"}},["day"===e.currentView?n("transition-group",{staticClass:"md-datepicker-panel md-datepicker-calendar",class:e.calendarClasses,attrs:{tag:"div",name:"md-datepicker-month"}},e._l([e.currentDate],(function(t){return n("div",{key:t.getMonth(),staticClass:"md-datepicker-panel md-datepicker-month"},[n("md-button",{staticClass:"md-dense md-datepicker-month-trigger",on:{click:function(t){e.currentView="month"}}},[e._v(e._s(e.currentMonthName)+" "+e._s(e.currentYear))]),e._v(" "),n("div",{staticClass:"md-datepicker-week"},[e._l(e.locale.shorterDays,(function(t,r){return r>=e.firstDayOfAWeek?n("span",{key:r},[e._v(e._s(t))]):e._e()})),e._v(" "),e._l(e.locale.shorterDays,(function(t,r){return r<e.firstDayOfAWeek?n("span",{key:r},[e._v(e._s(t))]):e._e()}))],2),e._v(" "),n("div",{staticClass:"md-datepicker-days"},[e._l(e.prefixEmptyDays,(function(e){return n("span",{key:"day-empty-"+e,staticClass:"md-datepicker-empty"})})),e._v(" "),e._l(e.daysInMonth,(function(t){return n("div",{key:"day-"+t,staticClass:"md-datepicker-day"},[n("span",{staticClass:"md-datepicker-day-button",class:{"md-datepicker-selected":e.isSelectedDay(t),"md-datepicker-today":e.isToday(t),"md-datepicker-disabled":e.isDisabled(t)},on:{click:function(n){return e.selectDate(t)}}},[e._v(e._s(t))])])}))],2)],1)})),0):"month"===e.currentView?n("div",{staticClass:"md-datepicker-panel md-datepicker-month-selector"},[n("md-button",{staticClass:"md-datepicker-year-trigger",on:{click:function(t){e.currentView="year"}}},[e._v(e._s(e.currentYear))]),e._v(" "),e._l(e.locale.months,(function(t,r){return n("span",{key:t,staticClass:"md-datepicker-month-button",class:{"md-datepicker-selected":e.currentMonthName===t},on:{click:function(t){return e.switchMonth(r)}}},[e._v(e._s(t))])}))],2):"year"===e.currentView?n("keep-alive",[n("md-content",{staticClass:"md-datepicker-panel md-datepicker-year-selector md-scrollbar"},e._l(e.availableYears,(function(t){return n("span",{key:t,staticClass:"md-datepicker-year-button",class:{"md-datepicker-selected":e.currentYear===t},on:{click:function(n){return e.switchYear(t)}}},[e._v(e._s(t))])})),0)],1):e._e()],1)],1),e._v(" "),n("md-dialog-actions",{staticClass:"md-datepicker-body-footer"},[n("md-button",{staticClass:"md-primary",on:{click:e.onCancel}},[e._v("Cancel")]),e._v(" "),e.mdImmediately?e._e():n("md-button",{staticClass:"md-primary",on:{click:e.onConfirm}},[e._v("Ok")])],1)],1)])])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(156),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(349),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=void 0;return function(){var r=this,i=arguments,o=function(){return e.apply(r,i)};clearTimeout(n),n=setTimeout(o,t)}}},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-field",{class:["md-datepicker",{"md-native":!this.mdOverrideNative}],attrs:{"md-clearable":""}},[n("md-date-icon",{staticClass:"md-date-icon",nativeOn:{click:function(t){return e.toggleDialog(t)}}}),e._v(" "),n("md-input",{ref:"input",attrs:{type:e.type,pattern:e.pattern},nativeOn:{focus:function(t){return e.onFocus(t)}},model:{value:e.inputDate,callback:function(t){e.inputDate=t},expression:"inputDate"}}),e._v(" "),e._t("default"),e._v(" "),n("keep-alive",[e.showDialog?n("md-datepicker-dialog",{attrs:{"md-date":e.localDate,"md-disabled-dates":e.mdDisabledDates,mdImmediately:e.mdImmediately},on:{"update:mdDate":function(t){e.localDate=t},"update:md-date":function(t){e.localDate=t},"md-closed":e.toggleDialog}}):e._e()],1),e._v(" "),n("md-overlay",{staticClass:"md-datepicker-overlay",attrs:{"md-fixed":"","md-active":e.showDialog},on:{click:e.toggleDialog}})],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),c=n(353),l=r(c),u=n(356),d=r(u),f=n(359),h=r(f),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(157),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(355),s=function(e){n(354)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"md-dialog-title md-title"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(158),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(358),s=function(e){n(357)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:["md-dialog-content",e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(159),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(361),s=function(e){n(360)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-dialog-actions"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(363),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(160),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(365),s=function(e){n(364)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.insideList?n("li",{staticClass:"md-divider",class:[e.$mdActiveTheme]}):n("hr",{staticClass:"md-divider",class:[e.$mdActiveTheme]})},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(367),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(161),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(369),s=function(e){n(368)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-drawer",class:[e.$mdActiveTheme,e.drawerClasses]},[e._t("default"),e._v(" "),e.mdFixed?n("md-overlay",{attrs:{"md-active":e.mdActive},on:{click:e.closeDrawer}}):n("md-overlay",{attrs:{"md-active":e.mdActive,"md-attach-to-parent":""},on:{click:e.closeDrawer}})],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(371),t.default=function(e){}},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(105),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(106),s=r(a),c=n(374),l=r(c),u=n(62),d=r(u),f=n(386),h=r(f),p=n(53),m=r(p),v=n(391),g=r(v),t.default=function(e){(0,o.default)(e),e.use(s.default),e.use(l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default),e.component(m.default.name,m.default),e.component(g.default.name,g.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(375),s=r(a),c=n(380),l=r(c),u=n(383),d=r(u),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(164),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(379),s=function(e){n(376)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(165),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(378),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M7 10l5 5 5-5z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-menu",{staticClass:"md-select",class:{"md-disabled":e.disabled},attrs:{"md-close-on-select":!1,"md-active":e.showSelect,"md-offset-x":e.offset.x,"md-offset-y":e.offset.y,"md-dense":e.mdDense},on:{"update:mdActive":function(t){e.showSelect=t},"update:md-active":function(t){e.showSelect=t},"md-closed":e.onClose}},[n("md-input",e._g(e._b({ref:"input",staticClass:"md-input md-select-value",attrs:{readonly:"",disabled:e.disabled,required:e.required,placeholder:e.placeholder},on:{focus:function(t){return t.preventDefault(),e.onFocus(t)},blur:function(t){return t.preventDefault(),e.removeHighlight(t)},click:e.openSelect,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.openSelect(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.openSelect(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:e.openSelect(t)}]},model:{value:e.MdSelect.label,callback:function(t){e.$set(e.MdSelect,"label",t)},expression:"MdSelect.label"}},"md-input",e.attrs,!1),e.inputListeners)),e._v(" "),n("md-drop-down-icon",{nativeOn:{click:function(t){return e.openSelect(t)}}}),e._v(" "),n("keep-alive",[n("md-menu-content",{ref:"menu",staticClass:"md-select-menu",style:e.menuStyles,attrs:{"md-content-class":e.mdClass},on:{enter:e.onMenuEnter}},[e.showSelect?e._t("default"):e._e()],2)],1),e._v(" "),e.showSelect?e._e():n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[e._t("default")],2),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input-fake",attrs:{disabled:e.disabled,readonly:"",tabindex:"-1"},domProps:{value:e.model},on:{input:function(t){t.target.composing||(e.model=t.target.value)}}}),e._v(" "),n("select",e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],attrs:{readonly:"",tabindex:"-1"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.model=t.target.multiple?n:n[0]}}},"select",e.attributes,!1))],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(170),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(382),s=function(e){n(381)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-menu-item",{class:e.optionClasses,attrs:{disabled:e.isDisabled},on:{click:e.setSelection}},[e.MdSelect.multiple?n("md-checkbox",{staticClass:"md-primary",attrs:{disabled:e.isDisabled},model:{value:e.isChecked,callback:function(t){e.isChecked=t},expression:"isChecked"}}):e._e(),e._v(" "),n("span",{ref:"text",staticClass:"md-list-item-text"},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(171),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(385),s=function(e){n(384)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-optgroup"},[n("md-subheader",[e._v(e._s(e.label))]),e._v(" "),e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(172),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(390),s=function(e){n(387)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(173),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(389),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-file"},[n("md-file-icon",{staticClass:"md-file-icon",class:e.iconClass,nativeOn:{click:function(t){return e.openPicker(t)}}}),e._v(" "),"checkbox"==={disabled:e.disabled,required:e.required,placeholder:e.placeholder}.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{readonly:"",type:"checkbox"},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e.model},on:{click:e.openPicker,blur:e.onBlur,change:function(t){var n,r=e.model,i=t.target,o=!!i.checked;Array.isArray(r)?(n=e._i(r,null),i.checked?n<0&&(e.model=r.concat([null])):n>-1&&(e.model=r.slice(0,n).concat(r.slice(n+1)))):e.model=o}}},"input",{disabled:e.disabled,required:e.required,placeholder:e.placeholder},!1)):"radio"==={disabled:e.disabled,required:e.required,placeholder:e.placeholder}.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{readonly:"",type:"radio"},domProps:{checked:e._q(e.model,null)},on:{click:e.openPicker,blur:e.onBlur,change:function(t){e.model=null}}},"input",{disabled:e.disabled,required:e.required,placeholder:e.placeholder},!1)):n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{readonly:"",type:{disabled:e.disabled,required:e.required,placeholder:e.placeholder}.type},domProps:{value:e.model},on:{click:e.openPicker,blur:e.onBlur,input:function(t){t.target.composing||(e.model=t.target.value)}}},"input",{disabled:e.disabled,required:e.required,placeholder:e.placeholder},!1)),e._v(" "),n("input",e._g(e._b({ref:"inputFile",attrs:{type:"file"},on:{change:e.onChange}},"input",e.attributes,!1),e.$listeners))],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(174),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(392),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("textarea",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-textarea",style:e.textareaStyles,domProps:{value:e.model},on:{focus:e.onFocus,blur:e.onBlur,input:function(t){t.target.composing||(e.model=t.target.value)}}},"textarea",e.attributes,!1),e.listeners))},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(394),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(175),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(395)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(397),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(176),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(399),s=function(e){n(398)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-image",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(401),t.default=function(e){}},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(74),s=r(a),c=n(109),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(107),s=r(a),c=n(108),l=r(c),u=n(404),d=r(u),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(195),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(405),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-list-item",e._g(e._b({staticClass:"md-menu-item",class:[e.itemClasses,e.$mdActiveTheme],attrs:{disabled:e.disabled,tabindex:e.highlighted&&-1}},"md-list-item",e.$attrs,!1),e.listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(407),s=r(a),c=n(410),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(196),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(409),s=function(e){n(408)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-progress-bar",appear:""}},[n("div",{staticClass:"md-progress-bar",class:[e.progressClasses,e.$mdActiveTheme]},[n("div",{staticClass:"md-progress-bar-track",style:e.progressTrackStyle}),e._v(" "),n("div",{staticClass:"md-progress-bar-fill",style:e.progressValueStyle}),e._v(" "),n("div",{staticClass:"md-progress-bar-buffer",attrs:{Style:e.progressBufferStyle}})])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(197),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(412),s=function(e){n(411)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-progress-spinner",appear:""}},[n("div",{staticClass:"md-progress-spinner",class:[e.progressClasses,e.$mdActiveTheme]},[n("svg",{ref:"md-progress-spinner-draw",staticClass:"md-progress-spinner-draw",attrs:{preserveAspectRatio:"xMidYMid meet",focusable:"false",viewBox:"0 0 "+e.mdDiameter+" "+e.mdDiameter}},[n("circle",{ref:"md-progress-spinner-circle",staticClass:"md-progress-spinner-circle",attrs:{cx:"50%",cy:"50%",r:e.circleRadius}})])])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(414),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(198),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(416),s=function(e){n(415)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-radio",class:[e.$mdActiveTheme,e.radioClasses]},[n("div",{staticClass:"md-radio-container",on:{click:function(t){return t.stopPropagation(),e.toggleCheck(t)}}},[n("md-ripple",{attrs:{"md-centered":"","md-active":e.rippleActive,"md-disabled":e.disabled},on:{"update:mdActive":function(t){e.rippleActive=t},"update:md-active":function(t){e.rippleActive=t}}},[n("input",e._b({attrs:{type:"radio"}},"input",{id:e.id,name:e.name,disabled:e.disabled,required:e.required,value:e.value},!1))])],1),e._v(" "),e.$slots.default?n("label",{staticClass:"md-radio-label",attrs:{for:e.id},on:{click:function(t){return t.preventDefault(),e.toggleCheck(t)}}},[e._t("default")],2):e._e()])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(16),s=r(a),c=n(22),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(419),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(199),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(424),s=function(e){n(420)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(200),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(422),s=n(0)(i.a,a.a,!0,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(e,t){var n=t._c;return n("transition",{attrs:{name:"md-snackbar",appear:""}},[n("div",{staticClass:"md-snackbar",class:t.props.mdClasses},[n("div",{staticClass:"md-snackbar-content"},[t._t("default")],2)])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e,t,n){return new Promise((function(r){i={destroy:function(){i=null,r()}},e!==1/0&&(o=window.setTimeout((function(){a(),t||n._vnode.componentInstance.initDestroy(!0)}),e))}))}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=null,o=null,a=t.destroySnackbar=function(){return new Promise((function(e){i?(window.clearTimeout(o),i.destroy(),window.setTimeout(e,400)):e()}))},t.createSnackbar=function(e,t,n){return i?a().then((function(){return r(e,t,n)})):r(e,t,n)}},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.mdPersistent&&e.mdDuration!==1/0?n("md-portal",[n("keep-alive",[e.mdActive?n("md-snackbar-content",{attrs:{"md-classes":[e.snackbarClasses,e.$mdActiveTheme]}},[e._t("default")],2):e._e()],1)],1):n("md-portal",[e.mdActive?n("md-snackbar-content",{attrs:{"md-classes":[e.snackbarClasses,e.$mdActiveTheme]}},[e._t("default")],2):e._e()],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(426),s=r(a),c=n(429),l=r(c),u=n(432),d=r(u),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(201),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(428),s=function(e){n(427)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-speed-dial",class:[e.$mdActiveTheme,e.speedDialClasses]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(202),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(431),s=function(e){n(430)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-button",e._g(e._b({staticClass:"md-speed-dial-target md-fab",on:{click:e.handleClick}},"md-button",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(203),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(434),s=function(e){n(433)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-speed-dial-content"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(436),s=r(a),c=n(446),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(204),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(445),s=function(e){n(437)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(207),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(439),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(208),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(441),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(209),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(443),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-button",e._g(e._b({staticClass:"md-stepper-header",class:e.classes,attrs:{disabled:e.shouldDisable},nativeOn:{click:function(t){!e.MdSteppers.syncRoute&&e.MdSteppers.setActiveStep(e.index)}}},"md-button",e.data.props,!1),e.data.events),[e.data.error?n("md-warning-icon",{staticClass:"md-stepper-icon"}):n("div",{staticClass:"md-stepper-number"},[e.data.done&&e.data.editable?n("md-edit-icon",{staticClass:"md-stepper-editable"}):e.data.done?n("md-check-icon",{staticClass:"md-stepper-done"}):[e._v(e._s(e.MdSteppers.getStepperNumber(e.index)))]],2),e._v(" "),n("div",{staticClass:"md-stepper-text"},[n("span",{staticClass:"md-stepper-label"},[e._v(e._s(e.data.label))]),e._v(" "),e.data.error?n("span",{staticClass:"md-stepper-error"},[e._v(e._s(e.data.error))]):e.data.description?n("span",{staticClass:"md-stepper-description"},[e._v(e._s(e.data.description))]):e._e()])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-steppers",class:[e.steppersClasses,e.$mdActiveTheme]},[e.mdVertical?e._e():n("div",{staticClass:"md-steppers-navigation"},e._l(e.MdSteppers.items,(function(e,t){return n("md-step-header",{key:t,attrs:{index:t}})})),1),e._v(" "),n("div",{staticClass:"md-steppers-wrapper",style:e.contentStyles},[n("div",{staticClass:"md-steppers-container",style:e.containerStyles},[e._t("default")],2)])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(210),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(448),s=function(e){n(447)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-stepper"},[e.MdSteppers.isVertical?n("md-step-header",{attrs:{index:e.id}}):e._e(),e._v(" "),n("div",{staticClass:"md-stepper-content",class:{"md-active":!e.MdSteppers.syncRoute&&e.id===e.MdSteppers.activeStep}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(450),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(211),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(452),s=function(e){n(451)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.insideList?n("li",{staticClass:"md-subheader",class:[e.$mdActiveTheme]},[e._t("default")],2):n("div",{staticClass:"md-subheader",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(454),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(212),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(456),s=function(e){n(455)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-switch",class:[e.$mdActiveTheme,e.checkClasses]},[n("div",{staticClass:"md-switch-container",on:{click:function(t){return t.stopPropagation(),e.toggleCheck(t)}}},[n("div",{staticClass:"md-switch-thumb"},[n("md-ripple",{attrs:{"md-centered":"","md-active":e.rippleActive,"md-disabled":e.disabled},on:{"update:mdActive":function(t){e.rippleActive=t},"update:md-active":function(t){e.rippleActive=t}}},[n("input",e._b({attrs:{id:e.id,type:"checkbox"}},"input",{id:e.id,name:e.name,disabled:e.disabled,required:e.required,value:e.value},!1))])],1)]),e._v(" "),e.$slots.default?n("label",{staticClass:"md-switch-label",attrs:{for:e.id},on:{click:function(t){return t.preventDefault(),e.toggleCheck(t)}}},[e._t("default")],2):e._e()])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(458),s=r(a),c=n(479),l=r(c),u=n(482),d=r(u),f=n(220),h=r(f),p=n(101),m=r(p),v=n(485),g=r(v),b=n(488),y=r(b),t.default=function(e){(0,o.default)(e),e.component("MdTable",s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default),e.component(m.default.name,m.default),e.component(g.default.name,g.default),e.component(y.default.name,y.default)}},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i=n(459),o=function(e){return e&&e.__esModule?e:{default:e}}(i),t.default={name:"MdTableContainer",functional:!0,render:function(e,t){var n,i,a,s=t.data,c=t.props,l=t.children,u=[],d=s.scopedSlots;return l&&(n=function(e,t){var n=["md-table-toolbar","md-table-empty-state","md-table-pagination"],r=Array.from(e),i={};return r.forEach((function(e,t){if(e&&e.tag){var o=function(e){var t=e.componentOptions;return t&&t.tag}(e);o&&n.includes(o)&&(e.data.slot=o,e.data.attrs=e.data.attrs||{},i[o]=function(){return e},r.splice(t,1))}})),{childNodes:r,slots:i}}(l),i=n.childNodes,a=n.slots,u=i,d=r({},d,a)),e(o.default,r({},s,{props:c,scopedSlots:d}),[u])}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(213),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(478),s=function(e){n(460)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(214),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(0)(i.a,null,!1,null,null,null),t.default=a.exports},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(215),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(469),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(217),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(465),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0V0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("th",{staticClass:"md-table-head",class:e.headClasses,style:e.headStyles,attrs:{id:e.id},on:{click:e.changeSort}},[e.$slots.default?n("div",{staticClass:"md-table-head-container"},[n("div",{staticClass:"md-table-head-label"},[e._t("default")],2)]):n("md-ripple",{staticClass:"md-table-head-container",attrs:{"md-disabled":!e.hasSort}},[n("div",{staticClass:"md-table-head-label"},[e.hasSort?n("md-upward-icon",{staticClass:"md-table-sortable-icon"},[e._v("arrow_upward")]):e._e(),e._v("\n\n "+e._s(e.label)+"\n\n "),e.tooltip?n("md-tooltip",[e._v(e._s(e.tooltip))]):e._e()],1)])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(218),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(468),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.selectableCount?n("md-table-head",{staticClass:"md-table-cell-selection"},[n("div",{staticClass:"md-table-cell-container"},[n("md-checkbox",{attrs:{model:e.allSelected,disabled:e.isDisabled},on:{change:e.onChange}})],1)]):e._e()},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("md-table-head-selection"),e._v(" "),e._l(e.MdTable.items,(function(t,r){return n("md-table-head",e._b({key:r},"md-table-head",t,!1))}))],2)])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(219),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(472),s=function(e){n(471)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-table-alternate-header"}},[n("div",{staticClass:"md-table-alternate-header"},[e._t("default")],2)])},staticRenderFns:[]};t.a=r},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.mdSelectable?n("td",{staticClass:"md-table-cell md-table-cell-selection"},[n("div",{staticClass:"md-table-cell-container"},[n("md-checkbox",{attrs:{disabled:!e.mdSelectable||e.mdDisabled},on:{change:e.onChange},model:{value:e.isSelected,callback:function(t){e.isSelected=t},expression:"isSelected"}})],1)]):e._e()},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",e._g({staticClass:"md-table-row",class:e.rowClasses,on:{click:e.onClick}},e.$listeners),[e.selectableCount?n("md-table-cell-selection",{attrs:{value:e.isMultipleSelected,"md-disabled":e.mdDisabled,"md-selectable":"multiple"===e.mdSelectable,"md-row-id":e.mdIndex},on:{input:function(t){return t?e.addSelection():e.removeSelection()}}}):e._e(),e._v(" "),e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(224),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(0)(i.a,null,!1,null,null,null),t.default=a.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-tag-switcher",{staticClass:"md-table",attrs:{"md-tag":e.contentTag}},[e._t("md-table-toolbar"),e._v(" "),n("keep-alive",[e.$scopedSlots["md-table-alternate-header"]&&e.selectedCount?n("md-table-alternate-header",[e._t("md-table-alternate-header",null,{count:e.selectedCount})],2):e._e()],1),e._v(" "),e.mdFixedHeader?n("div",{staticClass:"md-table-fixed-header",class:e.headerClasses,style:e.headerStyles},[n("div",{ref:"fixedHeaderContainer",staticClass:"md-table-fixed-header-container",on:{scroll:e.setHeaderScroll}},[n("table",{style:e.fixedHeaderTableStyles},[n("md-table-thead")],1)])]):e._e(),e._v(" "),n("md-content",{staticClass:"md-table-content md-scrollbar",class:e.contentClasses,style:e.contentStyles,on:{scroll:e.setScroll}},[n("table",{ref:"contentTable"},[!e.mdFixedHeader&&e.$scopedSlots["md-table-row"]?n("md-table-thead",{class:e.headerClasses}):e._e(),e._v(" "),e.$scopedSlots["md-table-row"]?e.value.length?n("tbody",e._l(e.value,(function(t,r){return n("md-table-row-ghost",{key:e.getRowId(t,e.mdModelId),attrs:{"md-id":e.getRowId(t,e.mdModelId),"md-index":r,"md-item":t}},[e._t("md-table-row",null,{item:t,index:r})],2)})),1):e.$scopedSlots["md-table-empty-state"]?n("tbody",[n("tr",[n("td",{attrs:{colspan:e.headerCount}},[e._t("md-table-empty-state")],2)])]):e._e():n("tbody",[e._t("default")],2)],1),e._v(" "),e._t("md-table-pagination")],2),e._v(" "),!e.hasValue&&e.$scopedSlots["md-table-row"]?e._t("default"):e._e()],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(225),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(481),s=function(e){n(480)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-toolbar",{staticClass:"md-table-toolbar md-transparent",attrs:{"md-elevation":0}},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(228),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(484),s=function(e){n(483)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-empty-state",e._b({staticClass:"md-table-empty-state"},"md-empty-state",e.$props,!1),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(229),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(487),s=function(e){n(486)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",{staticClass:"md-table-cell",class:e.cellClasses},[n("div",{staticClass:"md-table-cell-container"},[e._t("default")],2)])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(230),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(490),s=function(e){n(489)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-table-pagination"},[!1!==e.mdPageOptions?[n("span",{staticClass:"md-table-pagination-label"},[e._v(e._s(e.mdLabel))]),e._v(" "),n("md-field",[n("md-select",{attrs:{"md-dense":"","md-class":"md-pagination-select"},on:{changed:e.setPageSize},model:{value:e.currentPageSize,callback:function(t){e.currentPageSize=t},expression:"currentPageSize"}},e._l(e.mdPageOptions,(function(t){return n("md-option",{key:t,attrs:{value:t}},[e._v(e._s(t))])})),1)],1)]:e._e(),e._v(" "),n("span",[e._v(e._s(e.currentItemCount)+"-"+e._s(e.currentPageCount)+" "+e._s(e.mdSeparator)+" "+e._s(e.mdTotal))]),e._v(" "),n("md-button",{staticClass:"md-icon-button md-table-pagination-previous",attrs:{disabled:1===e.mdPage},on:{click:function(t){return e.goToPrevious()}}},[n("md-icon",[e._v("keyboard_arrow_left")])],1),e._v(" "),n("md-button",{staticClass:"md-icon-button md-table-pagination-next",on:{click:function(t){return e.goToNext()}}},[n("md-icon",[e._v("keyboard_arrow_right")])],1)],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(492),s=r(a),c=n(495),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(231),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(494),s=function(e){n(493)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-tabs",class:[e.tabsClasses,e.$mdActiveTheme]},[n("div",{ref:"navigation",staticClass:"md-tabs-navigation",class:e.navigationClasses},[e._l(e.MdTabs.items,(function(t,r){var i=t.label,o=t.props,a=t.icon,s=t.disabled,c=t.data,l=t.events;return n("md-button",e._g(e._b({key:r,staticClass:"md-tab-nav-button",class:{"md-active":!e.mdSyncRoute&&r===e.activeTab,"md-icon-label":a&&i},attrs:{disabled:s},nativeOn:{click:function(t){return e.setActiveTab(r)}}},"md-button",o,!1),l),[e.$scopedSlots["md-tab"]?e._t("md-tab",null,{tab:{label:i,icon:a,data:c}}):[a?[e.isAssetIcon(a)?n("md-icon",{staticClass:"md-tab-icon",attrs:{"md-src":a}}):n("md-icon",{staticClass:"md-tab-icon"},[e._v(e._s(a))]),e._v(" "),n("span",{staticClass:"md-tab-label"},[e._v(e._s(i))])]:[e._v(e._s(i))]]],2)})),e._v(" "),n("span",{ref:"indicator",staticClass:"md-tabs-indicator",class:e.indicatorClass,style:e.indicatorStyles})],2),e._v(" "),n("md-content",{directives:[{name:"show",rawName:"v-show",value:e.hasContent,expression:"hasContent"}],ref:"tabsContent",staticClass:"md-tabs-content",style:e.contentStyles},[n("div",{staticClass:"md-tabs-container",style:e.containerStyles},[e._t("default")],2)])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(232),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(0)(i.a,null,!1,null,null,null),t.default=a.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(111),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(498),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(233),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(500),s=function(e){n(499)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-popover",{attrs:{"md-settings":e.popperSettings,"md-active":e.shouldRender}},[e.shouldRender?n("transition",{attrs:{name:"md-tooltip"}},[n("div",{staticClass:"md-tooltip",class:[e.tooltipClasses,e.$mdActiveTheme],style:e.tooltipStyles},[e._t("default")],2)]):e._e()],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogAlert",props:{mdTitle:String,mdContent:String,mdConfirmText:{type:String,default:"Ok"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogConfirm",props:{mdTitle:String,mdContent:String,mdConfirmText:{type:String,default:"Ok"},mdCancelText:{type:String,default:"Cancel"}},methods:{onCancel:function(){this.$emit("md-cancel"),this.$emit("update:mdActive",!1)},onConfirm:function(){this.$emit("md-confirm"),this.$emit("update:mdActive",!1)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogPrompt",props:{value:{},mdTitle:String,mdInputName:String,mdInputId:String,mdInputMaxlength:[String,Number],mdInputPlaceholder:[String,Number],mdContent:String,mdConfirmText:{type:String,default:"Ok"},mdCancelText:{type:String,default:"Cancel"}},data:function(){return{inputValue:null}},watch:{value:function(){this.inputValue=this.value}},methods:{onCancel:function(){this.$emit("md-cancel"),this.$emit("update:mdActive",!1)},onConfirm:function(){this.$emit("input",this.inputValue),this.$emit("md-confirm",this.inputValue),this.$emit("update:mdActive",!1)},setInputFocus:function(){var e=this;window.setTimeout((function(){e.$refs.input.$el.focus()}),50)}},created:function(){this.inputValue=this.value}}},function(e,t,n){e.exports=n(505)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_,C,A,x,S,M,E,T,D,O,P,I,j,N,R,L,B,F,z,V;Object.defineProperty(t,"__esModule",{value:!0}),t.MdTooltip=t.MdToolbar=t.MdTabs=t.MdTable=t.MdSwitch=t.MdSubheader=t.MdSteppers=t.MdSpeedDial=t.MdSnackbar=t.MdRipple=t.MdRadio=t.MdProgress=t.MdMenu=t.MdList=t.MdLayout=t.MdImage=t.MdIcon=t.MdHighlightText=t.MdField=t.MdEmptyState=t.MdElevation=t.MdDrawer=t.MdDivider=t.MdDialogPrompt=t.MdDialogConfirm=t.MdDialogAlert=t.MdDialog=t.MdDatepicker=t.MdContent=t.MdChips=t.MdCheckbox=t.MdCard=t.MdButton=t.MdBottomBar=t.MdAvatar=t.MdAutocomplete=t.MdApp=t.MdBadge=void 0,i=r(n(234)),o=r(n(253)),a=r(n(260)),s=r(n(266)),c=r(n(270)),l=r(n(276)),u=r(n(277)),d=r(n(312)),f=r(n(316)),h=r(n(323)),p=r(n(324)),m=r(n(352)),v=r(n(506)),g=r(n(509)),b=r(n(512)),y=r(n(362)),k=r(n(366)),w=r(n(370)),_=r(n(372)),C=r(n(373)),A=r(n(393)),x=r(n(106)),S=r(n(396)),M=r(n(400)),E=r(n(402)),T=r(n(403)),D=r(n(406)),O=r(n(413)),P=r(n(417)),I=r(n(418)),j=r(n(425)),N=r(n(435)),R=r(n(449)),L=r(n(453)),B=r(n(457)),F=r(n(491)),z=r(n(496)),V=r(n(497)),t.MdBadge=o.default,t.MdApp=i.default,t.MdAutocomplete=a.default,t.MdAvatar=s.default,t.MdBottomBar=c.default,t.MdButton=l.default,t.MdCard=u.default,t.MdCheckbox=d.default,t.MdChips=f.default,t.MdContent=h.default,t.MdDatepicker=p.default,t.MdDialog=m.default,t.MdDialogAlert=v.default,t.MdDialogConfirm=g.default,t.MdDialogPrompt=b.default,t.MdDivider=y.default,t.MdDrawer=k.default,t.MdElevation=w.default,t.MdEmptyState=_.default,t.MdField=C.default,t.MdHighlightText=A.default,t.MdIcon=x.default,t.MdImage=S.default,t.MdLayout=M.default,t.MdList=E.default,t.MdMenu=T.default,t.MdProgress=D.default,t.MdRadio=O.default,t.MdRipple=P.default,t.MdSnackbar=I.default,t.MdSpeedDial=j.default,t.MdSteppers=N.default,t.MdSubheader=R.default,t.MdSwitch=L.default,t.MdTable=B.default,t.MdTabs=F.default,t.MdToolbar=z.default,t.MdTooltip=V.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),c=n(507),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(501),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(508),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-dialog",e._g(e._b({attrs:{"md-fullscreen":!1}},"md-dialog",e.$attrs,!1),e.$listeners),[e.mdTitle?n("md-dialog-title",[e._v(e._s(e.mdTitle))]):e._e(),e._v(" "),e.mdContent?n("md-dialog-content",{domProps:{innerHTML:e._s(e.mdContent)}}):e._e(),e._v(" "),n("md-dialog-actions",[n("md-button",{staticClass:"md-primary",on:{click:function(t){return e.$emit("update:mdActive",!1)}}},[e._v(e._s(e.mdConfirmText))])],1)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),c=n(510),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(502),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(511),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-dialog",e._g(e._b({attrs:{"md-fullscreen":!1}},"md-dialog",e.$attrs,!1),e.$listeners),[e.mdTitle?n("md-dialog-title",[e._v(e._s(e.mdTitle))]):e._e(),e._v(" "),e.mdContent?n("md-dialog-content",{domProps:{innerHTML:e._s(e.mdContent)}}):e._e(),e._v(" "),n("md-dialog-actions",[n("md-button",{on:{click:e.onCancel}},[e._v(e._s(e.mdCancelText))]),e._v(" "),n("md-button",{staticClass:"md-primary",on:{click:e.onConfirm}},[e._v(e._s(e.mdConfirmText))])],1)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),c=n(513),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(503),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(514),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-dialog",e._b({attrs:{"md-fullscreen":!1},on:{"md-opened":e.setInputFocus}},"md-dialog",e.$attrs,!1),[e.mdTitle?n("md-dialog-title",[e._v(e._s(e.mdTitle))]):e._e(),e._v(" "),e.mdContent?n("md-dialog-content",{domProps:{innerHTML:e._s(e.mdContent)}}):e._e(),e._v(" "),n("md-dialog-content",[n("md-field",[n("md-input",{ref:"input",attrs:{id:e.mdInputId,name:e.mdInputName,maxlength:e.mdInputMaxlength,placeholder:e.mdInputPlaceholder},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onConfirm(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})],1)],1),e._v(" "),n("md-dialog-actions",[n("md-button",{staticClass:"md-primary",on:{click:e.onCancel}},[e._v(e._s(e.mdCancelText))]),e._v(" "),n("md-button",{staticClass:"md-primary",on:{click:e.onConfirm}},[e._v(e._s(e.mdConfirmText))])],1)],1)},staticRenderFns:[]};t.a=r}]))},function(e,t,n){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach((function(t){e(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e){var t,n="algoliasearch-client-js-".concat(e.key),i=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},o=function(){return JSON.parse(i().getItem(n)||"{}")};return{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=o()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=r(e,2),i=t[0],o=t[1];return Promise.all([i,o||n.miss(i)])})).then((function(e){return r(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var r=o();return r[JSON.stringify(e)]=t,i().setItem(n,JSON.stringify(r)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],i().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){i().removeItem(n)}))}}}function a(e){var t=i(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=t();return i.then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return r(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return a({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return a({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return a({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return a({caches:t}).clear()}))}}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var a=r(),s=i&&i.miss||function(){return Promise.resolve()};return a.then((function(e){return s(e)})).then((function(){return a}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function l(e,t){return Object.keys(void 0!==t?t:{}).forEach((function(n){e[n]=t[n](e)})),e}function u(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(n[i++])}))}var d=0,f=1;function h(e,t){var n=e||{},r=n.data||{};return Object.keys(n).forEach((function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(r[e]=n[e])})),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var p={Read:1,Write:2,Any:3};function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n({},e,{status:t,lastUpdate:Date.now()})}function v(e){return{protocol:e.protocol||"https",url:e.url,accept:e.accept||p.Any}}var g="POST";function b(e,t,r,o){var a=[],s=function(e,t){if("GET"!==e.method&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n({},e.data,{},t.data);return JSON.stringify(r)}}(r,o),c=function(e,t){var r=n({},e.headers,{},t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,o),l=r.method,u="GET"!==r.method?{}:n({},r.data,{},o.data),d=n({"x-algolia-agent":e.userAgent.value},e.queryParameters,{},u,{},o.queryParameters),f=0,h=function t(n,i){var u=n.pop();if(void 0===u)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:_(a)};var h={data:s,headers:c,method:l,url:k(u,r.path,d),connectTimeout:i(f,e.timeouts.connect),responseTimeout:i(f,o.timeout)},p=function(e){var t={request:h,response:e,host:u,triesLeft:n.length};return a.push(t),t},v={onSucess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var o=p(r);return r.isTimedOut&&f++,Promise.all([e.logger.info("Retryable failure",C(o)),e.hostsCache.set(u,m(u,r.isTimedOut?3:2))]).then((function(){return t(n,i)}))},onFail:function(e){throw p(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,_(a))}};return e.requester.send(h).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSucess(e):t.onFail(e)}(e,v)}))};return function(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(m(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}(e)})),o=[].concat(i(n),i(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:o.length>0?o.map((function(e){return v(e)})):t}}))}(e.hostsCache,t).then((function(e){return h(i(e.statelessHosts).reverse(),e.getTimeout)}))}function y(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function k(e,t,n){var r=w(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function w(e){return Object.keys(e).map((function(t){return u("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function _(e){return e.map((function(e){return C(e)}))}function C(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n({},e,{request:n({},e.request,{headers:n({},e.request.headers,{},t)})})}var A=function(e){var t=e.appId,i=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===f?r:{}},queryParameters:function(){return e===d?r:{}}}}(void 0!==e.authMode?e.authMode:f,t,e.apiKey),o=function(e){var t=e.hostsCache,n=e.logger,i=e.requester,o=e.requestsCache,a=e.responsesCache,s=e.timeouts,c=e.userAgent,l=e.hosts,u=e.queryParameters,d={hostsCache:t,logger:n,requester:i,requestsCache:o,responsesCache:a,timeouts:s,userAgent:c,headers:e.headers,queryParameters:u,hosts:l.map((function(e){return v(e)})),read:function(e,t){var n=h(t,d.timeouts.read),i=function(){return b(d,d.hosts.filter((function(e){return 0!=(e.accept&p.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return i();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,i()).then((function(e){return Promise.all([d.requestsCache.delete(o),e])}),(function(e){return Promise.all([d.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=r(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(o,e)}})},write:function(e,t){return b(d,d.hosts.filter((function(e){return 0!=(e.accept&p.Write)})),e,h(t,d.timeouts.write))}};return d}(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:p.Read},{url:"".concat(t,".algolia.net"),accept:p.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e,{headers:n({},i.headers(),{},{"content-type":"application/x-www-form-urlencoded"},{},e.headers),queryParameters:n({},i.queryParameters(),{},e.queryParameters)}));return l({transporter:o,appId:t,addAlgoliaAgent:function(e,t){o.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then((function(){}))}},e.methods)},x=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={transporter:e.transporter,appId:e.appId,indexName:t};return l(r,n.methods)}},S=function(e){return function(t,r){var i=t.map((function(e){return n({},e,{params:w(e.params||{})})}));return e.transporter.read({method:g,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},M=function(e){return function(t,r){return Promise.all(t.map((function(t){var i=t.params,o=i.facetName,a=i.facetQuery,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(i,["facetName","facetQuery"]);return x(e)(t.indexName,{methods:{searchForFacetValues:T}}).searchForFacetValues(o,a,n({},r,{},s))})))}},E=function(e){return function(t,n){return e.transporter.read({method:g,path:u("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},T=function(e){return function(t,n,r){return e.transporter.read({method:g,path:u("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}};function D(e,t,r){var i={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,i=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},o=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(o),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:a({caches:[o({key:"".concat("4.1.0","-").concat(e)}),s()]}),userAgent:y("4.1.0").add({segment:"Browser",version:"lite"}),authMode:d};return A(n({},i,{},r,{methods:{search:S,searchForFacetValues:M,multipleQueries:S,multipleSearchForFacetValues:M,initIndex:function(e){return function(t){return x(e)(t,{methods:{search:E,searchForFacetValues:T}})}}}}))}return D.version="4.1.0",D}()},function(e,t,n){e.exports=function(){"use strict";var e=function(e){var t=new XMLHttpRequest;return t.open(e.method||"GET",e.url),t.responseType="json",e.headers&&Object.keys(e.headers).forEach((function(n){t.setRequestHeader(n,e.headers[n])})),t};function t(t){return function(e,t){return new Promise((function(n,r){e.onload=function(){if(e.status>=200&&e.status<300){var t;try{t=JSON.parse(e.response)}catch(n){t=e.response}n(t)}else r(e.response)},e.onerror=function(){return r(e.response)},e.send(JSON.stringify(t))}))}(e(t),t.body)}var n,r,i,o,a,s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.file=e,this.options=t}return s(n,[{key:"createChunks",value:function(){this.chunks=[];for(var e=0,t=this.chunkSize;e<this.fileSize;)this.chunks.push({blob:this.file.file.slice(e,t),startOffset:e,active:!1,retries:this.maxRetries}),t=(e=t)+this.chunkSize}},{key:"updateFileProgress",value:function(){this.file.progress=this.progress}},{key:"pause",value:function(){this.file.active=!1,this.stopChunks()}},{key:"stopChunks",value:function(){this.chunksUploading.forEach((function(e){e.xhr.abort(),e.active=!1}))}},{key:"resume",value:function(){this.file.active=!0,this.startChunking()}},{key:"upload",value:function(){var e=this;return this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),this.start(),this.promise}},{key:"start",value:function(){var e=this;t({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.startBody,{phase:"start",mime_type:this.fileType,size:this.fileSize,name:this.fileName})}).then((function(t){if("success"!==t.status)return e.file.response=t,e.reject("server");e.sessionId=t.data.session_id,e.chunkSize=t.data.end_offset,e.createChunks(),e.startChunking()})).catch((function(t){e.file.response=t,e.reject("server")}))}},{key:"startChunking",value:function(){for(var e=0;e<this.maxActiveChunks;e++)this.uploadNextChunk()}},{key:"uploadNextChunk",value:function(){if(this.file.active){if(this.hasChunksToUpload)return this.uploadChunk(this.chunksToUpload[0]);if(0===this.chunksUploading.length)return this.finish()}}},{key:"uploadChunk",value:function(t){var n=this;t.progress=0,t.active=!0,this.updateFileProgress(),t.xhr=e({method:"POST",headers:this.headers,url:this.action}),t.xhr.upload.addEventListener("progress",(function(e){e.lengthComputable&&(t.progress=Math.round(e.loaded/e.total*100))}),!1),function(e,t){var n=new FormData;for(var r in t)n.append(r,t[r]);return new Promise((function(t,r){e.onload=function(){if(e.status>=200&&e.status<300){var n;try{n=JSON.parse(e.response)}catch(t){n=e.response}t(n)}else r(e.response)},e.onerror=function(){return r(e.response)},e.send(n)}))}(t.xhr,Object.assign(this.uploadBody,{phase:"upload",session_id:this.sessionId,start_offset:t.startOffset,chunk:t.blob})).then((function(e){if(t.active=!1,"success"===e.status)t.uploaded=!0;else if(t.retries--<=0)return n.stopChunks(),n.reject("upload");n.uploadNextChunk()})).catch((function(){if(t.active=!1,t.retries--<=0)return n.stopChunks(),n.reject("upload");n.uploadNextChunk()}))}},{key:"finish",value:function(){var e=this;this.updateFileProgress(),t({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.finishBody,{phase:"finish",session_id:this.sessionId})}).then((function(t){if(e.file.response=t,"success"!==t.status)return e.reject("server");e.resolve(t)})).catch((function(t){e.file.response=t,e.reject("server")}))}},{key:"maxRetries",get:function(){return parseInt(this.options.maxRetries)}},{key:"maxActiveChunks",get:function(){return parseInt(this.options.maxActive)}},{key:"fileType",get:function(){return this.file.type}},{key:"fileSize",get:function(){return this.file.size}},{key:"fileName",get:function(){return this.file.name}},{key:"action",get:function(){return this.options.action||null}},{key:"startBody",get:function(){return this.options.startBody||{}}},{key:"uploadBody",get:function(){return this.options.uploadBody||{}}},{key:"finishBody",get:function(){return this.options.finishBody||{}}},{key:"headers",get:function(){return this.options.headers||{}}},{key:"readyToUpload",get:function(){return!!this.chunks}},{key:"progress",get:function(){var e=this,t=this.chunksUploaded.length/this.chunks.length*100,n=this.chunksUploading.reduce((function(t,n){return t+(0|n.progress)/e.chunks.length}),0);return Math.min(t+n,100)}},{key:"chunksToUpload",get:function(){return this.chunks.filter((function(e){return!e.active&&!e.uploaded}))}},{key:"hasChunksToUpload",get:function(){return this.chunksToUpload.length>0}},{key:"chunksUploading",get:function(){return this.chunks.filter((function(e){return!!e.xhr&&!!e.active}))}},{key:"chunksUploaded",get:function(){return this.chunks.filter((function(e){return!!e.uploaded}))}}]),n}(),l=(n={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{attrs:{type:"file",name:e.$parent.name,id:e.$parent.inputId||e.$parent.name,accept:e.$parent.accept,capture:e.$parent.capture,disabled:e.$parent.disabled,webkitdirectory:e.$parent.directory&&e.$parent.features.directory,directory:e.$parent.directory&&e.$parent.features.directory,multiple:e.$parent.multiple&&e.$parent.features.html5},on:{change:e.change}})},staticRenderFns:[]},i=void 0,o=!1,(a=("function"==typeof(r={methods:{change:function(e){this.$parent.addInputFile(e.target),e.target.files?(e.target.value="",e.target.files.length&&!/safari/i.test(navigator.userAgent)&&(e.target.type="",e.target.type="file")):(this.$destroy(),new this.constructor({parent:this.$parent,el:this.$el}))}}})?r.options:r)||{}).render||(a.render=n.render,a.staticRenderFns=n.staticRenderFns,a._compiled=!0,o&&(a.functional=!0)),a._scopeId=i,a),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function f(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var h={headers:{},action:"",minSize:1048576,maxActive:3,maxRetries:5,handler:c},p={components:{InputFile:l},props:{inputId:{type:String},name:{type:String,default:"file"},accept:{type:String},capture:{},disabled:{},multiple:{type:Boolean},maximum:{type:Number,default:function(){return this.multiple?0:1}},addIndex:{type:[Boolean,Number]},directory:{type:Boolean},postAction:{type:String},putAction:{type:String},customAction:{type:Function},headers:{type:Object,default:Object},data:{type:Object,default:Object},timeout:{type:Number,default:0},drop:{default:!1},dropDirectory:{type:Boolean,default:!0},size:{type:Number,default:0},extensions:{default:Array},value:{type:Array,default:Array},thread:{type:Number,default:1},chunkEnabled:{type:Boolean,default:!1},chunk:{type:Object,default:function(){return h}}},data:function(){return{files:this.value,features:{html5:!0,directory:!1,drag:!1},active:!1,dropActive:!1,uploading:0,destroy:!1}},mounted:function(){var e=document.createElement("input");if(e.type="file",e.multiple=!0,window.FormData&&e.files?("boolean"!=typeof e.webkitdirectory&&"boolean"!=typeof e.directory||(this.features.directory=!0),this.features.html5&&void 0!==e.ondrop&&(this.features.drop=!0)):this.features.html5=!1,this.maps={},this.files)for(var t=0;t<this.files.length;t++){var n=this.files[t];this.maps[n.id]=n}this.$nextTick((function(){this.$parent&&this.$parent.$forceUpdate(),this.watchDrop(this.drop)}))},beforeDestroy:function(){this.destroy=!0,this.active=!1},computed:{uploaded:function(){for(var e=void 0,t=0;t<this.files.length;t++)if((e=this.files[t]).fileObject&&!e.error&&!e.success)return!1;return!0},chunkOptions:function(){return Object.assign(h,this.chunk)},className:function(){return["file-uploads",this.features.html5?"file-uploads-html5":"file-uploads-html4",this.features.directory&&this.directory?"file-uploads-directory":void 0,this.features.drop&&this.drop?"file-uploads-drop":void 0,this.disabled?"file-uploads-disabled":void 0]}},watch:{active:function(e){this.watchActive(e)},dropActive:function(){this.$parent&&this.$parent.$forceUpdate()},drop:function(e){this.watchDrop(e)},value:function(e){if(this.files!==e){this.files=e;var t=this.maps;this.maps={};for(var n=0;n<this.files.length;n++){var r=this.files[n];this.maps[r.id]=r}for(var i in this.maps){var o=this.maps[i],a=t[i];o!==a&&this.emitFile(o,a)}for(var s in t)this.maps[s]||this.emitFile(void 0,t[s])}}},methods:{clear:function(){if(this.files.length){var e=this.files;this.files=[],this.maps={},this.emitInput();for(var t=0;t<e.length;t++)this.emitFile(void 0,e[t])}return!0},get:function(e){return!!e&&("object"===(void 0===e?"undefined":d(e))?this.maps[e.id]||!1:this.maps[e]||!1)},add:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addIndex,n=e,r=n instanceof Array;r||(n=[n]);for(var i=[],o=0;o<n.length;o++){var a=n[o];this.features.html5&&a instanceof Blob&&(a={file:a,size:a.size,name:a.webkitRelativePath||a.relativePath||a.name||"unknown",type:a.type});var s=!1;if(!1===a.fileObject||(a.fileObject||"undefined"!=typeof Element&&a.el instanceof Element||"undefined"!=typeof Blob&&a.file instanceof Blob)&&(s=!0),s&&((a=u({fileObject:!0,size:-1,name:"Filename",type:"",active:!1,error:"",success:!1,putAction:this.putAction,postAction:this.postAction,timeout:this.timeout},a,{response:{},progress:"0.00",speed:0})).data=u({},this.data,a.data?a.data:{}),a.headers=u({},this.headers,a.headers?a.headers:{})),a.id||(a.id=Math.random().toString(36).substr(2)),!this.emitFilter(a,void 0)){if(this.maximum>1&&i.length+this.files.length>=this.maximum)break;if(i.push(a),1===this.maximum)break}}if(!i.length)return!1;1===this.maximum&&this.clear();var c=void 0;if(!0===t||0===t)c=i.concat(this.files);else if(t){var l;(l=c=this.files.concat([])).splice.apply(l,[t,0].concat(i))}else c=this.files.concat(i);this.files=c;for(var d=0;d<i.length;d++){var f=i[d];this.maps[f.id]=f}this.emitInput();for(var h=0;h<i.length;h++)this.emitFile(i[h],void 0);return r?i:i[0]},addInputFile:function(e){var t=[];if(e.files)for(var n=0;n<e.files.length;n++){var r=e.files[n];t.push({size:r.size,name:r.webkitRelativePath||r.relativePath||r.name,type:r.type,file:r})}else{var i=e.value.replace(/\\/g,"/").split("/");delete e.__vuex__,t.push({name:i[i.length-1],el:e})}return this.add(t)},addDataTransfer:function(e){var t=this,n=[];if(e.items&&e.items.length){for(var r=[],i=0;i<e.items.length;i++){var o=e.items[i];(o=o.getAsEntry?o.getAsEntry()||o.getAsFile():o.webkitGetAsEntry&&o.webkitGetAsEntry()||o.getAsFile())&&r.push(o)}return new Promise((function(e,i){!function i(o){var a=r[o];if(!a||t.maximum>0&&n.length>=t.maximum)return e(t.add(n));t.getEntry(a).then((function(e){n.push.apply(n,f(e)),i(o+1)}))}(0)}))}if(e.files.length){for(var a=0;a<e.files.length&&(n.push(e.files[a]),!(this.maximum>0&&n.length>=this.maximum));a++);return Promise.resolve(this.add(n))}return Promise.resolve([])},getEntry:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(r,i){if(e.isFile)e.file((function(e){r([{size:e.size,name:n+e.name,type:e.type,file:e}])}));else if(e.isDirectory&&t.dropDirectory){var o=[],a=e.createReader();!function i(){a.readEntries((function(a){!function s(c){return!a[c]&&0===c||t.maximum>0&&o.length>=t.maximum?r(o):a[c]?void t.getEntry(a[c],n+e.name+"/").then((function(e){o.push.apply(o,f(e)),s(c+1)})):i()}(0)}))}()}else r([])}))},replace:function(e,t){var n=this.get(e),r=this.get(t);if(!n||!r||n===r)return!1;var i=this.files.concat([]),o=i.indexOf(n),a=i.indexOf(r);return-1!==o&&-1!==a&&(i[o]=r,i[a]=n,this.files=i,this.emitInput(),!0)},remove:function(e){var t=this.get(e);if(t){if(this.emitFilter(void 0,t))return!1;var n=this.files.concat([]),r=n.indexOf(t);if(-1===r)return console.error("remove",t),!1;n.splice(r,1),this.files=n,delete this.maps[t.id],this.emitInput(),this.emitFile(void 0,t)}return t},update:function(e,t){var n=this.get(e);if(n){var r=u({},n,t);if(!n.fileObject||!n.active||r.active||r.error||r.success||(r.error="abort"),this.emitFilter(r,n))return!1;var i=this.files.concat([]),o=i.indexOf(n);return-1===o?(console.error("update",n),!1):(i.splice(o,1,r),this.files=i,delete this.maps[n.id],this.maps[r.id]=r,this.emitInput(),this.emitFile(r,n),r)}return!1},emitFilter:function(e,t){var n=!1;return this.$emit("input-filter",e,t,(function(){return n=!0})),n},emitFile:function(e,t){this.$emit("input-file",e,t),!(e&&e.fileObject&&e.active)||t&&t.active?e&&e.fileObject&&e.active||!t||!t.fileObject||!t.active||this.uploading--:(this.uploading++,this.$nextTick((function(){var t=this;setTimeout((function(){t.upload(e).then((function(){(e=t.get(e))&&e.fileObject&&t.update(e,{active:!1,success:!e.error})})).catch((function(n){t.update(e,{active:!1,success:!1,error:n.code||n.error||n.message||n})}))}),parseInt(50*Math.random()+50,10))}))),!this.active||Boolean(e)===Boolean(t)&&e.active===t.active||this.watchActive(!0)},emitInput:function(){this.$emit("input",this.files)},upload:function(e){var t=this.get(e);if(!t)return Promise.reject("not_exists");if(!t.fileObject)return Promise.reject("file_object");if(t.error)return Promise.reject(t.error);if(t.success)return Promise.resolve(t);var n=this.extensions;if(n&&(n.length||void 0===n.length)&&("object"===(void 0===n?"undefined":d(n))&&n instanceof RegExp||("string"==typeof n&&(n=n.split(",").map((function(e){return e.trim()})).filter((function(e){return e}))),n=new RegExp("\\.("+n.join("|").replace(/\./g,"\\.")+")$","i")),-1===t.name.search(n)))return Promise.reject("extension");if(this.size>0&&t.size>=0&&t.size>this.size)return Promise.reject("size");if(this.customAction)return this.customAction(t,this);if(this.features.html5){if(this.shouldUseChunkUpload(t))return this.uploadChunk(t);if(t.putAction)return this.uploadPut(t);if(t.postAction)return this.uploadHtml5(t)}return t.postAction?this.uploadHtml4(t):Promise.reject("No action configured")},shouldUseChunkUpload:function(e){return this.chunkEnabled&&!!this.chunkOptions.handler&&e.size>this.chunkOptions.minSize},uploadChunk:function(e){var t=this.chunkOptions.handler;return e.chunk=new t(e,this.chunkOptions),e.chunk.upload()},uploadPut:function(e){var t=[],n=void 0;for(var r in e.data)null!=(n=e.data[r])&&t.push(encodeURIComponent(r)+"="+encodeURIComponent(n));var i=t.length?(-1===e.putAction.indexOf("?")?"?":"&")+t.join("&"):"",o=new XMLHttpRequest;return o.open("PUT",e.putAction+i),this.uploadXhr(o,e,e.file)},uploadHtml5:function(e){var t=new window.FormData,n=void 0;for(var r in e.data)(n=e.data[r])&&"object"===(void 0===n?"undefined":d(n))&&"function"!=typeof n.toString?n instanceof File?t.append(r,n,n.name):t.append(r,JSON.stringify(n)):null!=n&&t.append(r,n);t.append(this.name,e.file,e.file.filename||e.name);var i=new XMLHttpRequest;return i.open("POST",e.postAction),this.uploadXhr(i,e,t)},uploadXhr:function(e,t,n){var r=this,i=t,o=0,a=0;e.upload.onprogress=function(e){if(i=r.get(i),e.lengthComputable&&i&&i.fileObject&&i.active){var t=Math.round(Date.now()/1e3);t!==o&&(o=t,i=r.update(i,{progress:(e.loaded/e.total*100).toFixed(2),speed:e.loaded-a}),a=e.loaded)}};var s=setInterval((function(){if(!(i=r.get(i))||!i.fileObject||i.success||i.error||!i.active){s&&(clearInterval(s),s=!1);try{e.abort(),e.timeout=1}catch(e){}}}),100);return new Promise((function(t,o){var a=void 0,c=function(n){if(!a){if(a=!0,s&&(clearInterval(s),s=!1),!(i=r.get(i)))return o("not_exists");if(!i.fileObject)return o("file_object");if(i.error)return o(i.error);if(!i.active)return o("abort");if(i.success)return t(i);var c={};switch(n.type){case"timeout":case"abort":c.error=n.type;break;case"error":e.status?e.status>=500?c.error="server":e.status>=400&&(c.error="denied"):c.error="network";break;default:e.status>=500?c.error="server":e.status>=400?c.error="denied":c.progress="100.00"}if(e.responseText){var l=e.getResponseHeader("Content-Type");l&&-1!==l.indexOf("/json")?c.response=JSON.parse(e.responseText):c.response=e.responseText}return(i=r.update(i,c)).error?o(i.error):t(i)}};for(var l in e.onload=c,e.onerror=c,e.onabort=c,e.ontimeout=c,i.timeout&&(e.timeout=i.timeout),i.headers)e.setRequestHeader(l,i.headers[l]);i=r.update(i,{xhr:e}),e.send(n)}))},uploadHtml4:function(e){var t=this,n=e,r=function(e){27===e.keyCode&&e.preventDefault()},i=document.createElement("iframe");i.id="upload-iframe-"+n.id,i.name="upload-iframe-"+n.id,i.src="about:blank",i.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var o=document.createElement("form");o.action=n.postAction,o.name="upload-form-"+n.id,o.setAttribute("method","POST"),o.setAttribute("target","upload-iframe-"+n.id),o.setAttribute("enctype","multipart/form-data");var a=void 0,s=void 0;for(var c in n.data)(a=n.data[c])&&"object"===(void 0===a?"undefined":d(a))&&"function"!=typeof a.toString&&(a=JSON.stringify(a)),null!=a&&((s=document.createElement("input")).type="hidden",s.name=c,s.value=a,o.appendChild(s));return o.appendChild(n.el),document.body.appendChild(i).appendChild(o),new Promise((function(e,a){setTimeout((function(){if(!(n=t.update(n,{iframe:i})))return a("not_exists");var s=setInterval((function(){(n=t.get(n))&&n.fileObject&&!n.success&&!n.error&&n.active||(s&&(clearInterval(s),s=!1),i.onabort({type:n?"abort":"not_exists"}))}),100),c=void 0,l=function(o){if(!c){if(c=!0,s&&(clearInterval(s),s=!1),document.body.removeEventListener("keydown",r),!(n=t.get(n)))return a("not_exists");if(!n.fileObject)return a("file_object");if(n.error)return a(n.error);if(!n.active)return a("abort");if(n.success)return e(n);var l=function(){var e=void 0;try{i.contentWindow&&(e=i.contentWindow.document)}catch(e){}if(!e)try{e=i.contentDocument?i.contentDocument:i.document}catch(t){e=i.document}return e&&e.body?e.body.innerHTML:null}(),u={};switch(o.type){case"abort":u.error="abort";break;case"error":n.error?u.error=n.error:u.error=null===l?"network":"denied";break;default:n.error?u.error=n.error:null===u?u.error="network":u.progress="100.00"}if(null!==l){if(l&&"{"===l.substr(0,1)&&"}"===l.substr(l.length-1,1))try{l=JSON.parse(l)}catch(e){}u.response=l}return(n=t.update(n,u)).error?a(n.error):e(n)}};i.onload=l,i.onerror=l,i.onabort=l,document.body.addEventListener("keydown",r),o.submit()}),50)})).then((function(e){return i.parentNode&&i.parentNode.removeChild(i),e})).catch((function(e){return i.parentNode&&i.parentNode.removeChild(i),e}))},watchActive:function(e){for(var t=void 0,n=0;t=this.files[n];)if(n++,t.fileObject)if(e&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;t.active||t.error||t.success||this.update(t,{active:!0})}else t.active&&this.update(t,{active:!1});0===this.uploading&&(this.active=!1)},watchDrop:function(e){var t=e;if(this.features.drop){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDragenter,!1),document.removeEventListener("dragleave",this.onDragleave,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch(e){}t?"string"==typeof t?t=document.querySelector(t)||this.$root.$el.querySelector(t):!0===t&&(t=this.$parent.$el):t=!1,this.dropElement=t,this.dropElement&&(document.addEventListener("dragenter",this.onDragenter,!1),document.addEventListener("dragleave",this.onDragleave,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},onDragenter:function(e){if(e.preventDefault(),!this.dropActive&&e.dataTransfer){var t=e.dataTransfer;t.files&&t.files.length?this.dropActive=!0:t.types?(t.types.indexOf&&-1!==t.types.indexOf("Files")||t.types.contains&&t.types.contains("Files"))&&(this.dropActive=!0):this.dropActive=!0}},onDragleave:function(e){e.preventDefault(),this.dropActive&&("HTML"===e.target.nodeName||e.target===e.explicitOriginalTarget||!e.fromElement&&(e.clientX<=0||e.clientY<=0||e.clientX>=window.innerWidth||e.clientY>=window.innerHeight))&&(this.dropActive=!1)},onDragover:function(e){e.preventDefault()},onDocumentDrop:function(){this.dropActive=!1},onDrop:function(e){e.preventDefault(),this.addDataTransfer(e.dataTransfer)}}},m=function(e,t,n,r,i,o,a,s){var c=("function"==typeof n?n.options:n)||{};c.render||(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,i&&(c.functional=!0)),c._scopeId=r;var l=void 0;if(t&&(l=function(e){t.call(this,a(e))}),void 0!==l)if(c.functional){var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return c}({render:function(){var e=this.$createElement,t=this._self._c||e;return t("span",{class:this.className},[this._t("default"),this._v(" "),t("label",{attrs:{for:this.inputId||this.name}}),this._v(" "),t("input-file")],2)},staticRenderFns:[]},(function(e){e&&e("data-v-595958af_0",{source:"\n.file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block\n}\n.file-uploads.file-uploads-html4 input,.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%\n}\n.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0\n}",map:void 0,media:void 0})}),p,void 0,!1,0,(function e(){var t=document.head||document.getElementsByTagName("head")[0],n=e.styles||(e.styles={}),r="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(!document.querySelector('style[data-vue-ssr-id~="'+e+'"]')){var o=r?i.media||"default":e,a=n[o]||(n[o]={ids:[],parts:[],element:void 0});if(!a.ids.includes(e)){var s=i.source,c=a.ids.length;if(a.ids.push(e),i.map&&(s+="\n/*# sourceURL="+i.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i.map))))+" */"),r&&(a.element=a.element||document.querySelector("style[data-group="+o+"]")),!a.element){var l=a.element=document.createElement("style");l.type="text/css",i.media&&l.setAttribute("media",i.media),r&&(l.setAttribute("data-group",o),l.setAttribute("data-next-index","0")),t.appendChild(l)}if(r&&(c=parseInt(a.element.getAttribute("data-next-index")),a.element.setAttribute("data-next-index",c+1)),a.element.styleSheet)a.parts.push(s),a.element.styleSheet.cssText=a.parts.filter(Boolean).join("\n");else{var u=document.createTextNode(s),d=a.element.childNodes;d[c]&&a.element.removeChild(d[c]),d.length?a.element.insertBefore(u,d[c]):a.element.appendChild(u)}}}}})),v=Object.freeze({default:m});return v&&m||v}()},function(e,t,n){var r=n(291),i=n(66),o=n(147),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(37)(Object,"create");e.exports=r},function(e,t,n){var r=n(306),i=n(307),o=n(308),a=n(309),s=n(310);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(45);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(312);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(68),i=n(325)(r);e.exports=i},function(e,t,n){var r=n(84),i=n(329),o=n(330),a=n(331),s=n(332),c=n(333);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,e.exports=l},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(11),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(67),i=n(74),o=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var s=null==n?0:i(n);return s<0&&(s=o(a+s,0)),r(e,t,s)}},function(e,t,n){var r=n(380)(n(254));e.exports=r},function(e,t,n){var r=n(90),i=n(11);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),o=e.apply(n,t);return i(o)?o:n}}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,s;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):v(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var l=c.length,u=v(c,l);for(n=0;n<l;++n)o(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";var r=n(432),i=n(433),o=n(276);e.exports={formats:o,parse:i,stringify:r}},function(e,t,n){var r=n(2),i=n(97);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(3)(!1)).push([e.i,":root{--md-theme-default-primary:#448aff;--md-theme-default-accent:#ff5252;--md-theme-default-theme:light}.md-theme-default :not(input):not(textarea)::selection{background-color:#ff5252;background-color:var(--md-theme-default-accent-on-background,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-theme-default a:not(.md-button){color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-theme-default a:not(.md-button):hover{color:rgba(68,138,255,.8);color:var(--md-theme-default-primary-on-background,rgba(68,138,255,.8))}.md-theme-default a:not(.md-button).md-accent{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-theme-default a:not(.md-button).md-accent:hover{color:rgba(255,82,82,.8);color:var(--md-theme-default-accent-on-background,rgba(255,82,82,.8))}html.md-theme-default{background-color:#fafafa;background-color:var(--md-theme-default-background-variant,#fafafa);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-theme-default .md-caption,.md-theme-default .md-display-1,.md-theme-default .md-display-2,.md-theme-default .md-display-3,.md-theme-default .md-display-4{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background-variant,rgba(0,0,0,.54))}.md-scrollbar.md-theme-default::-webkit-scrollbar-corner,.md-scrollbar.md-theme-default::-webkit-scrollbar-track{background:#e1e1e1;background:var(--md-theme-default-scrollbar-background-on-background-variant,#e1e1e1)}.md-scrollbar.md-theme-default::-webkit-scrollbar-thumb{background:#757575;background:var(--md-theme-default-scrollbar-on-background-variant,#757575)}.md-app:not(.md-overlap).md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-list.md-theme-default .md-autocomplete-items .md-highlight-text-match{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-list.md-theme-default .md-autocomplete-loading{background-color:hsla(0,0%,100%,.54);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.54))}.md-autocomplete.md-theme-default.md-autocomplete-box{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-autocomplete.md-theme-default.md-autocomplete-box.md-focused label{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box{background-color:hsla(0,0%,100%,.12);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.12))}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box input,.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box label{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff);-webkit-text-fill-color:#fff;-webkit-text-fill-color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused input,.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused label{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38));-webkit-text-fill-color:rgba(0,0,0,.38);-webkit-text-fill-color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused svg{fill:rgba(0,0,0,.38);fill:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-autocomplete-box-content.md-theme-default:after{background-color:#fff;background-color:var(--md-theme-default-background,#fff);border-bottom-color:rgba(0,0,0,.12);border-bottom-color:var(--md-theme-default-divider,rgba(0,0,0,.12))}.md-avatar.md-theme-default.md-avatar-icon{background-color:rgba(0,0,0,.38);background-color:var(--md-theme-default-icon-disabled,rgba(0,0,0,.38));color:#fff;color:var(--md-theme-default-text-primary-on-icon-disabled,#fff)}.md-avatar.md-theme-default.md-avatar-icon .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-icon-disabled,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-icon-disabled,#fff)}.md-avatar.md-theme-default.md-primary,.md-avatar.md-theme-default.md-primary.md-avatar-icon{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-avatar.md-theme-default.md-primary.md-avatar-icon,.md-avatar.md-theme-default.md-primary.md-avatar-icon .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-avatar.md-theme-default.md-primary.md-avatar-icon .md-icon{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-avatar.md-theme-default.md-accent,.md-avatar.md-theme-default.md-accent.md-avatar-icon{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-avatar.md-theme-default.md-accent.md-avatar-icon,.md-avatar.md-theme-default.md-accent.md-avatar-icon .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-avatar.md-theme-default.md-accent.md-avatar-icon .md-icon{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-type-fixed{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-bottom-bar.md-theme-default.md-type-fixed .md-bottom-bar-item.md-active,.md-bottom-bar.md-theme-default.md-type-fixed .md-bottom-bar-item.md-active .md-icon{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-bottom-bar.md-theme-default.md-type-fixed .md-bottom-bar-item.md-active .md-icon svg{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-bottom-bar.md-theme-default.md-type-shift{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-bottom-bar.md-theme-default.md-type-shift>.md-ripple .md-ripple-wave{background-color:#116aff;background-color:var(--md-theme-default-primary-on-primary,#116aff)}.md-bottom-bar.md-theme-default.md-type-shift .md-icon{color:#fff;color:var(--md-theme-default-icon-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-type-shift .md-icon svg{fill:#fff;fill:var(--md-theme-default-icon-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-type-shift .md-bottom-bar-item,.md-bottom-bar.md-theme-default.md-type-shift .md-bottom-bar-item .md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-type-shift .md-bottom-bar-item .md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-fixed{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-fixed .md-bottom-bar-item.md-active,.md-bottom-bar.md-theme-default.md-accent.md-type-fixed .md-bottom-bar-item.md-active .md-icon{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-bottom-bar.md-theme-default.md-accent.md-type-fixed .md-bottom-bar-item.md-active .md-icon svg{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-bottom-bar.md-theme-default.md-accent.md-type-shift>.md-ripple .md-ripple-wave{background-color:#ff1f1f;background-color:var(--md-theme-default-accent-on-accent,#ff1f1f)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-icon{color:#fff;color:var(--md-theme-default-icon-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-icon svg{fill:#fff;fill:var(--md-theme-default-icon-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-bottom-bar-item,.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-bottom-bar-item .md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-bottom-bar-item .md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-button.md-theme-default.md-primary,.md-button.md-theme-default.md-primary .md-icon-font{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-button.md-theme-default.md-primary .md-icon-image{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-button.md-theme-default.md-accent,.md-button.md-theme-default.md-accent .md-icon-font{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-button.md-theme-default.md-accent .md-icon-image{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-button.md-theme-default.md-raised[disabled]{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-disabled-background-on-background,rgba(0,0,0,.12));color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled,rgba(0,0,0,.26))}.md-button.md-theme-default.md-raised:not([disabled]){background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-button.md-theme-default.md-raised:not([disabled]).md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-button.md-theme-default.md-raised:not([disabled]).md-primary,.md-button.md-theme-default.md-raised:not([disabled]).md-primary .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default.md-raised:not([disabled]).md-primary .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default.md-raised:not([disabled]).md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-button.md-theme-default.md-raised:not([disabled]).md-accent,.md-button.md-theme-default.md-raised:not([disabled]).md-accent .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-raised:not([disabled]).md-accent .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-fab[disabled]{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-disabled-background-on-background,rgba(0,0,0,.12))}.md-button.md-theme-default.md-fab:not([disabled]){background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-button.md-theme-default.md-fab:not([disabled]) .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-fab:not([disabled]) .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-fab:not([disabled]).md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-button.md-theme-default.md-fab:not([disabled]).md-primary .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default.md-fab:not([disabled]).md-primary .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default[disabled]{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-button.md-theme-default[disabled] .md-icon-font{color:rgba(0,0,0,.38);color:var(--md-theme-default-icon-disabled-on-background,rgba(0,0,0,.38))}.md-button.md-theme-default[disabled] .md-icon-image{fill:rgba(0,0,0,.38);fill:var(--md-theme-default-icon-disabled-on-background,rgba(0,0,0,.38))}.md-card.md-theme-default{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-card.md-theme-default,.md-card.md-theme-default .md-card-expand .md-card-actions{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-card.md-theme-default .md-card-actions .md-button:not(.md-primary):not(.md-accent),.md-card.md-theme-default .md-card-header .md-button:not(.md-primary):not(.md-accent){color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-card.md-theme-default .md-card-actions .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon,.md-card.md-theme-default .md-card-header .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.54));fill:rgba(0,0,0,.54);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.54))}.md-card.md-theme-default>.md-card-area:after{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-card.md-theme-default.md-primary{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-card.md-theme-default.md-primary,.md-card.md-theme-default.md-primary .md-card-expand .md-card-actions{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-card.md-theme-default.md-primary .md-card-actions .md-button:not(.md-primary):not(.md-accent),.md-card.md-theme-default.md-primary .md-card-header .md-button:not(.md-primary):not(.md-accent){color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-card.md-theme-default.md-primary .md-card-actions .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon,.md-card.md-theme-default.md-primary .md-card-header .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon{color:hsla(0,0%,100%,.54);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.54));fill:hsla(0,0%,100%,.54);fill:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.54))}.md-card.md-theme-default.md-primary>.md-card-area:after{background-color:hsla(0,0%,100%,.12);background-color:var(--md-theme-default-divider-on-primary,hsla(0,0%,100%,.12))}.md-card.md-theme-default.md-accent{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-card.md-theme-default.md-accent,.md-card.md-theme-default.md-accent .md-card-expand .md-card-actions{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-card.md-theme-default.md-accent .md-card-actions .md-button:not(.md-primary):not(.md-accent),.md-card.md-theme-default.md-accent .md-card-header .md-button:not(.md-primary):not(.md-accent){color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-card.md-theme-default.md-accent .md-card-actions .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon,.md-card.md-theme-default.md-accent .md-card-header .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon{color:hsla(0,0%,100%,.54);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.54));fill:hsla(0,0%,100%,.54);fill:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.54))}.md-card.md-theme-default.md-accent>.md-card-area:after{background-color:hsla(0,0%,100%,.12);background-color:var(--md-theme-default-divider-on-accent,hsla(0,0%,100%,.12))}.md-checkbox.md-theme-default.md-checked .md-checkbox-container{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);border-color:#ff5252;border-color:var(--md-theme-default-accent,#ff5252)}.md-checkbox.md-theme-default.md-checked .md-checkbox-container:after{border-color:#fff;border-color:var(--md-theme-default-background,#fff)}.md-checkbox.md-theme-default.md-checked .md-ripple{color:#ff5252;color:var(--md-theme-default-accent,#ff5252)}.md-checkbox.md-theme-default.md-indeterminate .md-checkbox-container{background-color:hsla(0,0%,100%,.3)}.md-checkbox.md-theme-default.md-checked.md-primary .md-checkbox-container{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-checkbox.md-theme-default.md-checked.md-primary .md-ripple{color:#448aff;color:var(--md-theme-default-primary,#448aff)}.md-checkbox.md-theme-default.md-indeterminate .md-checkbox-container{border-color:rgba(0,0,0,.54);background-color:transparent}.md-checkbox.md-theme-default.md-indeterminate .md-checkbox-container:after{border-color:rgba(0,0,0,.54)}.md-checkbox.md-theme-default.md-indeterminate .md-ripple{color:rgba(0,0,0,.54)}.md-checkbox.md-theme-default .md-checkbox-container{border-color:rgba(0,0,0,.54)}.md-checkbox.md-theme-default.md-disabled .md-checkbox-container{border-color:rgba(0,0,0,.26)}.md-checkbox.md-theme-default.md-disabled.md-checked .md-checkbox-container{border-color:rgba(0,0,0,.26);background-color:rgba(0,0,0,.26)}.md-chip.md-theme-default{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-highlight,rgba(0,0,0,.12));color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary,rgba(0,0,0,.87))}.md-chip.md-theme-default .md-icon.md-icon-image svg{color:#fff;color:var(--md-theme-default-text-primary-on-text-primary,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-text-primary,#fff)}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover{background-color:rgba(0,0,0,.54);background-color:var(--md-theme-default-icon,rgba(0,0,0,.54));color:#fff;color:var(--md-theme-default-text-primary-on-icon,#fff)}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover .md-icon,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover .md-icon{fill:#fff;fill:var(--md-theme-default-text-primary-on-icon,#fff)}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover .md-input-action{background-color:hsla(0,0%,100%,.87);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.87));color:rgba(0,0,0,.54);color:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover .md-input-action .md-icon svg,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover .md-input-action .md-icon svg{fill:rgba(0,0,0,.54);fill:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54));color:rgba(0,0,0,.54);color:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-chip.md-theme-default.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-chip.md-theme-default.md-primary .md-input-action{color:#fff;color:var(--md-theme-default-icon-on-disabled,#fff);background-color:rgba(0,0,0,.26);background-color:var(--md-theme-default-disabled,rgba(0,0,0,.26))}.md-chip.md-theme-default.md-primary.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-primary.md-deletable:not(.md-disabled):hover{color:#fff;color:var(--md-theme-default-text-primary-on-icon,#fff);background-color:rgba(0,0,0,.54);background-color:var(--md-theme-default-icon,rgba(0,0,0,.54))}.md-chip.md-theme-default.md-primary.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-primary.md-deletable:not(.md-disabled):hover .md-input-action{background-color:hsla(0,0%,100%,.87);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.87))}.md-chip.md-theme-default.md-accent,.md-chip.md-theme-default.md-duplicated{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-chip.md-theme-default.md-accent .md-input-action,.md-chip.md-theme-default.md-duplicated .md-input-action{color:#fff;color:var(--md-theme-default-icon-on-disabled,#fff);background-color:rgba(0,0,0,.26);background-color:var(--md-theme-default-disabled,rgba(0,0,0,.26))}.md-chip.md-theme-default.md-accent.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-accent.md-deletable:not(.md-disabled):hover,.md-chip.md-theme-default.md-duplicated.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-duplicated.md-deletable:not(.md-disabled):hover{background-color:rgba(0,0,0,.54);background-color:var(--md-theme-default-icon,rgba(0,0,0,.54));color:#fff;color:var(--md-theme-default-text-primary-on-icon,#fff)}.md-chip.md-theme-default.md-accent.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-accent.md-deletable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-duplicated.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-duplicated.md-deletable:not(.md-disabled):hover .md-input-action{background-color:hsla(0,0%,100%,.87);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.87))}.md-chip.md-theme-default.md-disabled{background-color:rgba(0,0,0,.1);background-color:var(--md-theme-default-highlight,rgba(0,0,0,.1));color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent,rgba(0,0,0,.54))}.md-chips.md-theme-default .md-clear{background-color:rgba(0,0,0,.2)}.md-content.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-content.md-theme-default.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-content.md-theme-default.md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-app .md-content.md-theme-default{border-left-color:rgba(0,0,0,.12);border-left-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12));border-right-color:rgba(0,0,0,.12);border-right-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-datepicker-dialog.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-datepicker-dialog.md-theme-default .md-datepicker-header{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-datepicker-dialog.md-theme-default .md-datepicker-body-footer,.md-datepicker-dialog.md-theme-default .md-datepicker-body-header:after,.md-datepicker-dialog.md-theme-default .md-datepicker-body-header:before{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-datepicker-dialog.md-theme-default .md-datepicker-body-footer{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-datepicker-dialog.md-theme-default .md-datepicker-week{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-datepicker-dialog.md-theme-default .md-datepicker-disabled{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-datepicker-dialog.md-theme-default .md-datepicker-today{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-datepicker-dialog.md-theme-default .md-datepicker-day-button:hover,.md-datepicker-dialog.md-theme-default .md-datepicker-month-button:hover,.md-datepicker-dialog.md-theme-default .md-datepicker-year-button:hover{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider,rgba(0,0,0,.12))}.md-datepicker-dialog.md-theme-default .md-datepicker-day-button.md-datepicker-selected{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-datepicker-dialog.md-theme-default .md-datepicker-month-button.md-datepicker-selected,.md-datepicker-dialog.md-theme-default .md-datepicker-year-button.md-datepicker-selected{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-datepicker-dialog.md-theme-default .md-datepicker-year-selector{border-bottom-color:rgba(0,0,0,.12);border-bottom-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-dialog.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-divider.md-theme-default{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider,rgba(0,0,0,.12))}.md-drawer.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-drawer.md-theme-default.md-persistent-mini.md-left{border-right-color:rgba(0,0,0,.12);border-right-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-drawer.md-theme-default.md-persistent-mini.md-right{border-left-color:rgba(0,0,0,.12);border-left-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-empty-state.md-theme-default .md-empty-state-icon.md-icon-image svg{fill:rgba(0,0,0,.26);fill:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-empty-state.md-theme-default .md-empty-state-icon.md-icon-font{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-empty-state.md-theme-default.md-rounded{background-color:rgba(0,0,0,.06);background-color:var(--md-theme-default-disabled,rgba(0,0,0,.06))}.md-empty-state.md-theme-default.md-primary .md-empty-state-icon.md-icon-image svg{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-empty-state.md-theme-default.md-primary .md-empty-state-icon.md-icon-font{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-empty-state.md-theme-default.md-accent .md-empty-state-icon.md-icon-image svg{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-empty-state.md-theme-default.md-accent .md-empty-state-icon.md-icon-font{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-field.md-theme-default:after{background-color:rgba(0,0,0,.42)}.md-field.md-theme-default:before{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-field.md-theme-default .md-count,.md-field.md-theme-default .md-helper-text,.md-field.md-theme-default .md-prefix,.md-field.md-theme-default .md-suffix,.md-field.md-theme-default label{color:rgba(0,0,0,.54)}.md-field.md-theme-default .md-input::-webkit-input-placeholder,.md-field.md-theme-default .md-textarea::-webkit-input-placeholder{color:rgba(0,0,0,.54)}.md-field.md-theme-default.md-focused .md-input,.md-field.md-theme-default.md-focused .md-textarea,.md-field.md-theme-default.md-has-value .md-input,.md-field.md-theme-default.md-has-value .md-textarea{-webkit-text-fill-color:rgba(0,0,0,.87)}.md-field.md-theme-default.md-has-textarea:not(.md-autogrow):after{border-color:rgba(0,0,0,.42)}.md-field.md-theme-default.md-has-textarea:not(.md-autogrow):before{border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-field.md-theme-default.md-disabled:after{background-image:linear-gradient(90deg,rgba(0,0,0,.38),rgba(0,0,0,.38) 33%,transparent 0)}.md-field.md-theme-default.md-disabled .md-input,.md-field.md-theme-default.md-disabled .md-textarea,.md-field.md-theme-default.md-disabled label{color:rgba(0,0,0,.42)}.md-field.md-theme-default>.md-icon:after{background-color:#fafafa;background-color:var(--md-theme-default-background-variant,#fafafa)}.md-field.md-theme-default.md-invalid:after{background-color:#ff1744;background-color:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-invalid.md-has-textarea:not(.md-autogrow):before{border-color:#ff1744;border-color:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-invalid .md-error,.md-field.md-theme-default.md-invalid label{color:#ff1744;color:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-invalid .md-date-icon,.md-field.md-theme-default.md-invalid .md-date-icon svg{color:#ff1744;color:var(--md-theme-default-fieldvariant,#ff1744);fill:#ff1744;fill:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-focused .md-input,.md-field.md-theme-default.md-focused .md-textarea,.md-field.md-theme-default.md-highlight .md-input,.md-field.md-theme-default.md-highlight .md-textarea{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-field.md-theme-default.md-focused>.md-icon,.md-field.md-theme-default.md-highlight>.md-icon{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff);fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-field.md-theme-default.md-focused label{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-field.md-theme-default.md-disabled .md-icon svg{fill:rgba(0,0,0,.26);fill:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-icon.md-theme-default.md-icon-image svg{fill:rgba(0,0,0,.54);fill:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-icon.md-theme-default.md-icon-image svg.md-primary{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-icon.md-theme-default.md-icon-image svg.md-accent{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-icon.md-theme-default.md-icon-font{color:rgba(0,0,0,.54);color:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-icon.md-theme-default.md-icon-font.md-primary{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-icon.md-theme-default.md-icon-font.md-accent{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-list.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-list.md-theme-default.md-double-line .md-list-item-text :nth-child(2),.md-list.md-theme-default.md-triple-line .md-list-item-text :nth-child(3){color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-list.md-theme-default .md-highlight .md-list-item-container{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-list.md-theme-default .md-list-item-container{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-list.md-theme-default .md-list-item-container:not(.md-list-item-default):not(.md-list-item-expand):not([disabled]):hover{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12));color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-list.md-theme-default [disabled]{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-list.md-theme-default .md-selected .md-list-item-content,.md-list.md-theme-default .router-link-active .md-list-item-content{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-list.md-theme-default .md-list-item-expand.md-active{border-color:rgba(0,0,0,.12);border-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-list.md-theme-default .md-list-item-expand:not(.md-list-item-default):not([disabled])>.md-list-item-content:hover{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12));color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-menu-item.md-theme-default.md-primary .md-list-item-button,.md-menu-item.md-theme-default.md-primary .md-list-item-link,.md-menu-item.md-theme-default.md-primary .md-list-item-router{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-menu-item.md-theme-default.md-accent .md-list-item-button,.md-menu-item.md-theme-default.md-accent .md-list-item-link,.md-menu-item.md-theme-default.md-accent .md-list-item-router{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-progress-bar.md-theme-default.md-indeterminate,.md-progress-bar.md-theme-default.md-query{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-indeterminate .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-indeterminate .md-progress-bar-track:after,.md-progress-bar.md-theme-default.md-query .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-query .md-progress-bar-track:after{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-progress-bar.md-theme-default.md-indeterminate.md-accent,.md-progress-bar.md-theme-default.md-query.md-accent{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-bar.md-theme-default.md-indeterminate.md-accent .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-indeterminate.md-accent .md-progress-bar-track:after,.md-progress-bar.md-theme-default.md-query.md-accent .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-query.md-accent .md-progress-bar-track:after{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-progress-bar.md-theme-default.md-determinate{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-determinate .md-progress-bar-fill{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-progress-bar.md-theme-default.md-determinate.md-accent{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-bar.md-theme-default.md-determinate.md-accent .md-progress-bar-fill{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-progress-bar.md-theme-default.md-buffer .md-progress-bar-fill{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-progress-bar.md-theme-default.md-buffer .md-progress-bar-track{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-buffer .md-progress-bar-buffer{border-color:rgba(68,138,255,.38);border-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-buffer.md-accent .md-progress-bar-fill{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-progress-bar.md-theme-default.md-buffer.md-accent .md-progress-bar-track{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-bar.md-theme-default.md-buffer.md-accent .md-progress-bar-buffer{border-color:rgba(255,82,82,.38);border-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-spinner.md-theme-default .md-progress-spinner-circle{stroke:#448aff;stroke:var(--md-theme-default-primary,#448aff)}.md-progress-spinner.md-theme-default.md-accent .md-progress-spinner-circle{stroke:#ff5252;stroke:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked .md-radio-container{border-color:#ff5252;border-color:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked .md-radio-container:after{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked .md-ripple{color:#ff5252;color:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked.md-primary .md-radio-container{border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-radio.md-theme-default.md-checked.md-primary .md-radio-container:after{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-radio.md-theme-default.md-checked.md-primary .md-ripple{color:#448aff;color:var(--md-theme-default-primary,#448aff)}.md-radio.md-theme-default .md-radio-container{border-color:rgba(0,0,0,.54)}.md-radio.md-theme-default.md-disabled.md-checked .md-radio-container,.md-radio.md-theme-default.md-disabled .md-radio-container{border-color:rgba(0,0,0,.26)}.md-radio.md-theme-default.md-disabled.md-checked .md-radio-container:after{background-color:rgba(0,0,0,.26)}.md-snackbar.md-theme-default{color:#fff;color:var(--md-theme-default-text-primary-on-text-primary,#fff);background-color:#323232}.md-steppers.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-steppers.md-theme-default .md-stepper-icon:after,.md-steppers.md-theme-default .md-stepper-icon:before,.md-steppers.md-theme-default .md-stepper-number:after,.md-steppers.md-theme-default .md-stepper-number:before,.md-steppers.md-theme-default .md-stepper:after,.md-steppers.md-theme-default .md-stepper:before{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-steppers.md-theme-default .md-stepper-number{background-color:rgba(0,0,0,.38);background-color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38));color:#fff;color:var(--md-theme-default-text-primary-on-text-hint,#fff)}.md-steppers.md-theme-default .md-stepper-number svg{color:#fff;color:var(--md-theme-default-text-primary-on-text-hint,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-text-hint,#fff)}.md-steppers.md-theme-default .md-stepper-header .md-button-content{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-steppers.md-theme-default .md-stepper-header .md-button-content:after,.md-steppers.md-theme-default .md-stepper-header .md-button-content:before{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-steppers.md-theme-default .md-stepper-header.md-active .md-button-content,.md-steppers.md-theme-default .md-stepper-header.md-done .md-button-content{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-steppers.md-theme-default .md-stepper-header.md-active .md-stepper-number,.md-steppers.md-theme-default .md-stepper-header.md-done .md-stepper-number{background-color:#448aff;background-color:var(--md-theme-default-primary-on-background,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-steppers.md-theme-default .md-stepper-header.md-active .md-stepper-number svg,.md-steppers.md-theme-default .md-stepper-header.md-done .md-stepper-number svg{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-steppers.md-theme-default .md-stepper-header.md-error .md-button-content{color:#ff1744;color:var(--md-theme-default-steppervariant,#ff1744)}.md-steppers.md-theme-default .md-stepper-header.md-error .md-icon svg{color:#ff1744;color:var(--md-theme-default-steppervariant,#ff1744);fill:#ff1744;fill:var(--md-theme-default-steppervariant,#ff1744)}.md-subheader.md-theme-default{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-subheader.md-theme-default.md-primary{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-switch.md-theme-default.md-checked .md-switch-container{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-switch.md-theme-default.md-checked .md-switch-thumb{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-switch.md-theme-default.md-checked .md-ripple{color:#ff5252;color:var(--md-theme-default-accent,#ff5252)}.md-switch.md-theme-default.md-checked.md-primary .md-switch-container{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-switch.md-theme-default.md-checked.md-primary .md-switch-thumb{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-switch.md-theme-default.md-checked.md-primary .md-ripple{color:#448aff;color:var(--md-theme-default-primary,#448aff)}.md-switch.md-theme-default .md-switch-container{background-color:rgba(0,0,0,.38)}.md-switch.md-theme-default .md-switch-thumb{background-color:#f5f5f5;background-color:var(--md-theme-default-switchvariant,#f5f5f5)}.md-switch.md-theme-default.md-disabled .md-switch-container{background-color:rgba(0,0,0,.12)}.md-switch.md-theme-default.md-disabled .md-switch-thumb{background-color:#bdbdbd;background-color:var(--md-theme-default-switchvariant,#bdbdbd)}.md-table.md-theme-default .md-table-alternate-header,.md-table.md-theme-default .md-table-content{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-table.md-theme-default .md-table-alternate-header .md-table-toolbar{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87));background-color:rgba(255,82,82,.2);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.2))}.md-table.md-theme-default .md-table-row:hover:not(.md-header-row) .md-table-cell{background-color:rgba(0,0,0,.08);background-color:var(--md-theme-default-highlight-on-background,rgba(0,0,0,.08))}.md-table.md-theme-default .md-table-row.md-selected,.md-table.md-theme-default .md-table-row.md-selected-single{background-color:#f5f5f5;background-color:var(--md-theme-default-rowvariant,#f5f5f5)}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary,.md-table.md-theme-default .md-table-row.md-selected.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary-on-background,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary .md-ripple,.md-table.md-theme-default .md-table-row.md-selected.md-primary .md-ripple{color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary .md-checkbox-container,.md-table.md-theme-default .md-table-row.md-selected.md-primary .md-checkbox-container{background-color:#fff;border-color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary .md-checkbox-container:after,.md-table.md-theme-default .md-table-row.md-selected.md-primary .md-checkbox-container:after{border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent,.md-table.md-theme-default .md-table-row.md-selected.md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent-on-background,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent .md-ripple,.md-table.md-theme-default .md-table-row.md-selected.md-accent .md-ripple{color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent .md-checkbox-container,.md-table.md-theme-default .md-table-row.md-selected.md-accent .md-checkbox-container{background-color:#fff;border-color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent .md-checkbox-container:after,.md-table.md-theme-default .md-table-row.md-selected.md-accent .md-checkbox-container:after{border-color:#ff5252;border-color:var(--md-theme-default-accent,#ff5252)}.md-table.md-theme-default .md-table-row td{border-top-color:rgba(0,0,0,.12);border-top-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-table.md-theme-default .md-table-head{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-table.md-theme-default .md-table-fixed-header-active{border-bottom-color:rgba(0,0,0,.12);border-bottom-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-table.md-theme-default .md-sortable.md-sorted,.md-table.md-theme-default .md-sortable:hover{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-table.md-theme-default .md-sortable.md-sorted svg,.md-table.md-theme-default .md-sortable:hover svg{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87));fill:rgba(0,0,0,.87);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-table.md-theme-default .md-table-pagination{border-top-color:rgba(0,0,0,.12);border-top-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-tabs.md-theme-default .md-tabs-navigation{background-color:#fff;background-color:var(--md-theme-default-background-on-background,#fff)}.md-tabs.md-theme-default .md-tabs-navigation .md-button{color:rgba(0,0,0,.7);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.7))}.md-tabs.md-theme-default .md-tabs-navigation .md-button[disabled]{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.38))}.md-tabs.md-theme-default .md-tabs-navigation .md-button .md-icon{color:rgba(0,0,0,.7);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.7))}.md-tabs.md-theme-default .md-tabs-navigation .md-button .md-icon svg{fill:rgba(0,0,0,.7);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.7))}.md-tabs.md-theme-default .md-tabs-navigation .md-button.md-active,.md-tabs.md-theme-default .md-tabs-navigation .md-button.md-active .md-icon{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-tabs.md-theme-default .md-tabs-navigation .md-button.md-active .md-icon svg{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-tabs.md-theme-default.md-primary .md-tabs-navigation,.md-tabs.md-theme-default .md-tabs-indicator{background-color:#448aff;background-color:var(--md-theme-default-primary-on-background,#448aff)}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button[disabled]{color:hsla(0,0%,100%,.38);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.38))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button .md-icon{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button .md-icon svg{fill:hsla(0,0%,100%,.7);fill:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button.md-active,.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button.md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button.md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-tabs.md-theme-default.md-primary .md-tabs-indicator{background-color:#fff;background-color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-tabs.md-theme-default.md-accent .md-tabs-navigation{background-color:#ff5252;background-color:var(--md-theme-default-accent-on-background,#ff5252)}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button[disabled]{color:hsla(0,0%,100%,.38);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.38))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button .md-icon{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button .md-icon svg{fill:hsla(0,0%,100%,.7);fill:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button.md-active,.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button.md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button.md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-tabs.md-theme-default.md-accent .md-tabs-indicator{background-color:#fff;background-color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default{background-color:#f5f5f5;background-color:var(--md-theme-default-toolbarvariant,#f5f5f5)}.md-toolbar.md-theme-default,.md-toolbar.md-theme-default .md-icon{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-toolbar.md-theme-default .md-icon svg{fill:rgba(0,0,0,.87);fill:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-toolbar.md-theme-default .md-display-1,.md-toolbar.md-theme-default .md-display-2,.md-toolbar.md-theme-default .md-title{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-toolbar.md-theme-default.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-toolbar.md-theme-default.md-primary,.md-toolbar.md-theme-default.md-primary .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar.md-theme-default.md-primary .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar.md-theme-default.md-primary .md-button:not([disabled]):not(.md-raised),.md-toolbar.md-theme-default.md-primary .md-display-1,.md-toolbar.md-theme-default.md-primary .md-display-2,.md-toolbar.md-theme-default.md-primary .md-title{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar.md-theme-default.md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-toolbar.md-theme-default.md-accent,.md-toolbar.md-theme-default.md-accent .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default.md-accent .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default.md-accent .md-button:not([disabled]):not(.md-raised),.md-toolbar.md-theme-default.md-accent .md-display-1,.md-toolbar.md-theme-default.md-accent .md-display-2,.md-toolbar.md-theme-default.md-accent .md-title{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default.md-transparent{background-color:transparent}.md-toolbar.md-theme-default.md-transparent,.md-toolbar.md-theme-default.md-transparent .md-icon{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-toolbar.md-theme-default.md-transparent .md-icon svg{fill:rgba(0,0,0,.87);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-toolbar.md-theme-default.md-transparent .md-display-1,.md-toolbar.md-theme-default.md-transparent .md-display-2,.md-toolbar.md-theme-default.md-transparent .md-title{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-tooltip.md-theme-default{color:#fff;color:var(--md-theme-default-text-primary-on-tooltip,#fff);background-color:rgba(97,97,97,.9);background-color:var(--md-theme-default-tooltip-on-background,rgba(97,97,97,.9))}.md-badge.md-theme-default{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff);background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-badge.md-theme-default.md-primary{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff);background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}",""]),e.exports=t},function(e,t,n){!function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e){var n=this,r=!1;return t(this).one(l.TRANSITION_END,(function(){r=!0})),setTimeout((function(){r||l.triggerTransitionEnd(n)}),e),this}t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var l={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var n=t(e).css("transition-duration"),r=t(e).css("transition-delay"),i=parseFloat(n),o=parseFloat(r);return i||o?(n=n.split(",")[0],r=r.split(",")[0],1e3*(parseFloat(n)+parseFloat(r))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){t(e).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r],o=t[r],a=o&&l.isElement(o)?"element":(s=o,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(i).test(a))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+i+'".')}var s},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?l.findShadowRoot(e.parentNode):null},jQueryDetection:function(){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};l.jQueryDetection(),t.fn.emulateTransitionEnd=c,t.event.special[l.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var u="alert",d=t.fn[u],f={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},h="alert",p="fade",m="show",v=function(){function e(e){this._element=e}var n=e.prototype;return n.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(e){var n=l.getSelectorFromElement(e),r=!1;return n&&(r=document.querySelector(n)),r||(r=t(e).closest("."+h)[0]),r},n._triggerCloseEvent=function(e){var n=t.Event(f.CLOSE);return t(e).trigger(n),n},n._removeElement=function(e){var n=this;if(t(e).removeClass(m),t(e).hasClass(p)){var r=l.getTransitionDurationFromElement(e);t(e).one(l.TRANSITION_END,(function(t){return n._destroyElement(e,t)})).emulateTransitionEnd(r)}else this._destroyElement(e)},n._destroyElement=function(e){t(e).detach().trigger(f.CLOSED).remove()},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data("bs.alert");i||(i=new e(this),r.data("bs.alert",i)),"close"===n&&i[n](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(f.CLICK_DATA_API,'[data-dismiss="alert"]',v._handleDismiss(new v)),t.fn[u]=v._jQueryInterface,t.fn[u].Constructor=v,t.fn[u].noConflict=function(){return t.fn[u]=d,v._jQueryInterface};var g=t.fn.button,b="active",y="btn",k="focus",w='[data-toggle^="button"]',_='[data-toggle="buttons"]',C='[data-toggle="button"]',A='[data-toggle="buttons"] .btn',x='input:not([type="hidden"])',S=".active",M=".btn",E={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api",LOAD_DATA_API:"load.bs.button.data-api"},T=function(){function e(e){this._element=e}var n=e.prototype;return n.toggle=function(){var e=!0,n=!0,r=t(this._element).closest(_)[0];if(r){var i=this._element.querySelector(x);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(b))e=!1;else{var o=r.querySelector(S);o&&t(o).removeClass(b)}else"checkbox"===i.type?"LABEL"===this._element.tagName&&i.checked===this._element.classList.contains(b)&&(e=!1):e=!1;e&&(i.checked=!this._element.classList.contains(b),t(i).trigger("change")),i.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(b)),e&&t(this._element).toggleClass(b))},n.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.button");r||(r=new e(this),t(this).data("bs.button",r)),"toggle"===n&&r[n]()}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(E.CLICK_DATA_API,w,(function(e){var n=e.target;if(t(n).hasClass(y)||(n=t(n).closest(M)[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))e.preventDefault();else{var r=n.querySelector(x);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void e.preventDefault();T._jQueryInterface.call(t(n),"toggle")}})).on(E.FOCUS_BLUR_DATA_API,w,(function(e){var n=t(e.target).closest(M)[0];t(n).toggleClass(k,/^focus(in)?$/.test(e.type))})),t(window).on(E.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(A)),t=0,n=e.length;t<n;t++){var r=e[t],i=r.querySelector(x);i.checked||i.hasAttribute("checked")?r.classList.add(b):r.classList.remove(b)}for(var o=0,a=(e=[].slice.call(document.querySelectorAll(C))).length;o<a;o++){var s=e[o];"true"===s.getAttribute("aria-pressed")?s.classList.add(b):s.classList.remove(b)}})),t.fn.button=T._jQueryInterface,t.fn.button.Constructor=T,t.fn.button.noConflict=function(){return t.fn.button=g,T._jQueryInterface};var D="carousel",O=".bs.carousel",P=t.fn[D],I={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},j={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},N="next",R="prev",L="left",B="right",F={SLIDE:"slide"+O,SLID:"slid"+O,KEYDOWN:"keydown"+O,MOUSEENTER:"mouseenter"+O,MOUSELEAVE:"mouseleave"+O,TOUCHSTART:"touchstart"+O,TOUCHMOVE:"touchmove"+O,TOUCHEND:"touchend"+O,POINTERDOWN:"pointerdown"+O,POINTERUP:"pointerup"+O,DRAG_START:"dragstart"+O,LOAD_DATA_API:"load"+O+".data-api",CLICK_DATA_API:"click"+O+".data-api"},z="carousel",V="active",$="slide",H="carousel-item-right",U="carousel-item-left",q="carousel-item-next",W="carousel-item-prev",Y="pointer-event",K=".active",G=".active.carousel-item",Q=".carousel-item",X=".carousel-item img",J=".carousel-item-next, .carousel-item-prev",Z=".carousel-indicators",ee="[data-slide], [data-slide-to]",te='[data-ride="carousel"]',ne={TOUCH:"touch",PEN:"pen"},re=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(Z),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=e.prototype;return n.next=function(){this._isSliding||this._slide(N)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(R)},n.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(J)&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(e){var n=this;this._activeElement=this._element.querySelector(G);var r=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(F.SLID,(function(){return n.to(e)}));else{if(r===e)return this.pause(),void this.cycle();var i=e>r?N:R;this._slide(i,this._items[e])}},n.dispose=function(){t(this._element).off(O),t.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(e){return e=s({},I,{},e),l.typeCheckConfig(D,e,j),e},n._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},n._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(F.KEYDOWN,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&t(this._element).on(F.MOUSEENTER,(function(t){return e.pause(t)})).on(F.MOUSELEAVE,(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var n=function(t){e._pointerEvent&&ne[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){e._pointerEvent&&ne[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};t(this._element.querySelectorAll(X)).on(F.DRAG_START,(function(e){return e.preventDefault()})),this._pointerEvent?(t(this._element).on(F.POINTERDOWN,(function(e){return n(e)})),t(this._element).on(F.POINTERUP,(function(e){return r(e)})),this._element.classList.add(Y)):(t(this._element).on(F.TOUCHSTART,(function(e){return n(e)})),t(this._element).on(F.TOUCHMOVE,(function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)})),t(this._element).on(F.TOUCHEND,(function(e){return r(e)})))}},n._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},n._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Q)):[],this._items.indexOf(e)},n._getItemByDirection=function(e,t){var n=e===N,r=e===R,i=this._getItemIndex(t),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return t;var a=(i+(e===R?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},n._triggerSlideEvent=function(e,n){var r=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(G)),o=t.Event(F.SLIDE,{relatedTarget:e,direction:n,from:i,to:r});return t(this._element).trigger(o),o},n._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(K));t(n).removeClass(V);var r=this._indicatorsElement.children[this._getItemIndex(e)];r&&t(r).addClass(V)}},n._slide=function(e,n){var r,i,o,a=this,s=this._element.querySelector(G),c=this._getItemIndex(s),u=n||s&&this._getItemByDirection(e,s),d=this._getItemIndex(u),f=Boolean(this._interval);if(e===N?(r=U,i=q,o=L):(r=H,i=W,o=B),u&&t(u).hasClass(V))this._isSliding=!1;else if(!this._triggerSlideEvent(u,o).isDefaultPrevented()&&s&&u){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(u);var h=t.Event(F.SLID,{relatedTarget:u,direction:o,from:c,to:d});if(t(this._element).hasClass($)){t(u).addClass(i),l.reflow(u),t(s).addClass(r),t(u).addClass(r);var p=parseInt(u.getAttribute("data-interval"),10);p?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=p):this._config.interval=this._config.defaultInterval||this._config.interval;var m=l.getTransitionDurationFromElement(s);t(s).one(l.TRANSITION_END,(function(){t(u).removeClass(r+" "+i).addClass(V),t(s).removeClass(V+" "+i+" "+r),a._isSliding=!1,setTimeout((function(){return t(a._element).trigger(h)}),0)})).emulateTransitionEnd(m)}else t(s).removeClass(V),t(u).addClass(V),this._isSliding=!1,t(this._element).trigger(h);f&&this.cycle()}},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.carousel"),i=s({},I,{},t(this).data());"object"==typeof n&&(i=s({},i,{},n));var o="string"==typeof n?n:i.slide;if(r||(r=new e(this,i),t(this).data("bs.carousel",r)),"number"==typeof n)r.to(n);else if("string"==typeof o){if(void 0===r[o])throw new TypeError('No method named "'+o+'"');r[o]()}else i.interval&&i.ride&&(r.pause(),r.cycle())}))},e._dataApiClickHandler=function(n){var r=l.getSelectorFromElement(this);if(r){var i=t(r)[0];if(i&&t(i).hasClass(z)){var o=s({},t(i).data(),{},t(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),e._jQueryInterface.call(t(i),o),a&&t(i).data("bs.carousel").to(a),n.preventDefault()}}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return I}}]),e}();t(document).on(F.CLICK_DATA_API,ee,re._dataApiClickHandler),t(window).on(F.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(te)),n=0,r=e.length;n<r;n++){var i=t(e[n]);re._jQueryInterface.call(i,i.data())}})),t.fn[D]=re._jQueryInterface,t.fn[D].Constructor=re,t.fn[D].noConflict=function(){return t.fn[D]=P,re._jQueryInterface};var ie="collapse",oe=t.fn[ie],ae={toggle:!0,parent:""},se={toggle:"boolean",parent:"(string|element)"},ce={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},le="show",ue="collapse",de="collapsing",fe="collapsed",he="width",pe="height",me=".show, .collapsing",ve='[data-toggle="collapse"]',ge=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ve)),r=0,i=n.length;r<i;r++){var o=n[r],a=l.getSelectorFromElement(o),s=[].slice.call(document.querySelectorAll(a)).filter((function(t){return t===e}));null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=e.prototype;return n.toggle=function(){t(this._element).hasClass(le)?this.hide():this.show()},n.show=function(){var n,r,i=this;if(!(this._isTransitioning||t(this._element).hasClass(le)||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(me)).filter((function(e){return"string"==typeof i._config.parent?e.getAttribute("data-parent")===i._config.parent:e.classList.contains(ue)}))).length&&(n=null),n&&(r=t(n).not(this._selector).data("bs.collapse"))&&r._isTransitioning))){var o=t.Event(ce.SHOW);if(t(this._element).trigger(o),!o.isDefaultPrevented()){n&&(e._jQueryInterface.call(t(n).not(this._selector),"hide"),r||t(n).data("bs.collapse",null));var a=this._getDimension();t(this._element).removeClass(ue).addClass(de),this._element.style[a]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(fe).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(a[0].toUpperCase()+a.slice(1)),c=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(){t(i._element).removeClass(de).addClass(ue).addClass(le),i._element.style[a]="",i.setTransitioning(!1),t(i._element).trigger(ce.SHOWN)})).emulateTransitionEnd(c),this._element.style[a]=this._element[s]+"px"}}},n.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(le)){var n=t.Event(ce.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",l.reflow(this._element),t(this._element).addClass(de).removeClass(ue).removeClass(le);var i=this._triggerArray.length;if(i>0)for(var o=0;o<i;o++){var a=this._triggerArray[o],s=l.getSelectorFromElement(a);null!==s&&(t([].slice.call(document.querySelectorAll(s))).hasClass(le)||t(a).addClass(fe).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[r]="";var c=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(){e.setTransitioning(!1),t(e._element).removeClass(de).addClass(ue).trigger(ce.HIDDEN)})).emulateTransitionEnd(c)}}},n.setTransitioning=function(e){this._isTransitioning=e},n.dispose=function(){t.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},n._getConfig=function(e){return(e=s({},ae,{},e)).toggle=Boolean(e.toggle),l.typeCheckConfig(ie,e,se),e},n._getDimension=function(){return t(this._element).hasClass(he)?he:pe},n._getParent=function(){var n,r=this;l.isElement(this._config.parent)?(n=this._config.parent,void 0!==this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(n.querySelectorAll(i));return t(o).each((function(t,n){r._addAriaAndCollapsedClass(e._getTargetFromElement(n),[n])})),n},n._addAriaAndCollapsedClass=function(e,n){var r=t(e).hasClass(le);n.length&&t(n).toggleClass(fe,!r).attr("aria-expanded",r)},e._getTargetFromElement=function(e){var t=l.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data("bs.collapse"),o=s({},ae,{},r.data(),{},"object"==typeof n&&n?n:{});if(!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||(i=new e(this,o),r.data("bs.collapse",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ae}}]),e}();t(document).on(ce.CLICK_DATA_API,ve,(function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=t(this),r=l.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(r));t(i).each((function(){var e=t(this),r=e.data("bs.collapse")?"toggle":n.data();ge._jQueryInterface.call(e,r)}))})),t.fn[ie]=ge._jQueryInterface,t.fn[ie].Constructor=ge,t.fn[ie].noConflict=function(){return t.fn[ie]=oe,ge._jQueryInterface};var be="dropdown",ye=t.fn[be],ke=new RegExp("38|40|27"),we={HIDE:"hide.bs.dropdown",HIDDEN:"hidden.bs.dropdown",SHOW:"show.bs.dropdown",SHOWN:"shown.bs.dropdown",CLICK:"click.bs.dropdown",CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},_e="disabled",Ce="show",Ae="dropup",xe="dropright",Se="dropleft",Me="dropdown-menu-right",Ee="position-static",Te='[data-toggle="dropdown"]',De=".dropdown form",Oe=".dropdown-menu",Pe=".navbar-nav",Ie=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",je="top-start",Ne="top-end",Re="bottom-start",Le="bottom-end",Be="right-start",Fe="left-start",ze={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Ve={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},$e=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var r=e.prototype;return r.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(_e)){var n=t(this._menu).hasClass(Ce);e._clearMenus(),n||this.show(!0)}},r.show=function(r){if(void 0===r&&(r=!1),!(this._element.disabled||t(this._element).hasClass(_e)||t(this._menu).hasClass(Ce))){var i={relatedTarget:this._element},o=t.Event(we.SHOW,i),a=e._getParentFromElement(this._element);if(t(a).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&r){if(void 0===n)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var s=this._element;"parent"===this._config.reference?s=a:l.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t(a).addClass(Ee),this._popper=new n(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(a).closest(Pe).length&&t(document.body).children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(Ce),t(a).toggleClass(Ce).trigger(t.Event(we.SHOWN,i))}}},r.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(_e)&&t(this._menu).hasClass(Ce)){var n={relatedTarget:this._element},r=t.Event(we.HIDE,n),i=e._getParentFromElement(this._element);t(i).trigger(r),r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),t(this._menu).toggleClass(Ce),t(i).toggleClass(Ce).trigger(t.Event(we.HIDDEN,n)))}},r.dispose=function(){t.removeData(this._element,"bs.dropdown"),t(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},r.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},r._addEventListeners=function(){var e=this;t(this._element).on(we.CLICK,(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},r._getConfig=function(e){return e=s({},this.constructor.Default,{},t(this._element).data(),{},e),l.typeCheckConfig(be,e,this.constructor.DefaultType),e},r._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(Oe))}return this._menu},r._getPlacement=function(){var e=t(this._element.parentNode),n=Re;return e.hasClass(Ae)?(n=je,t(this._menu).hasClass(Me)&&(n=Ne)):e.hasClass(xe)?n=Be:e.hasClass(Se)?n=Fe:t(this._menu).hasClass(Me)&&(n=Le),n},r._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},r._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,{},e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},r._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),s({},e,{},this._config.popperConfig)},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.dropdown");if(r||(r=new e(this,"object"==typeof n?n:null),t(this).data("bs.dropdown",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},e._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var r=[].slice.call(document.querySelectorAll(Te)),i=0,o=r.length;i<o;i++){var a=e._getParentFromElement(r[i]),s=t(r[i]).data("bs.dropdown"),c={relatedTarget:r[i]};if(n&&"click"===n.type&&(c.clickEvent=n),s){var l=s._menu;if(t(a).hasClass(Ce)&&!(n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"keyup"===n.type&&9===n.which)&&t.contains(a,n.target))){var u=t.Event(we.HIDE,c);t(a).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),r[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),t(l).removeClass(Ce),t(a).removeClass(Ce).trigger(t.Event(we.HIDDEN,c)))}}}},e._getParentFromElement=function(e){var t,n=l.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},e._dataApiKeydownHandler=function(n){if(!(/input|textarea/i.test(n.target.tagName)?32===n.which||27!==n.which&&(40!==n.which&&38!==n.which||t(n.target).closest(Oe).length):!ke.test(n.which))&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!t(this).hasClass(_e))){var r=e._getParentFromElement(this),i=t(r).hasClass(Ce);if(i||27!==n.which)if(i&&(!i||27!==n.which&&32!==n.which)){var o=[].slice.call(r.querySelectorAll(Ie)).filter((function(e){return t(e).is(":visible")}));if(0!==o.length){var a=o.indexOf(n.target);38===n.which&&a>0&&a--,40===n.which&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}else{if(27===n.which){var s=r.querySelector(Te);t(s).trigger("focus")}t(this).trigger("click")}}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ze}},{key:"DefaultType",get:function(){return Ve}}]),e}();t(document).on(we.KEYDOWN_DATA_API,Te,$e._dataApiKeydownHandler).on(we.KEYDOWN_DATA_API,Oe,$e._dataApiKeydownHandler).on(we.CLICK_DATA_API+" "+we.KEYUP_DATA_API,$e._clearMenus).on(we.CLICK_DATA_API,Te,(function(e){e.preventDefault(),e.stopPropagation(),$e._jQueryInterface.call(t(this),"toggle")})).on(we.CLICK_DATA_API,De,(function(e){e.stopPropagation()})),t.fn[be]=$e._jQueryInterface,t.fn[be].Constructor=$e,t.fn[be].noConflict=function(){return t.fn[be]=ye,$e._jQueryInterface};var He=t.fn.modal,Ue={backdrop:!0,keyboard:!0,focus:!0,show:!0},qe={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},We={HIDE:"hide.bs.modal",HIDE_PREVENTED:"hidePrevented.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},Ye="modal-dialog-scrollable",Ke="modal-scrollbar-measure",Ge="modal-backdrop",Qe="modal-open",Xe="fade",Je="show",Ze="modal-static",et=".modal-dialog",tt=".modal-body",nt='[data-toggle="modal"]',rt='[data-dismiss="modal"]',it=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ot=".sticky-top",at=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(et),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var n=e.prototype;return n.toggle=function(e){return this._isShown?this.hide():this.show(e)},n.show=function(e){var n=this;if(!this._isShown&&!this._isTransitioning){t(this._element).hasClass(Xe)&&(this._isTransitioning=!0);var r=t.Event(We.SHOW,{relatedTarget:e});t(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(We.CLICK_DISMISS,rt,(function(e){return n.hide(e)})),t(this._dialog).on(We.MOUSEDOWN_DISMISS,(function(){t(n._element).one(We.MOUSEUP_DISMISS,(function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return n._showElement(e)})))}},n.hide=function(e){var n=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var r=t.Event(We.HIDE);if(t(this._element).trigger(r),this._isShown&&!r.isDefaultPrevented()){this._isShown=!1;var i=t(this._element).hasClass(Xe);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(We.FOCUSIN),t(this._element).removeClass(Je),t(this._element).off(We.CLICK_DISMISS),t(this._dialog).off(We.MOUSEDOWN_DISMISS),i){var o=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(e){return n._hideModal(e)})).emulateTransitionEnd(o)}else this._hideModal()}}},n.dispose=function(){[window,this._element,this._dialog].forEach((function(e){return t(e).off(".bs.modal")})),t(document).off(We.FOCUSIN),t.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(e){return e=s({},Ue,{},e),l.typeCheckConfig("modal",e,qe),e},n._triggerBackdropTransition=function(){var e=this;if("static"===this._config.backdrop){var n=t.Event(We.HIDE_PREVENTED);if(t(this._element).trigger(n),n.defaultPrevented)return;this._element.classList.add(Ze);var r=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(){e._element.classList.remove(Ze)})).emulateTransitionEnd(r),this._element.focus()}else this.hide()},n._showElement=function(e){var n=this,r=t(this._element).hasClass(Xe),i=this._dialog?this._dialog.querySelector(tt):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),t(this._dialog).hasClass(Ye)&&i?i.scrollTop=0:this._element.scrollTop=0,r&&l.reflow(this._element),t(this._element).addClass(Je),this._config.focus&&this._enforceFocus();var o=t.Event(We.SHOWN,{relatedTarget:e}),a=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,t(n._element).trigger(o)};if(r){var s=l.getTransitionDurationFromElement(this._dialog);t(this._dialog).one(l.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},n._enforceFocus=function(){var e=this;t(document).off(We.FOCUSIN).on(We.FOCUSIN,(function(n){document!==n.target&&e._element!==n.target&&0===t(e._element).has(n.target).length&&e._element.focus()}))},n._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(We.KEYDOWN_DISMISS,(function(t){27===t.which&&e._triggerBackdropTransition()})):this._isShown||t(this._element).off(We.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var e=this;this._isShown?t(window).on(We.RESIZE,(function(t){return e.handleUpdate(t)})):t(window).off(We.RESIZE)},n._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop((function(){t(document.body).removeClass(Qe),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(We.HIDDEN)}))},n._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(e){var n=this,r=t(this._element).hasClass(Xe)?Xe:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Ge,r&&this._backdrop.classList.add(r),t(this._backdrop).appendTo(document.body),t(this._element).on(We.CLICK_DISMISS,(function(e){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:e.target===e.currentTarget&&n._triggerBackdropTransition()})),r&&l.reflow(this._backdrop),t(this._backdrop).addClass(Je),!e)return;if(!r)return void e();var i=l.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(l.TRANSITION_END,e).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(Je);var o=function(){n._removeBackdrop(),e&&e()};if(t(this._element).hasClass(Xe)){var a=l.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(l.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else e&&e()},n._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var n=[].slice.call(document.querySelectorAll(it)),r=[].slice.call(document.querySelectorAll(ot));t(n).each((function(n,r){var i=r.style.paddingRight,o=t(r).css("padding-right");t(r).data("padding-right",i).css("padding-right",parseFloat(o)+e._scrollbarWidth+"px")})),t(r).each((function(n,r){var i=r.style.marginRight,o=t(r).css("margin-right");t(r).data("margin-right",i).css("margin-right",parseFloat(o)-e._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,o=t(document.body).css("padding-right");t(document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}t(document.body).addClass(Qe)},n._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(it));t(e).each((function(e,n){var r=t(n).data("padding-right");t(n).removeData("padding-right"),n.style.paddingRight=r||""}));var n=[].slice.call(document.querySelectorAll(""+ot));t(n).each((function(e,n){var r=t(n).data("margin-right");void 0!==r&&t(n).css("margin-right",r).removeData("margin-right")}));var r=t(document.body).data("padding-right");t(document.body).removeData("padding-right"),document.body.style.paddingRight=r||""},n._getScrollbarWidth=function(){var e=document.createElement("div");e.className=Ke,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(n,r){return this.each((function(){var i=t(this).data("bs.modal"),o=s({},Ue,{},t(this).data(),{},"object"==typeof n&&n?n:{});if(i||(i=new e(this,o),t(this).data("bs.modal",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n](r)}else o.show&&i.show(r)}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Ue}}]),e}();t(document).on(We.CLICK_DATA_API,nt,(function(e){var n,r=this,i=l.getSelectorFromElement(this);i&&(n=document.querySelector(i));var o=t(n).data("bs.modal")?"toggle":s({},t(n).data(),{},t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=t(n).one(We.SHOW,(function(e){e.isDefaultPrevented()||a.one(We.HIDDEN,(function(){t(r).is(":visible")&&r.focus()}))}));at._jQueryInterface.call(t(n),o,this)})),t.fn.modal=at._jQueryInterface,t.fn.modal.Constructor=at,t.fn.modal.noConflict=function(){return t.fn.modal=He,at._jQueryInterface};var st=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],ct={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},lt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ut=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function dt(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);for(var r=(new window.DOMParser).parseFromString(e,"text/html"),i=Object.keys(t),o=[].slice.call(r.body.querySelectorAll("*")),a=function(e,n){var r=o[e],a=r.nodeName.toLowerCase();if(-1===i.indexOf(r.nodeName.toLowerCase()))return r.parentNode.removeChild(r),"continue";var s=[].slice.call(r.attributes),c=[].concat(t["*"]||[],t[a]||[]);s.forEach((function(e){(function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===st.indexOf(n)||Boolean(e.nodeValue.match(lt)||e.nodeValue.match(ut));for(var r=t.filter((function(e){return e instanceof RegExp})),i=0,o=r.length;i<o;i++)if(n.match(r[i]))return!0;return!1})(e,c)||r.removeAttribute(e.nodeName)}))},s=0,c=o.length;s<c;s++)a(s);return r.body.innerHTML}var ft="tooltip",ht=t.fn[ft],pt=new RegExp("(^|\\s)bs-tooltip\\S+","g"),mt=["sanitize","whiteList","sanitizeFn"],vt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},gt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},bt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:ct,popperConfig:null},yt="show",kt="out",wt={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},_t="fade",Ct="show",At=".tooltip-inner",xt=".arrow",St="hover",Mt="focus",Et="click",Tt="manual",Dt=function(){function e(e,t){if(void 0===n)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var r=e.prototype;return r.enable=function(){this._isEnabled=!0},r.disable=function(){this._isEnabled=!1},r.toggleEnabled=function(){this._isEnabled=!this._isEnabled},r.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,r=t(e.currentTarget).data(n);r||(r=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(t(this.getTipElement()).hasClass(Ct))return void this._leave(null,this);this._enter(null,this)}},r.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},r.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var r=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(r);var i=l.findShadowRoot(this.element),o=t.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(r.isDefaultPrevented()||!o)return;var a=this.getTipElement(),s=l.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&t(a).addClass(_t);var c="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,u=this._getAttachment(c);this.addAttachmentClass(u);var d=this._getContainer();t(a).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(a).appendTo(d),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,a,this._getPopperConfig(u)),t(a).addClass(Ct),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var f=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===kt&&e._leave(null,e)};if(t(this.tip).hasClass(_t)){var h=l.getTransitionDurationFromElement(this.tip);t(this.tip).one(l.TRANSITION_END,f).emulateTransitionEnd(h)}else f()}},r.hide=function(e){var n=this,r=this.getTipElement(),i=t.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==yt&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};if(t(this.element).trigger(i),!i.isDefaultPrevented()){if(t(r).removeClass(Ct),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[Et]=!1,this._activeTrigger[Mt]=!1,this._activeTrigger[St]=!1,t(this.tip).hasClass(_t)){var a=l.getTransitionDurationFromElement(r);t(r).one(l.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},r.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},r.isWithContent=function(){return Boolean(this.getTitle())},r.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},r.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},r.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(At)),this.getTitle()),t(e).removeClass(_t+" "+Ct)},r.setElementContent=function(e,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=dt(n,this.config.whiteList,this.config.sanitizeFn)),e.html(n)):e.text(n):this.config.html?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text())},r.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},r._getPopperConfig=function(e){var t=this;return s({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:xt},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},r._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},r._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},r._getAttachment=function(e){return gt[e.toUpperCase()]},r._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if(n!==Tt){var r=n===St?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i=n===St?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(r,e.config.selector,(function(t){return e._enter(t)})).on(i,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},r._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},r._enter=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusin"===e.type?Mt:St]=!0),t(n.getTipElement()).hasClass(Ct)||n._hoverState===yt?n._hoverState=yt:(clearTimeout(n._timeout),n._hoverState=yt,n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){n._hoverState===yt&&n.show()}),n.config.delay.show):n.show())},r._leave=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusout"===e.type?Mt:St]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=kt,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){n._hoverState===kt&&n.hide()}),n.config.delay.hide):n.hide())},r._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},r._getConfig=function(e){var n=t(this.element).data();return Object.keys(n).forEach((function(e){-1!==mt.indexOf(e)&&delete n[e]})),"number"==typeof(e=s({},this.constructor.Default,{},n,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),l.typeCheckConfig(ft,e,this.constructor.DefaultType),e.sanitize&&(e.template=dt(e.template,e.whiteList,e.sanitizeFn)),e},r._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},r._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(pt);null!==n&&n.length&&e.removeClass(n.join(""))},r._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},r._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(_t),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.tooltip"),i="object"==typeof n&&n;if((r||!/dispose|hide/.test(n))&&(r||(r=new e(this,i),t(this).data("bs.tooltip",r)),"string"==typeof n)){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return bt}},{key:"NAME",get:function(){return ft}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return wt}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return vt}}]),e}();t.fn[ft]=Dt._jQueryInterface,t.fn[ft].Constructor=Dt,t.fn[ft].noConflict=function(){return t.fn[ft]=ht,Dt._jQueryInterface};var Ot="popover",Pt=t.fn[Ot],It=new RegExp("(^|\\s)bs-popover\\S+","g"),jt=s({},Dt.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Nt=s({},Dt.DefaultType,{content:"(string|element|function)"}),Rt="fade",Lt="show",Bt=".popover-header",Ft=".popover-body",zt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},Vt=function(e){var n,r;function o(){return e.apply(this,arguments)||this}r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var a=o.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},a.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},a.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(Bt),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(Ft),n),e.removeClass(Rt+" "+Lt)},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(It);null!==n&&n.length>0&&e.removeClass(n.join(""))},o._jQueryInterface=function(e){return this.each((function(){var n=t(this).data("bs.popover"),r="object"==typeof e?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new o(this,r),t(this).data("bs.popover",n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},i(o,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return jt}},{key:"NAME",get:function(){return Ot}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return zt}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Nt}}]),o}(Dt);t.fn[Ot]=Vt._jQueryInterface,t.fn[Ot].Constructor=Vt,t.fn[Ot].noConflict=function(){return t.fn[Ot]=Pt,Vt._jQueryInterface};var $t="scrollspy",Ht=t.fn[$t],Ut={offset:10,method:"auto",target:""},qt={offset:"number",method:"string",target:"(string|element)"},Wt={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},Yt="dropdown-item",Kt="active",Gt='[data-spy="scroll"]',Qt=".nav, .list-group",Xt=".nav-link",Jt=".nav-item",Zt=".list-group-item",en=".dropdown",tn=".dropdown-item",nn=".dropdown-toggle",rn="offset",on="position",an=function(){function e(e,n){var r=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+Xt+","+this._config.target+" "+Zt+","+this._config.target+" "+tn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(Wt.SCROLL,(function(e){return r._process(e)})),this.refresh(),this._process()}var n=e.prototype;return n.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?rn:on,r="auto"===this._config.method?n:this._config.method,i=r===on?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var n,o=l.getSelectorFromElement(e);if(o&&(n=document.querySelector(o)),n){var a=n.getBoundingClientRect();if(a.width||a.height)return[t(n)[r]().top+i,o]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},n.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(e){if("string"!=typeof(e=s({},Ut,{},"object"==typeof e&&e?e:{})).target){var n=t(e.target).attr("id");n||(n=l.getUID($t),t(e.target).attr("id",n)),e.target="#"+n}return l.typeCheckConfig($t,e,qt),e},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e<this._offsets[i+1])&&this._activate(this._targets[i])}},n._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",").map((function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'})),r=t([].slice.call(document.querySelectorAll(n.join(","))));r.hasClass(Yt)?(r.closest(en).find(nn).addClass(Kt),r.addClass(Kt)):(r.addClass(Kt),r.parents(Qt).prev(Xt+", "+Zt).addClass(Kt),r.parents(Qt).prev(Jt).children(Xt).addClass(Kt)),t(this._scrollElement).trigger(Wt.ACTIVATE,{relatedTarget:e})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(e){return e.classList.contains(Kt)})).forEach((function(e){return e.classList.remove(Kt)}))},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.scrollspy");if(r||(r=new e(this,"object"==typeof n&&n),t(this).data("bs.scrollspy",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Ut}}]),e}();t(window).on(Wt.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(Gt)),n=e.length;n--;){var r=t(e[n]);an._jQueryInterface.call(r,r.data())}})),t.fn[$t]=an._jQueryInterface,t.fn[$t].Constructor=an,t.fn[$t].noConflict=function(){return t.fn[$t]=Ht,an._jQueryInterface};var sn=t.fn.tab,cn={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},ln="dropdown-menu",un="active",dn="disabled",fn="fade",hn="show",pn=".dropdown",mn=".nav, .list-group",vn=".active",gn="> li > .active",bn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',yn=".dropdown-toggle",kn="> .dropdown-menu .active",wn=function(){function e(e){this._element=e}var n=e.prototype;return n.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(un)||t(this._element).hasClass(dn))){var n,r,i=t(this._element).closest(mn)[0],o=l.getSelectorFromElement(this._element);if(i){var a="UL"===i.nodeName||"OL"===i.nodeName?gn:vn;r=(r=t.makeArray(t(i).find(a)))[r.length-1]}var s=t.Event(cn.HIDE,{relatedTarget:this._element}),c=t.Event(cn.SHOW,{relatedTarget:r});if(r&&t(r).trigger(s),t(this._element).trigger(c),!c.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(n=document.querySelector(o)),this._activate(this._element,i);var u=function(){var n=t.Event(cn.HIDDEN,{relatedTarget:e._element}),i=t.Event(cn.SHOWN,{relatedTarget:r});t(r).trigger(n),t(e._element).trigger(i)};n?this._activate(n,n.parentNode,u):u()}}},n.dispose=function(){t.removeData(this._element,"bs.tab"),this._element=null},n._activate=function(e,n,r){var i=this,o=(!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?t(n).children(vn):t(n).find(gn))[0],a=r&&o&&t(o).hasClass(fn),s=function(){return i._transitionComplete(e,o,r)};if(o&&a){var c=l.getTransitionDurationFromElement(o);t(o).removeClass(hn).one(l.TRANSITION_END,s).emulateTransitionEnd(c)}else s()},n._transitionComplete=function(e,n,r){if(n){t(n).removeClass(un);var i=t(n.parentNode).find(kn)[0];i&&t(i).removeClass(un),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(t(e).addClass(un),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),l.reflow(e),e.classList.contains(fn)&&e.classList.add(hn),e.parentNode&&t(e.parentNode).hasClass(ln)){var o=t(e).closest(pn)[0];if(o){var a=[].slice.call(o.querySelectorAll(yn));t(a).addClass(un)}e.setAttribute("aria-expanded",!0)}r&&r()},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data("bs.tab");if(i||(i=new e(this),r.data("bs.tab",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(cn.CLICK_DATA_API,bn,(function(e){e.preventDefault(),wn._jQueryInterface.call(t(this),"show")})),t.fn.tab=wn._jQueryInterface,t.fn.tab.Constructor=wn,t.fn.tab.noConflict=function(){return t.fn.tab=sn,wn._jQueryInterface};var _n=t.fn.toast,Cn={CLICK_DISMISS:"click.dismiss.bs.toast",HIDE:"hide.bs.toast",HIDDEN:"hidden.bs.toast",SHOW:"show.bs.toast",SHOWN:"shown.bs.toast"},An="fade",xn="hide",Sn="show",Mn="showing",En={animation:"boolean",autohide:"boolean",delay:"number"},Tn={animation:!0,autohide:!0,delay:500},Dn='[data-dismiss="toast"]',On=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var n=e.prototype;return n.show=function(){var e=this,n=t.Event(Cn.SHOW);if(t(this._element).trigger(n),!n.isDefaultPrevented()){this._config.animation&&this._element.classList.add(An);var r=function(){e._element.classList.remove(Mn),e._element.classList.add(Sn),t(e._element).trigger(Cn.SHOWN),e._config.autohide&&(e._timeout=setTimeout((function(){e.hide()}),e._config.delay))};if(this._element.classList.remove(xn),l.reflow(this._element),this._element.classList.add(Mn),this._config.animation){var i=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,r).emulateTransitionEnd(i)}else r()}},n.hide=function(){if(this._element.classList.contains(Sn)){var e=t.Event(Cn.HIDE);t(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Sn)&&this._element.classList.remove(Sn),t(this._element).off(Cn.CLICK_DISMISS),t.removeData(this._element,"bs.toast"),this._element=null,this._config=null},n._getConfig=function(e){return e=s({},Tn,{},t(this._element).data(),{},"object"==typeof e&&e?e:{}),l.typeCheckConfig("toast",e,this.constructor.DefaultType),e},n._setListeners=function(){var e=this;t(this._element).on(Cn.CLICK_DISMISS,Dn,(function(){return e.hide()}))},n._close=function(){var e=this,n=function(){e._element.classList.add(xn),t(e._element).trigger(Cn.HIDDEN)};if(this._element.classList.remove(Sn),this._config.animation){var r=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,n).emulateTransitionEnd(r)}else n()},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data("bs.toast");if(i||(i=new e(this,"object"==typeof n&&n),r.data("bs.toast",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n](this)}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return En}},{key:"Default",get:function(){return Tn}}]),e}();t.fn.toast=On._jQueryInterface,t.fn.toast.Constructor=On,t.fn.toast.noConflict=function(){return t.fn.toast=_n,On._jQueryInterface},e.Alert=v,e.Button=T,e.Carousel=re,e.Collapse=ge,e.Dropdown=$e,e.Modal=at,e.Popover=Vt,e.Scrollspy=an,e.Tab=wn,e.Toast=On,e.Tooltip=Dt,e.Util=l,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(36),n(53))},function(e,t,n){e.exports=n(100)},function(e,t,n){"use strict";var r=n(5),i=n(54),o=n(101),a=n(61);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(n(57));c.Axios=o,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(62),c.CancelToken=n(114),c.isCancel=n(56),c.all=function(e){return Promise.all(e)},c.spread=n(115),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";var r=n(5),i=n(55),o=n(102),a=n(103),s=n(61);function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(5);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(5),i=n(104),o=n(56),a=n(57);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(60);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(109),i=n(110);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(5),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(5);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(5);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(62);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){(function(t){var n;window,n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){!function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},r=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=t(),s=t([1]),c=t([56129,1]),l=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function m(e,t,n,r,i){var o,a=0;for(o=0;o<i;o++)a|=e[t+o]^n[r+o];return(1&a-1>>>8)-1}function v(e,t,n,r){return m(e,t,n,r,16)}function g(e,t,n,r){return m(e,t,n,r,32)}function b(e,t,n,r){!function(e,t,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,v=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,k=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=o,_=a,C=s,A=c,x=l,S=u,M=d,E=f,T=h,D=p,O=m,P=v,I=g,j=b,N=y,R=k,L=0;L<20;L+=2)w^=(i=(I^=(i=(T^=(i=(x^=(i=w+I|0)<<7|i>>>25)+w|0)<<9|i>>>23)+x|0)<<13|i>>>19)+T|0)<<18|i>>>14,S^=(i=(_^=(i=(j^=(i=(D^=(i=S+_|0)<<7|i>>>25)+S|0)<<9|i>>>23)+D|0)<<13|i>>>19)+j|0)<<18|i>>>14,O^=(i=(M^=(i=(C^=(i=(N^=(i=O+M|0)<<7|i>>>25)+O|0)<<9|i>>>23)+N|0)<<13|i>>>19)+C|0)<<18|i>>>14,R^=(i=(P^=(i=(E^=(i=(A^=(i=R+P|0)<<7|i>>>25)+R|0)<<9|i>>>23)+A|0)<<13|i>>>19)+E|0)<<18|i>>>14,w^=(i=(A^=(i=(C^=(i=(_^=(i=w+A|0)<<7|i>>>25)+w|0)<<9|i>>>23)+_|0)<<13|i>>>19)+C|0)<<18|i>>>14,S^=(i=(x^=(i=(E^=(i=(M^=(i=S+x|0)<<7|i>>>25)+S|0)<<9|i>>>23)+M|0)<<13|i>>>19)+E|0)<<18|i>>>14,O^=(i=(D^=(i=(T^=(i=(P^=(i=O+D|0)<<7|i>>>25)+O|0)<<9|i>>>23)+P|0)<<13|i>>>19)+T|0)<<18|i>>>14,R^=(i=(N^=(i=(j^=(i=(I^=(i=R+N|0)<<7|i>>>25)+R|0)<<9|i>>>23)+I|0)<<13|i>>>19)+j|0)<<18|i>>>14;w=w+o|0,_=_+a|0,C=C+s|0,A=A+c|0,x=x+l|0,S=S+u|0,M=M+d|0,E=E+f|0,T=T+h|0,D=D+p|0,O=O+m|0,P=P+v|0,I=I+g|0,j=j+b|0,N=N+y|0,R=R+k|0,e[0]=w>>>0&255,e[1]=w>>>8&255,e[2]=w>>>16&255,e[3]=w>>>24&255,e[4]=_>>>0&255,e[5]=_>>>8&255,e[6]=_>>>16&255,e[7]=_>>>24&255,e[8]=C>>>0&255,e[9]=C>>>8&255,e[10]=C>>>16&255,e[11]=C>>>24&255,e[12]=A>>>0&255,e[13]=A>>>8&255,e[14]=A>>>16&255,e[15]=A>>>24&255,e[16]=x>>>0&255,e[17]=x>>>8&255,e[18]=x>>>16&255,e[19]=x>>>24&255,e[20]=S>>>0&255,e[21]=S>>>8&255,e[22]=S>>>16&255,e[23]=S>>>24&255,e[24]=M>>>0&255,e[25]=M>>>8&255,e[26]=M>>>16&255,e[27]=M>>>24&255,e[28]=E>>>0&255,e[29]=E>>>8&255,e[30]=E>>>16&255,e[31]=E>>>24&255,e[32]=T>>>0&255,e[33]=T>>>8&255,e[34]=T>>>16&255,e[35]=T>>>24&255,e[36]=D>>>0&255,e[37]=D>>>8&255,e[38]=D>>>16&255,e[39]=D>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=P>>>0&255,e[45]=P>>>8&255,e[46]=P>>>16&255,e[47]=P>>>24&255,e[48]=I>>>0&255,e[49]=I>>>8&255,e[50]=I>>>16&255,e[51]=I>>>24&255,e[52]=j>>>0&255,e[53]=j>>>8&255,e[54]=j>>>16&255,e[55]=j>>>24&255,e[56]=N>>>0&255,e[57]=N>>>8&255,e[58]=N>>>16&255,e[59]=N>>>24&255,e[60]=R>>>0&255,e[61]=R>>>8&255,e[62]=R>>>16&255,e[63]=R>>>24&255}(e,t,n,r)}function y(e,t,n,r){!function(e,t,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,v=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,k=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=0;w<20;w+=2)o^=(i=(g^=(i=(h^=(i=(l^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+l|0)<<13|i>>>19)+h|0)<<18|i>>>14,u^=(i=(a^=(i=(b^=(i=(p^=(i=u+a|0)<<7|i>>>25)+u|0)<<9|i>>>23)+p|0)<<13|i>>>19)+b|0)<<18|i>>>14,m^=(i=(d^=(i=(s^=(i=(y^=(i=m+d|0)<<7|i>>>25)+m|0)<<9|i>>>23)+y|0)<<13|i>>>19)+s|0)<<18|i>>>14,k^=(i=(v^=(i=(f^=(i=(c^=(i=k+v|0)<<7|i>>>25)+k|0)<<9|i>>>23)+c|0)<<13|i>>>19)+f|0)<<18|i>>>14,o^=(i=(c^=(i=(s^=(i=(a^=(i=o+c|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,u^=(i=(l^=(i=(f^=(i=(d^=(i=u+l|0)<<7|i>>>25)+u|0)<<9|i>>>23)+d|0)<<13|i>>>19)+f|0)<<18|i>>>14,m^=(i=(p^=(i=(h^=(i=(v^=(i=m+p|0)<<7|i>>>25)+m|0)<<9|i>>>23)+v|0)<<13|i>>>19)+h|0)<<18|i>>>14,k^=(i=(y^=(i=(b^=(i=(g^=(i=k+y|0)<<7|i>>>25)+k|0)<<9|i>>>23)+g|0)<<13|i>>>19)+b|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=m>>>0&255,e[9]=m>>>8&255,e[10]=m>>>16&255,e[11]=m>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,n,r)}var k=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,i,o,a){var s,c,l=new Uint8Array(16),u=new Uint8Array(64);for(c=0;c<16;c++)l[c]=0;for(c=0;c<8;c++)l[c]=o[c];for(;i>=64;){for(b(u,l,a,k),c=0;c<64;c++)e[t+c]=n[r+c]^u[c];for(s=1,c=8;c<16;c++)s=s+(255&l[c])|0,l[c]=255&s,s>>>=8;i-=64,t+=64,r+=64}if(i>0)for(b(u,l,a,k),c=0;c<i;c++)e[t+c]=n[r+c]^u[c];return 0}function _(e,t,n,r,i){var o,a,s=new Uint8Array(16),c=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(b(c,s,i,k),a=0;a<64;a++)e[t+a]=c[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;n-=64,t+=64}if(n>0)for(b(c,s,i,k),a=0;a<n;a++)e[t+a]=c[a];return 0}function C(e,t,n,r,i){var o=new Uint8Array(32);y(o,r,i,k);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return _(e,t,n,a,o)}function A(e,t,n,r,i,o,a){var s=new Uint8Array(32);y(s,o,a,k);for(var c=new Uint8Array(8),l=0;l<8;l++)c[l]=o[l+16];return w(e,t,n,r,i,c,s)}var x=function(e){var t,n,r,i,o,a,s,c;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function S(e,t,n,r,i,o){var a=new x(o);return a.update(n,r,i),a.finish(e,t),0}function M(e,t,n,r,i,o){var a=new Uint8Array(16);return S(a,0,n,r,i,o),v(e,t,a,0)}function E(e,t,n,r,i){var o;if(n<32)return-1;for(A(e,0,t,0,n,r,i),S(e,16,e,32,n-32,e),o=0;o<16;o++)e[o]=0;return 0}function T(e,t,n,r,i){var o,a=new Uint8Array(32);if(n<32)return-1;if(C(a,0,32,r,i),0!==M(t,16,t,32,n-32,a))return-1;for(A(e,0,t,0,n,r,i),o=0;o<32;o++)e[o]=0;return 0}function D(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function O(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function P(e,t,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(e[o]^t[o]),e[o]^=r,t[o]^=r}function I(e,n){var r,i,o,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(O(s),O(s),O(s),i=0;i<2;i++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,P(s,a,1-o)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function j(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return I(n,e),I(r,t),g(n,0,r,0)}function N(e){var t=new Uint8Array(32);return I(t,e),1&t[0]}function R(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function L(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function B(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function F(e,t,n){var r,i,o=0,a=0,s=0,c=0,l=0,u=0,d=0,f=0,h=0,p=0,m=0,v=0,g=0,b=0,y=0,k=0,w=0,_=0,C=0,A=0,x=0,S=0,M=0,E=0,T=0,D=0,O=0,P=0,I=0,j=0,N=0,R=n[0],L=n[1],B=n[2],F=n[3],z=n[4],V=n[5],$=n[6],H=n[7],U=n[8],q=n[9],W=n[10],Y=n[11],K=n[12],G=n[13],Q=n[14],X=n[15];o+=(r=t[0])*R,a+=r*L,s+=r*B,c+=r*F,l+=r*z,u+=r*V,d+=r*$,f+=r*H,h+=r*U,p+=r*q,m+=r*W,v+=r*Y,g+=r*K,b+=r*G,y+=r*Q,k+=r*X,a+=(r=t[1])*R,s+=r*L,c+=r*B,l+=r*F,u+=r*z,d+=r*V,f+=r*$,h+=r*H,p+=r*U,m+=r*q,v+=r*W,g+=r*Y,b+=r*K,y+=r*G,k+=r*Q,w+=r*X,s+=(r=t[2])*R,c+=r*L,l+=r*B,u+=r*F,d+=r*z,f+=r*V,h+=r*$,p+=r*H,m+=r*U,v+=r*q,g+=r*W,b+=r*Y,y+=r*K,k+=r*G,w+=r*Q,_+=r*X,c+=(r=t[3])*R,l+=r*L,u+=r*B,d+=r*F,f+=r*z,h+=r*V,p+=r*$,m+=r*H,v+=r*U,g+=r*q,b+=r*W,y+=r*Y,k+=r*K,w+=r*G,_+=r*Q,C+=r*X,l+=(r=t[4])*R,u+=r*L,d+=r*B,f+=r*F,h+=r*z,p+=r*V,m+=r*$,v+=r*H,g+=r*U,b+=r*q,y+=r*W,k+=r*Y,w+=r*K,_+=r*G,C+=r*Q,A+=r*X,u+=(r=t[5])*R,d+=r*L,f+=r*B,h+=r*F,p+=r*z,m+=r*V,v+=r*$,g+=r*H,b+=r*U,y+=r*q,k+=r*W,w+=r*Y,_+=r*K,C+=r*G,A+=r*Q,x+=r*X,d+=(r=t[6])*R,f+=r*L,h+=r*B,p+=r*F,m+=r*z,v+=r*V,g+=r*$,b+=r*H,y+=r*U,k+=r*q,w+=r*W,_+=r*Y,C+=r*K,A+=r*G,x+=r*Q,S+=r*X,f+=(r=t[7])*R,h+=r*L,p+=r*B,m+=r*F,v+=r*z,g+=r*V,b+=r*$,y+=r*H,k+=r*U,w+=r*q,_+=r*W,C+=r*Y,A+=r*K,x+=r*G,S+=r*Q,M+=r*X,h+=(r=t[8])*R,p+=r*L,m+=r*B,v+=r*F,g+=r*z,b+=r*V,y+=r*$,k+=r*H,w+=r*U,_+=r*q,C+=r*W,A+=r*Y,x+=r*K,S+=r*G,M+=r*Q,E+=r*X,p+=(r=t[9])*R,m+=r*L,v+=r*B,g+=r*F,b+=r*z,y+=r*V,k+=r*$,w+=r*H,_+=r*U,C+=r*q,A+=r*W,x+=r*Y,S+=r*K,M+=r*G,E+=r*Q,T+=r*X,m+=(r=t[10])*R,v+=r*L,g+=r*B,b+=r*F,y+=r*z,k+=r*V,w+=r*$,_+=r*H,C+=r*U,A+=r*q,x+=r*W,S+=r*Y,M+=r*K,E+=r*G,T+=r*Q,D+=r*X,v+=(r=t[11])*R,g+=r*L,b+=r*B,y+=r*F,k+=r*z,w+=r*V,_+=r*$,C+=r*H,A+=r*U,x+=r*q,S+=r*W,M+=r*Y,E+=r*K,T+=r*G,D+=r*Q,O+=r*X,g+=(r=t[12])*R,b+=r*L,y+=r*B,k+=r*F,w+=r*z,_+=r*V,C+=r*$,A+=r*H,x+=r*U,S+=r*q,M+=r*W,E+=r*Y,T+=r*K,D+=r*G,O+=r*Q,P+=r*X,b+=(r=t[13])*R,y+=r*L,k+=r*B,w+=r*F,_+=r*z,C+=r*V,A+=r*$,x+=r*H,S+=r*U,M+=r*q,E+=r*W,T+=r*Y,D+=r*K,O+=r*G,P+=r*Q,I+=r*X,y+=(r=t[14])*R,k+=r*L,w+=r*B,_+=r*F,C+=r*z,A+=r*V,x+=r*$,S+=r*H,M+=r*U,E+=r*q,T+=r*W,D+=r*Y,O+=r*K,P+=r*G,I+=r*Q,j+=r*X,k+=(r=t[15])*R,a+=38*(_+=r*B),s+=38*(C+=r*F),c+=38*(A+=r*z),l+=38*(x+=r*V),u+=38*(S+=r*$),d+=38*(M+=r*H),f+=38*(E+=r*U),h+=38*(T+=r*q),p+=38*(D+=r*W),m+=38*(O+=r*Y),v+=38*(P+=r*K),g+=38*(I+=r*G),b+=38*(j+=r*Q),y+=38*(N+=r*X),o=(r=(o+=38*(w+=r*L))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),k=(r=k+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),k=(r=k+i+65535)-65536*(i=Math.floor(r/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=m,e[11]=v,e[12]=g,e[13]=b,e[14]=y,e[15]=k}function z(e,t){F(e,t,t)}function V(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)z(i,i),2!==r&&4!==r&&F(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function $(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=250;r>=0;r--)z(i,i),1!==r&&F(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function H(e,n,r){var i,o,a=new Uint8Array(32),s=new Float64Array(80),l=t(),u=t(),d=t(),f=t(),h=t(),p=t();for(o=0;o<31;o++)a[o]=n[o];for(a[31]=127&n[31]|64,a[0]&=248,R(s,r),o=0;o<16;o++)u[o]=s[o],f[o]=l[o]=d[o]=0;for(l[0]=f[0]=1,o=254;o>=0;--o)P(l,u,i=a[o>>>3]>>>(7&o)&1),P(d,f,i),L(h,l,d),B(l,l,d),L(d,u,f),B(u,u,f),z(f,h),z(p,l),F(l,d,l),F(d,u,h),L(h,l,d),B(l,l,d),z(u,l),B(d,f,p),F(l,d,c),L(l,l,f),F(d,d,l),F(l,f,p),F(f,u,s),z(u,h),P(l,u,i),P(d,f,i);for(o=0;o<16;o++)s[o+16]=l[o],s[o+32]=d[o],s[o+48]=u[o],s[o+64]=f[o];var m=s.subarray(32),v=s.subarray(16);return V(m,m),F(v,v,m),I(e,v),0}function U(e,t){return H(e,t,o)}function q(e,t){return r(t,32),U(e,t)}function W(e,t,n){var r=new Uint8Array(32);return H(r,n,t),y(e,i,r,k)}x.prototype.blocks=function(e,t,n){for(var r,i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_=this.fin?0:2048,C=this.h[0],A=this.h[1],x=this.h[2],S=this.h[3],M=this.h[4],E=this.h[5],T=this.h[6],D=this.h[7],O=this.h[8],P=this.h[9],I=this.r[0],j=this.r[1],N=this.r[2],R=this.r[3],L=this.r[4],B=this.r[5],F=this.r[6],z=this.r[7],V=this.r[8],$=this.r[9];n>=16;)f=d=0,f+=(C+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*I,f+=(A+=8191&(r>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*$),f+=(x+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*V),f+=(S+=8191&(o>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*z),d=(f+=(M+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*F))>>>13,f&=8191,f+=(E+=s>>>1&8191)*(5*B),f+=(T+=8191&(s>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*L),f+=(D+=8191&(c>>>11|(l=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*R),f+=(O+=8191&(l>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*N),h=d+=(f+=(P+=u>>>5|_)*(5*j))>>>13,h+=C*j,h+=A*I,h+=x*(5*$),h+=S*(5*V),d=(h+=M*(5*z))>>>13,h&=8191,h+=E*(5*F),h+=T*(5*B),h+=D*(5*L),h+=O*(5*R),d+=(h+=P*(5*N))>>>13,h&=8191,p=d,p+=C*N,p+=A*j,p+=x*I,p+=S*(5*$),d=(p+=M*(5*V))>>>13,p&=8191,p+=E*(5*z),p+=T*(5*F),p+=D*(5*B),p+=O*(5*L),m=d+=(p+=P*(5*R))>>>13,m+=C*R,m+=A*N,m+=x*j,m+=S*I,d=(m+=M*(5*$))>>>13,m&=8191,m+=E*(5*V),m+=T*(5*z),m+=D*(5*F),m+=O*(5*B),v=d+=(m+=P*(5*L))>>>13,v+=C*L,v+=A*R,v+=x*N,v+=S*j,d=(v+=M*I)>>>13,v&=8191,v+=E*(5*$),v+=T*(5*V),v+=D*(5*z),v+=O*(5*F),g=d+=(v+=P*(5*B))>>>13,g+=C*B,g+=A*L,g+=x*R,g+=S*N,d=(g+=M*j)>>>13,g&=8191,g+=E*I,g+=T*(5*$),g+=D*(5*V),g+=O*(5*z),b=d+=(g+=P*(5*F))>>>13,b+=C*F,b+=A*B,b+=x*L,b+=S*R,d=(b+=M*N)>>>13,b&=8191,b+=E*j,b+=T*I,b+=D*(5*$),b+=O*(5*V),y=d+=(b+=P*(5*z))>>>13,y+=C*z,y+=A*F,y+=x*B,y+=S*L,d=(y+=M*R)>>>13,y&=8191,y+=E*N,y+=T*j,y+=D*I,y+=O*(5*$),k=d+=(y+=P*(5*V))>>>13,k+=C*V,k+=A*z,k+=x*F,k+=S*B,d=(k+=M*L)>>>13,k&=8191,k+=E*R,k+=T*N,k+=D*j,k+=O*I,w=d+=(k+=P*(5*$))>>>13,w+=C*$,w+=A*V,w+=x*z,w+=S*F,d=(w+=M*B)>>>13,w&=8191,w+=E*L,w+=T*R,w+=D*N,w+=O*j,C=f=8191&(d=(d=((d+=(w+=P*I)>>>13)<<2)+d|0)+(f&=8191)|0),A=h+=d>>>=13,x=p&=8191,S=m&=8191,M=v&=8191,E=g&=8191,T=b&=8191,D=y&=8191,O=k&=8191,P=w&=8191,t+=16,n-=16;this.h[0]=C,this.h[1]=A,this.h[2]=x,this.h[3]=S,this.h[4]=M,this.h[5]=E,this.h[6]=T,this.h[7]=D,this.h[8]=O,this.h[9]=P},x.prototype.finish=function(e,t){var n,r,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this.h[o]=this.h[o]&r|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},x.prototype.update=function(e,t,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r<i;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(i=n-n%16,this.blocks(e,t,i),t+=i,n-=i),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var Y=E,K=T,G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(e,t,n,r){for(var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_,C,A,x,S,M,E,T,D=new Int32Array(16),O=new Int32Array(16),P=e[0],I=e[1],j=e[2],N=e[3],R=e[4],L=e[5],B=e[6],F=e[7],z=t[0],V=t[1],$=t[2],H=t[3],U=t[4],q=t[5],W=t[6],Y=t[7],K=0;r>=128;){for(_=0;_<16;_++)C=8*_+K,D[_]=n[C+0]<<24|n[C+1]<<16|n[C+2]<<8|n[C+3],O[_]=n[C+4]<<24|n[C+5]<<16|n[C+6]<<8|n[C+7];for(_=0;_<80;_++)if(i=P,o=I,a=j,s=N,c=R,l=L,u=B,f=z,h=V,p=$,m=H,v=U,g=q,b=W,S=65535&(x=Y),M=x>>>16,E=65535&(A=F),T=A>>>16,S+=65535&(x=(U>>>14|R<<18)^(U>>>18|R<<14)^(R>>>9|U<<23)),M+=x>>>16,E+=65535&(A=(R>>>14|U<<18)^(R>>>18|U<<14)^(U>>>9|R<<23)),T+=A>>>16,S+=65535&(x=U&q^~U&W),M+=x>>>16,E+=65535&(A=R&L^~R&B),T+=A>>>16,S+=65535&(x=G[2*_+1]),M+=x>>>16,E+=65535&(A=G[2*_]),T+=A>>>16,A=D[_%16],M+=(x=O[_%16])>>>16,E+=65535&A,T+=A>>>16,E+=(M+=(S+=65535&x)>>>16)>>>16,S=65535&(x=w=65535&S|M<<16),M=x>>>16,E=65535&(A=k=65535&E|(T+=E>>>16)<<16),T=A>>>16,S+=65535&(x=(z>>>28|P<<4)^(P>>>2|z<<30)^(P>>>7|z<<25)),M+=x>>>16,E+=65535&(A=(P>>>28|z<<4)^(z>>>2|P<<30)^(z>>>7|P<<25)),T+=A>>>16,M+=(x=z&V^z&$^V&$)>>>16,E+=65535&(A=P&I^P&j^I&j),T+=A>>>16,d=65535&(E+=(M+=(S+=65535&x)>>>16)>>>16)|(T+=E>>>16)<<16,y=65535&S|M<<16,S=65535&(x=m),M=x>>>16,E=65535&(A=s),T=A>>>16,M+=(x=w)>>>16,E+=65535&(A=k),T+=A>>>16,I=i,j=o,N=a,R=s=65535&(E+=(M+=(S+=65535&x)>>>16)>>>16)|(T+=E>>>16)<<16,L=c,B=l,F=u,P=d,V=f,$=h,H=p,U=m=65535&S|M<<16,q=v,W=g,Y=b,z=y,_%16==15)for(C=0;C<16;C++)A=D[C],S=65535&(x=O[C]),M=x>>>16,E=65535&A,T=A>>>16,A=D[(C+9)%16],S+=65535&(x=O[(C+9)%16]),M+=x>>>16,E+=65535&A,T+=A>>>16,k=D[(C+1)%16],S+=65535&(x=((w=O[(C+1)%16])>>>1|k<<31)^(w>>>8|k<<24)^(w>>>7|k<<25)),M+=x>>>16,E+=65535&(A=(k>>>1|w<<31)^(k>>>8|w<<24)^k>>>7),T+=A>>>16,k=D[(C+14)%16],M+=(x=((w=O[(C+14)%16])>>>19|k<<13)^(k>>>29|w<<3)^(w>>>6|k<<26))>>>16,E+=65535&(A=(k>>>19|w<<13)^(w>>>29|k<<3)^k>>>6),T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,D[C]=65535&E|T<<16,O[C]=65535&S|M<<16;S=65535&(x=z),M=x>>>16,E=65535&(A=P),T=A>>>16,A=e[0],M+=(x=t[0])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[0]=P=65535&E|T<<16,t[0]=z=65535&S|M<<16,S=65535&(x=V),M=x>>>16,E=65535&(A=I),T=A>>>16,A=e[1],M+=(x=t[1])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[1]=I=65535&E|T<<16,t[1]=V=65535&S|M<<16,S=65535&(x=$),M=x>>>16,E=65535&(A=j),T=A>>>16,A=e[2],M+=(x=t[2])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[2]=j=65535&E|T<<16,t[2]=$=65535&S|M<<16,S=65535&(x=H),M=x>>>16,E=65535&(A=N),T=A>>>16,A=e[3],M+=(x=t[3])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[3]=N=65535&E|T<<16,t[3]=H=65535&S|M<<16,S=65535&(x=U),M=x>>>16,E=65535&(A=R),T=A>>>16,A=e[4],M+=(x=t[4])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[4]=R=65535&E|T<<16,t[4]=U=65535&S|M<<16,S=65535&(x=q),M=x>>>16,E=65535&(A=L),T=A>>>16,A=e[5],M+=(x=t[5])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[5]=L=65535&E|T<<16,t[5]=q=65535&S|M<<16,S=65535&(x=W),M=x>>>16,E=65535&(A=B),T=A>>>16,A=e[6],M+=(x=t[6])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[6]=B=65535&E|T<<16,t[6]=W=65535&S|M<<16,S=65535&(x=Y),M=x>>>16,E=65535&(A=F),T=A>>>16,A=e[7],M+=(x=t[7])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[7]=F=65535&E|T<<16,t[7]=Y=65535&S|M<<16,K+=128,r-=128}return r}function X(e,t,n){var r,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Q(i,o,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Q(i,o,a,n),r=0;r<8;r++)p(e,8*r,i[r],o[r]);return 0}function J(e,n){var r=t(),i=t(),o=t(),a=t(),s=t(),c=t(),l=t(),d=t(),f=t();B(r,e[1],e[0]),B(f,n[1],n[0]),F(r,r,f),L(i,e[0],e[1]),L(f,n[0],n[1]),F(i,i,f),F(o,e[3],n[3]),F(o,o,u),F(a,e[2],n[2]),L(a,a,a),B(s,i,r),B(c,a,o),L(l,a,o),L(d,i,r),F(e[0],s,c),F(e[1],d,l),F(e[2],l,c),F(e[3],s,d)}function Z(e,t,n){var r;for(r=0;r<4;r++)P(e[r],t[r],n)}function ee(e,n){var r=t(),i=t(),o=t();V(o,n[2]),F(r,n[0],o),F(i,n[1],o),I(e,i),e[31]^=N(r)<<7}function te(e,t,n){var r,i;for(D(e[0],a),D(e[1],s),D(e[2],s),D(e[3],a),i=255;i>=0;--i)Z(e,t,r=n[i/8|0]>>(7&i)&1),J(t,e),J(e,e),Z(e,t,r)}function ne(e,n){var r=[t(),t(),t(),t()];D(r[0],d),D(r[1],f),D(r[2],s),F(r[3],d,f),te(e,r,n)}function re(e,n,i){var o,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(i||r(n,32),X(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,ne(s,a),ee(e,s),o=0;o<32;o++)n[o+32]=e[o];return 0}var ie,oe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ae(e,t){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i<o;++i)t[i]+=n-16*t[r]*oe[i-(r-32)],n=t[i]+128>>8,t[i]-=256*n;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;i++)t[i]+=n-(t[31]>>4)*oe[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*oe[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function se(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ae(e,n)}function ce(e,n,r,i){var o,a,s=new Uint8Array(64),c=new Uint8Array(64),l=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];X(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(o=0;o<r;o++)e[64+o]=n[o];for(o=0;o<32;o++)e[32+o]=s[32+o];for(X(l,e.subarray(32),r+32),se(l),ne(d,l),ee(e,d),o=32;o<64;o++)e[o]=i[o];for(X(c,e,r+64),se(c),o=0;o<64;o++)u[o]=0;for(o=0;o<32;o++)u[o]=l[o];for(o=0;o<32;o++)for(a=0;a<32;a++)u[o+a]+=c[o]*s[a];return ae(e.subarray(32),u),f}function le(e,n,r,i){var o,c=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],f=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),i=t(),o=t(),c=t(),u=t(),d=t(),f=t();return D(e[2],s),R(e[1],n),z(o,e[1]),F(c,o,l),B(o,o,e[2]),L(c,e[2],c),z(u,c),z(d,u),F(f,d,u),F(r,f,o),F(r,r,c),$(r,r),F(r,r,o),F(r,r,c),F(r,r,c),F(e[0],r,c),z(i,e[0]),F(i,i,c),j(i,o)&&F(e[0],e[0],h),z(i,e[0]),F(i,i,c),j(i,o)?-1:(N(e[0])===n[31]>>7&&B(e[0],a,e[0]),F(e[3],e[0],e[1]),0)}(f,i))return-1;for(o=0;o<r;o++)e[o]=n[o];for(o=0;o<32;o++)e[o+32]=i[o];if(X(u,e,r),se(u),te(d,f,u),ne(f,n.subarray(32)),J(d,f),ee(c,d),r-=64,g(n,0,c,0)){for(o=0;o<r;o++)e[o]=0;return-1}for(o=0;o<r;o++)e[o]=n[o+64];return r}function ue(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function de(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function fe(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:y,crypto_stream_xor:A,crypto_stream:C,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:_,crypto_onetimeauth:S,crypto_onetimeauth_verify:M,crypto_verify_16:v,crypto_verify_32:g,crypto_secretbox:E,crypto_secretbox_open:T,crypto_scalarmult:H,crypto_scalarmult_base:U,crypto_box_beforenm:W,crypto_box_afternm:Y,crypto_box:function(e,t,n,r,i,o){var a=new Uint8Array(32);return W(a,i,o),Y(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,i,o){var a=new Uint8Array(32);return W(a,i,o),K(e,t,n,r,a)},crypto_box_keypair:q,crypto_hash:X,crypto_sign:ce,crypto_sign_keypair:re,crypto_sign_open:le,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:64,crypto_sign_PUBLICKEYBYTES:32,crypto_sign_SECRETKEYBYTES:64,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:l,L:oe,pack25519:I,unpack25519:R,M:F,A:L,S:z,Z:B,pow2523:$,add:J,set25519:D,modL:ae,scalarmult:te,scalarbase:ne},e.randomBytes=function(e){var t=new Uint8Array(e);return r(t,e),t},e.secretbox=function(e,t,n){de(e,t,n),ue(n,t);for(var r=new Uint8Array(32+e.length),i=new Uint8Array(r.length),o=0;o<e.length;o++)r[o+32]=e[o];return E(i,r,r.length,t,n),i.subarray(16)},e.secretbox.open=function(e,t,n){de(e,t,n),ue(n,t);for(var r=new Uint8Array(16+e.length),i=new Uint8Array(r.length),o=0;o<e.length;o++)r[o+16]=e[o];return r.length<32||0!==T(i,r,r.length,t,n)?null:i.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=16,e.scalarMult=function(e,t){if(de(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return H(n,e,t),n},e.scalarMult.base=function(e){if(de(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return U(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,i){var o=e.box.before(r,i);return e.secretbox(t,n,o)},e.box.before=function(e,t){de(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return W(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,i){var o=e.box.before(r,i);return e.secretbox.open(t,n,o)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return q(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(de(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return U(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(de(e,t),64!==t.length)throw new Error("bad secret key size");var n=new Uint8Array(64+e.length);return ce(n,e,e.length,t),n},e.sign.open=function(e,t){if(de(e,t),32!==t.length)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=le(n,e,e.length,t);if(r<0)return null;for(var i=new Uint8Array(r),o=0;o<i.length;o++)i[o]=n[o];return i},e.sign.detached=function(t,n){for(var r=e.sign(t,n),i=new Uint8Array(64),o=0;o<i.length;o++)i[o]=r[o];return i},e.sign.detached.verify=function(e,t,n){if(de(e,t,n),64!==t.length)throw new Error("bad signature size");if(32!==n.length)throw new Error("bad public key size");var r,i=new Uint8Array(64+e.length),o=new Uint8Array(64+e.length);for(r=0;r<64;r++)i[r]=t[r];for(r=0;r<e.length;r++)i[r+64]=e[r];return le(o,i,i.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(de(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(de(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(32),n=new Uint8Array(64),r=0;r<32;r++)n[r]=e[r];return re(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=32,e.sign.secretKeyLength=64,e.sign.seedLength=32,e.sign.signatureLength=64,e.hash=function(e){de(e);var t=new Uint8Array(64);return X(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return de(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===m(e,0,t,0,e.length)},e.setPRNG=function(e){r=e},(ie="undefined"!=typeof self?self.crypto||self.msCrypto:null)&&ie.getRandomValues?e.setPRNG((function(e,t){var n,r=new Uint8Array(t);for(n=0;n<t;n+=65536)ie.getRandomValues(r.subarray(n,n+Math.min(t-n,65536)));for(n=0;n<t;n++)e[n]=r[n];fe(r)})):(ie=n(3))&&ie.randomBytes&&e.setPRNG((function(e,t){var n,r=ie.randomBytes(t);for(n=0;n<t;n++)e[n]=r[n];fe(r)}))}(e.exports?e.exports:self.nacl=self.nacl||{})},function(e,n,r){!function(t,n){"use strict";e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(this,(function(){"use strict";var e={};function n(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"==typeof atob?void 0!==t.from?(e.encodeBase64=function(e){return t.from(e).toString("base64")},e.decodeBase64=function(e){return n(e),new Uint8Array(Array.prototype.slice.call(t.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new t(e).toString("base64")},e.decodeBase64=function(e){return n(e),new Uint8Array(Array.prototype.slice.call(new t(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){n(e);var t,r=atob(e),i=new Uint8Array(r.length);for(t=0;t<r.length;t++)i[t]=r.charCodeAt(t);return i}),e}))},function(e,t,n){e.exports=n(4).default},function(e,t){},function(e,t,n){"use strict";n.r(t);for(var r=function(){function e(e,t){this.lastId=0,this.prefix=e,this.name=t}return e.prototype.create=function(e){this.lastId++;var t=this.lastId,n=this.prefix+t,r=this.name+"["+t+"]",i=!1,o=function(){i||(e.apply(null,arguments),i=!0)};return this[t]=o,{number:t,id:n,name:r,callback:o}},e.prototype.remove=function(e){delete this[e.number]},e}(),i=new r("_pusher_script_","Pusher.ScriptReceivers"),o={VERSION:"5.1.1",PROTOCOL:7,host:"ws.pusherapp.com",ws_port:80,wss_port:443,ws_path:"",sockjs_host:"sockjs.pusher.com",sockjs_http_port:80,sockjs_https_port:443,sockjs_path:"/pusher",stats_host:"stats.pusher.com",channel_auth_endpoint:"/pusher/auth",channel_auth_transport:"ajax",activity_timeout:12e4,pong_timeout:3e4,unavailable_timeout:1e4,cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},a=function(){function e(e){this.options=e,this.receivers=e.receivers||i,this.loading={}}return e.prototype.load=function(e,t,n){var r=this;if(r.loading[e]&&r.loading[e].length>0)r.loading[e].push(n);else{r.loading[e]=[n];var i=kt.createScriptRequest(r.getPath(e,t)),o=r.receivers.create((function(t){if(r.receivers.remove(o),r.loading[e]){var n=r.loading[e];delete r.loading[e];for(var a=function(e){e||i.cleanup()},s=0;s<n.length;s++)n[s](t,a)}}));i.send(o)}},e.prototype.getRoot=function(e){var t=kt.getDocument().location.protocol;return(e&&e.useTLS||"https:"===t?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version},e.prototype.getPath=function(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"},e}(),s=new r("_pusher_dependencies","Pusher.DependenciesReceivers"),c=new a({cdn_http:o.cdn_http,cdn_https:o.cdn_https,version:o.VERSION,suffix:o.dependency_suffix,receivers:s}),l=String.fromCharCode,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d={},f=0,h=u.length;f<h;f++)d[u.charAt(f)]=f;var p,m=function(e){var t=e.charCodeAt(0);return t<128?e:t<2048?l(192|t>>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t)},v=function(e){return e.replace(/[^\x00-\x7F]/g,m)},g=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[u.charAt(n>>>18),u.charAt(n>>>12&63),t>=2?"=":u.charAt(n>>>6&63),t>=1?"=":u.charAt(63&n)].join("")},b=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,g)},y=function(){function e(e,t,n,r){var i=this;this.clear=t,this.timer=e((function(){i.timer&&(i.timer=r(i.timer))}),n)}return e.prototype.isRunning=function(){return null!==this.timer},e.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},e}(),k=(p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function w(e){window.clearTimeout(e)}function _(e){window.clearInterval(e)}var C=function(e){function t(t,n){return e.call(this,setTimeout,w,t,(function(e){return n(),null}))||this}return k(t,e),t}(y),A=function(e){function t(t,n){return e.call(this,setInterval,_,t,(function(e){return n(),e}))||this}return k(t,e),t}(y),x={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(e){return new C(0,e)},method:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1);return function(t){return t[e].apply(t,r.concat(arguments))}}};function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var i=t[r];for(var o in i)i[o]&&i[o].constructor&&i[o].constructor===Object?e[o]=S(e[o]||{},i[o]):e[o]=i[o]}return e}function M(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?e.push(arguments[t]):e.push(B(arguments[t]));return e.join(" : ")}function E(e,t){var n=Array.prototype.indexOf;if(null===e)return-1;if(n&&e.indexOf===n)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}function T(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n,e)}function D(e){var t=[];return T(e,(function(e,n){t.push(n)})),t}function O(e,t,n){for(var r=0;r<e.length;r++)t.call(n||window,e[r],r,e)}function P(e,t){for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r,e,n));return n}function I(e,t){t=t||function(e){return!!e};for(var n=[],r=0;r<e.length;r++)t(e[r],r,e,n)&&n.push(e[r]);return n}function j(e,t){var n={};return T(e,(function(r,i){(t&&t(r,i,e,n)||Boolean(r))&&(n[i]=r)})),n}function N(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return!0;return!1}function R(e){return t=function(e){return"object"==typeof e&&(e=B(e)),encodeURIComponent((t=e.toString(),b(v(t))));var t},n={},T(e,(function(e,r){n[r]=t(e)})),n;var t,n}function L(e){var t,n,r=j(e,(function(e){return void 0!==e}));return P((t=R(r),n=[],T(t,(function(e,t){n.push([t,e])})),n),x.method("join","=")).join("&")}function B(e){try{return JSON.stringify(e)}catch(r){return JSON.stringify((t=[],n=[],function e(r,i){var o,a,s;switch(typeof r){case"object":if(!r)return null;for(o=0;o<t.length;o+=1)if(t[o]===r)return{$ref:n[o]};if(t.push(r),n.push(i),"[object Array]"===Object.prototype.toString.apply(r))for(s=[],o=0;o<r.length;o+=1)s[o]=e(r[o],i+"["+o+"]");else for(a in s={},r)Object.prototype.hasOwnProperty.call(r,a)&&(s[a]=e(r[a],i+"["+JSON.stringify(a)+"]"));return s;case"number":case"string":case"boolean":return r}}(e,"$")))}var t,n}var F=new(function(){function e(){this.globalLog=function(e){window.console&&window.console.log&&window.console.log(e)}}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(this.globalLog,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(this.globalLogWarn,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(this.globalLogError,e)},e.prototype.globalLogWarn=function(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)},e.prototype.globalLogError=function(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)},e.prototype.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=M.apply(this,arguments);if(Tt.log)Tt.log(r);else if(Tt.logToConsole){var i=e.bind(this);i(r)}},e}()),z={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/authenticating_users"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"}}},V=function(e){var t,n=z.urls[e];return n?(n.fullUrl?t=n.fullUrl:n.path&&(t=z.baseUrl+n.path),t?"See: "+t:""):""},$=function(e,t,n){var r,i=this;for(var o in(r=kt.createXHR()).open("POST",i.options.authEndpoint,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this.authOptions.headers)r.setRequestHeader(o,this.authOptions.headers[o]);return r.onreadystatechange=function(){if(4===r.readyState)if(200===r.status){var e,t=!1;try{e=JSON.parse(r.responseText),t=!0}catch(e){n(!0,"JSON returned from auth endpoint was invalid, yet status code was 200. Data was: "+r.responseText)}t&&n(!1,e)}else{var o=V("authenticationEndpoint");F.error("Unable to retrieve auth string from auth endpoint - received status "+r.status+" from "+i.options.authEndpoint+". Clients must be authenticated to join private or presence channels. "+o),n(!0,r.status)}},r.send(this.composeQuery(t)),r},H=function(e,t,n){void 0!==this.authOptions.headers&&F.warn("To send headers with the auth request, you must use AJAX, rather than JSONP.");var r=e.nextAuthCallbackID.toString();e.nextAuthCallbackID++;var i=e.getDocument(),o=i.createElement("script");e.auth_callbacks[r]=function(e){n(!1,e)};var a="Pusher.auth_callbacks['"+r+"']";o.src=this.options.authEndpoint+"?callback="+encodeURIComponent(a)+"&"+this.composeQuery(t);var s=i.getElementsByTagName("head")[0]||i.documentElement;s.insertBefore(o,s.firstChild)},U=function(){function e(e){this.src=e}return e.prototype.send=function(e){var t=this,n="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(n)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){"loaded"!==t.script.readyState&&"complete"!==t.script.readyState||e.callback(null)},void 0===t.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+n+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var r=document.getElementsByTagName("head")[0];r.insertBefore(t.script,r.firstChild),t.errorScript&&r.insertBefore(t.errorScript,t.script.nextSibling)},e.prototype.cleanup=function(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null},e}(),q=function(){function e(e,t){this.url=e,this.data=t}return e.prototype.send=function(e){if(!this.request){var t=L(this.data),n=this.url+"/"+e.number+"?"+t;this.request=kt.createScriptRequest(n),this.request.send(e)}},e.prototype.cleanup=function(){this.request&&this.request.cleanup()},e}(),W={name:"jsonp",getAgent:function(e,t){return function(n,r){var o="http"+(t?"s":"")+"://"+(e.host||e.options.host)+e.options.path,a=kt.createJSONPRequest(o,n),s=kt.ScriptReceivers.create((function(t,n){i.remove(s),a.cleanup(),n&&n.host&&(e.host=n.host),r&&r(t,n)}));a.send(s)}}};function Y(e,t,n){return e+(t.useTLS?"s":"")+"://"+(t.useTLS?t.hostTLS:t.hostNonTLS)+n}function K(e,t){return"/app/"+e+"?protocol="+o.PROTOCOL+"&client=js&version="+o.VERSION+(t?"&"+t:"")}var G={getInitial:function(e,t){return Y("ws",t,(t.httpPath||"")+K(e,"flash=false"))}},Q={getInitial:function(e,t){return Y("http",t,(t.httpPath||"/pusher")+K(e))}},X={getInitial:function(e,t){return Y("http",t,t.httpPath||"/pusher")},getPath:function(e,t){return K(e)}},J=function(){function e(){this._callbacks={}}return e.prototype.get=function(e){return this._callbacks[Z(e)]},e.prototype.add=function(e,t,n){var r=Z(e);this._callbacks[r]=this._callbacks[r]||[],this._callbacks[r].push({fn:t,context:n})},e.prototype.remove=function(e,t,n){if(e||t||n){var r=e?[Z(e)]:D(this._callbacks);t||n?this.removeCallback(r,t,n):this.removeAllCallbacks(r)}else this._callbacks={}},e.prototype.removeCallback=function(e,t,n){O(e,(function(e){this._callbacks[e]=I(this._callbacks[e]||[],(function(e){return t&&t!==e.fn||n&&n!==e.context})),0===this._callbacks[e].length&&delete this._callbacks[e]}),this)},e.prototype.removeAllCallbacks=function(e){O(e,(function(e){delete this._callbacks[e]}),this)},e}();function Z(e){return"_"+e}var ee=function(){function e(e){this.callbacks=new J,this.global_callbacks=[],this.failThrough=e}return e.prototype.bind=function(e,t,n){return this.callbacks.add(e,t,n),this},e.prototype.bind_global=function(e){return this.global_callbacks.push(e),this},e.prototype.unbind=function(e,t,n){return this.callbacks.remove(e,t,n),this},e.prototype.unbind_global=function(e){return e?(this.global_callbacks=I(this.global_callbacks||[],(function(t){return t!==e})),this):(this.global_callbacks=[],this)},e.prototype.unbind_all=function(){return this.unbind(),this.unbind_global(),this},e.prototype.emit=function(e,t,n){for(var r=0;r<this.global_callbacks.length;r++)this.global_callbacks[r](e,t);var i=this.callbacks.get(e),o=[];if(n?o.push(t,n):t&&o.push(t),i&&i.length>0)for(r=0;r<i.length;r++)i[r].fn.apply(i[r].context||window,o);else this.failThrough&&this.failThrough(e,t);return this},e}(),te=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ne=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a.initialize=kt.transportConnectionInitializer,a.hooks=t,a.name=n,a.priority=r,a.key=i,a.options=o,a.state="new",a.timeline=o.timeline,a.activityTimeout=o.activityTimeout,a.id=a.timeline.generateUniqueID(),a}return te(t,e),t.prototype.handlesActivityChecks=function(){return Boolean(this.hooks.handlesActivityChecks)},t.prototype.supportsPing=function(){return Boolean(this.hooks.supportsPing)},t.prototype.connect=function(){var e=this;if(this.socket||"initialized"!==this.state)return!1;var t=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(t,this.options)}catch(t){return x.defer((function(){e.onError(t),e.changeState("closed")})),!1}return this.bindListeners(),F.debug("Connecting",{transport:this.name,url:t}),this.changeState("connecting"),!0},t.prototype.close=function(){return!!this.socket&&(this.socket.close(),!0)},t.prototype.send=function(e){var t=this;return"open"===this.state&&(x.defer((function(){t.socket&&t.socket.send(e)})),!0)},t.prototype.ping=function(){"open"===this.state&&this.supportsPing()&&this.socket.ping()},t.prototype.onOpen=function(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0},t.prototype.onError=function(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))},t.prototype.onClose=function(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0},t.prototype.onMessage=function(e){this.emit("message",e)},t.prototype.onActivity=function(){this.emit("activity")},t.prototype.bindListeners=function(){var e=this;this.socket.onopen=function(){e.onOpen()},this.socket.onerror=function(t){e.onError(t)},this.socket.onclose=function(t){e.onClose(t)},this.socket.onmessage=function(t){e.onMessage(t)},this.supportsPing()&&(this.socket.onactivity=function(){e.onActivity()})},t.prototype.unbindListeners=function(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))},t.prototype.changeState=function(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)},t.prototype.buildTimelineMessage=function(e){return S({cid:this.id},e)},t}(ee),re=function(){function e(e){this.hooks=e}return e.prototype.isSupported=function(e){return this.hooks.isSupported(e)},e.prototype.createConnection=function(e,t,n,r){return new ne(this.hooks,e,t,n,r)},e}(),ie=new re({urls:G,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(kt.getWebSocketAPI())},isSupported:function(){return Boolean(kt.getWebSocketAPI())},getSocket:function(e){return kt.createWebSocket(e)}}),oe={urls:Q,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},ae=S({getSocket:function(e){return kt.HTTPFactory.createStreamingSocket(e)}},oe),se=S({getSocket:function(e){return kt.HTTPFactory.createPollingSocket(e)}},oe),ce={isSupported:function(){return kt.isXHRSupported()}},le={ws:ie,xhr_streaming:new re(S({},ae,ce)),xhr_polling:new re(S({},se,ce))},ue=new re({file:"sockjs",urls:X,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(e,t){return new window.SockJS(e,null,{js_path:c.getPath("sockjs",{useTLS:t.useTLS}),ignore_null_origin:t.ignoreNullOrigin})},beforeOpen:function(e,t){e.send(JSON.stringify({path:t}))}}),de={isSupported:function(e){return kt.isXDRSupported(e.useTLS)}},fe=new re(S({},ae,de)),he=new re(S({},se,de));le.xdr_streaming=fe,le.xdr_polling=he,le.sockjs=ue;var pe=le,me=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ve=new(function(e){function t(){var t=e.call(this)||this,n=t;return void 0!==window.addEventListener&&(window.addEventListener("online",(function(){n.emit("online")}),!1),window.addEventListener("offline",(function(){n.emit("offline")}),!1)),t}return me(t,e),t.prototype.isOnline=function(){return void 0===window.navigator.onLine||window.navigator.onLine},t}(ee)),ge=function(){function e(e,t,n){this.manager=e,this.transport=t,this.minPingDelay=n.minPingDelay,this.maxPingDelay=n.maxPingDelay,this.pingDelay=void 0}return e.prototype.createConnection=function(e,t,n,r){var i=this;r=S({},r,{activityTimeout:this.pingDelay});var o=this.transport.createConnection(e,t,n,r),a=null,s=function(){o.unbind("open",s),o.bind("closed",c),a=x.now()},c=function(e){if(o.unbind("closed",c),1002===e.code||1003===e.code)i.manager.reportDeath();else if(!e.wasClean&&a){var t=x.now()-a;t<2*i.maxPingDelay&&(i.manager.reportDeath(),i.pingDelay=Math.max(t/2,i.minPingDelay))}};return o.bind("open",s),o},e.prototype.isSupported=function(e){return this.manager.isAlive()&&this.transport.isSupported(e)},e}(),be={decodeMessage:function(e){try{var t=JSON.parse(e.data),n=t.data;if("string"==typeof n)try{n=JSON.parse(t.data)}catch(e){}var r={event:t.event,channel:t.channel,data:n};return t.user_id&&(r.user_id=t.user_id),r}catch(t){throw{type:"MessageParseError",error:t,data:e.data}}},encodeMessage:function(e){return JSON.stringify(e)},processHandshake:function(e){var t=be.decodeMessage(e);if("pusher:connection_established"===t.event){if(!t.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:t.data.socket_id,activityTimeout:1e3*t.data.activity_timeout}}if("pusher:error"===t.event)return{action:this.getCloseAction(t.data),error:this.getCloseError(t.data)};throw"Invalid handshake"},getCloseAction:function(e){return e.code<4e3?e.code>=1002&&e.code<=1004?"backoff":null:4e3===e.code?"tls_only":e.code<4100?"refused":e.code<4200?"backoff":e.code<4300?"retry":"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}},ye=be,ke=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),we=function(e){function t(t,n){var r=e.call(this)||this;return r.id=t,r.transport=n,r.activityTimeout=n.activityTimeout,r.bindListeners(),r}return ke(t,e),t.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},t.prototype.send=function(e){return this.transport.send(e)},t.prototype.send_event=function(e,t,n){var r={event:e,data:t};return n&&(r.channel=n),F.debug("Event sent",r),this.send(ye.encodeMessage(r))},t.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},t.prototype.close=function(){this.transport.close()},t.prototype.bindListeners=function(){var e=this,t={message:function(t){var n;try{n=ye.decodeMessage(t)}catch(n){e.emit("error",{type:"MessageParseError",error:n,data:t.data})}if(void 0!==n){switch(F.debug("Event recd",n),n.event){case"pusher:error":e.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":e.emit("ping");break;case"pusher:pong":e.emit("pong")}e.emit("message",n)}},activity:function(){e.emit("activity")},error:function(t){e.emit("error",{type:"WebSocketError",error:t})},closed:function(t){n(),t&&t.code&&e.handleCloseEvent(t),e.transport=null,e.emit("closed")}},n=function(){T(t,(function(t,n){e.transport.unbind(n,t)}))};T(t,(function(t,n){e.transport.bind(n,t)}))},t.prototype.handleCloseEvent=function(e){var t=ye.getCloseAction(e),n=ye.getCloseError(e);n&&this.emit("error",n),t&&this.emit(t,{action:t,error:n})},t}(ee),_e=function(){function e(e,t){this.transport=e,this.callback=t,this.bindListeners()}return e.prototype.close=function(){this.unbindListeners(),this.transport.close()},e.prototype.bindListeners=function(){var e=this;this.onMessage=function(t){var n;e.unbindListeners();try{n=ye.processHandshake(t)}catch(t){return e.finish("error",{error:t}),void e.transport.close()}"connected"===n.action?e.finish("connected",{connection:new we(n.id,e.transport),activityTimeout:n.activityTimeout}):(e.finish(n.action,{error:n.error}),e.transport.close())},this.onClosed=function(t){e.unbindListeners();var n=ye.getCloseAction(t)||"backoff",r=ye.getCloseError(t);e.finish(n,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},e.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},e.prototype.finish=function(e,t){this.callback(S({transport:this.transport,action:e},t))},e}(),Ce=function(){function e(e,t){this.channel=e;var n=t.authTransport;if(void 0===kt.getAuthorizers()[n])throw"'"+n+"' is not a recognized auth transport";this.type=n,this.options=t,this.authOptions=(t||{}).auth||{}}return e.prototype.composeQuery=function(e){var t="socket_id="+encodeURIComponent(e)+"&channel_name="+encodeURIComponent(this.channel.name);for(var n in this.authOptions.params)t+="&"+encodeURIComponent(n)+"="+encodeURIComponent(this.authOptions.params[n]);return t},e.prototype.authorize=function(t,n){e.authorizers=e.authorizers||kt.getAuthorizers(),e.authorizers[this.type].call(this,kt,t,n)},e}(),Ae=function(){function e(e,t){this.timeline=e,this.options=t||{}}return e.prototype.send=function(e,t){this.timeline.isEmpty()||this.timeline.send(kt.TimelineTransport.getAgent(this,e),t)},e}(),xe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Se=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),Me=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),Ee=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),Te=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),De=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),Oe=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),Pe=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),Ie=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),je=function(e){function t(t,n){var r=e.call(this,(function(e,n){F.debug("No callbacks on "+t+" for "+e)}))||this;return r.name=t,r.pusher=n,r.subscribed=!1,r.subscriptionPending=!1,r.subscriptionCancelled=!1,r}return Ie(t,e),t.prototype.authorize=function(e,t){return t(!1,{auth:""})},t.prototype.trigger=function(e,t){if(0!==e.indexOf("client-"))throw new Se("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var n=V("triggeringClientEvents");F.warn("Client event triggered before channel 'subscription_succeeded' event . "+n)}return this.pusher.send_event(e,t,this.name)},t.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},t.prototype.handleEvent=function(e){var t=e.event,n=e.data;"pusher_internal:subscription_succeeded"===t?this.handleSubscriptionSucceededEvent(e):0!==t.indexOf("pusher_internal:")&&this.emit(t,n,{})},t.prototype.handleSubscriptionSucceededEvent=function(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)},t.prototype.subscribe=function(){var e=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(function(t,n){t?(F.error(n),e.emit("pusher:subscription_error",n)):(n=n,e.pusher.send_event("pusher:subscribe",{auth:n.auth,channel_data:n.channel_data,channel:e.name}))})))},t.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},t.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},t.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},t}(ee),Ne=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ne(t,e),t.prototype.authorize=function(e,t){return Ye.createAuthorizer(this,this.pusher.config).authorize(e,t)},t}(je),Le=function(){function e(){this.reset()}return e.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null},e.prototype.each=function(e){var t=this;T(this.members,(function(n,r){e(t.get(r))}))},e.prototype.setMyID=function(e){this.myID=e},e.prototype.onSubscription=function(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)},e.prototype.addMember=function(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)},e.prototype.removeMember=function(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t},e.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},e}(),Be=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.members=new Le,r}return Be(t,e),t.prototype.authorize=function(t,n){var r=this;e.prototype.authorize.call(this,t,(function(e,t){if(!e){if(void 0===(t=t).channel_data){var i=V("authenticationEndpoint");return F.error("Invalid auth response for channel '"+r.name+"',expected 'channel_data' field. "+i),void n("Invalid auth response")}var o=JSON.parse(t.channel_data);r.members.setMyID(o.user_id)}n(e,t)}))},t.prototype.handleEvent=function(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var n=e.data,r={};e.user_id&&(r.user_id=e.user_id),this.emit(t,n,r)}},t.prototype.handleInternalEvent=function(e){var t=e.event,n=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:member_added":var r=this.members.addMember(n);this.emit("pusher:member_added",r);break;case"pusher_internal:member_removed":var i=this.members.removeMember(n);i&&this.emit("pusher:member_removed",i)}},t.prototype.handleSubscriptionSucceededEvent=function(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))},t.prototype.disconnect=function(){this.members.reset(),e.prototype.disconnect.call(this)},t}(Re),ze=n(0),Ve=n(1),$e=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),He=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.key=null,t}return $e(t,e),t.prototype.authorize=function(t,n){var r=this;e.prototype.authorize.call(this,t,(function(e,t){if(e)n(!0,t);else{var i=t.shared_secret;if(i)r.key=Object(Ve.decodeBase64)(i),delete t.shared_secret,n(!1,t);else{var o="No shared_secret key in auth payload for encrypted channel: "+r.name;n(!0,o)}}}))},t.prototype.trigger=function(e,t){throw new De("Client events are not currently supported for encrypted channels")},t.prototype.handleEvent=function(t){var n=t.event,r=t.data;0!==n.indexOf("pusher_internal:")&&0!==n.indexOf("pusher:")?this.handleEncryptedEvent(n,r):e.prototype.handleEvent.call(this,t)},t.prototype.handleEncryptedEvent=function(e,t){var n=this;if(this.key)if(t.ciphertext&&t.nonce){var r=Object(Ve.decodeBase64)(t.ciphertext);if(r.length<ze.secretbox.overheadLength)F.error("Expected encrypted event ciphertext length to be "+ze.secretbox.overheadLength+", got: "+r.length);else{var i=Object(Ve.decodeBase64)(t.nonce);if(i.length<ze.secretbox.nonceLength)F.error("Expected encrypted event nonce length to be "+ze.secretbox.nonceLength+", got: "+i.length);else{var o=ze.secretbox.open(r,i,this.key);if(null===o)return F.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,(function(t,a){t?F.error("Failed to make a request to the authEndpoint: "+a+". Unable to fetch new key, so dropping encrypted event"):null!==(o=ze.secretbox.open(r,i,n.key))?n.emitJSON(e,Object(Ve.encodeUTF8)(o)):F.error("Failed to decrypt event with new key. Dropping encrypted event")}));this.emitJSON(e,Object(Ve.encodeUTF8)(o))}}}else F.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);else F.debug("Received encrypted event before key has been retrieved from the authEndpoint")},t.prototype.emitJSON=function(e,t){try{this.emit(e,JSON.parse(t))}catch(n){this.emit(e,t)}return this},t}(Re),Ue=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qe=function(e){function t(t,n){var r=e.call(this)||this;r.key=t,r.options=n||{},r.state="initialized",r.connection=null,r.usingTLS=!!n.useTLS,r.timeline=r.options.timeline,r.errorCallbacks=r.buildErrorCallbacks(),r.connectionCallbacks=r.buildConnectionCallbacks(r.errorCallbacks),r.handshakeCallbacks=r.buildHandshakeCallbacks(r.errorCallbacks);var i=kt.getNetwork();return i.bind("online",(function(){r.timeline.info({netinfo:"online"}),"connecting"!==r.state&&"unavailable"!==r.state||r.retryIn(0)})),i.bind("offline",(function(){r.timeline.info({netinfo:"offline"}),r.connection&&r.sendActivityCheck()})),r.updateStrategy(),r}return Ue(t,e),t.prototype.connect=function(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))},t.prototype.send=function(e){return!!this.connection&&this.connection.send(e)},t.prototype.send_event=function(e,t,n){return!!this.connection&&this.connection.send_event(e,t,n)},t.prototype.disconnect=function(){this.disconnectInternally(),this.updateState("disconnected")},t.prototype.isUsingTLS=function(){return this.usingTLS},t.prototype.startConnecting=function(){var e=this,t=function(n,r){n?e.runner=e.strategy.connect(0,t):"error"===r.action?(e.emit("error",{type:"HandshakeError",error:r.error}),e.timeline.error({handshakeError:r.error})):(e.abortConnecting(),e.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,t)},t.prototype.abortConnecting=function(){this.runner&&(this.runner.abort(),this.runner=null)},t.prototype.disconnectInternally=function(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()},t.prototype.updateStrategy=function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})},t.prototype.retryIn=function(e){var t=this;this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new C(e||0,(function(){t.disconnectInternally(),t.connect()}))},t.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},t.prototype.setUnavailableTimer=function(){var e=this;this.unavailableTimer=new C(this.options.unavailableTimeout,(function(){e.updateState("unavailable")}))},t.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},t.prototype.sendActivityCheck=function(){var e=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new C(this.options.pongTimeout,(function(){e.timeline.error({pong_timed_out:e.options.pongTimeout}),e.retryIn(0)}))},t.prototype.resetActivityCheck=function(){var e=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new C(this.activityTimeout,(function(){e.sendActivityCheck()})))},t.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},t.prototype.buildConnectionCallbacks=function(e){var t=this;return S({},e,{message:function(e){t.resetActivityCheck(),t.emit("message",e)},ping:function(){t.send_event("pusher:pong",{})},activity:function(){t.resetActivityCheck()},error:function(e){t.emit("error",{type:"WebSocketError",error:e})},closed:function(){t.abandonConnection(),t.shouldRetry()&&t.retryIn(1e3)}})},t.prototype.buildHandshakeCallbacks=function(e){var t=this;return S({},e,{connected:function(e){t.activityTimeout=Math.min(t.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),t.clearUnavailableTimer(),t.setConnection(e.connection),t.socket_id=t.connection.id,t.updateState("connected",{socket_id:t.socket_id})}})},t.prototype.buildErrorCallbacks=function(){var e=this,t=function(t){return function(n){n.error&&e.emit("error",{type:"WebSocketError",error:n.error}),t(n)}};return{tls_only:t((function(){e.usingTLS=!0,e.updateStrategy(),e.retryIn(0)})),refused:t((function(){e.disconnect()})),backoff:t((function(){e.retryIn(1e3)})),retry:t((function(){e.retryIn(0)}))}},t.prototype.setConnection=function(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()},t.prototype.abandonConnection=function(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}},t.prototype.updateState=function(e,t){var n=this.state;if(this.state=e,n!==e){var r=e;"connected"===r&&(r+=" with new socket ID "+t.socket_id),F.debug("State changed",n+" -> "+r),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:n,current:e}),this.emit(e,t)}},t.prototype.shouldRetry=function(){return"connecting"===this.state||"connected"===this.state},t}(ee),We=function(){function e(){this.channels={}}return e.prototype.add=function(e,t){return this.channels[e]||(this.channels[e]=function(e,t){return 0===e.indexOf("private-encrypted-")?Ye.createEncryptedChannel(e,t):0===e.indexOf("private-")?Ye.createPrivateChannel(e,t):0===e.indexOf("presence-")?Ye.createPresenceChannel(e,t):Ye.createChannel(e,t)}(e,t)),this.channels[e]},e.prototype.all=function(){return function(e){var t=[];return T(e,(function(e){t.push(e)})),t}(this.channels)},e.prototype.find=function(e){return this.channels[e]},e.prototype.remove=function(e){var t=this.channels[e];return delete this.channels[e],t},e.prototype.disconnect=function(){T(this.channels,(function(e){e.disconnect()}))},e}(),Ye={createChannels:function(){return new We},createConnectionManager:function(e,t){return new qe(e,t)},createChannel:function(e,t){return new je(e,t)},createPrivateChannel:function(e,t){return new Re(e,t)},createPresenceChannel:function(e,t){return new Fe(e,t)},createEncryptedChannel:function(e,t){return new He(e,t)},createTimelineSender:function(e,t){return new Ae(e,t)},createAuthorizer:function(e,t){return t.authorizer?t.authorizer(e,t):new Ce(e,t)},createHandshake:function(e,t){return new _e(e,t)},createAssistantToTheTransportManager:function(e,t,n){return new ge(e,t,n)}},Ke=function(){function e(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}return e.prototype.getAssistant=function(e){return Ye.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},e.prototype.isAlive=function(){return this.livesLeft>0},e.prototype.reportDeath=function(){this.livesLeft-=1},e}(),Ge=function(){function e(e,t){this.strategies=e,this.loop=Boolean(t.loop),this.failFast=Boolean(t.failFast),this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}return e.prototype.isSupported=function(){return N(this.strategies,x.method("isSupported"))},e.prototype.connect=function(e,t){var n=this,r=this.strategies,i=0,o=this.timeout,a=null,s=function(c,l){l?t(null,l):(i+=1,n.loop&&(i%=r.length),i<r.length?(o&&(o*=2,n.timeoutLimit&&(o=Math.min(o,n.timeoutLimit))),a=n.tryStrategy(r[i],e,{timeout:o,failFast:n.failFast},s)):t(!0))};return a=this.tryStrategy(r[i],e,{timeout:o,failFast:this.failFast},s),{abort:function(){a.abort()},forceMinPriority:function(t){e=t,a&&a.forceMinPriority(t)}}},e.prototype.tryStrategy=function(e,t,n,r){var i=null,o=null;return n.timeout>0&&(i=new C(n.timeout,(function(){o.abort(),r(!0)}))),o=e.connect(t,(function(e,t){e&&i&&i.isRunning()&&!n.failFast||(i&&i.ensureAborted(),r(e,t))})),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(e){o.forceMinPriority(e)}}},e}(),Qe=function(){function e(e){this.strategies=e}return e.prototype.isSupported=function(){return N(this.strategies,x.method("isSupported"))},e.prototype.connect=function(e,t){return function(e,t,n){var r=P(e,(function(e,r,i,o){return e.connect(t,n(r,o))}));return{abort:function(){O(r,Xe)},forceMinPriority:function(e){O(r,(function(t){t.forceMinPriority(e)}))}}}(this.strategies,e,(function(e,n){return function(r,i){n[e].error=r,r?function(e){return function(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n,e))return!1;return!0}(e,(function(e){return Boolean(e.error)}))}(n)&&t(!0):(O(n,(function(e){e.forceMinPriority(i.transport.priority)})),t(null,i))}}))},e}();function Xe(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}var Je=function(){function e(e,t,n){this.strategy=e,this.transports=t,this.ttl=n.ttl||18e5,this.usingTLS=n.useTLS,this.timeline=n.timeline}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var n=this.usingTLS,r=function(e){var t=kt.getLocalStorage();if(t)try{var n=t[Ze(e)];if(n)return JSON.parse(n)}catch(t){et(e)}return null}(n),i=[this.strategy];if(r&&r.timestamp+this.ttl>=x.now()){var o=this.transports[r.transport];o&&(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),i.push(new Ge([o],{timeout:2*r.latency+1e3,failFast:!0})))}var a=x.now(),s=i.pop().connect(e,(function r(o,c){o?(et(n),i.length>0?(a=x.now(),s=i.pop().connect(e,r)):t(o)):(function(e,t,n){var r=kt.getLocalStorage();if(r)try{r[Ze(e)]=B({timestamp:x.now(),transport:t,latency:n})}catch(e){}}(n,c.transport.name,x.now()-a),t(null,c))}));return{abort:function(){s.abort()},forceMinPriority:function(t){e=t,s&&s.forceMinPriority(t)}}},e}();function Ze(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function et(e){var t=kt.getLocalStorage();if(t)try{delete t[Ze(e)]}catch(e){}}var tt=function(){function e(e,t){var n=t.delay;this.strategy=e,this.options={delay:n}}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var n,r=this.strategy,i=new C(this.options.delay,(function(){n=r.connect(e,t)}));return{abort:function(){i.ensureAborted(),n&&n.abort()},forceMinPriority:function(t){e=t,n&&n.forceMinPriority(t)}}},e}(),nt=function(){function e(e,t,n){this.test=e,this.trueBranch=t,this.falseBranch=n}return e.prototype.isSupported=function(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()},e.prototype.connect=function(e,t){return(this.test()?this.trueBranch:this.falseBranch).connect(e,t)},e}(),rt=function(){function e(e){this.strategy=e}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var n=this.strategy.connect(e,(function(e,r){r&&n.abort(),t(e,r)}));return n},e}();function it(e){return function(){return e.isSupported()}}var ot,at=function(e,t){var n={};function r(r,i,o,a,s){var c=t(e,r,i,o,a,s);return n[r]=c,c}var i,o={hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath},a=S({},o,{useTLS:!0}),s={hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath},c={loop:!0,timeout:15e3,timeoutLimit:6e4},l=new Ke({lives:2,minPingDelay:1e4,maxPingDelay:e.activity_timeout}),u=new Ke({lives:2,minPingDelay:1e4,maxPingDelay:e.activity_timeout}),d=r("ws","ws",3,o,l),f=r("wss","ws",3,a,l),h=r("sockjs","sockjs",1,s),p=r("xhr_streaming","xhr_streaming",1,s,u),m=r("xdr_streaming","xdr_streaming",1,s,u),v=r("xhr_polling","xhr_polling",1,s),g=r("xdr_polling","xdr_polling",1,s),b=new Ge([d],c),y=new Ge([f],c),k=new Ge([h],c),w=new Ge([new nt(it(p),p,m)],c),_=new Ge([new nt(it(v),v,g)],c),C=new Ge([new nt(it(w),new Qe([w,new tt(_,{delay:4e3})]),_)],c),A=new nt(it(C),C,k);return i=e.useTLS?new Qe([b,new tt(A,{delay:2e3})]):new Qe([b,new tt(y,{delay:2e3}),new tt(A,{delay:5e3})]),new Je(new rt(new nt(it(d),i,A)),n,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})},st={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new Me),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}},ct=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(e){function t(t,n,r){var i=e.call(this)||this;return i.hooks=t,i.method=n,i.url=r,i}return ct(t,e),t.prototype.start=function(e){var t=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){t.close()},kt.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)},t.prototype.close=function(){this.unloader&&(kt.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},t.prototype.onChunk=function(e,t){for(;;){var n=this.advanceBuffer(t);if(!n)break;this.emit("chunk",{status:e,data:n})}this.isBufferTooLong(t)&&this.emit("buffer_too_long")},t.prototype.advanceBuffer=function(e){var t=e.slice(this.position),n=t.indexOf("\n");return-1!==n?(this.position+=n+1,t.slice(0,n)):null},t.prototype.isBufferTooLong=function(e){return this.position===e.length&&e.length>262144},t}(ee);!function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSED=3]="CLOSED"}(ot||(ot={}));var ut=ot,dt=1;function ft(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+dt++}function ht(e){return Math.floor(Math.random()*e)}var pt,mt=function(){function e(e,t){this.hooks=e,this.session=ht(1e3)+"/"+function(e){for(var t=[],n=0;n<e;n++)t.push(ht(32).toString(32));return t.join("")}(8),this.location=function(e){var t=/([^\?]*)\/*(\??.*)/.exec(e);return{base:t[1],queryString:t[2]}}(t),this.readyState=ut.CONNECTING,this.openStream()}return e.prototype.send=function(e){return this.sendRaw(JSON.stringify([e]))},e.prototype.ping=function(){this.hooks.sendHeartbeat(this)},e.prototype.close=function(e,t){this.onClose(e,t,!0)},e.prototype.sendRaw=function(e){if(this.readyState!==ut.OPEN)return!1;try{return kt.createSocketRequest("POST",ft((t=this.location,n=this.session,t.base+"/"+n+"/xhr_send"))).start(e),!0}catch(e){return!1}var t,n},e.prototype.reconnect=function(){this.closeStream(),this.openStream()},e.prototype.onClose=function(e,t,n){this.closeStream(),this.readyState=ut.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:n})},e.prototype.onChunk=function(e){var t;if(200===e.status)switch(this.readyState===ut.OPEN&&this.onActivity(),e.data.slice(0,1)){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var n=0;n<t.length;n++)this.onEvent(t[n]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0)}},e.prototype.onOpen=function(e){var t,n,r;this.readyState===ut.CONNECTING?(e&&e.hostname&&(this.location.base=(t=this.location.base,n=e.hostname,(r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(t))[1]+n+r[3])),this.readyState=ut.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)},e.prototype.onEvent=function(e){this.readyState===ut.OPEN&&this.onmessage&&this.onmessage({data:e})},e.prototype.onActivity=function(){this.onactivity&&this.onactivity()},e.prototype.onError=function(e){this.onerror&&this.onerror(e)},e.prototype.openStream=function(){var e=this;this.stream=kt.createSocketRequest("POST",ft(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",(function(t){e.onChunk(t)})),this.stream.bind("finished",(function(t){e.hooks.onFinished(e,t)})),this.stream.bind("buffer_too_long",(function(){e.reconnect()}));try{this.stream.start()}catch(t){x.defer((function(){e.onError(t),e.onClose(1006,"Could not start streaming",!1)}))}},e.prototype.closeStream=function(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)},e}(),vt={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr_streaming"+e.queryString},onHeartbeat:function(e){e.sendRaw("[]")},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){e.onClose(1006,"Connection interrupted ("+t+")",!1)}},gt={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr"+e.queryString},onHeartbeat:function(){},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){200===t?e.reconnect():e.onClose(1006,"Connection interrupted ("+t+")",!1)}},bt={getRequest:function(e){var t=new(kt.getXHRAPI());return t.onreadystatechange=t.onprogress=function(){switch(t.readyState){case 3:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText);break;case 4:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText),e.emit("finished",t.status),e.close()}},t},abortRequest:function(e){e.onreadystatechange=null,e.abort()}},yt={createStreamingSocket:function(e){return this.createSocket(vt,e)},createPollingSocket:function(e){return this.createSocket(gt,e)},createSocket:function(e,t){return new mt(e,t)},createXHR:function(e,t){return this.createRequest(bt,e,t)},createRequest:function(e,t,n){return new lt(e,t,n)},createXDR:function(e,t){return this.createRequest(st,e,t)}},kt={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:s,getDefaultStrategy:at,Transports:pe,transportConnectionInitializer:function(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),c.load(e.hooks.file,{useTLS:e.options.useTLS},(function(t,n){e.hooks.isInitialized()?(e.changeState("initialized"),n(!0)):(t&&e.onError(t),e.onClose(),n(!1))}))):e.onClose()},HTTPFactory:yt,TimelineTransport:W,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(e){var t=this;window.Pusher=e;var n=function(){t.onDocumentBody(e.ready)};window.JSON?n():c.load("json2",{},n)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:$,jsonp:H}},onDocumentBody:function(e){var t=this;document.body?e():setTimeout((function(){t.onDocumentBody(e)}),0)},createJSONPRequest:function(e,t){return new q(e,t)},createScriptRequest:function(e){return new U(e)},getLocalStorage:function(){try{return window.localStorage}catch(e){return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){return new(this.getXHRAPI())},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return ve},createWebSocket:function(e){return new(this.getWebSocketAPI())(e)},createSocketRequest:function(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var e=this.getXHRAPI();return Boolean(e)&&void 0!==(new e).withCredentials},isXDRSupported:function(e){var t=e?"https:":"http:",n=this.getProtocol();return Boolean(window.XDomainRequest)&&n===t},addUnloadListener:function(e){void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener:function(e){void 0!==window.addEventListener?window.removeEventListener("unload",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)}};!function(e){e[e.ERROR=3]="ERROR",e[e.INFO=6]="INFO",e[e.DEBUG=7]="DEBUG"}(pt||(pt={}));var wt=pt,_t=function(){function e(e,t,n){this.key=e,this.session=t,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}return e.prototype.log=function(e,t){e<=this.options.level&&(this.events.push(S({},t,{timestamp:x.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},e.prototype.error=function(e){this.log(wt.ERROR,e)},e.prototype.info=function(e){this.log(wt.INFO,e)},e.prototype.debug=function(e){this.log(wt.DEBUG,e)},e.prototype.isEmpty=function(){return 0===this.events.length},e.prototype.send=function(e,t){var n=this,r=S({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(r,(function(e,r){e||n.sent++,t&&t(e,r)})),!0},e.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},e}(),Ct=function(){function e(e,t,n,r){this.name=e,this.priority=t,this.transport=n,this.options=r||{}}return e.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},e.prototype.connect=function(e,t){var n=this;if(!this.isSupported())return At(new Pe,t);if(this.priority<e)return At(new Ee,t);var r=!1,i=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),o=null,a=function(){i.unbind("initialized",a),i.connect()},s=function(){o=Ye.createHandshake(i,(function(e){r=!0,u(),t(null,e)}))},c=function(e){u(),t(e)},l=function(){var e;u(),e=B(i),t(new Te(e))},u=function(){i.unbind("initialized",a),i.unbind("open",s),i.unbind("error",c),i.unbind("closed",l)};return i.bind("initialized",a),i.bind("open",s),i.bind("error",c),i.bind("closed",l),i.initialize(),{abort:function(){r||(u(),o?o.close():i.close())},forceMinPriority:function(e){r||n.priority<e&&(o?o.close():i.close())}}},e}();function At(e,t){return x.defer((function(){t(e)})),{abort:function(){},forceMinPriority:function(){}}}var xt=kt.Transports,St=function(e,t,n,r,i,o){var a=xt[n];if(!a)throw new Oe(n);return e.enabledTransports&&-1===E(e.enabledTransports,t)||e.disabledTransports&&-1!==E(e.disabledTransports,t)?Mt:new Ct(t,r,o?o.getAssistant(a):a,S({key:e.key,useTLS:e.useTLS,timeline:e.timeline,ignoreNullOrigin:e.ignoreNullOrigin},i))},Mt={isSupported:function(){return!1},connect:function(e,t){var n=x.defer((function(){t(new Pe)}));return{abort:function(){n.ensureAborted()},forceMinPriority:function(){}}}},Et=function(){function e(t,n){var r,i=this;if(function(e){if(null==e)throw"You must pass your app key when you instantiate Pusher."}(t),!(n=n||{}).cluster&&!n.wsHost&&!n.httpHost){var a=V("javascriptQuickStart");F.warn("You should always specify a cluster when connecting. "+a)}"disableStats"in n&&(F.warn("The disableStats option is deprecated in favor of enableStats"),"enableStats"in n||(n.enableStats=!n.disableStats)),this.key=t,this.config=S({wsHost:o.host,wsPort:o.ws_port,wssPort:o.wss_port,wsPath:o.ws_path,httpHost:o.sockjs_host,httpPort:o.sockjs_http_port,httpsPort:o.sockjs_https_port,httpPath:o.sockjs_path,statsHost:o.stats_host,authEndpoint:o.channel_auth_endpoint,authTransport:o.channel_auth_transport,activity_timeout:o.activity_timeout,pong_timeout:o.pong_timeout,unavailable_timeout:o.unavailable_timeout},n.cluster?{wsHost:"ws-"+(r=n.cluster)+".pusher.com",httpHost:"sockjs-"+r+".pusher.com"}:{},n),this.channels=Ye.createChannels(),this.global_emitter=new ee,this.sessionID=Math.floor(1e9*Math.random()),this.timeline=new _t(this.key,this.sessionID,{cluster:this.config.cluster,features:e.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:wt.INFO,version:o.VERSION}),this.config.enableStats&&(this.timelineSender=Ye.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+kt.TimelineTransport.name})),this.connection=Ye.createConnectionManager(this.key,S({getStrategy:function(e){var t=S({},i.config,e);return kt.getDefaultStrategy(t,St)},timeline:this.timeline,activityTimeout:this.config.activity_timeout,pongTimeout:this.config.pong_timeout,unavailableTimeout:this.config.unavailable_timeout},this.config,{useTLS:this.shouldUseTLS()})),this.connection.bind("connected",(function(){i.subscribeAll(),i.timelineSender&&i.timelineSender.send(i.connection.isUsingTLS())})),this.connection.bind("message",(function(e){var t=0===e.event.indexOf("pusher_internal:");if(e.channel){var n=i.channel(e.channel);n&&n.handleEvent(e)}t||i.global_emitter.emit(e.event,e.data)})),this.connection.bind("connecting",(function(){i.channels.disconnect()})),this.connection.bind("disconnected",(function(){i.channels.disconnect()})),this.connection.bind("error",(function(e){F.warn(e)})),e.instances.push(this),this.timeline.info({instances:e.instances.length}),e.isReady&&this.connect()}return e.ready=function(){e.isReady=!0;for(var t=0,n=e.instances.length;t<n;t++)e.instances[t].connect()},e.getClientFeatures=function(){return D(j({ws:kt.Transports.ws},(function(e){return e.isSupported({})})))},e.prototype.channel=function(e){return this.channels.find(e)},e.prototype.allChannels=function(){return this.channels.all()},e.prototype.connect=function(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new A(6e4,(function(){t.send(e)}))}},e.prototype.disconnect=function(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)},e.prototype.bind=function(e,t,n){return this.global_emitter.bind(e,t,n),this},e.prototype.unbind=function(e,t,n){return this.global_emitter.unbind(e,t,n),this},e.prototype.bind_global=function(e){return this.global_emitter.bind_global(e),this},e.prototype.unbind_global=function(e){return this.global_emitter.unbind_global(e),this},e.prototype.unbind_all=function(e){return this.global_emitter.unbind_all(),this},e.prototype.subscribeAll=function(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)},e.prototype.subscribe=function(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.connection.state||t.subscribe(),t},e.prototype.unsubscribe=function(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e))&&"connected"===this.connection.state&&t.unsubscribe()},e.prototype.send_event=function(e,t,n){return this.connection.send_event(e,t,n)},e.prototype.shouldUseTLS=function(){return"https:"===kt.getProtocol()||!0===this.config.forceTLS||Boolean(this.config.encrypted)},e.instances=[],e.isReady=!1,e.logToConsole=!1,e.Runtime=kt,e.ScriptReceivers=kt.ScriptReceivers,e.DependenciesReceivers=kt.DependenciesReceivers,e.auth_callbacks=kt.auth_callbacks,e}(),Tt=t.default=Et;kt.setup(Et)}])},e.exports=n()}).call(this,n(117).Buffer)},function(e,t,n){"use strict";(function(e){var r=n(118),i=n(119),o=n(120);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var d=!0,f=0;f<c;f++)if(l(e,o+f)!==l(t,f)){d=!1;break}if(d)return o}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function k(e,t,n,r){return $(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return $(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return w(e,t,n,r)}function C(e,t,n,r){return $(V(t),e,n,r)}function A(e,t,n,r){return $(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,c,l=e[i],u=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){o=l[d],a=u[d];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=F(e[o]);return i}function D(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function N(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return o||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return o||N(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=c.isBuffer(e)?e:z(new c(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(7))},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(u(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,l=8*o-i-1,u=(1<<l)-1,d=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(t,n){var r=Object.freeze({});function i(e){return null==e}function o(e){return null!=e}function a(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function c(e){return null!==e&&"object"==typeof e}var l=Object.prototype.toString;function u(e){return"[object Object]"===l.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var v=m("slot,component",!0),g=m("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function k(e,t){return y.call(e,t)}function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var _=/-(\w)/g,C=w((function(e){return e.replace(_,(function(e,t){return t?t.toUpperCase():""}))})),A=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),x=/\B([A-Z])/g,S=w((function(e){return e.replace(x,"-$1").toLowerCase()})),M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function E(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function T(e,t){for(var n in t)e[n]=t[n];return e}function D(e){for(var t={},n=0;n<e.length;n++)e[n]&&T(t,e[n]);return t}function O(e,t,n){}var P=function(e,t,n){return!1},I=function(e){return e};function j(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return j(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return j(e[n],t[n])}))}catch(e){return!1}}function N(e,t){for(var n=0;n<e.length;n++)if(j(e[n],t))return n;return-1}function R(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var L="data-server-rendered",B=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],z={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:P,isReservedAttr:P,isUnknownElement:P,getTagNamespace:O,parsePlatformTagName:I,mustUseProp:P,async:!0,_lifecycleHooks:F},V=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function $(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var H,U=new RegExp("[^"+V.source+".$_\\d]"),q="__proto__"in{},W="undefined"!=typeof window,Y="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,K=Y&&WXEnvironment.platform.toLowerCase(),G=W&&window.navigator.userAgent.toLowerCase(),Q=G&&/msie|trident/.test(G),X=G&&G.indexOf("msie 9.0")>0,J=G&&G.indexOf("edge/")>0,Z=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===K),ee=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/)),te={}.watch,ne=!1;if(W)try{var re={};Object.defineProperty(re,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,re)}catch(r){}var ie=function(){return void 0===H&&(H=!W&&!Y&&void 0!==t&&t.process&&"server"===t.process.env.VUE_ENV),H},oe=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var se,ce="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);se="undefined"!=typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=O,ue=0,de=function(){this.id=ue++,this.subs=[]};de.prototype.addSub=function(e){this.subs.push(e)},de.prototype.removeSub=function(e){b(this.subs,e)},de.prototype.depend=function(){de.target&&de.target.addDep(this)},de.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},de.target=null;var fe=[];function he(e){fe.push(e),de.target=e}function pe(){fe.pop(),de.target=fe[fe.length-1]}var me=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ve={child:{configurable:!0}};ve.child.get=function(){return this.componentInstance},Object.defineProperties(me.prototype,ve);var ge=function(e){void 0===e&&(e="");var t=new me;return t.text=e,t.isComment=!0,t};function be(e){return new me(void 0,void 0,void 0,String(e))}function ye(e){var t=new me(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var ke=Array.prototype,we=Object.create(ke);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=ke[e];$(we,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o}))}));var _e=Object.getOwnPropertyNames(we),Ce=!0;function Ae(e){Ce=e}var xe=function(e){var t;this.value=e,this.dep=new de,this.vmCount=0,$(e,"__ob__",this),Array.isArray(e)?(q?(t=we,e.__proto__=t):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];$(e,o,t[o])}}(e,we,_e),this.observeArray(e)):this.walk(e)};function Se(e,t){var n;if(c(e)&&!(e instanceof me))return k(e,"__ob__")&&e.__ob__ instanceof xe?n=e.__ob__:Ce&&!ie()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new xe(e)),t&&n&&n.vmCount++,n}function Me(e,t,n,r,i){var o=new de,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var l=!i&&Se(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return de.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(t)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!c||(c?c.call(e,t):n=t,l=!i&&Se(t),o.notify())}})}}function Ee(e,t,n){if(Array.isArray(e)&&d(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Me(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Te(e,t){if(Array.isArray(e)&&d(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||k(e,t)&&(delete e[t],n&&n.dep.notify())}}xe.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Me(e,t[n])},xe.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Se(e[t])};var De=z.optionMergeStrategies;function Oe(e,t){if(!t)return e;for(var n,r,i,o=ce?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],k(e,n)?r!==i&&u(r)&&u(i)&&Oe(r,i):Ee(e,n,i));return e}function Pe(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Oe(r,i):i}:t?e?function(){return Oe("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Ie(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function je(e,t,n,r){var i=Object.create(e||null);return t?T(i,t):i}De.data=function(e,t,n){return n?Pe(e,t,n):t&&"function"!=typeof t?e:Pe(e,t)},F.forEach((function(e){De[e]=Ie})),B.forEach((function(e){De[e+"s"]=je})),De.watch=function(e,t,n,r){if(e===te&&(e=void 0),t===te&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in T(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},De.props=De.methods=De.inject=De.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return T(i,e),t&&T(i,t),i},De.provide=Pe;var Ne=function(e,t){return void 0===t?e:t};function Re(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[C(i)]={type:null});else if(u(n))for(var a in n)i=n[a],o[C(a)]=u(i)?i:{type:i};e.props=o}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?T({from:o},a):{from:a}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Re(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Re(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)k(e,o)||s(o);function s(r){var i=De[r]||Ne;a[r]=i(e[r],t[r],n,r)}return a}function Le(e,t,n,r){if("string"==typeof n){var i=e[t];if(k(i,n))return i[n];var o=C(n);if(k(i,o))return i[o];var a=A(o);return k(i,a)?i[a]:i[n]||i[o]||i[a]}}function Be(e,t,n,r){var i=t[e],o=!k(n,e),a=n[e],s=Ve(Boolean,i.type);if(s>-1)if(o&&!k(i,"default"))a=!1;else if(""===a||a===S(e)){var c=Ve(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(k(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==Fe(t.type)?r.call(e):r}}(r,i,e);var l=Ce;Ae(!0),Se(a),Ae(l)}return a}function Fe(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function ze(e,t){return Fe(e)===Fe(t)}function Ve(e,t){if(!Array.isArray(t))return ze(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(ze(t[n],e))return n;return-1}function $e(e,t,n){he();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){Ue(e,r,"errorCaptured hook")}}Ue(e,t,n)}finally{pe()}}function He(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&f(o)&&!o._handled&&(o.catch((function(e){return $e(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(e){$e(e,r,i)}return o}function Ue(e,t,n){if(z.errorHandler)try{return z.errorHandler.call(null,e,t,n)}catch(t){t!==e&&qe(t,null,"config.errorHandler")}qe(e,t,n)}function qe(e,t,n){if(!W&&!Y||"undefined"==typeof console)throw e;console.error(e)}var We,Ye=!1,Ke=[],Ge=!1;function Qe(){Ge=!1;var e=Ke.slice(0);Ke.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&ae(Promise)){var Xe=Promise.resolve();We=function(){Xe.then(Qe),Z&&setTimeout(O)},Ye=!0}else if(Q||"undefined"==typeof MutationObserver||!ae(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())We=void 0!==n&&ae(n)?function(){n(Qe)}:function(){setTimeout(Qe,0)};else{var Je=1,Ze=new MutationObserver(Qe),et=document.createTextNode(String(Je));Ze.observe(et,{characterData:!0}),We=function(){Je=(Je+1)%2,et.data=String(Je)},Ye=!0}function tt(e,t){var n;if(Ke.push((function(){if(e)try{e.call(t)}catch(e){$e(e,t,"nextTick")}else n&&n(t)})),Ge||(Ge=!0,We()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}var nt=new se;function rt(e){!function e(t,n){var r,i,o=Array.isArray(t);if(!(!o&&!c(t)||Object.isFrozen(t)||t instanceof me)){if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=t.length;r--;)e(t[r],n);else for(r=(i=Object.keys(t)).length;r--;)e(t[i[r]],n)}}(e,nt),nt.clear()}var it=w((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function ot(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return He(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)He(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function at(e,t,n,r,o,s){var c,l,u,d;for(c in e)l=e[c],u=t[c],d=it(c),i(l)||(i(u)?(i(l.fns)&&(l=e[c]=ot(l,s)),a(d.once)&&(l=e[c]=o(d.name,l,d.capture)),n(d.name,l,d.capture,d.passive,d.params)):l!==u&&(u.fns=l,e[c]=u));for(c in t)i(e[c])&&r((d=it(c)).name,t[c],d.capture)}function st(e,t,n){var r;e instanceof me&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){n.apply(this,arguments),b(r.fns,c)}i(s)?r=ot([c]):o(s.fns)&&a(s.merged)?(r=s).fns.push(c):r=ot([s,c]),r.merged=!0,e[t]=r}function ct(e,t,n,r,i){if(o(t)){if(k(t,n))return e[n]=t[n],i||delete t[n],!0;if(k(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function lt(e){return s(e)?[be(e)]:Array.isArray(e)?function e(t,n){var r,c,l,u,d=[];for(r=0;r<t.length;r++)i(c=t[r])||"boolean"==typeof c||(u=d[l=d.length-1],Array.isArray(c)?c.length>0&&(ut((c=e(c,(n||"")+"_"+r))[0])&&ut(u)&&(d[l]=be(u.text+c[0].text),c.shift()),d.push.apply(d,c)):s(c)?ut(u)?d[l]=be(u.text+c):""!==c&&d.push(be(c)):ut(c)&&ut(u)?d[l]=be(u.text+c.text):(a(t._isVList)&&o(c.tag)&&i(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+r+"__"),d.push(c)));return d}(e):void 0}function ut(e){return o(e)&&o(e.text)&&!1===e.isComment}function dt(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&k(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}}}return n}}function ft(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var l in n)n[l].every(ht)&&delete n[l];return n}function ht(e){return e.isComment&&!e.asyncFactory||" "===e.text}function pt(e,t,n){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=mt(t,c,e[c]))}else i={};for(var l in t)l in i||(i[l]=vt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),$(i,"$stable",a),$(i,"$key",s),$(i,"$hasNormal",o),i}function mt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:lt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function vt(e,t){return function(){return e[t]}}function gt(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(c(e))if(ce&&e[Symbol.iterator]){n=[];for(var l=e[Symbol.iterator](),u=l.next();!u.done;)n.push(t(u.value,n.length)),u=l.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],n[r]=t(e[s],s,r);return o(n)||(n=[]),n._isVList=!0,n}function bt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=T(T({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function yt(e){return Le(this.$options,"filters",e)||I}function kt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function wt(e,t,n,r,i){var o=z.keyCodes[t]||n;return i&&r&&!z.keyCodes[t]?kt(i,r):o?kt(o,e):r?S(r)!==t:void 0}function _t(e,t,n,r,i){if(n&&c(n)){var o;Array.isArray(n)&&(n=D(n));var a=function(a){if("class"===a||"style"===a||g(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||z.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=C(a),l=S(a);c in o||l in o||(o[a]=n[a],i&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))};for(var s in n)a(s)}return e}function Ct(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||xt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function At(e,t,n){return xt(e,"__once__"+t+(n?"_"+n:""),!0),e}function xt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&St(e[r],t+"_"+r,n);else St(e,t,n)}function St(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Mt(e,t){if(t&&u(t)){var n=e.on=e.on?T({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}return e}function Et(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?Et(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Tt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Dt(e,t){return"string"==typeof e?t+e:e}function Ot(e){e._o=At,e._n=p,e._s=h,e._l=gt,e._t=bt,e._q=j,e._i=N,e._m=Ct,e._f=yt,e._k=wt,e._b=_t,e._v=be,e._e=ge,e._u=Et,e._g=Mt,e._d=Tt,e._p=Dt}function Pt(e,t,n,i,o){var s,c=this,l=o.options;k(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var u=a(l._compiled),d=!u;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=dt(l.inject,i),this.slots=function(){return c.$slots||pt(e.scopedSlots,c.$slots=ft(n,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pt(e.scopedSlots,this.slots())}}),u&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=pt(e.scopedSlots,this.$slots)),l._scopeId?this._c=function(e,t,n,r){var o=Ft(s,e,t,n,r,d);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return Ft(s,e,t,n,r,d)}}function It(e,t,n,r,i){var o=ye(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function jt(e,t){for(var n in t)e[C(n)]=t[n]}Ot(Pt.prototype);var Nt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Nt.prepatch(n,n)}else(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}(e,Gt)).$mount(t?e.elm:void 0,t)},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),l=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){Ae(!1);for(var u=e._props,d=e.$options._propKeys||[],f=0;f<d.length;f++){var h=d[f],p=e.$options.props;u[h]=Be(h,p,t,e)}Ae(!0),e.$options.propsData=t}n=n||r;var m=e.$options._parentListeners;e.$options._parentListeners=n,Kt(e,n,m),l&&(e.$slots=ft(o,i.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,Zt(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,tn.push(t)):Jt(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(!(n&&(t._directInactive=!0,Xt(t))||t._inactive)){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);Zt(t,"deactivated")}}(t,!0):t.$destroy())}},Rt=Object.keys(Nt);function Lt(e,t,n,s,l){if(!i(e)){var u=n.$options._base;if(c(e)&&(e=u.extend(e)),"function"==typeof e){var d;if(i(e.cid)&&void 0===(e=function(e,t){if(a(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;var n=Vt;if(n&&o(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),a(e.loading)&&o(e.loadingComp))return e.loadingComp;if(n&&!o(e.owners)){var r=e.owners=[n],s=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return b(r,n)}));var d=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},h=R((function(n){e.resolved=$t(n,t),s?r.length=0:d(!0)})),p=R((function(t){o(e.errorComp)&&(e.error=!0,d(!0))})),m=e(h,p);return c(m)&&(f(m)?i(e.resolved)&&m.then(h,p):f(m.component)&&(m.component.then(h,p),o(m.error)&&(e.errorComp=$t(m.error,t)),o(m.loading)&&(e.loadingComp=$t(m.loading,t),0===m.delay?e.loading=!0:l=setTimeout((function(){l=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),m.delay||200)),o(m.timeout)&&(u=setTimeout((function(){u=null,i(e.resolved)&&p(null)}),m.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}(d=e,u)))return function(e,t,n,r,i){var o=ge();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}(d,t,n,s,l);t=t||{},wn(e),o(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),a=i[r],s=t.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[r]=[s].concat(a)):i[r]=s}(e.options,t);var h=function(e,t,n){var r=t.options.props;if(!i(r)){var a={},s=e.attrs,c=e.props;if(o(s)||o(c))for(var l in r){var u=S(l);ct(a,c,l,u,!0)||ct(a,s,l,u,!1)}return a}}(t,e);if(a(e.options.functional))return function(e,t,n,i,a){var s=e.options,c={},l=s.props;if(o(l))for(var u in l)c[u]=Be(u,l,t||r);else o(n.attrs)&&jt(c,n.attrs),o(n.props)&&jt(c,n.props);var d=new Pt(n,c,a,i,e),f=s.render.call(null,d._c,d);if(f instanceof me)return It(f,n,d.parent,s);if(Array.isArray(f)){for(var h=lt(f)||[],p=new Array(h.length),m=0;m<h.length;m++)p[m]=It(h[m],n,d.parent,s);return p}}(e,h,t,n,s);var p=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var m=t.slot;t={},m&&(t.slot=m)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Rt.length;n++){var r=Rt[n],i=t[r],o=Nt[r];i===o||i&&i._merged||(t[r]=i?Bt(o,i):o)}}(t);var v=e.options.name||l;return new me("vue-component-"+e.cid+(v?"-"+v:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:h,listeners:p,tag:l,children:s},d)}}}function Bt(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Ft(e,t,n,r,l,u){return(Array.isArray(n)||s(n))&&(l=r,r=n,n=void 0),a(u)&&(l=2),function(e,t,n,r,s){if(o(n)&&o(n.__ob__))return ge();if(o(n)&&o(n.is)&&(t=n.is),!t)return ge();var l,u,d;(Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0),2===s?r=lt(r):1===s&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r)),"string"==typeof t)?(u=e.$vnode&&e.$vnode.ns||z.getTagNamespace(t),l=z.isReservedTag(t)?new me(z.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!o(d=Le(e.$options,"components",t))?new me(t,n,r,void 0,void 0,e):Lt(d,n,e,r,t)):l=Lt(t,n,e,r);return Array.isArray(l)?l:o(l)?(o(u)&&function e(t,n,r){if(t.ns=n,"foreignObject"===t.tag&&(n=void 0,r=!0),o(t.children))for(var s=0,c=t.children.length;s<c;s++){var l=t.children[s];o(l.tag)&&(i(l.ns)||a(r)&&"svg"!==l.tag)&&e(l,n,r)}}(l,u),o(n)&&function(e){c(e.style)&&rt(e.style),c(e.class)&&rt(e.class)}(n),l):ge()}(e,t,n,r,l)}var zt,Vt=null;function $t(e,t){return(e.__esModule||ce&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function Ht(e){return e.isComment&&e.asyncFactory}function Ut(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(o(n)&&(o(n.componentOptions)||Ht(n)))return n}}function qt(e,t){zt.$on(e,t)}function Wt(e,t){zt.$off(e,t)}function Yt(e,t){var n=zt;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function Kt(e,t,n){zt=e,at(t,n||{},qt,Wt,Yt,e),zt=void 0}var Gt=null;function Qt(e){var t=Gt;return Gt=e,function(){Gt=t}}function Xt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Jt(e,t){if(t){if(e._directInactive=!1,Xt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Jt(e.$children[n]);Zt(e,"activated")}}function Zt(e,t){he();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)He(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),pe()}var en=[],tn=[],nn={},rn=!1,on=!1,an=0,sn=0,cn=Date.now;if(W&&!Q){var ln=window.performance;ln&&"function"==typeof ln.now&&cn()>document.createEvent("Event").timeStamp&&(cn=function(){return ln.now()})}function un(){var e,t;for(sn=cn(),on=!0,en.sort((function(e,t){return e.id-t.id})),an=0;an<en.length;an++)(e=en[an]).before&&e.before(),t=e.id,nn[t]=null,e.run();var n=tn.slice(),r=en.slice();an=en.length=tn.length=0,nn={},rn=on=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Jt(e[t],!0)}(n),function(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Zt(r,"updated")}}(r),oe&&z.devtools&&oe.emit("flush")}var dn=0,fn=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++dn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new se,this.newDepIds=new se,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!U.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=O)),this.value=this.lazy?void 0:this.get()};fn.prototype.get=function(){var e;he(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;$e(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&rt(e),pe(),this.cleanupDeps()}return e},fn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},fn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},fn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==nn[t]){if(nn[t]=!0,on){for(var n=en.length-1;n>an&&en[n].id>e.id;)n--;en.splice(n+1,0,e)}else en.push(e);rn||(rn=!0,tt(un))}}(this)},fn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){$e(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var hn={enumerable:!0,configurable:!0,get:O,set:O};function pn(e,t,n){hn.get=function(){return this[t][n]},hn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,hn)}var mn={lazy:!0};function vn(e,t,n){var r=!ie();"function"==typeof n?(hn.get=r?gn(t):bn(n),hn.set=O):(hn.get=n.get?r&&!1!==n.cache?gn(t):bn(n.get):O,hn.set=n.set||O),Object.defineProperty(e,t,hn)}function gn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),de.target&&t.depend(),t.value}}function bn(e){return function(){return e.call(this,this)}}function yn(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var kn=0;function wn(e){var t=e.options;if(e.super){var n=wn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&T(e.extendOptions,r),(t=e.options=Re(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function _n(e){this._init(e)}function Cn(e){return e&&(e.Ctor.options.name||e.tag)}function An(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===l.call(n)&&e.test(t));var n}function xn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=Cn(a.componentOptions);s&&!t(s)&&Sn(n,o,r,i)}}}function Sn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=kn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(wn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Kt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=ft(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Ft(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ft(e,t,n,r,i,!0)};var o=n&&n.data;Me(e,"$attrs",o&&o.attrs||r,null,!0),Me(e,"$listeners",t._parentListeners||r,null,!0)}(t),Zt(t,"beforeCreate"),function(e){var t=dt(e.$options.inject,e);t&&(Ae(!1),Object.keys(t).forEach((function(n){Me(e,n,t[n])})),Ae(!0))}(t),function(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&Ae(!1);var o=function(o){i.push(o);var a=Be(o,t,n,e);Me(r,o,a),o in e||pn(e,"_props",o)};for(var a in t)o(a);Ae(!0)}(e,t.props),t.methods&&function(e,t){for(var n in e.$options.props,t)e[n]="function"!=typeof t[n]?O:M(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){he();try{return e.call(t,t)}catch(e){return $e(e,t,"data()"),{}}finally{pe()}}(t,e):t||{})||(t={});for(var n,r=Object.keys(t),i=e.$options.props,o=(e.$options.methods,r.length);o--;){var a=r[o];i&&k(i,a)||(void 0,36!==(n=(a+"").charCodeAt(0))&&95!==n&&pn(e,"_data",a))}Se(t,!0)}(e):Se(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ie();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new fn(e,a||O,O,mn)),i in e||vn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)yn(e,n,r[i]);else yn(e,n,r)}}(e,t.watch)}(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Zt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(_n),function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Ee,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,n){if(u(t))return yn(this,e,t,n);(n=n||{}).user=!0;var r=new fn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){$e(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(_n),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((o=a[s])===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this._events[e];if(t){t=t.length>1?E(t):t;for(var n=E(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;i<o;i++)He(t[i],this,n,this,r)}return this}}(_n),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Qt(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Zt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Zt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(_n),function(e){Ot(e.prototype),e.prototype.$nextTick=function(e){return tt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=pt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Vt=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){$e(n,t,"render"),e=t._vnode}finally{Vt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof me||(e=ge()),e.parent=i,e}}(_n);var Mn=[String,RegExp,Array],En={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Mn,exclude:Mn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Sn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){xn(e,(function(e){return An(t,e)}))})),this.$watch("exclude",(function(t){xn(e,(function(e){return!An(t,e)}))}))},render:function(){var e=this.$slots.default,t=Ut(e),n=t&&t.componentOptions;if(n){var r=Cn(n),i=this.include,o=this.exclude;if(i&&(!r||!An(i,r))||o&&r&&An(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,b(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&Sn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return z}};Object.defineProperty(e,"config",t),e.util={warn:le,extend:T,mergeOptions:Re,defineReactive:Me},e.set=Ee,e.delete=Te,e.nextTick=tt,e.observable=function(e){return Se(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,En),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=E(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name,a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=Re(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)pn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)vn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,B.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=T({},a.options),i[r]=a,a}}(e),function(e){B.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(_n),Object.defineProperty(_n.prototype,"$isServer",{get:ie}),Object.defineProperty(_n.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(_n,"FunctionalRenderContext",{value:Pt}),_n.version="2.6.11";var Tn=m("style,class"),Dn=m("input,textarea,option,select,progress"),On=function(e,t,n){return"value"===n&&Dn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Pn=m("contenteditable,draggable,spellcheck"),In=m("events,caret,typing,plaintext-only"),jn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Nn="http://www.w3.org/1999/xlink",Rn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ln=function(e){return Rn(e)?e.slice(6,e.length):""},Bn=function(e){return null==e||!1===e};function Fn(e,t){return{staticClass:zn(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function zn(e,t){return e?t?e+" "+t:e:t||""}function Vn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)o(t=Vn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):c(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var $n={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Hn=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Un=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),qn=function(e){return Hn(e)||Un(e)};function Wn(e){return Un(e)?"svg":"math"===e?"math":void 0}var Yn=Object.create(null),Kn=m("text,number,password,search,email,tel,url");function Gn(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}var Qn=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS($n[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Xn={create:function(e,t){Jn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Jn(e,!0),Jn(t))},destroy:function(e){Jn(e,!0)}};function Jn(e,t){var n=e.data.ref;if(o(n)){var r=e.context,i=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?b(a[n],i):a[n]===i&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var Zn=new me("",{},[]),er=["create","activate","update","remove","destroy"];function tr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&o(e.data)===o(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=o(n=e.data)&&o(n=n.attrs)&&n.type,i=o(n=t.data)&&o(n=n.attrs)&&n.type;return r===i||Kn(r)&&Kn(i)}(e,t)||a(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function nr(e,t,n){var r,i,a={};for(r=t;r<=n;++r)o(i=e[r].key)&&(a[i]=r);return a}var rr={create:ir,update:ir,destroy:function(e){ir(e,Zn)}};function ir(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,o=e===Zn,a=t===Zn,s=ar(e.data.directives,e.context),c=ar(t.data.directives,t.context),l=[],u=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,cr(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(cr(i,"bind",t,e),i.def&&i.def.inserted&&l.push(i));if(l.length){var d=function(){for(var n=0;n<l.length;n++)cr(l[n],"inserted",t,e)};o?st(t,"insert",d):d()}if(u.length&&st(t,"postpatch",(function(){for(var n=0;n<u.length;n++)cr(u[n],"componentUpdated",t,e)})),!o)for(n in s)c[n]||cr(s[n],"unbind",e,e,a)}(e,t)}var or=Object.create(null);function ar(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=or),i[sr(r)]=r,r.def=Le(t.$options,"directives",r.name);return i}function sr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function cr(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(r){$e(r,n.context,"directive "+e.name+" "+t+" hook")}}var lr=[Xn,rr];function ur(e,t){var n=t.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||i(e.data.attrs)&&i(t.data.attrs))){var r,a,s=t.elm,c=e.data.attrs||{},l=t.data.attrs||{};for(r in o(l.__ob__)&&(l=t.data.attrs=T({},l)),l)a=l[r],c[r]!==a&&dr(s,r,a);for(r in(Q||J)&&l.value!==c.value&&dr(s,"value",l.value),c)i(l[r])&&(Rn(r)?s.removeAttributeNS(Nn,Ln(r)):Pn(r)||s.removeAttribute(r))}}function dr(e,t,n){e.tagName.indexOf("-")>-1?fr(e,t,n):jn(t)?Bn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Pn(t)?e.setAttribute(t,function(e,t){return Bn(t)||"false"===t?"false":"contenteditable"===e&&In(t)?t:"true"}(t,n)):Rn(t)?Bn(n)?e.removeAttributeNS(Nn,Ln(t)):e.setAttributeNS(Nn,t,n):fr(e,t,n)}function fr(e,t,n){if(Bn(n))e.removeAttribute(t);else{if(Q&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var hr={create:ur,update:ur};function pr(e,t){var n=t.elm,r=t.data,a=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=function(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Fn(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=Fn(t,n.data));return function(e,t){return o(e)||o(t)?zn(e,Vn(t)):""}(t.staticClass,t.class)}(t),c=n._transitionClasses;o(c)&&(s=zn(s,Vn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var mr,vr,gr,br,yr,kr,wr={create:pr,update:pr},_r=/[\w).+\-_$\]]/;function Cr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,l=!1,u=0,d=0,f=0,h=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(l)47===t&&92!==n&&(l=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||d||f){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:f++;break;case 41:f--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===t){for(var p=r-1,m=void 0;p>=0&&" "===(m=e.charAt(p));p--);m&&_r.test(m)||(l=!0)}}else void 0===i?(h=r+1,i=e.slice(0,r).trim()):v();function v(){(o||(o=[])).push(e.slice(h,r).trim()),h=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==h&&v(),o)for(r=0;r<o.length;r++)i=Ar(i,o[r]);return i}function Ar(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function xr(e,t){console.error("[Vue compiler]: "+e)}function Sr(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function Mr(e,t,n,r,i){(e.props||(e.props=[])).push(Rr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Er(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Rr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Tr(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Rr({name:t,value:n},r))}function Dr(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push(Rr({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function Or(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Pr(e,t,n,i,o,a,s,c){var l;(i=i||r).right?c?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete i.right):i.middle&&(c?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),i.capture&&(delete i.capture,t=Or("!",t,c)),i.once&&(delete i.once,t=Or("~",t,c)),i.passive&&(delete i.passive,t=Or("&",t,c)),i.native?(delete i.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});var u=Rr({value:n.trim(),dynamic:c},s);i!==r&&(u.modifiers=i);var d=l[t];Array.isArray(d)?o?d.unshift(u):d.push(u):l[t]=d?o?[u,d]:[d,u]:u,e.plain=!1}function Ir(e,t,n){var r=jr(e,":"+t)||jr(e,"v-bind:"+t);if(null!=r)return Cr(r);if(!1!==n){var i=jr(e,t);if(null!=i)return JSON.stringify(i)}}function jr(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Nr(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function Rr(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Lr(e,t,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=Br(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+a+"}"}}function Br(e,t){var n=function(e){if(e=e.trim(),mr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<mr-1)return(br=e.lastIndexOf("."))>-1?{exp:e.slice(0,br),key:'"'+e.slice(br+1)+'"'}:{exp:e,key:null};for(vr=e,br=yr=kr=0;!zr();)Vr(gr=Fr())?Hr(gr):91===gr&&$r(gr);return{exp:e.slice(0,yr),key:e.slice(yr+1,kr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Fr(){return vr.charCodeAt(++br)}function zr(){return br>=mr}function Vr(e){return 34===e||39===e}function $r(e){var t=1;for(yr=br;!zr();)if(Vr(e=Fr()))Hr(e);else if(91===e&&t++,93===e&&t--,0===t){kr=br;break}}function Hr(e){for(var t=e;!zr()&&(e=Fr())!==t;);}var Ur,qr="__r";function Wr(e,t,n){var r=Ur;return function i(){null!==t.apply(null,arguments)&&Gr(e,i,n,r)}}var Yr=Ye&&!(ee&&Number(ee[1])<=53);function Kr(e,t,n,r){if(Yr){var i=sn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Ur.addEventListener(e,t,ne?{capture:n,passive:r}:n)}function Gr(e,t,n,r){(r||Ur).removeEventListener(e,t._wrapper||t,n)}function Qr(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Ur=t.elm,function(e){if(o(e.__r)){var t=Q?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}o(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),at(n,r,Kr,Gr,Wr,t.context),Ur=void 0}}var Xr,Jr={create:Qr,update:Qr};function Zr(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in o(c.__ob__)&&(c=t.data.domProps=T({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var l=i(r)?"":String(r);ei(a,l)&&(a.value=l)}else if("innerHTML"===n&&Un(a.tagName)&&i(a.innerHTML)){(Xr=Xr||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var u=Xr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(r!==s[n])try{a[n]=r}catch(e){}}}}function ei(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.number)return p(n)!==p(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ti={create:Zr,update:Zr},ni=w((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function ri(e){var t=ii(e.style);return e.staticStyle?T(e.staticStyle,t):t}function ii(e){return Array.isArray(e)?D(e):"string"==typeof e?ni(e):e}var oi,ai=/^--/,si=/\s*!important$/,ci=function(e,t,n){if(ai.test(t))e.style.setProperty(t,n);else if(si.test(n))e.style.setProperty(S(t),n.replace(si,""),"important");else{var r=ui(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},li=["Webkit","Moz","ms"],ui=w((function(e){if(oi=oi||document.createElement("div").style,"filter"!==(e=C(e))&&e in oi)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<li.length;n++){var r=li[n]+t;if(r in oi)return r}}));function di(e,t){var n=t.data,r=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var a,s,c=t.elm,l=r.staticStyle,u=r.normalizedStyle||r.style||{},d=l||u,f=ii(t.data.style)||{};t.data.normalizedStyle=o(f.__ob__)?T({},f):f;var h=function(e,t){for(var n,r={},i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=ri(i.data))&&T(r,n);(n=ri(e.data))&&T(r,n);for(var o=e;o=o.parent;)o.data&&(n=ri(o.data))&&T(r,n);return r}(t);for(s in d)i(h[s])&&ci(c,s,"");for(s in h)(a=h[s])!==d[s]&&ci(c,s,null==a?"":a)}}var fi={create:di,update:di},hi=/\s+/;function pi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(hi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function mi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(hi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function vi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,gi(e.name||"v")),T(t,e),t}return"string"==typeof e?gi(e):void 0}}var gi=w((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),bi=W&&!X,yi="transition",ki="animation",wi="transition",_i="transitionend",Ci="animation",Ai="animationend";bi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(wi="WebkitTransition",_i="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ci="WebkitAnimation",Ai="webkitAnimationEnd"));var xi=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Si(e){xi((function(){xi(e)}))}function Mi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),pi(e,t))}function Ei(e,t){e._transitionClasses&&b(e._transitionClasses,t),mi(e,t)}function Ti(e,t,n){var r=Oi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===yi?_i:Ai,c=0,l=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++c>=a&&l()};setTimeout((function(){c<a&&l()}),o+1),e.addEventListener(s,u)}var Di=/\b(transform|all)(,|$)/;function Oi(e,t){var n,r=window.getComputedStyle(e),i=(r[wi+"Delay"]||"").split(", "),o=(r[wi+"Duration"]||"").split(", "),a=Pi(i,o),s=(r[Ci+"Delay"]||"").split(", "),c=(r[Ci+"Duration"]||"").split(", "),l=Pi(s,c),u=0,d=0;return t===yi?a>0&&(n=yi,u=a,d=o.length):t===ki?l>0&&(n=ki,u=l,d=c.length):d=(n=(u=Math.max(a,l))>0?a>l?yi:ki:null)?n===yi?o.length:c.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===yi&&Di.test(r[wi+"Property"])}}function Pi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Ii(t)+Ii(e[n])})))}function Ii(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ji(e,t){var n=e.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=vi(e.data.transition);if(!i(r)&&!o(n._enterCb)&&1===n.nodeType){for(var a=r.css,s=r.type,l=r.enterClass,u=r.enterToClass,d=r.enterActiveClass,f=r.appearClass,h=r.appearToClass,m=r.appearActiveClass,v=r.beforeEnter,g=r.enter,b=r.afterEnter,y=r.enterCancelled,k=r.beforeAppear,w=r.appear,_=r.afterAppear,C=r.appearCancelled,A=r.duration,x=Gt,S=Gt.$vnode;S&&S.parent;)x=S.context,S=S.parent;var M=!x._isMounted||!e.isRootInsert;if(!M||w||""===w){var E=M&&f?f:l,T=M&&m?m:d,D=M&&h?h:u,O=M&&k||v,P=M&&"function"==typeof w?w:g,I=M&&_||b,j=M&&C||y,N=p(c(A)?A.enter:A),L=!1!==a&&!X,B=Li(P),F=n._enterCb=R((function(){L&&(Ei(n,D),Ei(n,T)),F.cancelled?(L&&Ei(n,E),j&&j(n)):I&&I(n),n._enterCb=null}));e.data.show||st(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),P&&P(n,F)})),O&&O(n),L&&(Mi(n,E),Mi(n,T),Si((function(){Ei(n,E),F.cancelled||(Mi(n,D),B||(Ri(N)?setTimeout(F,N):Ti(n,s,F)))}))),e.data.show&&(t&&t(),P&&P(n,F)),L||B||F()}}}function Ni(e,t){var n=e.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=vi(e.data.transition);if(i(r)||1!==n.nodeType)return t();if(!o(n._leaveCb)){var a=r.css,s=r.type,l=r.leaveClass,u=r.leaveToClass,d=r.leaveActiveClass,f=r.beforeLeave,h=r.leave,m=r.afterLeave,v=r.leaveCancelled,g=r.delayLeave,b=r.duration,y=!1!==a&&!X,k=Li(h),w=p(c(b)?b.leave:b),_=n._leaveCb=R((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(Ei(n,u),Ei(n,d)),_.cancelled?(y&&Ei(n,l),v&&v(n)):(t(),m&&m(n)),n._leaveCb=null}));g?g(C):C()}function C(){_.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),f&&f(n),y&&(Mi(n,l),Mi(n,d),Si((function(){Ei(n,l),_.cancelled||(Mi(n,u),k||(Ri(w)?setTimeout(_,w):Ti(n,s,_)))}))),h&&h(n,_),y||k||_())}}function Ri(e){return"number"==typeof e&&!isNaN(e)}function Li(e){if(i(e))return!1;var t=e.fns;return o(t)?Li(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Bi(e,t){!0!==t.data.show&&ji(t)}var Fi=function(e){var t,n,r={},c=e.modules,l=e.nodeOps;for(t=0;t<er.length;++t)for(r[er[t]]=[],n=0;n<c.length;++n)o(c[n][er[t]])&&r[er[t]].push(c[n][er[t]]);function u(e){var t=l.parentNode(e);o(t)&&l.removeChild(t,e)}function d(e,t,n,i,s,c,u){if(o(e.elm)&&o(c)&&(e=c[u]=ye(e)),e.isRootInsert=!s,!function(e,t,n,i){var s=e.data;if(o(s)){var c=o(e.componentInstance)&&s.keepAlive;if(o(s=s.hook)&&o(s=s.init)&&s(e,!1),o(e.componentInstance))return f(e,t),h(n,e.elm,i),a(c)&&function(e,t,n,i){for(var a,s=e;s.componentInstance;)if(o(a=(s=s.componentInstance._vnode).data)&&o(a=a.transition)){for(a=0;a<r.activate.length;++a)r.activate[a](Zn,s);t.push(s);break}h(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var d=e.data,m=e.children,v=e.tag;o(v)?(e.elm=e.ns?l.createElementNS(e.ns,v):l.createElement(v,e),b(e),p(e,m,t),o(d)&&g(e,t),h(n,e.elm,i)):a(e.isComment)?(e.elm=l.createComment(e.text),h(n,e.elm,i)):(e.elm=l.createTextNode(e.text),h(n,e.elm,i))}}function f(e,t){o(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,v(e)?(g(e,t),b(e)):(Jn(e),t.push(e))}function h(e,t,n){o(e)&&(o(n)?l.parentNode(n)===e&&l.insertBefore(e,t,n):l.appendChild(e,t))}function p(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)d(t[r],n,e.elm,null,!0,t,r);else s(e.text)&&l.appendChild(e.elm,l.createTextNode(String(e.text)))}function v(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return o(e.tag)}function g(e,n){for(var i=0;i<r.create.length;++i)r.create[i](Zn,e);o(t=e.data.hook)&&(o(t.create)&&t.create(Zn,e),o(t.insert)&&n.push(e))}function b(e){var t;if(o(t=e.fnScopeId))l.setStyleScope(e.elm,t);else for(var n=e;n;)o(t=n.context)&&o(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t),n=n.parent;o(t=Gt)&&t!==e.context&&t!==e.fnContext&&o(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t)}function y(e,t,n,r,i,o){for(;r<=i;++r)d(n[r],o,e,t,!1,n,r)}function k(e){var t,n,i=e.data;if(o(i))for(o(t=i.hook)&&o(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(o(t=e.children))for(n=0;n<e.children.length;++n)k(e.children[n])}function w(e,t,n){for(;t<=n;++t){var r=e[t];o(r)&&(o(r.tag)?(_(r),k(r)):u(r.elm))}}function _(e,t){if(o(t)||o(e.data)){var n,i=r.remove.length+1;for(o(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&u(e)}return n.listeners=t,n}(e.elm,i),o(n=e.componentInstance)&&o(n=n._vnode)&&o(n.data)&&_(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);o(n=e.data.hook)&&o(n=n.remove)?n(e,t):t()}else u(e.elm)}function C(e,t,n,r){for(var i=n;i<r;i++){var a=t[i];if(o(a)&&tr(e,a))return i}}function A(e,t,n,s,c,u){if(e!==t){o(t.elm)&&o(s)&&(t=s[c]=ye(t));var f=t.elm=e.elm;if(a(e.isAsyncPlaceholder))o(t.asyncFactory.resolved)?M(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,p=t.data;o(p)&&o(h=p.hook)&&o(h=h.prepatch)&&h(e,t);var m=e.children,g=t.children;if(o(p)&&v(t)){for(h=0;h<r.update.length;++h)r.update[h](e,t);o(h=p.hook)&&o(h=h.update)&&h(e,t)}i(t.text)?o(m)&&o(g)?m!==g&&function(e,t,n,r,a){for(var s,c,u,f=0,h=0,p=t.length-1,m=t[0],v=t[p],g=n.length-1,b=n[0],k=n[g],_=!a;f<=p&&h<=g;)i(m)?m=t[++f]:i(v)?v=t[--p]:tr(m,b)?(A(m,b,r,n,h),m=t[++f],b=n[++h]):tr(v,k)?(A(v,k,r,n,g),v=t[--p],k=n[--g]):tr(m,k)?(A(m,k,r,n,g),_&&l.insertBefore(e,m.elm,l.nextSibling(v.elm)),m=t[++f],k=n[--g]):tr(v,b)?(A(v,b,r,n,h),_&&l.insertBefore(e,v.elm,m.elm),v=t[--p],b=n[++h]):(i(s)&&(s=nr(t,f,p)),i(c=o(b.key)?s[b.key]:C(b,t,f,p))?d(b,r,e,m.elm,!1,n,h):tr(u=t[c],b)?(A(u,b,r,n,h),t[c]=void 0,_&&l.insertBefore(e,u.elm,m.elm)):d(b,r,e,m.elm,!1,n,h),b=n[++h]);f>p?y(e,i(n[g+1])?null:n[g+1].elm,n,h,g,r):h>g&&w(t,f,p)}(f,m,g,n,u):o(g)?(o(e.text)&&l.setTextContent(f,""),y(f,null,g,0,g.length-1,n)):o(m)?w(m,0,m.length-1):o(e.text)&&l.setTextContent(f,""):e.text!==t.text&&l.setTextContent(f,t.text),o(p)&&o(h=p.hook)&&o(h=h.postpatch)&&h(e,t)}}}function x(e,t,n){if(a(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var S=m("attrs,class,staticClass,staticStyle,key");function M(e,t,n,r){var i,s=t.tag,c=t.data,l=t.children;if(r=r||c&&c.pre,t.elm=e,a(t.isComment)&&o(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(o(c)&&(o(i=c.hook)&&o(i=i.init)&&i(t,!0),o(i=t.componentInstance)))return f(t,n),!0;if(o(s)){if(o(l))if(e.hasChildNodes())if(o(i=c)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,h=0;h<l.length;h++){if(!d||!M(d,l[h],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else p(t,l,n);if(o(c)){var m=!1;for(var v in c)if(!S(v)){m=!0,g(t,n);break}!m&&c.class&&rt(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!i(t)){var c,u=!1,f=[];if(i(e))u=!0,d(t,f);else{var h=o(e.nodeType);if(!h&&tr(e,t))A(e,t,f,null,null,s);else{if(h){if(1===e.nodeType&&e.hasAttribute(L)&&(e.removeAttribute(L),n=!0),a(n)&&M(e,t,f))return x(t,f,!0),e;c=e,e=new me(l.tagName(c).toLowerCase(),{},[],void 0,c)}var p=e.elm,m=l.parentNode(p);if(d(t,f,p._leaveCb?null:m,l.nextSibling(p)),o(t.parent))for(var g=t.parent,b=v(t);g;){for(var y=0;y<r.destroy.length;++y)r.destroy[y](g);if(g.elm=t.elm,b){for(var _=0;_<r.create.length;++_)r.create[_](Zn,g);var C=g.data.hook.insert;if(C.merged)for(var S=1;S<C.fns.length;S++)C.fns[S]()}else Jn(g);g=g.parent}o(m)?w([e],0,0):o(e.tag)&&k(e)}}return x(t,f,u),t.elm}o(e)&&k(e)}}({nodeOps:Qn,modules:[hr,wr,Jr,ti,fi,W?{create:Bi,activate:Bi,remove:function(e,t){!0!==e.data.show?Ni(e,t):t()}}:{}].concat(lr)});X&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Yi(e,"input")}));var zi={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?st(n,"postpatch",(function(){zi.componentUpdated(e,t,n)})):Vi(e,t,n.context),e._vOptions=[].map.call(e.options,Ui)):("textarea"===n.tag||Kn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",qi),e.addEventListener("compositionend",Wi),e.addEventListener("change",Wi),X&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Vi(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Ui);i.some((function(e,t){return!j(e,r[t])}))&&(e.multiple?t.value.some((function(e){return Hi(e,i)})):t.value!==t.oldValue&&Hi(t.value,i))&&Yi(e,"change")}}};function Vi(e,t,n){$i(e,t,n),(Q||J)&&setTimeout((function(){$i(e,t,n)}),0)}function $i(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=N(r,Ui(a))>-1,a.selected!==o&&(a.selected=o);else if(j(Ui(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Hi(e,t){return t.every((function(t){return!j(t,e)}))}function Ui(e){return"_value"in e?e._value:e.value}function qi(e){e.target.composing=!0}function Wi(e){e.target.composing&&(e.target.composing=!1,Yi(e.target,"input"))}function Yi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ki(e){return!e.componentInstance||e.data&&e.data.transition?e:Ki(e.componentInstance._vnode)}var Gi={model:zi,show:{bind:function(e,t,n){var r=t.value,i=(n=Ki(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ji(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Ki(n)).data&&n.data.transition?(n.data.show=!0,r?ji(n,(function(){e.style.display=e.__vOriginalDisplay})):Ni(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Qi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Xi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Xi(Ut(t.children)):e}function Ji(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[C(o)]=i[o];return t}function Zi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var eo=function(e){return e.tag||Ht(e)},to=function(e){return"show"===e.name},no={name:"transition",props:Qi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(eo)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Xi(i);if(!o)return i;if(this._leaving)return Zi(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=Ji(this),l=this._vnode,u=Xi(l);if(o.data.directives&&o.data.directives.some(to)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!Ht(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=T({},c);if("out-in"===r)return this._leaving=!0,st(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Zi(e,i);if("in-out"===r){if(Ht(o))return l;var f,h=function(){f()};st(c,"afterEnter",h),st(c,"enterCancelled",h),st(d,"delayLeave",(function(e){f=e}))}}return i}}},ro=T({tag:String,moveClass:String},Qi);function io(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function oo(e){e.data.newPos=e.elm.getBoundingClientRect()}function ao(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete ro.mode;var so={Transition:no,TransitionGroup:{props:ro,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Qt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ji(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a)}if(r){for(var l=[],u=[],d=0;d<r.length;d++){var f=r[d];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?l.push(f):u.push(f)}this.kept=e(t,null,l),this.removed=u}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(io),e.forEach(oo),e.forEach(ao),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;Mi(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(_i,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(_i,e),n._moveCb=null,Ei(n,t))})}})))},methods:{hasMove:function(e,t){if(!bi)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){mi(n,e)})),pi(n,t),n.style.display="none",this.$el.appendChild(n);var r=Oi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};_n.config.mustUseProp=On,_n.config.isReservedTag=qn,_n.config.isReservedAttr=Tn,_n.config.getTagNamespace=Wn,_n.config.isUnknownElement=function(e){if(!W)return!0;if(qn(e))return!1;if(e=e.toLowerCase(),null!=Yn[e])return Yn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Yn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Yn[e]=/HTMLUnknownElement/.test(t.toString())},T(_n.options.directives,Gi),T(_n.options.components,so),_n.prototype.__patch__=W?Fi:O,_n.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ge),Zt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new fn(e,r,O,{before:function(){e._isMounted&&!e._isDestroyed&&Zt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Zt(e,"mounted")),e}(this,e=e&&W?Gn(e):void 0,t)},W&&setTimeout((function(){z.devtools&&oe&&oe.emit("init",_n)}),0);var co,lo=/\{\{((?:.|\r?\n)+?)\}\}/g,uo=/[-.*+?^${}()|[\]\/\\]/g,fo=w((function(e){var t=e[0].replace(uo,"\\$&"),n=e[1].replace(uo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")})),ho={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=jr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Ir(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},po={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=jr(e,"style");n&&(e.staticStyle=JSON.stringify(ni(n)));var r=Ir(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},mo=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),vo=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),go=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),bo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,yo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ko="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+V.source+"]*",wo="((?:"+ko+"\\:)?"+ko+")",_o=new RegExp("^<"+wo),Co=/^\s*(\/?)>/,Ao=new RegExp("^<\\/"+wo+"[^>]*>"),xo=/^<!DOCTYPE [^>]+>/i,So=/^<!\--/,Mo=/^<!\[/,Eo=m("script,style,textarea",!0),To={},Do={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},Oo=/&(?:lt|gt|quot|amp|#39);/g,Po=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Io=m("pre,textarea",!0),jo=function(e,t){return e&&Io(e)&&"\n"===t[0]};function No(e,t){var n=t?Po:Oo;return e.replace(n,(function(e){return Do[e]}))}var Ro,Lo,Bo,Fo,zo,Vo,$o,Ho,Uo=/^@|^v-on:/,qo=/^v-|^@|^:|^#/,Wo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ko=/^\(|\)$/g,Go=/^\[.*\]$/,Qo=/:(.*)$/,Xo=/^:|^\.|^v-bind:/,Jo=/\.[^.\]]+(?=[^\]]*$)/g,Zo=/^v-slot(:|$)|^#/,ea=/[\r\n]/,ta=/\s+/g,na=w((function(e){return(co=co||document.createElement("div")).innerHTML=e,co.textContent})),ra="_empty_";function ia(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ua(t),rawAttrsMap:{},parent:n,children:[]}}function oa(e,t){var n,r;(r=Ir(n=e,"key"))&&(n.key=r),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Ir(e,"ref");t&&(e.ref=t,e.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=jr(e,"scope"),e.slotScope=t||jr(e,"slot-scope")):(t=jr(e,"slot-scope"))&&(e.slotScope=t);var n=Ir(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Er(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot"))),"template"===e.tag){var r=Nr(e,Zo);if(r){var i=ca(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||ra}}else{var s=Nr(e,Zo);if(s){var c=e.scopedSlots||(e.scopedSlots={}),l=ca(s),u=l.name,d=l.dynamic,f=c[u]=ia("template",[],e);f.slotTarget=u,f.slotTargetDynamic=d,f.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=f,!0})),f.slotScope=s.value||ra,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=Ir(e,"name"))}(e),function(e){var t;(t=Ir(e,"is"))&&(e.component=t),null!=jr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var i=0;i<Bo.length;i++)e=Bo[i](e,t)||e;return function(e){var t,n,r,i,o,a,s,c,l=e.attrsList;for(t=0,n=l.length;t<n;t++)if(r=i=l[t].name,o=l[t].value,qo.test(r))if(e.hasBindings=!0,(a=la(r.replace(qo,"")))&&(r=r.replace(Jo,"")),Xo.test(r))r=r.replace(Xo,""),o=Cr(o),(c=Go.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=C(r))&&(r="innerHTML"),a.camel&&!c&&(r=C(r)),a.sync&&(s=Br(o,"$event"),c?Pr(e,'"update:"+('+r+")",s,null,!1,0,l[t],!0):(Pr(e,"update:"+C(r),s,null,!1,0,l[t]),S(r)!==C(r)&&Pr(e,"update:"+S(r),s,null,!1,0,l[t])))),a&&a.prop||!e.component&&$o(e.tag,e.attrsMap.type,r)?Mr(e,r,o,l[t],c):Er(e,r,o,l[t],c);else if(Uo.test(r))r=r.replace(Uo,""),(c=Go.test(r))&&(r=r.slice(1,-1)),Pr(e,r,o,a,!1,0,l[t],c);else{var u=(r=r.replace(qo,"")).match(Qo),d=u&&u[1];c=!1,d&&(r=r.slice(0,-(d.length+1)),Go.test(d)&&(d=d.slice(1,-1),c=!0)),Dr(e,r,i,o,d,c,a,l[t])}else Er(e,r,JSON.stringify(o),l[t]),!e.component&&"muted"===r&&$o(e.tag,e.attrsMap.type,r)&&Mr(e,r,"true",l[t])}(e),e}function aa(e){var t;if(t=jr(e,"v-for")){var n=function(e){var t=e.match(Wo);if(t){var n={};n.for=t[2].trim();var r=t[1].trim().replace(Ko,""),i=r.match(Yo);return i?(n.alias=r.replace(Yo,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}(t);n&&T(e,n)}}function sa(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function ca(e){var t=e.name.replace(Zo,"");return t||"#"!==e.name[0]&&(t="default"),Go.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function la(e){var t=e.match(Jo);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function ua(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}var da=/^xmlns:NS\d+/,fa=/^NS\d+:/;function ha(e){return ia(e.tag,e.attrsList.slice(),e.parent)}var pa,ma,va=[ho,po,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Ir(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=jr(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=jr(e,"v-else",!0),s=jr(e,"v-else-if",!0),c=ha(e);aa(c),Tr(c,"type","checkbox"),oa(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+o,sa(c,{exp:c.if,block:c});var l=ha(e);jr(l,"v-for",!0),Tr(l,"type","radio"),oa(l,t),sa(c,{exp:"("+n+")==='radio'"+o,block:l});var u=ha(e);return jr(u,"v-for",!0),Tr(u,":type",n),oa(u,t),sa(c,{exp:i,block:u}),a?c.else=!0:s&&(c.elseif=s),c}}}}],ga={expectHTML:!0,modules:va,directives:{model:function(e,t,n){var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Lr(e,r,i),!1;if("select"===o)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";Pr(e,"change",r=r+" "+Br(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}(e,r,i);else if("input"===o&&"checkbox"===a)!function(e,t,n){var r=n&&n.number,i=Ir(e,"value")||"null",o=Ir(e,"true-value")||"true",a=Ir(e,"false-value")||"false";Mr(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Pr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Br(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Br(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Br(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Ir(e,"value")||"null";Mr(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Pr(e,"change",Br(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,l=o?"change":"range"===r?qr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var d=Br(t,u);c&&(d="if($event.target.composing)return;"+d),Mr(e,"value","("+t+")"),Pr(e,l,d,null,!0),(s||a)&&Pr(e,"blur","$forceUpdate()")}(e,r,i);else if(!z.isReservedTag(o))return Lr(e,r,i),!1;return!0},text:function(e,t){t.value&&Mr(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Mr(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:mo,mustUseProp:On,canBeLeftOpenTag:vo,isReservedTag:qn,getTagNamespace:Wn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(va)},ba=w((function(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));var ya=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,ka=/\([^)]*?\);*$/,wa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,_a={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ca={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Aa=function(e){return"if("+e+")return null;"},xa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Aa("$event.target !== $event.currentTarget"),ctrl:Aa("!$event.ctrlKey"),shift:Aa("!$event.shiftKey"),alt:Aa("!$event.altKey"),meta:Aa("!$event.metaKey"),left:Aa("'button' in $event && $event.button !== 0"),middle:Aa("'button' in $event && $event.button !== 1"),right:Aa("'button' in $event && $event.button !== 2")};function Sa(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Ma(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Ma(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Ma(e)})).join(",")+"]";var t=wa.test(e.value),n=ya.test(e.value),r=wa.test(e.value.replace(ka,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(xa[s])o+=xa[s],_a[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=Aa(["ctrl","shift","alt","meta"].filter((function(e){return!c[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ea).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ea(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=_a[e],r=Ca[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ta={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:O},Da=function(e){this.options=e,this.warn=e.warn||xr,this.transforms=Sr(e.modules,"transformCode"),this.dataGenFns=Sr(e.modules,"genData"),this.directives=T(T({},Ta),e.directives);var t=e.isReservedTag||P;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Oa(e,t){var n=new Da(t);return{render:"with(this){return "+(e?Pa(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Pa(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ia(e,t);if(e.once&&!e.onceProcessed)return ja(e,t);if(e.for&&!e.forProcessed)return Ra(e,t);if(e.if&&!e.ifProcessed)return Na(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=za(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Ha((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:C(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:za(t,n,!0);return"_c("+e+","+La(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=La(e,t));var i=e.inlineTemplate?null:za(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return za(e,t)||"void 0"}function Ia(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+Pa(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function ja(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Na(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+Pa(e,t)+","+t.onceId+++","+n+")":Pa(e,t)}return Ia(e,t)}function Na(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,i){if(!t.length)return i||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+e(t,n,r,i):""+a(o.block);function a(e){return r?r(e,n):e.once?ja(e,n):Pa(e,n)}}(e.ifConditions.slice(),t,n,r)}function Ra(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||Pa)(e,t)+"})"}function La(e,t){var n="{",r=function(e,t){var n=e.directives;if(n){var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var l=t.directives[o.name];l&&(a=!!l(e,o,t.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return c?s.slice(0,-1)+"]":void 0}}(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+Ha(e.attrs)+","),e.props&&(n+="domProps:"+Ha(e.props)+","),e.events&&(n+=Sa(e.events,!1)+","),e.nativeEvents&&(n+=Sa(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,t,n){var r=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Ba(n)})),i=!!e.if;if(!r)for(var o=e.parent;o;){if(o.slotScope&&o.slotScope!==ra||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(t).map((function(e){return Fa(t[e],n)})).join(",");return"scopedSlots:_u(["+a+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=Oa(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Ha(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ba(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ba))}function Fa(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Na(e,t,Fa,"null");if(e.for&&!e.forProcessed)return Ra(e,t,Fa);var r=e.slotScope===ra?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(za(e,t)||"undefined")+":undefined":za(e,t)||"undefined":Pa(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function za(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Pa)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(Va(i)||i.ifConditions&&i.ifConditions.some((function(e){return Va(e.block)}))){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}(o,t.maybeComponent):0,l=i||$a;return"["+o.map((function(e){return l(e,t)})).join(",")+"]"+(c?","+c:"")}}function Va(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function $a(e,t){return 1===e.type?Pa(e,t):3===e.type&&e.isComment?(r=e,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=e).type?n.expression:Ua(JSON.stringify(n.text)))+")";var n,r}function Ha(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=Ua(i.value);i.dynamic?n+=i.name+","+o+",":t+='"'+i.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function Ua(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function qa(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),O}}function Wa(e){var t=Object.create(null);return function(n,r,i){(r=T({},r)).warn,delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r),s={},c=[];return s.render=qa(a.render,c),s.staticRenderFns=a.staticRenderFns.map((function(e){return qa(e,c)})),t[o]=s}}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b");var Ya,Ka,Ga=(Ya=function(e,t){var n=function(e,t){Ro=t.warn||xr,Vo=t.isPreTag||P,$o=t.mustUseProp||P,Ho=t.getTagNamespace||P,t.isReservedTag,Bo=Sr(t.modules,"transformNode"),Fo=Sr(t.modules,"preTransformNode"),zo=Sr(t.modules,"postTransformNode"),Lo=t.delimiters;var n,r,i=[],o=!1!==t.preserveWhitespace,a=t.whitespace,s=!1,c=!1;function l(e){if(u(e),s||e.processed||(e=oa(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&sa(n,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)a=e,(l=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children))&&l.if&&sa(l,{exp:a.elseif,block:a});else{if(e.slotScope){var o=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[o]=e}r.children.push(e),e.parent=r}var a,l;e.children=e.children.filter((function(e){return!e.slotScope})),u(e),e.pre&&(s=!1),Vo(e.tag)&&(c=!1);for(var d=0;d<zo.length;d++)zo[d](e,t)}function u(e){if(!c)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||P,s=t.canBeLeftOpenTag||P,c=0;e;){if(n=e,r&&Eo(r)){var l=0,u=r.toLowerCase(),d=To[u]||(To[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),f=e.replace(d,(function(e,n,r){return l=r.length,Eo(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),jo(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));c+=e.length-f.length,e=f,S(u,c-l,c)}else{var h=e.indexOf("<");if(0===h){if(So.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),c,c+p+3),C(p+3);continue}}if(Mo.test(e)){var m=e.indexOf("]>");if(m>=0){C(m+2);continue}}var v=e.match(xo);if(v){C(v[0].length);continue}var g=e.match(Ao);if(g){var b=c;C(g[0].length),S(g[1],b,c);continue}var y=A();if(y){x(y),jo(y.tagName,e)&&C(1);continue}}var k=void 0,w=void 0,_=void 0;if(h>=0){for(w=e.slice(h);!(Ao.test(w)||_o.test(w)||So.test(w)||Mo.test(w)||(_=w.indexOf("<",1))<0);)h+=_,w=e.slice(h);k=e.substring(0,h)}h<0&&(k=e),k&&C(k.length),t.chars&&k&&t.chars(k,c-k.length,c)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function A(){var t=e.match(_o);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(Co))&&(r=e.match(yo)||e.match(bo));)r.start=c,C(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function x(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&go(n)&&S(r),s(n)&&r===n&&S(n));for(var l=a(n)||!!c,u=e.attrs.length,d=new Array(u),f=0;f<u;f++){var h=e.attrs[f],p=h[3]||h[4]||h[5]||"",m="a"===n&&"href"===h[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[f]={name:h[1],value:No(p,m)}}l||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),r=n),t.start&&t.start(n,d,l,e.start,e.end)}function S(e,n,o){var a,s;if(null==n&&(n=c),null==o&&(o=c),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var l=i.length-1;l>=a;l--)t.end&&t.end(i[l].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}S()}(e,{warn:Ro,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,u,d){var f=r&&r.ns||Ho(e);Q&&"svg"===f&&(o=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];da.test(r.name)||(r.name=r.name.replace(fa,""),t.push(r))}return t}(o));var h,p=ia(e,o,r);f&&(p.ns=f),"style"!==(h=p).tag&&("script"!==h.tag||h.attrsMap.type&&"text/javascript"!==h.attrsMap.type)||ie()||(p.forbidden=!0);for(var m=0;m<Fo.length;m++)p=Fo[m](p,t)||p;s||(function(e){null!=jr(e,"v-pre")&&(e.pre=!0)}(p),p.pre&&(s=!0)),Vo(p.tag)&&(c=!0),s?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}(p):p.processed||(aa(p),function(e){var t=jr(e,"v-if");if(t)e.if=t,sa(e,{exp:t,block:e});else{null!=jr(e,"v-else")&&(e.else=!0);var n=jr(e,"v-else-if");n&&(e.elseif=n)}}(p),function(e){null!=jr(e,"v-once")&&(e.once=!0)}(p)),n||(n=p),a?l(p):(r=p,i.push(p))},end:function(e,t,n){var o=i[i.length-1];i.length-=1,r=i[i.length-1],l(o)},chars:function(e,t,n){if(r&&(!Q||"textarea"!==r.tag||r.attrsMap.placeholder!==e)){var i,l,u,d=r.children;(e=c||e.trim()?"script"===(i=r).tag||"style"===i.tag?e:na(e):d.length?a?"condense"===a&&ea.test(e)?"":" ":o?" ":"":"")&&(c||"condense"!==a||(e=e.replace(ta," ")),!s&&" "!==e&&(l=function(e,t){var n=t?fo(t):lo;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(i=r.index)>c&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var l=Cr(r[1].trim());a.push("_s("+l+")"),s.push({"@binding":l}),c=i+r[0].length}return c<e.length&&(s.push(o=e.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(e,Lo))?u={type:2,expression:l.expression,tokens:l.tokens,text:e}:" "===e&&d.length&&" "===d[d.length-1].text||(u={type:3,text:e}),u&&d.push(u))}},comment:function(e,t,n){if(r){var i={type:3,text:e,isComment:!0};r.children.push(i)}}}),n}(e.trim(),t);!1!==t.optimize&&function(e,t){e&&(pa=ba(t.staticKeys||""),ma=t.isReservedTag||P,function e(t){if(t.static=function(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!ma(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(pa))))}(t),1===t.type){if(!ma(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var i=t.children[n];e(i),i.static||(t.static=!1)}if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++){var s=t.ifConditions[o].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,i=t.children.length;r<i;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++)e(t.ifConditions[o].block,n)}}(e,!1))}(n,t);var r=Oa(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),i=[],o=[];if(n)for(var a in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=T(Object.create(e.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(r[a]=n[a]);r.warn=function(e,t,n){(n?o:i).push(e)};var s=Ya(t.trim(),r);return s.errors=i,s.tips=o,s}return{compile:t,compileToFunctions:Wa(t)}})(ga),Qa=(Ga.compile,Ga.compileToFunctions);function Xa(e){return(Ka=Ka||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Ka.innerHTML.indexOf(" ")>0}var Ja=!!W&&Xa(!1),Za=!!W&&Xa(!0),es=w((function(e){var t=Gn(e);return t&&t.innerHTML})),ts=_n.prototype.$mount;_n.prototype.$mount=function(e,t){if((e=e&&Gn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=es(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=Qa(r,{outputSourceRange:!1,shouldDecodeNewlines:Ja,shouldDecodeNewlinesForHref:Za,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return ts.call(this,e,t)},_n.compile=Qa,e.exports=_n}).call(this,n(7),n(122).setImmediate)},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(123),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(7))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,l={},u=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return l[c]=i,r(c),c++},f.clearImmediate=h}function h(e){delete l[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=l[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(7),n(58))},function(e,t,n){var r,i,o,a,s,c,l,u,d;o={id:"sifter",exports:{},loaded:!1},r="function"==typeof(i=function(){var e=function(e,t){this.items=e,this.settings=t||{diacritics:!0}};e.prototype.tokenize=function(e){if(!(e=i(String(e||"").toLowerCase()))||!e.length)return[];var t,n,r,a,c=[],l=e.split(/ +/);for(t=0,n=l.length;t<n;t++){if(r=o(l[t]),this.settings.diacritics)for(a in s)s.hasOwnProperty(a)&&(r=r.replace(new RegExp(a,"g"),s[a]));c.push({string:l[t],regex:new RegExp(r,"i")})}return c},e.prototype.iterator=function(e,t){(a(e)?Array.prototype.forEach||function(e){for(var t=0,n=this.length;t<n;t++)e(this[t],t,this)}:function(e){for(var t in this)this.hasOwnProperty(t)&&e(this[t],t,this)}).apply(e,[t])},e.prototype.getScoreFunction=function(e,t){var n,i,o,a;e=this.prepareSearch(e,t),i=e.tokens,n=e.options.fields,o=i.length,a=e.options.nesting;var s=function(e,t){var n,r;return e?-1===(r=(e=String(e||"")).search(t.regex))?0:(n=t.string.length/e.length,0===r&&(n+=.5),n):0},c=function(){var e=n.length;return e?1===e?function(e,t){return s(r(t,n[0],a),e)}:function(t,i){for(var o=0,c=0;o<e;o++)c+=s(r(i,n[o],a),t);return c/e}:function(){return 0}}();return o?1===o?function(e){return c(i[0],e)}:"and"===e.options.conjunction?function(e){for(var t,n=0,r=0;n<o;n++){if((t=c(i[n],e))<=0)return 0;r+=t}return r/o}:function(e){for(var t=0,n=0;t<o;t++)n+=c(i[t],e);return n/o}:function(){return 0}},e.prototype.getSortFunction=function(e,n){var i,o,a,s,c,l,u,d,f,h,p;if(p=!(e=(a=this).prepareSearch(e,n)).query&&n.sort_empty||n.sort,f=function(e,t){return"$score"===e?t.score:r(a.items[t.id],e,n.nesting)},c=[],p)for(i=0,o=p.length;i<o;i++)(e.query||"$score"!==p[i].field)&&c.push(p[i]);if(e.query){for(h=!0,i=0,o=c.length;i<o;i++)if("$score"===c[i].field){h=!1;break}h&&c.unshift({field:"$score",direction:"desc"})}else for(i=0,o=c.length;i<o;i++)if("$score"===c[i].field){c.splice(i,1);break}for(d=[],i=0,o=c.length;i<o;i++)d.push("desc"===c[i].direction?-1:1);return(l=c.length)?1===l?(s=c[0].field,u=d[0],function(e,n){return u*t(f(s,e),f(s,n))}):function(e,n){var r,i,o;for(r=0;r<l;r++)if(o=c[r].field,i=d[r]*t(f(o,e),f(o,n)))return i;return 0}:null},e.prototype.prepareSearch=function(e,t){if("object"==typeof e)return e;var r=(t=n({},t)).fields,i=t.sort,o=t.sort_empty;return r&&!a(r)&&(t.fields=[r]),i&&!a(i)&&(t.sort=[i]),o&&!a(o)&&(t.sort_empty=[o]),{options:t,query:String(e||"").toLowerCase(),tokens:this.tokenize(e),total:0,items:[]}},e.prototype.search=function(e,t){var n,r,i,o,a=this;return r=this.prepareSearch(e,t),t=r.options,e=r.query,o=t.score||a.getScoreFunction(r),e.length?a.iterator(a.items,(function(e,i){n=o(e),(!1===t.filter||n>0)&&r.items.push({score:n,id:i})})):a.iterator(a.items,(function(e,t){r.items.push({score:1,id:t})})),(i=a.getSortFunction(r,t))&&r.items.sort(i),r.total=r.items.length,"number"==typeof t.limit&&(r.items=r.items.slice(0,t.limit)),r};var t=function(e,t){return"number"==typeof e&&"number"==typeof t?e>t?1:e<t?-1:0:(e=c(String(e||"")))>(t=c(String(t||"")))?1:t>e?-1:0},n=function(e,t){var n,r,i,o;for(n=1,r=arguments.length;n<r;n++)if(o=arguments[n])for(i in o)o.hasOwnProperty(i)&&(e[i]=o[i]);return e},r=function(e,t,n){if(e&&t){if(!n)return e[t];for(var r=t.split(".");r.length&&(e=e[r.shift()]););return e}},i=function(e){return(e+"").replace(/^\s+|\s+$|/g,"")},o=function(e){return(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},a=Array.isArray||"undefined"!=typeof $&&$.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s={a:"[aḀḁĂăÂâǍǎȺⱥȦȧẠạÄäÀàÁáĀāÃãÅåąĄÃąĄ]",b:"[b␢βΒB฿𐌁ᛒ]",c:"[cĆćĈĉČčĊċC̄c̄ÇçḈḉȻȼƇƈɕᴄCc]",d:"[dĎďḊḋḐḑḌḍḒḓḎḏĐđD̦d̦ƉɖƊɗƋƌᵭᶁᶑȡᴅDdð]",e:"[eÉéÈèÊêḘḙĚěĔĕẼẽḚḛẺẻĖėËëĒēȨȩĘęᶒɆɇȄȅẾếỀềỄễỂểḜḝḖḗḔḕȆȇẸẹỆệⱸᴇEeɘǝƏƐε]",f:"[fƑƒḞḟ]",g:"[gɢ₲ǤǥĜĝĞğĢģƓɠĠġ]",h:"[hĤĥĦħḨḩẖẖḤḥḢḣɦʰǶƕ]",i:"[iÍíÌìĬĭÎîǏǐÏïḮḯĨĩĮįĪīỈỉȈȉȊȋỊịḬḭƗɨɨ̆ᵻᶖİiIıɪIi]",j:"[jȷĴĵɈɉʝɟʲ]",k:"[kƘƙꝀꝁḰḱǨǩḲḳḴḵκϰ₭]",l:"[lŁłĽľĻļĹĺḶḷḸḹḼḽḺḻĿŀȽƚⱠⱡⱢɫɬᶅɭȴʟLl]",n:"[nŃńǸǹŇňÑñṄṅŅņṆṇṊṋṈṉN̈n̈ƝɲȠƞᵰᶇɳȵɴNnŊŋ]",o:"[oØøÖöÓóÒòÔôǑǒŐőŎŏȮȯỌọƟɵƠơỎỏŌōÕõǪǫȌȍՕօ]",p:"[pṔṕṖṗⱣᵽƤƥᵱ]",q:"[qꝖꝗʠɊɋꝘꝙq̃]",r:"[rŔŕɌɍŘřŖŗṘṙȐȑȒȓṚṛⱤɽ]",s:"[sŚśṠṡṢṣꞨꞩŜŝŠšŞşȘșS̈s̈]",t:"[tŤťṪṫŢţṬṭƮʈȚțṰṱṮṯƬƭ]",u:"[uŬŭɄʉỤụÜüÚúÙùÛûǓǔŰűŬŭƯưỦủŪūŨũŲųȔȕ∪]",v:"[vṼṽṾṿƲʋꝞꝟⱱʋ]",w:"[wẂẃẀẁŴŵẄẅẆẇẈẉ]",x:"[xẌẍẊẋχ]",y:"[yÝýỲỳŶŷŸÿỸỹẎẏỴỵɎɏƳƴ]",z:"[zŹźẐẑŽžŻżẒẓẔẕƵƶ]"},c=function(){var e,t,n,r,i="",o={};for(n in s)if(s.hasOwnProperty(n))for(i+=r=s[n].substring(2,s[n].length-1),e=0,t=r.length;e<t;e++)o[r.charAt(e)]=n;var a=new RegExp("["+i+"]","g");return function(e){return e.replace(a,(function(e){return o[e]})).toLowerCase()}}();return e})?i.call(o.exports,n,o.exports,o):i,o.loaded=!0,void 0!==r||(r=o.exports),c={id:"microplugin",exports:{},loaded:!1},a="function"==typeof(s=function(){var e={mixin:function(e){e.plugins={},e.prototype.initializePlugins=function(e){var n,r,i,o=this,a=[];if(o.plugins={names:[],settings:{},requested:{},loaded:{}},t.isArray(e))for(n=0,r=e.length;n<r;n++)"string"==typeof e[n]?a.push(e[n]):(o.plugins.settings[e[n].name]=e[n].options,a.push(e[n].name));else if(e)for(i in e)e.hasOwnProperty(i)&&(o.plugins.settings[i]=e[i],a.push(i));for(;a.length;)o.require(a.shift())},e.prototype.loadPlugin=function(t){var n=this,r=n.plugins,i=e.plugins[t];if(!e.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');r.requested[t]=!0,r.loaded[t]=i.fn.apply(n,[n.plugins.settings[t]||{}]),r.names.push(t)},e.prototype.require=function(e){var t=this,n=t.plugins;if(!t.plugins.loaded.hasOwnProperty(e)){if(n.requested[e])throw new Error('Plugin has circular dependency ("'+e+'")');t.loadPlugin(e)}return n.loaded[e]},e.define=function(t,n){e.plugins[t]={name:t,fn:n}}}},t={isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}};return e})?s.call(c.exports,n,c.exports,c):s,c.loaded=!0,void 0!==a||(a=c.exports),u=[n(36),r,a],void 0===(d="function"==typeof(l=function(e,t,n){"use strict";var r=function(e,t){if("string"!=typeof t||t.length){var n="string"==typeof t?new RegExp(t,"i"):t,r=function(e){var t=0;if(3===e.nodeType){var i=e.data.search(n);if(i>=0&&e.data.length>0){var o=e.data.match(n),a=document.createElement("span");a.className="highlight";var s=e.splitText(i),c=(s.splitText(o[0].length),s.cloneNode(!0));a.appendChild(c),s.parentNode.replaceChild(a,s),t=1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&("highlight"!==e.className||"SPAN"!==e.tagName))for(var l=0;l<e.childNodes.length;++l)l+=r(e.childNodes[l]);return t};return e.each((function(){r(this)}))}};e.fn.removeHighlight=function(){return this.find("span.highlight").each((function(){this.parentNode.firstChild.nodeName;var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()})).end()};var i=function(){};i.prototype={on:function(e,t){this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(t)},off:function(e,t){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[e]:(this._events=this._events||{},void(e in this._events!=0&&this._events[e].splice(this._events[e].indexOf(t),1)))},trigger:function(e){if(this._events=this._events||{},e in this._events!=0)for(var t=0;t<this._events[e].length;t++)this._events[e][t].apply(this,Array.prototype.slice.call(arguments,1))}},i.mixin=function(e){for(var t=["on","off","trigger"],n=0;n<t.length;n++)e.prototype[t[n]]=i.prototype[t[n]]};var o=/Mac/.test(navigator.userAgent),a=o?91:17,s=o?18:17,c=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("input").validity,l=function(e){return void 0!==e},u=function(e){return null==e?null:"boolean"==typeof e?e?"1":"0":e+""},d=function(e){return(e+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},f={before:function(e,t,n){var r=e[t];e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)}},after:function(e,t,n){var r=e[t];e[t]=function(){var t=r.apply(e,arguments);return n.apply(e,arguments),t}}},h=function(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}},p=function(e,t){var n;return function(){var r=this,i=arguments;window.clearTimeout(n),n=window.setTimeout((function(){e.apply(r,i)}),t)}},m=function(e,t,n){var r,i=e.trigger,o={};for(r in e.trigger=function(){var n=arguments[0];if(-1===t.indexOf(n))return i.apply(e,arguments);o[n]=arguments},n.apply(e,[]),e.trigger=i,o)o.hasOwnProperty(r)&&i.apply(e,o[r])},v=function(e){var t={};if("selectionStart"in e)t.start=e.selectionStart,t.length=e.selectionEnd-t.start;else if(document.selection){e.focus();var n=document.selection.createRange(),r=document.selection.createRange().text.length;n.moveStart("character",-e.value.length),t.start=n.text.length-r,t.length=r}return t},g=function(t,n){return t?(k.$testInput||(k.$testInput=e("<span />").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).appendTo("body")),k.$testInput.text(t),function(e,t,n){var r,i,o={};if(n)for(r=0,i=n.length;r<i;r++)o[n[r]]=e.css(n[r]);else o=e.css();t.css(o)}(n,k.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),k.$testInput.width()):0},b=function(e){var t=null,n=function(n,r){var i,o,a,s,c,l,u,d;r=r||{},(n=n||window.event||{}).metaKey||n.altKey||(r.force||!1!==e.data("grow"))&&(i=e.val(),n.type&&"keydown"===n.type.toLowerCase()&&(a=(o=n.keyCode)>=48&&o<=57||o>=65&&o<=90||o>=96&&o<=111||o>=186&&o<=222||32===o,46===o||8===o?(d=v(e[0])).length?i=i.substring(0,d.start)+i.substring(d.start+d.length):8===o&&d.start?i=i.substring(0,d.start-1)+i.substring(d.start+1):46===o&&void 0!==d.start&&(i=i.substring(0,d.start)+i.substring(d.start+1)):a&&(l=n.shiftKey,u=String.fromCharCode(n.keyCode),i+=u=l?u.toUpperCase():u.toLowerCase())),s=e.attr("placeholder"),!i&&s&&(i=s),(c=g(i,e)+4)!==t&&(t=c,e.width(c),e.triggerHandler("resize")))};e.on("keydown keyup update blur",n),n()},y=function(e){var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML},k=function(n,r){var i,o,a,s,c=this;(s=n[0]).selectize=c;var l=window.getComputedStyle&&window.getComputedStyle(s,null);if(a=(a=l?l.getPropertyValue("direction"):s.currentStyle&&s.currentStyle.direction)||n.parents("[dir]:first").attr("dir")||"",e.extend(c,{order:0,settings:r,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===s.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(a),eventNS:".selectize"+ ++k.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===r.loadThrottle?c.onSearchChange:p(c.onSearchChange,r.loadThrottle)}),c.sifter=new t(this.options,{diacritics:r.diacritics}),c.settings.options){for(i=0,o=c.settings.options.length;i<o;i++)c.registerOption(c.settings.options[i]);delete c.settings.options}if(c.settings.optgroups){for(i=0,o=c.settings.optgroups.length;i<o;i++)c.registerOptionGroup(c.settings.optgroups[i]);delete c.settings.optgroups}c.settings.mode=c.settings.mode||(1===c.settings.maxItems?"single":"multi"),"boolean"!=typeof c.settings.hideSelected&&(c.settings.hideSelected="multi"===c.settings.mode),c.initializePlugins(c.settings.plugins),c.setupCallbacks(),c.setupTemplates(),c.setup()};return i.mixin(k),void 0!==n?n.mixin(k):function(e,t){t||(t={}),console.error("Selectize: Dependency MicroPlugin is missing"),t.explanation&&(console.group&&console.group(),console.error(t.explanation),console.group&&console.groupEnd())}(0,{explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'}),e.extend(k.prototype,{setup:function(){var t,n,r,i,l,u,d,f,h,p,m=this,v=m.settings,g=m.eventNS,y=e(window),k=e(document),w=m.$input;if(d=m.settings.mode,f=w.attr("class")||"",t=e("<div>").addClass(v.wrapperClass).addClass(f).addClass(d),n=e("<div>").addClass(v.inputClass).addClass("items").appendTo(t),r=e('<input type="text" autocomplete="off" />').appendTo(n).attr("tabindex",w.is(":disabled")?"-1":m.tabIndex),u=e(v.dropdownParent||t),i=e("<div>").addClass(v.dropdownClass).addClass(d).hide().appendTo(u),l=e("<div>").addClass(v.dropdownContentClass).appendTo(i),(p=w.attr("id"))&&(r.attr("id",p+"-selectized"),e("label[for='"+p+"']").attr("for",p+"-selectized")),m.settings.copyClassesToDropdown&&i.addClass(f),t.css({width:w[0].style.width}),m.plugins.names.length&&(h="plugin-"+m.plugins.names.join(" plugin-"),t.addClass(h),i.addClass(h)),(null===v.maxItems||v.maxItems>1)&&1===m.tagType&&w.attr("multiple","multiple"),m.settings.placeholder&&r.attr("placeholder",v.placeholder),!m.settings.splitOn&&m.settings.delimiter){var _=m.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");m.settings.splitOn=new RegExp("\\s*"+_+"+\\s*")}w.attr("autocorrect")&&r.attr("autocorrect",w.attr("autocorrect")),w.attr("autocapitalize")&&r.attr("autocapitalize",w.attr("autocapitalize")),r[0].type=w[0].type,m.$wrapper=t,m.$control=n,m.$control_input=r,m.$dropdown=i,m.$dropdown_content=l,i.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",(function(e){e.stopImmediatePropagation()})),i.on("mouseenter","[data-selectable]",(function(){return m.onOptionHover.apply(m,arguments)})),i.on("mousedown click","[data-selectable]",(function(){return m.onOptionSelect.apply(m,arguments)})),function(e,t,n,r){e.on(t,n,(function(t){for(var n=t.target;n&&n.parentNode!==e[0];)n=n.parentNode;return t.currentTarget=n,r.apply(this,[t])}))}(n,"mousedown","*:not(input)",(function(){return m.onItemSelect.apply(m,arguments)})),b(r),n.on({mousedown:function(){return m.onMouseDown.apply(m,arguments)},click:function(){return m.onClick.apply(m,arguments)}}),r.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return m.onKeyDown.apply(m,arguments)},keyup:function(){return m.onKeyUp.apply(m,arguments)},keypress:function(){return m.onKeyPress.apply(m,arguments)},resize:function(){m.positionDropdown.apply(m,[])},blur:function(){return m.onBlur.apply(m,arguments)},focus:function(){return m.ignoreBlur=!1,m.onFocus.apply(m,arguments)},paste:function(){return m.onPaste.apply(m,arguments)}}),k.on("keydown"+g,(function(e){m.isCmdDown=e[o?"metaKey":"ctrlKey"],m.isCtrlDown=e[o?"altKey":"ctrlKey"],m.isShiftDown=e.shiftKey})),k.on("keyup"+g,(function(e){e.keyCode===s&&(m.isCtrlDown=!1),16===e.keyCode&&(m.isShiftDown=!1),e.keyCode===a&&(m.isCmdDown=!1)})),k.on("mousedown"+g,(function(e){if(m.isFocused){if(e.target===m.$dropdown[0]||e.target.parentNode===m.$dropdown[0])return!1;m.$control.has(e.target).length||e.target===m.$control[0]||m.blur(e.target)}})),y.on(["scroll"+g,"resize"+g].join(" "),(function(){m.isOpen&&m.positionDropdown.apply(m,arguments)})),y.on("mousemove"+g,(function(){m.ignoreHover=!1})),this.revertSettings={$children:w.children().detach(),tabindex:w.attr("tabindex")},w.attr("tabindex",-1).hide().after(m.$wrapper),e.isArray(v.items)&&(m.setValue(v.items),delete v.items),c&&w.on("invalid"+g,(function(e){e.preventDefault(),m.isInvalid=!0,m.refreshState()})),m.updateOriginalInput(),m.refreshItems(),m.refreshState(),m.updatePlaceholder(),m.isSetup=!0,w.is(":disabled")&&m.disable(),m.on("change",this.onChange),w.data("selectize",m),w.addClass("selectized"),m.trigger("initialize"),!0===v.preload&&m.onSearchChange("")},setupTemplates:function(){var t=this,n=t.settings.labelField,r=t.settings.optgroupLabelField,i={optgroup:function(e){return'<div class="optgroup">'+e.html+"</div>"},optgroup_header:function(e,t){return'<div class="optgroup-header">'+t(e[r])+"</div>"},option:function(e,t){return'<div class="option">'+t(e[n])+"</div>"},item:function(e,t){return'<div class="item">'+t(e[n])+"</div>"},option_create:function(e,t){return'<div class="create">Add <strong>'+t(e.input)+"</strong>…</div>"}};t.settings.render=e.extend({},i,t.settings.render)},setupCallbacks:function(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)n.hasOwnProperty(e)&&(t=this.settings[n[e]])&&this.on(e,t)},onClick:function(e){var t=this;t.isFocused&&t.isOpen||(t.focus(),e.preventDefault())},onMouseDown:function(t){var n=this,r=t.isDefaultPrevented();if(e(t.target),n.isFocused){if(t.target!==n.$control_input[0])return"single"===n.settings.mode?n.isOpen?n.close():n.open():r||n.setActiveItem(null),!1}else r||window.setTimeout((function(){n.focus()}),0)},onChange:function(){this.$input.trigger("change")},onPaste:function(t){var n=this;n.isFull()||n.isInputHidden||n.isLocked?t.preventDefault():n.settings.splitOn&&setTimeout((function(){var t=n.$control_input.val();if(t.match(n.settings.splitOn))for(var r=e.trim(t).split(n.settings.splitOn),i=0,o=r.length;i<o;i++)n.createItem(r[i])}),0)},onKeyPress:function(e){if(this.isLocked)return e&&e.preventDefault();var t=String.fromCharCode(e.keyCode||e.which);return this.settings.create&&"multi"===this.settings.mode&&t===this.settings.delimiter?(this.createItem(),e.preventDefault(),!1):void 0},onKeyDown:function(e){var t=(e.target,this.$control_input[0],this);if(!t.isLocked){switch(e.keyCode){case 65:if(t.isCmdDown)return void t.selectAll();break;case 27:return void(t.isOpen&&(e.preventDefault(),e.stopPropagation(),t.close()));case 78:if(!e.ctrlKey||e.altKey)break;case 40:if(!t.isOpen&&t.hasOptions)t.open();else if(t.$activeOption){t.ignoreHover=!0;var n=t.getAdjacentOption(t.$activeOption,1);n.length&&t.setActiveOption(n,!0,!0)}return void e.preventDefault();case 80:if(!e.ctrlKey||e.altKey)break;case 38:if(t.$activeOption){t.ignoreHover=!0;var r=t.getAdjacentOption(t.$activeOption,-1);r.length&&t.setActiveOption(r,!0,!0)}return void e.preventDefault();case 13:return void(t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),e.preventDefault()));case 37:return void t.advanceSelection(-1,e);case 39:return void t.advanceSelection(1,e);case 9:return t.settings.selectOnTab&&t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),t.isFull()||e.preventDefault()),void(t.settings.create&&t.createItem()&&e.preventDefault());case 8:case 46:return void t.deleteSelection(e)}return!t.isFull()&&!t.isInputHidden||(o?e.metaKey:e.ctrlKey)?void 0:void e.preventDefault()}9!==e.keyCode&&e.preventDefault()},onKeyUp:function(e){var t=this;if(t.isLocked)return e&&e.preventDefault();var n=t.$control_input.val()||"";t.lastValue!==n&&(t.lastValue=n,t.onSearchChange(n),t.refreshOptions(),t.trigger("type",n))},onSearchChange:function(e){var t=this,n=t.settings.load;n&&(t.loadedSearches.hasOwnProperty(e)||(t.loadedSearches[e]=!0,t.load((function(r){n.apply(t,[e,r])}))))},onFocus:function(e){var t=this,n=t.isFocused;if(t.isDisabled)return t.blur(),e&&e.preventDefault(),!1;t.ignoreFocus||(t.isFocused=!0,"focus"===t.settings.preload&&t.onSearchChange(""),n||t.trigger("focus"),t.$activeItems.length||(t.showInput(),t.setActiveItem(null),t.refreshOptions(!!t.settings.openOnFocus)),t.refreshState())},onBlur:function(e,t){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus)){if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0])return n.ignoreBlur=!0,void n.onFocus(e);var r=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),t&&t.focus&&t.focus(),n.isBlurring=!1,n.ignoreFocus=!1,n.trigger("blur")};n.isBlurring=!0,n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,r):r()}},onOptionHover:function(e){this.ignoreHover||this.setActiveOption(e.currentTarget,!1)},onOptionSelect:function(t){var n,r,i=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),(r=e(t.currentTarget)).hasClass("create")?i.createItem(null,(function(){i.settings.closeAfterSelect&&i.close()})):void 0!==(n=r.attr("data-value"))&&(i.lastQuery=null,i.setTextboxValue(""),i.addItem(n),i.settings.closeAfterSelect?i.close():!i.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&i.setActiveOption(i.getOption(n)))},onItemSelect:function(e){var t=this;t.isLocked||"multi"===t.settings.mode&&(e.preventDefault(),t.setActiveItem(e.currentTarget,e))},load:function(e){var t=this,n=t.$wrapper.addClass(t.settings.loadingClass);t.loading++,e.apply(t,[function(e){t.loading=Math.max(t.loading-1,0),e&&e.length&&(t.addOption(e),t.refreshOptions(t.isFocused&&!t.isInputHidden)),t.loading||n.removeClass(t.settings.loadingClass),t.trigger("load",e)}])},setTextboxValue:function(e){var t=this.$control_input;t.val()!==e&&(t.val(e).triggerHandler("update"),this.lastValue=e)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(e,t){m(this,t?[]:["change"],(function(){this.clear(t),this.addItems(e,t)}))},setActiveItem:function(t,n){var r,i,o,a,s,c,l,u,d=this;if("single"!==d.settings.mode){if(!(t=e(t)).length)return e(d.$activeItems).removeClass("active"),d.$activeItems=[],void(d.isFocused&&d.showInput());if("mousedown"===(r=n&&n.type.toLowerCase())&&d.isShiftDown&&d.$activeItems.length){for(u=d.$control.children(".active:last"),(a=Array.prototype.indexOf.apply(d.$control[0].childNodes,[u[0]]))>(s=Array.prototype.indexOf.apply(d.$control[0].childNodes,[t[0]]))&&(l=a,a=s,s=l),i=a;i<=s;i++)c=d.$control[0].childNodes[i],-1===d.$activeItems.indexOf(c)&&(e(c).addClass("active"),d.$activeItems.push(c));n.preventDefault()}else"mousedown"===r&&d.isCtrlDown||"keydown"===r&&this.isShiftDown?t.hasClass("active")?(o=d.$activeItems.indexOf(t[0]),d.$activeItems.splice(o,1),t.removeClass("active")):d.$activeItems.push(t.addClass("active")[0]):(e(d.$activeItems).removeClass("active"),d.$activeItems=[t.addClass("active")[0]]);d.hideInput(),this.isFocused||d.focus()}},setActiveOption:function(t,n,r){var i,o,a,s,c,u=this;u.$activeOption&&u.$activeOption.removeClass("active"),u.$activeOption=null,(t=e(t)).length&&(u.$activeOption=t.addClass("active"),!n&&l(n)||(i=u.$dropdown_content.height(),o=u.$activeOption.outerHeight(!0),n=u.$dropdown_content.scrollTop()||0,s=a=u.$activeOption.offset().top-u.$dropdown_content.offset().top+n,c=a-i+o,a+o>i+n?u.$dropdown_content.stop().animate({scrollTop:c},r?u.settings.scrollDuration:0):a<n&&u.$dropdown_content.stop().animate({scrollTop:s},r?u.settings.scrollDuration:0)))},selectAll:function(){var e=this;"single"!==e.settings.mode&&(e.$activeItems=Array.prototype.slice.apply(e.$control.children(":not(input)").addClass("active")),e.$activeItems.length&&(e.hideInput(),e.close()),e.focus())},hideInput:function(){var e=this;e.setTextboxValue(""),e.$control_input.css({opacity:0,position:"absolute",left:e.rtl?1e4:-1e4}),e.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var e=this;e.isDisabled||(e.ignoreFocus=!0,e.$control_input[0].focus(),window.setTimeout((function(){e.ignoreFocus=!1,e.onFocus()}),0))},blur:function(e){this.$control_input[0].blur(),this.onBlur(null,e)},getScoreFunction:function(e){return this.sifter.getScoreFunction(e,this.getSearchOptions())},getSearchOptions:function(){var e=this.settings,t=e.sortField;return"string"==typeof t&&(t=[{field:t}]),{fields:e.searchField,conjunction:e.searchConjunction,sort:t,nesting:e.nesting}},search:function(t){var n,r,i,o=this,a=o.settings,s=this.getSearchOptions();if(a.score&&"function"!=typeof(i=o.settings.score.apply(this,[t])))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==o.lastQuery?(o.lastQuery=t,r=o.sifter.search(t,e.extend(s,{score:i})),o.currentResults=r):r=e.extend(!0,{},o.currentResults),a.hideSelected)for(n=r.items.length-1;n>=0;n--)-1!==o.items.indexOf(u(r.items[n].id))&&r.items.splice(n,1);return r},refreshOptions:function(t){var n,i,o,a,s,c,l,d,f,h,p,m,v,g,b,k;void 0===t&&(t=!0);var w=this,_=e.trim(w.$control_input.val()),C=w.search(_),A=w.$dropdown_content,x=w.$activeOption&&u(w.$activeOption.attr("data-value"));for(a=C.items.length,"number"==typeof w.settings.maxOptions&&(a=Math.min(a,w.settings.maxOptions)),s={},c=[],n=0;n<a;n++)for(l=w.options[C.items[n].id],d=w.render("option",l),f=l[w.settings.optgroupField]||"",i=0,o=(h=e.isArray(f)?f:[f])&&h.length;i<o;i++)f=h[i],w.optgroups.hasOwnProperty(f)||(f=""),s.hasOwnProperty(f)||(s[f]=document.createDocumentFragment(),c.push(f)),s[f].appendChild(d);for(this.settings.lockOptgroupOrder&&c.sort((function(e,t){return(w.optgroups[e].$order||0)-(w.optgroups[t].$order||0)})),p=document.createDocumentFragment(),n=0,a=c.length;n<a;n++)f=c[n],w.optgroups.hasOwnProperty(f)&&s[f].childNodes.length?((m=document.createDocumentFragment()).appendChild(w.render("optgroup_header",w.optgroups[f])),m.appendChild(s[f]),p.appendChild(w.render("optgroup",e.extend({},w.optgroups[f],{html:y(m),dom:m})))):p.appendChild(s[f]);if(A.html(p),w.settings.highlight&&(A.removeHighlight(),C.query.length&&C.tokens.length))for(n=0,a=C.tokens.length;n<a;n++)r(A,C.tokens[n].regex);if(!w.settings.hideSelected)for(n=0,a=w.items.length;n<a;n++)w.getOption(w.items[n]).addClass("selected");(v=w.canCreate(_))&&(A.prepend(w.render("option_create",{input:_})),k=e(A[0].childNodes[0])),w.hasOptions=C.items.length>0||v,w.hasOptions?(C.items.length>0?((b=x&&w.getOption(x))&&b.length?g=b:"single"===w.settings.mode&&w.items.length&&(g=w.getOption(w.items[0])),g&&g.length||(g=k&&!w.settings.addPrecedence?w.getAdjacentOption(k,1):A.find("[data-selectable]:first"))):g=k,w.setActiveOption(g),t&&!w.isOpen&&w.open()):(w.setActiveOption(null),t&&w.isOpen&&w.close())},addOption:function(t){var n,r,i,o=this;if(e.isArray(t))for(n=0,r=t.length;n<r;n++)o.addOption(t[n]);else(i=o.registerOption(t))&&(o.userOptions[i]=!0,o.lastQuery=null,o.trigger("option_add",i,t))},registerOption:function(e){var t=u(e[this.settings.valueField]);return null!=t&&!this.options.hasOwnProperty(t)&&(e.$order=e.$order||++this.order,this.options[t]=e,t)},registerOptionGroup:function(e){var t=u(e[this.settings.optgroupValueField]);return!!t&&(e.$order=e.$order||++this.order,this.optgroups[t]=e,t)},addOptionGroup:function(e,t){t[this.settings.optgroupValueField]=e,(e=this.registerOptionGroup(t))&&this.trigger("optgroup_add",e,t)},removeOptionGroup:function(e){this.optgroups.hasOwnProperty(e)&&(delete this.optgroups[e],this.renderCache={},this.trigger("optgroup_remove",e))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,n){var r,i,o,a,s,c,l,d=this;if(t=u(t),o=u(n[d.settings.valueField]),null!==t&&d.options.hasOwnProperty(t)){if("string"!=typeof o)throw new Error("Value must be set in option data");l=d.options[t].$order,o!==t&&(delete d.options[t],-1!==(a=d.items.indexOf(t))&&d.items.splice(a,1,o)),n.$order=n.$order||l,d.options[o]=n,s=d.renderCache.item,c=d.renderCache.option,s&&(delete s[t],delete s[o]),c&&(delete c[t],delete c[o]),-1!==d.items.indexOf(o)&&(r=d.getItem(t),i=e(d.render("item",n)),r.hasClass("active")&&i.addClass("active"),r.replaceWith(i)),d.lastQuery=null,d.isOpen&&d.refreshOptions(!1)}},removeOption:function(e,t){var n=this;e=u(e);var r=n.renderCache.item,i=n.renderCache.option;r&&delete r[e],i&&delete i[e],delete n.userOptions[e],delete n.options[e],n.lastQuery=null,n.trigger("option_remove",e),n.removeItem(e,t)},clearOptions:function(){var t=this;t.loadedSearches={},t.userOptions={},t.renderCache={};var n=t.options;e.each(t.options,(function(e,r){-1==t.items.indexOf(e)&&delete n[e]})),t.options=t.sifter.items=n,t.lastQuery=null,t.trigger("option_clear")},getOption:function(e){return this.getElementWithValue(e,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(t,n){var r=this.$dropdown.find("[data-selectable]"),i=r.index(t)+n;return i>=0&&i<r.length?r.eq(i):e()},getElementWithValue:function(t,n){if(void 0!==(t=u(t))&&null!==t)for(var r=0,i=n.length;r<i;r++)if(n[r].getAttribute("data-value")===t)return e(n[r]);return e()},getItem:function(e){return this.getElementWithValue(e,this.$control.children())},addItems:function(t,n){this.buffer=document.createDocumentFragment();for(var r=this.$control[0].childNodes,i=0;i<r.length;i++)this.buffer.appendChild(r[i]);for(var o=e.isArray(t)?t:[t],a=(i=0,o.length);i<a;i++)this.isPending=i<a-1,this.addItem(o[i],n);var s=this.$control[0];s.insertBefore(this.buffer,s.firstChild),this.buffer=null},addItem:function(t,n){m(this,n?[]:["change"],(function(){var r,i,o,a,s,c=this,l=c.settings.mode;t=u(t),-1===c.items.indexOf(t)?c.options.hasOwnProperty(t)&&("single"===l&&c.clear(n),"multi"===l&&c.isFull()||(r=e(c.render("item",c.options[t])),s=c.isFull(),c.items.splice(c.caretPos,0,t),c.insertAtCaret(r),(!c.isPending||!s&&c.isFull())&&c.refreshState(),c.isSetup&&(o=c.$dropdown_content.find("[data-selectable]"),c.isPending||(i=c.getOption(t),a=c.getAdjacentOption(i,1).attr("data-value"),c.refreshOptions(c.isFocused&&"single"!==l),a&&c.setActiveOption(c.getOption(a))),!o.length||c.isFull()?c.close():c.isPending||c.positionDropdown(),c.updatePlaceholder(),c.trigger("item_add",t,r),c.isPending||c.updateOriginalInput({silent:n})))):"single"===l&&c.close()}))},removeItem:function(t,n){var r,i,o,a=this;r=t instanceof e?t:a.getItem(t),t=u(r.attr("data-value")),-1!==(i=a.items.indexOf(t))&&(r.remove(),r.hasClass("active")&&(o=a.$activeItems.indexOf(r[0]),a.$activeItems.splice(o,1)),a.items.splice(i,1),a.lastQuery=null,!a.settings.persist&&a.userOptions.hasOwnProperty(t)&&a.removeOption(t,n),i<a.caretPos&&a.setCaret(a.caretPos-1),a.refreshState(),a.updatePlaceholder(),a.updateOriginalInput({silent:n}),a.positionDropdown(),a.trigger("item_remove",t,r))},createItem:function(t,n){var r=this,i=r.caretPos;t=t||e.trim(r.$control_input.val()||"");var o=arguments[arguments.length-1];if("function"!=typeof o&&(o=function(){}),"boolean"!=typeof n&&(n=!0),!r.canCreate(t))return o(),!1;r.lock();var a="function"==typeof r.settings.create?this.settings.create:function(e){var t={};return t[r.settings.labelField]=e,t[r.settings.valueField]=e,t},s=h((function(e){if(r.unlock(),!e||"object"!=typeof e)return o();var t=u(e[r.settings.valueField]);if("string"!=typeof t)return o();r.setTextboxValue(""),r.addOption(e),r.setCaret(i),r.addItem(t),r.refreshOptions(n&&"single"!==r.settings.mode),o(e)})),c=a.apply(this,[t,s]);return void 0!==c&&s(c),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var e=!this.items.length;this.isInvalid=e,this.$control_input.prop("required",e),this.$input.prop("required",!e)},refreshClasses:function(){var t=this,n=t.isFull(),r=t.isLocked;t.$wrapper.toggleClass("rtl",t.rtl),t.$control.toggleClass("focus",t.isFocused).toggleClass("disabled",t.isDisabled).toggleClass("required",t.isRequired).toggleClass("invalid",t.isInvalid).toggleClass("locked",r).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",t.isFocused&&!t.isInputHidden).toggleClass("dropdown-active",t.isOpen).toggleClass("has-options",!e.isEmptyObject(t.options)).toggleClass("has-items",t.items.length>0),t.$control_input.data("grow",!n&&!r)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(e){var t,n,r,i,o=this;if(e=e||{},1===o.tagType){for(r=[],t=0,n=o.items.length;t<n;t++)i=o.options[o.items[t]][o.settings.labelField]||"",r.push('<option value="'+d(o.items[t])+'" selected="selected">'+d(i)+"</option>");r.length||this.$input.attr("multiple")||r.push('<option value="" selected="selected"></option>'),o.$input.html(r.join(""))}else o.$input.val(o.getValue()),o.$input.attr("value",o.$input.val());o.isSetup&&(e.silent||o.trigger("change",o.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var e=this.$control_input;this.items.length?e.removeAttr("placeholder"):e.attr("placeholder",this.settings.placeholder),e.triggerHandler("update",{force:!0})}},open:function(){var e=this;e.isLocked||e.isOpen||"multi"===e.settings.mode&&e.isFull()||(e.focus(),e.isOpen=!0,e.refreshState(),e.$dropdown.css({visibility:"hidden",display:"block"}),e.positionDropdown(),e.$dropdown.css({visibility:"visible"}),e.trigger("dropdown_open",e.$dropdown))},close:function(){var e=this,t=e.isOpen;"single"===e.settings.mode&&e.items.length&&(e.hideInput(),e.isBlurring||e.$control_input.blur()),e.isOpen=!1,e.$dropdown.hide(),e.setActiveOption(null),e.refreshState(),t&&e.trigger("dropdown_close",e.$dropdown)},positionDropdown:function(){var e=this.$control,t="body"===this.settings.dropdownParent?e.offset():e.position();t.top+=e.outerHeight(!0),this.$dropdown.css({width:e[0].getBoundingClientRect().width,top:t.top,left:t.left})},clear:function(e){var t=this;t.items.length&&(t.$control.children(":not(input)").remove(),t.items=[],t.lastQuery=null,t.setCaret(0),t.setActiveItem(null),t.updatePlaceholder(),t.updateOriginalInput({silent:e}),t.refreshState(),t.showInput(),t.trigger("clear"))},insertAtCaret:function(e){var t=Math.min(this.caretPos,this.items.length),n=e[0],r=this.buffer||this.$control[0];0===t?r.insertBefore(n,r.firstChild):r.insertBefore(n,r.childNodes[t]),this.setCaret(t+1)},deleteSelection:function(t){var n,r,i,o,a,s,c,l,u,d=this;if(i=t&&8===t.keyCode?-1:1,o=v(d.$control_input[0]),d.$activeOption&&!d.settings.hideSelected&&(c=d.getAdjacentOption(d.$activeOption,-1).attr("data-value")),a=[],d.$activeItems.length){for(u=d.$control.children(".active:"+(i>0?"last":"first")),s=d.$control.children(":not(input)").index(u),i>0&&s++,n=0,r=d.$activeItems.length;n<r;n++)a.push(e(d.$activeItems[n]).attr("data-value"));t&&(t.preventDefault(),t.stopPropagation())}else(d.isFocused||"single"===d.settings.mode)&&d.items.length&&(i<0&&0===o.start&&0===o.length?a.push(d.items[d.caretPos-1]):i>0&&o.start===d.$control_input.val().length&&a.push(d.items[d.caretPos]));if(!a.length||"function"==typeof d.settings.onDelete&&!1===d.settings.onDelete.apply(d,[a]))return!1;for(void 0!==s&&d.setCaret(s);a.length;)d.removeItem(a.pop());return d.showInput(),d.positionDropdown(),d.refreshOptions(!0),c&&(l=d.getOption(c)).length&&d.setActiveOption(l),!0},advanceSelection:function(e,t){var n,r,i,o,a,s=this;0!==e&&(s.rtl&&(e*=-1),n=e>0?"last":"first",r=v(s.$control_input[0]),s.isFocused&&!s.isInputHidden?(o=s.$control_input.val().length,(e<0?0===r.start&&0===r.length:r.start===o)&&!o&&s.advanceCaret(e,t)):(a=s.$control.children(".active:"+n)).length&&(i=s.$control.children(":not(input)").index(a),s.setActiveItem(null),s.setCaret(e>0?i+1:i)))},advanceCaret:function(e,t){var n,r,i=this;0!==e&&(n=e>0?"next":"prev",i.isShiftDown?(r=i.$control_input[n]()).length&&(i.hideInput(),i.setActiveItem(r),t&&t.preventDefault()):i.setCaret(i.caretPos+e))},setCaret:function(t){var n,r,i,o,a=this;if(t="single"===a.settings.mode?a.items.length:Math.max(0,Math.min(a.items.length,t)),!a.isPending)for(n=0,r=(i=a.$control.children(":not(input)")).length;n<r;n++)o=e(i[n]).detach(),n<t?a.$control_input.before(o):a.$control.append(o);a.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var e=this;e.$input.prop("disabled",!0),e.$control_input.prop("disabled",!0).prop("tabindex",-1),e.isDisabled=!0,e.lock()},enable:function(){var e=this;e.$input.prop("disabled",!1),e.$control_input.prop("disabled",!1).prop("tabindex",e.tabIndex),e.isDisabled=!1,e.unlock()},destroy:function(){var t=this,n=t.eventNS,r=t.revertSettings;t.trigger("destroy"),t.off(),t.$wrapper.remove(),t.$dropdown.remove(),t.$input.html("").append(r.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:r.tabindex}).show(),t.$control_input.removeData("grow"),t.$input.removeData("selectize"),0==--k.count&&k.$testInput&&(k.$testInput.remove(),k.$testInput=void 0),e(window).off(n),e(document).off(n),e(document.body).off(n),delete t.$input[0].selectize},render:function(t,n){var r,i,o="",a=!1,s=this;return"option"!==t&&"item"!==t||(a=!!(r=u(n[s.settings.valueField]))),a&&(l(s.renderCache[t])||(s.renderCache[t]={}),s.renderCache[t].hasOwnProperty(r))?s.renderCache[t][r]:(o=e(s.settings.render[t].apply(this,[n,d])),"option"===t||"option_create"===t?n[s.settings.disabledField]||o.attr("data-selectable",""):"optgroup"===t&&(i=n[s.settings.optgroupValueField]||"",o.attr("data-group",i),n[s.settings.disabledField]&&o.attr("data-disabled","")),"option"!==t&&"item"!==t||o.attr("data-value",r||""),a&&(s.renderCache[t][r]=o[0]),o[0])},clearCache:function(e){void 0===e?this.renderCache={}:delete this.renderCache[e]},canCreate:function(e){var t=this;if(!t.settings.create)return!1;var n=t.settings.createFilter;return e.length&&("function"!=typeof n||n.apply(t,[e]))&&("string"!=typeof n||new RegExp(n).test(e))&&(!(n instanceof RegExp)||n.test(e))}}),k.count=0,k.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},e.fn.selectize=function(t){var n=e.fn.selectize.defaults,r=e.extend({},n,t),i=r.dataAttr,o=r.labelField,a=r.valueField,s=r.disabledField,c=r.optgroupField,l=r.optgroupLabelField,d=r.optgroupValueField,f=function(t,n){var s,c,l,u,d=t.attr(i);if(d)for(n.options=JSON.parse(d),s=0,c=n.options.length;s<c;s++)n.items.push(n.options[s][a]);else{var f=e.trim(t.val()||"");if(!r.allowEmptyOption&&!f.length)return;for(s=0,c=(l=f.split(r.delimiter)).length;s<c;s++)(u={})[o]=l[s],u[a]=l[s],n.options.push(u);n.items=l}},h=function(t,n){var f,h,p,m,v=n.options,g={},b=function(e){var t=i&&e.attr(i);return"string"==typeof t&&t.length?JSON.parse(t):null},y=function(t,i){t=e(t);var l=u(t.val());if(l||r.allowEmptyOption)if(g.hasOwnProperty(l)){if(i){var d=g[l][c];d?e.isArray(d)?d.push(i):g[l][c]=[d,i]:g[l][c]=i}}else{var f=b(t)||{};f[o]=f[o]||t.text(),f[a]=f[a]||l,f[s]=f[s]||t.prop("disabled"),f[c]=f[c]||i,g[l]=f,v.push(f),t.is(":selected")&&n.items.push(l)}};for(n.maxItems=t.attr("multiple")?null:1,f=0,h=(m=t.children()).length;f<h;f++)"optgroup"===(p=m[f].tagName.toLowerCase())?function(t){var r,i,o,a,c;for((o=(t=e(t)).attr("label"))&&((a=b(t)||{})[l]=o,a[d]=o,a[s]=t.prop("disabled"),n.optgroups.push(a)),r=0,i=(c=e("option",t)).length;r<i;r++)y(c[r],o)}(m[f]):"option"===p&&y(m[f])};return this.each((function(){if(!this.selectize){var i=e(this),o=this.tagName.toLowerCase(),a=i.attr("placeholder")||i.attr("data-placeholder");a||r.allowEmptyOption||(a=i.children('option[value=""]').text());var s={placeholder:a,options:[],optgroups:[],items:[]};"select"===o?h(i,s):f(i,s),new k(i,e.extend(!0,{},n,s,t))}}))},e.fn.selectize.defaults=k.defaults,e.fn.selectize.support={validity:c},k.define("drag_drop",(function(t){if(!e.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var n=this;n.lock=function(){var e=n.lock;return function(){var t=n.$control.data("sortable");return t&&t.disable(),e.apply(n,arguments)}}(),n.unlock=function(){var e=n.unlock;return function(){var t=n.$control.data("sortable");return t&&t.enable(),e.apply(n,arguments)}}(),n.setup=function(){var t=n.setup;return function(){t.apply(this,arguments);var r=n.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:n.isLocked,start:function(e,t){t.placeholder.css("width",t.helper.css("width")),r.css({overflow:"visible"})},stop:function(){r.css({overflow:"hidden"});var t=n.$activeItems?n.$activeItems.slice():null,i=[];r.children("[data-value]").each((function(){i.push(e(this).attr("data-value"))})),n.setValue(i),n.setActiveItem(t)}})}}()}})),k.define("dropdown_header",(function(t){var n=this;t=e.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(e){return'<div class="'+e.headerClass+'"><div class="'+e.titleRowClass+'"><span class="'+e.labelClass+'">'+e.title+'</span><a href="javascript:void(0)" class="'+e.closeClass+'">×</a></div></div>'}},t),n.setup=function(){var r=n.setup;return function(){r.apply(n,arguments),n.$dropdown_header=e(t.html(t)),n.$dropdown.prepend(n.$dropdown_header)}}()})),k.define("optgroup_columns",(function(t){var n=this;t=e.extend({equalizeWidth:!0,equalizeHeight:!0},t),this.getAdjacentOption=function(t,n){var r=t.closest("[data-group]").find("[data-selectable]"),i=r.index(t)+n;return i>=0&&i<r.length?r.eq(i):e()},this.onKeyDown=function(){var e=n.onKeyDown;return function(t){var r,i,o,a;return!this.isOpen||37!==t.keyCode&&39!==t.keyCode?e.apply(this,arguments):(n.ignoreHover=!0,r=(a=this.$activeOption.closest("[data-group]")).find("[data-selectable]").index(this.$activeOption),void((i=(o=(a=37===t.keyCode?a.prev("[data-group]"):a.next("[data-group]")).find("[data-selectable]")).eq(Math.min(o.length-1,r))).length&&this.setActiveOption(i)))}}();var r=function(){var e,t=r.width,n=document;return void 0===t&&((e=n.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,n.body.appendChild(e),t=r.width=e.offsetWidth-e.clientWidth,n.body.removeChild(e)),t},i=function(){var i,o,a,s,c,l,u;if((o=(u=e("[data-group]",n.$dropdown_content)).length)&&n.$dropdown_content.width()){if(t.equalizeHeight){for(a=0,i=0;i<o;i++)a=Math.max(a,u.eq(i).height());u.css({height:a})}t.equalizeWidth&&(l=n.$dropdown_content.innerWidth()-r(),s=Math.round(l/o),u.css({width:s}),o>1&&(c=l-s*(o-1),u.eq(o-1).css({width:c})))}};(t.equalizeHeight||t.equalizeWidth)&&(f.after(this,"positionDropdown",i),f.after(this,"refreshOptions",i))})),k.define("remove_button",(function(t){t=e.extend({label:"×",title:"Remove",className:"remove",append:!0},t),"single"!==this.settings.mode?function(t,n){var r=t,i='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+d(n.title)+'">'+n.label+"</a>",o=function(e,t){var n=e.search(/(<\/[^>]+>\s*)$/);return e.substring(0,n)+t+e.substring(n)};t.setup=function(){var a=r.setup;return function(){if(n.append){var s=r.settings.render.item;r.settings.render.item=function(e){return o(s.apply(t,arguments),i)}}a.apply(t,arguments),t.$control.on("click","."+n.className,(function(t){if(t.preventDefault(),!r.isLocked){var n=e(t.currentTarget).parent();r.setActiveItem(n),r.deleteSelection()&&r.setCaret(r.items.length)}}))}}()}(this,t):function(t,n){n.className="remove-single";var r=t,i='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+d(n.title)+'">'+n.label+"</a>",o=function(t,n){return e("<span>").append(t).append(n)};t.setup=function(){var a=r.setup;return function(){if(n.append){var s=e(r.$input.context).attr("id"),c=(e("#"+s),r.settings.render.item);r.settings.render.item=function(e){return o(c.apply(t,arguments),i)}}a.apply(t,arguments),t.$control.on("click","."+n.className,(function(e){e.preventDefault(),r.isLocked||r.clear()}))}}()}(this,t)})),k.define("restore_on_backspace",(function(e){var t=this;e.text=e.text||function(e){return e[this.settings.labelField]},this.onKeyDown=function(){var n=t.onKeyDown;return function(t){var r,i;return 8===t.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(r=this.caretPos-1)>=0&&r<this.items.length?(i=this.options[this.items[r]],this.deleteSelection(t)&&(this.setTextboxValue(e.text.apply(this,[i])),this.refreshOptions(!0)),void t.preventDefault()):n.apply(this,arguments)}}()})),k})?l.apply(t,u):l)||(e.exports=d)},function(e,t,n){var r=n(2),i=n(126);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(3)(!1)).push([e.i,'.selectize-control.plugin-drag_drop.multi>.selectize-input>div.ui-sortable-placeholder{visibility:visible!important;background:#f2f2f2!important;background:rgba(0,0,0,.06)!important;border:0!important;box-shadow:inset 0 0 12px 4px #fff}.selectize-control.plugin-drag_drop .ui-sortable-placeholder:after{content:"!";visibility:hidden}.selectize-control.plugin-drag_drop .ui-sortable-helper{box-shadow:0 2px 5px rgba(0,0,0,.2)}.selectize-dropdown-header{position:relative;padding:5px 8px;border-bottom:1px solid #d0d0d0;background:#f8f8f8;border-radius:3px 3px 0 0}.selectize-dropdown-header-close{position:absolute;right:8px;top:50%;color:#303030;opacity:.4;margin-top:-12px;line-height:20px;font-size:20px!important}.selectize-dropdown-header-close:hover{color:#000}.selectize-dropdown.plugin-optgroup_columns .optgroup{border-right:1px solid #f2f2f2;border-top:0;float:left;box-sizing:border-box}.selectize-dropdown.plugin-optgroup_columns .optgroup:last-child{border-right:0}.selectize-dropdown.plugin-optgroup_columns .optgroup:before{display:none}.selectize-dropdown.plugin-optgroup_columns .optgroup-header{border-top:0}.selectize-control.plugin-remove_button [data-value]{position:relative;padding-right:24px!important}.selectize-control.plugin-remove_button [data-value] .remove{z-index:1;position:absolute;top:0;right:0;bottom:0;width:17px;text-align:center;font-weight:700;font-size:12px;color:inherit;text-decoration:none;vertical-align:middle;display:inline-block;padding:2px 0 0;border-left:1px solid #d0d0d0;border-radius:0 2px 2px 0;box-sizing:border-box}.selectize-control.plugin-remove_button [data-value] .remove:hover{background:rgba(0,0,0,.05)}.selectize-control.plugin-remove_button [data-value].active .remove{border-left-color:#cacaca}.selectize-control.plugin-remove_button .disabled [data-value] .remove:hover{background:none}.selectize-control.plugin-remove_button .disabled [data-value] .remove{border-left-color:#fff}.selectize-control.plugin-remove_button .remove-single{position:absolute;right:0;top:0;font-size:23px}.selectize-control{position:relative}.selectize-dropdown,.selectize-input,.selectize-input input{color:#303030;font-family:inherit;font-size:13px;line-height:18px;-webkit-font-smoothing:inherit}.selectize-control.single .selectize-input.input-active,.selectize-input{background:#fff;cursor:text;display:inline-block}.selectize-input{border:1px solid #d0d0d0;padding:8px;display:inline-block;width:100%;overflow:hidden;position:relative;z-index:1;box-sizing:border-box;box-shadow:inset 0 1px 1px rgba(0,0,0,.1);border-radius:3px}.selectize-control.multi .selectize-input.has-items{padding:6px 8px 3px}.selectize-input.full{background-color:#fff}.selectize-input.disabled,.selectize-input.disabled *{cursor:default!important}.selectize-input.focus{box-shadow:inset 0 1px 2px rgba(0,0,0,.15)}.selectize-input.dropdown-active{border-radius:3px 3px 0 0}.selectize-input>*{vertical-align:baseline;display:-moz-inline-stack;display:inline-block;zoom:1;*display:inline}.selectize-control.multi .selectize-input>div{cursor:pointer;margin:0 3px 3px 0;padding:2px 6px;background:#f2f2f2;color:#303030;border:0 solid #d0d0d0}.selectize-control.multi .selectize-input>div.active{background:#e8e8e8;color:#303030;border:0 solid #cacaca}.selectize-control.multi .selectize-input.disabled>div,.selectize-control.multi .selectize-input.disabled>div.active{color:#7d7d7d;background:#fff;border:0 solid #fff}.selectize-input>input{display:inline-block!important;padding:0!important;min-height:0!important;max-height:none!important;max-width:100%!important;margin:0 2px 0 0!important;text-indent:0!important;border:0!important;background:none!important;line-height:inherit!important;-webkit-user-select:auto!important;box-shadow:none!important}.selectize-input>input::-ms-clear{display:none}.selectize-input>input:focus{outline:none!important}.selectize-input:after{content:" ";display:block;clear:left}.selectize-input.dropdown-active:before{content:" ";display:block;position:absolute;background:#f0f0f0;height:1px;bottom:0;left:0;right:0}.selectize-dropdown{position:absolute;z-index:10;background:#fff;margin:-1px 0 0;border:1px solid #d0d0d0;border-top:0;box-sizing:border-box;box-shadow:0 1px 3px rgba(0,0,0,.1);border-radius:0 0 3px 3px}.selectize-dropdown [data-selectable]{cursor:pointer;overflow:hidden}.selectize-dropdown [data-selectable] .highlight{background:rgba(125,168,208,.2);border-radius:1px}.selectize-dropdown .optgroup-header,.selectize-dropdown .option{padding:5px 8px}.selectize-dropdown .option,.selectize-dropdown [data-disabled],.selectize-dropdown [data-disabled] [data-selectable].option{cursor:inherit;opacity:.5}.selectize-dropdown [data-selectable].option{opacity:1}.selectize-dropdown .optgroup:first-child .optgroup-header{border-top:0}.selectize-dropdown .optgroup-header{color:#303030;background:#fff;cursor:default}.selectize-dropdown .active{background-color:#f5fafd;color:#495c68}.selectize-dropdown .active.create{color:#495c68}.selectize-dropdown .create{color:rgba(48,48,48,.5)}.selectize-dropdown-content{overflow-y:auto;overflow-x:hidden;max-height:200px;-webkit-overflow-scrolling:touch}.selectize-control.single .selectize-input,.selectize-control.single .selectize-input input{cursor:pointer}.selectize-control.single .selectize-input.input-active,.selectize-control.single .selectize-input.input-active input{cursor:text}.selectize-control.single .selectize-input:after{content:" ";display:block;position:absolute;top:50%;right:15px;margin-top:-3px;width:0;height:0;border-color:grey transparent transparent;border-style:solid;border-width:5px 5px 0}.selectize-control.single .selectize-input.dropdown-active:after{margin-top:-4px;border-width:0 5px 5px;border-color:transparent transparent grey}.selectize-control.rtl.single .selectize-input:after{left:15px;right:auto}.selectize-control.rtl .selectize-input>input{margin:0 4px 0 -2px!important}.selectize-control .selectize-input.disabled{opacity:.5;background-color:#fafafa}',""]),e.exports=t},function(e,t,n){var r=n(2),i=n(128);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(3),i=n(129),o=n(130),a=n(131),s=n(132),c=n(133),l=n(134),u=n(135),d=n(136),f=n(137),h=n(138),p=n(139),m=n(140),v=n(141),g=n(142),b=n(143),y=n(144);t=r(!1);var k=i(o),w=i(o,{hash:"?#iefix"}),_=i(a),C=i(s),A=i(c),x=i(l,{hash:"#fontawesome"}),S=i(u),M=i(u,{hash:"?#iefix"}),E=i(d),T=i(f),D=i(h),O=i(p,{hash:"#fontawesome"}),P=i(m),I=i(m,{hash:"?#iefix"}),j=i(v),N=i(g),R=i(b),L=i(y,{hash:"#fontawesome"});t.push([e.i,'/*!\n * Font Awesome Free 5.13.0 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */.fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\\f26e"}.fa-accessible-icon:before{content:"\\f368"}.fa-accusoft:before{content:"\\f369"}.fa-acquisitions-incorporated:before{content:"\\f6af"}.fa-ad:before{content:"\\f641"}.fa-address-book:before{content:"\\f2b9"}.fa-address-card:before{content:"\\f2bb"}.fa-adjust:before{content:"\\f042"}.fa-adn:before{content:"\\f170"}.fa-adobe:before{content:"\\f778"}.fa-adversal:before{content:"\\f36a"}.fa-affiliatetheme:before{content:"\\f36b"}.fa-air-freshener:before{content:"\\f5d0"}.fa-airbnb:before{content:"\\f834"}.fa-algolia:before{content:"\\f36c"}.fa-align-center:before{content:"\\f037"}.fa-align-justify:before{content:"\\f039"}.fa-align-left:before{content:"\\f036"}.fa-align-right:before{content:"\\f038"}.fa-alipay:before{content:"\\f642"}.fa-allergies:before{content:"\\f461"}.fa-amazon:before{content:"\\f270"}.fa-amazon-pay:before{content:"\\f42c"}.fa-ambulance:before{content:"\\f0f9"}.fa-american-sign-language-interpreting:before{content:"\\f2a3"}.fa-amilia:before{content:"\\f36d"}.fa-anchor:before{content:"\\f13d"}.fa-android:before{content:"\\f17b"}.fa-angellist:before{content:"\\f209"}.fa-angle-double-down:before{content:"\\f103"}.fa-angle-double-left:before{content:"\\f100"}.fa-angle-double-right:before{content:"\\f101"}.fa-angle-double-up:before{content:"\\f102"}.fa-angle-down:before{content:"\\f107"}.fa-angle-left:before{content:"\\f104"}.fa-angle-right:before{content:"\\f105"}.fa-angle-up:before{content:"\\f106"}.fa-angry:before{content:"\\f556"}.fa-angrycreative:before{content:"\\f36e"}.fa-angular:before{content:"\\f420"}.fa-ankh:before{content:"\\f644"}.fa-app-store:before{content:"\\f36f"}.fa-app-store-ios:before{content:"\\f370"}.fa-apper:before{content:"\\f371"}.fa-apple:before{content:"\\f179"}.fa-apple-alt:before{content:"\\f5d1"}.fa-apple-pay:before{content:"\\f415"}.fa-archive:before{content:"\\f187"}.fa-archway:before{content:"\\f557"}.fa-arrow-alt-circle-down:before{content:"\\f358"}.fa-arrow-alt-circle-left:before{content:"\\f359"}.fa-arrow-alt-circle-right:before{content:"\\f35a"}.fa-arrow-alt-circle-up:before{content:"\\f35b"}.fa-arrow-circle-down:before{content:"\\f0ab"}.fa-arrow-circle-left:before{content:"\\f0a8"}.fa-arrow-circle-right:before{content:"\\f0a9"}.fa-arrow-circle-up:before{content:"\\f0aa"}.fa-arrow-down:before{content:"\\f063"}.fa-arrow-left:before{content:"\\f060"}.fa-arrow-right:before{content:"\\f061"}.fa-arrow-up:before{content:"\\f062"}.fa-arrows-alt:before{content:"\\f0b2"}.fa-arrows-alt-h:before{content:"\\f337"}.fa-arrows-alt-v:before{content:"\\f338"}.fa-artstation:before{content:"\\f77a"}.fa-assistive-listening-systems:before{content:"\\f2a2"}.fa-asterisk:before{content:"\\f069"}.fa-asymmetrik:before{content:"\\f372"}.fa-at:before{content:"\\f1fa"}.fa-atlas:before{content:"\\f558"}.fa-atlassian:before{content:"\\f77b"}.fa-atom:before{content:"\\f5d2"}.fa-audible:before{content:"\\f373"}.fa-audio-description:before{content:"\\f29e"}.fa-autoprefixer:before{content:"\\f41c"}.fa-avianex:before{content:"\\f374"}.fa-aviato:before{content:"\\f421"}.fa-award:before{content:"\\f559"}.fa-aws:before{content:"\\f375"}.fa-baby:before{content:"\\f77c"}.fa-baby-carriage:before{content:"\\f77d"}.fa-backspace:before{content:"\\f55a"}.fa-backward:before{content:"\\f04a"}.fa-bacon:before{content:"\\f7e5"}.fa-bahai:before{content:"\\f666"}.fa-balance-scale:before{content:"\\f24e"}.fa-balance-scale-left:before{content:"\\f515"}.fa-balance-scale-right:before{content:"\\f516"}.fa-ban:before{content:"\\f05e"}.fa-band-aid:before{content:"\\f462"}.fa-bandcamp:before{content:"\\f2d5"}.fa-barcode:before{content:"\\f02a"}.fa-bars:before{content:"\\f0c9"}.fa-baseball-ball:before{content:"\\f433"}.fa-basketball-ball:before{content:"\\f434"}.fa-bath:before{content:"\\f2cd"}.fa-battery-empty:before{content:"\\f244"}.fa-battery-full:before{content:"\\f240"}.fa-battery-half:before{content:"\\f242"}.fa-battery-quarter:before{content:"\\f243"}.fa-battery-three-quarters:before{content:"\\f241"}.fa-battle-net:before{content:"\\f835"}.fa-bed:before{content:"\\f236"}.fa-beer:before{content:"\\f0fc"}.fa-behance:before{content:"\\f1b4"}.fa-behance-square:before{content:"\\f1b5"}.fa-bell:before{content:"\\f0f3"}.fa-bell-slash:before{content:"\\f1f6"}.fa-bezier-curve:before{content:"\\f55b"}.fa-bible:before{content:"\\f647"}.fa-bicycle:before{content:"\\f206"}.fa-biking:before{content:"\\f84a"}.fa-bimobject:before{content:"\\f378"}.fa-binoculars:before{content:"\\f1e5"}.fa-biohazard:before{content:"\\f780"}.fa-birthday-cake:before{content:"\\f1fd"}.fa-bitbucket:before{content:"\\f171"}.fa-bitcoin:before{content:"\\f379"}.fa-bity:before{content:"\\f37a"}.fa-black-tie:before{content:"\\f27e"}.fa-blackberry:before{content:"\\f37b"}.fa-blender:before{content:"\\f517"}.fa-blender-phone:before{content:"\\f6b6"}.fa-blind:before{content:"\\f29d"}.fa-blog:before{content:"\\f781"}.fa-blogger:before{content:"\\f37c"}.fa-blogger-b:before{content:"\\f37d"}.fa-bluetooth:before{content:"\\f293"}.fa-bluetooth-b:before{content:"\\f294"}.fa-bold:before{content:"\\f032"}.fa-bolt:before{content:"\\f0e7"}.fa-bomb:before{content:"\\f1e2"}.fa-bone:before{content:"\\f5d7"}.fa-bong:before{content:"\\f55c"}.fa-book:before{content:"\\f02d"}.fa-book-dead:before{content:"\\f6b7"}.fa-book-medical:before{content:"\\f7e6"}.fa-book-open:before{content:"\\f518"}.fa-book-reader:before{content:"\\f5da"}.fa-bookmark:before{content:"\\f02e"}.fa-bootstrap:before{content:"\\f836"}.fa-border-all:before{content:"\\f84c"}.fa-border-none:before{content:"\\f850"}.fa-border-style:before{content:"\\f853"}.fa-bowling-ball:before{content:"\\f436"}.fa-box:before{content:"\\f466"}.fa-box-open:before{content:"\\f49e"}.fa-box-tissue:before{content:"\\f95b"}.fa-boxes:before{content:"\\f468"}.fa-braille:before{content:"\\f2a1"}.fa-brain:before{content:"\\f5dc"}.fa-bread-slice:before{content:"\\f7ec"}.fa-briefcase:before{content:"\\f0b1"}.fa-briefcase-medical:before{content:"\\f469"}.fa-broadcast-tower:before{content:"\\f519"}.fa-broom:before{content:"\\f51a"}.fa-brush:before{content:"\\f55d"}.fa-btc:before{content:"\\f15a"}.fa-buffer:before{content:"\\f837"}.fa-bug:before{content:"\\f188"}.fa-building:before{content:"\\f1ad"}.fa-bullhorn:before{content:"\\f0a1"}.fa-bullseye:before{content:"\\f140"}.fa-burn:before{content:"\\f46a"}.fa-buromobelexperte:before{content:"\\f37f"}.fa-bus:before{content:"\\f207"}.fa-bus-alt:before{content:"\\f55e"}.fa-business-time:before{content:"\\f64a"}.fa-buy-n-large:before{content:"\\f8a6"}.fa-buysellads:before{content:"\\f20d"}.fa-calculator:before{content:"\\f1ec"}.fa-calendar:before{content:"\\f133"}.fa-calendar-alt:before{content:"\\f073"}.fa-calendar-check:before{content:"\\f274"}.fa-calendar-day:before{content:"\\f783"}.fa-calendar-minus:before{content:"\\f272"}.fa-calendar-plus:before{content:"\\f271"}.fa-calendar-times:before{content:"\\f273"}.fa-calendar-week:before{content:"\\f784"}.fa-camera:before{content:"\\f030"}.fa-camera-retro:before{content:"\\f083"}.fa-campground:before{content:"\\f6bb"}.fa-canadian-maple-leaf:before{content:"\\f785"}.fa-candy-cane:before{content:"\\f786"}.fa-cannabis:before{content:"\\f55f"}.fa-capsules:before{content:"\\f46b"}.fa-car:before{content:"\\f1b9"}.fa-car-alt:before{content:"\\f5de"}.fa-car-battery:before{content:"\\f5df"}.fa-car-crash:before{content:"\\f5e1"}.fa-car-side:before{content:"\\f5e4"}.fa-caravan:before{content:"\\f8ff"}.fa-caret-down:before{content:"\\f0d7"}.fa-caret-left:before{content:"\\f0d9"}.fa-caret-right:before{content:"\\f0da"}.fa-caret-square-down:before{content:"\\f150"}.fa-caret-square-left:before{content:"\\f191"}.fa-caret-square-right:before{content:"\\f152"}.fa-caret-square-up:before{content:"\\f151"}.fa-caret-up:before{content:"\\f0d8"}.fa-carrot:before{content:"\\f787"}.fa-cart-arrow-down:before{content:"\\f218"}.fa-cart-plus:before{content:"\\f217"}.fa-cash-register:before{content:"\\f788"}.fa-cat:before{content:"\\f6be"}.fa-cc-amazon-pay:before{content:"\\f42d"}.fa-cc-amex:before{content:"\\f1f3"}.fa-cc-apple-pay:before{content:"\\f416"}.fa-cc-diners-club:before{content:"\\f24c"}.fa-cc-discover:before{content:"\\f1f2"}.fa-cc-jcb:before{content:"\\f24b"}.fa-cc-mastercard:before{content:"\\f1f1"}.fa-cc-paypal:before{content:"\\f1f4"}.fa-cc-stripe:before{content:"\\f1f5"}.fa-cc-visa:before{content:"\\f1f0"}.fa-centercode:before{content:"\\f380"}.fa-centos:before{content:"\\f789"}.fa-certificate:before{content:"\\f0a3"}.fa-chair:before{content:"\\f6c0"}.fa-chalkboard:before{content:"\\f51b"}.fa-chalkboard-teacher:before{content:"\\f51c"}.fa-charging-station:before{content:"\\f5e7"}.fa-chart-area:before{content:"\\f1fe"}.fa-chart-bar:before{content:"\\f080"}.fa-chart-line:before{content:"\\f201"}.fa-chart-pie:before{content:"\\f200"}.fa-check:before{content:"\\f00c"}.fa-check-circle:before{content:"\\f058"}.fa-check-double:before{content:"\\f560"}.fa-check-square:before{content:"\\f14a"}.fa-cheese:before{content:"\\f7ef"}.fa-chess:before{content:"\\f439"}.fa-chess-bishop:before{content:"\\f43a"}.fa-chess-board:before{content:"\\f43c"}.fa-chess-king:before{content:"\\f43f"}.fa-chess-knight:before{content:"\\f441"}.fa-chess-pawn:before{content:"\\f443"}.fa-chess-queen:before{content:"\\f445"}.fa-chess-rook:before{content:"\\f447"}.fa-chevron-circle-down:before{content:"\\f13a"}.fa-chevron-circle-left:before{content:"\\f137"}.fa-chevron-circle-right:before{content:"\\f138"}.fa-chevron-circle-up:before{content:"\\f139"}.fa-chevron-down:before{content:"\\f078"}.fa-chevron-left:before{content:"\\f053"}.fa-chevron-right:before{content:"\\f054"}.fa-chevron-up:before{content:"\\f077"}.fa-child:before{content:"\\f1ae"}.fa-chrome:before{content:"\\f268"}.fa-chromecast:before{content:"\\f838"}.fa-church:before{content:"\\f51d"}.fa-circle:before{content:"\\f111"}.fa-circle-notch:before{content:"\\f1ce"}.fa-city:before{content:"\\f64f"}.fa-clinic-medical:before{content:"\\f7f2"}.fa-clipboard:before{content:"\\f328"}.fa-clipboard-check:before{content:"\\f46c"}.fa-clipboard-list:before{content:"\\f46d"}.fa-clock:before{content:"\\f017"}.fa-clone:before{content:"\\f24d"}.fa-closed-captioning:before{content:"\\f20a"}.fa-cloud:before{content:"\\f0c2"}.fa-cloud-download-alt:before{content:"\\f381"}.fa-cloud-meatball:before{content:"\\f73b"}.fa-cloud-moon:before{content:"\\f6c3"}.fa-cloud-moon-rain:before{content:"\\f73c"}.fa-cloud-rain:before{content:"\\f73d"}.fa-cloud-showers-heavy:before{content:"\\f740"}.fa-cloud-sun:before{content:"\\f6c4"}.fa-cloud-sun-rain:before{content:"\\f743"}.fa-cloud-upload-alt:before{content:"\\f382"}.fa-cloudscale:before{content:"\\f383"}.fa-cloudsmith:before{content:"\\f384"}.fa-cloudversify:before{content:"\\f385"}.fa-cocktail:before{content:"\\f561"}.fa-code:before{content:"\\f121"}.fa-code-branch:before{content:"\\f126"}.fa-codepen:before{content:"\\f1cb"}.fa-codiepie:before{content:"\\f284"}.fa-coffee:before{content:"\\f0f4"}.fa-cog:before{content:"\\f013"}.fa-cogs:before{content:"\\f085"}.fa-coins:before{content:"\\f51e"}.fa-columns:before{content:"\\f0db"}.fa-comment:before{content:"\\f075"}.fa-comment-alt:before{content:"\\f27a"}.fa-comment-dollar:before{content:"\\f651"}.fa-comment-dots:before{content:"\\f4ad"}.fa-comment-medical:before{content:"\\f7f5"}.fa-comment-slash:before{content:"\\f4b3"}.fa-comments:before{content:"\\f086"}.fa-comments-dollar:before{content:"\\f653"}.fa-compact-disc:before{content:"\\f51f"}.fa-compass:before{content:"\\f14e"}.fa-compress:before{content:"\\f066"}.fa-compress-alt:before{content:"\\f422"}.fa-compress-arrows-alt:before{content:"\\f78c"}.fa-concierge-bell:before{content:"\\f562"}.fa-confluence:before{content:"\\f78d"}.fa-connectdevelop:before{content:"\\f20e"}.fa-contao:before{content:"\\f26d"}.fa-cookie:before{content:"\\f563"}.fa-cookie-bite:before{content:"\\f564"}.fa-copy:before{content:"\\f0c5"}.fa-copyright:before{content:"\\f1f9"}.fa-cotton-bureau:before{content:"\\f89e"}.fa-couch:before{content:"\\f4b8"}.fa-cpanel:before{content:"\\f388"}.fa-creative-commons:before{content:"\\f25e"}.fa-creative-commons-by:before{content:"\\f4e7"}.fa-creative-commons-nc:before{content:"\\f4e8"}.fa-creative-commons-nc-eu:before{content:"\\f4e9"}.fa-creative-commons-nc-jp:before{content:"\\f4ea"}.fa-creative-commons-nd:before{content:"\\f4eb"}.fa-creative-commons-pd:before{content:"\\f4ec"}.fa-creative-commons-pd-alt:before{content:"\\f4ed"}.fa-creative-commons-remix:before{content:"\\f4ee"}.fa-creative-commons-sa:before{content:"\\f4ef"}.fa-creative-commons-sampling:before{content:"\\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\\f4f1"}.fa-creative-commons-share:before{content:"\\f4f2"}.fa-creative-commons-zero:before{content:"\\f4f3"}.fa-credit-card:before{content:"\\f09d"}.fa-critical-role:before{content:"\\f6c9"}.fa-crop:before{content:"\\f125"}.fa-crop-alt:before{content:"\\f565"}.fa-cross:before{content:"\\f654"}.fa-crosshairs:before{content:"\\f05b"}.fa-crow:before{content:"\\f520"}.fa-crown:before{content:"\\f521"}.fa-crutch:before{content:"\\f7f7"}.fa-css3:before{content:"\\f13c"}.fa-css3-alt:before{content:"\\f38b"}.fa-cube:before{content:"\\f1b2"}.fa-cubes:before{content:"\\f1b3"}.fa-cut:before{content:"\\f0c4"}.fa-cuttlefish:before{content:"\\f38c"}.fa-d-and-d:before{content:"\\f38d"}.fa-d-and-d-beyond:before{content:"\\f6ca"}.fa-dailymotion:before{content:"\\f952"}.fa-dashcube:before{content:"\\f210"}.fa-database:before{content:"\\f1c0"}.fa-deaf:before{content:"\\f2a4"}.fa-delicious:before{content:"\\f1a5"}.fa-democrat:before{content:"\\f747"}.fa-deploydog:before{content:"\\f38e"}.fa-deskpro:before{content:"\\f38f"}.fa-desktop:before{content:"\\f108"}.fa-dev:before{content:"\\f6cc"}.fa-deviantart:before{content:"\\f1bd"}.fa-dharmachakra:before{content:"\\f655"}.fa-dhl:before{content:"\\f790"}.fa-diagnoses:before{content:"\\f470"}.fa-diaspora:before{content:"\\f791"}.fa-dice:before{content:"\\f522"}.fa-dice-d20:before{content:"\\f6cf"}.fa-dice-d6:before{content:"\\f6d1"}.fa-dice-five:before{content:"\\f523"}.fa-dice-four:before{content:"\\f524"}.fa-dice-one:before{content:"\\f525"}.fa-dice-six:before{content:"\\f526"}.fa-dice-three:before{content:"\\f527"}.fa-dice-two:before{content:"\\f528"}.fa-digg:before{content:"\\f1a6"}.fa-digital-ocean:before{content:"\\f391"}.fa-digital-tachograph:before{content:"\\f566"}.fa-directions:before{content:"\\f5eb"}.fa-discord:before{content:"\\f392"}.fa-discourse:before{content:"\\f393"}.fa-disease:before{content:"\\f7fa"}.fa-divide:before{content:"\\f529"}.fa-dizzy:before{content:"\\f567"}.fa-dna:before{content:"\\f471"}.fa-dochub:before{content:"\\f394"}.fa-docker:before{content:"\\f395"}.fa-dog:before{content:"\\f6d3"}.fa-dollar-sign:before{content:"\\f155"}.fa-dolly:before{content:"\\f472"}.fa-dolly-flatbed:before{content:"\\f474"}.fa-donate:before{content:"\\f4b9"}.fa-door-closed:before{content:"\\f52a"}.fa-door-open:before{content:"\\f52b"}.fa-dot-circle:before{content:"\\f192"}.fa-dove:before{content:"\\f4ba"}.fa-download:before{content:"\\f019"}.fa-draft2digital:before{content:"\\f396"}.fa-drafting-compass:before{content:"\\f568"}.fa-dragon:before{content:"\\f6d5"}.fa-draw-polygon:before{content:"\\f5ee"}.fa-dribbble:before{content:"\\f17d"}.fa-dribbble-square:before{content:"\\f397"}.fa-dropbox:before{content:"\\f16b"}.fa-drum:before{content:"\\f569"}.fa-drum-steelpan:before{content:"\\f56a"}.fa-drumstick-bite:before{content:"\\f6d7"}.fa-drupal:before{content:"\\f1a9"}.fa-dumbbell:before{content:"\\f44b"}.fa-dumpster:before{content:"\\f793"}.fa-dumpster-fire:before{content:"\\f794"}.fa-dungeon:before{content:"\\f6d9"}.fa-dyalog:before{content:"\\f399"}.fa-earlybirds:before{content:"\\f39a"}.fa-ebay:before{content:"\\f4f4"}.fa-edge:before{content:"\\f282"}.fa-edit:before{content:"\\f044"}.fa-egg:before{content:"\\f7fb"}.fa-eject:before{content:"\\f052"}.fa-elementor:before{content:"\\f430"}.fa-ellipsis-h:before{content:"\\f141"}.fa-ellipsis-v:before{content:"\\f142"}.fa-ello:before{content:"\\f5f1"}.fa-ember:before{content:"\\f423"}.fa-empire:before{content:"\\f1d1"}.fa-envelope:before{content:"\\f0e0"}.fa-envelope-open:before{content:"\\f2b6"}.fa-envelope-open-text:before{content:"\\f658"}.fa-envelope-square:before{content:"\\f199"}.fa-envira:before{content:"\\f299"}.fa-equals:before{content:"\\f52c"}.fa-eraser:before{content:"\\f12d"}.fa-erlang:before{content:"\\f39d"}.fa-ethereum:before{content:"\\f42e"}.fa-ethernet:before{content:"\\f796"}.fa-etsy:before{content:"\\f2d7"}.fa-euro-sign:before{content:"\\f153"}.fa-evernote:before{content:"\\f839"}.fa-exchange-alt:before{content:"\\f362"}.fa-exclamation:before{content:"\\f12a"}.fa-exclamation-circle:before{content:"\\f06a"}.fa-exclamation-triangle:before{content:"\\f071"}.fa-expand:before{content:"\\f065"}.fa-expand-alt:before{content:"\\f424"}.fa-expand-arrows-alt:before{content:"\\f31e"}.fa-expeditedssl:before{content:"\\f23e"}.fa-external-link-alt:before{content:"\\f35d"}.fa-external-link-square-alt:before{content:"\\f360"}.fa-eye:before{content:"\\f06e"}.fa-eye-dropper:before{content:"\\f1fb"}.fa-eye-slash:before{content:"\\f070"}.fa-facebook:before{content:"\\f09a"}.fa-facebook-f:before{content:"\\f39e"}.fa-facebook-messenger:before{content:"\\f39f"}.fa-facebook-square:before{content:"\\f082"}.fa-fan:before{content:"\\f863"}.fa-fantasy-flight-games:before{content:"\\f6dc"}.fa-fast-backward:before{content:"\\f049"}.fa-fast-forward:before{content:"\\f050"}.fa-faucet:before{content:"\\f905"}.fa-fax:before{content:"\\f1ac"}.fa-feather:before{content:"\\f52d"}.fa-feather-alt:before{content:"\\f56b"}.fa-fedex:before{content:"\\f797"}.fa-fedora:before{content:"\\f798"}.fa-female:before{content:"\\f182"}.fa-fighter-jet:before{content:"\\f0fb"}.fa-figma:before{content:"\\f799"}.fa-file:before{content:"\\f15b"}.fa-file-alt:before{content:"\\f15c"}.fa-file-archive:before{content:"\\f1c6"}.fa-file-audio:before{content:"\\f1c7"}.fa-file-code:before{content:"\\f1c9"}.fa-file-contract:before{content:"\\f56c"}.fa-file-csv:before{content:"\\f6dd"}.fa-file-download:before{content:"\\f56d"}.fa-file-excel:before{content:"\\f1c3"}.fa-file-export:before{content:"\\f56e"}.fa-file-image:before{content:"\\f1c5"}.fa-file-import:before{content:"\\f56f"}.fa-file-invoice:before{content:"\\f570"}.fa-file-invoice-dollar:before{content:"\\f571"}.fa-file-medical:before{content:"\\f477"}.fa-file-medical-alt:before{content:"\\f478"}.fa-file-pdf:before{content:"\\f1c1"}.fa-file-powerpoint:before{content:"\\f1c4"}.fa-file-prescription:before{content:"\\f572"}.fa-file-signature:before{content:"\\f573"}.fa-file-upload:before{content:"\\f574"}.fa-file-video:before{content:"\\f1c8"}.fa-file-word:before{content:"\\f1c2"}.fa-fill:before{content:"\\f575"}.fa-fill-drip:before{content:"\\f576"}.fa-film:before{content:"\\f008"}.fa-filter:before{content:"\\f0b0"}.fa-fingerprint:before{content:"\\f577"}.fa-fire:before{content:"\\f06d"}.fa-fire-alt:before{content:"\\f7e4"}.fa-fire-extinguisher:before{content:"\\f134"}.fa-firefox:before{content:"\\f269"}.fa-firefox-browser:before{content:"\\f907"}.fa-first-aid:before{content:"\\f479"}.fa-first-order:before{content:"\\f2b0"}.fa-first-order-alt:before{content:"\\f50a"}.fa-firstdraft:before{content:"\\f3a1"}.fa-fish:before{content:"\\f578"}.fa-fist-raised:before{content:"\\f6de"}.fa-flag:before{content:"\\f024"}.fa-flag-checkered:before{content:"\\f11e"}.fa-flag-usa:before{content:"\\f74d"}.fa-flask:before{content:"\\f0c3"}.fa-flickr:before{content:"\\f16e"}.fa-flipboard:before{content:"\\f44d"}.fa-flushed:before{content:"\\f579"}.fa-fly:before{content:"\\f417"}.fa-folder:before{content:"\\f07b"}.fa-folder-minus:before{content:"\\f65d"}.fa-folder-open:before{content:"\\f07c"}.fa-folder-plus:before{content:"\\f65e"}.fa-font:before{content:"\\f031"}.fa-font-awesome:before{content:"\\f2b4"}.fa-font-awesome-alt:before{content:"\\f35c"}.fa-font-awesome-flag:before{content:"\\f425"}.fa-font-awesome-logo-full:before{content:"\\f4e6"}.fa-fonticons:before{content:"\\f280"}.fa-fonticons-fi:before{content:"\\f3a2"}.fa-football-ball:before{content:"\\f44e"}.fa-fort-awesome:before{content:"\\f286"}.fa-fort-awesome-alt:before{content:"\\f3a3"}.fa-forumbee:before{content:"\\f211"}.fa-forward:before{content:"\\f04e"}.fa-foursquare:before{content:"\\f180"}.fa-free-code-camp:before{content:"\\f2c5"}.fa-freebsd:before{content:"\\f3a4"}.fa-frog:before{content:"\\f52e"}.fa-frown:before{content:"\\f119"}.fa-frown-open:before{content:"\\f57a"}.fa-fulcrum:before{content:"\\f50b"}.fa-funnel-dollar:before{content:"\\f662"}.fa-futbol:before{content:"\\f1e3"}.fa-galactic-republic:before{content:"\\f50c"}.fa-galactic-senate:before{content:"\\f50d"}.fa-gamepad:before{content:"\\f11b"}.fa-gas-pump:before{content:"\\f52f"}.fa-gavel:before{content:"\\f0e3"}.fa-gem:before{content:"\\f3a5"}.fa-genderless:before{content:"\\f22d"}.fa-get-pocket:before{content:"\\f265"}.fa-gg:before{content:"\\f260"}.fa-gg-circle:before{content:"\\f261"}.fa-ghost:before{content:"\\f6e2"}.fa-gift:before{content:"\\f06b"}.fa-gifts:before{content:"\\f79c"}.fa-git:before{content:"\\f1d3"}.fa-git-alt:before{content:"\\f841"}.fa-git-square:before{content:"\\f1d2"}.fa-github:before{content:"\\f09b"}.fa-github-alt:before{content:"\\f113"}.fa-github-square:before{content:"\\f092"}.fa-gitkraken:before{content:"\\f3a6"}.fa-gitlab:before{content:"\\f296"}.fa-gitter:before{content:"\\f426"}.fa-glass-cheers:before{content:"\\f79f"}.fa-glass-martini:before{content:"\\f000"}.fa-glass-martini-alt:before{content:"\\f57b"}.fa-glass-whiskey:before{content:"\\f7a0"}.fa-glasses:before{content:"\\f530"}.fa-glide:before{content:"\\f2a5"}.fa-glide-g:before{content:"\\f2a6"}.fa-globe:before{content:"\\f0ac"}.fa-globe-africa:before{content:"\\f57c"}.fa-globe-americas:before{content:"\\f57d"}.fa-globe-asia:before{content:"\\f57e"}.fa-globe-europe:before{content:"\\f7a2"}.fa-gofore:before{content:"\\f3a7"}.fa-golf-ball:before{content:"\\f450"}.fa-goodreads:before{content:"\\f3a8"}.fa-goodreads-g:before{content:"\\f3a9"}.fa-google:before{content:"\\f1a0"}.fa-google-drive:before{content:"\\f3aa"}.fa-google-play:before{content:"\\f3ab"}.fa-google-plus:before{content:"\\f2b3"}.fa-google-plus-g:before{content:"\\f0d5"}.fa-google-plus-square:before{content:"\\f0d4"}.fa-google-wallet:before{content:"\\f1ee"}.fa-gopuram:before{content:"\\f664"}.fa-graduation-cap:before{content:"\\f19d"}.fa-gratipay:before{content:"\\f184"}.fa-grav:before{content:"\\f2d6"}.fa-greater-than:before{content:"\\f531"}.fa-greater-than-equal:before{content:"\\f532"}.fa-grimace:before{content:"\\f57f"}.fa-grin:before{content:"\\f580"}.fa-grin-alt:before{content:"\\f581"}.fa-grin-beam:before{content:"\\f582"}.fa-grin-beam-sweat:before{content:"\\f583"}.fa-grin-hearts:before{content:"\\f584"}.fa-grin-squint:before{content:"\\f585"}.fa-grin-squint-tears:before{content:"\\f586"}.fa-grin-stars:before{content:"\\f587"}.fa-grin-tears:before{content:"\\f588"}.fa-grin-tongue:before{content:"\\f589"}.fa-grin-tongue-squint:before{content:"\\f58a"}.fa-grin-tongue-wink:before{content:"\\f58b"}.fa-grin-wink:before{content:"\\f58c"}.fa-grip-horizontal:before{content:"\\f58d"}.fa-grip-lines:before{content:"\\f7a4"}.fa-grip-lines-vertical:before{content:"\\f7a5"}.fa-grip-vertical:before{content:"\\f58e"}.fa-gripfire:before{content:"\\f3ac"}.fa-grunt:before{content:"\\f3ad"}.fa-guitar:before{content:"\\f7a6"}.fa-gulp:before{content:"\\f3ae"}.fa-h-square:before{content:"\\f0fd"}.fa-hacker-news:before{content:"\\f1d4"}.fa-hacker-news-square:before{content:"\\f3af"}.fa-hackerrank:before{content:"\\f5f7"}.fa-hamburger:before{content:"\\f805"}.fa-hammer:before{content:"\\f6e3"}.fa-hamsa:before{content:"\\f665"}.fa-hand-holding:before{content:"\\f4bd"}.fa-hand-holding-heart:before{content:"\\f4be"}.fa-hand-holding-medical:before{content:"\\f95c"}.fa-hand-holding-usd:before{content:"\\f4c0"}.fa-hand-holding-water:before{content:"\\f4c1"}.fa-hand-lizard:before{content:"\\f258"}.fa-hand-middle-finger:before{content:"\\f806"}.fa-hand-paper:before{content:"\\f256"}.fa-hand-peace:before{content:"\\f25b"}.fa-hand-point-down:before{content:"\\f0a7"}.fa-hand-point-left:before{content:"\\f0a5"}.fa-hand-point-right:before{content:"\\f0a4"}.fa-hand-point-up:before{content:"\\f0a6"}.fa-hand-pointer:before{content:"\\f25a"}.fa-hand-rock:before{content:"\\f255"}.fa-hand-scissors:before{content:"\\f257"}.fa-hand-sparkles:before{content:"\\f95d"}.fa-hand-spock:before{content:"\\f259"}.fa-hands:before{content:"\\f4c2"}.fa-hands-helping:before{content:"\\f4c4"}.fa-hands-wash:before{content:"\\f95e"}.fa-handshake:before{content:"\\f2b5"}.fa-handshake-alt-slash:before{content:"\\f95f"}.fa-handshake-slash:before{content:"\\f960"}.fa-hanukiah:before{content:"\\f6e6"}.fa-hard-hat:before{content:"\\f807"}.fa-hashtag:before{content:"\\f292"}.fa-hat-cowboy:before{content:"\\f8c0"}.fa-hat-cowboy-side:before{content:"\\f8c1"}.fa-hat-wizard:before{content:"\\f6e8"}.fa-hdd:before{content:"\\f0a0"}.fa-head-side-cough:before{content:"\\f961"}.fa-head-side-cough-slash:before{content:"\\f962"}.fa-head-side-mask:before{content:"\\f963"}.fa-head-side-virus:before{content:"\\f964"}.fa-heading:before{content:"\\f1dc"}.fa-headphones:before{content:"\\f025"}.fa-headphones-alt:before{content:"\\f58f"}.fa-headset:before{content:"\\f590"}.fa-heart:before{content:"\\f004"}.fa-heart-broken:before{content:"\\f7a9"}.fa-heartbeat:before{content:"\\f21e"}.fa-helicopter:before{content:"\\f533"}.fa-highlighter:before{content:"\\f591"}.fa-hiking:before{content:"\\f6ec"}.fa-hippo:before{content:"\\f6ed"}.fa-hips:before{content:"\\f452"}.fa-hire-a-helper:before{content:"\\f3b0"}.fa-history:before{content:"\\f1da"}.fa-hockey-puck:before{content:"\\f453"}.fa-holly-berry:before{content:"\\f7aa"}.fa-home:before{content:"\\f015"}.fa-hooli:before{content:"\\f427"}.fa-hornbill:before{content:"\\f592"}.fa-horse:before{content:"\\f6f0"}.fa-horse-head:before{content:"\\f7ab"}.fa-hospital:before{content:"\\f0f8"}.fa-hospital-alt:before{content:"\\f47d"}.fa-hospital-symbol:before{content:"\\f47e"}.fa-hospital-user:before{content:"\\f80d"}.fa-hot-tub:before{content:"\\f593"}.fa-hotdog:before{content:"\\f80f"}.fa-hotel:before{content:"\\f594"}.fa-hotjar:before{content:"\\f3b1"}.fa-hourglass:before{content:"\\f254"}.fa-hourglass-end:before{content:"\\f253"}.fa-hourglass-half:before{content:"\\f252"}.fa-hourglass-start:before{content:"\\f251"}.fa-house-damage:before{content:"\\f6f1"}.fa-house-user:before{content:"\\f965"}.fa-houzz:before{content:"\\f27c"}.fa-hryvnia:before{content:"\\f6f2"}.fa-html5:before{content:"\\f13b"}.fa-hubspot:before{content:"\\f3b2"}.fa-i-cursor:before{content:"\\f246"}.fa-ice-cream:before{content:"\\f810"}.fa-icicles:before{content:"\\f7ad"}.fa-icons:before{content:"\\f86d"}.fa-id-badge:before{content:"\\f2c1"}.fa-id-card:before{content:"\\f2c2"}.fa-id-card-alt:before{content:"\\f47f"}.fa-ideal:before{content:"\\f913"}.fa-igloo:before{content:"\\f7ae"}.fa-image:before{content:"\\f03e"}.fa-images:before{content:"\\f302"}.fa-imdb:before{content:"\\f2d8"}.fa-inbox:before{content:"\\f01c"}.fa-indent:before{content:"\\f03c"}.fa-industry:before{content:"\\f275"}.fa-infinity:before{content:"\\f534"}.fa-info:before{content:"\\f129"}.fa-info-circle:before{content:"\\f05a"}.fa-instagram:before{content:"\\f16d"}.fa-instagram-square:before{content:"\\f955"}.fa-intercom:before{content:"\\f7af"}.fa-internet-explorer:before{content:"\\f26b"}.fa-invision:before{content:"\\f7b0"}.fa-ioxhost:before{content:"\\f208"}.fa-italic:before{content:"\\f033"}.fa-itch-io:before{content:"\\f83a"}.fa-itunes:before{content:"\\f3b4"}.fa-itunes-note:before{content:"\\f3b5"}.fa-java:before{content:"\\f4e4"}.fa-jedi:before{content:"\\f669"}.fa-jedi-order:before{content:"\\f50e"}.fa-jenkins:before{content:"\\f3b6"}.fa-jira:before{content:"\\f7b1"}.fa-joget:before{content:"\\f3b7"}.fa-joint:before{content:"\\f595"}.fa-joomla:before{content:"\\f1aa"}.fa-journal-whills:before{content:"\\f66a"}.fa-js:before{content:"\\f3b8"}.fa-js-square:before{content:"\\f3b9"}.fa-jsfiddle:before{content:"\\f1cc"}.fa-kaaba:before{content:"\\f66b"}.fa-kaggle:before{content:"\\f5fa"}.fa-key:before{content:"\\f084"}.fa-keybase:before{content:"\\f4f5"}.fa-keyboard:before{content:"\\f11c"}.fa-keycdn:before{content:"\\f3ba"}.fa-khanda:before{content:"\\f66d"}.fa-kickstarter:before{content:"\\f3bb"}.fa-kickstarter-k:before{content:"\\f3bc"}.fa-kiss:before{content:"\\f596"}.fa-kiss-beam:before{content:"\\f597"}.fa-kiss-wink-heart:before{content:"\\f598"}.fa-kiwi-bird:before{content:"\\f535"}.fa-korvue:before{content:"\\f42f"}.fa-landmark:before{content:"\\f66f"}.fa-language:before{content:"\\f1ab"}.fa-laptop:before{content:"\\f109"}.fa-laptop-code:before{content:"\\f5fc"}.fa-laptop-house:before{content:"\\f966"}.fa-laptop-medical:before{content:"\\f812"}.fa-laravel:before{content:"\\f3bd"}.fa-lastfm:before{content:"\\f202"}.fa-lastfm-square:before{content:"\\f203"}.fa-laugh:before{content:"\\f599"}.fa-laugh-beam:before{content:"\\f59a"}.fa-laugh-squint:before{content:"\\f59b"}.fa-laugh-wink:before{content:"\\f59c"}.fa-layer-group:before{content:"\\f5fd"}.fa-leaf:before{content:"\\f06c"}.fa-leanpub:before{content:"\\f212"}.fa-lemon:before{content:"\\f094"}.fa-less:before{content:"\\f41d"}.fa-less-than:before{content:"\\f536"}.fa-less-than-equal:before{content:"\\f537"}.fa-level-down-alt:before{content:"\\f3be"}.fa-level-up-alt:before{content:"\\f3bf"}.fa-life-ring:before{content:"\\f1cd"}.fa-lightbulb:before{content:"\\f0eb"}.fa-line:before{content:"\\f3c0"}.fa-link:before{content:"\\f0c1"}.fa-linkedin:before{content:"\\f08c"}.fa-linkedin-in:before{content:"\\f0e1"}.fa-linode:before{content:"\\f2b8"}.fa-linux:before{content:"\\f17c"}.fa-lira-sign:before{content:"\\f195"}.fa-list:before{content:"\\f03a"}.fa-list-alt:before{content:"\\f022"}.fa-list-ol:before{content:"\\f0cb"}.fa-list-ul:before{content:"\\f0ca"}.fa-location-arrow:before{content:"\\f124"}.fa-lock:before{content:"\\f023"}.fa-lock-open:before{content:"\\f3c1"}.fa-long-arrow-alt-down:before{content:"\\f309"}.fa-long-arrow-alt-left:before{content:"\\f30a"}.fa-long-arrow-alt-right:before{content:"\\f30b"}.fa-long-arrow-alt-up:before{content:"\\f30c"}.fa-low-vision:before{content:"\\f2a8"}.fa-luggage-cart:before{content:"\\f59d"}.fa-lungs:before{content:"\\f604"}.fa-lungs-virus:before{content:"\\f967"}.fa-lyft:before{content:"\\f3c3"}.fa-magento:before{content:"\\f3c4"}.fa-magic:before{content:"\\f0d0"}.fa-magnet:before{content:"\\f076"}.fa-mail-bulk:before{content:"\\f674"}.fa-mailchimp:before{content:"\\f59e"}.fa-male:before{content:"\\f183"}.fa-mandalorian:before{content:"\\f50f"}.fa-map:before{content:"\\f279"}.fa-map-marked:before{content:"\\f59f"}.fa-map-marked-alt:before{content:"\\f5a0"}.fa-map-marker:before{content:"\\f041"}.fa-map-marker-alt:before{content:"\\f3c5"}.fa-map-pin:before{content:"\\f276"}.fa-map-signs:before{content:"\\f277"}.fa-markdown:before{content:"\\f60f"}.fa-marker:before{content:"\\f5a1"}.fa-mars:before{content:"\\f222"}.fa-mars-double:before{content:"\\f227"}.fa-mars-stroke:before{content:"\\f229"}.fa-mars-stroke-h:before{content:"\\f22b"}.fa-mars-stroke-v:before{content:"\\f22a"}.fa-mask:before{content:"\\f6fa"}.fa-mastodon:before{content:"\\f4f6"}.fa-maxcdn:before{content:"\\f136"}.fa-mdb:before{content:"\\f8ca"}.fa-medal:before{content:"\\f5a2"}.fa-medapps:before{content:"\\f3c6"}.fa-medium:before{content:"\\f23a"}.fa-medium-m:before{content:"\\f3c7"}.fa-medkit:before{content:"\\f0fa"}.fa-medrt:before{content:"\\f3c8"}.fa-meetup:before{content:"\\f2e0"}.fa-megaport:before{content:"\\f5a3"}.fa-meh:before{content:"\\f11a"}.fa-meh-blank:before{content:"\\f5a4"}.fa-meh-rolling-eyes:before{content:"\\f5a5"}.fa-memory:before{content:"\\f538"}.fa-mendeley:before{content:"\\f7b3"}.fa-menorah:before{content:"\\f676"}.fa-mercury:before{content:"\\f223"}.fa-meteor:before{content:"\\f753"}.fa-microblog:before{content:"\\f91a"}.fa-microchip:before{content:"\\f2db"}.fa-microphone:before{content:"\\f130"}.fa-microphone-alt:before{content:"\\f3c9"}.fa-microphone-alt-slash:before{content:"\\f539"}.fa-microphone-slash:before{content:"\\f131"}.fa-microscope:before{content:"\\f610"}.fa-microsoft:before{content:"\\f3ca"}.fa-minus:before{content:"\\f068"}.fa-minus-circle:before{content:"\\f056"}.fa-minus-square:before{content:"\\f146"}.fa-mitten:before{content:"\\f7b5"}.fa-mix:before{content:"\\f3cb"}.fa-mixcloud:before{content:"\\f289"}.fa-mixer:before{content:"\\f956"}.fa-mizuni:before{content:"\\f3cc"}.fa-mobile:before{content:"\\f10b"}.fa-mobile-alt:before{content:"\\f3cd"}.fa-modx:before{content:"\\f285"}.fa-monero:before{content:"\\f3d0"}.fa-money-bill:before{content:"\\f0d6"}.fa-money-bill-alt:before{content:"\\f3d1"}.fa-money-bill-wave:before{content:"\\f53a"}.fa-money-bill-wave-alt:before{content:"\\f53b"}.fa-money-check:before{content:"\\f53c"}.fa-money-check-alt:before{content:"\\f53d"}.fa-monument:before{content:"\\f5a6"}.fa-moon:before{content:"\\f186"}.fa-mortar-pestle:before{content:"\\f5a7"}.fa-mosque:before{content:"\\f678"}.fa-motorcycle:before{content:"\\f21c"}.fa-mountain:before{content:"\\f6fc"}.fa-mouse:before{content:"\\f8cc"}.fa-mouse-pointer:before{content:"\\f245"}.fa-mug-hot:before{content:"\\f7b6"}.fa-music:before{content:"\\f001"}.fa-napster:before{content:"\\f3d2"}.fa-neos:before{content:"\\f612"}.fa-network-wired:before{content:"\\f6ff"}.fa-neuter:before{content:"\\f22c"}.fa-newspaper:before{content:"\\f1ea"}.fa-nimblr:before{content:"\\f5a8"}.fa-node:before{content:"\\f419"}.fa-node-js:before{content:"\\f3d3"}.fa-not-equal:before{content:"\\f53e"}.fa-notes-medical:before{content:"\\f481"}.fa-npm:before{content:"\\f3d4"}.fa-ns8:before{content:"\\f3d5"}.fa-nutritionix:before{content:"\\f3d6"}.fa-object-group:before{content:"\\f247"}.fa-object-ungroup:before{content:"\\f248"}.fa-odnoklassniki:before{content:"\\f263"}.fa-odnoklassniki-square:before{content:"\\f264"}.fa-oil-can:before{content:"\\f613"}.fa-old-republic:before{content:"\\f510"}.fa-om:before{content:"\\f679"}.fa-opencart:before{content:"\\f23d"}.fa-openid:before{content:"\\f19b"}.fa-opera:before{content:"\\f26a"}.fa-optin-monster:before{content:"\\f23c"}.fa-orcid:before{content:"\\f8d2"}.fa-osi:before{content:"\\f41a"}.fa-otter:before{content:"\\f700"}.fa-outdent:before{content:"\\f03b"}.fa-page4:before{content:"\\f3d7"}.fa-pagelines:before{content:"\\f18c"}.fa-pager:before{content:"\\f815"}.fa-paint-brush:before{content:"\\f1fc"}.fa-paint-roller:before{content:"\\f5aa"}.fa-palette:before{content:"\\f53f"}.fa-palfed:before{content:"\\f3d8"}.fa-pallet:before{content:"\\f482"}.fa-paper-plane:before{content:"\\f1d8"}.fa-paperclip:before{content:"\\f0c6"}.fa-parachute-box:before{content:"\\f4cd"}.fa-paragraph:before{content:"\\f1dd"}.fa-parking:before{content:"\\f540"}.fa-passport:before{content:"\\f5ab"}.fa-pastafarianism:before{content:"\\f67b"}.fa-paste:before{content:"\\f0ea"}.fa-patreon:before{content:"\\f3d9"}.fa-pause:before{content:"\\f04c"}.fa-pause-circle:before{content:"\\f28b"}.fa-paw:before{content:"\\f1b0"}.fa-paypal:before{content:"\\f1ed"}.fa-peace:before{content:"\\f67c"}.fa-pen:before{content:"\\f304"}.fa-pen-alt:before{content:"\\f305"}.fa-pen-fancy:before{content:"\\f5ac"}.fa-pen-nib:before{content:"\\f5ad"}.fa-pen-square:before{content:"\\f14b"}.fa-pencil-alt:before{content:"\\f303"}.fa-pencil-ruler:before{content:"\\f5ae"}.fa-penny-arcade:before{content:"\\f704"}.fa-people-arrows:before{content:"\\f968"}.fa-people-carry:before{content:"\\f4ce"}.fa-pepper-hot:before{content:"\\f816"}.fa-percent:before{content:"\\f295"}.fa-percentage:before{content:"\\f541"}.fa-periscope:before{content:"\\f3da"}.fa-person-booth:before{content:"\\f756"}.fa-phabricator:before{content:"\\f3db"}.fa-phoenix-framework:before{content:"\\f3dc"}.fa-phoenix-squadron:before{content:"\\f511"}.fa-phone:before{content:"\\f095"}.fa-phone-alt:before{content:"\\f879"}.fa-phone-slash:before{content:"\\f3dd"}.fa-phone-square:before{content:"\\f098"}.fa-phone-square-alt:before{content:"\\f87b"}.fa-phone-volume:before{content:"\\f2a0"}.fa-photo-video:before{content:"\\f87c"}.fa-php:before{content:"\\f457"}.fa-pied-piper:before{content:"\\f2ae"}.fa-pied-piper-alt:before{content:"\\f1a8"}.fa-pied-piper-hat:before{content:"\\f4e5"}.fa-pied-piper-pp:before{content:"\\f1a7"}.fa-pied-piper-square:before{content:"\\f91e"}.fa-piggy-bank:before{content:"\\f4d3"}.fa-pills:before{content:"\\f484"}.fa-pinterest:before{content:"\\f0d2"}.fa-pinterest-p:before{content:"\\f231"}.fa-pinterest-square:before{content:"\\f0d3"}.fa-pizza-slice:before{content:"\\f818"}.fa-place-of-worship:before{content:"\\f67f"}.fa-plane:before{content:"\\f072"}.fa-plane-arrival:before{content:"\\f5af"}.fa-plane-departure:before{content:"\\f5b0"}.fa-plane-slash:before{content:"\\f969"}.fa-play:before{content:"\\f04b"}.fa-play-circle:before{content:"\\f144"}.fa-playstation:before{content:"\\f3df"}.fa-plug:before{content:"\\f1e6"}.fa-plus:before{content:"\\f067"}.fa-plus-circle:before{content:"\\f055"}.fa-plus-square:before{content:"\\f0fe"}.fa-podcast:before{content:"\\f2ce"}.fa-poll:before{content:"\\f681"}.fa-poll-h:before{content:"\\f682"}.fa-poo:before{content:"\\f2fe"}.fa-poo-storm:before{content:"\\f75a"}.fa-poop:before{content:"\\f619"}.fa-portrait:before{content:"\\f3e0"}.fa-pound-sign:before{content:"\\f154"}.fa-power-off:before{content:"\\f011"}.fa-pray:before{content:"\\f683"}.fa-praying-hands:before{content:"\\f684"}.fa-prescription:before{content:"\\f5b1"}.fa-prescription-bottle:before{content:"\\f485"}.fa-prescription-bottle-alt:before{content:"\\f486"}.fa-print:before{content:"\\f02f"}.fa-procedures:before{content:"\\f487"}.fa-product-hunt:before{content:"\\f288"}.fa-project-diagram:before{content:"\\f542"}.fa-pump-medical:before{content:"\\f96a"}.fa-pump-soap:before{content:"\\f96b"}.fa-pushed:before{content:"\\f3e1"}.fa-puzzle-piece:before{content:"\\f12e"}.fa-python:before{content:"\\f3e2"}.fa-qq:before{content:"\\f1d6"}.fa-qrcode:before{content:"\\f029"}.fa-question:before{content:"\\f128"}.fa-question-circle:before{content:"\\f059"}.fa-quidditch:before{content:"\\f458"}.fa-quinscape:before{content:"\\f459"}.fa-quora:before{content:"\\f2c4"}.fa-quote-left:before{content:"\\f10d"}.fa-quote-right:before{content:"\\f10e"}.fa-quran:before{content:"\\f687"}.fa-r-project:before{content:"\\f4f7"}.fa-radiation:before{content:"\\f7b9"}.fa-radiation-alt:before{content:"\\f7ba"}.fa-rainbow:before{content:"\\f75b"}.fa-random:before{content:"\\f074"}.fa-raspberry-pi:before{content:"\\f7bb"}.fa-ravelry:before{content:"\\f2d9"}.fa-react:before{content:"\\f41b"}.fa-reacteurope:before{content:"\\f75d"}.fa-readme:before{content:"\\f4d5"}.fa-rebel:before{content:"\\f1d0"}.fa-receipt:before{content:"\\f543"}.fa-record-vinyl:before{content:"\\f8d9"}.fa-recycle:before{content:"\\f1b8"}.fa-red-river:before{content:"\\f3e3"}.fa-reddit:before{content:"\\f1a1"}.fa-reddit-alien:before{content:"\\f281"}.fa-reddit-square:before{content:"\\f1a2"}.fa-redhat:before{content:"\\f7bc"}.fa-redo:before{content:"\\f01e"}.fa-redo-alt:before{content:"\\f2f9"}.fa-registered:before{content:"\\f25d"}.fa-remove-format:before{content:"\\f87d"}.fa-renren:before{content:"\\f18b"}.fa-reply:before{content:"\\f3e5"}.fa-reply-all:before{content:"\\f122"}.fa-replyd:before{content:"\\f3e6"}.fa-republican:before{content:"\\f75e"}.fa-researchgate:before{content:"\\f4f8"}.fa-resolving:before{content:"\\f3e7"}.fa-restroom:before{content:"\\f7bd"}.fa-retweet:before{content:"\\f079"}.fa-rev:before{content:"\\f5b2"}.fa-ribbon:before{content:"\\f4d6"}.fa-ring:before{content:"\\f70b"}.fa-road:before{content:"\\f018"}.fa-robot:before{content:"\\f544"}.fa-rocket:before{content:"\\f135"}.fa-rocketchat:before{content:"\\f3e8"}.fa-rockrms:before{content:"\\f3e9"}.fa-route:before{content:"\\f4d7"}.fa-rss:before{content:"\\f09e"}.fa-rss-square:before{content:"\\f143"}.fa-ruble-sign:before{content:"\\f158"}.fa-ruler:before{content:"\\f545"}.fa-ruler-combined:before{content:"\\f546"}.fa-ruler-horizontal:before{content:"\\f547"}.fa-ruler-vertical:before{content:"\\f548"}.fa-running:before{content:"\\f70c"}.fa-rupee-sign:before{content:"\\f156"}.fa-sad-cry:before{content:"\\f5b3"}.fa-sad-tear:before{content:"\\f5b4"}.fa-safari:before{content:"\\f267"}.fa-salesforce:before{content:"\\f83b"}.fa-sass:before{content:"\\f41e"}.fa-satellite:before{content:"\\f7bf"}.fa-satellite-dish:before{content:"\\f7c0"}.fa-save:before{content:"\\f0c7"}.fa-schlix:before{content:"\\f3ea"}.fa-school:before{content:"\\f549"}.fa-screwdriver:before{content:"\\f54a"}.fa-scribd:before{content:"\\f28a"}.fa-scroll:before{content:"\\f70e"}.fa-sd-card:before{content:"\\f7c2"}.fa-search:before{content:"\\f002"}.fa-search-dollar:before{content:"\\f688"}.fa-search-location:before{content:"\\f689"}.fa-search-minus:before{content:"\\f010"}.fa-search-plus:before{content:"\\f00e"}.fa-searchengin:before{content:"\\f3eb"}.fa-seedling:before{content:"\\f4d8"}.fa-sellcast:before{content:"\\f2da"}.fa-sellsy:before{content:"\\f213"}.fa-server:before{content:"\\f233"}.fa-servicestack:before{content:"\\f3ec"}.fa-shapes:before{content:"\\f61f"}.fa-share:before{content:"\\f064"}.fa-share-alt:before{content:"\\f1e0"}.fa-share-alt-square:before{content:"\\f1e1"}.fa-share-square:before{content:"\\f14d"}.fa-shekel-sign:before{content:"\\f20b"}.fa-shield-alt:before{content:"\\f3ed"}.fa-shield-virus:before{content:"\\f96c"}.fa-ship:before{content:"\\f21a"}.fa-shipping-fast:before{content:"\\f48b"}.fa-shirtsinbulk:before{content:"\\f214"}.fa-shoe-prints:before{content:"\\f54b"}.fa-shopify:before{content:"\\f957"}.fa-shopping-bag:before{content:"\\f290"}.fa-shopping-basket:before{content:"\\f291"}.fa-shopping-cart:before{content:"\\f07a"}.fa-shopware:before{content:"\\f5b5"}.fa-shower:before{content:"\\f2cc"}.fa-shuttle-van:before{content:"\\f5b6"}.fa-sign:before{content:"\\f4d9"}.fa-sign-in-alt:before{content:"\\f2f6"}.fa-sign-language:before{content:"\\f2a7"}.fa-sign-out-alt:before{content:"\\f2f5"}.fa-signal:before{content:"\\f012"}.fa-signature:before{content:"\\f5b7"}.fa-sim-card:before{content:"\\f7c4"}.fa-simplybuilt:before{content:"\\f215"}.fa-sistrix:before{content:"\\f3ee"}.fa-sitemap:before{content:"\\f0e8"}.fa-sith:before{content:"\\f512"}.fa-skating:before{content:"\\f7c5"}.fa-sketch:before{content:"\\f7c6"}.fa-skiing:before{content:"\\f7c9"}.fa-skiing-nordic:before{content:"\\f7ca"}.fa-skull:before{content:"\\f54c"}.fa-skull-crossbones:before{content:"\\f714"}.fa-skyatlas:before{content:"\\f216"}.fa-skype:before{content:"\\f17e"}.fa-slack:before{content:"\\f198"}.fa-slack-hash:before{content:"\\f3ef"}.fa-slash:before{content:"\\f715"}.fa-sleigh:before{content:"\\f7cc"}.fa-sliders-h:before{content:"\\f1de"}.fa-slideshare:before{content:"\\f1e7"}.fa-smile:before{content:"\\f118"}.fa-smile-beam:before{content:"\\f5b8"}.fa-smile-wink:before{content:"\\f4da"}.fa-smog:before{content:"\\f75f"}.fa-smoking:before{content:"\\f48d"}.fa-smoking-ban:before{content:"\\f54d"}.fa-sms:before{content:"\\f7cd"}.fa-snapchat:before{content:"\\f2ab"}.fa-snapchat-ghost:before{content:"\\f2ac"}.fa-snapchat-square:before{content:"\\f2ad"}.fa-snowboarding:before{content:"\\f7ce"}.fa-snowflake:before{content:"\\f2dc"}.fa-snowman:before{content:"\\f7d0"}.fa-snowplow:before{content:"\\f7d2"}.fa-soap:before{content:"\\f96e"}.fa-socks:before{content:"\\f696"}.fa-solar-panel:before{content:"\\f5ba"}.fa-sort:before{content:"\\f0dc"}.fa-sort-alpha-down:before{content:"\\f15d"}.fa-sort-alpha-down-alt:before{content:"\\f881"}.fa-sort-alpha-up:before{content:"\\f15e"}.fa-sort-alpha-up-alt:before{content:"\\f882"}.fa-sort-amount-down:before{content:"\\f160"}.fa-sort-amount-down-alt:before{content:"\\f884"}.fa-sort-amount-up:before{content:"\\f161"}.fa-sort-amount-up-alt:before{content:"\\f885"}.fa-sort-down:before{content:"\\f0dd"}.fa-sort-numeric-down:before{content:"\\f162"}.fa-sort-numeric-down-alt:before{content:"\\f886"}.fa-sort-numeric-up:before{content:"\\f163"}.fa-sort-numeric-up-alt:before{content:"\\f887"}.fa-sort-up:before{content:"\\f0de"}.fa-soundcloud:before{content:"\\f1be"}.fa-sourcetree:before{content:"\\f7d3"}.fa-spa:before{content:"\\f5bb"}.fa-space-shuttle:before{content:"\\f197"}.fa-speakap:before{content:"\\f3f3"}.fa-speaker-deck:before{content:"\\f83c"}.fa-spell-check:before{content:"\\f891"}.fa-spider:before{content:"\\f717"}.fa-spinner:before{content:"\\f110"}.fa-splotch:before{content:"\\f5bc"}.fa-spotify:before{content:"\\f1bc"}.fa-spray-can:before{content:"\\f5bd"}.fa-square:before{content:"\\f0c8"}.fa-square-full:before{content:"\\f45c"}.fa-square-root-alt:before{content:"\\f698"}.fa-squarespace:before{content:"\\f5be"}.fa-stack-exchange:before{content:"\\f18d"}.fa-stack-overflow:before{content:"\\f16c"}.fa-stackpath:before{content:"\\f842"}.fa-stamp:before{content:"\\f5bf"}.fa-star:before{content:"\\f005"}.fa-star-and-crescent:before{content:"\\f699"}.fa-star-half:before{content:"\\f089"}.fa-star-half-alt:before{content:"\\f5c0"}.fa-star-of-david:before{content:"\\f69a"}.fa-star-of-life:before{content:"\\f621"}.fa-staylinked:before{content:"\\f3f5"}.fa-steam:before{content:"\\f1b6"}.fa-steam-square:before{content:"\\f1b7"}.fa-steam-symbol:before{content:"\\f3f6"}.fa-step-backward:before{content:"\\f048"}.fa-step-forward:before{content:"\\f051"}.fa-stethoscope:before{content:"\\f0f1"}.fa-sticker-mule:before{content:"\\f3f7"}.fa-sticky-note:before{content:"\\f249"}.fa-stop:before{content:"\\f04d"}.fa-stop-circle:before{content:"\\f28d"}.fa-stopwatch:before{content:"\\f2f2"}.fa-stopwatch-20:before{content:"\\f96f"}.fa-store:before{content:"\\f54e"}.fa-store-alt:before{content:"\\f54f"}.fa-store-alt-slash:before{content:"\\f970"}.fa-store-slash:before{content:"\\f971"}.fa-strava:before{content:"\\f428"}.fa-stream:before{content:"\\f550"}.fa-street-view:before{content:"\\f21d"}.fa-strikethrough:before{content:"\\f0cc"}.fa-stripe:before{content:"\\f429"}.fa-stripe-s:before{content:"\\f42a"}.fa-stroopwafel:before{content:"\\f551"}.fa-studiovinari:before{content:"\\f3f8"}.fa-stumbleupon:before{content:"\\f1a4"}.fa-stumbleupon-circle:before{content:"\\f1a3"}.fa-subscript:before{content:"\\f12c"}.fa-subway:before{content:"\\f239"}.fa-suitcase:before{content:"\\f0f2"}.fa-suitcase-rolling:before{content:"\\f5c1"}.fa-sun:before{content:"\\f185"}.fa-superpowers:before{content:"\\f2dd"}.fa-superscript:before{content:"\\f12b"}.fa-supple:before{content:"\\f3f9"}.fa-surprise:before{content:"\\f5c2"}.fa-suse:before{content:"\\f7d6"}.fa-swatchbook:before{content:"\\f5c3"}.fa-swift:before{content:"\\f8e1"}.fa-swimmer:before{content:"\\f5c4"}.fa-swimming-pool:before{content:"\\f5c5"}.fa-symfony:before{content:"\\f83d"}.fa-synagogue:before{content:"\\f69b"}.fa-sync:before{content:"\\f021"}.fa-sync-alt:before{content:"\\f2f1"}.fa-syringe:before{content:"\\f48e"}.fa-table:before{content:"\\f0ce"}.fa-table-tennis:before{content:"\\f45d"}.fa-tablet:before{content:"\\f10a"}.fa-tablet-alt:before{content:"\\f3fa"}.fa-tablets:before{content:"\\f490"}.fa-tachometer-alt:before{content:"\\f3fd"}.fa-tag:before{content:"\\f02b"}.fa-tags:before{content:"\\f02c"}.fa-tape:before{content:"\\f4db"}.fa-tasks:before{content:"\\f0ae"}.fa-taxi:before{content:"\\f1ba"}.fa-teamspeak:before{content:"\\f4f9"}.fa-teeth:before{content:"\\f62e"}.fa-teeth-open:before{content:"\\f62f"}.fa-telegram:before{content:"\\f2c6"}.fa-telegram-plane:before{content:"\\f3fe"}.fa-temperature-high:before{content:"\\f769"}.fa-temperature-low:before{content:"\\f76b"}.fa-tencent-weibo:before{content:"\\f1d5"}.fa-tenge:before{content:"\\f7d7"}.fa-terminal:before{content:"\\f120"}.fa-text-height:before{content:"\\f034"}.fa-text-width:before{content:"\\f035"}.fa-th:before{content:"\\f00a"}.fa-th-large:before{content:"\\f009"}.fa-th-list:before{content:"\\f00b"}.fa-the-red-yeti:before{content:"\\f69d"}.fa-theater-masks:before{content:"\\f630"}.fa-themeco:before{content:"\\f5c6"}.fa-themeisle:before{content:"\\f2b2"}.fa-thermometer:before{content:"\\f491"}.fa-thermometer-empty:before{content:"\\f2cb"}.fa-thermometer-full:before{content:"\\f2c7"}.fa-thermometer-half:before{content:"\\f2c9"}.fa-thermometer-quarter:before{content:"\\f2ca"}.fa-thermometer-three-quarters:before{content:"\\f2c8"}.fa-think-peaks:before{content:"\\f731"}.fa-thumbs-down:before{content:"\\f165"}.fa-thumbs-up:before{content:"\\f164"}.fa-thumbtack:before{content:"\\f08d"}.fa-ticket-alt:before{content:"\\f3ff"}.fa-times:before{content:"\\f00d"}.fa-times-circle:before{content:"\\f057"}.fa-tint:before{content:"\\f043"}.fa-tint-slash:before{content:"\\f5c7"}.fa-tired:before{content:"\\f5c8"}.fa-toggle-off:before{content:"\\f204"}.fa-toggle-on:before{content:"\\f205"}.fa-toilet:before{content:"\\f7d8"}.fa-toilet-paper:before{content:"\\f71e"}.fa-toilet-paper-slash:before{content:"\\f972"}.fa-toolbox:before{content:"\\f552"}.fa-tools:before{content:"\\f7d9"}.fa-tooth:before{content:"\\f5c9"}.fa-torah:before{content:"\\f6a0"}.fa-torii-gate:before{content:"\\f6a1"}.fa-tractor:before{content:"\\f722"}.fa-trade-federation:before{content:"\\f513"}.fa-trademark:before{content:"\\f25c"}.fa-traffic-light:before{content:"\\f637"}.fa-trailer:before{content:"\\f941"}.fa-train:before{content:"\\f238"}.fa-tram:before{content:"\\f7da"}.fa-transgender:before{content:"\\f224"}.fa-transgender-alt:before{content:"\\f225"}.fa-trash:before{content:"\\f1f8"}.fa-trash-alt:before{content:"\\f2ed"}.fa-trash-restore:before{content:"\\f829"}.fa-trash-restore-alt:before{content:"\\f82a"}.fa-tree:before{content:"\\f1bb"}.fa-trello:before{content:"\\f181"}.fa-tripadvisor:before{content:"\\f262"}.fa-trophy:before{content:"\\f091"}.fa-truck:before{content:"\\f0d1"}.fa-truck-loading:before{content:"\\f4de"}.fa-truck-monster:before{content:"\\f63b"}.fa-truck-moving:before{content:"\\f4df"}.fa-truck-pickup:before{content:"\\f63c"}.fa-tshirt:before{content:"\\f553"}.fa-tty:before{content:"\\f1e4"}.fa-tumblr:before{content:"\\f173"}.fa-tumblr-square:before{content:"\\f174"}.fa-tv:before{content:"\\f26c"}.fa-twitch:before{content:"\\f1e8"}.fa-twitter:before{content:"\\f099"}.fa-twitter-square:before{content:"\\f081"}.fa-typo3:before{content:"\\f42b"}.fa-uber:before{content:"\\f402"}.fa-ubuntu:before{content:"\\f7df"}.fa-uikit:before{content:"\\f403"}.fa-umbraco:before{content:"\\f8e8"}.fa-umbrella:before{content:"\\f0e9"}.fa-umbrella-beach:before{content:"\\f5ca"}.fa-underline:before{content:"\\f0cd"}.fa-undo:before{content:"\\f0e2"}.fa-undo-alt:before{content:"\\f2ea"}.fa-uniregistry:before{content:"\\f404"}.fa-unity:before{content:"\\f949"}.fa-universal-access:before{content:"\\f29a"}.fa-university:before{content:"\\f19c"}.fa-unlink:before{content:"\\f127"}.fa-unlock:before{content:"\\f09c"}.fa-unlock-alt:before{content:"\\f13e"}.fa-untappd:before{content:"\\f405"}.fa-upload:before{content:"\\f093"}.fa-ups:before{content:"\\f7e0"}.fa-usb:before{content:"\\f287"}.fa-user:before{content:"\\f007"}.fa-user-alt:before{content:"\\f406"}.fa-user-alt-slash:before{content:"\\f4fa"}.fa-user-astronaut:before{content:"\\f4fb"}.fa-user-check:before{content:"\\f4fc"}.fa-user-circle:before{content:"\\f2bd"}.fa-user-clock:before{content:"\\f4fd"}.fa-user-cog:before{content:"\\f4fe"}.fa-user-edit:before{content:"\\f4ff"}.fa-user-friends:before{content:"\\f500"}.fa-user-graduate:before{content:"\\f501"}.fa-user-injured:before{content:"\\f728"}.fa-user-lock:before{content:"\\f502"}.fa-user-md:before{content:"\\f0f0"}.fa-user-minus:before{content:"\\f503"}.fa-user-ninja:before{content:"\\f504"}.fa-user-nurse:before{content:"\\f82f"}.fa-user-plus:before{content:"\\f234"}.fa-user-secret:before{content:"\\f21b"}.fa-user-shield:before{content:"\\f505"}.fa-user-slash:before{content:"\\f506"}.fa-user-tag:before{content:"\\f507"}.fa-user-tie:before{content:"\\f508"}.fa-user-times:before{content:"\\f235"}.fa-users:before{content:"\\f0c0"}.fa-users-cog:before{content:"\\f509"}.fa-usps:before{content:"\\f7e1"}.fa-ussunnah:before{content:"\\f407"}.fa-utensil-spoon:before{content:"\\f2e5"}.fa-utensils:before{content:"\\f2e7"}.fa-vaadin:before{content:"\\f408"}.fa-vector-square:before{content:"\\f5cb"}.fa-venus:before{content:"\\f221"}.fa-venus-double:before{content:"\\f226"}.fa-venus-mars:before{content:"\\f228"}.fa-viacoin:before{content:"\\f237"}.fa-viadeo:before{content:"\\f2a9"}.fa-viadeo-square:before{content:"\\f2aa"}.fa-vial:before{content:"\\f492"}.fa-vials:before{content:"\\f493"}.fa-viber:before{content:"\\f409"}.fa-video:before{content:"\\f03d"}.fa-video-slash:before{content:"\\f4e2"}.fa-vihara:before{content:"\\f6a7"}.fa-vimeo:before{content:"\\f40a"}.fa-vimeo-square:before{content:"\\f194"}.fa-vimeo-v:before{content:"\\f27d"}.fa-vine:before{content:"\\f1ca"}.fa-virus:before{content:"\\f974"}.fa-virus-slash:before{content:"\\f975"}.fa-viruses:before{content:"\\f976"}.fa-vk:before{content:"\\f189"}.fa-vnv:before{content:"\\f40b"}.fa-voicemail:before{content:"\\f897"}.fa-volleyball-ball:before{content:"\\f45f"}.fa-volume-down:before{content:"\\f027"}.fa-volume-mute:before{content:"\\f6a9"}.fa-volume-off:before{content:"\\f026"}.fa-volume-up:before{content:"\\f028"}.fa-vote-yea:before{content:"\\f772"}.fa-vr-cardboard:before{content:"\\f729"}.fa-vuejs:before{content:"\\f41f"}.fa-walking:before{content:"\\f554"}.fa-wallet:before{content:"\\f555"}.fa-warehouse:before{content:"\\f494"}.fa-water:before{content:"\\f773"}.fa-wave-square:before{content:"\\f83e"}.fa-waze:before{content:"\\f83f"}.fa-weebly:before{content:"\\f5cc"}.fa-weibo:before{content:"\\f18a"}.fa-weight:before{content:"\\f496"}.fa-weight-hanging:before{content:"\\f5cd"}.fa-weixin:before{content:"\\f1d7"}.fa-whatsapp:before{content:"\\f232"}.fa-whatsapp-square:before{content:"\\f40c"}.fa-wheelchair:before{content:"\\f193"}.fa-whmcs:before{content:"\\f40d"}.fa-wifi:before{content:"\\f1eb"}.fa-wikipedia-w:before{content:"\\f266"}.fa-wind:before{content:"\\f72e"}.fa-window-close:before{content:"\\f410"}.fa-window-maximize:before{content:"\\f2d0"}.fa-window-minimize:before{content:"\\f2d1"}.fa-window-restore:before{content:"\\f2d2"}.fa-windows:before{content:"\\f17a"}.fa-wine-bottle:before{content:"\\f72f"}.fa-wine-glass:before{content:"\\f4e3"}.fa-wine-glass-alt:before{content:"\\f5ce"}.fa-wix:before{content:"\\f5cf"}.fa-wizards-of-the-coast:before{content:"\\f730"}.fa-wolf-pack-battalion:before{content:"\\f514"}.fa-won-sign:before{content:"\\f159"}.fa-wordpress:before{content:"\\f19a"}.fa-wordpress-simple:before{content:"\\f411"}.fa-wpbeginner:before{content:"\\f297"}.fa-wpexplorer:before{content:"\\f2de"}.fa-wpforms:before{content:"\\f298"}.fa-wpressr:before{content:"\\f3e4"}.fa-wrench:before{content:"\\f0ad"}.fa-x-ray:before{content:"\\f497"}.fa-xbox:before{content:"\\f412"}.fa-xing:before{content:"\\f168"}.fa-xing-square:before{content:"\\f169"}.fa-y-combinator:before{content:"\\f23b"}.fa-yahoo:before{content:"\\f19e"}.fa-yammer:before{content:"\\f840"}.fa-yandex:before{content:"\\f413"}.fa-yandex-international:before{content:"\\f414"}.fa-yarn:before{content:"\\f7e3"}.fa-yelp:before{content:"\\f1e9"}.fa-yen-sign:before{content:"\\f157"}.fa-yin-yang:before{content:"\\f6ad"}.fa-yoast:before{content:"\\f2b1"}.fa-youtube:before{content:"\\f167"}.fa-youtube-square:before{content:"\\f431"}.fa-zhihu:before{content:"\\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:Font Awesome\\ 5 Brands;font-style:normal;font-weight:400;font-display:block;src:url('+k+");src:url("+w+') format("embedded-opentype"),url('+_+') format("woff2"),url('+C+') format("woff"),url('+A+') format("truetype"),url('+x+') format("svg")}.fab{font-family:Font Awesome\\ 5 Brands}@font-face{font-family:Font Awesome\\ 5 Free;font-style:normal;font-weight:400;font-display:block;src:url('+S+");src:url("+M+') format("embedded-opentype"),url('+E+') format("woff2"),url('+T+') format("woff"),url('+D+') format("truetype"),url('+O+') format("svg")}.fab,.far{font-weight:400}@font-face{font-family:Font Awesome\\ 5 Free;font-style:normal;font-weight:900;font-display:block;src:url('+P+");src:url("+I+') format("embedded-opentype"),url('+j+') format("woff2"),url('+N+') format("woff"),url('+R+') format("truetype"),url('+L+') format("svg")}.fa,.far,.fas{font-family:Font Awesome\\ 5 Free}.fa,.fas{font-weight:900}',""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot?c1868c9545d2de1cf8488f1dadd8c9d0"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2?a06da7f0950f9dd366fc9db9d56d618a"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff?ec3cfddedb8bebd2d7a3fdf511f7c1cc"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf?13685372945d816a2b474fc082fd9aaa"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.svg?0cb5a5c0d251c109458c85c6afeffbaa"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot?261d666b0147c6c5cda07265f98b8f8c"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2?c20b5b7362d8d7bb7eddf94344ace33e"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff?f89ea91ecd1ca2db7e09baa2c4b156d1"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf?db78b9359171f24936b16d84f63af378"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.svg?89ffa3aba80d30ee0a9371b25c968bbb"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot?a0369ea57eb6d3843d6474c035111f29"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2?b15db15f746f29ffa02638cb455b8ec0"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff?bea989e82b07e9687c26fc58a4805021"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf?1ab236ed440ee51810c56bd16628aef0"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.svg?ec763292e583294612f124c0b0def500"},function(e,t,n){"use strict";var r=n(15),i=n(293),o=n(323),a=n(47),s=n(153),c=n(33),l=n(72),u=n(243),d=n(91),f=n(378),h=n(75),p=n(379),m=n(253),v=n(76),g=n(44),b=n(92),y=n(255),k=n(165),w=n(166),_=n(392),C=n(393),A=n(394);function x(e){var t=e?x._parseNumbers(e):{};this.index=t.index||"",this.query=t.query||"",this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{},this.numericFilters=t.numericFilters,this.tagFilters=t.tagFilters,this.optionalTagFilters=t.optionalTagFilters,this.optionalFacetFilters=t.optionalFacetFilters,this.hitsPerPage=t.hitsPerPage,this.maxValuesPerFacet=t.maxValuesPerFacet,this.page=t.page||0,this.queryType=t.queryType,this.typoTolerance=t.typoTolerance,this.minWordSizefor1Typo=t.minWordSizefor1Typo,this.minWordSizefor2Typos=t.minWordSizefor2Typos,this.minProximity=t.minProximity,this.allowTyposOnNumericTokens=t.allowTyposOnNumericTokens,this.ignorePlurals=t.ignorePlurals,this.restrictSearchableAttributes=t.restrictSearchableAttributes,this.advancedSyntax=t.advancedSyntax,this.analytics=t.analytics,this.analyticsTags=t.analyticsTags,this.synonyms=t.synonyms,this.replaceSynonymsInHighlight=t.replaceSynonymsInHighlight,this.optionalWords=t.optionalWords,this.removeWordsIfNoResults=t.removeWordsIfNoResults,this.attributesToRetrieve=t.attributesToRetrieve,this.attributesToHighlight=t.attributesToHighlight,this.highlightPreTag=t.highlightPreTag,this.highlightPostTag=t.highlightPostTag,this.attributesToSnippet=t.attributesToSnippet,this.getRankingInfo=t.getRankingInfo,this.distinct=t.distinct,this.aroundLatLng=t.aroundLatLng,this.aroundLatLngViaIP=t.aroundLatLngViaIP,this.aroundRadius=t.aroundRadius,this.minimumAroundRadius=t.minimumAroundRadius,this.aroundPrecision=t.aroundPrecision,this.insideBoundingBox=t.insideBoundingBox,this.insidePolygon=t.insidePolygon,this.snippetEllipsisText=t.snippetEllipsisText,this.disableExactOnAttributes=t.disableExactOnAttributes,this.enableExactOnSingleWordQuery=t.enableExactOnSingleWordQuery,this.offset=t.offset,this.length=t.length;var n=this;o(t,(function(e,t){-1===x.PARAMETERS.indexOf(t)&&(n[t]=e)}))}x.PARAMETERS=r(new x),x._parseNumbers=function(e){if(e instanceof x)return e;var t={};if(a(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"],(function(n){var r=e[n];if(v(r)){var i=parseFloat(r);t[n]=f(i)?r:i}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return e.map((function(e){return parseFloat(e)}))}))),e.numericRefinements){var n={};a(e.numericRefinements,(function(e,t){n[t]={},a(e,(function(e,r){var i=c(e,(function(e){return Array.isArray(e)?c(e,(function(e){return v(e)?parseFloat(e):e})):v(e)?parseFloat(e):e}));n[t][r]=i}))})),t.numericRefinements=n}return w({},e,t)},x.make=function(e){var t=new x(e);return a(e.hierarchicalFacets,(function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(n=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},x.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&!h(n.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):!h(e.numericRefinements)&&n.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},x.prototype={constructor:x,clearRefinements:function(e){var t=A.clearRefinement,n={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:t(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:t(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:t(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:t(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return n.numericRefinements===this.numericRefinements&&n.facetsRefinements===this.facetsRefinements&&n.facetsExcludes===this.facetsExcludes&&n.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&n.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(n)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var r=_(n);if(this.isNumericRefined(e,t,r))return this;var i=w({},this.numericRefinements);return i[e]=w({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(r)):i[e][t]=[r],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,n){if(void 0!==n){var r=_(n);return this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,i){return i===e&&n.op===t&&p(n.val,r)}))}):this}return void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,r){return r===e&&n.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,n){return n===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(m(e))return h(this.numericRefinements)?this.numericRefinements:{};if(v(e))return h(this.numericRefinements[e])?this.numericRefinements:u(this.numericRefinements,e);if(g(e)){var t=!1,n=l(this.numericRefinements,(function(n,r,i){var o={};return a(r,(function(n,r){var s=[];a(n,(function(t){e({val:t,op:r},i,"numeric")||s.push(t)})),h(s)?t=!0:(s.length!==n.length&&(t=!0),o[r]=s)})),h(o)||(n[i]=o),n}),{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return A.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:A.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return A.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:A.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return A.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:A.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:s(this.facets,(function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:s(this.disjunctiveFacets,(function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:s(this.hierarchicalFacets,(function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return A.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:A.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return A.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:A.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return A.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:A.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:s(this.tagRefinements,(function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:A.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:A.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:A.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n))?-1===t.indexOf(n)?r[e]=[]:r[e]=[t.slice(0,t.lastIndexOf(n))]:r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:k({},r,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:k({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))throw new Error(e+" is not refined.");var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:k({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return d(this.disjunctiveFacets,e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return d(this.facets,e)>-1},isFacetRefined:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return A.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return A.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return A.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this.getHierarchicalRefinement(e);return t?-1!==d(n,t):n.length>0},isNumericRefined:function(e,t,n){if(m(n)&&m(t))return!!this.numericRefinements[e];var r=this.numericRefinements[e]&&!m(this.numericRefinements[e][t]);if(m(n)||!r)return r;var i,o,a=_(n),s=!m((i=this.numericRefinements[e][t],o=a,b(i,(function(e){return p(e,o)}))));return r&&s},isTagRefined:function(e){return-1!==d(this.tagRefinements,e)},getRefinedDisjunctiveFacets:function(){var e=i(r(this.numericRefinements),this.disjunctiveFacets);return r(this.disjunctiveFacetsRefinements).concat(e).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){return i(c(this.hierarchicalFacets,"name"),r(this.hierarchicalFacetsRefinements))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return s(this.disjunctiveFacets,(function(t){return-1===d(e,t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={};return o(this,(function(n,r){-1===d(e,r)&&void 0!==n&&(t[r]=n)})),t},getQueryParameter:function(e){if(!this.hasOwnProperty(e))throw new Error("Parameter '"+e+"' is not an attribute of SearchParameters (http://algolia.github.io/algoliasearch-helper-js/docs/SearchParameters.html)");return this[e]},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=x.validate(this,e);if(t)throw t;var n=x._parseNumbers(e);return this.mutateMe((function(t){var i=r(e);return a(i,(function(e){t[e]=n[e]})),t}))},filter:function(e){return C(this,e)},mutateMe:function(e){var t=new this.constructor(this);return e(t,this),t},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return b(this.hierarchicalFacets,{name:e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))throw new Error("Cannot get the breadcrumb of an unknown hierarchical facet: `"+e+"`");var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r=t.split(n);return c(r,y)},toString:function(){return JSON.stringify(this,null,2)}},e.exports=x},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(216),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(42)(e))},function(e,t,n){var r=n(295),i=n(311),o=n(313),a=n(314),s=n(315);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(37)(n(8),"Map");e.exports=r},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(321),i=n(227)(r);e.exports=i},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(231),i=n(326),o=n(13),a=n(6);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){var r=n(334),i=n(10);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(231),i=n(236),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},function(e,t,n){var r=n(6),i=n(71),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(159);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(43),i=n(32),o=n(6),a=n(71),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(73),i=n(45),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(218)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(235),i=n(245),o=n(51);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(233);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(31),i=n(161),o=n(10),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},function(e,t,n){var r=n(46),i=n(45),o=n(256),a=n(51),s=Object.prototype,c=s.hasOwnProperty,l=r((function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&o(t[0],t[1],l)&&(r=1);++n<r;)for(var u=t[n],d=a(u),f=-1,h=d.length;++f<h;){var p=d[f],m=e[p];(void 0===m||i(m,s[p])&&!c.call(e,p))&&(e[p]=u[p])}return e}));e.exports=l},function(e,t,n){var r=n(388),i=n(391)((function(e,t,n){r(e,t,n)}));e.exports=i},function(e,t,n){var r=n(261),i=n(406),o=n(407),a=n(263),s=n(419),c=n(267),l=n(420),u=n(269),d=n(270),f=n(74),h=Math.max;e.exports=function(e,t,n,p,m,v,g,b){var y=2&t;if(!y&&"function"!=typeof e)throw new TypeError("Expected a function");var k=p?p.length:0;if(k||(t&=-97,p=m=void 0),g=void 0===g?g:h(f(g),0),b=void 0===b?b:f(b),k-=m?m.length:0,64&t){var w=p,_=m;p=m=void 0}var C=y?void 0:c(e),A=[e,t,n,p,m,w,_,v,g,b];if(C&&l(A,C),e=A[0],t=A[1],n=A[2],p=A[3],m=A[4],!(b=A[9]=void 0===A[9]?y?0:e.length:h(A[9]-k,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||16==t?o(e,t,b):32!=t&&33!=t||m.length?a.apply(void 0,A):s(e,t,n,p);else var x=i(e,t,n);return d((C?r:u)(x,A),e,t)}},function(e,t,n){var r=n(90),i=n(169);function o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r="string"==typeof e?e:String(e);if("iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",a=0;a<r.length;++a){var s=r.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=r.charAt(a):s<128?i+=o[s]:s<2048?i+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?i+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),i+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return i(t)&&!i(n)&&(s=a(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return r.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),s)}}},function(e,t,n){var r={"./components/ActuLabos/ActuLaboInstantSearch.vue":198,"./components/ActuLabos/ActuLabosHit.vue":199,"./components/AdCampaign/CampaignHit.vue":200,"./components/AdCampaign/CampaignInstantSearch.vue":201,"./components/FileSearch/FileHit.vue":202,"./components/FileSearch/FileInstantSearch.vue":203,"./components/Home/cover.vue":204,"./components/LiveStats.vue":205,"./components/PollAnswers/PollAnswers.vue":206,"./components/Publish/HeadlineRepeater.vue":207,"./components/Publish/PublishLetter.vue":208,"./components/Publish/PublishNewsletter.vue":209,"./components/Publish/Step1UploadFile.vue":39,"./components/Publish/Step1WriteNewsletter.vue":41,"./components/Publish/Step2PrepareMail.vue":40,"./components/Publish/Step3Send.vue":12,"./components/Stats/EmailStatistics.vue":210,"./components/Stats/MgStats.vue":211,"./components/Stripe/StripeModal.vue":196,"./components/Stripe/UnlockArticle.vue":212};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=171},function(e,t,n){"use strict";var r=n(17);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,"h4[data-v-4c732d9d]{font-variant:small-caps}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(18);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,'.title[data-v-1a8b3214]{font-family:Raleway;font-size:24px;font-weight:700;color:#5d4037;text-align:center}*[data-v-1a8b3214]{-webkit-font-smoothing:antialiased}p[data-v-1a8b3214]{line-height:1.5em}h1+p[data-v-1a8b3214],p+p[data-v-1a8b3214]{margin-top:10px}.card-wrap[data-v-1a8b3214]{transform:perspective(800px);transform-style:preserve-3d;cursor:pointer}.card-wrap:hover .card-info[data-v-1a8b3214]{transform:translateY(0)}.card-wrap:hover .card-info p[data-v-1a8b3214]{opacity:1}.card-wrap:hover .card-info[data-v-1a8b3214],.card-wrap:hover .card-info p[data-v-1a8b3214]{transition:.6s cubic-bezier(.23,1,.32,1)}.card-wrap:hover .card-info[data-v-1a8b3214]:after{transition:5s cubic-bezier(.23,1,.32,1);opacity:1;transform:translateY(0)}.card-wrap:hover .card-bg[data-v-1a8b3214]{transition:.6s cubic-bezier(.23,1,.32,1),opacity 5s cubic-bezier(.23,1,.32,1);opacity:.8}.card-wrap:hover .cover[data-v-1a8b3214]{transition:.6s cubic-bezier(.23,1,.32,1),box-shadow 2s cubic-bezier(.23,1,.32,1);box-shadow:0 0 40px 5px hsla(0,0%,100%,.2),0 30px 60px 0 rgba(0,0,0,.3),inset 0 0 0 5px #333}.cover[data-v-1a8b3214]{position:relative;flex:0 0 100%;background-color:#333;overflow:hidden;box-shadow:0 30px 60px 0 rgba(0,0,0,.3),inset 0 0 0 5px #333;transition:.5s cubic-bezier(.445,.05,.55,.95)}.card-bg[data-v-1a8b3214],.cover[data-v-1a8b3214]{width:100%;height:100%}.card-bg[data-v-1a8b3214]{opacity:.8;position:absolute;background-repeat:no-repeat;background-position:50%;background-size:cover;transition:1s cubic-bezier(.445,.05,.55,.95),opacity 5s cubic-bezier(.445,.05,.55,.95) 1s;pointer-events:none}.card-bg[data-v-1a8b3214] :hover{opacity:.5}.card-info[data-v-1a8b3214]{padding:10px;position:absolute;bottom:0;color:#fff;transform:translateY(40%);box-sizing:border-box!important}.card-info[data-v-1a8b3214],.card-info p[data-v-1a8b3214]{transition:.6s cubic-bezier(.215,.61,.355,1) 1.6s}.card-info p[data-v-1a8b3214]{opacity:0;text-shadow:#000 0 2px 3px}.card-info *[data-v-1a8b3214]{position:relative;z-index:1}.card-info[data-v-1a8b3214]:after{content:"";position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.6));background-blend-mode:overlay;opacity:0;transform:translateY(100%);transition:5s cubic-bezier(.445,.05,.55,.95) 1s}.card-info h1[data-v-1a8b3214]{font-family:Playfair Display;font-size:36px;font-weight:700;text-shadow:rgba(0,0,0,.5) 0 10px 10px}',""]),e.exports=t},function(e,t,n){"use strict";var r=n(19);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,".stepper-box[data-v-0cd2e8d8]{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);min-height:200px}.stepper-box .top[data-v-0cd2e8d8]{display:flex;align-items:center;position:relative;justify-content:center}.stepper-box .top .stepper-button-top[data-v-0cd2e8d8]{z-index:20;padding:.4rem;border-radius:100rem;cursor:pointer;position:absolute;display:flex;align-items:center;justify-content:space-between}.stepper-box .top .stepper-button-top.next[data-v-0cd2e8d8]{border:2px solid #3383c8;color:#3383c8;right:1%}.stepper-box .top .stepper-button-top.next.deactivated[data-v-0cd2e8d8]{border:2px solid #ccc!important;color:#ccc;cursor:not-allowed!important}.stepper-box .top .stepper-button-top.previous[data-v-0cd2e8d8]{color:#333;left:1%}.stepper-box .top .divider-line[data-v-0cd2e8d8]{border-bottom:1px solid #ccc;height:2px;position:absolute}@media (max-width:767px){.stepper-box .top .divider-line[data-v-0cd2e8d8]{width:90%}}.stepper-box .top .steps-wrapper[data-v-0cd2e8d8]{display:flex;align-items:center;justify-content:space-between;position:relative;width:95%;left:0;padding:2% 4%}@media (max-width:767px){.stepper-box .top .steps-wrapper[data-v-0cd2e8d8]{width:90%;justify-content:center}}.stepper-box .top .steps-wrapper .step[data-v-0cd2e8d8]{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}@media (max-width:767px){.stepper-box .top .steps-wrapper .step[data-v-0cd2e8d8]{width:100%!important}}@media (max-width:767px){.stepper-box .top .steps-wrapper .step.deactivated[data-v-0cd2e8d8]{display:none}}.stepper-box .top .steps-wrapper .step.deactivated .circle i[data-v-0cd2e8d8]{background-color:#bbb!important}.stepper-box .top .steps-wrapper .step.deactivated .step-title[data-v-0cd2e8d8]{opacity:.35}.stepper-box .top .steps-wrapper .step .circle[data-v-0cd2e8d8]{margin-bottom:1rem;padding:0 1rem;background-color:#fff}.stepper-box .top .steps-wrapper .step .circle i[data-v-0cd2e8d8]{background-color:#3383c8;color:#fff;border-radius:100rem;padding:1rem}.stepper-box .top .steps-wrapper .step .step-title[data-v-0cd2e8d8]{position:absolute;top:90%;width:100%}.stepper-box .top .steps-wrapper .step .step-title h1[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h2[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h3[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h4[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h5[data-v-0cd2e8d8]{margin:0 0 .2rem;color:#333;font-weight:700}.stepper-box .top .steps-wrapper .step .step-title .step-subtitle[data-v-0cd2e8d8]{font-weight:lighter;margin:0;color:#555}.stepper-box .content[data-v-0cd2e8d8]{overflow:hidden;margin:1.5rem 0}.stepper-box .bottom[data-v-0cd2e8d8]{position:relative;display:flex;justify-content:space-between;align-items:center;padding:2rem;border-top:1px solid #ccc}.stepper-box .bottom.only-next[data-v-0cd2e8d8]{justify-content:flex-end}.stepper-box .bottom .stepper-button[data-v-0cd2e8d8]{padding:.5rem 1rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between}.stepper-box .bottom .stepper-button.next[data-v-0cd2e8d8]{background-color:#3383c8;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.stepper-box .bottom .stepper-button.next.deactivated[data-v-0cd2e8d8]{background-color:#ccc!important;cursor:not-allowed!important}.stepper-box .bottom .stepper-button.previous[data-v-0cd2e8d8]{color:#333}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(20);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,'@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v17/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format("woff2")}.material-icons[data-v-0cd2e8d8]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}',""]),e.exports=t},function(e,t,n){"use strict";var r=n(21);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,".repeater[data-v-4a9146e1]{margin-left:-18px;margin-right:-16px;margin-top:-20px}a[data-v-4a9146e1]{color:inherit!important}a.btn[data-v-4a9146e1]{color:#fff!important}.file-selected>div[data-v-4a9146e1]{margin-bottom:2rem}.file-upload label.btn[data-v-4a9146e1]{margin-bottom:0;margin-right:1rem}.file-upload .drop-active[data-v-4a9146e1]{top:0;bottom:0;right:0;left:0;position:fixed;z-index:9999;opacity:.6;text-align:center;background:#000}.file-upload .drop-active h3[data-v-4a9146e1]{margin:-.5em 0 0;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);font-size:40px;color:#fff;padding:0}",""]),e.exports=t},function(e,t,n){"use strict";(function(e){var t,r,i=n(0),o=n.n(i);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=A(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||d(e)||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 d(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}function g(e){var t=_();return function(){var n,r=A(e);if(t){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){var t="function"==typeof Map?new Map:void 0;return(k=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return w(e,arguments,A(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),C(r,e)})(e)}function w(e,t,n){return(w=_()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&C(i,n.prototype),i}).apply(null,arguments)}function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t=window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}),(r=t.fr=t.fr||{}).dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 sur %1","Align center":"Centrer","Align left":"Aligner à gauche","Align right":"Aligner à droite",Aquamarine:"Bleu vert",Big:"Grand",Black:"Noir","Block quote":"Citation",Blue:"Bleu","Blue marker":"Marqueur bleu",Bold:"Gras","Bulleted List":"Liste à puces",Cancel:"Annuler","Centered image":"Image centrée","Change image text alternative":"Changer le texte alternatif à l’image","Choose heading":"Choisir l'en-tête",Column:"Colonne","Decrease indent":"Diminuer le retrait",Default:"Par défaut","Delete column":"Supprimer la colonne","Delete row":"Supprimer la ligne","Dim grey":"Gris pâle","Document colors":"Couleurs du document",Downloadable:"Fichier téléchargeable","Dropdown toolbar":"Barre d'outils dans un menu déroulant","Edit link":"Modifier le lien","Editor toolbar":"Barre d'outils de l'éditeur","Enter image caption":"Saisir la légende de l’image","Font Background Color":"Couleur d'arrière-plan","Font Color":"Couleur de police","Font Family":"Police","Font Size":"Taille de police","Full size image":"Image taille réelle",Green:"Vert","Green marker":"Marqueur vert","Green pen":"Crayon vert",Grey:"Gris","Header column":"Colonne d'entête","Header row":"Ligne d'entête",Heading:"En-tête","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4","Heading 5":"Titre 5","Heading 6":"Titre 6",Highlight:"Surlignage","Horizontal line":"Ligne horizontale",Huge:"Enorme","Image resize list":"Liste des tailles d'images","Image toolbar":"Barre d'outils des images","image widget":"Objet image","Increase indent":"Augmenter le retrait",Insert:"Insérer","Insert column left":"Insérer une colonne à gauche","Insert column right":"Insérer une colonne à droite","Insert image":"Insérer une image","Insert image via URL":"Insérer une image à partir d'une URL","Insert media":"Insérer un média","Insert paragraph after block":"Insérer du texte après ce bloc","Insert paragraph before block":"Insérer du texte avant ce bloc","Insert row above":"Insérer une ligne au-dessus","Insert row below":"Insérer une ligne en-dessous","Insert table":"Insérer un tableau",Italic:"Italique",Justify:"Justifier","Left aligned image":"Image alignée à gauche","Light blue":"Bleu clair","Light green":"Vert clair","Light grey":"Gris clair",Link:"Lien","Link image":"Lien d'image","Link URL":"URL du lien","Media toolbar":"Barre d'outils des médias","Media URL":"URL de média","media widget":"widget média","Merge cell down":"Fusionner la cellule en-dessous","Merge cell left":"Fusionner la cellule à gauche","Merge cell right":"Fusionner la cellule à droite","Merge cell up":"Fusionner la cellule au-dessus","Merge cells":"Fusionner les cellules",Next:"Suivant","Numbered List":"Liste numérotée","Open in a new tab":"Ouvrir dans un nouvel onglet","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Orange:"Orange",Original:"Taille originale",Paragraph:"Paragraphe","Paste the image source URL.":"Collez l'URL de l'image à insérer","Paste the media URL in the input.":"Coller l'URL du média","Pink marker":"Marqueur rose",Previous:"Précedent",Purple:"Violet",Red:"Rouge","Red pen":"Crayon rouge",Redo:"Restaurer","Remove color":"Enlever la couleur","Remove Format":"Enlever le format","Remove highlight":"Enlever le surlignage","Resize image":"Redimensionner l'image","Resize image to %0":"Redimensionner à %0","Resize image to the original size":"Appliquer les dimensions d'origine","Rich Text Editor":"Éditeur de texte enrichi","Rich Text Editor, %0":"Éditeur de texte enrichi, %0","Right aligned image":"Image alignée à droite",Row:"Ligne",Save:"Enregistrer","Select all":"Sélectionner tout","Select column":"Sélectionner la colonne","Select row":"Sélectionner la ligne","Show more items":"Montrer plus d'éléments","Side image":"Image latérale",Small:"Petit","Split cell horizontally":"Scinder la cellule horizontalement","Split cell vertically":"Scinder la cellule verticalement","Table toolbar":"Barre d'outils des tableaux","Text alignment":"Alignement du texte","Text alignment toolbar":"Barre d'outils d'alignement du texte","Text alternative":"Texte alternatif","Text highlight toolbar":"Barre d'outils du surlignage","The URL must not be empty.":"L'URL ne doit pas être vide.","This link has no URL":"Ce lien n'a pas d'URL","This media URL is not supported.":"Cette URL de média n'est pas supportée.",Tiny:"Minuscule","Tip: Paste the URL into the content to embed faster.":"Astuce : Copier l'URL du média dans le contenu pour l'insérer plus rapidement",Turquoise:"Turquoise",Underline:"Souligné",Undo:"Annuler",Unlink:"Supprimer le lien",Update:"Modifier","Update image URL":"Modifier l'URL de l'image","Upload failed":"Échec de l'envoi","Upload in progress":"Téléchargement en cours",White:"Blanc","Widget toolbar":"Barre d'outils du widget",Yellow:"Jaune","Yellow marker":"Marqueur jaune"}),r.getPluralForm=function(e){return e>1},function(t,r){"object"==("undefined"==typeof exports?"undefined":x(exports))&&"object"==x(e)?e.exports=r():"function"==typeof define&&n(185)?define([],r):"object"==("undefined"==typeof exports?"undefined":x(exports))?exports.ClassicEditor=r():t.ClassicEditor=r()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==x(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=119)}([function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}));var r=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,"".concat(e).concat(i?" "+JSON.stringify(i):"").concat(a(e)))).name="CKEditorError",o.context=r,o.data=i,o}return m(n,[{key:"is",value:function(e){return"CKEditorError"===e}}],[{key:"rethrowUnexpectedError",value:function(e,t){if(e.is&&e.is("CKEditorError"))throw e;var r=new n(e.message,t);throw r.stack=e.stack,r}}]),n}(k(Error));function i(e,t){var n;(n=console).warn.apply(n,u(s(e,t)))}function o(e,t){var n;(n=console).error.apply(n,u(s(e,t)))}function a(e){return"\nRead more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-"+e}function s(e,t){var n=a(e);return t?[e,t,n]:[e,n]}},function(e,t,n){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),c=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(c).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],c=t.base?s[0]+t.base:s[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=a(u),f={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(o[d].references++,o[d].updater(f)):o.push({identifier:u,updater:m(f,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function f(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,p=0;function m(e,t){var n,r,i;if(t.singleton){var o=p++;n=h||(h=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var c=s(e,t),l=0;l<n.length;l++){var u=a(n[l]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=c}}}},,function(e,t,n){var r=n(9),i="object"==("undefined"==typeof self?"undefined":x(self))&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();t.a=o},function(e,t,n){(function(e){var r=n(4),i=n(14),o="object"==("undefined"==typeof exports?"undefined":x(exports))&&exports&&!exports.nodeType&&exports,a=o&&"object"==x(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.a.Buffer:void 0,c=(s?s.isBuffer:void 0)||i.a;t.a=c}).call(this,n(11)(e))},function(e,t,n){(function(e){var r=n(9),i="object"==("undefined"==typeof exports?"undefined":x(exports))&&exports&&!exports.nodeType&&exports,o=i&&"object"==x(e)&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.a.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();t.a=s}).call(this,n(11)(e))},function(e,t,n){(function(e){var t=n(0),r="object"==("undefined"==typeof window?"undefined":x(window))?window:e;if(r.CKEDITOR_VERSION)throw new t.a("ckeditor-duplicated-modules",null);r.CKEDITOR_VERSION="23.1.0"}).call(this,n(12))},function(e,t,n){var r=n(2),i=n(72);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){(function(e){var n="object"==x(e)&&e&&e.Object===Object&&e;t.a=n}).call(this,n(12))},function(e,t,n){(function(e){var r=n(4),i="object"==("undefined"==typeof exports?"undefined":x(exports))&&exports&&!exports.nodeType&&exports,o=i&&"object"==x(e)&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.a.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(11)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==("undefined"==typeof window?"undefined":x(window))&&(n=window)}e.exports=n},function(e,t,n){var r=n(2),i=n(53);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){t.a=function(){return!1}},function(e,t,n){var r=n(2),i=n(16);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-placeholder:before,.ck .ck-placeholder:before{content:attr(data-placeholder);pointer-events:none}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-placeholder:before,.ck .ck-placeholder:before{cursor:text;color:var(--ck-color-engine-placeholder-text)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-engine/theme/placeholder.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAQC,qDACC,8BAA+B,CAG/B,mBACD,CAKA,wCACC,YACD,CCbA,qDACC,WAAY,CACZ,6CACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\t&::before {\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(18);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999);--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#5c5c5c;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-color-link-fake-selection:rgba(31,177,255,0.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,iDAGC,qBAAsB,CACtB,UAAW,CACX,WAAY,CACZ,eACD,CCPA,MACC,gBAAiB,CACjB,4CAA+C,CCD/C,kCAAmD,CACnD,+BAAoD,CACpD,8BAAgD,CAChD,8BAAmD,CACnD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAmD,CACnD,oCAAuD,CACvD,6BAAkD,CAIlD,+CAAwD,CACxD,qEAA+E,CAC/E,qCAAwD,CACxD,sDAA8D,CAC9D,iDAAyD,CACzD,yCAAqD,CACrD,uCAAsD,CACtD,6CAA0D,CAC1D,uCAAsD,CAItD,gDAAuD,CACvD,kDAA+D,CAC/D,mDAAgE,CAChE,+CAA6D,CAC7D,yDAA8D,CAE9D,uCAAuD,CACvD,6CAA4D,CAC5D,8CAA4D,CAC5D,0CAAyD,CACzD,gDAA8D,CAE9D,+DAAsE,CACtE,iDAAkE,CAClE,kDAAkE,CAClE,8CAA+D,CAC/D,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA4D,CAC5D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAmE,CACnE,yEAA8E,CAC9E,qDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,+BAAiD,CACjD,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,wCAAwD,CACxD,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,gEAAuE,CACvE,4EAAiF,CACjF,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,wDAAmE,CACnE,mDAAgE,CCpGhE,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCLFD,CKQA,iDAIC,QAAS,CACT,SAAU,CACV,QAAS,CACT,sBAAuB,CACvB,oBAAqB,CACrB,qBAAsB,CACtB,eAAgB,CAGhB,oBACD,CAKA,oCAGC,wBAAyB,CACzB,iGAAkG,CAClG,0BAA2B,CAC3B,eAAgB,CAChB,kBAAmB,CACnB,WAAY,CACZ,UACD,CAGC,2BACC,gBACD,CAEA,wBAEC,sBACD,CAEA,0BACC,oBACD,CAEA,kGAGC,WACD,CAEA,gIAGC,cACD,CAEA,0BACC,YAAa,CACb,yBACD,CAEA,0CAEC,SAAU,CACV,QACD,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(0, 0%, 77%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 44%, 48%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(208, 88%, 52%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(208, 88%, 47%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t208, 79%, 51%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(207, 89%, 86%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 90%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 85%);\n\t--ck-color-button-default-active-shadow: \t\t\t\t\thsl(0, 0%, 75%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(0, 0%, 87%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(0, 0%, 77%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(0, 0%, 73%);\n\t--ck-color-button-on-active-shadow: \t\t\t\t\t\thsl(0, 0%, 63%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(0, 0%, 87%);\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 44%, 43%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 44%, 41%);\n\t--ck-color-button-action-active-shadow: \t\t\t\t\thsl(104, 44%, 36%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 69%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 64%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 44%, 43%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\thsl(0, 0%, 78%);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\thsl(0, 0%, 78%);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 36%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-base-active);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-base-active-focus);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-foreground);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck.ck-reset_all {\n\t& .ck-rtl * {\n\t\ttext-align: right;\n\t}\n\n\t& iframe {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea,\n\t& input[type="text"],\n\t& input[type="password"] {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled],\n\t& input[type="text"][disabled],\n\t& input[type="password"][disabled] {\n\t\tcursor: default;\n\t}\n\n\t& fieldset {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(20);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEERA,YAAa,CACb,2BAA2B,CCF3B,qCHYA,CAGD,+BACC,aAAc,CACd,oCAAqC,CACrC,4BAwBD,CAtBC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CACC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,mDACD,CAIA,gEACC,gDACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-base-foreground);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-base-foreground);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(22);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(24);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDACC,yBAA0B,CAC1B,cAAe,CACf,KACD,CAEA,kEACC,QAAS,CACT,iBACD,CCPA,qDCCA,oCAA8B,CDE7B,sBAAuB,CACvB,wBAAyB,CACzB,yBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(26);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAOA,gBACC,oBAAqB,CACrB,iBAyDD,CAvDC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UAOD,CCcA,iEACC,YACD,CDdA,oCAGC,kCAAmC,CAEnC,YAAa,CACb,yBAA0B,CAE1B,iBA8BD,CA5BC,+DACC,oBACD,CAEA,oHAEC,WACD,CAEA,oHAMC,QAAS,CACT,WACD,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAQF,mCACC,mCACD,CEhEA,MACC,sDACD,CAEA,gBAEC,iBAiED,CA/DC,oCACC,mCACD,CAGC,8CACC,gCAAiC,CAGjC,sCACD,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEACC,SAAU,CACV,eAAgB,CAChB,sBACD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAIF,uBExEC,eFoGD,CA5BA,qFEpEE,qCFgGF,CA5BA,uBG1EC,oCAA8B,CH8E9B,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CAGT,cAmBD,CAfC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"../tooltip/mixins/_tooltip.css\";\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\n\t\t/* Disable main button's tooltip when the dropdown is open. Otherwise the panel may\n\t\tpartially cover the tooltip */\n\t\t&.ck-on {\n\t\t\t@mixin ck-tooltip_disabled;\n\t\t}\n\t}\n\n\t& .ck-dropdown__panel {\n\t\t/* This is to get rid of flickering when the tooltip is shown under the panel,\n\t\twhich looks like the panel moves vertically a pixel down and up. */\n\t\t-webkit-backface-visibility: hidden;\n\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(28);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YACC,yBAA0B,CAC1B,0BAA2B,CAG3B,uBAAwB,CAQxB,qBAcD,CAZC,0BARA,aAAc,CAGd,cAgBA,CAJC,yBAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\tcolor: inherit;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\n\t\t/* Allows dynamic coloring of the icons. */\n\t\tcolor: inherit;\n\n\t\t&:not([fill]) {\n\t\t\t/* Needed by FF. */\n\t\t\tfill: currentColor;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(30);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,'.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s,.ck.ck-tooltip.ck-tooltip_sw{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{top:calc(var(--ck-tooltip-arrow-size)*-1 + 1px);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_sw{right:50%;left:auto}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text{left:auto;right:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{left:auto;right:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,sDAEC,iBAAkB,CAGlB,mBAAoB,CAIpB,kCACD,CAEA,eAEC,iBAAkB,CAClB,SAAU,CACV,YAAa,CACb,yBAWD,CATC,iCACC,oBAOD,CALC,uCACC,UAAW,CACX,OAAQ,CACR,QACD,CCxBF,MACC,2BACD,CAEA,eACC,QAAS,CAMT,KAAM,CAON,sCA6FD,CA3FC,iCChBA,eDqCA,CArBA,yGCZC,qCDiCD,CArBA,iCAGC,cAAe,CACf,eAAgB,CAChB,kCAAmC,CACnC,wDAAyD,CACzD,6CAA8C,CAC9C,iBAAkB,CAClB,SAYD,CAVC,uCAMC,sCAAuC,CACvC,kBAAmB,CACnB,QACD,CAYD,yDAEC,4CAA+C,CAC/C,0BASD,CAPC,yGAEC,+CAAkD,CAClD,0BAA6B,CAC7B,6BAAoF,CAApF,sDAAoF,CAApF,8BAAoF,CAApF,4BAAoF,CACpF,8CAAsG,CAAtG,gDAAsG,CAAtG,+CAAsG,CAAtG,kBACD,CAaD,6BACC,SAAU,CACV,SAWD,CATC,+CACC,SAAU,CACV,2CACD,CAEA,qDACC,SAAU,CACV,OACD,CAYD,4BACC,yCAA4C,CAC5C,2BAQD,CANC,oDACC,4CAA+C,CAC/C,0BAA6B,CAC7B,6BAAoF,CAApF,+BAAoF,CAApF,8BAAoF,CAApF,mDAAoF,CACpF,8CAAsG,CAAtG,qBAAsG,CAAtG,+CAAsG,CAAtG,6CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-tooltip,\n.ck.ck-tooltip .ck-tooltip__text::after {\n\tposition: absolute;\n\n\t/* Without this, hovering the tooltip could keep it visible. */\n\tpointer-events: none;\n\n\t/* This is to get rid of flickering when transitioning opacity in Chrome.\n\tIt\'s weird but it works. */\n\t-webkit-backface-visibility: hidden;\n}\n\n.ck.ck-tooltip {\n\t/* Tooltip is hidden by default. */\n\tvisibility: hidden;\n\topacity: 0;\n\tdisplay: none;\n\tz-index: var(--ck-z-modal);\n\n\t& .ck-tooltip__text {\n\t\tdisplay: inline-block;\n\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-tooltip-arrow-size: 5px;\n}\n\n.ck.ck-tooltip {\n\tleft: 50%;\n\n\t/*\n\t * Prevent blurry tooltips in LoDPI environments.\n\t * See https://github.com/ckeditor/ckeditor5/issues/1802.\n\t */\n\ttop: 0;\n\n\t/*\n\t * For the transition to work, the tooltip must be controlled\n\t * using visibility+opacity. A delay prevents a "tooltip avalanche"\n\t * i.e. when scanning the toolbar with mouse cursor.\n\t */\n\ttransition: opacity .2s ease-in-out .2s;\n\n\t& .ck-tooltip__text {\n\t\t@mixin ck-rounded-corners;\n\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\tbackground: var(--ck-color-tooltip-background);\n\t\tposition: relative;\n\t\tleft: -50%;\n\n\t\t&::after {\n\t\t\t/*\n\t\t\t * For the transition to work, the tooltip must be controlled\n\t\t\t * using visibility+opacity. A delay prevents a "tooltip avalanche"\n\t\t\t * i.e. when scanning the toolbar with mouse cursor.\n\t\t\t */\n\t\t\ttransition: opacity .2s ease-in-out .2s;\n\t\t\tborder-style: solid;\n\t\t\tleft: 50%;\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip south of the element.\n\t *\n\t * [element]\n\t * ^\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t */\n\t&.ck-tooltip_s,\n\t&.ck-tooltip_sw {\n\t\tbottom: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\ttransform: translateY( 100% );\n\n\t\t& .ck-tooltip__text::after {\n\t\t\t/* 1px addresses gliches in rendering causing gap between the triangle and the text */\n\t\t\ttop: calc(-1 * var(--ck-tooltip-arrow-size) + 1px);\n\t\t\ttransform: translateX( -50% );\n\t\t\tborder-color: transparent transparent var(--ck-color-tooltip-background) transparent;\n\t\t\tborder-width: 0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip south-west of the element.\n\t *\n\t * [element]\n\t * ^\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t */\n\n\t&.ck-tooltip_sw {\n\t\tright: 50%;\n\t\tleft: auto;\n\n\t\t& .ck-tooltip__text {\n\t\t\tleft: auto;\n\t\t\tright: calc( -2 * var(--ck-tooltip-arrow-size));\n\t\t}\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tleft: auto;\n\t\t\tright: 0;\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip north of the element.\n\t *\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t * V\n\t * [element]\n\t */\n\t&.ck-tooltip_n {\n\t\ttop: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\ttransform: translateY( -100% );\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tbottom: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\t\ttransform: translateX( -50% );\n\t\t\tborder-color: var(--ck-color-tooltip-background) transparent transparent transparent;\n\t\t\tborder-width: var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(32);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(var(--ck-spacing-small)*-1);margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BCCC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6BD,CE/BC,qDACC,aAqBD,CAHC,oBAnBD,qDAoBE,YAEF,CADC,CFvBF,6BAKC,iBAAkB,CAClB,mBAAoB,CACpB,kBAAmB,CACnB,oBAyBD,CAvBC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEkBA,iEACC,kBAAmB,CACnB,SACD,CAbA,yFACC,YACD,CC7BD,6BCAC,oDD0ID,CCvIE,6EACC,0DACD,CAEA,+EACC,2DAA4C,CAC5C,uEACD,CAID,qDACC,6DACD,CDhBD,6BEDC,eF2ID,CA1IA,wIEGE,qCFuIF,CA1IA,6BAKC,kBAAmB,CACnB,cAAe,CACf,qBAAsB,CACtB,8BAA+B,CAC/B,iBAAkB,CAGlB,2CAA4C,CAC5C,4CAA6C,CAI7C,aAAc,CAGd,iBAAkB,CAGlB,4BAA6B,CAG7B,4DAA8D,CAG9D,uBA6GD,CA3GC,oFGjCA,YAAa,CACb,2BAA2B,CCF3B,2CJsCA,CAIC,kJAEC,aACD,CAGD,iEAEC,iBAAkB,CAClB,mBAAoB,CACpB,aAAc,CACd,cAAe,CAIf,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAEA,uFK3FD,kCL6FC,CAGA,yFKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAOE,6CAAgD,CAChD,mCAEF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDiIA,CC9HC,yFACC,qDACD,CAEA,2FACC,sDAA4C,CAC5C,kEACD,CAID,iEACC,wDACD,CDmHA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC7IC,mDDkJD,CC/IE,2FACC,yDACD,CAEA,6FACC,0DAA4C,CAC5C,sEACD,CAID,mEACC,4DACD,CD6HD,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n@import "../tooltip/mixins/_tooltip.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\t@mixin ck-tooltip_enabled;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n\n\t&:hover {\n\t\t@mixin ck-tooltip_visible;\n\t}\n\n\t/* Get rid of the native focus outline around the tooltip when focused (but not :hover). */\n\t&:focus:not(:hover) {\n\t\t@mixin ck-tooltip_disabled;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t\tbox-shadow: inset 0 2px 2px var($(prefix)-active-shadow);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(34);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YCEC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAgB,CDFhB,YAAa,CACb,qBAcD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAGC,oBAAqB,CACrB,0CACD,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BACC,gBAAiB,CACjB,UAAW,CACX,eAAgB,CAChB,eAAgB,CAKhB,mIAiCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,2DACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,uBACC,UAAW,CACX,UAAW,CACX,sCACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(36);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - var(--ck-switch-button-toggle-spacing)*2)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*0.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var(--ck-switch-button-translation)*-1))}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,mDAAoD,CACpD,qCAAsC,CACtC,gKAKD,CAGC,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDC3BA,eDoEA,CAzCA,yICvBC,qCDgED,CAzCA,2DAKE,gBAoCF,CAzCA,2DAUE,iBA+BF,CAzCA,iDAcC,8BAAiC,CAEjC,0CAA2C,CAC3C,uDAwBD,CAtBC,2EC9CD,eD2DC,CAbA,6LC1CA,qCAAsC,CD4CpC,+CAWF,CAbA,2EAMC,6CAA8C,CAC9C,+CAAgD,CAChD,gDAAiD,CACjD,yDAA0D,CAG1D,uBACD,CAEA,uDACC,6DAKD,CAHC,iFACC,+DACD,CAIF,6DExEA,kCF0EA,CAEA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,yDAMF,CAXA,2FASE,kEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating–point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: 1.0769230769em;\n\t--ck-switch-button-toggle-spacing: 1px;\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2 * var(--ck-switch-button-toggle-spacing)\n\t);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease;\n\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\t/* Leave some tiny bit of space around the inner part of the switch */\n\t\t\tmargin: var(--ck-switch-button-toggle-spacing);\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t&.ck-on .ck-button__toggle {\n\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t}\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t/*\n\t\t\t * Move the toggle switch to the right. It will be animated.\n\t\t\t */\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(38);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-toolbar-dropdown .ck.ck-toolbar .ck.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAMC,6DACC,gBACD,CAGC,6DACC,qCACD,CCRF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown {\n\t& .ck.ck-toolbar .ck.ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& .ck-dropdown__panel .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(40);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDIpC,wBAAyB,CACzB,2BAA4B,CAC5B,4BAEF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(42);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items>*{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>*,.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eCEC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAgB,CDFhB,YAAa,CACb,oBAAqB,CACrB,kBAyCD,CAvCC,kCACC,YAAa,CACb,kBAAmB,CACnB,kBAAmB,CACnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE3CF,eCGC,eD0FD,CA7FA,qECOE,qCDsFF,CA7FA,eAGC,6CAA8C,CAC9C,iCAAkC,CAClC,+CAwFD,CAtFC,yCACC,kBAAmB,CACnB,SAAU,CACV,aAAc,CACd,yCAA0C,CAM1C,kCAAmC,CACnC,qCACD,CAGC,oCAEC,kCAAmC,CACnC,qCAAsC,CAGtC,oCACD,CAIA,kEACC,YACD,CAGD,oFAGC,kCAAmC,CACnC,qCACD,CAEA,mCAEC,SAgBD,CAbC,0DAEC,UAAW,CAGX,QAAS,CAGT,eAAgB,CAGhB,QACD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAvFF,qCA2FE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JACC,wBAAyB,CACzB,2BACD,CAGA,2JACC,yBAA0B,CAC1B,4BACD,CAID,qGACC,mCACD,CAGA,yLACC,mCACD,CAWA,qHACC,cACD,CAIC,6JACC,yBAA0B,CAC1B,4BACD,CAGA,2JACC,wBAAyB,CACzB,2BACD,CAID,qGACC,oCACD,CAGA,yLACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > * {\n\t\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\t\tmargin-top: var(--ck-spacing-small);\n\t\t\tmargin-bottom: var(--ck-spacing-small);\n\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *,\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so any border is pointless. */\n\t\t\tborder: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(44);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the <body>, etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(46);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAEC,eAAgB,CAGhB,mBAAoB,CACpB,kBAAmB,CAEnB,aAAc,CACd,cAAe,CACf,iBAAkB,CAClB,0BACD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/**\n * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(48);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#000}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{width:var(--ck-color-grid-tile-size);height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;border:0}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{display:none;color:var(--ck-color-color-grid-check-icon)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,qCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBACC,oCAAqC,CACrC,qCAAsC,CACtC,wCAAyC,CACzC,yCAA0C,CAC1C,SAAU,CACV,8BAA+B,CAC/B,QAmCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,4DACC,gDACD,CAEA,oCACC,YAAa,CACb,2CACD,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(0, 0%, 0%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-table__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(50);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck .ck-button.ck-color-table__remove-color{display:flex;align-items:center;width:100%}label.ck.ck-color-grid__label{font-weight:unset}.ck .ck-button.ck-color-table__remove-color{padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck .ck-button.ck-color-table__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-base-border)}[dir=ltr] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-font/theme/fontcolor.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-font/fontcolor.css"],names:[],mappings:"AAKA,4CACC,YAAa,CACb,kBAAmB,CACnB,UACD,CAEA,8BACC,iBACD,CCNA,4CACC,qEAAyE,CACzE,2BAA4B,CAC5B,4BAeD,CAbC,wDACC,mDACD,CAEA,kEAEE,uCAMF,CARA,kEAME,sCAEF",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-button.ck-color-table__remove-color {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 100%;\n}\n\nlabel.ck.ck-color-grid__label {\n\tfont-weight: unset;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck .ck-button.ck-color-table__remove-color {\n\tpadding: calc(var(--ck-spacing-standard) / 2 ) var(--ck-spacing-standard);\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n\n\t&:not(:focus) {\n\t\tborder-bottom: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(52);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-font/theme/fontsize.css"],names:[],mappings:"AAUC,uBACC,cACD,CAEA,wBACC,eACD,CAEA,sBACC,eACD,CAEA,uBACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */\n\n/* Styles should be prefixed with the `.ck-content` class.\nSee https://github.com/ckeditor/ckeditor5/issues/6636 */\n.ck-content {\n\t& .text-tiny {\n\t\tfont-size: .7em;\n\t}\n\n\t& .text-small {\n\t\tfont-size: .85em;\n\t}\n\n\t& .text-big {\n\t\tfont-size: 1.4em;\n\t}\n\n\t& .text-huge {\n\t\tfont-size: 1.8em;\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-heading/theme/heading.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(55);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,mBAEC,iBAUD,CARC,iDACC,qCACD,CC0BA,8DACC,YACD,CClCD,MACC,gDAAyD,CACzD,4CACD,CAMC,qDAGE,6BAA8B,CAC9B,gCAQF,CAZA,qDASE,4BAA6B,CAC7B,+BAEF,CAEA,0CAGC,eAmBD,CAtBA,oDCnBA,eDyCA,CAtBA,+ICfC,qCAAsC,CDuBpC,4BAA6B,CAC7B,+BAaH,CAtBA,oDAeE,6BAA8B,CAC9B,gCAMF,CAHC,8CACC,mCACD,CASA,0KACC,wDACD,CAGC,sKACC,2DACD,CAIA,sKACC,4DACD,CAMF,uCCpEA,eD8EA,CAVA,qHChEC,qCD0ED,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../tooltip/mixins/_tooltip.css";\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n\n\t/* Disable tooltips for the buttons when the button is "open" */\n\t&.ck-splitbutton_open > .ck-button {\n\t\t@mixin ck-tooltip_disabled;\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t& > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: unset;\n\t\t\t\tborder-bottom-left-radius: unset;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled) {\n\t\t\t\tborder-left-color: var(--ck-color-split-button-hover-border);\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled) {\n\t\t\t\tborder-right-color: var(--ck-color-split-button-hover-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(57);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,":root{--ck-highlight-marker-yellow:#fdfd77;--ck-highlight-marker-green:#62f962;--ck-highlight-marker-pink:#fc7899;--ck-highlight-marker-blue:#72ccfd;--ck-highlight-pen-red:#e71313;--ck-highlight-pen-green:#128a00}.ck-content .marker-yellow{background-color:var(--ck-highlight-marker-yellow)}.ck-content .marker-green{background-color:var(--ck-highlight-marker-green)}.ck-content .marker-pink{background-color:var(--ck-highlight-marker-pink)}.ck-content .marker-blue{background-color:var(--ck-highlight-marker-blue)}.ck-content .pen-red{color:var(--ck-highlight-pen-red);background-color:transparent}.ck-content .pen-green{color:var(--ck-highlight-pen-green);background-color:transparent}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-highlight/theme/highlight.css"],names:[],mappings:"AAKA,MACC,oCAA+C,CAC/C,mCAA+C,CAC/C,kCAA8C,CAC9C,kCAA8C,CAC9C,8BAAwC,CACxC,gCACD,CAGC,2BACC,kDACD,CAFA,0BACC,iDACD,CAFA,yBACC,gDACD,CAFA,yBACC,gDACD,CAIA,qBACC,iCAAqC,CAGrC,4BACD,CALA,uBACC,mCAAqC,CAGrC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n@define-mixin highlight-marker-color $color {\n\t.ck-content .marker-$color {\n\t\tbackground-color: var(--ck-highlight-marker-$color);\n\t}\n}\n\n@define-mixin highlight-pen-color $color {\n\t.ck-content .pen-$color {\n\t\tcolor: var(--ck-highlight-pen-$color);\n\n\t\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\t\tbackground-color: transparent;\n\t}\n}\n\n@mixin highlight-marker-color yellow;\n@mixin highlight-marker-color green;\n@mixin highlight-marker-color pink;\n@mixin highlight-marker-color blue;\n\n@mixin highlight-pen-color red;\n@mixin highlight-pen-color green;\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(59);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border);filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCJC,eD4ID,CAxIA,iFCAE,qCDwIF,CAxIA,qBENC,oCAA8B,CFU9B,eAAgB,CAEhB,2CAA4C,CAC5C,6CAiID,CA9HE,+GAEC,OAAQ,CACR,QAAS,CACT,kBACD,CAIA,uFAEC,oDAAoH,CAApH,kDAAoH,CAApH,qDAAoH,CAApH,kBACD,CAEA,4CACC,gDACD,CAEA,uFAHC,6BAA8E,CAA9E,8BAA8E,CAA9E,4BAMD,CAHA,2CACC,oDAAkF,CAClF,yCACD,CAIA,uFAEC,oDAAoH,CAApH,qBAAoH,CAApH,qDAAoH,CAApH,+CACD,CAEA,4CACC,6CAAkE,CAClE,uDACD,CAEA,uFAJC,6BAAkE,CAAlE,+BAAkE,CAAlE,8BAOD,CAHA,2CACC,iDAAkF,CAClF,4CACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,8CACD,CAIA,2GAEC,+CAAkD,CAClD,8CACD,CAIA,2GAEC,gDAAmD,CACnD,8CACD,CAIA,6GAEC,SAAU,CACV,uDAA0D,CAC1D,8CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,8CACD,CAIA,6GAEC,SAAU,CACV,uDAA0D,CAC1D,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: var(--ck-balloon-arrow-offset);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: var(--ck-balloon-arrow-offset);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(61);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{margin:15px 0;height:4px;background:#dedede;border:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-horizontal-line/theme/horizontalline.css"],names:[],mappings:"AAMA,yCAEC,iBACD,CAEA,eACC,aAAc,CACd,UAAW,CACX,kBAA2B,CAC3B,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n\n.ck-editor__editable .ck-horizontal-line {\n\t/* Necessary to render properly next to floated objects, e.g. side image case. */\n\tdisplay: flow-root;\n}\n\n.ck-content hr {\n\tmargin: 15px 0;\n\theight: 4px;\n\tbackground: hsl(0, 0%, 87%);\n\tborder: 0;\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(63);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,'.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(var(--ck-widget-outline-thickness)*-0.5);left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-0.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-widget/theme/widgettypearound.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CACd,iBAAkB,CAClB,eAAgB,CAChB,2BAwBD,CAtBC,mDACC,iBAAkB,CAClB,OAAQ,CACR,QAAS,CACT,qCACD,CAEA,qFAEC,iDAAoD,CACpD,kBAAoB,CAEpB,0BACD,CAEA,oFAEC,oDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CACd,iBAAkB,CAClB,OAAQ,CACR,QAAS,CACT,qCACD,CAMD,2EACC,YAAa,CACb,iBAAkB,CAClB,MAAO,CACP,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHACC,qDAA0D,CAC1D,aACD,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CACC,8CAA+C,CAC/C,+CAAgD,CAChD,oDAAqD,CACrD,mBAAoB,CACpB,uMAAyM,CAb1M,SAAU,CACV,mBA0DA,CA1CC,mDACC,UAAW,CACX,UAAW,CACX,8BAA+B,CAC/B,6BAA8B,CAC9B,cAgBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLACC,0DAA2D,CAC3D,2DAA4D,CAC5D,mBAAoB,CACpB,uEACD,CAOD,8GACC,gBACD,CAKA,mDACC,mBAAoB,CACpB,UAAW,CACX,mFAAoF,CAMpF,oCAAwC,CACxC,oCACD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CASE,0jBACC,SACD,CASF,mPACC,SACD,CAcC,iRAxLF,SAAU,CACV,mBAyLE,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(65);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-widget/theme/widget.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,sBAAuB,CACvB,6BAA8B,CAC9B,8BAA+B,CAG/B,yDAAiE,CAEjE,gCAAiC,CACjC,6CAAsD,CACtD,uCACD,CAOA,8DAEC,iBAuBD,CArBC,4EACC,iBAOD,CALC,qFAGC,aACD,CAWD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CACtD,0CAA2C,CAC3C,qDAAsD,CACtD,6CAA8C,CAC9C,kCAAmC,CACnC,aAAc,CACd,+BA4BD,CA1BC,gLAIC,iBACD,CAEA,0CACC,oCAAuC,CACvC,qCACD,CAEA,2CACC,oCAAuC,CACvC,sCACD,CAEA,8CACC,uCAA0C,CAC1C,sCACD,CAEA,6CACC,uCAA0C,CAC1C,qCACD,CC7ED,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eACC,gDAAiD,CACjD,mBAAoB,CACpB,yBAA0B,CAC1B,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGC/BA,YAAa,CACb,2BAA2B,CCF3B,qCAA8B,CFqC7B,iEACD,CAIA,4EACC,WAAY,CACZ,qBAAsB,CAGtB,4BAA6B,CAC7B,SAAU,CAMV,6SAG6F,CAG7F,iEAAkE,CAGlE,2BAA4B,CAC5B,mDAqBD,CAnBC,qFAEC,wCAAyC,CACzC,yCAA0C,CAC1C,oDASD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFACC,SAAU,CACV,oDACD,CAKC,oMACC,SAAU,CACV,6CAMD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-resizer-size: 10px;\n\t--ck-resizer-border-width: 1px;\n\t--ck-resizer-border-radius: 2px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget. */\n\t&:hover {\n\t\t& .ck-widget__selection-handle {\n\t\t\tvisibility: visible;\n\t\t}\n\t}\n\n\t/* Show the selection handle when the widget is selected. */\n\t&.ck-widget_selected .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: var(--ck-spacing-small);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var( --ck-resizer-tooltip-offset );\n\t\tleft: var( --ck-resizer-tooltip-offset );\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var( --ck-resizer-tooltip-offset );\n\t\tright: var( --ck-resizer-tooltip-offset );\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var( --ck-resizer-tooltip-offset );\n\t\tright: var( --ck-resizer-tooltip-offset );\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var( --ck-resizer-tooltip-offset );\n\t\tleft: var( --ck-resizer-tooltip-offset );\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget. */\n\t&:hover .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& .ck-widget__selection-handle,\n\t\t\t& .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(67);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view>.ck.ck-label{width:100%;text-overflow:ellipsis;overflow:hidden}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css"],names:[],mappings:"AAKA,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBACD,CAEA,+DACC,gCACD,CAEA,uCACC,UAAW,CACX,sBAAuB,CACvB,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view .ck-labeled-field-view__status {\n\tfont-size: var(--ck-font-size-small);\n\tmargin-top: var(--ck-spacing-small);\n\n\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\tThe status could be very long. */\n\twhite-space: normal;\n}\n\n.ck.ck-labeled-field-view .ck-labeled-field-view__status_error {\n\tcolor: var(--ck-color-base-error);\n}\n\n.ck.ck-labeled-field-view > .ck.ck-label {\n\twidth: 100%;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(69);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .2s ease-in-out,border .2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/inputtext/inputtext.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css"],names:[],mappings:"AASA,MACC,0BACD,CAEA,kBCFC,eDyCD,CAvCA,2ECEE,qCDqCF,CAvCA,kBEJC,qCAA8B,CFQ9B,2CAA4C,CAC5C,6CAA8C,CAC9C,6DAA8D,CAC9D,oCAAqC,CAGrC,4CAA6C,CAG7C,4DA0BD,CAxBC,wBGlBA,YAAa,CACb,2BAA2B,CDF3B,8DFsBA,CAEA,4BACC,sDAAuD,CACvD,oDAAqD,CACrD,yCAMD,CAJC,kCE7BD,uEFgCC,CAGD,2BACC,+CAAgD,CAChD,2CAKD,CAHC,iCEvCD,oEFyCC,CAIF,+BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-text-width: 18em;\n}\n\n.ck.ck-input-text {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-text-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow), var(--ck-inner-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow), var(--ck-inner-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-text-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow), var(--ck-inner-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-text-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(71);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/textalternativeform.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,'.ck-vertical-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-standard)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-text-width)*0.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after,[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAOA,mCACC,UAAW,CACX,OAAQ,CACR,iBAAkB,CAClB,UAAW,CACX,2BAA4B,CAC5B,8BAA+B,CAC/B,SACD,CCTC,oCDaC,wCACC,UAAW,CACX,OAAQ,CACR,iBAAkB,CAClB,UAAW,CACX,2BAA4B,CAC5B,8BAA+B,CAC/B,SACD,CCnBD,CCAD,qDACC,kDACD,CAEA,uBACC,kCAkED,CAhEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,0CA6CF,CA3CE,8CACC,8DAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAID,iGAEC,kCAAmC,CACnC,qCAAsC,CAEtC,eAAgB,CAChB,QAAS,CACT,gDAaD,CApBA,0OAcE,aAMF,CAGC,yMACC,kDACD,CDpEF",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button::after {\n\tcontent: "";\n\twidth: 0;\n\tposition: absolute;\n\tright: -1px;\n\ttop: var(--ck-spacing-small);\n\tbottom: var(--ck-spacing-small);\n\tz-index: 1;\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button::after {\n\t\t\tcontent: "";\n\t\t\twidth: 0;\n\t\t\tposition: absolute;\n\t\t\tright: -1px;\n\t\t\ttop: var(--ck-spacing-small);\n\t\t\tbottom: var(--ck-spacing-small);\n\t\t\tz-index: 1;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-standard);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-text-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\tborder-radius: 0;\n\t\t\tborder: 0;\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(74);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCACC,oCAAqC,CACrC,kCAAmC,CACnC,qCACD,CAGA,iEACC,uCAAwC,CAGxC,mCACD,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(76);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBCJC,oCAA8B,CDO9B,eAAgB,CAEhB,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CAEtC,UAAW,CACX,WACD,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(78);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:50px}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/image.css"],names:[],mappings:"AAKA,mBACC,aAAc,CACd,UAAW,CACX,iBAAkB,CAGlB,eAeD,CAbC,uBAEC,aAAc,CAGd,aAAc,CAGd,cAAe,CAGf,cACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .image {\n\tdisplay: table;\n\tclear: both;\n\ttext-align: center;\n\n\t/* Make sure there is some space between the content and the image. Center image by default. */\n\tmargin: 1em auto;\n\n\t& img {\n\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\tdisplay: block;\n\n\t\t/* Center the image if its width is smaller than the content's width. */\n\t\tmargin: 0 auto;\n\n\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\tmax-width: 100%;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(80);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,8BACC,qBAAsB,CACtB,mBAAoB,CACpB,qBAAsB,CACtB,UAAsB,CACtB,wBAAiC,CACjC,YAAa,CACb,eAAgB,CAChB,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: hsl(0, 0%, 20%);\n\tbackground-color: hsl(0, 0%, 97%);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(82);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageuploadprogress.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAKA,+BACC,iBACD,CAGA,gDACC,iBAAkB,CAClB,KAAM,CACN,MACD,CCPC,yCACC,oBACD,CAID,gDACC,UAAW,CACX,OAAQ,CACR,gDAAiD,CACjD,oBACD,CAEA,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable .image {\n\tposition: relative;\n}\n\n/* Upload progress bar. */\n.ck.ck-editor__editable .image .ck-progress-bar {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable .image {\n\t/* Showing animation. */\n\t&.ck-appear {\n\t\tanimation: fadeIn 700ms;\n\t}\n}\n\n/* Upload progress bar. */\n.ck.ck-editor__editable .image .ck-progress-bar {\n\theight: 2px;\n\twidth: 0;\n\tbackground: var(--ck-color-upload-bar-background);\n\ttransition: width 100ms;\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(84);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,'.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageuploadicon.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BACC,aAAc,CACd,iBAAkB,CAClB,QAAS,CACT,UAAW,CACX,iBAMD,CAJC,qCACC,UAAW,CACX,iBACD,CCVD,MACC,iCAA8C,CAC9C,+CAA4D,CAE5D,gCAAiC,CACjC,gCACD,CAEA,+BACC,sCAAuC,CACvC,uCAAwC,CACxC,SAAU,CACV,uDAAwD,CACxD,wEAA0E,CAC1E,qCAAuC,CACvC,0BAAgC,CAGhC,0CAA2C,CAG3C,sBAyBD,CAtBC,qCAEC,QAAS,CAET,OAAQ,CACR,SAAU,CACV,QAAS,CACT,OAAQ,CAER,mCAAoC,CACpC,yBAA0B,CAC1B,oFAAqF,CACrF,sFAAuF,CAEvF,4CAA6C,CAC7C,sBAAyB,CACzB,mBAAsB,CACtB,4BAA6B,CAG7B,qBACD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GACC,SAAU,CACV,OAAQ,CACR,QACD,CACA,IACC,UAAY,CACZ,QACD,CACA,GACC,SAAU,CACV,UAAY,CACZ,YACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\ttop: 10px;\n\tright: 10px;\n\tborder-radius: 50%;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t--ck-image-upload-icon-size: 20px;\n\t--ck-image-upload-icon-width: 2px;\n}\n\n.ck-image-upload-complete-icon {\n\twidth: var(--ck-image-upload-icon-size);\n\theight: var(--ck-image-upload-icon-size);\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: var(--ck-image-upload-icon-size);\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(86);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,'.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageuploadloader.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCACC,iBAAkB,CAClB,YAAa,CACb,kBAAmB,CACnB,sBAAuB,CACvB,KAAM,CACN,MAMD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCACD,CAEA,iCAEC,UAAW,CACX,QACD,CAEA,kCACC,UAAW,CACX,WAUD,CARC,yCACC,8CAA+C,CAC/C,+CAAgD,CAChD,iBAAkB,CAClB,8DAA+D,CAC/D,kCAAmC,CACnC,yDACD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(88);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-image-insert-form:focus{outline:none}.ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageinsertformrowview.css"],names:[],mappings:"AAMC,+BAEC,YACD,CAGD,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAmBD,CAhBC,iCACC,WACD,CAEA,kDACC,qCAUD,CARC,sIAEC,sBACD,CAEA,+EACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-form {\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n}\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-image-insert-form__action-row {\n\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(90);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-image-insert__panel{padding:var(--ck-spacing-standard)}.ck.ck-image-insert__ck-finder-button{display:block;width:100%;margin:var(--ck-spacing-standard) auto;border:1px solid #ccc;border-radius:var(--ck-border-radius)}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{padding:0;margin:0;border:none}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageinsert.css"],names:[],mappings:"AAKA,2BACC,kCACD,CAEA,sCACC,aAAc,CACd,UAAW,CACX,sCAAuC,CACvC,qBAAiC,CACjC,qCACD,CAGA,oDACC,SAAU,CACV,QAAS,CACT,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert__panel {\n\tpadding: var(--ck-spacing-standard);\n}\n\n.ck.ck-image-insert__ck-finder-button {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin: var(--ck-spacing-standard) auto;\n\tborder: 1px solid hsl(0, 0%, 80%);\n\tborder-radius: var(--ck-border-radius);\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/7986 */\n.ck.ck-splitbutton > .ck-file-dialog-button.ck-button {\n\tpadding: 0;\n\tmargin: 0;\n\tborder: none;\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(92);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;position:absolute;pointer-events:none;left:0;top:0;outline:1px solid var(--ck-color-resizer)}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{position:absolute;pointer-events:all;width:var(--ck-resizer-size);height:var(--ck-resizer-size);background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{top:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nesw-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nesw-resize}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-widget/theme/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CACb,iBAAkB,CAGlB,mBAAoB,CAEpB,MAAO,CACP,KAAM,CAEN,yCACD,CAGC,2EACC,aACD,CAGD,gCACC,iBAAkB,CAGlB,kBAAmB,CAEnB,4BAA6B,CAC7B,6BAA8B,CAC9B,uCAAwC,CACxC,gDAA6D,CAC7D,6CAyBD,CAvBC,oEACC,4BAA+B,CAC/B,6BAAgC,CAChC,kBACD,CAEA,qEACC,4BAA+B,CAC/B,8BAAiC,CACjC,kBACD,CAEA,wEACC,+BAAkC,CAClC,8BAAiC,CACjC,kBACD,CAEA,uEACC,+BAAkC,CAClC,6BAAgC,CAChC,kBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var( --ck-resizer-offset );\n\t\tleft: var( --ck-resizer-offset );\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var( --ck-resizer-offset );\n\t\tright: var( --ck-resizer-offset );\n\t\tcursor: nesw-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var( --ck-resizer-offset );\n\t\tright: var( --ck-resizer-offset );\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var( --ck-resizer-offset );\n\t\tleft: var( --ck-resizer-offset );\n\t\tcursor: nesw-resize;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(94);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content .image.image_resized{max-width:100%;display:block;box-sizing:border-box}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAKA,iCACC,cAAe,CAMf,aAAc,CACd,qBAWD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAGD,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `<figure>` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `<figure>` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(96);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BACD,CAGC,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n}\n\n.ck-content {\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(98);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDACD,CAMA,4BACC,8CACD,CAGA,sCACC,WAAY,CACZ,gDAAiD,CACjD,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(100);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block;padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-link/theme/linkform.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAAc,CEpBd,SAAU,CACV,oCFoBD,CElBC,wDACC,oFAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CACC,kCAAmC,CACnC,QAAS,CACT,eAAgB,CAChB,QAAS,CACT,gDAAiD,CACjD,SAaD,CAnBA,4GAaE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,aAUD,CARC,wEACC,QAAS,CACT,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-text-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tborder: 0;\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\twidth: 50%;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin-left: 0;\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tborder: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(102);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-link/theme/linkactions.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCKA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EACC,kCAAmC,CACnC,kCAAmC,CACnC,sBAAuB,CACvB,cAAe,CAIf,oCAAqC,CACrC,aAAc,CACd,iBAKD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDvDD,oCC2DC,wDACC,8DAMD,CAJC,0EACC,WAAY,CACZ,cACD,CAGD,gJAME,aAEF,CD1ED",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-text-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(104);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-link-image_icon{position:absolute;top:var(--ck-spacing-medium);right:var(--ck-spacing-medium);width:28px;height:28px;padding:4px;box-sizing:border-box;border-radius:var(--ck-border-radius)}.ck.ck-link-image_icon svg{fill:currentColor}.ck.ck-link-image_icon{color:#fff;background:rgba(0,0,0,.4)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-link/theme/linkimage.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AAKA,uBACC,iBAAkB,CAClB,4BAA6B,CAC7B,8BAA+B,CAC/B,UAAW,CACX,WAAY,CACZ,WAAY,CACZ,qBAAsB,CACtB,qCAKD,CAHC,2BACC,iBACD,CCZD,uBACC,UAAuB,CACvB,yBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-link-image_icon {\n\tposition: absolute;\n\ttop: var(--ck-spacing-medium);\n\tright: var(--ck-spacing-medium);\n\twidth: 28px;\n\theight: 28px;\n\tpadding: 4px;\n\tbox-sizing: border-box;\n\tborder-radius: var(--ck-border-radius);\n\n\t& svg {\n\t\tfill: currentColor;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-link-image_icon {\n\tcolor: hsl(0, 0%, 100%);\n\tbackground: hsla(0, 0%, 0%, .4);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(106);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,'.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(var(--ck-spacing-standard)*3);background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAQC,0CACC,YAAa,CACb,qBAAsB,CACtB,kBAmBD,CCpBA,kFACC,aAqBD,CAHC,oBAnBD,kFAoBE,YAEF,CADC,CDlBA,sEAIC,cAAe,CAEf,iBAUD,CCoBD,wFACC,kBAAmB,CACnB,SACD,CD3BE,wGACC,eAAgB,CAChB,aACD,CAQD,+UACC,YACD,CAYF,2LACC,mBACD,CE/CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA4FD,CA1FC,0CACC,0CAA+C,CAC/C,0CA4BD,CA1BC,uEACC,qDAAsD,CACtD,kDAAmD,CACnD,qCAAsC,CACtC,uBAA2B,CAC3B,qBAMD,CAJC,gFACC,UAAW,CACX,WACD,CAGD,4EACC,sDAAuD,CACvD,kBAAmB,CACnB,iBAAkB,CAClB,iBAAkB,CAClB,sBAOD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDACC,eAAgB,CAChB,gBACD,CAEA,oFACC,gvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,48BACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css";\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t@mixin ck-tooltip_enabled;\n\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t&:hover {\n\t\t\t\t@mixin ck-tooltip_visible;\n\t\t\t}\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read–only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(108);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBACC,YAAa,CACb,sBAAuB,CACvB,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(110);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CAGX,YAAa,CAIb,aAAc,CAId,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\tmargin: 1em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(112);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,8DACD,CAKE,8QAGC,wDAAyD,CAKzD,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-table-focused-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-table-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(114);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-table/theme/inserttable.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAEC,oJAA2J,CAC3J,yFACD,CAEA,qCACC,iBACD,CAEA,uCACC,+CAAgD,CAChD,iDAAkD,CAClD,iDAAkD,CAClD,4CAA6C,CAC7C,iBAMD,CAJC,6CACC,yCAA0C,CAC1C,6CACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\twidth: var(--ck-insert-table-dropdown-box-width);\n\theight: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(116);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,yDACD,CAGC,0IAEC,iBAAkB,CAClB,uBAAwB,CACxB,aAAc,CACd,gBAsBD,CAnBC,sJACC,UAAW,CACX,mBAAoB,CACpB,yDAA0D,CAC1D,iBAAkB,CAClB,KAAM,CACN,MAAO,CACP,OAAQ,CACR,QACD,CAEA,wTAEC,4BACD,CAEA,kLACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t& .ck-widget_selected {\n\t\t\toutline: unset;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(118);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAEC,eAAgB,CAChB,aAgCD,CA9BC,yBAEC,wBAAyB,CACzB,gBAAiB,CAIjB,UAAW,CACX,WAAY,CAIZ,yBAiBD,CAfC,wDAEC,aAAc,CACd,YAAa,CAKb,wBACD,CAEA,4BACC,eAAiB,CACjB,2BACD,CAMF,+BACC,gBACD,CAEA,+BACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\tmargin: 1em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent <figure>. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the ediitor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=o.a.mark(ss),i=o.a.mark(cs),d=o.a.mark($u);n.r(t);var f=n(4),p=f.a.Symbol,k=Object.prototype,_=k.hasOwnProperty,C=k.toString,S=p?p.toStringTag:void 0,M=Object.prototype.toString,E=p?p.toStringTag:void 0,T=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?function(e){var t=_.call(e,S),n=e[S];try{e[S]=void 0;var r=!0}catch(e){}var i=C.call(e);return r&&(t?e[S]=n:delete e[S]),i}(e):function(e){return M.call(e)}(e)},D=function(e,t){return function(n){return e(t(n))}},O=D(Object.getPrototypeOf,Object),P=function(e){return null!=e&&"object"==x(e)},I=Function.prototype,j=Object.prototype,N=I.toString,R=j.hasOwnProperty,L=N.call(Object),B=function(e){if(!P(e)||"[object Object]"!=T(e))return!1;var t=O(e);if(null===t)return!0;var n=R.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&N.call(n)==L},F=function(e,t){return e===t||e!=e&&t!=t},z=function(e,t){for(var n=e.length;n--;)if(F(e[n][0],t))return n;return-1},V=Array.prototype.splice;function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$.prototype.clear=function(){this.__data__=[],this.size=0},$.prototype.delete=function(e){var t=this.__data__,n=z(t,e);return!(n<0||(n==t.length-1?t.pop():V.call(t,n,1),--this.size,0))},$.prototype.get=function(e){var t=this.__data__,n=z(t,e);return n<0?void 0:t[n][1]},$.prototype.has=function(e){return z(this.__data__,e)>-1},$.prototype.set=function(e,t){var n=this.__data__,r=z(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var H,U=$,q=function(e){var t=x(e);return null!=e&&("object"==t||"function"==t)},W=function(e){if(!q(e))return!1;var t=T(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Y=f.a["__core-js_shared__"],K=(H=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",G=Function.prototype.toString,Q=function(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""},X=/^\[object .+?Constructor\]$/,J=Function.prototype,Z=Object.prototype,ee=J.toString,te=Z.hasOwnProperty,ne=RegExp("^"+ee.call(te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=function(e){return!(!q(e)||function(e){return!!K&&K in e}(e))&&(W(e)?ne:X).test(Q(e))},ie=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return re(n)?n:void 0},oe=ie(f.a,"Map"),ae=ie(Object,"create"),se=Object.prototype.hasOwnProperty,ce=Object.prototype.hasOwnProperty;function le(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}le.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},le.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},le.prototype.get=function(e){var t=this.__data__;if(ae){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return se.call(t,e)?t[e]:void 0},le.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:ce.call(t,e)},le.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ae&&void 0===t?"__lodash_hash_undefined__":t,this};var ue=le,de=function(e,t){var n=e.__data__;return function(e){var t=x(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fe.prototype.clear=function(){this.size=0,this.__data__={hash:new ue,map:new(oe||U),string:new ue}},fe.prototype.delete=function(e){var t=de(this,e).delete(e);return this.size-=t?1:0,t},fe.prototype.get=function(e){return de(this,e).get(e)},fe.prototype.has=function(e){return de(this,e).has(e)},fe.prototype.set=function(e,t){var n=de(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var he=fe;function pe(e){var t=this.__data__=new U(e);this.size=t.size}pe.prototype.clear=function(){this.__data__=new U,this.size=0},pe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},pe.prototype.get=function(e){return this.__data__.get(e)},pe.prototype.has=function(e){return this.__data__.has(e)},pe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof U){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new he(r)}return n.set(e,t),this.size=n.size,this};var me=pe,ve=function(){try{var e=ie(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ge=function(e,t,n){"__proto__"==t&&ve?ve(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},be=Object.prototype.hasOwnProperty,ye=function(e,t,n){var r=e[t];be.call(e,t)&&F(r,n)&&(void 0!==n||t in e)||ge(e,t,n)},ke=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?ge(n,s,c):ye(n,s,c)}return n},we=function(e){return P(e)&&"[object Arguments]"==T(e)},_e=Object.prototype,Ce=_e.hasOwnProperty,Ae=_e.propertyIsEnumerable,xe=we(function(){return arguments}())?we:function(e){return P(e)&&Ce.call(e,"callee")&&!Ae.call(e,"callee")},Se=Array.isArray,Me=n(5),Ee=/^(?:0|[1-9]\d*)$/,Te=function(e,t){var n=x(e);return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ee.test(e))&&e>-1&&e%1==0&&e<t},De=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Oe={};Oe["[object Float32Array]"]=Oe["[object Float64Array]"]=Oe["[object Int8Array]"]=Oe["[object Int16Array]"]=Oe["[object Int32Array]"]=Oe["[object Uint8Array]"]=Oe["[object Uint8ClampedArray]"]=Oe["[object Uint16Array]"]=Oe["[object Uint32Array]"]=!0,Oe["[object Arguments]"]=Oe["[object Array]"]=Oe["[object ArrayBuffer]"]=Oe["[object Boolean]"]=Oe["[object DataView]"]=Oe["[object Date]"]=Oe["[object Error]"]=Oe["[object Function]"]=Oe["[object Map]"]=Oe["[object Number]"]=Oe["[object Object]"]=Oe["[object RegExp]"]=Oe["[object Set]"]=Oe["[object String]"]=Oe["[object WeakMap]"]=!1;var Pe=function(e){return function(t){return e(t)}},Ie=n(6),je=Ie.a&&Ie.a.isTypedArray,Ne=je?Pe(je):function(e){return P(e)&&De(e.length)&&!!Oe[T(e)]},Re=Object.prototype.hasOwnProperty,Le=function(e,t){var n=Se(e),r=!n&&xe(e),i=!n&&!r&&Object(Me.a)(e),o=!n&&!r&&!i&&Ne(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!Re.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Te(l,c))||s.push(l);return s},Be=Object.prototype,Fe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Be)},ze=D(Object.keys,Object),Ve=Object.prototype.hasOwnProperty,$e=function(e){return null!=e&&De(e.length)&&!W(e)},He=function(e){return $e(e)?Le(e):function(e){if(!Fe(e))return ze(e);var t=[];for(var n in Object(e))Ve.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},Ue=Object.prototype.hasOwnProperty,qe=function(e){if(!q(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Fe(e),n=[];for(var r in e)("constructor"!=r||!t&&Ue.call(e,r))&&n.push(r);return n},We=function(e){return $e(e)?Le(e,!0):qe(e)},Ye=n(10),Ke=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Ge=function(){return[]},Qe=Object.prototype.propertyIsEnumerable,Xe=Object.getOwnPropertySymbols,Je=Xe?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Xe(e),(function(t){return Qe.call(e,t)})))}:Ge,Ze=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},et=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ze(t,Je(e)),e=O(e);return t}:Ge,tt=function(e,t,n){var r=t(e);return Se(e)?r:Ze(r,n(e))},nt=function(e){return tt(e,He,Je)},rt=function(e){return tt(e,We,et)},it=ie(f.a,"DataView"),ot=ie(f.a,"Promise"),at=ie(f.a,"Set"),st=ie(f.a,"WeakMap"),ct="[object Map]",lt="[object Promise]",ut="[object Set]",dt="[object WeakMap]",ft="[object DataView]",ht=Q(it),pt=Q(oe),mt=Q(ot),vt=Q(at),gt=Q(st),bt=T;(it&&bt(new it(new ArrayBuffer(1)))!=ft||oe&&bt(new oe)!=ct||ot&&bt(ot.resolve())!=lt||at&&bt(new at)!=ut||st&&bt(new st)!=dt)&&(bt=function(e){var t=T(e),n="[object Object]"==t?e.constructor:void 0,r=n?Q(n):"";if(r)switch(r){case ht:return ft;case pt:return ct;case mt:return lt;case vt:return ut;case gt:return dt}return t});var yt=bt,kt=Object.prototype.hasOwnProperty,wt=f.a.Uint8Array,_t=function(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t},Ct=/\w*$/,At=p?p.prototype:void 0,xt=At?At.valueOf:void 0,St=function(e,t){var n=t?_t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Mt=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return _t(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var n=t?_t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return St(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,Ct.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Set]":return new r;case"[object Symbol]":return function(e){return xt?Object(xt.call(e)):{}}(e)}},Et=Object.create,Tt=function(){function e(){}return function(t){if(!q(t))return{};if(Et)return Et(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Dt=function(e){return"function"!=typeof e.constructor||Fe(e)?{}:Tt(O(e))},Ot=Ie.a&&Ie.a.isMap,Pt=Ot?Pe(Ot):function(e){return P(e)&&"[object Map]"==yt(e)},It=Ie.a&&Ie.a.isSet,jt=It?Pe(It):function(e){return P(e)&&"[object Set]"==yt(e)},Nt="[object Arguments]",Rt="[object Function]",Lt={};Lt[Nt]=Lt["[object Array]"]=Lt["[object ArrayBuffer]"]=Lt["[object DataView]"]=Lt["[object Boolean]"]=Lt["[object Date]"]=Lt["[object Float32Array]"]=Lt["[object Float64Array]"]=Lt["[object Int8Array]"]=Lt["[object Int16Array]"]=Lt["[object Int32Array]"]=Lt["[object Map]"]=Lt["[object Number]"]=Lt["[object Object]"]=Lt["[object RegExp]"]=Lt["[object Set]"]=Lt["[object String]"]=Lt["[object Symbol]"]=Lt["[object Uint8Array]"]=Lt["[object Uint8ClampedArray]"]=Lt["[object Uint16Array]"]=Lt["[object Uint32Array]"]=!0,Lt["[object Error]"]=Lt[Rt]=Lt["[object WeakMap]"]=!1;var Bt=function e(t,n,r,i,o,a){var s,c=1&n,l=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!q(t))return t;var d=Se(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&kt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!c)return Ke(t,s)}else{var f=yt(t),h=f==Rt||"[object GeneratorFunction]"==f;if(Object(Me.a)(t))return Object(Ye.a)(t,c);if("[object Object]"==f||f==Nt||h&&!o){if(s=l||h?{}:Dt(t),!c)return l?function(e,t){return ke(e,et(e),t)}(t,function(e,t){return e&&ke(t,We(t),e)}(s,t)):function(e,t){return ke(e,Je(e),t)}(t,function(e,t){return e&&ke(t,He(t),e)}(s,t))}else{if(!Lt[f])return o?t:{};s=Mt(t,f,c)}}a||(a=new me);var p=a.get(t);if(p)return p;a.set(t,s),jt(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):Pt(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var m=u?l?rt:nt:l?keysIn:He,v=d?void 0:m(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(v||t,(function(i,o){v&&(i=t[o=i]),ye(s,o,e(i,n,r,o,t,a))})),s},Ft=function(e,t){return Bt(e,5,t="function"==typeof t?t:void 0)},zt=function(e){return P(e)&&1===e.nodeType&&!B(e)},Vt=function(){function e(t,n){h(this,e),this._config={},n&&this.define($t(n)),t&&this._setObjectToTarget(this._config,t)}return m(e,[{key:"set",value:function(e,t){this._setToTarget(this._config,e,t)}},{key:"define",value:function(e,t){this._setToTarget(this._config,e,t,!0)}},{key:"get",value:function(e){return this._getFromSource(this._config,e)}},{key:"names",value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,n=Object.keys(this._config);case 1:if(!(t<n.length)){e.next=8;break}return r=n[t],e.next=5,r;case 5:t++,e.next=1;break;case 8:case"end":return e.stop()}}),e,this)}))},{key:"_setToTarget",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(B(t))this._setObjectToTarget(e,t,r);else{var i=t.split(".");t=i.pop();var o,a=l(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;B(e[s])||(e[s]={}),e=e[s]}}catch(e){a.e(e)}finally{a.f()}if(B(n))return B(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,n,r);r&&void 0!==e[t]||(e[t]=n)}}},{key:"_getFromSource",value:function(e,t){var n=t.split(".");t=n.pop();var r,i=l(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!B(e[o])){e=null;break}e=e[o]}}catch(e){i.e(e)}finally{i.f()}return e?$t(e[t]):void 0}},{key:"_setObjectToTarget",value:function(e,t,n){var r=this;Object.keys(t).forEach((function(i){r._setToTarget(e,i,t[i],n)}))}}]),e}();function $t(e){return Ft(e,Ht)}function Ht(e){return zt(e)?e:void 0}var Ut=function e(t,n){h(this,e),this.source=t,this.name=n,this.path=[],this.stop=function e(){e.called=!0},this.off=function e(){e.called=!0}},qt=new Array(256).fill().map((function(e,t){return("0"+t.toString(16)).slice(-2)}));function Wt(){var e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0;return"e"+qt[e>>0&255]+qt[e>>8&255]+qt[e>>16&255]+qt[e>>24&255]+qt[t>>0&255]+qt[t>>8&255]+qt[t>>16&255]+qt[t>>24&255]+qt[n>>0&255]+qt[n>>8&255]+qt[n>>16&255]+qt[n>>24&255]+qt[r>>0&255]+qt[r>>8&255]+qt[r>>16&255]+qt[r>>24&255]}var Yt={get:function(e){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},Kt=(n(7),n(0)),Gt=Symbol("listeningTo"),Qt=Symbol("emitterId"),Xt={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,e,t,n)},once:function(e,t,n){var r=!1;this.listenTo(this,e,(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=!0,e.off(),t.call.apply(t,[this,e].concat(i)))}),n)},off:function(e,t){this.stopListening(this,e,t)},listenTo:function(e,t,n){var r,i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this[Gt]||(this[Gt]={});var a=this[Gt];Zt(e)||Jt(e);var s=Zt(e);(r=a[s])||(r=a[s]={emitter:e,callbacks:{}}),(i=r.callbacks[t])||(i=r.callbacks[t]=[]),i.push(n),function(e,t){var n=en(e);if(!n[t]){for(var r=t,i=null,o=[];""!==r&&!n[r];)n[r]={callbacks:[],childEvents:[]},o.push(n[r]),i&&n[r].childEvents.push(i),i=r,r=r.substr(0,r.lastIndexOf(":"));if(""!==r){var a,s=l(o);try{for(s.s();!(a=s.n()).done;){a.value.callbacks=n[r].callbacks.slice()}}catch(e){s.e(e)}finally{s.f()}n[r].childEvents.push(i)}}}(e,t);var c,u=tn(e,t),d=Yt.get(o.priority),f={callback:n,priority:d},h=l(u);try{for(h.s();!(c=h.n()).done;){for(var p=c.value,m=!1,v=0;v<p.length;v++)if(p[v].priority<d){p.splice(v,0,f),m=!0;break}m||p.push(f)}}catch(e){h.e(e)}finally{h.f()}},stopListening:function(e,t,n){var r=this[Gt],i=e&&Zt(e),o=r&&i&&r[i],a=o&&t&&o.callbacks[t];if(!(!r||e&&!o||t&&!a))if(n)on(e,t,n);else if(a){for(;n=a.pop();)on(e,t,n);delete o.callbacks[t]}else if(o){for(t in o.callbacks)this.stopListening(e,t);delete r[i]}else{for(i in r)this.stopListening(r[i].emitter);delete this[Gt]}},fire:function(e){try{for(var t=e instanceof Ut?e:new Ut(this,e),n=t.name,r=nn(this,n),i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(t.path.push(this),r){var s=[t].concat(o);r=Array.from(r);for(var c=0;c<r.length&&(r[c].callback.apply(this,s),t.off.called&&(delete t.off.called,on(this,n,r[c].callback)),!t.stop.called);c++);}if(this._delegations){var l=this._delegations.get(n),u=this._delegations.get("*");l&&rn(l,t,o),u&&rn(u,t,o)}return t.return}catch(e){Kt.a.rethrowUnexpectedError(e,this)}},delegate:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{to:function(t,r){e._delegations||(e._delegations=new Map),n.forEach((function(n){var i=e._delegations.get(n);i?i.set(t,r):e._delegations.set(n,new Map([[t,r]]))}))}}},stopDelegating:function(e,t){if(this._delegations)if(e)if(t){var n=this._delegations.get(e);n&&n.delete(t)}else this._delegations.delete(e);else this._delegations.clear()}};function Jt(e,t){e[Qt]||(e[Qt]=t||Wt())}function Zt(e){return e[Qt]}function en(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function tn(e,t){var n=en(e)[t];if(!n)return[];for(var r=[n.callbacks],i=0;i<n.childEvents.length;i++){var o=tn(e,n.childEvents[i]);r=r.concat(o)}return r}function nn(e,t){var n;return e._events&&(n=e._events[t])&&n.callbacks.length?n.callbacks:t.indexOf(":")>-1?nn(e,t.substr(0,t.lastIndexOf(":"))):null}function rn(e,t,n){var r,i=l(e);try{for(i.s();!(r=i.n()).done;){var o=c(r.value,2),a=o[0],s=o[1];s?"function"==typeof s&&(s=s(t.name)):s=t.name;var d=new Ut(t.source,s);d.path=u(t.path),a.fire.apply(a,[d].concat(u(n)))}}catch(e){i.e(e)}finally{i.f()}}function on(e,t,n){var r,i=l(tn(e,t));try{for(i.s();!(r=i.n()).done;)for(var o=r.value,a=0;a<o.length;a++)o[a].callback==n&&(o.splice(a,1),a--)}catch(e){i.e(e)}finally{i.f()}}function an(e){return!(!e||!e[Symbol.iterator])}function sn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach((function(t){Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)).forEach((function(n){if(!(n in e.prototype)){var r=Object.getOwnPropertyDescriptor(t,n);r.enumerable=!1,Object.defineProperty(e.prototype,n,r)}}))}))}var cn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e);var r=an(t);if(r||(n=t),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],r){var i,o=l(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._items.push(a),this._itemMap.set(this._getItemIdBeforeAdding(a),a)}}catch(e){o.e(e)}finally{o.f()}}}return m(e,[{key:"add",value:function(e,t){return this.addMany([e],t)}},{key:"addMany",value:function(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new Kt.a("collection-add-item-invalid-index",this);for(var n=0;n<e.length;n++){var r=e[n],i=this._getItemIdBeforeAdding(r),o=t+n;this._items.splice(o,0,r),this._itemMap.set(i,r),this.fire("add",r,o)}return this.fire("change",{added:e,removed:[],index:t}),this}},{key:"get",value:function(e){var t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new Kt.a("collection-get-invalid-arg",this);t=this._items[e]}return t||null}},{key:"has",value:function(e){if("string"==typeof e)return this._itemMap.has(e);var t=e[this._idProperty];return this._itemMap.has(t)}},{key:"getIndex",value:function(e){var t;return t="string"==typeof e?this._itemMap.get(e):e,this._items.indexOf(t)}},{key:"remove",value:function(e){var t=c(this._remove(e),2),n=t[0],r=t[1];return this.fire("change",{added:[],removed:[n],index:r}),n}},{key:"map",value:function(e,t){return this._items.map(e,t)}},{key:"find",value:function(e,t){return this._items.find(e,t)}},{key:"filter",value:function(e,t){return this._items.filter(e,t)}},{key:"clear",value:function(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);for(var e=Array.from(this._items);this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}},{key:"bindTo",value:function(e){var t=this;if(this._bindToCollection)throw new Kt.a("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:function(e){t._setUpBindToBinding((function(t){return new e(t)}))},using:function(e){"function"==typeof e?t._setUpBindToBinding((function(t){return e(t)})):t._setUpBindToBinding((function(t){return t[e]}))}}}},{key:"_setUpBindToBinding",value:function(e){var t,n=this,r=this._bindToCollection,i=function(t,i,o){var a=r._bindToCollection==n,s=r._bindToInternalToExternalMap.get(i);if(a&&s)n._bindToExternalToInternalMap.set(i,s),n._bindToInternalToExternalMap.set(s,i);else{var c=e(i);if(!c)return void n._skippedIndexesFromExternal.push(o);var u,d=o,f=l(n._skippedIndexesFromExternal);try{for(f.s();!(u=f.n()).done;){o>u.value&&d--}}catch(e){f.e(e)}finally{f.f()}var h,p=l(r._skippedIndexesFromExternal);try{for(p.s();!(h=p.n()).done;){d>=h.value&&d++}}catch(e){p.e(e)}finally{p.f()}n._bindToExternalToInternalMap.set(i,c),n._bindToInternalToExternalMap.set(c,i),n.add(c,d);for(var m=0;m<r._skippedIndexesFromExternal.length;m++)d<=r._skippedIndexesFromExternal[m]&&r._skippedIndexesFromExternal[m]++}},o=l(r);try{for(o.s();!(t=o.n()).done;){var a=t.value;i(0,a,r.getIndex(a))}}catch(e){o.e(e)}finally{o.f()}this.listenTo(r,"add",i),this.listenTo(r,"remove",(function(e,t,r){var i=n._bindToExternalToInternalMap.get(t);i&&n.remove(i),n._skippedIndexesFromExternal=n._skippedIndexesFromExternal.reduce((function(e,t){return r<t&&e.push(t-1),r>t&&e.push(t),e}),[])}))}},{key:"_getItemIdBeforeAdding",value:function(e){var t,n=this._idProperty;if(n in e){if("string"!=typeof(t=e[n]))throw new Kt.a("collection-add-invalid-id",this);if(this.get(t))throw new Kt.a("collection-add-item-already-exists",this)}else e[n]=t=Wt();return t}},{key:"_remove",value:function(e){var t,n,r,i=!1,o=this._idProperty;if("string"==typeof e?(n=e,i=!(r=this._itemMap.get(n)),r&&(t=this._items.indexOf(r))):"number"==typeof e?(t=e,i=!(r=this._items[t]),r&&(n=r[o])):(n=(r=e)[o],i=-1==(t=this._items.indexOf(r))||!this._itemMap.get(n)),i)throw new Kt.a("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(n);var a=this._bindToInternalToExternalMap.get(r);return this._bindToInternalToExternalMap.delete(r),this._bindToExternalToInternalMap.delete(a),this.fire("remove",r,t),[r,t]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"length",get:function(){return this._items.length}},{key:"first",get:function(){return this._items[0]||null}},{key:"last",get:function(){return this._items[this.length-1]||null}}]),e}();sn(cn,Xt);var ln=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];h(this,e),this._context=t,this._plugins=new Map,this._availablePlugins=new Map;var i,o=l(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;a.pluginName&&this._availablePlugins.set(a.pluginName,a)}}catch(e){o.e(e)}finally{o.f()}this._contextPlugins=new Map;var s,u=l(r);try{for(u.s();!(s=u.n()).done;){var d=c(s.value,2),f=d[0],p=d[1];this._contextPlugins.set(f,p),this._contextPlugins.set(p,f),f.pluginName&&this._availablePlugins.set(f.pluginName,f)}}catch(e){u.e(e)}finally{u.f()}}return m(e,[{key:Symbol.iterator,value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l(this._plugins),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=11;break}if(r=n.value,e.t0="function"==typeof r[0],!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"get",value:function(e){var t=this._plugins.get(e);if(!t){var n=e;throw"function"==typeof e&&(n=e.pluginName||e.name),new Kt.a("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return t}},{key:"has",value:function(e){return this._plugins.has(e)}},{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this,r=this._context,i=new Set,o=[],a=p(e),s=p(t),c=function(e){var t,n=[],r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;h(i)||n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n.length?n:null}(e);if(c){var u="plugincollection-plugin-not-found";return Object(Kt.b)(u,{plugins:c}),Promise.reject(new Kt.a(u,r,{plugins:c}))}return Promise.all(a.map(d)).then((function(){return f(o,"init")})).then((function(){return f(o,"afterInit")})).then((function(){return o}));function d(e){if(!s.includes(e)&&!n._plugins.has(e)&&!i.has(e))return function(e){return new Promise((function(a){i.add(e),e.requires&&e.requires.forEach((function(n){var i=h(n);if(e.isContextPlugin&&!i.isContextPlugin)throw new Kt.a("plugincollection-context-required",null,{plugin:i.name,requiredBy:e.name});if(t.includes(i))throw new Kt.a("plugincollection-required",r,{plugin:i.name,requiredBy:e.name});d(i)}));var s=n._contextPlugins.get(e)||new e(r);n._add(e,s),o.push(s),a()}))}(e).catch((function(t){throw Object(Kt.b)("plugincollection-load",{plugin:e}),t}))}function f(e,t){return e.reduce((function(e,r){return r[t]?n._contextPlugins.has(r)?e:e.then(r[t].bind(r)):e}),Promise.resolve())}function h(e){return"function"==typeof e?e:n._availablePlugins.get(e)}function p(e){return e.map((function(e){return h(e)})).filter((function(e){return!!e}))}}},{key:"destroy",value:function(){var e,t=[],n=l(this);try{for(n.s();!(e=n.n()).done;){var r=c(e.value,2)[1];"function"!=typeof r.destroy||this._contextPlugins.has(r)||t.push(r.destroy())}}catch(e){n.e(e)}finally{n.f()}return Promise.all(t)}},{key:"_add",value:function(e,t){this._plugins.set(e,t);var n=e.pluginName;if(n){if(this._plugins.has(n))throw new Kt.a("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}]),e}();function un(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof n)throw new Kt.a("translation-service-quantity-not-a-number",null,{quantity:n});var r=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===r&&(e=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);var i=t.id||t.string;if(0===r||!function(e,t){return!!window.CKEDITOR_TRANSLATIONS[e]&&!!window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,i))return 1!==n?t.plural:t.string;var o=window.CKEDITOR_TRANSLATIONS[e].dictionary,a=window.CKEDITOR_TRANSLATIONS[e].getPluralForm||function(e){return 1===e?0:1};if("string"==typeof o[i])return o[i];var s=Number(a(n));return o[i][s]}sn(ln,Xt),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});var dn=["ar","fa","he","ku","ug"],fn=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,e),this.uiLanguage=n.uiLanguage||"en",this.contentLanguage=n.contentLanguage||this.uiLanguage,this.uiLanguageDirection=hn(this.uiLanguage),this.contentLanguageDirection=hn(this.contentLanguage),this.t=function(e,n){return t._t(e,n)}}return m(e,[{key:"_t",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(t)||(t=[t]),"string"==typeof e&&(e={string:e});var n=e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,(function(e,n){return n<t.length?t[n]:e}))}(un(this.uiLanguage,e,n),t)}},{key:"language",get:function(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}}]),e}();function hn(e){return dn.includes(e)?"rtl":"ltr"}var pn=function(){function e(t){h(this,e),this.config=new Vt(t,this.constructor.defaultConfig);var n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new ln(this,n);var r=this.config.get("language")||{};this.locale=new fn({uiLanguage:"string"==typeof r?r:r.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new cn,this._contextOwner=null}return m(e,[{key:"initPlugins",value:function(){var e,t=this.config.get("plugins")||[],n=l(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if("function"!=typeof r)throw new Kt.a("context-initplugins-constructor-only",null,{Plugin:r});if(!0!==r.isContextPlugin)throw new Kt.a("context-initplugins-invalid-plugin",null,{Plugin:r})}}catch(e){n.e(e)}finally{n.f()}return this.plugins.init(t)}},{key:"destroy",value:function(){var e=this;return Promise.all(Array.from(this.editors,(function(e){return e.destroy()}))).then((function(){return e.plugins.destroy()}))}},{key:"_addEditor",value:function(e,t){if(this._contextOwner)throw new Kt.a("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}},{key:"_removeEditor",value:function(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}},{key:"_getEditorConfig",value:function(){var e,t={},n=l(this.config.names());try{for(n.s();!(e=n.n()).done;){var r=e.value;["plugins","removePlugins","extraPlugins"].includes(r)||(t[r]=this.config.get(r))}}catch(e){n.e(e)}finally{n.f()}return t}}],[{key:"create",value:function(e){var t=this;return new Promise((function(n){var r=new t(e);n(r.initPlugins().then((function(){return r})))}))}}]),e}();function mn(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e[r]!=t[r])return r;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}var vn=function(e){return Bt(e,4)},gn=function(){function e(t){h(this,e),this.document=t,this.parent=null}return m(e,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.index),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),r=e.getAncestors(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),r=mn(t,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return t[r]<n[r]}}},{key:"isAfter",value:function(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_fireChange",value:function(e,t){this.fire("change:"+e,t),this.parent&&this.parent._fireChange(e,t)}},{key:"toJSON",value:function(){var e=vn(this);return delete e.parent,e}},{key:"is",value:function(e){return"node"===e||"view:node"===e}},{key:"index",get:function(){var e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new Kt.a("view-node-not-found-in-parent",this);return e}},{key:"nextSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e+1)||null}},{key:"previousSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e-1)||null}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}}]),e}();sn(gn,Xt);var bn=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e))._textData=r,i}return m(n,[{key:"is",value:function(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e}},{key:"isSimilar",value:function(e){return e instanceof n&&(this===e||this.data===e.data)}},{key:"_clone",value:function(){return new n(this.document,this.data)}},{key:"data",get:function(){return this._textData}},{key:"_data",get:function(){return this.data},set:function(e){this._fireChange("text",this),this._textData=e}}]),n}(gn),yn=function(){function e(t,n,r){if(h(this,e),this.textNode=t,n<0||n>t.data.length)throw new Kt.a("view-textproxy-wrong-offsetintext",this);if(r<0||n+r>t.data.length)throw new Kt.a("view-textproxy-wrong-length",this);this.data=t.data.substring(n,n+r),this.offsetInText=n}return m(e,[{key:"is",value:function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this.textNode:this.parent;null!==n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"offsetSize",get:function(){return this.data.length}},{key:"isPartial",get:function(){return this.data.length!==this.textNode.data.length}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"document",get:function(){return this.textNode.document}}]),e}();function kn(e){return an(e)?new Map(e):function(e){var t=new Map;for(var n in e)t.set(n,e[n]);return t}(e)}var wn=function(){function e(){h(this,e),this._patterns=[],this.add.apply(this,arguments)}return m(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];("string"==typeof o||o instanceof RegExp)&&(o={name:o}),o.classes&&("string"==typeof o.classes||o.classes instanceof RegExp)&&(o.classes=[o.classes]),this._patterns.push(o)}}},{key:"match",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o,a=i[r],s=l(this._patterns);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=_n(a,c);if(u)return{element:a,pattern:c,match:u}}}catch(e){s.e(e)}finally{s.f()}}return null}},{key:"matchAll",value:function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a,s=o[i],c=l(this._patterns);try{for(c.s();!(a=c.n()).done;){var u=a.value,d=_n(s,u);d&&e.push({element:s,pattern:u,match:d})}}catch(e){c.e(e)}finally{c.f()}}return e.length>0?e:null}},{key:"getElementName",value:function(){if(1!==this._patterns.length)return null;var e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}]),e}();function _n(e,t){if("function"==typeof t)return t(e);var n={};return t.name&&(n.name=function(e,t){return e instanceof RegExp?e.test(t):e===t}(t.name,e.name),!n.name)||t.attributes&&(n.attributes=function(e,t){var n=[];for(var r in e){var i=e[r];if(!t.hasAttribute(r))return null;var o=t.getAttribute(r);if(!0===i)n.push(r);else if(i instanceof RegExp){if(!i.test(o))return null;n.push(r)}else{if(o!==i)return null;n.push(r)}}return n}(t.attributes,e),!n.attributes)?null:!(t.classes&&(n.classes=function(e,t){var n,r=[],i=l(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o instanceof RegExp){var a,s=l(t.getClassNames());try{for(s.s();!(a=s.n()).done;){var c=a.value;o.test(c)&&r.push(c)}}catch(e){s.e(e)}finally{s.f()}if(0===r.length)return null}else{if(!t.hasClass(o))return null;r.push(o)}}}catch(e){i.e(e)}finally{i.f()}return r}(t.classes,e),!n.classes))&&!(t.styles&&(n.styles=function(e,t){var n=[];for(var r in e){var i=e[r];if(!t.hasStyle(r))return null;var o=t.getStyle(r);if(i instanceof RegExp){if(!i.test(o))return null;n.push(r)}else{if(o!==i)return null;n.push(r)}}return n}(t.styles,e),!n.styles))&&n}var Cn=function(e){return"symbol"==x(e)||P(e)&&"[object Symbol]"==T(e)},An=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xn=/^\w*$/;function Sn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Sn.Cache||he),n}Sn.Cache=he;var Mn=Sn,En=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tn=/\\(\\)?/g,Dn=function(e){var t=Mn((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(En,(function(e,n,r,i){t.push(r?i.replace(Tn,"$1"):n||e)})),t}),(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}(),On=p?p.prototype:void 0,Pn=On?On.toString:void 0,In=function e(t){if("string"==typeof t)return t;if(Se(t))return function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,e)+"";if(Cn(t))return Pn?Pn.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},jn=function(e){return null==e?"":In(e)},Nn=function(e,t){return Se(e)?e:function(e,t){if(Se(e))return!1;var n=x(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Cn(e))||xn.test(e)||!An.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:Dn(jn(e))},Rn=function(e){if("string"==typeof e||Cn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Ln=function(e,t){for(var n=0,r=(t=Nn(t,e)).length;null!=e&&n<r;)e=e[Rn(t[n++])];return n&&n==r?e:void 0},Bn=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},Fn=function(e,t){return null==(e=function(e,t){return t.length<2?e:Ln(e,Bn(t,0,-1))}(e,t=Nn(t,e)))||delete e[Rn(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]},zn=function(e,t,n){var r=null==e?void 0:Ln(e,t);return void 0===r?n:r},Vn=function(e,t,n){(void 0!==n&&!F(e[t],n)||void 0===n&&!(t in e))&&ge(e,t,n)},$n=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e},Hn=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Un=function(e,t,n,r,i,o,a){var s=Hn(e,n),c=Hn(t,n),l=a.get(c);if(l)Vn(e,n,l);else{var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var f=Se(c),h=!f&&Object(Me.a)(c),p=!f&&!h&&Ne(c);u=c,f||h||p?Se(s)?u=s:function(e){return P(e)&&$e(e)}(s)?u=Ke(s):h?(d=!1,u=Object(Ye.a)(c,!0)):p?(d=!1,u=St(c,!0)):u=[]:B(c)||xe(c)?(u=s,xe(s)?u=function(e){return ke(e,We(e))}(s):q(s)&&!W(s)||(u=Dt(c))):d=!1}d&&(a.set(c,u),i(u,c,r,o,a),a.delete(c)),Vn(e,n,u)}},qn=function(e){return e},Wn=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Yn=Math.max,Kn=function(e){return function(){return e}},Gn=ve?function(e,t){return ve(e,"toString",{configurable:!0,enumerable:!1,value:Kn(t),writable:!0})}:qn,Qn=Date.now,Xn=function(e){var t=0,n=0;return function(){var r=Qn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Gn),Jn=function(e,t){return Xn(function(e,t,n){return t=Yn(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Yn(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Wn(e,this,s)}}(e,t,qn),e+"")},Zn=function(e){return Jn((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!q(n))return!1;var r=x(t);return!!("number"==r?$e(n)&&Te(t,n.length):"string"==r&&t in n)&&F(n[t],e)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))},er=Zn((function(e,t,n){!function e(t,n,r,i,o){t!==n&&$n(n,(function(a,s){if(o||(o=new me),q(a))Un(t,n,s,r,e,i,o);else{var c=i?i(Hn(t,s),a,s+"",t,n,o):void 0;void 0===c&&(c=a),Vn(t,s,c)}}),We)}(e,t,n)})),tr=function(e,t,n){return null==e?e:function(e,t,n,r){if(!q(e))return e;for(var i=-1,o=(t=Nn(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var c=Rn(t[i]),l=n;if(i!=a){var u=s[c];void 0===(l=r?r(u,c,s):void 0)&&(l=q(u)?u:Te(t[i+1])?[]:{})}ye(s,c,l),s=s[c]}return e}(e,t,n)},nr=function(){function e(t){h(this,e),this._styles={},this._styleProcessor=t}return m(e,[{key:"setTo",value:function(e){this.clear();for(var t=0,n=Array.from(function(e){var t=null,n=0,r=0,i=null,o=new Map;if(""===e)return o;";"!=e.charAt(e.length-1)&&(e+=";");for(var a=0;a<e.length;a++){var s=e.charAt(a);if(null===t)switch(s){case":":i||(i=e.substr(n,a-n),r=a+1);break;case'"':case"'":t=s;break;case";":var c=e.substr(r,a-r);i&&o.set(i.trim(),c.trim()),i=null,n=a+1}else s===t&&(t=null)}return o}(e).entries());t<n.length;t++){var r=c(n[t],2),i=r[0],o=r[1];this._styleProcessor.toNormalizedForm(i,o,this._styles)}}},{key:"has",value:function(e){if(this.isEmpty)return!1;var t=this._styleProcessor.getReducedForm(e,this._styles).find((function(t){return c(t,1)[0]===e}));return Array.isArray(t)}},{key:"set",value:function(e,t){if(q(e))for(var n=0,r=Object.entries(e);n<r.length;n++){var i=c(r[n],2),o=i[0],a=i[1];this._styleProcessor.toNormalizedForm(o,a,this._styles)}else this._styleProcessor.toNormalizedForm(e,t,this._styles)}},{key:"remove",value:function(e){var t=ir(e);(function(e,t){null==e||Fn(e,t)})(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}},{key:"getNormalized",value:function(e){return this._styleProcessor.getNormalized(e,this._styles)}},{key:"toString",value:function(){return this.isEmpty?"":this._getStylesEntries().map((function(e){return e.join(":")})).sort().join(";")+";"}},{key:"getAsString",value:function(e){if(!this.isEmpty){if(this._styles[e]&&!q(this._styles[e]))return this._styles[e];var t=this._styleProcessor.getReducedForm(e,this._styles).find((function(t){return c(t,1)[0]===e}));return Array.isArray(t)?t[1]:void 0}}},{key:"getStyleNames",value:function(){return this.isEmpty?[]:this._getStylesEntries().map((function(e){return c(e,1)[0]}))}},{key:"clear",value:function(){this._styles={}}},{key:"_getStylesEntries",value:function(){for(var e=[],t=0,n=Object.keys(this._styles);t<n.length;t++){var r=n[t];e.push.apply(e,u(this._styleProcessor.getReducedForm(r,this._styles)))}return e}},{key:"_cleanEmptyObjectsOnPath",value:function(e){var t=e.split(".");if(t.length>1){var n=t.splice(0,t.length-1).join("."),r=zn(this._styles,n);r&&!Array.from(Object.keys(r)).length&&this.remove(n)}}},{key:"isEmpty",get:function(){var e=Object.entries(this._styles);return!Array.from(e).length}},{key:"size",get:function(){return this.isEmpty?0:this.getStyleNames().length}}]),e}(),rr=function(){function e(){h(this,e),this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}return m(e,[{key:"toNormalizedForm",value:function(e,t,n){if(q(t))or(n,ir(e),t);else if(this._normalizers.has(e)){var r=this._normalizers.get(e)(t);or(n,r.path,r.value)}else or(n,e,t)}},{key:"getNormalized",value:function(e,t){if(!e)return er({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){var n=this._extractors.get(e);if("string"==typeof n)return zn(t,n);var r=n(e,t);if(r)return r}return zn(t,ir(e))}},{key:"getReducedForm",value:function(e,t){var n=this.getNormalized(e,t);return void 0===n?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}},{key:"getRelatedStyles",value:function(e){return this._consumables.get(e)||[]}},{key:"setNormalizer",value:function(e,t){this._normalizers.set(e,t)}},{key:"setExtractor",value:function(e,t){this._extractors.set(e,t)}},{key:"setReducer",value:function(e,t){this._reducers.set(e,t)}},{key:"setStyleRelation",value:function(e,t){this._mapStyleNames(e,t);var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._mapStyleNames(i,[e])}}catch(e){r.e(e)}finally{r.f()}}},{key:"_mapStyleNames",value:function(e,t){var n;this._consumables.has(e)||this._consumables.set(e,[]),(n=this._consumables.get(e)).push.apply(n,u(t))}}]),e}();function ir(e){return e.replace("-",".")}function or(e,t,n){var r=n;q(n)&&(r=er({},zn(e,t),n)),tr(e,t,r)}var ar=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;if(h(this,n),(a=t.call(this,e)).name=r,a._attrs=function(e){var t,n=l(e=kn(e));try{for(n.s();!(t=n.n()).done;){var r=c(t.value,2),i=r[0],o=r[1];null===o?e.delete(i):"string"!=typeof o&&e.set(i,String(o))}}catch(e){n.e(e)}finally{n.f()}return e}(i),a._children=[],o&&a._insertChild(0,o),a._classes=new Set,a._attrs.has("class")){var s=a._attrs.get("class");sr(a._classes,s),a._attrs.delete("class")}return a._styles=new nr(a.document.stylesProcessor),a._attrs.has("style")&&(a._styles.setTo(a._attrs.get("style")),a._attrs.delete("style")),a._customProperties=new Map,b(a)}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getAttributeKeys",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this._classes.size>0,!e.t0){e.next=4;break}return e.next=4,"class";case 4:if(e.t1=this._styles.isEmpty,e.t1){e.next=8;break}return e.next=8,"style";case 8:return e.delegateYield(this._attrs.keys(),"t2",9);case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttributes",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._attrs.entries(),"t0",1);case 1:if(e.t1=this._classes.size>0,!e.t1){e.next=5;break}return e.next=5,["class",this.getAttribute("class")];case 5:if(e.t2=this._styles.isEmpty,e.t2){e.next=9;break}return e.next=9,["style",this.getAttribute("style")];case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttribute",value:function(e){if("class"==e)return this._classes.size>0?u(this._classes).join(" "):void 0;if("style"==e){var t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(e)}},{key:"hasAttribute",value:function(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}},{key:"isSimilar",value:function(e){if(!(e instanceof n))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;var t,r=l(this._attrs);try{for(r.s();!(t=r.n()).done;){var i=c(t.value,2),o=i[0],a=i[1];if(!e._attrs.has(o)||e._attrs.get(o)!==a)return!1}}catch(e){r.e(e)}finally{r.f()}var s,u=l(this._classes);try{for(u.s();!(s=u.n()).done;){var d=s.value;if(!e._classes.has(d))return!1}}catch(e){u.e(e)}finally{u.f()}var f,h=l(this._styles.getStyleNames());try{for(h.s();!(f=h.n()).done;){var p=f.value;if(!e._styles.has(p)||e._styles.getAsString(p)!==this._styles.getAsString(p))return!1}}catch(e){h.e(e)}finally{h.f()}return!0}},{key:"hasClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];if(!this._classes.has(o))return!1}return!0}},{key:"getClassNames",value:function(){return this._classes.keys()}},{key:"getStyle",value:function(e){return this._styles.getAsString(e)}},{key:"getNormalizedStyle",value:function(e){return this._styles.getNormalized(e)}},{key:"getStyleNames",value:function(){return this._styles.getStyleNames()}},{key:"hasStyle",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];if(!this._styles.has(o))return!1}return!0}},{key:"findAncestor",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=w(wn,t),i=this.parent;i;){if(r.match(i))return i;i=i.parent}return null}},{key:"getCustomProperty",value:function(e){return this._customProperties.get(e)}},{key:"getCustomProperties",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._customProperties.entries(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getIdentity",value:function(){var e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),n=Array.from(this._attrs).map((function(e){return"".concat(e[0],'="').concat(e[1],'"')})).sort().join(" ");return this.name+(""==e?"":' class="'.concat(e,'"'))+(t?' style="'.concat(t,'"'):"")+(""==n?"":" "+n)}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[];if(e){var n,r=l(this.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;t.push(i._clone(e))}}catch(e){r.e(e)}finally{r.f()}}var o=new this.constructor(this.document,this.name,this._attrs,t);return o._classes=new Set(this._classes),o._styles.set(this._styles.getNormalized()),o._customProperties=new Map(this._customProperties),o.getFillerOffset=this.getFillerOffset,o}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,r=0,i=l(function(e,t){return"string"==typeof t?[new bn(e,t)]:(an(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new bn(e,t):t instanceof yn?new bn(e,t.data):t})))}(this.document,t));try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this,o.document=this.document,this._children.splice(e,0,o),e++,r++}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}},{key:"_setAttribute",value:function(e,t){t=String(t),this._fireChange("attributes",this),"class"==e?sr(this._classes,t):"style"==e?this._styles.setTo(t):this._attrs.set(e,t)}},{key:"_removeAttribute",value:function(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}},{key:"_addClass",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._classes.add(e)}))}},{key:"_removeClass",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._classes.delete(e)}))}},{key:"_setStyle",value:function(e,t){this._fireChange("attributes",this),this._styles.set(e,t)}},{key:"_removeStyle",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._styles.remove(e)}))}},{key:"_setCustomProperty",value:function(e,t){this._customProperties.set(e,t)}},{key:"_removeCustomProperty",value:function(e){return this._customProperties.delete(e)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this._children.length}}]),n}(gn);function sr(e,t){var n=t.split(/\s+/);e.clear(),n.forEach((function(t){return e.add(t)}))}var cr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=lr,a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}}]),n}(ar);function lr(){var e=u(this.getChildren()),t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;var n,r=l(e);try{for(r.s();!(n=r.n()).done;){if(!n.value.is("uiElement"))return null}}catch(e){r.e(e)}finally{r.f()}return this.childCount}var ur=Zn((function(e,t){ke(t,We(t),e)})),dr=Symbol("observableProperties"),fr=Symbol("boundObservables"),hr=Symbol("boundProperties"),pr={set:function(e,t){var n=this;if(q(e))Object.keys(e).forEach((function(t){n.set(t,e[t])}),this);else{vr(this);var r=this[dr];if(e in this&&!r.has(e))throw new Kt.a("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:function(){return r.get(e)},set:function(t){var n=r.get(e),i=this.fire("set:"+e,e,t,n);void 0===i&&(i=t),n===i&&r.has(e)||(r.set(e,i),this.fire("change:"+e,e,i,n))}}),this[e]=t}},bind:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length||!yr(n))throw new Kt.a("observable-bind-wrong-properties",this);if(new Set(n).size!==n.length)throw new Kt.a("observable-bind-duplicate-properties",this);vr(this);var i=this[hr];n.forEach((function(t){if(i.has(t))throw new Kt.a("observable-bind-rebind",e)}));var o=new Map;return n.forEach((function(e){var t={property:e,to:[]};i.set(e,t),o.set(e,t)})),{to:gr,toMany:br,_observable:this,_bindProperties:n,_to:[],_bindings:o}},unbind:function(){var e=this;if(this[dr]){for(var t=this[hr],n=this[fr],r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(i.length){if(!yr(i))throw new Kt.a("observable-unbind-wrong-properties",this);i.forEach((function(r){var i,o,a,s,c=t.get(r);c&&(c.to.forEach((function(t){i=t[0],o=t[1],a=n.get(i),(s=a[o]).delete(c),s.size||delete a[o],Object.keys(a).length||(n.delete(i),e.stopListening(i,"change"))})),t.delete(r))}))}else n.forEach((function(t,n){e.stopListening(n,"change")})),n.clear(),t.clear()}},decorate:function(e){var t=this,n=this[e];if(!n)throw new Kt.a("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,(function(e,r){e.return=n.apply(t,r)})),this[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.fire(e,n)}}};ur(pr,Xt);var mr=pr;function vr(e){e[dr]||(Object.defineProperty(e,dr,{value:new Map}),Object.defineProperty(e,fr,{value:new Map}),Object.defineProperty(e,hr,{value:new Map}))}function gr(){var e,t=this,n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)throw new Kt.a("observable-bind-to-parse-error",null);var r,i={to:[]};return"function"==typeof t[t.length-1]&&(i.callback=t.pop()),t.forEach((function(e){if("string"==typeof e)r.properties.push(e);else{if("object"!=x(e))throw new Kt.a("observable-bind-to-parse-error",null);r={observable:e,properties:[]},i.to.push(r)}})),i}.apply(void 0,arguments),r=Array.from(this._bindings.keys()),i=r.length;if(!n.callback&&n.to.length>1)throw new Kt.a("observable-bind-to-no-callback",this);if(i>1&&n.callback)throw new Kt.a("observable-bind-to-extra-callback",this);n.to.forEach((function(e){if(e.properties.length&&e.properties.length!==i)throw new Kt.a("observable-bind-to-properties-length",t);e.properties.length||(e.properties=t._bindProperties)})),this._to=n.to,n.callback&&(this._bindings.get(r[0]).callback=n.callback),e=this._observable,this._to.forEach((function(t){var n,r=e[fr];r.get(t.observable)||e.listenTo(t.observable,"change",(function(i,o){(n=r.get(t.observable)[o])&&n.forEach((function(t){kr(e,t.property)}))}))})),function(e){var t;e._bindings.forEach((function(n,r){e._to.forEach((function(i){t=i.properties[n.callback?0:e._bindProperties.indexOf(r)],n.to.push([i.observable,t]),function(e,t,n,r){var i=e[fr],o=i.get(n),a=o||{};a[r]||(a[r]=new Set),a[r].add(t),o||i.set(n,a)}(e._observable,n,i.observable,t)}))}))}(this),this._bindProperties.forEach((function(e){kr(t._observable,e)}))}function br(e,t,n){if(this._bindings.size>1)throw new Kt.a("observable-bind-to-many-not-one-binding",this);this.to.apply(this,u(function(e,t){var n=e.map((function(e){return[e,t]}));return Array.prototype.concat.apply([],n)}(e,t)).concat([n]))}function yr(e){return e.every((function(e){return"string"==typeof e}))}function kr(e,t){var n,r=e[hr].get(t);r.callback?n=r.callback.apply(e,r.to.map((function(e){return e[0][e[1]]}))):n=(n=r.to[0])[0][n[1]],Object.prototype.hasOwnProperty.call(e,t)?e[t]=n:e.set(t,n)}var wr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).set("isReadOnly",!1),a.set("isFocused",!1),a.bind("isReadOnly").to(e),a.bind("isFocused").to(e,"isFocused",(function(t){return t&&e.selection.editableElement==y(a)})),a.listenTo(e.selection,"change",(function(){a.isFocused=e.isFocused&&e.selection.editableElement==y(a)})),a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"destroy",value:function(){this.stopListening()}}]),n}(cr);sn(wr,mr);var _r=Symbol("rootName"),Cr=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e,r)).rootName="main",i}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"rootName",get:function(){return this.getCustomProperty(_r)},set:function(e){this._setCustomProperty(_r,e)}},{key:"_name",set:function(e){this.name=e}}]),n}(wr),Ar=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(h(this,e),!t.boundaries&&!t.startPosition)throw new Kt.a("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new Kt.a("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this.position=xr._createAt(t.startPosition):this.position=xr._createAt(t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",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}return m(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,r;do{var i;r=this.position,t=(i=this.next()).done,n=i.value}while(!t&&e(n));t||(this.position=r)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e,t=this.position.clone(),n=this.position,r=t.parent;if(null===r.parent&&t.offset===r.childCount)return{done:!0};if(r===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};if(r instanceof bn){if(t.isAtEnd)return this.position=xr._createAfter(r),this._next();e=r.data[t.offset]}else e=r.getChild(t.offset);if(e instanceof ar)return this.shallow?t.offset++:t=new xr(e,0),this.position=t,this._formatReturnValue("elementStart",e,n,t,1);if(e instanceof bn){if(this.singleCharacters)return t=new xr(e,0),this.position=t,this._next();var i,o=e.data.length;return e==this._boundaryEndParent?(o=this.boundaries.end.offset,i=new yn(e,0,o),t=xr._createAfter(i)):(i=new yn(e,0,e.data.length),t.offset++),this.position=t,this._formatReturnValue("text",i,n,t,o)}if("string"==typeof e){var a;a=this.singleCharacters?1:(r===this._boundaryEndParent?this.boundaries.end.offset:r.data.length)-t.offset;var s=new yn(r,t.offset,a);return t.offset+=a,this.position=t,this._formatReturnValue("text",s,n,t,a)}return t=xr._createAfter(r),this.position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",r,n,t)}},{key:"_previous",value:function(){var e,t=this.position.clone(),n=this.position,r=t.parent;if(null===r.parent&&0===t.offset)return{done:!0};if(r==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};if(r instanceof bn){if(t.isAtStart)return this.position=xr._createBefore(r),this._previous();e=r.data[t.offset-1]}else e=r.getChild(t.offset-1);if(e instanceof ar)return this.shallow?(t.offset--,this.position=t,this._formatReturnValue("elementStart",e,n,t,1)):(t=new xr(e,e.childCount),this.position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",e,n,t));if(e instanceof bn){if(this.singleCharacters)return t=new xr(e,e.data.length),this.position=t,this._previous();var i,o=e.data.length;if(e==this._boundaryStartParent){var a=this.boundaries.start.offset;o=(i=new yn(e,a,e.data.length-a)).data.length,t=xr._createBefore(i)}else i=new yn(e,0,e.data.length),t.offset--;return this.position=t,this._formatReturnValue("text",i,n,t,o)}if("string"==typeof e){var s;if(this.singleCharacters)s=1;else{var c=r===this._boundaryStartParent?this.boundaries.start.offset:0;s=t.offset-c}t.offset-=s;var l=new yn(r,t.offset,s);return this.position=t,this._formatReturnValue("text",l,n,t,s)}return t=xr._createBefore(r),this.position=t,this._formatReturnValue("elementStart",r,n,t,1)}},{key:"_formatReturnValue",value:function(e,t,n,r,i){return t instanceof yn&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=xr._createAfter(t.textNode):(r=xr._createAfter(t.textNode),this.position=r)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=xr._createBefore(t.textNode):(r=xr._createBefore(t.textNode),this.position=r))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:i}}}}]),e}(),xr=function(){function e(t,n){h(this,e),this.parent=t,this.offset=n}return m(e,[{key:"getShiftedBy",value:function(t){var n=e._createAt(this),r=n.offset+t;return n.offset=r<0?0:r,n}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new Ar(t);return n.skip(e),n.position}},{key:"getAncestors",value:function(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),r=0;t[r]==n[r]&&t[r];)r++;return 0===r?null:t[r-1]}},{key:"is",value:function(e){return"position"===e||"view:position"===e}},{key:"isEqual",value:function(e){return this.parent==e.parent&&this.offset==e.offset}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"compareWith",value:function(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";var t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);var r=mn(t,n);switch(r){case"prefix":return"before";case"extension":return"after";default:return t[r]<n[r]?"before":"after"}}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.startPosition=this,new Ar(e)}},{key:"clone",value:function(){return new e(this.parent,this.offset)}},{key:"nodeAfter",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}},{key:"nodeBefore",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){var e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}},{key:"root",get:function(){return this.parent.root}},{key:"editableElement",get:function(){for(var e=this.parent;!(e instanceof wr);){if(!e.parent)return null;e=e.parent}return e}}],[{key:"_createAt",value:function(t,n){if(t instanceof e)return new this(t.parent,t.offset);var r=t;if("end"==n)n=r.is("$text")?r.data.length:r.childCount;else{if("before"==n)return this._createBefore(r);if("after"==n)return this._createAfter(r);if(0!==n&&!n)throw new Kt.a("view-createpositionat-offset-required",r)}return new e(r,n)}},{key:"_createAfter",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new Kt.a("view-position-after-root",t,{root:t});return new e(t.parent,t.index+1)}},{key:"_createBefore",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText);if(!t.parent)throw new Kt.a("view-position-before-root",t,{root:t});return new e(t.parent,t.index)}}]),e}(),Sr=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;h(this,e),this.start=t.clone(),this.end=n?n.clone():t.clone()}return m(e,[{key:Symbol.iterator,value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(new Ar({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getEnlarged",value:function(){var t=this.start.getLastMatchingPosition(Mr,{direction:"backward"}),n=this.end.getLastMatchingPosition(Mr);return t.parent.is("$text")&&t.isAtStart&&(t=xr._createBefore(t.parent)),n.parent.is("$text")&&n.isAtEnd&&(n=xr._createAfter(n.parent)),new e(t,n)}},{key:"getTrimmed",value:function(){var t=this.start.getLastMatchingPosition(Mr);if(t.isAfter(this.end)||t.isEqual(this.end))return new e(t,t);var n=this.end.getLastMatchingPosition(Mr,{direction:"backward"}),r=t.nodeAfter,i=n.nodeBefore;return r&&r.is("$text")&&(t=new xr(r,0)),i&&i.is("$text")&&(n=new xr(i,i.data.length)),new e(t,n)}},{key:"isEqual",value:function(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}},{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(this.clone()),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,r=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(r=t.end),new e(n,r)}return null}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new Ar(e)}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}},{key:"clone",value:function(){return new e(this.start,this.end)}},{key:"getItems",value:o.a.mark((function e(){var t,n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,t.ignoreElementEnd=!0,n=new Ar(t),r=l(n),e.prev=4,r.s();case 6:if((i=r.n()).done){e.next=12;break}return a=i.value,e.next=10,a.item;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),r.e(e.t0);case 17:return e.prev=17,r.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"getPositions",value:o.a.mark((function e(){var t,n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,n=new Ar(t),e.next=5,n.position;case 5:r=l(n),e.prev=6,r.s();case 8:if((i=r.n()).done){e.next=14;break}return a=i.value,e.next=12,a.nextPosition;case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])}))},{key:"is",value:function(e){return"range"===e||"view:range"===e}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return this.start.parent===this.end.parent}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromParentsAndOffsets",value:function(e,t,n,r){return new this(new xr(e,t),new xr(n,r))}},{key:"_createFromPositionAndShift",value:function(e,t){var n=e,r=e.getShiftedBy(t);return t>0?new this(n,r):new this(r,n)}},{key:"_createIn",value:function(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}},{key:"_createOn",value:function(e){var t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(xr._createBefore(e),t)}}]),e}();function Mr(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}function Er(e){var t,n=0,r=l(e);try{for(r.s();!(t=r.n()).done;){t.value;n++}}catch(e){r.e(e)}finally{r.f()}return n}var Tr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;h(this,e),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(t,n,r)}return m(e,[{key:"getRanges",value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,r.clone();case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=l(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.start.isBefore(t.start)||(t=r)}}catch(e){n.e(e)}finally{n.f()}return t?t.clone():null}},{key:"getLastRange",value:function(){var e,t=null,n=l(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.end.isAfter(t.end)||(t=r)}}catch(e){n.e(e)}finally{n.f()}return t?t.clone():null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"isEqual",value:function(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=l(this._ranges);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=!1,a=l(e._ranges);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(i.isEqual(s)){o=!0;break}}}catch(e){a.e(e)}finally{a.f()}if(!o)return!1}}catch(e){n.e(e)}finally{n.f()}return!0}},{key:"isSimilar",value:function(e){if(this.isBackward!=e.isBackward)return!1;var t=Er(this.getRanges());if(t!=Er(e.getRanges()))return!1;if(0==t)return!0;var n,r=l(this.getRanges());try{for(r.s();!(n=r.n()).done;){var i=n.value;i=i.getTrimmed();var o,a=!1,s=l(e.getRanges());try{for(s.s();!(o=s.n()).done;){var c=o.value;if(c=c.getTrimmed(),i.start.isEqual(c.start)&&i.end.isEqual(c.end)){a=!0;break}}}catch(e){s.e(e)}finally{s.f()}if(!a)return!1}}catch(e){r.e(e)}finally{r.f()}return!0}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"setTo",value:function(t,n,r){if(null===t)this._setRanges([]),this._setFakeOptions(n);else if(t instanceof e||t instanceof Dr)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof Sr)this._setRanges([t],n&&n.backward),this._setFakeOptions(n);else if(t instanceof xr)this._setRanges([new Sr(t)]),this._setFakeOptions(n);else if(t instanceof gn){var i,o=!!r&&!!r.backward;if(void 0===n)throw new Kt.a("view-selection-setto-required-second-parameter",this);i="in"==n?Sr._createIn(t):"on"==n?Sr._createOn(t):new Sr(xr._createAt(t,n)),this._setRanges([i],o),this._setFakeOptions(r)}else{if(!an(t))throw new Kt.a("view-selection-setto-not-selectable",this);this._setRanges(t,n&&n.backward),this._setFakeOptions(n)}this.fire("change")}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new Kt.a("view-selection-setfocus-no-ranges",this);var n=xr._createAt(e,t);if("same"!=n.compareWith(this.focus)){var r=this.anchor;this._ranges.pop(),"before"==n.compareWith(r)?this._addRange(new Sr(n,r),!0):this._addRange(new Sr(r,n)),this.fire("change")}}},{key:"is",value:function(e){return"selection"===e||"view:selection"===e}},{key:"_setRanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e),this._ranges=[];var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._addRange(i)}}catch(e){r.e(e)}finally{r.f()}this._lastRangeBackward=!!t}},{key:"_setFakeOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}},{key:"_addRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof Sr))throw new Kt.a("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}},{key:"_pushRange",value:function(e){var t,n=l(this._ranges);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e.isIntersecting(r))throw new Kt.a("view-selection-range-intersects",this,{addedRange:e,intersectingRange:r})}}catch(e){n.e(e)}finally{n.f()}this._ranges.push(new Sr(e.start,e.end))}},{key:"isFake",get:function(){return this._isFake}},{key:"fakeSelectionLabel",get:function(){return this._fakeSelectionLabel}},{key:"anchor",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}},{key:"focus",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}},{key:"isCollapsed",get:function(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"editableElement",get:function(){return this.anchor?this.anchor.editableElement:null}}]),e}();sn(Tr,Xt);var Dr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;h(this,e),this._selection=new Tr,this._selection.delegate("change").to(this),this._selection.setTo(t,n,r)}return m(e,[{key:"getRanges",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._selection.getRanges(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"isEqual",value:function(e){return this._selection.isEqual(e)}},{key:"isSimilar",value:function(e){return this._selection.isSimilar(e)}},{key:"is",value:function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"isFake",get:function(){return this._selection.isFake}},{key:"fakeSelectionLabel",get:function(){return this._selection.fakeSelectionLabel}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"editableElement",get:function(){return this._selection.editableElement}},{key:"_ranges",get:function(){return this._selection._ranges}}]),e}();sn(Dr,Xt);var Or=function(){function e(t){h(this,e),this.selection=new Dr,this.roots=new cn({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}return m(e,[{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"destroy",value:function(){this.roots.map((function(e){return e.destroy()})),this.stopListening()}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,r=l(this._postFixers);try{for(r.s();!(n=r.n()).done;){if(t=(0,n.value)(e))break}}catch(e){r.e(e)}finally{r.f()}}while(t)}}]),e}();sn(Or,mr);var Pr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=Ir,a._priority=10,a._id=null,a._clonesGroup=null,a}return m(n,[{key:"getElementsWithSameId",value:function(){if(null===this.id)throw new Kt.a("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}},{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"isSimilar",value:function(e){return null!==this.id||null!==e.id?this.id===e.id:s(A(n.prototype),"isSimilar",this).call(this,e)&&this.priority==e.priority}},{key:"_clone",value:function(e){var t=s(A(n.prototype),"_clone",this).call(this,e);return t._priority=this._priority,t._id=this._id,t}},{key:"priority",get:function(){return this._priority}},{key:"id",get:function(){return this._id}}]),n}(ar);function Ir(){if(jr(this))return null;for(var e=this.parent;e&&e.is("attributeElement");){if(jr(e)>1)return null;e=e.parent}return!e||jr(e)>1?null:this.childCount}function jr(e){return Array.from(e.getChildren()).filter((function(e){return!e.is("uiElement")})).length}Pr.DEFAULT_PRIORITY=10;var Nr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=Rr,a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof gn||Array.from(t).length>0))throw new Kt.a("view-emptyelement-cannot-add",[this,t])}}]),n}(ar);function Rr(){return null}var Lr=navigator.userAgent.toLowerCase(),Br=function(e){return e.indexOf("macintosh")>-1}(Lr),Fr=function(e){return!!e.match(/gecko\/\d+/)}(Lr),zr=function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(Lr),Vr=function(e){return e.indexOf("android")>-1}(Lr),$r=(function(e){e.indexOf("chrome/")>-1&&e.indexOf("edge/")}(Lr),function(){var e=!1;try{e=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(e){}}(),{"⌘":"ctrl","⇧":"shift","⌥":"alt"}),Hr={ctrl:"⌘",shift:"⇧",alt:"⌥"},Ur=function(){for(var e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448},t=65;t<=90;t++){e[String.fromCharCode(t).toLowerCase()]=t}for(var n=48;n<=57;n++)e[n-48]=n;for(var r=112;r<=123;r++)e["f"+(r-111)]=r;return e}();function qr(e){var t;if("string"==typeof e){if(!(t=Ur[e.toLowerCase()]))throw new Kt.a("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?Ur.alt:0)+(e.ctrlKey?Ur.ctrl:0)+(e.shiftKey?Ur.shift:0);return t}function Wr(e){return"string"==typeof e&&(e=Xr(e)),e.map((function(e){return"string"==typeof e?qr(e):e})).reduce((function(e,t){return t+e}),0)}function Yr(e){return Br?Xr(e).map((function(e){return Hr[e.toLowerCase()]||e})).reduce((function(e,t){return e.slice(-1)in $r?e+t:e+"+"+t})):e}function Kr(e){return e==Ur.arrowright||e==Ur.arrowleft||e==Ur.arrowup||e==Ur.arrowdown}function Gr(e,t){var n="ltr"===t;switch(e){case Ur.arrowleft:return n?"left":"right";case Ur.arrowright:return n?"right":"left";case Ur.arrowup:return"up";case Ur.arrowdown:return"down"}}function Qr(e,t){var n=Gr(e,t);return"down"===n||"right"===n}function Xr(e){return e.split(/\s*\+\s*/)}var Jr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=Zr,a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof gn||Array.from(t).length>0))throw new Kt.a("view-uielement-cannot-add",this)}},{key:"render",value:function(e){return this.toDomElement(e)}},{key:"toDomElement",value:function(e){var t,n=e.createElement(this.name),r=l(this.getAttributeKeys());try{for(r.s();!(t=r.n()).done;){var i=t.value;n.setAttribute(i,this.getAttribute(i))}}catch(e){r.e(e)}finally{r.f()}return n}}]),n}(ar);function Zr(){return null}var ei=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=ti,a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof gn||Array.from(t).length>0))throw new Kt.a("view-rawelement-cannot-add",[this,t])}}]),n}(ar);function ti(){return null}var ni=function(){function e(t,n){h(this,e),this.document=t,this._children=[],n&&this._insertChild(0,n)}return m(e,[{key:Symbol.iterator,value:function(){return this._children[Symbol.iterator]()}},{key:"is",value:function(e){return"documentFragment"===e||"view:documentFragment"===e}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,r=0,i=l(function(e,t){return"string"==typeof t?[new bn(e,t)]:(an(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new bn(e,t):t instanceof yn?new bn(e,t.data):t})))}(this.document,t));try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this,this._children.splice(e,0,o),e++,r++}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}},{key:"_fireChange",value:function(e,t){this.fire("change:"+e,t)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}]),e}();sn(ni,Xt);var ri=function(){function e(t){h(this,e),this.document=t,this._cloneGroups=new Map}return m(e,[{key:"setSelection",value:function(e,t,n){this.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this.document.selection._setFocus(e,t)}},{key:"createText",value:function(e){return new bn(this.document,e)}},{key:"createAttributeElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Pr(this.document,e,t);return n.priority&&(r._priority=n.priority),n.id&&(r._id=n.id),r}},{key:"createContainerElement",value:function(e,t){return new cr(this.document,e,t)}},{key:"createEditableElement",value:function(e,t){var n=new wr(this.document,e,t);return n._document=this.document,n}},{key:"createEmptyElement",value:function(e,t){return new Nr(this.document,e,t)}},{key:"createUIElement",value:function(e,t,n){var r=new Jr(this.document,e,t);return n&&(r.render=n),r}},{key:"createRawElement",value:function(e,t,n){var r=new ei(this.document,e,t);return r.render=n||function(){},r}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){B(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"breakAttributes",value:function(e){return e instanceof xr?this._breakAttributes(e):this._breakAttributesRange(e)}},{key:"breakContainer",value:function(e){var t=e.parent;if(!t.is("containerElement"))throw new Kt.a("view-writer-break-non-container-element",this.document);if(!t.parent)throw new Kt.a("view-writer-break-root",this.document);if(e.isAtStart)return xr._createBefore(t);if(!e.isAtEnd){var n=t._clone(!1);this.insert(xr._createAfter(t),n);var r=new Sr(e,xr._createAt(t,"end")),i=new xr(n,0);this.move(r,i)}return xr._createAfter(t)}},{key:"mergeAttributes",value:function(e){var t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&0===n.childCount){var r=n.parent,i=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new xr(r,i))}var o=n.getChild(t-1),a=n.getChild(t);if(!o||!a)return e;if(o.is("$text")&&a.is("$text"))return ci(o,a);if(o.is("attributeElement")&&a.is("attributeElement")&&o.isSimilar(a)){var s=o.childCount;return o._appendChild(a.getChildren()),a._remove(),this._removeFromClonedElementsGroup(a),this.mergeAttributes(new xr(o,s))}return e}},{key:"mergeContainers",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new Kt.a("view-writer-merge-containers-invalid-position",this.document);var r=t.getChild(t.childCount-1),i=r instanceof bn?xr._createAt(r,"end"):xr._createAt(t,"end");return this.move(Sr._createIn(n),xr._createAt(t,"end")),this.remove(Sr._createOn(n)),i}},{key:"insert",value:function(e,t){!function e(t,n){var r,i=l(t);try{var o=function(){var t=r.value;if(!li.some((function(e){return t instanceof e})))throw new Kt.a("view-writer-insert-invalid-node-type",n);t.is("$text")||e(t.getChildren(),n)};for(i.s();!(r=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}}(t=an(t)?u(t):[t],this.document);var n=ii(e);if(!n)throw new Kt.a("view-writer-invalid-position-container",this.document);var r,i=this._breakAttributes(e,!0),o=n._insertChild(i.offset,t),a=l(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;this._addToClonedElementsGroup(s)}}catch(e){a.e(e)}finally{a.f()}var c=i.getShiftedBy(o),d=this.mergeAttributes(i);if(0===o)return new Sr(d,d);d.isEqual(i)||c.offset--;var f=this.mergeAttributes(c);return new Sr(d,f)}},{key:"remove",value:function(e){var t=e instanceof Sr?e:Sr._createOn(e);if(di(t,this.document),t.isCollapsed)return new ni(this.document);var n,r=this._breakAttributesRange(t,!0),i=r.start,o=r.end,a=i.parent,s=o.offset-i.offset,c=a._removeChildren(i.offset,s),u=l(c);try{for(u.s();!(n=u.n()).done;){var d=n.value;this._removeFromClonedElementsGroup(d)}}catch(e){u.e(e)}finally{u.f()}var f=this.mergeAttributes(i);return t.start=f,t.end=f.clone(),new ni(this.document,c)}},{key:"clear",value:function(e,t){di(e,this.document);var n,r=l(e.getWalker({direction:"backward",ignoreElementEnd:!0}));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.item,a=void 0;if(o.is("element")&&t.isSimilar(o))a=Sr._createOn(o);else if(!i.nextPosition.isAfter(e.start)&&o.is("$textProxy")){var s=o.getAncestors().find((function(e){return e.is("element")&&t.isSimilar(e)}));s&&(a=Sr._createIn(s))}a&&(a.end.isAfter(e.end)&&(a.end=e.end),a.start.isBefore(e.start)&&(a.start=e.start),this.remove(a))}}catch(e){r.e(e)}finally{r.f()}}},{key:"move",value:function(e,t){var n;if(t.isAfter(e.end)){var r=(t=this._breakAttributes(t,!0)).parent,i=r.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=r.childCount-i}else n=this.remove(e);return this.insert(t,n)}},{key:"wrap",value:function(e,t){if(!(t instanceof Pr))throw new Kt.a("view-writer-wrap-invalid-attribute",this.document);if(di(e,this.document),e.isCollapsed){var n=e.start;n.parent.is("element")&&(i=n.parent,!Array.from(i.getChildren()).some((function(e){return!e.is("uiElement")})))&&(n=n.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))),n=this._wrapPosition(n,t);var r=this.document.selection;return r.isCollapsed&&r.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new Sr(n)}return this._wrapRange(e,t);var i}},{key:"unwrap",value:function(e,t){if(!(t instanceof Pr))throw new Kt.a("view-writer-unwrap-invalid-attribute",this.document);if(di(e,this.document),e.isCollapsed)return e;var n=this._breakAttributesRange(e,!0),r=n.start,i=n.end,o=r.parent,a=this._unwrapChildren(o,r.offset,i.offset,t),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var c=this.mergeAttributes(a.end);return new Sr(s,c)}},{key:"rename",value:function(e,t){var n=new cr(this.document,e,t.getAttributes());return this.insert(xr._createAfter(t),n),this.move(Sr._createIn(t),xr._createAt(n,0)),this.remove(Sr._createOn(t)),n}},{key:"clearClonedElementsGroup",value:function(e){this._cloneGroups.delete(e)}},{key:"createPositionAt",value:function(e,t){return xr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return xr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return xr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Sr(e,t)}},{key:"createRangeOn",value:function(e){return Sr._createOn(e)}},{key:"createRangeIn",value:function(e){return Sr._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Tr(e,t,n)}},{key:"_wrapChildren",value:function(e,t,n,r){for(var i=t,o=[];i<n;){var a=e.getChild(i),s=a.is("$text"),c=a.is("attributeElement"),l=a.is("emptyElement"),u=a.is("uiElement"),d=a.is("rawElement");if(c&&this._wrapAttributeElement(r,a))o.push(new xr(e,i));else if(s||l||u||d||c&&oi(r,a)){var f=r._clone();a._remove(),f._appendChild(a),e._insertChild(i,f),this._addToClonedElementsGroup(f),o.push(new xr(e,i))}else c&&this._wrapChildren(a,0,a.childCount,r);i++}for(var h=0,p=0,m=o;p<m.length;p++){var v=m[p];(v.offset-=h,v.offset!=t)&&(this.mergeAttributes(v).isEqual(v)||(h++,n--))}return Sr._createFromParentsAndOffsets(e,t,e,n)}},{key:"_unwrapChildren",value:function(e,t,n,r){for(var i=t,o=[];i<n;){var a=e.getChild(i);if(a.is("attributeElement"))if(a.isSimilar(r)){var s=a.getChildren(),c=a.childCount;a._remove(),e._insertChild(i,s),this._removeFromClonedElementsGroup(a),o.push(new xr(e,i),new xr(e,i+c)),i+=c,n+=c-1}else this._unwrapAttributeElement(r,a)?(o.push(new xr(e,i),new xr(e,i+1)),i++):(this._unwrapChildren(a,0,a.childCount,r),i++);else i++}for(var l=0,u=0,d=o;u<d.length;u++){var f=d[u];(f.offset-=l,f.offset!=t&&f.offset!=n)&&(this.mergeAttributes(f).isEqual(f)||(l++,n--))}return Sr._createFromParentsAndOffsets(e,t,e,n)}},{key:"_wrapRange",value:function(e,t){var n=this._breakAttributesRange(e,!0),r=n.start,i=n.end,o=r.parent,a=this._wrapChildren(o,r.offset,i.offset,t),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var c=this.mergeAttributes(a.end);return new Sr(s,c)}},{key:"_wrapPosition",value:function(e,t){if(t.isSimilar(e.parent))return ai(e.clone());e.parent.is("$text")&&(e=si(e));var n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=function(){return!1},e.parent._insertChild(e.offset,n);var r=new Sr(e,e.getShiftedBy(1));this.wrap(r,t);var i=new xr(n.parent,n.index);n._remove();var o=i.nodeBefore,a=i.nodeAfter;return o instanceof bn&&a instanceof bn?ci(o,a):ai(i)}},{key:"_wrapAttributeElement",value:function(e,t){if(!fi(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;var n,r=l(e.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;if("class"!==i&&"style"!==i&&t.hasAttribute(i)&&t.getAttribute(i)!==e.getAttribute(i))return!1}}catch(e){r.e(e)}finally{r.f()}var o,a=l(e.getStyleNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(t.hasStyle(s)&&t.getStyle(s)!==e.getStyle(s))return!1}}catch(e){a.e(e)}finally{a.f()}var c,u=l(e.getAttributeKeys());try{for(u.s();!(c=u.n()).done;){var d=c.value;"class"!==d&&"style"!==d&&(t.hasAttribute(d)||this.setAttribute(d,e.getAttribute(d),t))}}catch(e){u.e(e)}finally{u.f()}var f,h=l(e.getStyleNames());try{for(h.s();!(f=h.n()).done;){var p=f.value;t.hasStyle(p)||this.setStyle(p,e.getStyle(p),t)}}catch(e){h.e(e)}finally{h.f()}var m,v=l(e.getClassNames());try{for(v.s();!(m=v.n()).done;){var g=m.value;t.hasClass(g)||this.addClass(g,t)}}catch(e){v.e(e)}finally{v.f()}return!0}},{key:"_unwrapAttributeElement",value:function(e,t){if(!fi(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;var n,r=l(e.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;if("class"!==i&&"style"!==i&&(!t.hasAttribute(i)||t.getAttribute(i)!==e.getAttribute(i)))return!1}}catch(e){r.e(e)}finally{r.f()}if(!t.hasClass.apply(t,u(e.getClassNames())))return!1;var o,a=l(e.getStyleNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!t.hasStyle(s)||t.getStyle(s)!==e.getStyle(s))return!1}}catch(e){a.e(e)}finally{a.f()}var c,d=l(e.getAttributeKeys());try{for(d.s();!(c=d.n()).done;){var f=c.value;"class"!==f&&"style"!==f&&this.removeAttribute(f,t)}}catch(e){d.e(e)}finally{d.f()}return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}},{key:"_breakAttributesRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.start,r=e.end;if(di(e,this.document),e.isCollapsed){var i=this._breakAttributes(e.start,t);return new Sr(i,i)}var o=this._breakAttributes(r,t),a=o.parent.childCount,s=this._breakAttributes(n,t);return o.offset+=o.parent.childCount-a,new Sr(s,o)}},{key:"_breakAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.offset,r=e.parent;if(e.parent.is("emptyElement"))throw new Kt.a("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new Kt.a("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new Kt.a("view-writer-cannot-break-raw-element",this.document);if(!t&&r.is("$text")&&ui(r.parent))return e.clone();if(ui(r))return e.clone();if(r.is("$text"))return this._breakAttributes(si(e),t);if(n==r.childCount){var i=new xr(r.parent,r.index+1);return this._breakAttributes(i,t)}if(0===n){var o=new xr(r.parent,r.index);return this._breakAttributes(o,t)}var a=r.index+1,s=r._clone();r.parent._insertChild(a,s),this._addToClonedElementsGroup(s);var c=r.childCount-n,l=r._removeChildren(n,c);s._appendChild(l);var u=new xr(r.parent,a);return this._breakAttributes(u,t)}},{key:"_addToClonedElementsGroup",value:function(e){if(e.root.is("rootElement")){if(e.is("element")){var t,n=l(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._addToClonedElementsGroup(r)}}catch(e){n.e(e)}finally{n.f()}}var i=e.id;if(i){var o=this._cloneGroups.get(i);o||(o=new Set,this._cloneGroups.set(i,o)),o.add(e),e._clonesGroup=o}}}},{key:"_removeFromClonedElementsGroup",value:function(e){if(e.is("element")){var t,n=l(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._removeFromClonedElementsGroup(r)}}catch(e){n.e(e)}finally{n.f()}}var i=e.id;if(i){var o=this._cloneGroups.get(i);o&&o.delete(e)}}}]),e}();function ii(e){for(var t=e.parent;!ui(t);){if(!t)return;t=t.parent}return t}function oi(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function ai(e){var t=e.nodeBefore;if(t&&t.is("$text"))return new xr(t,t.data.length);var n=e.nodeAfter;return n&&n.is("$text")?new xr(n,0):e}function si(e){if(e.offset==e.parent.data.length)return new xr(e.parent.parent,e.parent.index+1);if(0===e.offset)return new xr(e.parent.parent,e.parent.index);var t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new bn(e.root.document,t)),new xr(e.parent.parent,e.parent.index+1)}function ci(e,t){var n=e.data.length;return e._data+=t.data,t._remove(),new xr(e,n)}var li=[bn,Pr,cr,Nr,ei,Jr];function ui(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function di(e,t){var n=ii(e.start),r=ii(e.end);if(!n||!r||n!==r)throw new Kt.a("view-writer-invalid-range-container",t)}function fi(e,t){return null===e.id&&null===t.id}function hi(e){return"[object Text]"==Object.prototype.toString.call(e)}var pi=function(e){return e.createTextNode(" ")},mi=function(e){var t=e.createElement("br");return t.dataset.ckeFiller=!0,t},vi=function(){for(var e="",t=0;t<7;t++)e+="";return e}();function gi(e){return hi(e)&&e.data.substr(0,7)===vi}function bi(e){return 7==e.data.length&&gi(e)}function yi(e){return gi(e)?e.data.slice(7):e.data}function ki(e,t){if(t.keyCode==Ur.arrowleft){var n=t.domTarget.ownerDocument.defaultView.getSelection();if(1==n.rangeCount&&n.getRangeAt(0).collapsed){var r=n.getRangeAt(0).startContainer,i=n.getRangeAt(0).startOffset;gi(r)&&i<=7&&n.collapse(r,0)}}}function wi(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=n||function(e,t){return e===t},Array.isArray(e)||(e=Array.prototype.slice.call(e)),Array.isArray(t)||(t=Array.prototype.slice.call(t));var i=function(e,t,n){var r=_i(e,t,n);if(-1===r)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};var i=_i(Ci(e,r),Ci(t,r),n);return{firstIndex:r,lastIndexOld:e.length-i,lastIndexNew:t.length-i}}(e,t,n);return r?function(e,t){var n=e.firstIndex,r=e.lastIndexOld,i=e.lastIndexNew;if(-1===n)return Array(t).fill("equal");var o=[];return n>0&&(o=o.concat(Array(n).fill("equal"))),i-n>0&&(o=o.concat(Array(i-n).fill("insert"))),r-n>0&&(o=o.concat(Array(r-n).fill("delete"))),i<t&&(o=o.concat(Array(t-i).fill("equal"))),o}(i,t.length):function(e,t){var n=[],r=t.firstIndex,i=t.lastIndexOld,o=t.lastIndexNew;return o-r>0&&n.push({index:r,type:"insert",values:e.slice(r,o)}),i-r>0&&n.push({index:r+(o-r),type:"delete",howMany:i-r}),n}(t,i)}function _i(e,t,n){for(var r=0;r<Math.max(e.length,t.length);r++)if(void 0===e[r]||void 0===t[r]||!n(e[r],t[r]))return r;return-1}function Ci(e,t){return e.slice(t).reverse()}function Ai(e,t,n){n=n||function(e,t){return e===t};var r,i,o=e.length,a=t.length;if(o>200||a>200||o+a>300)return Ai.fastDiff(e,t,n,!0);if(a<o){var s=e;e=t,t=s,r="delete",i="insert"}else r="insert",i="delete";var c=e.length,l=t.length,u=l-c,d={},f={};function h(o){var a=(void 0!==f[o-1]?f[o-1]:-1)+1,s=void 0!==f[o+1]?f[o+1]:-1,u=a>s?-1:1;d[o+u]&&(d[o]=d[o+u].slice(0)),d[o]||(d[o]=[]),d[o].push(a>s?r:i);for(var h=Math.max(a,s),p=h-o;p<c&&h<l&&n(e[p],t[h]);)p++,h++,d[o].push("equal");return h}var p,m=0;do{for(p=-m;p<u;p++)f[p]=h(p);for(p=u+m;p>u;p--)f[p]=h(p);f[u]=h(u),m++}while(f[u]!==l);return d[u].slice(1)}function xi(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function Si(e){var t=e.parentNode;t&&t.removeChild(e)}function Mi(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}Ai.fastDiff=wi;var Ei=function(){function e(t,n){h(this,e),this.domDocuments=new Set,this.domConverter=t,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=n,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}return m(e,[{key:"markToSync",value:function(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new Kt.a("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}},{key:"render",value:function(){var e,t,n=l(this.markedChildren);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._updateChildrenMappings(r)}}catch(e){n.e(e)}finally{n.f()}this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent));var i,o=l(this.markedAttributes);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._updateAttrs(a)}}catch(e){o.e(e)}finally{o.f()}var s,c=l(this.markedChildren);try{for(c.s();!(s=c.n()).done;){var u=s.value;this._updateChildren(u,{inlineFillerPosition:e})}}catch(e){c.e(e)}finally{c.f()}var d,f=l(this.markedTexts);try{for(f.s();!(d=f.n()).done;){var h=d.value;!this.markedChildren.has(h.parent)&&this.domConverter.mapViewToDom(h.parent)&&this._updateText(h,{inlineFillerPosition:e})}}catch(e){f.e(e)}finally{f.f()}if(e){var p=this.domConverter.viewPositionToDom(e),m=p.parent.ownerDocument;gi(p.parent)?this._inlineFiller=p.parent:this._inlineFiller=Ti(m,p.parent,p.offset)}else this._inlineFiller=null;this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}},{key:"_updateChildrenMappings",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n=this.domConverter.mapViewToDom(e).childNodes,r=Array.from(this.domConverter.viewChildrenToDom(e,t.ownerDocument,{withChildren:!1})),i=this._diffNodeLists(n,r),o=this._findReplaceActions(i,n,r);if(-1!==o.indexOf("replace")){var a,s={equal:0,insert:0,delete:0},c=l(o);try{for(c.s();!(a=c.n()).done;){var u=a.value;if("replace"===u){var d=s.equal+s.insert,f=s.equal+s.delete,h=e.getChild(d);!h||h.is("uiElement")||h.is("rawElement")||this._updateElementMappings(h,n[f]),Si(r[d]),s.equal++}else s[u]++}}catch(e){c.e(e)}finally{c.f()}}}}},{key:"_updateElementMappings",value:function(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}},{key:"_getInlineFillerPosition",value:function(){var e=this.selection.getFirstPosition();return e.parent.is("$text")?xr._createBefore(this.selection.getFirstPosition().parent):e}},{key:"_isSelectionInInlineFiller",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&hi(t.parent)&&gi(t.parent))}},{key:"_removeInlineFiller",value:function(){var e=this._inlineFiller;if(!gi(e))throw new Kt.a("view-renderer-filler-was-lost",this);bi(e)?e.parentNode.removeChild(e):e.data=e.data.substr(7),this._inlineFiller=null}},{key:"_needsInlineFillerAtSelection",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;if(!this.domConverter.mapViewToDom(t.root))return!1;if(!t.is("element"))return!1;if(!function(e){if("false"==e.getAttribute("contenteditable"))return!1;var t=e.findAncestor((function(e){return e.hasAttribute("contenteditable")}));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;if(n===t.getFillerOffset())return!1;var r=e.nodeBefore,i=e.nodeAfter;return!(r instanceof bn||i instanceof bn)}},{key:"_updateText",value:function(e,t){var n=this.domConverter.findCorrespondingDomText(e),r=this.domConverter.viewToDom(e,n.ownerDocument),i=n.data,o=r.data,a=t.inlineFillerPosition;if(a&&a.parent==e.parent&&a.offset==e.index&&(o=vi+o),i!=o){var s,c=l(wi(i,o));try{for(c.s();!(s=c.n()).done;){var u=s.value;"insert"===u.type?n.insertData(u.index,u.values.join("")):n.deleteData(u.index,u.howMany)}}catch(e){c.e(e)}finally{c.f()}}}},{key:"_updateAttrs",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n,r=Array.from(t.attributes).map((function(e){return e.name})),i=l(e.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var o=n.value;t.setAttribute(o,e.getAttribute(o))}}catch(e){i.e(e)}finally{i.f()}var a,s=l(r);try{for(s.s();!(a=s.n()).done;){var c=a.value;e.hasAttribute(c)||t.removeAttribute(c)}}catch(e){s.e(e)}finally{s.f()}}}},{key:"_updateChildren",value:function(e,t){var n=this.domConverter.mapViewToDom(e);if(n){var r=t.inlineFillerPosition,i=this.domConverter.mapViewToDom(e).childNodes,o=Array.from(this.domConverter.viewChildrenToDom(e,n.ownerDocument,{bind:!0,inlineFillerPosition:r}));r&&r.parent===e&&Ti(n.ownerDocument,o,r.offset);var a,s=this._diffNodeLists(i,o),c=0,u=new Set,d=l(s);try{for(d.s();!(a=d.n()).done;){var f=a.value;"delete"===f?(u.add(i[c]),Si(i[c])):"equal"===f&&c++}}catch(e){d.e(e)}finally{d.f()}c=0;var h,p=l(s);try{for(p.s();!(h=p.n()).done;){var m=h.value;"insert"===m?(xi(n,c,o[c]),c++):"equal"===m&&(this._markDescendantTextToSync(this.domConverter.domToView(o[c])),c++)}}catch(e){p.e(e)}finally{p.f()}var v,g=l(u);try{for(g.s();!(v=g.n()).done;){var b=v.value;b.parentNode||this.domConverter.unbindDomElement(b)}}catch(e){g.e(e)}finally{g.f()}}}},{key:"_diffNodeLists",value:function(e,t){return Ai(e=function(e,t){var n=Array.from(e);return 0!=n.length&&t?(n[n.length-1]==t&&n.pop(),n):n}(e,this._fakeSelectionContainer),t,Oi.bind(null,this.domConverter))}},{key:"_findReplaceActions",value:function(e,t,n){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;var r,i=[],o=[],a=[],s={equal:0,insert:0,delete:0},c=l(e);try{for(c.s();!(r=c.n()).done;){var u=r.value;"insert"===u?a.push(n[s.equal+s.insert]):"delete"===u?o.push(t[s.equal+s.delete]):((i=i.concat(Ai(o,a,Di).map((function(e){return"equal"===e?"replace":e})))).push("equal"),o=[],a=[]),s[u]++}}catch(e){c.e(e)}finally{c.f()}return i.concat(Ai(o,a,Di).map((function(e){return"equal"===e?"replace":e})))}},{key:"_markDescendantTextToSync",value:function(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element")){var t,n=l(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._markDescendantTextToSync(r)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"_updateSelection",value:function(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();var e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):(this._removeFakeSelection(),this._updateDomSelection(e)))}},{key:"_updateFakeSelection",value:function(e){var t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){var t=e.createElement("div");return Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t}(t));var n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),this._fakeSelectionNeedsUpdate(e)){n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";var r=t.getSelection(),i=t.createRange();r.removeAllRanges(),i.selectNodeContents(n),r.addRange(i)}}},{key:"_updateDomSelection",value:function(e){var t=e.ownerDocument.defaultView.getSelection();if(this._domSelectionNeedsUpdate(t)){var n=this.domConverter.viewPositionToDom(this.selection.anchor),r=this.domConverter.viewPositionToDom(this.selection.focus);e.focus(),t.collapse(n.parent,n.offset),t.extend(r.parent,r.offset),Fr&&function(e,t){var n=e.parent;if(n.nodeType==Node.ELEMENT_NODE&&e.offset==n.childNodes.length-1){var r=n.childNodes[e.offset];r&&"BR"==r.tagName&&t.addRange(t.getRangeAt(0))}}(r,t)}}},{key:"_domSelectionNeedsUpdate",value:function(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;var t=e&&this.domConverter.domSelectionToView(e);return!(t&&this.selection.isEqual(t)||!this.selection.isCollapsed&&this.selection.isSimilar(t))}},{key:"_fakeSelectionNeedsUpdate",value:function(e){var t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}},{key:"_removeDomSelection",value:function(){var e,t=l(this.domDocuments);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.getSelection().rangeCount){var r=n.activeElement,i=this.domConverter.mapDomToView(r);r&&i&&n.getSelection().removeAllRanges()}}}catch(e){t.e(e)}finally{t.f()}}},{key:"_removeFakeSelection",value:function(){var e=this._fakeSelectionContainer;e&&e.remove()}},{key:"_updateFocus",value:function(){if(this.isFocused){var e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}]),e}();function Ti(e,t,n){var r=t instanceof Array?t:t.childNodes,i=r[n];if(hi(i))return i.data=vi+i.data,i;var o=e.createTextNode(vi);return Array.isArray(t)?r.splice(n,0,o):xi(t,n,o),o}function Di(e,t){return Mi(e)&&Mi(t)&&!hi(e)&&!hi(t)&&e.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.COMMENT_NODE&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function Oi(e,t,n){return t===n||(hi(t)&&hi(n)?t.data===n.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(n)))}sn(Ei,mr);var Pi={window:window,document:document};function Ii(e){for(var t=0;e.previousSibling;)e=e.previousSibling,t++;return t}function ji(e){for(var t=[];e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}var Ni=mi(document),Ri=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e),this.document=t,this.blockFillerMode=n.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._blockFiller="br"==this.blockFillerMode?mi:pi,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}return m(e,[{key:"bindFakeSelection",value:function(e,t){this._fakeSelectionMapping.set(e,new Tr(t))}},{key:"fakeSelectionToView",value:function(e){return this._fakeSelectionMapping.get(e)}},{key:"bindElements",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"unbindDomElement",value:function(e){var t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);var n,r=l(e.childNodes);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.unbindDomElement(i)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"bindDocumentFragments",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"viewToDom",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.is("$text")){var i=this._processDataFromViewText(e);return t.createTextNode(i)}if(this.mapViewToDom(e))return this.mapViewToDom(e);if(e.is("documentFragment"))n=t.createDocumentFragment(),r.bind&&this.bindDocumentFragments(n,e);else{if(e.is("uiElement"))return n=e.render(t),r.bind&&this.bindElements(n,e),n;n=e.hasAttribute("xmlns")?t.createElementNS(e.getAttribute("xmlns"),e.name):t.createElement(e.name),e.is("rawElement")&&e.render(n),r.bind&&this.bindElements(n,e);var o,a=l(e.getAttributeKeys());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.setAttribute(s,e.getAttribute(s))}}catch(e){a.e(e)}finally{a.f()}}if(r.withChildren||void 0===r.withChildren){var c,u=l(this.viewChildrenToDom(e,t,r));try{for(u.s();!(c=u.n()).done;){var d=c.value;n.appendChild(d)}}catch(e){u.e(e)}finally{u.f()}}return n}},{key:"viewChildrenToDom",value:o.a.mark((function e(t,n){var r,i,a,s,c,u,d=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=d.length>2&&void 0!==d[2]?d[2]:{},i=t.getFillerOffset&&t.getFillerOffset(),a=0,s=l(t.getChildren()),e.prev=4,s.s();case 6:if((c=s.n()).done){e.next=17;break}if(u=c.value,e.t0=i===a,!e.t0){e.next=12;break}return e.next=12,this._blockFiller(n);case 12:return e.next=14,this.viewToDom(u,n,r);case 14:a++;case 15:e.next=6;break;case 17:e.next=22;break;case 19:e.prev=19,e.t1=e.catch(4),s.e(e.t1);case 22:return e.prev=22,s.f(),e.finish(22);case 25:if(e.t2=i===a,!e.t2){e.next=29;break}return e.next=29,this._blockFiller(n);case 29:case"end":return e.stop()}}),e,this,[[4,19,22,25]])}))},{key:"viewRangeToDom",value:function(e){var t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),r=document.createRange();return r.setStart(t.parent,t.offset),r.setEnd(n.parent,n.offset),r}},{key:"viewPositionToDom",value:function(e){var t,n,r,i=e.parent;if(i.is("$text")){var o=this.findCorrespondingDomText(i);if(!o)return null;var a=e.offset;return gi(o)&&(a+=7),{parent:o,offset:a}}if(0===e.offset){if(!(t=this.mapViewToDom(i)))return null;r=t.childNodes[0]}else{var s=e.nodeBefore;if(!(n=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(e.nodeBefore)))return null;t=n.parentNode,r=n.nextSibling}return hi(r)&&gi(r)?{parent:r,offset:7}:{parent:t,offset:n?Ii(n)+1:0}}},{key:"domToView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(e,this.blockFillerMode))return null;var n,r=this.getHostViewElement(e,this._domToViewMapping);if(r)return r;if(hi(e)){if(bi(e))return null;var i=this._processDataFromDomText(e);return""===i?null:new bn(this.document,i)}if(this.isComment(e))return null;if(this.mapDomToView(e))return this.mapDomToView(e);if(this.isDocumentFragment(e))n=new ni(this.document),t.bind&&this.bindDocumentFragments(e,n);else{var o=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();n=new ar(this.document,o),t.bind&&this.bindElements(e,n);for(var a=e.attributes,s=a.length-1;s>=0;s--)n._setAttribute(a[s].name,a[s].value)}if(t.withChildren||void 0===t.withChildren){var c,u=l(this.domChildrenToView(e,t));try{for(u.s();!(c=u.n()).done;){var d=c.value;n._appendChild(d)}}catch(e){u.e(e)}finally{u.f()}}return n}},{key:"domChildrenToView",value:o.a.mark((function e(t){var n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=s.length>1&&void 0!==s[1]?s[1]:{},r=0;case 2:if(!(r<t.childNodes.length)){e.next=11;break}if(i=t.childNodes[r],a=this.domToView(i,n),e.t0=null!==a,!e.t0){e.next=8;break}return e.next=8,a;case 8:r++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)}))},{key:"domSelectionToView",value:function(e){if(1===e.rangeCount){var t=e.getRangeAt(0).startContainer;hi(t)&&(t=t.parentNode);var n=this.fakeSelectionToView(t);if(n)return n}for(var r=this.isDomSelectionBackward(e),i=[],o=0;o<e.rangeCount;o++){var a=e.getRangeAt(o),s=this.domRangeToView(a);s&&i.push(s)}return new Tr(i,{backward:r})}},{key:"domRangeToView",value:function(e){var t=this.domPositionToView(e.startContainer,e.startOffset),n=this.domPositionToView(e.endContainer,e.endOffset);return t&&n?new Sr(t,n):null}},{key:"domPositionToView",value:function(e,t){if(this.isBlockFiller(e,this.blockFillerMode))return this.domPositionToView(e.parentNode,Ii(e));var n=this.mapDomToView(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return xr._createBefore(n);if(hi(e)){if(bi(e))return this.domPositionToView(e.parentNode,Ii(e));var r=this.findCorrespondingViewText(e),i=t;return r?(gi(e)&&(i=(i-=7)<0?0:i),new xr(r,i)):null}if(0===t){var o=this.mapDomToView(e);if(o)return new xr(o,0)}else{var a=e.childNodes[t-1],s=hi(a)?this.findCorrespondingViewText(a):this.mapDomToView(a);if(s&&s.parent)return new xr(s.parent,s.index+1)}return null}},{key:"mapDomToView",value:function(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}},{key:"findCorrespondingViewText",value:function(e){if(bi(e))return null;var t=this.getHostViewElement(e);if(t)return t;var n=e.previousSibling;if(n){if(!this.isElement(n))return null;var r=this.mapDomToView(n);if(r)return r.nextSibling instanceof bn?r.nextSibling:null}else{var i=this.mapDomToView(e.parentNode);if(i){var o=i.getChild(0);return o instanceof bn?o:null}}return null}},{key:"mapViewToDom",value:function(e){return this._viewToDomMapping.get(e)}},{key:"findCorrespondingDomText",value:function(e){var t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}},{key:"focus",value:function(e){var t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){var n=Pi.window,r=n.scrollX,i=n.scrollY,o=[];Bi(t,(function(e){var t=e.scrollLeft,n=e.scrollTop;o.push([t,n])})),t.focus(),Bi(t,(function(e){var t=c(o.shift(),2),n=t[0],r=t[1];e.scrollLeft=n,e.scrollTop=r})),Pi.window.scrollTo(r,i)}}},{key:"isElement",value:function(e){return e&&e.nodeType==Node.ELEMENT_NODE}},{key:"isDocumentFragment",value:function(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}},{key:"isComment",value:function(e){return e&&e.nodeType==Node.COMMENT_NODE}},{key:"isBlockFiller",value:function(e){return"br"==this.blockFillerMode?e.isEqualNode(Ni):!("BR"!==e.tagName||!Fi(e,this.blockElements)||1!==e.parentNode.childNodes.length)||function(e,t){return hi(e)&&" "==e.data&&Fi(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements)}},{key:"isDomSelectionBackward",value:function(e){if(e.isCollapsed)return!1;var t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);var n=t.collapsed;return t.detach(),n}},{key:"getHostViewElement",value:function(e){var t=ji(e);for(t.pop();t.length;){var n=t.pop(),r=this._domToViewMapping.get(n);if(r&&(r.is("uiElement")||r.is("rawElement")))return r}return null}},{key:"isDomSelectionCorrect",value:function(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}},{key:"_isDomSelectionPositionCorrect",value:function(e,t){if(hi(e)&&gi(e)&&t<7)return!1;if(this.isElement(e)&&gi(e.childNodes[t]))return!1;var n=this.mapDomToView(e);return!n||!n.is("uiElement")&&!n.is("rawElement")}},{key:"_processDataFromViewText",value:function(e){var t=this,n=e.data;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return n;if(" "==n.charAt(0)){var r=this._getTouchingViewTextNode(e,!1);(!r||!this._nodeEndsWithSpace(r))&&r||(n=" "+n.substr(1))}if(" "==n.charAt(n.length-1)){var i=this._getTouchingViewTextNode(e,!0);" "!=n.charAt(n.length-2)&&i&&" "!=i.data.charAt(0)||(n=n.substr(0,n.length-1)+" ")}return n.replace(/ {2}/g," ")}},{key:"_nodeEndsWithSpace",value:function(e){var t=this;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return!1;var n=this._processDataFromViewText(e);return" "==n.charAt(n.length-1)}},{key:"_processDataFromDomText",value:function(e){var t=e.data;if(Li(e,this.preElements))return yi(e);t=t.replace(/[ \n\t\r]{1,}/g," ");var n=this._getTouchingInlineDomNode(e,!1),r=this._getTouchingInlineDomNode(e,!0),i=this._checkShouldLeftTrimDomText(n),o=this._checkShouldRightTrimDomText(e,r);return i&&(t=t.replace(/^ /,"")),o&&(t=t.replace(/ $/,"")),t=(t=yi(new Text(t))).replace(/ \u00A0/g," "),(/( |\u00A0)\u00A0$/.test(t)||!r||r.data&&" "==r.data.charAt(0))&&(t=t.replace(/\u00A0$/," ")),i&&(t=t.replace(/^\u00A0/," ")),t}},{key:"_checkShouldLeftTrimDomText",value:function(e){return!e||!!zt(e)||/[^\S\u00A0]/.test(e.data.charAt(e.data.length-1))}},{key:"_checkShouldRightTrimDomText",value:function(e,t){return!t&&!gi(e)}},{key:"_getTouchingViewTextNode",value:function(e,t){var n,r=l(new Ar({startPosition:t?xr._createAfter(e):xr._createBefore(e),direction:t?"forward":"backward"}));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.item.is("containerElement"))return null;if(i.item.is("element","br"))return null;if(i.item.is("$textProxy"))return i.item}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"_getTouchingInlineDomNode",value:function(e,t){if(!e.parentNode)return null;var n=t?"nextNode":"previousNode",r=e.ownerDocument,i=ji(e)[0],o=r.createTreeWalker(i,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){return hi(e)||"BR"==e.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});o.currentNode=e;var a=o[n]();if(null!==a){var s=function(e,t){for(var n=ji(e),r=ji(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}(e,a);if(s&&!Li(e,this.blockElements,s)&&!Li(a,this.blockElements,s))return a}return null}}]),e}();function Li(e,t,n){var r=ji(e);return n&&(r=r.slice(r.indexOf(n)+1)),r.some((function(e){return e.tagName&&t.includes(e.tagName.toLowerCase())}))}function Bi(e,t){for(;e&&e!=Pi.document;)t(e),e=e.parentNode}function Fi(e,t){var n=e.parentNode;return n&&n.tagName&&t.includes(n.tagName.toLowerCase())}function zi(e){var t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}var Vi=ur({},Xt,{listenTo:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(Mi(e)||zi(e)){var o=this._getProxyEmitter(e)||new $i(e);o.attach.apply(o,r),e=o}(t=Xt.listenTo).call.apply(t,[this,e].concat(r))},stopListening:function(e,t,n){if(Mi(e)||zi(e)){var r=this._getProxyEmitter(e);if(!r)return;e=r}Xt.stopListening.call(this,e,t,n),e instanceof $i&&e.detach(t)},_getProxyEmitter:function(e){return t=this,n=Hi(e),t[Gt]&&t[Gt][n]?t[Gt][n].emitter:null;var t,n}}),$i=function e(t){h(this,e),Jt(this,Hi(t)),this._domNode=t};function Hi(e){return e["data-ck-expando"]||(e["data-ck-expando"]=Wt())}ur($i.prototype,Xt,{attach:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._domListeners||!this._domListeners[e]){var r={capture:!!n.useCapture,passive:!!n.usePassive},i=this._createDomListener(e,r);this._domNode.addEventListener(e,i,r),this._domListeners||(this._domListeners={}),this._domListeners[e]=i}},detach:function(e){var t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()},_createDomListener:function(e,t){var n=this,r=function(t){n.fire(e,t)};return r.removeListener=function(){n._domNode.removeEventListener(e,r,t),delete n._domListeners[e]},r}});var Ui=function(){function e(t){h(this,e),this.view=t,this.document=t.document,this.isEnabled=!1}return m(e,[{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"destroy",value:function(){this.disable(),this.stopListening()}},{key:"checkShouldIgnoreEventFromTarget",value:function(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}]),e}();sn(Ui,Vi);function qi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new he;++t<n;)this.add(e[t])}qi.prototype.add=qi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},qi.prototype.has=function(e){return this.__data__.has(e)};var Wi=qi,Yi=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Ki=function(e,t){return e.has(t)},Gi=function(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var u=-1,d=!0,f=2&n?new Wi:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var h=e[u],p=t[u];if(r)var m=a?r(p,h,u,t,e,o):r(h,p,u,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!Yi(t,(function(e,t){if(!Ki(f,t)&&(h===e||i(h,e,n,r,o)))return f.push(t)}))){d=!1;break}}else if(h!==p&&!i(h,p,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d},Qi=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Xi=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Ji=p?p.prototype:void 0,Zi=Ji?Ji.valueOf:void 0,eo=Object.prototype.hasOwnProperty,to="[object Arguments]",no="[object Array]",ro="[object Object]",io=Object.prototype.hasOwnProperty,oo=function(e,t,n,r,i,o){var a=Se(e),s=Se(t),c=a?no:yt(e),l=s?no:yt(t),u=(c=c==to?ro:c)==ro,d=(l=l==to?ro:l)==ro,f=c==l;if(f&&Object(Me.a)(e)){if(!Object(Me.a)(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new me),a||Ne(e)?Gi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new wt(e),new wt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return F(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Qi;case"[object Set]":var c=1&r;if(s||(s=Xi),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=Gi(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(Zi)return Zi.call(e)==Zi.call(t)}return!1}(e,t,c,n,r,i,o);if(!(1&n)){var h=u&&io.call(e,"__wrapped__"),p=d&&io.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,v=p?t.value():t;return o||(o=new me),i(m,v,n,r,o)}}return!!f&&(o||(o=new me),function(e,t,n,r,i,o){var a=1&n,s=nt(e),c=s.length;if(c!=nt(t).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in t:eo.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var h=a;++l<c;){var p=e[u=s[l]],m=t[u];if(r)var v=a?r(m,p,u,t,e,o):r(p,m,u,e,t,o);if(!(void 0===v?p===m||i(p,m,n,r,o):v)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o))},ao=function e(t,n,r,i,o){return t===n||(null==t||null==n||!P(t)&&!P(n)?t!=t&&n!=n:oo(t,n,r,i,e,o))},so=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?ao(e,t,void 0,n):!!r},co=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},r.domConverter=e.domConverter,r.renderer=e._renderer,r._domElements=[],r._mutationObserver=new window.MutationObserver(r._onMutations.bind(y(r))),r}return m(n,[{key:"flush",value:function(){this._onMutations(this._mutationObserver.takeRecords())}},{key:"observe",value:function(e){this._domElements.push(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}},{key:"enable",value:function(){s(A(n.prototype),"enable",this).call(this);var e,t=l(this._domElements);try{for(t.s();!(e=t.n()).done;){var r=e.value;this._mutationObserver.observe(r,this._config)}}catch(e){t.e(e)}finally{t.f()}}},{key:"disable",value:function(){s(A(n.prototype),"disable",this).call(this),this._mutationObserver.disconnect()}},{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this),this._mutationObserver.disconnect()}},{key:"_onMutations",value:function(e){if(0!==e.length){var t,n=this.domConverter,r=new Map,i=new Set,o=l(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;if("childList"===a.type){var s=n.mapDomToView(a.target);if(s&&(s.is("uiElement")||s.is("rawElement")))continue;s&&!this._isBogusBrMutation(a)&&i.add(s)}}}catch(e){o.e(e)}finally{o.f()}var c,u=l(e);try{for(u.s();!(c=u.n()).done;){var d=c.value,f=n.mapDomToView(d.target);if((!f||!f.is("uiElement")&&!f.is("rawElement"))&&"characterData"===d.type){var h=n.findCorrespondingViewText(d.target);h&&!i.has(h.parent)?r.set(h,{type:"text",oldText:h.data,newText:yi(d.target),node:h}):!h&&gi(d.target)&&i.add(n.mapDomToView(d.target.parentNode))}}}catch(e){u.e(e)}finally{u.f()}var p,m=[],v=l(r.values());try{for(v.s();!(p=v.n()).done;){var g=p.value;this.renderer.markToSync("text",g.node),m.push(g)}}catch(e){v.e(e)}finally{v.f()}var b,y=l(i);try{for(y.s();!(b=y.n()).done;){var k=b.value,w=n.mapViewToDom(k),_=Array.from(k.getChildren()),C=Array.from(n.domChildrenToView(w,{withChildren:!1}));so(_,C,E)||(this.renderer.markToSync("children",k),m.push({type:"children",oldChildren:_,newChildren:C,node:k}))}}catch(e){y.e(e)}finally{y.f()}var A=e[0].target.ownerDocument.getSelection(),x=null;if(A&&A.anchorNode){var S=n.domPositionToView(A.anchorNode,A.anchorOffset),M=n.domPositionToView(A.focusNode,A.focusOffset);S&&M&&(x=new Tr(S)).setFocus(M)}m.length&&(this.document.fire("mutations",m,x),this.view.forceRender())}function E(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}}},{key:"_isBogusBrMutation",value:function(e){var t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}]),n}(Ui),lo=function(){function e(t,n,r){h(this,e),this.view=t,this.document=t.document,this.domEvent=n,this.domTarget=n.target,ur(this,r)}return m(e,[{key:"preventDefault",value:function(){this.domEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.domEvent.stopPropagation()}},{key:"target",get:function(){return this.view.domConverter.mapDomToView(this.domTarget)}}]),e}(),uo=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).useCapture=!1,r}return m(n,[{key:"observe",value:function(e){var t=this;("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((function(n){t.listenTo(e,n,(function(e,n){t.isEnabled&&!t.checkShouldIgnoreEventFromTarget(n.target)&&t.onDomEvent(n)}),{useCapture:t.useCapture})}))}},{key:"fire",value:function(e,t,n){this.isEnabled&&this.document.fire(e,new lo(this.view,t,n))}}]),n}(Ui),fo=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType=["keydown","keyup"],r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e,{keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey||e.metaKey,shiftKey:e.shiftKey,get keystroke(){return qr(this)}})}}]),n}(uo),ho=function(){return f.a.Date.now()},po=/^\s+|\s+$/g,mo=/^[-+]0x[0-9a-f]+$/i,vo=/^0b[01]+$/i,go=/^0o[0-7]+$/i,bo=parseInt,yo=function(e){if("number"==typeof e)return e;if(Cn(e))return NaN;if(q(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=q(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(po,"");var n=vo.test(e);return n||go.test(e)?bo(e.slice(2),n?2:8):mo.test(e)?NaN:+e},ko=Math.max,wo=Math.min,_o=function(e,t,n){var r,i,o,a,s,c,l=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function p(e){return l=e,s=setTimeout(v,t),u?h(e):a}function m(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=o}function v(){var e=ho();if(m(e))return g(e);s=setTimeout(v,function(e){var n=t-(e-c);return d?wo(n,o-(e-l)):n}(e))}function g(e){return s=void 0,f&&r?h(e):(r=i=void 0,a)}function b(){var e=ho(),n=m(e);if(r=arguments,i=this,c=e,n){if(void 0===s)return p(c);if(d)return clearTimeout(s),s=setTimeout(v,t),h(c)}return void 0===s&&(s=setTimeout(v,t)),a}return t=yo(t)||0,q(n)&&(u=!!n.leading,o=(d="maxWait"in n)?ko(yo(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0},b.flush=function(){return void 0===s?a:g(ho())},b},Co=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._fireSelectionChangeDoneDebounced=_o((function(e){return r.document.fire("selectionChangeDone",e)}),200),r}return m(n,[{key:"observe",value:function(){var e=this,t=this.document;t.on("keydown",(function(n,r){t.selection.isFake&&Kr(r.keyCode)&&e.isEnabled&&(r.preventDefault(),e._handleSelectionMove(r.keyCode))}),{priority:"lowest"})}},{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionMove",value:function(e){var t=this.document.selection,n=new Tr(t.getRanges(),{backward:t.isBackward,fake:!1});e!=Ur.arrowleft&&e!=Ur.arrowup||n.setTo(n.getFirstPosition()),e!=Ur.arrowright&&e!=Ur.arrowdown||n.setTo(n.getLastPosition());var r={oldSelection:t,newSelection:n,domSelection:null};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}]),n}(Ui),Ao=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).mutationObserver=e.getObserver(co),r.selection=r.document.selection,r.domConverter=e.domConverter,r._documents=new WeakSet,r._fireSelectionChangeDoneDebounced=_o((function(e){return r.document.fire("selectionChangeDone",e)}),200),r._clearInfiniteLoopInterval=setInterval((function(){return r._clearInfiniteLoop()}),1e3),r._loopbackCounter=0,r}return m(n,[{key:"observe",value:function(e){var t=this,n=e.ownerDocument;this._documents.has(n)||(this.listenTo(n,"selectionchange",(function(e,r){t._handleSelectionChange(r,n)})),this._documents.add(n))}},{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionChange",value:function(e,t){if(this.isEnabled){var n=t.defaultView.getSelection();if(!this.checkShouldIgnoreEventFromTarget(n.anchorNode)){this.mutationObserver.flush();var r=this.domConverter.domSelectionToView(n);if(0!=r.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(r)&&this.domConverter.isDomSelectionCorrect(n)||++this._loopbackCounter>60))if(this.selection.isSimilar(r))this.view.forceRender();else{var i={oldSelection:this.selection,newSelection:r,domSelection:n};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}else this.view.hasDomSelection=!1}}}},{key:"_clearInfiniteLoop",value:function(){this._loopbackCounter=0}}]),n}(Ui),xo=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).domEventType=["focus","blur"],r.useCapture=!0;var i=r.document;return i.on("focus",(function(){i.isFocused=!0,r._renderTimeoutId=setTimeout((function(){return e.forceRender()}),50)})),i.on("blur",(function(t,n){var r=i.selection.editableElement;null!==r&&r!==n.target||(i.isFocused=!1,e.forceRender())})),r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}},{key:"destroy",value:function(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),s(A(n.prototype),"destroy",this).call(this)}}]),n}(uo),So=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).domEventType=["compositionstart","compositionupdate","compositionend"];var i=r.document;return i.on("compositionstart",(function(){i.isComposing=!0})),i.on("compositionend",(function(){i.isComposing=!1})),r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo),Mo=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType=["beforeinput"],r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo);function Eo(e){return"[object Range]"==Object.prototype.toString.apply(e)}function To(e){var t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}var Do=["top","right","bottom","left","width","height"],Oo=function(){function e(t){h(this,e);var n=Eo(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),zt(t)||n)if(n){var r=e.getDomRangeRects(t);Po(this,e.getBoundingRect(r))}else Po(this,t.getBoundingClientRect());else if(zi(t)){var i=t.innerWidth,o=t.innerHeight;Po(this,{top:0,right:i,bottom:o,left:0,width:i,height:o})}else Po(this,t)}return m(e,[{key:"clone",value:function(){return new e(this)}},{key:"moveTo",value:function(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}},{key:"moveBy",value:function(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}},{key:"getIntersection",value:function(t){var n={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 n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new e(n)}},{key:"getIntersectionArea",value:function(e){var t=this.getIntersection(e);return t?t.getArea():0}},{key:"getArea",value:function(){return this.width*this.height}},{key:"getVisible",value:function(){var t=this._source,n=this.clone();if(!Io(t))for(var r=t.parentNode||t.commonAncestorContainer;r&&!Io(r);){var i=new e(r),o=n.getIntersection(i);if(!o)return null;o.getArea()<n.getArea()&&(n=o),r=r.parentNode}return n}},{key:"isEqual",value:function(e){var t,n=l(Do);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(this[r]!==e[r])return!1}}catch(e){n.e(e)}finally{n.f()}return!0}},{key:"contains",value:function(e){var t=this.getIntersection(e);return!(!t||!t.isEqual(e))}},{key:"excludeScrollbarsAndBorders",value:function(){var e,t,n,r=this._source;if(zi(r))e=r.innerWidth-r.document.documentElement.clientWidth,t=r.innerHeight-r.document.documentElement.clientHeight,n=r.getComputedStyle(r.document.documentElement).direction;else{var i=To(this._source);e=r.offsetWidth-r.clientWidth-i.left-i.right,t=r.offsetHeight-r.clientHeight-i.top-i.bottom,n=r.ownerDocument.defaultView.getComputedStyle(r).direction,this.left+=i.left,this.top+=i.top,this.right-=i.right,this.bottom-=i.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===n?this.right-=e:this.left+=e,this.height-=t,this.bottom-=t,this}}],[{key:"getDomRangeRects",value:function(t){var n=[],r=Array.from(t.getClientRects());if(r.length){var i,o=l(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;n.push(new e(a))}}catch(e){o.e(e)}finally{o.f()}}else{var s=t.startContainer;hi(s)&&(s=s.parentNode);var c=new e(s.getBoundingClientRect());c.right=c.left,c.width=0,n.push(c)}return n}},{key:"getBoundingRect",value:function(t){var n,r={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY},i=0,o=l(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;i++,r.left=Math.min(r.left,a.left),r.top=Math.min(r.top,a.top),r.right=Math.max(r.right,a.right),r.bottom=Math.max(r.bottom,a.bottom)}}catch(e){o.e(e)}finally{o.f()}return 0==i?null:(r.width=r.right-r.left,r.height=r.bottom-r.top,new e(r))}}]),e}();function Po(e,t){var n,r=l(Do);try{for(r.s();!(n=r.n()).done;){var i=n.value;e[i]=t[i]}}catch(e){r.e(e)}finally{r.f()}}function Io(e){return!!zt(e)&&e===e.ownerDocument.body}function jo(e){for(var t=e.target,n=e.viewportOffset,r=void 0===n?0:n,i=Vo(t),o=i,a=null;o;){Ro($o(o==i?t:a),(function(){return Ho(t,o)}));var s=Ho(t,o);if(No(o,s,r),o.parent!=o){if(a=o.frameElement,o=o.parent,!a)return}else o=null}}function No(e,t,n){var r=t.clone().moveBy(0,n),i=t.clone().moveBy(0,-n),o=new Oo(e).excludeScrollbarsAndBorders();if(![i,r].every((function(e){return o.contains(e)}))){var a=e.scrollX,s=e.scrollY;Bo(i,o)?s-=o.top-t.top+n:Lo(r,o)&&(s+=t.bottom-o.bottom+n),Fo(t,o)?a-=o.left-t.left+n:zo(t,o)&&(a+=t.right-o.right+n),e.scrollTo(a,s)}}function Ro(e,t){for(var n,r,i=Vo(e);e!=i.document.body;)r=t(),(n=new Oo(e).excludeScrollbarsAndBorders()).contains(r)||(Bo(r,n)?e.scrollTop-=n.top-r.top:Lo(r,n)&&(e.scrollTop+=r.bottom-n.bottom),Fo(r,n)?e.scrollLeft-=n.left-r.left:zo(r,n)&&(e.scrollLeft+=r.right-n.right)),e=e.parentNode}function Lo(e,t){return e.bottom>t.bottom}function Bo(e,t){return e.top<t.top}function Fo(e,t){return e.left<t.left}function zo(e,t){return e.right>t.right}function Vo(e){return Eo(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function $o(e){if(Eo(e)){var t=e.commonAncestorContainer;return hi(t)&&(t=t.parentNode),t}return e.parentNode}function Ho(e,t){var n=Vo(e),r=new Oo(e);if(n===t)return r;for(var i=n;i!=t;){var o=i.frameElement,a=new Oo(o).excludeScrollbarsAndBorders();r.moveBy(a.left,a.top),i=i.parent}return r}Object.assign({},{scrollViewportToShowTarget:jo,scrollAncestorsToShowTarget:function(e){Ro($o(e),(function(){return new Oo(e)}))}});var Uo=function(){function e(t){var n=this;h(this,e),this.document=new Or(t),this.domConverter=new Ri(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Ei(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new ri(this.document),this.addObserver(co),this.addObserver(Ao),this.addObserver(xo),this.addObserver(fo),this.addObserver(Co),this.addObserver(So),Vr&&this.addObserver(Mo),this.document.on("keydown",ki),function(e){e.document.on("keydown",(function(t,n){return function(e,t,n){if(t.keyCode==Ur.arrowright){var r=t.domTarget.ownerDocument.defaultView.getSelection(),i=1==r.rangeCount&&r.getRangeAt(0).collapsed;if(i||t.shiftKey){var o=r.focusNode,a=r.focusOffset,s=n.domPositionToView(o,a);if(null===s)return;var c=!1,l=s.getLastMatchingPosition((function(e){return e.item.is("uiElement")&&(c=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))}));if(c){var u=n.viewPositionToDom(l);i?r.collapse(u.parent,u.offset):r.extend(u.parent,u.offset)}}}}(0,n,e.domConverter)}))}(this),this.on("render",(function(){n._render(),n.document.fire("layoutChanged"),n._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(function(){n._hasChangedSinceTheLastRendering=!0}))}return m(e,[{key:"attachDomRoot",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",r=this.document.getRoot(n);r._name=e.tagName.toLowerCase();for(var i={},o=0,a=Array.from(e.attributes);o<a.length;o++){var s=a[o],c=s.name,u=s.value;i[c]=u,"class"===c?this._writer.addClass(u.split(" "),r):this._writer.setAttribute(c,u,r)}this._initialDomRootAttributes.set(e,i);var d=function(){t._writer.setAttribute("contenteditable",!r.isReadOnly,r),r.isReadOnly?t._writer.addClass("ck-read-only",r):t._writer.removeClass("ck-read-only",r)};d(),this.domRoots.set(n,e),this.domConverter.bindElements(e,r),this._renderer.markToSync("children",r),this._renderer.markToSync("attributes",r),this._renderer.domDocuments.add(e.ownerDocument),r.on("change:children",(function(e,n){return t._renderer.markToSync("children",n)})),r.on("change:attributes",(function(e,n){return t._renderer.markToSync("attributes",n)})),r.on("change:text",(function(e,n){return t._renderer.markToSync("text",n)})),r.on("change:isReadOnly",(function(){return t.change(d)})),r.on("change",(function(){t._hasChangedSinceTheLastRendering=!0}));var f,h=l(this._observers.values());try{for(h.s();!(f=h.n()).done;){var p=f.value;p.observe(e,n)}}catch(e){h.e(e)}finally{h.f()}}},{key:"detachDomRoot",value:function(e){var t=this.domRoots.get(e);Array.from(t.attributes).forEach((function(e){var n=e.name;return t.removeAttribute(n)}));var n=this._initialDomRootAttributes.get(t);for(var r in n)t.setAttribute(r,n[r]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t)}},{key:"getDomRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(e)}},{key:"addObserver",value:function(e){var t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);var n,r=l(this.domRoots);try{for(r.s();!(n=r.n()).done;){var i=c(n.value,2),o=i[0],a=i[1];t.observe(a,o)}}catch(e){r.e(e)}finally{r.f()}return t.enable(),t}},{key:"getObserver",value:function(e){return this._observers.get(e)}},{key:"disableObservers",value:function(){var e,t=l(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.disable()}}catch(e){t.e(e)}finally{t.f()}}},{key:"enableObservers",value:function(){var e,t=l(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.enable()}}catch(e){t.e(e)}finally{t.f()}}},{key:"scrollToTheSelection",value:function(){var e=this.document.selection.getFirstRange();e&&jo({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}},{key:"focus",value:function(){if(!this.document.isFocused){var e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}},{key:"change",value:function(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new Kt.a("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;var t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){Kt.a.rethrowUnexpectedError(e,this)}}},{key:"forceRender",value:function(){this._hasChangedSinceTheLastRendering=!0,this.change((function(){}))}},{key:"destroy",value:function(){var e,t=l(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}this.document.destroy(),this.stopListening()}},{key:"createPositionAt",value:function(e,t){return xr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return xr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return xr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Sr(e,t)}},{key:"createRangeOn",value:function(e){return Sr._createOn(e)}},{key:"createRangeIn",value:function(e){return Sr._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Tr(e,t,n)}},{key:"_disableRendering",value:function(e){this._renderingDisabled=e,0==e&&this.change((function(){}))}},{key:"_render",value:function(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}]),e}();sn(Uo,mr);var qo=function(){function e(t){h(this,e),this.parent=null,this._attrs=kn(t)}return m(e,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),r=e.getAncestors(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),r=mn(t,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return t[r]<n[r]}}},{key:"isAfter",value:function(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"toJSON",value:function(){var e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce((function(e,t){return e[t[0]]=t[1],e}),{})),e}},{key:"is",value:function(e){return"node"===e||"model:node"===e}},{key:"_clone",value:function(){return new e(this._attrs)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_setAttribute",value:function(e,t){this._attrs.set(e,t)}},{key:"_setAttributesTo",value:function(e){this._attrs=kn(e)}},{key:"_removeAttribute",value:function(e){return this._attrs.delete(e)}},{key:"_clearAttributes",value:function(){this._attrs.clear()}},{key:"index",get:function(){var e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new Kt.a("model-node-not-found-in-parent",this);return e}},{key:"startOffset",get:function(){var e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new Kt.a("model-node-not-found-in-parent",this);return e}},{key:"offsetSize",get:function(){return 1}},{key:"endOffset",get:function(){return this.parent?this.startOffset+this.offsetSize:null}},{key:"nextSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e+1)||null}},{key:"previousSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e-1)||null}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}}]),e}(),Wo=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,r))._data=e||"",i}return m(n,[{key:"is",value:function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.data=this.data,e}},{key:"_clone",value:function(){return new n(this.data,this.getAttributes())}},{key:"offsetSize",get:function(){return this.data.length}},{key:"data",get:function(){return this._data}}],[{key:"fromJSON",value:function(e){return new n(e.data,e.attributes)}}]),n}(qo),Yo=function(){function e(t,n,r){if(h(this,e),this.textNode=t,n<0||n>t.offsetSize)throw new Kt.a("model-textproxy-wrong-offsetintext",this);if(r<0||n+r>t.offsetSize)throw new Kt.a("model-textproxy-wrong-length",this);this.data=t.data.substring(n,n+r),this.offsetInText=n}return m(e,[{key:"is",value:function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e}},{key:"getPath",value:function(){var e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"hasAttribute",value:function(e){return this.textNode.hasAttribute(e)}},{key:"getAttribute",value:function(e){return this.textNode.getAttribute(e)}},{key:"getAttributes",value:function(){return this.textNode.getAttributes()}},{key:"getAttributeKeys",value:function(){return this.textNode.getAttributeKeys()}},{key:"startOffset",get:function(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}},{key:"offsetSize",get:function(){return this.data.length}},{key:"endOffset",get:function(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}},{key:"isPartial",get:function(){return this.offsetSize!==this.textNode.offsetSize}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}}]),e}(),Ko=function(){function e(t){h(this,e),this._nodes=[],t&&this._insertNodes(0,t)}return m(e,[{key:Symbol.iterator,value:function(){return this._nodes[Symbol.iterator]()}},{key:"getNode",value:function(e){return this._nodes[e]||null}},{key:"getNodeIndex",value:function(e){var t=this._nodes.indexOf(e);return-1==t?null:t}},{key:"getNodeStartOffset",value:function(e){var t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce((function(e,t){return e+t.offsetSize}),0)}},{key:"indexToOffset",value:function(e){if(e==this._nodes.length)return this.maxOffset;var t=this._nodes[e];if(!t)throw new Kt.a("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}},{key:"offsetToIndex",value:function(e){var t,n=0,r=l(this._nodes);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(e>=n&&e<n+i.offsetSize)return this.getNodeIndex(i);n+=i.offsetSize}}catch(e){r.e(e)}finally{r.f()}if(n!=e)throw new Kt.a("model-nodelist-offset-out-of-bounds",this,{offset:e,nodeList:this});return this.length}},{key:"_insertNodes",value:function(e,t){var n,r,i=l(t);try{for(i.s();!(r=i.n()).done;){if(!(r.value instanceof qo))throw new Kt.a("model-nodelist-insertnodes-not-node",this)}}catch(e){i.e(e)}finally{i.f()}(n=this._nodes).splice.apply(n,[e,0].concat(u(t)))}},{key:"_removeNodes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(e,t)}},{key:"toJSON",value:function(){return this._nodes.map((function(e){return e.toJSON()}))}},{key:"length",get:function(){return this._nodes.length}},{key:"maxOffset",get:function(){return this._nodes.reduce((function(e,t){return e+t.offsetSize}),0)}}]),e}(),Go=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,r)).name=e,o._children=new Ko,i&&o._insertChild(0,i),o}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"getNodeByPath",value:function(e){var t,n=this,r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n=n.getChild(n.offsetToIndex(i))}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"findAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1},n=t.includeSelf?this:this.parent;n;){if(n.name===e)return n;n=n.parent}return null}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);if(e.name=this.name,this._children.length>0){e.children=[];var t,r=l(this._children);try{for(r.s();!(t=r.n()).done;){var i=t.value;e.children.push(i.toJSON())}}catch(e){r.e(e)}finally{r.f()}}return e}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?Array.from(this._children).map((function(e){return e._clone(!0)})):null;return new n(this.name,this.getAttributes(),t)}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,r=function(e){return"string"==typeof e?[new Wo(e)]:(an(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new Wo(e):e instanceof Yo?new Wo(e.data,e.getAttributes()):e})))}(t),i=l(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(e){i.e(e)}finally{i.f()}this._children._insertNodes(e,r)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this._children._removeNodes(e,n),i=l(r);try{for(i.s();!(t=i.n()).done;){var o=t.value;o.parent=null}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}}],[{key:"fromJSON",value:function(e){var t=null;if(e.children){t=[];var r,i=l(e.children);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.name?t.push(n.fromJSON(o)):t.push(Wo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return new n(e.name,e.attributes,t)}}]),n}(qo),Qo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(h(this,e),!t.boundaries&&!t.startPosition)throw new Kt.a("model-tree-walker-no-start-position",null);var n=t.direction||"forward";if("forward"!=n&&"backward"!=n)throw new Kt.a("model-tree-walker-unknown-direction",t,{direction:n});this.direction=n,this.boundaries=t.boundaries||null,t.startPosition?this.position=t.startPosition.clone():this.position=Jo._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}return m(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,r,i;do{var o;r=this.position,i=this._visitedParent,t=(o=this.next()).done,n=o.value}while(!t&&e(n));t||(this.position=r,this._visitedParent=i)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&t.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};var r=t.parent,i=Zo(t,r),o=i||ea(t,r,i);if(o instanceof Go)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=o),this.position=t,Xo("elementStart",o,e,t,1);if(o instanceof Wo){var a;if(this.singleCharacters)a=1;else{var s=o.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<s&&(s=this.boundaries.end.offset),a=s-t.offset}var c=t.offset-o.startOffset,l=new Yo(o,c,a);return t.offset+=a,this.position=t,Xo("text",l,e,t,a)}return t.path.pop(),t.offset++,this.position=t,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():Xo("elementEnd",n,e,t)}},{key:"_previous",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===t.offset)return{done:!0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};var r=t.parent,i=Zo(t,r),o=i||ta(t,r,i);if(o instanceof Go)return t.offset--,this.shallow?(this.position=t,Xo("elementStart",o,e,t,1)):(t.path.push(o.maxOffset),this.position=t,this._visitedParent=o,this.ignoreElementEnd?this._previous():Xo("elementEnd",o,e,t));if(o instanceof Wo){var a;if(this.singleCharacters)a=1;else{var s=o.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>s&&(s=this.boundaries.start.offset),a=t.offset-s}var c=t.offset-o.startOffset,l=new Yo(o,c-a,a);return t.offset-=a,this.position=t,Xo("text",l,e,t,a)}return t.path.pop(),this.position=t,this._visitedParent=n.parent,Xo("elementStart",n,e,t,1)}}]),e}();function Xo(e,t,n,r,i){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:i}}}var Jo=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(h(this,e),!t.is("element")&&!t.is("documentFragment"))throw new Kt.a("model-position-root-invalid",t);if(!(n instanceof Array)||0===n.length)throw new Kt.a("model-position-path-incorrect-format",t,{path:n});t.is("rootElement")?n=n.slice():(n=[].concat(u(t.getPath()),u(n)),t=t.root),this.root=t,this.path=n,this.stickiness=r}return m(e,[{key:"compareWith",value:function(e){if(this.root!=e.root)return"different";var t=mn(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new Qo(t);return n.skip(e),n.position}},{key:"getParentPath",value:function(){return this.path.slice(0,-1)}},{key:"getAncestors",value:function(){var e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}},{key:"findAncestor",value:function(e){var t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}},{key:"getCommonPath",value:function(e){if(this.root!=e.root)return[];var t=mn(this.path,e.path),n="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),r=0;t[r]==n[r]&&t[r];)r++;return 0===r?null:t[r-1]}},{key:"getShiftedBy",value:function(e){var t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isEqual",value:function(e){return"same"==this.compareWith(e)}},{key:"isTouching",value:function(t){var n=null,r=null;switch(this.compareWith(t)){case"same":return!0;case"before":n=e._createAt(this),r=e._createAt(t);break;case"after":n=e._createAt(t),r=e._createAt(this);break;default:return!1}for(var i=n.parent;n.path.length+r.path.length;){if(n.isEqual(r))return!0;if(n.path.length>r.path.length){if(n.offset!==i.maxOffset)return!1;n.path=n.path.slice(0,-1),i=i.parent,n.offset++}else{if(0!==r.offset)return!1;r.path=r.path.slice(0,-1)}}}},{key:"is",value:function(e){return"position"===e||"model:position"===e}},{key:"hasSameParentAs",value:function(e){return this.root===e.root&&"same"==mn(this.getParentPath(),e.getParentPath())}},{key:"getTransformedByOperation",value:function(t){var n;switch(t.type){case"insert":n=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":n=this._getTransformedByMoveOperation(t);break;case"split":n=this._getTransformedBySplitOperation(t);break;case"merge":n=this._getTransformedByMergeOperation(t);break;default:n=e._createAt(this)}return n}},{key:"_getTransformedByInsertOperation",value:function(e){return this._getTransformedByInsertion(e.position,e.howMany)}},{key:"_getTransformedByMoveOperation",value:function(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}},{key:"_getTransformedBySplitOperation",value:function(e){var t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}},{key:"_getTransformedByMergeOperation",value:function(t){var n,r=t.movedRange;return r.containsPosition(this)||r.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)?e._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}},{key:"_getTransformedByDeletion",value:function(t,n){var r=e._createAt(this);if(this.root!=t.root)return r;if("same"==mn(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+n>this.offset)return null;r.offset-=n}}else if("prefix"==mn(t.getParentPath(),this.getParentPath())){var i=t.path.length-1;if(t.offset<=this.path[i]){if(t.offset+n>this.path[i])return null;r.path[i]-=n}}return r}},{key:"_getTransformedByInsertion",value:function(t,n){var r=e._createAt(this);if(this.root!=t.root)return r;if("same"==mn(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(r.offset+=n);else if("prefix"==mn(t.getParentPath(),this.getParentPath())){var i=t.path.length-1;t.offset<=this.path[i]&&(r.path[i]+=n)}return r}},{key:"_getTransformedByMove",value:function(t,n,r){if(n=n._getTransformedByDeletion(t,r),t.isEqual(n))return e._createAt(this);var i=this._getTransformedByDeletion(t,r);return null===i||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(r).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,n):i._getTransformedByInsertion(n,r)}},{key:"_getCombined",value:function(t,n){var r=t.path.length-1,i=e._createAt(n);return i.stickiness=this.stickiness,i.offset=i.offset+this.path[r]-t.offset,i.path=[].concat(u(i.path),u(this.path.slice(r+1))),i}},{key:"toJSON",value:function(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}},{key:"clone",value:function(){return new this.constructor(this.root,this.path,this.stickiness)}},{key:"offset",get:function(){return this.path[this.path.length-1]},set:function(e){this.path[this.path.length-1]=e}},{key:"parent",get:function(){for(var e=this.root,t=0;t<this.path.length-1;t++)if(!(e=e.getChild(e.offsetToIndex(this.path[t]))))throw new Kt.a("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new Kt.a("model-position-path-incorrect",this,{position:this});return e}},{key:"index",get:function(){return this.parent.offsetToIndex(this.offset)}},{key:"textNode",get:function(){return Zo(this,this.parent)}},{key:"nodeAfter",get:function(){var e=this.parent;return ea(this,e,Zo(this,e))}},{key:"nodeBefore",get:function(){var e=this.parent;return ta(this,e,Zo(this,e))}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){return this.offset==this.parent.maxOffset}}],[{key:"_createAt",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(t instanceof e)return new e(t.root,t.path,t.stickiness);var i=t;if("end"==n)n=i.maxOffset;else{if("before"==n)return this._createBefore(i,r);if("after"==n)return this._createAfter(i,r);if(0!==n&&!n)throw new Kt.a("model-createpositionat-offset-required",[this,t])}if(!i.is("element")&&!i.is("documentFragment"))throw new Kt.a("model-position-parent-incorrect",[this,t]);var o=i.getPath();return o.push(n),new this(i.root,o,r)}},{key:"_createAfter",value:function(e,t){if(!e.parent)throw new Kt.a("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}},{key:"_createBefore",value:function(e,t){if(!e.parent)throw new Kt.a("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}},{key:"fromJSON",value:function(t,n){if("$graveyard"===t.root){var r=new e(n.graveyard,t.path);return r.stickiness=t.stickiness,r}if(!n.getRoot(t.root))throw new Kt.a("model-position-fromjson-no-root",n,{rootName:t.root});return new e(n.getRoot(t.root),t.path,t.stickiness)}}]),e}();function Zo(e,t){var n=t.getChild(t.offsetToIndex(e.offset));return n&&n.is("$text")&&n.startOffset<e.offset?n:null}function ea(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset))}function ta(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset)-1)}var na=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;h(this,e),this.start=Jo._createAt(t),this.end=n?Jo._createAt(n):Jo._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}return m(e,[{key:Symbol.iterator,value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(new Qo({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}},{key:"containsItem",value:function(e){var t=Jo._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}},{key:"is",value:function(e){return"range"===e||"model:range"===e}},{key:"isEqual",value:function(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.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,r=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(r=t.end),new e(n,r)}return null}},{key:"getJoined",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.isIntersecting(t);if(r||(r=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)),!r)return null;var i=this.start,o=this.end;return t.start.isBefore(i)&&(i=t.start),t.end.isAfter(o)&&(o=t.end),new e(i,o)}},{key:"getMinimalFlatRanges",value:function(){for(var t=[],n=this.start.getCommonPath(this.end).length,r=Jo._createAt(this.start),i=r.parent;r.path.length>n+1;){var o=i.maxOffset-r.offset;0!==o&&t.push(new e(r,r.getShiftedBy(o))),r.path=r.path.slice(0,-1),r.offset++,i=i.parent}for(;r.path.length<=this.end.path.length;){var a=this.end.path[r.path.length-1],s=a-r.offset;0!==s&&t.push(new e(r,r.getShiftedBy(s))),r.offset=a,r.path.push(0)}return t}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new Qo(e)}},{key:"getItems",value:o.a.mark((function e(){var t,n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,t.ignoreElementEnd=!0,n=new Qo(t),r=l(n),e.prev=4,r.s();case 6:if((i=r.n()).done){e.next=12;break}return a=i.value,e.next=10,a.item;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),r.e(e.t0);case 17:return e.prev=17,r.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"getPositions",value:o.a.mark((function e(){var t,n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,n=new Qo(t),e.next=5,n.position;case 5:r=l(n),e.prev=6,r.s();case 8:if((i=r.n()).done){e.next=14;break}return a=i.value,e.next=12,a.nextPosition;case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])}))},{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,r=[new e(this.start,this.end)],i=l(t);try{for(i.s();!(n=i.n()).done;)for(var o=n.value,a=0;a<r.length;a++){var s=r[a].getTransformedByOperation(o);r.splice.apply(r,[a,1].concat(u(s))),a+=s.length-1}}catch(e){i.e(e)}finally{i.f()}for(var c=0;c<r.length;c++)for(var d=r[c],f=c+1;f<r.length;f++){var h=r[f];(d.containsRange(h)||h.containsRange(d)||d.isEqual(h))&&r.splice(f,1)}return r}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}},{key:"toJSON",value:function(){return{start:this.start.toJSON(),end:this.end.toJSON()}}},{key:"clone",value:function(){return new this.constructor(this.start,this.end)}},{key:"_getTransformedByInsertOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(e.position,e.howMany,t)}},{key:"_getTransformedByMoveOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.sourcePosition,r=e.howMany,i=e.targetPosition;return this._getTransformedByMove(n,i,r,t)}},{key:"_getTransformedBySplitOperation",value:function(t){var n=this.start._getTransformedBySplitOperation(t),r=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(r=this.end.getShiftedBy(1)),n.root!=r.root&&(r=this.end.getShiftedBy(-1)),new e(n,r)}},{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),r=this.end._getTransformedByMergeOperation(t);return n.root!=r.root&&(r=this.end.getShiftedBy(-1)),n.isAfter(r)?(t.sourcePosition.isBefore(t.targetPosition)?(n=Jo._createAt(r)).offset=0:(t.deletionPosition.isEqual(n)||(r=t.deletionPosition),n=t.targetPosition),new e(n,r)):new e(n,r)}},{key:"_getTransformedByInsertion",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r&&this.containsPosition(t))return[new e(this.start,t),new e(t.getShiftedBy(n),this.end._getTransformedByInsertion(t,n))];var i=new e(this.start,this.end);return i.start=i.start._getTransformedByInsertion(t,n),i.end=i.end._getTransformedByInsertion(t,n),[i]}},{key:"_getTransformedByMove",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){var o=this.start._getTransformedByMove(t,n,r);return[new e(o)]}var a,s=e._createFromPositionAndShift(t,r),c=n._getTransformedByDeletion(t,r);if(this.containsPosition(n)&&!i&&(s.containsPosition(this.start)||s.containsPosition(this.end))){var l=this.start._getTransformedByMove(t,n,r),u=this.end._getTransformedByMove(t,n,r);return[new e(l,u)]}var d=this.getDifference(s),f=null,h=this.getIntersection(s);if(1==d.length?f=new e(d[0].start._getTransformedByDeletion(t,r),d[0].end._getTransformedByDeletion(t,r)):2==d.length&&(f=new e(this.start,this.end._getTransformedByDeletion(t,r))),a=f?f._getTransformedByInsertion(c,r,null!==h||i):[],h){var p=new e(h.start._getCombined(s.start,c),h.end._getCombined(s.start,c));2==a.length?a.splice(1,0,p):a.push(p)}return a}},{key:"_getTransformedByDeletion",value:function(t,n){var r=this.start._getTransformedByDeletion(t,n),i=this.end._getTransformedByDeletion(t,n);return null==r&&null==i?null:(null==r&&(r=t),null==i&&(i=t),new e(r,i))}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return"same"==mn(this.start.getParentPath(),this.end.getParentPath())}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromPositionAndShift",value:function(e,t){var n=e,r=e.getShiftedBy(t);return t>0?new this(n,r):new this(r,n)}},{key:"_createIn",value:function(e){return new this(Jo._createAt(e,0),Jo._createAt(e,e.maxOffset))}},{key:"_createOn",value:function(e){return this._createFromPositionAndShift(Jo._createBefore(e),e.offsetSize)}},{key:"_createFromRanges",value:function(e){if(0===e.length)throw new Kt.a("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();var t=e[0];e.sort((function(e,t){return e.start.isAfter(t.start)?1:-1}));var n=e.indexOf(t),r=new this(t.start,t.end);if(n>0)for(var i=n-1;e[i].end.isEqual(r.start);i++)r.start=Jo._createAt(e[i].start);for(var o=n+1;o<e.length&&e[o].start.isEqual(r.end);o++)r.end=Jo._createAt(e[o].end);return r}},{key:"fromJSON",value:function(e,t){return new this(Jo.fromJSON(e.start,t),Jo.fromJSON(e.end,t))}}]),e}(),ra=function(){function e(){var t=this;h(this,e),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(function(e,n){if(!n.viewPosition){var r=t._modelToViewMapping.get(n.modelPosition.parent);n.viewPosition=t.findPositionIn(r,n.modelPosition.offset)}}),{priority:"low"}),this.on("viewToModelPosition",(function(e,n){if(!n.modelPosition){var r=t.findMappedViewAncestor(n.viewPosition),i=t._viewToModelMapping.get(r),o=t._toModelOffset(n.viewPosition.parent,n.viewPosition.offset,r);n.modelPosition=Jo._createAt(i,o)}}),{priority:"low"})}return m(e,[{key:"bindElements",value:function(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}},{key:"unbindViewElement",value:function(e){var t=this.toModelElement(e);if(this._viewToModelMapping.delete(e),this._elementToMarkerNames.has(e)){var n,r=l(this._elementToMarkerNames.get(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;this._unboundMarkerNames.add(i)}}catch(e){r.e(e)}finally{r.f()}}this._modelToViewMapping.get(t)==e&&this._modelToViewMapping.delete(t)}},{key:"unbindModelElement",value:function(e){var t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}},{key:"bindElementToMarker",value:function(e,t){var n=this._markerNameToElements.get(t)||new Set;n.add(e);var r=this._elementToMarkerNames.get(e)||new Set;r.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,r)}},{key:"unbindElementFromMarkerName",value:function(e,t){var n=this._markerNameToElements.get(t);n&&(n.delete(e),0==n.size&&this._markerNameToElements.delete(t));var r=this._elementToMarkerNames.get(e);r&&(r.delete(t),0==r.size&&this._elementToMarkerNames.delete(e))}},{key:"flushUnboundMarkerNames",value:function(){var e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}},{key:"clearBindings",value:function(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}},{key:"toModelElement",value:function(e){return this._viewToModelMapping.get(e)}},{key:"toViewElement",value:function(e){return this._modelToViewMapping.get(e)}},{key:"toModelRange",value:function(e){return new na(this.toModelPosition(e.start),this.toModelPosition(e.end))}},{key:"toViewRange",value:function(e){return new Sr(this.toViewPosition(e.start),this.toViewPosition(e.end))}},{key:"toModelPosition",value:function(e){var t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}},{key:"toViewPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isPhantom:!1},n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}},{key:"markerNameToElements",value:function(e){var t=this._markerNameToElements.get(e);if(!t)return null;var n,r=new Set,i=l(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("attributeElement")){var a,s=l(o.getElementsWithSameId());try{for(s.s();!(a=s.n()).done;){var c=a.value;r.add(c)}}catch(e){s.e(e)}finally{s.f()}}else r.add(o)}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"registerViewToModelLength",value:function(e,t){this._viewToModelLengthCallbacks.set(e,t)}},{key:"findMappedViewAncestor",value:function(e){for(var t=e.parent;!this._viewToModelMapping.has(t);)t=t.parent;return t}},{key:"_toModelOffset",value:function(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;for(var r=0,i=0;i<t;i++)r+=this.getModelLength(e.getChild(i));return r}},{key:"getModelLength",value:function(e){if(this._viewToModelLengthCallbacks.get(e.name))return this._viewToModelLengthCallbacks.get(e.name)(e);if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;var t,n=0,r=l(e.getChildren());try{for(r.s();!(t=r.n()).done;){var i=t.value;n+=this.getModelLength(i)}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"findPositionIn",value:function(e,t){var n,r=0,i=0,o=0;if(e.is("$text"))return new xr(e,t);for(;i<t;)n=e.getChild(o),i+=r=this.getModelLength(n),o++;return i==t?this._moveViewPositionToTextNode(new xr(e,o)):this.findPositionIn(n,t-(i-r))}},{key:"_moveViewPositionToTextNode",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;return t instanceof bn?new xr(t,t.data.length):n instanceof bn?new xr(n,0):e}}]),e}();sn(ra,Xt);var ia=function(){function e(){h(this,e),this._consumable=new Map,this._textProxyRegistry=new Map}return m(e,[{key:"add",value:function(e,t){t=oa(t),e instanceof Yo&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}},{key:"consume",value:function(e,t){return t=oa(t),e instanceof Yo&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}},{key:"test",value:function(e,t){t=oa(t),e instanceof Yo&&(e=this._getSymbolForTextProxy(e));var n=this._consumable.get(e);if(void 0===n)return null;var r=n.get(t);return void 0===r?null:r}},{key:"revert",value:function(e,t){t=oa(t),e instanceof Yo&&(e=this._getSymbolForTextProxy(e));var n=this.test(e,t);return!1===n?(this._consumable.get(e).set(t,!0),!0):!0!==n&&null}},{key:"_getSymbolForTextProxy",value:function(e){var t=null,n=this._textProxyRegistry.get(e.startOffset);if(n){var r=n.get(e.endOffset);r&&(t=r.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e.startOffset,e.endOffset,e.parent)),t}},{key:"_addSymbolForTextProxy",value:function(e,t,n){var r,i,o=Symbol("textProxySymbol");return(r=this._textProxyRegistry.get(e))||(r=new Map,this._textProxyRegistry.set(e,r)),(i=r.get(t))||(i=new Map,r.set(t,i)),i.set(n,o),o}}]),e}();function oa(e){var t=e.split(":");return t.length>1?t[0]+":"+t[1]:t[0]}var aa=function(){function e(t){h(this,e),this.conversionApi=Object.assign({dispatcher:this},t),this._reconversionEventsMapping=new Map}return m(e,[{key:"convertChanges",value:function(e,t,n){var r,i=l(e.getMarkersToRemove());try{for(i.s();!(r=i.n()).done;){var o=r.value;this.convertMarkerRemove(o.name,o.range,n)}}catch(e){i.e(e)}finally{i.f()}var a,s=l(this._mapChangesWithAutomaticReconversion(e));try{for(s.s();!(a=s.n()).done;){var c=a.value;"insert"===c.type?this.convertInsert(na._createFromPositionAndShift(c.position,c.length),n):"remove"===c.type?this.convertRemove(c.position,c.length,c.name,n):"reconvert"===c.type?this.reconvertElement(c.element,n):this.convertAttribute(c.range,c.attributeKey,c.attributeOldValue,c.attributeNewValue,n)}}catch(e){s.e(e)}finally{s.f()}var u,d=l(this.conversionApi.mapper.flushUnboundMarkerNames());try{for(d.s();!(u=d.n()).done;){var f=u.value,h=t.get(f).getRange();this.convertMarkerRemove(f,h,n),this.convertMarkerAdd(f,h,n)}}catch(e){d.e(e)}finally{d.f()}var p,m=l(e.getMarkersToAdd());try{for(m.s();!(p=m.n()).done;){var v=p.value;this.convertMarkerAdd(v.name,v.range,n)}}catch(e){m.e(e)}finally{m.f()}}},{key:"convertInsert",value:function(e,t){this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(e);var n,r=l(Array.from(e).map(ca));try{for(r.s();!(n=r.n()).done;){var i=n.value;this._convertInsertWithAttributes(i)}}catch(e){r.e(e)}finally{r.f()}this._clearConversionApi()}},{key:"convertRemove",value:function(e,t,n,r){this.conversionApi.writer=r,this.fire("remove:"+n,{position:e,length:t},this.conversionApi),this._clearConversionApi()}},{key:"convertAttribute",value:function(e,t,n,r,i){this.conversionApi.writer=i,this.conversionApi.consumable=this._createConsumableForRange(e,"attribute:"+t);var o,a=l(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,c={item:s.item,range:na._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:t,attributeOldValue:n,attributeNewValue:r};this._testAndFire("attribute:"+t,c)}}catch(e){a.e(e)}finally{a.f()}this._clearConversionApi()}},{key:"reconvertElement",value:function(e,t){var n=na._createOn(e);this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(n);var r=this.conversionApi.mapper,i=r.toViewElement(e);t.remove(i),this._convertInsertWithAttributes({item:e,range:n});var o,a=r.toViewElement(e),s=l(na._createIn(e));try{for(s.s();!(o=s.n()).done;){var c=o.value,u=c.item,d=la(u,r);d?d.root!==a.root&&t.move(t.createRangeOn(d),r.toViewPosition(Jo._createBefore(u))):this._convertInsertWithAttributes(ca(c))}}catch(e){s.e(e)}finally{s.f()}r.unbindViewElement(i),this._clearConversionApi()}},{key:"convertSelection",value:function(e,t,n){var r=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(e,r),this.fire("selection",{selection:e},this.conversionApi),e.isCollapsed){var i,o=l(r);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.getRange();if(sa(e.getFirstPosition(),a,this.conversionApi.mapper)){var c={item:e,markerName:a.name,markerRange:s};this.conversionApi.consumable.test(e,"addMarker:"+a.name)&&this.fire("addMarker:"+a.name,c,this.conversionApi)}}}catch(e){o.e(e)}finally{o.f()}var u,d=l(e.getAttributeKeys());try{for(d.s();!(u=d.n()).done;){var f=u.value,h={item:e,range:e.getFirstRange(),attributeKey:f,attributeOldValue:null,attributeNewValue:e.getAttribute(f)};this.conversionApi.consumable.test(e,"attribute:"+h.attributeKey)&&this.fire("attribute:"+h.attributeKey+":$text",h,this.conversionApi)}}catch(e){d.e(e)}finally{d.f()}this._clearConversionApi()}}},{key:"convertMarkerAdd",value:function(e,t,n){if(t.root.document&&"$graveyard"!=t.root.rootName){this.conversionApi.writer=n;var r="addMarker:"+e,i=new ia;if(i.add(t,r),this.conversionApi.consumable=i,this.fire(r,{markerName:e,markerRange:t},this.conversionApi),i.test(t,r)){this.conversionApi.consumable=this._createConsumableForRange(t,r);var o,a=l(t.getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(this.conversionApi.consumable.test(s,r)){var c={item:s,range:na._createOn(s),markerName:e,markerRange:t};this.fire(r,c,this.conversionApi)}}}catch(e){a.e(e)}finally{a.f()}this._clearConversionApi()}}}},{key:"convertMarkerRemove",value:function(e,t,n){t.root.document&&"$graveyard"!=t.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+e,{markerName:e,markerRange:t},this.conversionApi),this._clearConversionApi())}},{key:"_mapReconversionTriggerEvent",value:function(e,t){this._reconversionEventsMapping.set(t,e)}},{key:"_createInsertConsumable",value:function(e){var t,n=new ia,r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value.item;n.add(i,"insert");var o,a=l(i.getAttributeKeys());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.add(i,"attribute:"+s)}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"_createConsumableForRange",value:function(e,t){var n,r=new ia,i=l(e.getItems());try{for(i.s();!(n=i.n()).done;){var o=n.value;r.add(o,t)}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_createSelectionConsumable",value:function(e,t){var n=new ia;n.add(e,"selection");var r,i=l(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.add(e,"addMarker:"+o.name)}}catch(e){i.e(e)}finally{i.f()}var a,s=l(e.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var c=a.value;n.add(e,"attribute:"+c)}}catch(e){s.e(e)}finally{s.f()}return n}},{key:"_testAndFire",value:function(e,t){this.conversionApi.consumable.test(t.item,e)&&this.fire(function(e,t){var n=t.item.name||"$text";return"".concat(e,":").concat(n)}(e,t),t,this.conversionApi)}},{key:"_clearConversionApi",value:function(){delete this.conversionApi.writer,delete this.conversionApi.consumable}},{key:"_convertInsertWithAttributes",value:function(e){this._testAndFire("insert",e);var t,n=l(e.item.getAttributeKeys());try{for(n.s();!(t=n.n()).done;){var r=t.value;e.attributeKey=r,e.attributeOldValue=null,e.attributeNewValue=e.item.getAttribute(r),this._testAndFire("attribute:"+r,e)}}catch(e){n.e(e)}finally{n.f()}}},{key:"_mapChangesWithAutomaticReconversion",value:function(e){var t,n=new Set,r=[],i=l(e.getChanges());try{for(i.s();!(t=i.n()).done;){var o=t.value,a=o.position||o.range.start,s=a.parent;if(Zo(a,s))r.push(o);else{var c="attribute"===o.type?ea(a,s,null):s;if(c.is("$text"))r.push(o);else{var u;if(u="attribute"===o.type?"attribute:".concat(o.attributeKey,":").concat(c.name):"".concat(o.type,":").concat(o.name),this._isReconvertTriggerEvent(u,c.name)){if(n.has(c))continue;n.add(c),r.push({type:"reconvert",element:c})}else r.push(o)}}}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_isReconvertTriggerEvent",value:function(e,t){return this._reconversionEventsMapping.get(e)===t}}]),e}();function sa(e,t,n){var r=t.getRange(),i=Array.from(e.getAncestors());return i.shift(),i.reverse(),!i.some((function(e){if(r.containsItem(e))return!!n.toViewElement(e).getCustomProperty("addHighlight")}))}function ca(e){return{item:e.item,range:na._createFromPositionAndShift(e.previousPosition,e.length)}}function la(e,t){if(e.is("textProxy")){var n=t.toViewPosition(Jo._createBefore(e)).parent;return n.is("$text")?n:null}return t.toViewElement(e)}sn(aa,Xt);var ua=function(){function e(t,n,r){h(this,e),this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,t&&this.setTo(t,n,r)}return m(e,[{key:"isEqual",value:function(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=l(this._ranges);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=!1,a=l(e._ranges);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(i.isEqual(s)){o=!0;break}}}catch(e){a.e(e)}finally{a.f()}if(!o)return!1}}catch(e){n.e(e)}finally{n.f()}return!0}},{key:"getRanges",value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,new na(r.start,r.end);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=l(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.start.isBefore(t.start)||(t=r)}}catch(e){n.e(e)}finally{n.f()}return t?new na(t.start,t.end):null}},{key:"getLastRange",value:function(){var e,t=null,n=l(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.end.isAfter(t.end)||(t=r)}}catch(e){n.e(e)}finally{n.f()}return t?new na(t.start,t.end):null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"setTo",value:function(t,n,r){if(null===t)this._setRanges([]);else if(t instanceof e)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof na)this._setRanges([t],!!n&&!!n.backward);else if(t instanceof Jo)this._setRanges([new na(t)]);else if(t instanceof qo){var i,o=!!r&&!!r.backward;if("in"==n)i=na._createIn(t);else if("on"==n)i=na._createOn(t);else{if(void 0===n)throw new Kt.a("model-selection-setto-required-second-parameter",[this,t]);i=new na(Jo._createAt(t,n))}this._setRanges([i],o)}else{if(!an(t))throw new Kt.a("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,n&&!!n.backward)}}},{key:"_setRanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(e=Array.from(e)).some((function(n){if(!(n instanceof na))throw new Kt.a("model-selection-set-ranges-not-range",[t,e]);return t._ranges.every((function(e){return!e.isEqual(n)}))}));if(e.length!==this._ranges.length||r){this._removeAllRanges();var i,o=l(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._pushRange(a)}}catch(e){o.e(e)}finally{o.f()}this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0})}}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new Kt.a("model-selection-setfocus-no-ranges",[this,e]);var n=Jo._createAt(e,t);if("same"!=n.compareWith(this.focus)){var r=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(r)?(this._pushRange(new na(n,r)),this._lastRangeBackward=!0):(this._pushRange(new na(r,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"removeAttribute",value:function(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"setAttribute",value:function(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"is",value:function(e){return"selection"===e||"model:selection"===e}},{key:"getSelectedBlocks",value:o.a.mark((function e(){var t,n,r,i,a,s,c,u,d,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new WeakSet,n=l(this.getRanges()),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=38;break}if(i=r.value,a=ha(i.start,t),e.t0=a&&pa(a,i),!e.t0){e.next=11;break}return e.next=11,a;case 11:s=l(i.getWalker()),e.prev=12,s.s();case 14:if((c=s.n()).done){e.next=23;break}if(u=c.value,d=u.item,e.t1="elementEnd"==u.type&&fa(d,t,i),!e.t1){e.next=21;break}return e.next=21,d;case 21:e.next=14;break;case 23:e.next=28;break;case 25:e.prev=25,e.t2=e.catch(12),s.e(e.t2);case 28:return e.prev=28,s.f(),e.finish(28);case 31:if(f=ha(i.end,t),e.t3=f&&!i.end.isTouching(Jo._createAt(f,0))&&pa(f,i),!e.t3){e.next=36;break}return e.next=36,f;case 36:e.next=4;break;case 38:e.next=43;break;case 40:e.prev=40,e.t4=e.catch(2),n.e(e.t4);case 43:return e.prev=43,n.f(),e.finish(43);case 46:case"end":return e.stop()}}),e,this,[[2,40,43,46],[12,25,28,31]])}))},{key:"containsEntireContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root,t=Jo._createAt(e,0),n=Jo._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}},{key:"_pushRange",value:function(e){this._checkRange(e),this._ranges.push(new na(e.start,e.end))}},{key:"_checkRange",value:function(e){for(var t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new Kt.a("model-selection-range-intersects",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}},{key:"_removeAllRanges",value:function(){for(;this._ranges.length>0;)this._popRange()}},{key:"_popRange",value:function(){this._ranges.pop()}},{key:"anchor",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}},{key:"focus",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}},{key:"isCollapsed",get:function(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}}]),e}();function da(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&e.parent)}function fa(e,t,n){return da(e,t)&&pa(e,n)}function ha(e,t){var n=e.parent.root.document.model.schema,r=e.parent.getAncestors({parentFirst:!0,includeSelf:!0}),i=!1,o=r.find((function(e){return!i&&(!(i=n.isLimit(e))&&da(e,t))}));return r.forEach((function(e){return t.add(e)})),o}function pa(e,t){var n=function(e){for(var t=e.root.document.model.schema,n=e.parent;n;){if(t.isBlock(n))return n;n=n.parent}}(e);return!n||!t.containsRange(na._createOn(n),!0)}sn(ua,Xt);var ma=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),i=t.call(this,e,r),va.call(y(i)),i}return m(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e}},{key:"toRange",value:function(){return new na(this.start,this.end)}}],[{key:"fromRange",value:function(e){return new n(e.start,e.end)}}]),n}(na);function va(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var r=n[0];r.isDocumentOperation&&ga.call(e,r)}),{priority:"low"})}function ga(e){var t=this.getTransformedByOperation(e),n=na._createFromRanges(t),r=!n.isEqual(this),i=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e),o=null;if(r){"$graveyard"==n.root.rootName&&(o="remove"==e.type?e.sourcePosition:e.deletionPosition);var a=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",a,{deletionPosition:o})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:o})}sn(ma,Xt);var ba="selection:",ya=function(){function e(t){h(this,e),this._selection=new ka(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}return m(e,[{key:"getRanges",value:function(){return this._selection.getRanges()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getSelectedBlocks",value:function(){return this._selection.getSelectedBlocks()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"containsEntireContent",value:function(e){return this._selection.containsEntireContent(e)}},{key:"destroy",value:function(){this._selection.destroy()}},{key:"getAttributeKeys",value:function(){return this._selection.getAttributeKeys()}},{key:"getAttributes",value:function(){return this._selection.getAttributes()}},{key:"getAttribute",value:function(e){return this._selection.getAttribute(e)}},{key:"hasAttribute",value:function(e){return this._selection.hasAttribute(e)}},{key:"refresh",value:function(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}},{key:"is",value:function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setAttribute",value:function(e,t){this._selection.setAttribute(e,t)}},{key:"_removeAttribute",value:function(e){this._selection.removeAttribute(e)}},{key:"_getStoredAttributes",value:function(){return this._selection._getStoredAttributes()}},{key:"_overrideGravity",value:function(){return this._selection.overrideGravity()}},{key:"_restoreGravity",value:function(e){this._selection.restoreGravity(e)}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"hasOwnRange",get:function(){return this._selection.hasOwnRange}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"isGravityOverridden",get:function(){return this._selection.isGravityOverridden}},{key:"markers",get:function(){return this._selection.markers}},{key:"_ranges",get:function(){return this._selection._ranges}}],[{key:"_getStoreAttributeKey",value:function(e){return ba+e}},{key:"_isStoreAttributeKey",value:function(e){return e.startsWith(ba)}}]),e}();sn(ya,Xt);var ka=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this)).markers=new cn({idProperty:"name"}),r._model=e.model,r._document=e,r._attributePriority=new Map,r._selectionRestorePosition=null,r._hasChangedRange=!1,r._overriddenGravityRegister=new Set,r.listenTo(r._model,"applyOperation",(function(e,t){var n=t[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==r._ranges.length&&r._selectionRestorePosition&&r._fixGraveyardSelection(r._selectionRestorePosition),r._selectionRestorePosition=null,r._hasChangedRange&&(r._hasChangedRange=!1,r.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),r.on("change:range",(function(){var e,t=l(r.getRanges());try{for(t.s();!(e=t.n()).done;){var n=e.value;if(!r._document._validateSelectionRange(n))throw new Kt.a("document-selection-wrong-position",y(r),{range:n})}}catch(e){t.e(e)}finally{t.f()}})),r.listenTo(r._model.markers,"update",(function(){return r._updateMarkers()})),r.listenTo(r._document,"change",(function(e,t){!function(e,t){var n,r=l(e.document.differ.getChanges());try{var i=function(){var r=n.value;if("insert"!=r.type)return"continue";var i=r.position.parent;r.length===i.maxOffset&&e.enqueueChange(t,(function(e){var t,n=l(Array.from(i.getAttributeKeys()).filter((function(e){return e.startsWith(ba)})));try{for(n.s();!(t=n.n()).done;){var r=t.value;e.removeAttribute(r,i)}}catch(e){n.e(e)}finally{n.f()}}))};for(r.s();!(n=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}}(r._model,t)})),r}return m(n,[{key:"destroy",value:function(){for(var e=0;e<this._ranges.length;e++)this._ranges[e].detach();this.stopListening()}},{key:"getRanges",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._ranges.length){e.next=4;break}return e.delegateYield(s(A(n.prototype),"getRanges",this).call(this),"t0",2);case 2:e.next=6;break;case 4:return e.next=6,this._document._getDefaultRange();case 6:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return s(A(n.prototype),"getFirstRange",this).call(this)||this._document._getDefaultRange()}},{key:"getLastRange",value:function(){return s(A(n.prototype),"getLastRange",this).call(this)||this._document._getDefaultRange()}},{key:"setTo",value:function(e,t,r){s(A(n.prototype),"setTo",this).call(this,e,t,r),this._updateAttributes(!0),this._updateMarkers()}},{key:"setFocus",value:function(e,t){s(A(n.prototype),"setFocus",this).call(this,e,t),this._updateAttributes(!0),this._updateMarkers()}},{key:"setAttribute",value:function(e,t){if(this._setAttribute(e,t)){var n=[e];this.fire("change:attribute",{attributeKeys:n,directChange:!0})}}},{key:"removeAttribute",value:function(e){if(this._removeAttribute(e)){var t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}},{key:"overrideGravity",value:function(){var e=Wt();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}},{key:"restoreGravity",value:function(e){if(!this._overriddenGravityRegister.has(e))throw new Kt.a("document-selection-gravity-wrong-restore",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}},{key:"_popRange",value:function(){this._ranges.pop().detach()}},{key:"_pushRange",value:function(e){var t=this._prepareRange(e);t&&this._ranges.push(t)}},{key:"_prepareRange",value:function(e){var t=this;if(this._checkRange(e),e.root!=this._document.graveyard){var n=ma.fromRange(e);return n.on("change:range",(function(e,r,i){if(t._hasChangedRange=!0,n.root==t._document.graveyard){t._selectionRestorePosition=i.deletionPosition;var o=t._ranges.indexOf(n);t._ranges.splice(o,1),n.detach()}})),n}}},{key:"_updateMarkers",value:function(){var e,t=[],n=!1,r=l(this._model.markers);try{for(r.s();!(e=r.n()).done;){var i,o=e.value,a=o.getRange(),s=l(this.getRanges());try{for(s.s();!(i=s.n()).done;){var c=i.value;a.containsRange(c,!c.isCollapsed)&&t.push(o)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){r.e(e)}finally{r.f()}for(var u=Array.from(this.markers),d=0,f=t;d<f.length;d++){var h=f[d];this.markers.has(h)||(this.markers.add(h),n=!0)}for(var p=0,m=Array.from(this.markers);p<m.length;p++){var v=m[p];t.includes(v)||(this.markers.remove(v),n=!0)}n&&this.fire("change:marker",{oldMarkers:u,directChange:!1})}},{key:"_updateAttributes",value:function(e){var t=kn(this._getSurroundingAttributes()),n=kn(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else{var r,i=l(this._attributePriority);try{for(i.s();!(r=i.n()).done;){var o=c(r.value,2),a=o[0];"low"==o[1]&&(this._attrs.delete(a),this._attributePriority.delete(a))}}catch(e){i.e(e)}finally{i.f()}}this._setAttributesTo(t);var s,u=[],d=l(this.getAttributes());try{for(d.s();!(s=d.n()).done;){var f=c(s.value,2),h=f[0],p=f[1];n.has(h)&&n.get(h)===p||u.push(h)}}catch(e){d.e(e)}finally{d.f()}var m,v=l(n);try{for(v.s();!(m=v.n()).done;){var g=c(m.value,1)[0];this.hasAttribute(g)||u.push(g)}}catch(e){v.e(e)}finally{v.f()}u.length>0&&this.fire("change:attribute",{attributeKeys:u,directChange:!1})}},{key:"_setAttribute",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=r?"normal":"low";return("low"!=i||"normal"!=this._attributePriority.get(e))&&(s(A(n.prototype),"getAttribute",this).call(this,e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,i),!0))}},{key:"_removeAttribute",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t?"normal":"low";return!("low"==r&&"normal"==this._attributePriority.get(e)||(this._attributePriority.set(e,r),!s(A(n.prototype),"hasAttribute",this).call(this,e)||(this._attrs.delete(e),0)))}},{key:"_setAttributesTo",value:function(e){var t,n=new Set,r=l(this.getAttributes());try{for(r.s();!(t=r.n()).done;){var i=c(t.value,2),o=i[0],a=i[1];e.get(o)!==a&&this._removeAttribute(o,!1)}}catch(e){r.e(e)}finally{r.f()}var s,u=l(e);try{for(u.s();!(s=u.n()).done;){var d=c(s.value,2),f=d[0],h=d[1];this._setAttribute(f,h,!1)&&n.add(f)}}catch(e){u.e(e)}finally{u.f()}return n}},{key:"_getStoredAttributes",value:o.a.mark((function e(){var t,n,r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getFirstPosition().parent,!this.isCollapsed||!t.isEmpty){e.next=21;break}n=l(t.getAttributeKeys()),e.prev=3,n.s();case 5:if((r=n.n()).done){e.next=13;break}if(!(i=r.value).startsWith(ba)){e.next=11;break}return a=i.substr(ba.length),e.next=11,[a,t.getAttribute(i)];case 11:e.next=5;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[3,15,18,21]])}))},{key:"_getSurroundingAttributes",value:function(){var e=this.getFirstPosition(),t=this._model.schema,n=null;if(this.isCollapsed){var r=e.textNode?e.textNode:e.nodeBefore,i=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=wa(r)),n||(n=wa(i)),!this.isGravityOverridden&&!n)for(var o=r;o&&!t.isInline(o)&&!n;)n=wa(o=o.previousSibling);if(!n)for(var a=i;a&&!t.isInline(a)&&!n;)n=wa(a=a.nextSibling);n||(n=this._getStoredAttributes())}else{var s,c=l(this.getFirstRange());try{for(c.s();!(s=c.n()).done;){var u=s.value;if(u.item.is("element")&&t.isObject(u.item))break;if("text"==u.type){n=u.item.getAttributes();break}}}catch(e){c.e(e)}finally{c.f()}}return n}},{key:"_fixGraveyardSelection",value:function(e){var t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}},{key:"isCollapsed",get:function(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:s(A(n.prototype),"isCollapsed",this)}},{key:"anchor",get:function(){return s(A(n.prototype),"anchor",this)||this._document._getDefaultRange().start}},{key:"focus",get:function(){return s(A(n.prototype),"focus",this)||this._document._getDefaultRange().end}},{key:"rangeCount",get:function(){return this._ranges.length?this._ranges.length:1}},{key:"hasOwnRange",get:function(){return this._ranges.length>0}},{key:"isGravityOverridden",get:function(){return!!this._overriddenGravityRegister.size}}]),n}(ua);function wa(e){return e instanceof Yo||e instanceof Wo?e.getAttributes():null}var _a=function(){function e(t){h(this,e),this._dispatchers=t}return m(e,[{key:"add",value:function(e){var t,n=l(this._dispatchers);try{for(n.s();!(t=n.n()).done;){e(t.value)}}catch(e){n.e(e)}finally{n.f()}return this}}]),e}(),Ca=function(e){return Bt(e,5)},Aa=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"elementToElement",value:function(e){return this.add(function(e){return(e=Ca(e)).view=Ma(e.view,"container"),function(t){var n;if(t.on("insert:"+e.model,(n=e.view,function(e,t,r){var i=n(t.item,r);if(i&&r.consumable.consume(t.item,"insert")){var o=r.mapper.toViewPosition(t.range.start);r.mapper.bindElements(t.item,i),r.writer.insert(o,i)}}),{priority:e.converterPriority||"normal"}),e.triggerBy){if(e.triggerBy.attributes){var r,i=l(e.triggerBy.attributes);try{for(i.s();!(r=i.n()).done;){var o=r.value;t._mapReconversionTriggerEvent(e.model,"attribute:".concat(o,":").concat(e.model))}}catch(e){i.e(e)}finally{i.f()}}if(e.triggerBy.children){var a,s=l(e.triggerBy.children);try{for(s.s();!(a=s.n()).done;){var c=a.value;t._mapReconversionTriggerEvent(e.model,"insert:"+c),t._mapReconversionTriggerEvent(e.model,"remove:"+c)}}catch(e){s.e(e)}finally{s.f()}}}}}(e))}},{key:"attributeToElement",value:function(e){return this.add(function(e){var t="attribute:"+((e=Ca(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,r=l(e.model.values);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.view[i]=Ma(e.view[i],"attribute")}}catch(e){r.e(e)}finally{r.f()}}else e.view=Ma(e.view,"attribute");var o=Ea(e);return function(n){n.on(t,function(e){return function(t,n,r){var i=e(n.attributeOldValue,r),o=e(n.attributeNewValue,r);if((i||o)&&r.consumable.consume(n.item,t.name)){var a=r.writer,s=a.document.selection;if(n.item instanceof ua||n.item instanceof ya)a.wrap(s.getFirstRange(),o);else{var c=r.mapper.toViewRange(n.range);null!==n.attributeOldValue&&i&&(c=a.unwrap(c,i)),null!==n.attributeNewValue&&o&&a.wrap(c,o)}}}}(o),{priority:e.converterPriority||"normal"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){var t="attribute:"+((e=Ca(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,r=l(e.model.values);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.view[i]=Ta(e.view[i])}}catch(e){r.e(e)}finally{r.f()}}else e.view=Ta(e.view);var o=Ea(e);return function(n){var r;n.on(t,(r=o,function(e,t,n){var i=r(t.attributeOldValue,n),o=r(t.attributeNewValue,n);if((i||o)&&n.consumable.consume(t.item,e.name)){var a=n.mapper.toViewElement(t.item),s=n.writer;if(!a)throw new Kt.a("conversion-attribute-to-attribute-on-text",[t,n]);if(null!==t.attributeOldValue&&i)if("class"==i.key){var c,u=l(Array.isArray(i.value)?i.value:[i.value]);try{for(u.s();!(c=u.n()).done;){var d=c.value;s.removeClass(d,a)}}catch(e){u.e(e)}finally{u.f()}}else if("style"==i.key)for(var f=0,h=Object.keys(i.value);f<h.length;f++){var p=h[f];s.removeStyle(p,a)}else s.removeAttribute(i.key,a);if(null!==t.attributeNewValue&&o)if("class"==o.key){var m,v=l(Array.isArray(o.value)?o.value:[o.value]);try{for(v.s();!(m=v.n()).done;){var g=m.value;s.addClass(g,a)}}catch(e){v.e(e)}finally{v.f()}}else if("style"==o.key)for(var b=0,y=Object.keys(o.value);b<y.length;b++){var k=y[b];s.setStyle(k,o.value[k],a)}else s.setAttribute(o.key,o.value,a)}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToElement",value:function(e){return this.add(function(e){return(e=Ca(e)).view=Ma(e.view,"ui"),function(t){var n;t.on("addMarker:"+e.model,(n=e.view,function(e,t,r){t.isOpening=!0;var i=n(t,r);t.isOpening=!1;var o=n(t,r);if(i&&o){var a=t.markerRange;if(!a.isCollapsed||r.consumable.consume(a,e.name)){var s,c=l(a);try{for(c.s();!(s=c.n()).done;){var u=s.value;if(!r.consumable.consume(u.item,e.name))return}}catch(e){c.e(e)}finally{c.f()}var d=r.mapper,f=r.writer;f.insert(d.toViewPosition(a.start),i),r.mapper.bindElementToMarker(i,t.markerName),a.isCollapsed||(f.insert(d.toViewPosition(a.end),o),r.mapper.bindElementToMarker(o,t.markerName)),e.stop()}}}),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,(e.view,function(e,t,n){var r=n.mapper.markerNameToElements(t.markerName);if(r){var i,o=l(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;n.mapper.unbindElementFromMarkerName(a,t.markerName),n.writer.clear(n.writer.createRangeOn(a),a)}}catch(e){o.e(e)}finally{o.f()}n.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToHighlight",value:function(e){return this.add(function(e){return function(t){var n;t.on("addMarker:"+e.model,(n=e.view,function(e,t,r){if(t.item&&(t.item instanceof ua||t.item instanceof ya||t.item.is("$textProxy"))){var i=Da(n,t,r);if(i&&r.consumable.consume(t.item,e.name)){var o=r.writer,a=xa(o,i),s=o.document.selection;if(t.item instanceof ua||t.item instanceof ya)o.wrap(s.getFirstRange(),a,s);else{var c,u=r.mapper.toViewRange(t.range),d=l(o.wrap(u,a).getItems());try{for(d.s();!(c=d.n()).done;){var f=c.value;if(f.is("attributeElement")&&f.isSimilar(a)){r.mapper.bindElementToMarker(f,t.markerName);break}}}catch(e){d.e(e)}finally{d.f()}}}}}),{priority:e.converterPriority||"normal"}),t.on("addMarker:"+e.model,function(e){return function(t,n,r){if(n.item&&n.item instanceof Go){var i=Da(e,n,r);if(i&&r.consumable.test(n.item,t.name)){var o=r.mapper.toViewElement(n.item);if(o&&o.getCustomProperty("addHighlight")){r.consumable.consume(n.item,t.name);var a,s=l(na._createIn(n.item));try{for(s.s();!(a=s.n()).done;){var c=a.value;r.consumable.consume(c.item,t.name)}}catch(e){s.e(e)}finally{s.f()}o.getCustomProperty("addHighlight")(o,i,r.writer),r.mapper.bindElementToMarker(o,n.markerName)}}}}}(e.view),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,function(e){return function(t,n,r){if(!n.markerRange.isCollapsed){var i=Da(e,n,r);if(i){var o=xa(r.writer,i),a=r.mapper.markerNameToElements(n.markerName);if(a){var s,c=l(a);try{for(c.s();!(s=c.n()).done;){var u=s.value;r.mapper.unbindElementFromMarkerName(u,n.markerName),u.is("attributeElement")?r.writer.unwrap(r.writer.createRangeOn(u),o):u.getCustomProperty("removeHighlight")(u,i.id,r.writer)}}catch(e){c.e(e)}finally{c.f()}r.writer.clearClonedElementsGroup(n.markerName),t.stop()}}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToData",value:function(e){return this.add(function(e){var t=(e=Ca(e)).model;return e.view||(e.view=function(n){return{group:t,name:n.substr(e.model.length+1)}}),function(n){var r;n.on("addMarker:"+t,(r=e.view,function(e,t,n){var i=r(t.markerName,n);if(i){var o=t.markerRange;n.consumable.consume(o,e.name)&&(Sa(o,!1,n,t,i),Sa(o,!0,n,t,i),e.stop())}}),{priority:e.converterPriority||"normal"}),n.on("removeMarker:"+t,function(e){return function(t,n,r){var i=e(n.markerName,r);if(i){var o=r.mapper.markerNameToElements(n.markerName);if(o){var a,s=l(o);try{for(s.s();!(a=s.n()).done;){var c=a.value;r.mapper.unbindElementFromMarkerName(c,n.markerName),c.is("containerElement")?(u("data-".concat(i.group,"-start-before"),c),u("data-".concat(i.group,"-start-after"),c),u("data-".concat(i.group,"-end-before"),c),u("data-".concat(i.group,"-end-after"),c)):r.writer.clear(r.writer.createRangeOn(c),c)}}catch(e){s.e(e)}finally{s.f()}r.writer.clearClonedElementsGroup(n.markerName),t.stop()}}function u(e,t){if(t.hasAttribute(e)){var n=new Set(t.getAttribute(e).split(","));n.delete(i.name),0==n.size?r.writer.removeAttribute(e,t):r.writer.setAttribute(e,Array.from(n).join(","),t)}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}}]),n}(_a);function xa(e,t){var n=e.createAttributeElement("span",t.attributes);return t.classes&&n._addClass(t.classes),t.priority&&(n._priority=t.priority),n._id=t.id,n}function Sa(e,t,n,r,i){var o,a,s=t?e.start:e.end;n.schema.checkChild(s,"$text")?function(e,t,n,r,i){var o="".concat(i.group,"-").concat(t?"start":"end"),a=i.name?{name:i.name}:null,s=n.writer.createUIElement(o,a);n.writer.insert(e,s),n.mapper.bindElementToMarker(s,r.markerName)}(n.mapper.toViewPosition(s),t,n,r,i):(t&&s.nodeAfter||!t&&!s.nodeBefore?(o=s.nodeAfter,a=!0):(o=s.nodeBefore,a=!1),function(e,t,n,r,i,o){var a="data-".concat(o.group,"-").concat(t?"start":"end","-").concat(n?"before":"after"),s=e.hasAttribute(a)?e.getAttribute(a).split(","):[];s.unshift(o.name),r.writer.setAttribute(a,s.join(","),e),r.mapper.bindElementToMarker(e,i.markerName)}(n.mapper.toViewElement(o),t,a,n,r,i))}function Ma(e,t){return"function"==typeof e?e:function(n,r){return function(e,t,n){var r;"string"==typeof e&&(e={name:e});var i=t.writer,o=Object.assign({},e.attributes);if("container"==n)r=i.createContainerElement(e.name,o);else if("attribute"==n){var a={priority:e.priority||Pr.DEFAULT_PRIORITY};r=i.createAttributeElement(e.name,o,a)}else r=i.createUIElement(e.name,o);if(e.styles)for(var s=0,c=Object.keys(e.styles);s<c.length;s++){var u=c[s];i.setStyle(u,e.styles[u],r)}if(e.classes){var d=e.classes;if("string"==typeof d)i.addClass(d,r);else{var f,h=l(d);try{for(h.s();!(f=h.n()).done;){var p=f.value;i.addClass(p,r)}}catch(e){h.e(e)}finally{h.f()}}}return r}(e,r,t)}}function Ea(e){return e.model.values?function(t,n){var r=e.view[t];return r?r(t,n):null}:e.view}function Ta(e){return"string"==typeof e?function(t){return{key:e,value:t}}:"object"==x(e)?e.value?function(){return e}:function(t){return{key:e.key,value:t}}:e}function Da(e,t,n){var r="function"==typeof e?e(t,n):e;return r?(r.priority||(r.priority=10),r.id||(r.id=t.markerName),r):null}function Oa(e){var t,n=e.model,r=n.schema,i=n.document,o=l(i.getRootNames());try{for(o.s();!(t=o.n()).done;){var a=t.value,s=i.getRoot(a);if(s.isEmpty&&!r.checkChild(s,"$text")&&r.checkChild(s,"paragraph"))return e.insertElement("paragraph",s),!0}}catch(e){o.e(e)}finally{o.f()}return!1}function Pa(e,t,n){var r=n.createContext(e);return!!n.checkChild(r,"paragraph")&&!!n.checkChild(r.push("paragraph"),t)}function Ia(e,t){var n=t.createElement("paragraph");return t.insert(n,e),t.createPositionAt(n,0)}var ja=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"elementToElement",value:function(e){return this.add(Na(e))}},{key:"elementToAttribute",value:function(e){return this.add(function(e){Ba(e=Ca(e));var t=Fa(e,!1),n=Ra(e.view),r=n?"element:"+n:"element";return function(n){n.on(r,t,{priority:e.converterPriority||"low"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){var t=null;("string"==typeof(e=Ca(e)).view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});var t,n=e.view.key;return t="class"==n||"style"==n?a({},"class"==n?"classes":"styles",e.view.value):{attributes:a({},n,void 0===e.view.value?/[\s\S]*/:e.view.value)},e.view.name&&(t.name=e.view.name),e.view=t,n}(e)),Ba(e,t);var n=Fa(e,!0);return function(t){t.on("element",n,{priority:e.converterPriority||"low"})}}(e))}},{key:"elementToMarker",value:function(e){return Object(Kt.c)("upcast-helpers-element-to-marker-deprecated"),this.add(function(e){return function(e){var t=e.model;e.model=function(e,n){var r="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":r})}}(e=Ca(e)),Na(e)}(e))}},{key:"dataToMarker",value:function(e){return this.add(function(e){(e=Ca(e)).model||(e.model=function(t){return t?e.view+":"+t:e.view});var t=La(za(e,"start")),n=La(za(e,"end"));return function(r){r.on("element:"+e.view+"-start",t,{priority:e.converterPriority||"normal"}),r.on("element:"+e.view+"-end",n,{priority:e.converterPriority||"normal"});var i=Yt.get("low"),o=Yt.get("highest"),a=Yt.get(e.converterPriority)/o;r.on("element",function(e){return function(t,n,r){var i="data-"+e.view;function o(t,i){var o,a=l(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=e.model(s,r),u=r.writer.createElement("$marker",{"data-name":c});r.writer.insert(u,t),n.modelCursor.isEqual(t)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(t,1),n.modelRange=n.modelRange._getTransformedByInsertion(t,1)[0]}}catch(e){a.e(e)}finally{a.f()}}n.modelRange||(n=Object.assign(n,r.convertChildren(n.viewItem,n.modelCursor))),r.consumable.consume(n.viewItem,{attributes:i+"-end-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(i+"-end-after").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-start-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(i+"-start-after").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-end-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(i+"-end-before").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-start-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(i+"-start-before").split(","))}}(e),{priority:i+a})}}(e))}}]),n}(_a);function Na(e){var t=La(e=Ca(e)),n=Ra(e.view),r=n?"element:"+n:"element";return function(n){n.on(r,t,{priority:e.converterPriority||"normal"})}}function Ra(e){return"string"==typeof e?e:"object"==x(e)&&"string"==typeof e.name?e.name:null}function La(e){var t=new wn(e.view);return function(n,r,i){var o=t.match(r.viewItem);if(o){var a=o.match;if(a.name=!0,i.consumable.test(r.viewItem,a)){var s=function(e,t,n){return e instanceof Function?e(t,n):n.writer.createElement(e)}(e.model,r.viewItem,i);s&&i.safeInsert(s,r.modelCursor)&&(i.consumable.consume(r.viewItem,a),i.convertChildren(r.viewItem,s),i.updateConversionResult(s,r))}}}}function Ba(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null===t||function(e){return e.getAttribute(t)},r="object"!=x(e.model)?e.model:e.model.key,i="object"!=x(e.model)||void 0===e.model.value?n:e.model.value;e.model={key:r,value:i}}function Fa(e,t){var n=new wn(e.view);return function(r,i,o){var a=n.match(i.viewItem);if(a){var s=e.model.key,c="function"==typeof e.model.value?e.model.value(i.viewItem,o):e.model.value;null!==c&&(function(e,t){var n="function"==typeof e?e(t):e;return!("object"==x(n)&&!Ra(n))&&(!n.classes&&!n.attributes&&!n.styles)}(e.view,i.viewItem)?a.match.name=!0:delete a.match.name,o.consumable.test(i.viewItem,a.match)&&(i.modelRange||(i=Object.assign(i,o.convertChildren(i.viewItem,i.modelCursor))),function(e,t,n,r){for(var i=!1,o=0,a=Array.from(e.getItems({shallow:n}));o<a.length;o++){var s=a[o];r.schema.checkAttribute(s,t.key)&&(r.writer.setAttribute(t.key,t.value,s),i=!0)}return i}(i.modelRange,{key:s,value:c},t,o)&&o.consumable.consume(i.viewItem,a.match)))}}}function za(e,t){var n={};return n.view=e.view+"-"+t,n.model=function(t,n){var r=t.getAttribute("name"),i=e.model(r,n);return n.writer.createElement("$marker",{"data-name":i})},n}var Va=function(){function e(t,n){var r=this;h(this,e),this.model=t,this.view=new Uo(n),this.mapper=new ra,this.downcastDispatcher=new aa({mapper:this.mapper,schema:t.schema});var i=this.model.document,o=i.selection,a=this.model.markers;this.listenTo(this.model,"_beforeChanges",(function(){r.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(function(){r.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(i,"change",(function(){r.view.change((function(e){r.downcastDispatcher.convertChanges(i.differ,a,e),r.downcastDispatcher.convertSelection(o,a,e)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return function(n,r){var i,o=r.newSelection,a=[],s=l(o.getRanges());try{for(s.s();!(i=s.n()).done;){var c=i.value;a.push(t.toModelRange(c))}}catch(e){s.e(e)}finally{s.f()}var u=e.createSelection(a,{backward:o.isBackward});u.isEqual(e.document.selection)||e.change((function(e){e.setSelection(u)}))}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,"insert")){var r=n.writer,i=n.mapper.toViewPosition(t.range.start),o=r.createText(t.item.data);r.insert(i,o)}}),{priority:"lowest"}),this.downcastDispatcher.on("remove",(function(e,t,n){var r,i=n.mapper.toViewPosition(t.position),o=t.position.getShiftedBy(t.length),a=n.mapper.toViewPosition(o,{isPhantom:!0}),s=n.writer.createRange(i,a),c=n.writer.remove(s.getTrimmed()),u=l(n.writer.createRangeIn(c).getItems());try{for(u.s();!(r=u.n()).done;){var d=r.value;n.mapper.unbindViewElement(d)}}catch(e){u.e(e)}finally{u.f()}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var r,i=n.writer,o=l(i.document.selection.getRanges());try{for(o.s();!(r=o.n()).done;){var a=r.value;a.isCollapsed&&a.end.parent.isAttached()&&n.writer.mergeAttributes(a.start)}}catch(e){o.e(e)}finally{o.f()}i.setSelection(null)}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var r=t.selection;if(!r.isCollapsed&&n.consumable.consume(r,"selection")){var i,o=[],a=l(r.getRanges());try{for(a.s();!(i=a.n()).done;){var s=i.value,c=n.mapper.toViewRange(s);o.push(c)}}catch(e){a.e(e)}finally{a.f()}n.writer.setSelection(o,{backward:r.isBackward})}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var r=t.selection;if(r.isCollapsed&&n.consumable.consume(r,"selection")){var i=n.writer,o=r.getFirstPosition(),a=n.mapper.toViewPosition(o),s=i.breakAttributes(a);i.setSelection(s)}}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((function(e){if("$graveyard"==e.rootName)return null;var t=new Cr(r.view.document,e.name);return t.rootName=e.rootName,r.mapper.bindElements(e,t),t}))}return m(e,[{key:"destroy",value:function(){this.view.destroy(),this.stopListening()}}]),e}();sn(Va,mr);var $a=function(){function e(){h(this,e),this._commands=new Map}return m(e,[{key:"add",value:function(e,t){this._commands.set(e,t)}},{key:"get",value:function(e){return this._commands.get(e)}},{key:"execute",value:function(e){var t=this.get(e);if(!t)throw new Kt.a("commandcollection-command-not-found",this,{commandName:e});for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.execute.apply(t,r)}},{key:"names",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._commands.keys(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"commands",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._commands.values(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:Symbol.iterator,value:function(){return this._commands[Symbol.iterator]()}},{key:"destroy",value:function(){var e,t=l(this.commands());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}}}]),e}(),Ha=function(){function e(){h(this,e),this._consumables=new Map}return m(e,[{key:"add",value:function(e,t){var n;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?n=this._consumables.get(e):(n=new Ua(e),this._consumables.set(e,n)),n.add(t))}},{key:"test",value:function(e,t){var n=this._consumables.get(e);return void 0===n?null:e.is("$text")||e.is("documentFragment")?n:n.test(t)}},{key:"consume",value:function(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}},{key:"revert",value:function(e,t){var n=this._consumables.get(e);void 0!==n&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):n.revert(t))}}],[{key:"consumablesFromElement",value:function(e){var t,n={element:e,name:!0,attributes:[],classes:[],styles:[]},r=l(e.getAttributeKeys());try{for(r.s();!(t=r.n()).done;){var i=t.value;"style"!=i&&"class"!=i&&n.attributes.push(i)}}catch(e){r.e(e)}finally{r.f()}var o,a=l(e.getClassNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.classes.push(s)}}catch(e){a.e(e)}finally{a.f()}var c,u=l(e.getStyleNames());try{for(u.s();!(c=u.n()).done;){var d=c.value;n.styles.push(d)}}catch(e){u.e(e)}finally{u.f()}return n}},{key:"createFrom",value:function(t,n){if(n||(n=new e(t)),t.is("$text"))return n.add(t),n;t.is("element")&&n.add(t,e.consumablesFromElement(t)),t.is("documentFragment")&&n.add(t);var r,i=l(t.getChildren());try{for(i.s();!(r=i.n()).done;){var o=r.value;n=e.createFrom(o,n)}}catch(e){i.e(e)}finally{i.f()}return n}}]),e}(),Ua=function(){function e(t){h(this,e),this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}return m(e,[{key:"add",value:function(e){for(var t in e.name&&(this._canConsumeName=!0),this._consumables)t in e&&this._add(t,e[t])}},{key:"test",value:function(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(var t in this._consumables)if(t in e){var n=this._test(t,e[t]);if(!0!==n)return n}return!0}},{key:"consume",value:function(e){for(var t in e.name&&(this._canConsumeName=!1),this._consumables)t in e&&this._consume(t,e[t])}},{key:"revert",value:function(e){for(var t in e.name&&(this._canConsumeName=!0),this._consumables)t in e&&this._revert(t,e[t])}},{key:"_add",value:function(e,t){var n,r=Se(t)?t:[t],i=this._consumables[e],o=l(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"===e&&("class"===a||"style"===a))throw new Kt.a("viewconsumable-invalid-attribute",this);if(i.set(a,!0),"styles"===e){var s,c=l(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(c.s();!(s=c.n()).done;){var u=s.value;i.set(u,!0)}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){o.e(e)}finally{o.f()}}},{key:"_test",value:function(e,t){var n,r=Se(t)?t:[t],i=this._consumables[e],o=l(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==e||"class"!==a&&"style"!==a){var s=i.get(a);if(void 0===s)return null;if(!s)return!1}else{var c="class"==a?"classes":"styles",d=this._test(c,u(this._consumables[c].keys()));if(!0!==d)return d}}}catch(e){o.e(e)}finally{o.f()}return!0}},{key:"_consume",value:function(e,t){var n,r=Se(t)?t:[t],i=this._consumables[e],o=l(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==e||"class"!==a&&"style"!==a){if(i.set(a,!1),"styles"==e){var s,c=l(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(c.s();!(s=c.n()).done;){var d=s.value;i.set(d,!1)}}catch(e){c.e(e)}finally{c.f()}}}else{var f="class"==a?"classes":"styles";this._consume(f,u(this._consumables[f].keys()))}}}catch(e){o.e(e)}finally{o.f()}}},{key:"_revert",value:function(e,t){var n,r=Se(t)?t:[t],i=this._consumables[e],o=l(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==e||"class"!==a&&"style"!==a)!1===i.get(a)&&i.set(a,!0);else{var s="class"==a?"classes":"styles";this._revert(s,u(this._consumables[s].keys()))}}}catch(e){o.e(e)}finally{o.f()}}}]),e}(),qa=function(){function e(){var t=this;h(this,e),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(function(e,t){t[0]=new Wa(t[0])}),{priority:"highest"}),this.on("checkChild",(function(e,n){n[0]=new Wa(n[0]),n[1]=t.getDefinition(n[1])}),{priority:"highest"})}return m(e,[{key:"register",value:function(e,t){if(this._sourceDefinitions[e])throw new Kt.a("schema-cannot-register-item-twice",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}},{key:"extend",value:function(e,t){if(!this._sourceDefinitions[e])throw new Kt.a("schema-cannot-extend-missing-item",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}},{key:"getDefinitions",value:function(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}},{key:"getDefinition",value:function(e){var t;return t="string"==typeof e?e:e.is&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}},{key:"isRegistered",value:function(e){return!!this.getDefinition(e)}},{key:"isBlock",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isBlock)}},{key:"isLimit",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isLimit&&!t.isObject)}},{key:"isObject",value:function(e){var t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}},{key:"isInline",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isInline)}},{key:"isSelectable",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isSelectable&&!t.isObject)}},{key:"isContent",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isContent&&!t.isObject)}},{key:"checkChild",value:function(e,t){return!!t&&this._checkContextMatch(t,e)}},{key:"checkAttribute",value:function(e,t){var n=this.getDefinition(e.last);return!!n&&n.allowAttributes.includes(t)}},{key:"checkMerge",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e instanceof Jo){var n=e.nodeBefore,r=e.nodeAfter;if(!(n instanceof Go))throw new Kt.a("schema-check-merge-no-element-before",this);if(!(r instanceof Go))throw new Kt.a("schema-check-merge-no-element-after",this);return this.checkMerge(n,r)}var i,o=l(t.getChildren());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!this.checkChild(e,a))return!1}}catch(e){o.e(e)}finally{o.f()}return!0}},{key:"addChildCheck",value:function(e){this.on("checkChild",(function(t,n){var r=c(n,2),i=r[0],o=r[1];if(o){var a=e(i,o);"boolean"==typeof a&&(t.stop(),t.return=a)}}),{priority:"high"})}},{key:"addAttributeCheck",value:function(e){this.on("checkAttribute",(function(t,n){var r=c(n,2),i=r[0],o=r[1],a=e(i,o);"boolean"==typeof a&&(t.stop(),t.return=a)}),{priority:"high"})}},{key:"setAttributeProperties",value:function(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}},{key:"getAttributeProperties",value:function(e){return this._attributeProperties[e]||{}}},{key:"getLimitElement",value:function(e){var t;for(t=e instanceof Jo?e.parent:(e instanceof na?[e]:Array.from(e.getRanges())).reduce((function(e,t){var n=t.getCommonAncestor();return e?e.getCommonAncestor(n,{includeSelf:!0}):n}),null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}},{key:"checkAttributeInSelection",value:function(e,t){if(e.isCollapsed){var n=[].concat(u(e.getFirstPosition().getAncestors()),[new Wo("",e.getAttributes())]);return this.checkAttribute(n,t)}var r,i=l(e.getRanges());try{for(i.s();!(r=i.n()).done;){var o,a=l(r.value);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(this.checkAttribute(s.item,t))return!0}}catch(e){a.e(e)}finally{a.f()}}}catch(e){i.e(e)}finally{i.f()}return!1}},{key:"getValidRanges",value:o.a.mark((function e(t,n){var r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=l(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=8;break}return i=r.value,e.delegateYield(i.getMinimalFlatRanges(),"t0",6);case 6:e.next=3;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),n.e(e.t1);case 13:return e.prev=13,n.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,10,13,16]])}))(t),r=l(t),e.prev=2,r.s();case 4:if((i=r.n()).done){e.next=9;break}return a=i.value,e.delegateYield(this._getValidRangesForRange(a,n),"t0",7);case 7:e.next=4;break;case 9:e.next=14;break;case 11:e.prev=11,e.t1=e.catch(2),r.e(e.t1);case 14:return e.prev=14,r.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[2,11,14,17]])}))},{key:"getNearestSelectionRange",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(e,"$text"))return new na(e);var a=e.getAncestors().reverse().find((function(e){return r.isLimit(e)}))||e.root;"both"!=i&&"backward"!=i||(t=new Qo({boundaries:na._createIn(a),startPosition:e,direction:"backward"})),"both"!=i&&"forward"!=i||(n=new Qo({boundaries:na._createIn(a),startPosition:e}));var s,c=l(o.a.mark((function e(t,n){var r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1;case 1:if(r){e.next=18;break}if(r=!0,!t){e.next=9;break}if(i=t.next(),e.t0=i.done,e.t0){e.next=9;break}return r=!1,e.next=9,{walker:t,value:i.value};case 9:if(!n){e.next=16;break}if(a=n.next(),e.t1=a.done,e.t1){e.next=16;break}return r=!1,e.next=16,{walker:n,value:a.value};case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e)}))(t,n));try{for(c.s();!(s=c.n()).done;){var u=s.value,d=u.walker==t?"elementEnd":"elementStart",f=u.value;if(f.type==d&&this.isObject(f.item))return na._createOn(f.item);if(this.checkChild(f.nextPosition,"$text"))return new na(f.nextPosition)}}catch(e){c.e(e)}finally{c.f()}return null}},{key:"findAllowedParent",value:function(e,t){for(var n=e.parent;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}},{key:"removeDisallowedAttributes",value:function(e,t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is("$text"))rs(this,i,t);else{var o,a=l(na._createIn(i).getPositions());try{for(a.s();!(o=a.n()).done;){var s=o.value;rs(this,s.nodeBefore||s.parent,t)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"createContext",value:function(e){return new Wa(e)}},{key:"_clearCache",value:function(){this._compiledDefinitions=null}},{key:"_compile",value:function(){for(var e={},t=this._sourceDefinitions,n=Object.keys(t),r=0,i=n;r<i.length;r++){var o=i[r];e[o]=Ya(t[o],o)}for(var a=0,s=n;a<s.length;a++){Ka(e,s[a])}for(var c=0,l=n;c<l.length;c++){Ga(e,l[c])}for(var u=0,d=n;u<d.length;u++){var f=d[u];Qa(e,f),Xa(e,f)}for(var h=0,p=n;h<p.length;h++){var m=p[h];Ja(e,m),Za(e,m)}this._compiledDefinitions=e}},{key:"_checkContextMatch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1,r=t.getItem(n);if(e.allowIn.includes(r.name)){if(0==n)return!0;var i=this.getDefinition(r);return this._checkContextMatch(i,t,n-1)}return!1}},{key:"_getValidRangesForRange",value:o.a.mark((function e(t,n){var r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.start,i=t.start,a=l(t.getItems({shallow:!0})),e.prev=2,a.s();case 4:if((s=a.n()).done){e.next=19;break}if(c=s.value,e.t0=c.is("element"),!e.t0){e.next=9;break}return e.delegateYield(this._getValidRangesForRange(na._createIn(c),n),"t1",9);case 9:if(e.t2=this.checkAttribute(c,n),e.t2){e.next=16;break}if(e.t3=r.isEqual(i),e.t3){e.next=15;break}return e.next=15,new na(r,i);case 15:r=Jo._createAfter(c);case 16:i=Jo._createAfter(c);case 17:e.next=4;break;case 19:e.next=24;break;case 21:e.prev=21,e.t4=e.catch(2),a.e(e.t4);case 24:return e.prev=24,a.f(),e.finish(24);case 27:if(e.t5=r.isEqual(i),e.t5){e.next=31;break}return e.next=31,new na(r,i);case 31:case"end":return e.stop()}}),e,this,[[2,21,24,27]])}))}]),e}();sn(qa,mr);var Wa=function(){function e(t){if(h(this,e),t instanceof e)return t;"string"==typeof t?t=[t]:Array.isArray(t)||(t=t.getAncestors({includeSelf:!0})),t[0]&&"string"!=typeof t[0]&&t[0].is("documentFragment")&&t.shift(),this._items=t.map(ns)}return m(e,[{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"push",value:function(t){var n=new e([t]);return n._items=[].concat(u(this._items),u(n._items)),n}},{key:"getItem",value:function(e){return this._items[e]}},{key:"getNames",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._items.map((function(e){return e.name})),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"endsWith",value:function(e){return Array.from(this.getNames()).join(" ").endsWith(e)}},{key:"startsWith",value:function(e){return Array.from(this.getNames()).join(" ").startsWith(e)}},{key:"length",get:function(){return this._items.length}},{key:"last",get:function(){return this._items[this._items.length-1]}}]),e}();function Ya(e,t){var n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(e,t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i,o=n.value,a=l(Object.keys(o).filter((function(e){return e.startsWith("is")})));try{for(a.s();!(i=a.n()).done;){var s=i.value;t[s]=o[s]}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}}(e,n),es(e,n,"allowIn"),es(e,n,"allowContentOf"),es(e,n,"allowWhere"),es(e,n,"allowAttributes"),es(e,n,"allowAttributesOf"),es(e,n,"inheritTypesFrom"),function(e,t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value.inheritAllFrom;i&&(t.allowContentOf.push(i),t.allowWhere.push(i),t.allowAttributesOf.push(i),t.inheritTypesFrom.push(i))}}catch(e){r.e(e)}finally{r.f()}}(e,n),n}function Ka(e,t){var n,r=l(e[t].allowContentOf);try{for(r.s();!(n=r.n()).done;){var i=n.value;e[i]&&ts(e,i).forEach((function(e){e.allowIn.push(t)}))}}catch(e){r.e(e)}finally{r.f()}delete e[t].allowContentOf}function Ga(e,t){var n,r=l(e[t].allowWhere);try{for(r.s();!(n=r.n()).done;){var i=e[n.value];if(i){var o,a=i.allowIn;(o=e[t].allowIn).push.apply(o,u(a))}}}catch(e){r.e(e)}finally{r.f()}delete e[t].allowWhere}function Qa(e,t){var n,r=l(e[t].allowAttributesOf);try{for(r.s();!(n=r.n()).done;){var i=e[n.value];if(i){var o,a=i.allowAttributes;(o=e[t].allowAttributes).push.apply(o,u(a))}}}catch(e){r.e(e)}finally{r.f()}delete e[t].allowAttributesOf}function Xa(e,t){var n,r=e[t],i=l(r.inheritTypesFrom);try{for(i.s();!(n=i.n()).done;){var o=e[n.value];if(o){var a,s=l(Object.keys(o).filter((function(e){return e.startsWith("is")})));try{for(s.s();!(a=s.n()).done;){var c=a.value;c in r||(r[c]=o[c])}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){i.e(e)}finally{i.f()}delete r.inheritTypesFrom}function Ja(e,t){var n=e[t],r=n.allowIn.filter((function(t){return e[t]}));n.allowIn=Array.from(new Set(r))}function Za(e,t){var n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function es(e,t,n){var r,i=l(e);try{for(i.s();!(r=i.n()).done;){var o,a=r.value;"string"==typeof a[n]?t[n].push(a[n]):Array.isArray(a[n])&&(o=t[n]).push.apply(o,u(a[n]))}}catch(e){i.e(e)}finally{i.f()}}function ts(e,t){var n,r=e[t];return(n=e,Object.keys(n).map((function(e){return n[e]}))).filter((function(e){return e.allowIn.includes(r.name)}))}function ns(e){return"string"==typeof e?{name:e,getAttributeKeys:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})),getAttribute:function(){}}:{name:e.is("element")?e.name:"$text",getAttributeKeys:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e.getAttributeKeys(),"t0",1);case 1:case"end":return t.stop()}}),t)})),getAttribute:function(t){return e.getAttribute(t)}}}function rs(e,t,n){var r,i=l(t.getAttributeKeys());try{for(i.s();!(r=i.n()).done;){var o=r.value;e.checkAttribute(t,o)||n.removeAttribute(o,t)}}catch(e){i.e(e)}finally{i.f()}}var is=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,e),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},t),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}return m(e,[{key:"convert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",e),this._modelCursor=function(e,t){var n,r,i=l(new Wa(e));try{for(i.s();!(r=i.n()).done;){var o,a=r.value,s={},c=l(a.getAttributeKeys());try{for(c.s();!(o=c.n()).done;){var u=o.value;s[u]=a.getAttribute(u)}}catch(e){c.e(e)}finally{c.f()}var d=t.createElement(a.name,s);n&&t.append(d,n),n=Jo._createAt(d,0)}}catch(e){i.e(e)}finally{i.f()}return n}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=Ha.createFrom(e),this.conversionApi.store={};var r=this._convertItem(e,this._modelCursor),i=r.modelRange,o=t.createDocumentFragment();if(i){this._removeEmptyElements();for(var a=0,s=Array.from(this._modelCursor.parent.getChildren());a<s.length;a++){var c=s[a];t.append(c,o)}o.markers=function(e,t){var n,r=new Set,i=new Map,o=l(na._createIn(e).getItems());try{for(o.s();!(n=o.n()).done;){var a=n.value;"$marker"==a.name&&r.add(a)}}catch(e){o.e(e)}finally{o.f()}var s,c=l(r);try{for(c.s();!(s=c.n()).done;){var u=s.value,d=u.getAttribute("data-name"),f=t.createPositionBefore(u);i.has(d)?i.get(d).end=f.clone():i.set(d,new na(f.clone())),t.remove(u)}}catch(e){c.e(e)}finally{c.f()}return i}(o,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,o}},{key:"_convertItem",value:function(e,t){var n=Object.assign({viewItem:e,modelCursor:t,modelRange:null});if(e.is("element")?this.fire("element:"+e.name,n,this.conversionApi):e.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof na))throw new Kt.a("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}},{key:"_convertChildren",value:function(e,t){for(var n=t.is("position")?t:Jo._createAt(t,0),r=new na(n),i=0,o=Array.from(e.getChildren());i<o.length;i++){var a=o[i],s=this._convertItem(a,n);s.modelRange instanceof na&&(r.end=s.modelRange.end,n=s.modelCursor)}return{modelRange:r,modelCursor:n}}},{key:"_safeInsert",value:function(e,t){var n=this._splitToAllowedParent(e,t);return!!n&&(this.conversionApi.writer.insert(e,n.position),!0)}},{key:"_updateConversionResult",value:function(e,t){var n=this._getSplitParts(e),r=this.conversionApi.writer;t.modelRange||(t.modelRange=r.createRange(r.createPositionBefore(e),r.createPositionAfter(n[n.length-1])));var i=this._cursorParents.get(e);t.modelCursor=i?r.createPositionAt(i,0):t.modelRange.end}},{key:"_splitToAllowedParent",value:function(e,t){var n=this.conversionApi,r=n.schema,i=n.writer,o=r.findAllowedParent(t,e);if(o){if(o===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(o)&&(o=null)}if(!o)return Pa(t,e,r)?{position:Ia(t,i)}:null;var a,s=this.conversionApi.writer.split(t,o),c=[],u=l(s.range.getWalker());try{for(u.s();!(a=u.n()).done;){var d=a.value;if("elementEnd"==d.type)c.push(d.item);else{var f=c.pop(),h=d.item;this._registerSplitPair(f,h)}}}catch(e){u.e(e)}finally{u.f()}var p=s.range.end.parent;return this._cursorParents.set(e,p),{position:s.position,cursorParent:p}}},{key:"_registerSplitPair",value:function(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);var n=this._splitParts.get(e);this._splitParts.set(t,n),n.push(t)}},{key:"_getSplitParts",value:function(e){return this._splitParts.has(e)?this._splitParts.get(e):[e]}},{key:"_removeEmptyElements",value:function(){var e,t=!1,n=l(this._splitParts.keys());try{for(n.s();!(e=n.n()).done;){var r=e.value;r.isEmpty&&(this.conversionApi.writer.remove(r),this._splitParts.delete(r),t=!0)}}catch(e){n.e(e)}finally{n.f()}t&&this._removeEmptyElements()}}]),e}();sn(is,Xt);var os=function(){function e(t,n){var r=this;h(this,e),this.model=t,this.stylesProcessor=n,this.processor=void 0,this.mapper=new ra,this.downcastDispatcher=new aa({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,"insert")){var r=n.writer,i=n.mapper.toViewPosition(t.range.start),o=r.createText(t.item.data);r.insert(i,o)}}),{priority:"lowest"}),this.upcastDispatcher=new is({schema:t.schema}),this.viewDocument=new Or(n),this._viewWriter=new ri(this.viewDocument),this.upcastDispatcher.on("text",(function(e,t,n){var r=n.schema,i=n.consumable,o=n.writer,a=t.modelCursor;if(i.test(t.viewItem)){if(!r.checkChild(a,"$text")){if(!Pa(a,"$text",r))return;a=Ia(a,o)}i.consume(t.viewItem);var s=o.createText(t.viewItem.data);o.insert(s,a),t.modelRange=o.createRange(a,a.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end}}),{priority:"lowest"}),this.upcastDispatcher.on("element",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var r=n.convertChildren(t.viewItem,t.modelCursor),i=r.modelRange,o=r.modelCursor;t.modelRange=i,t.modelCursor=o}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var r=n.convertChildren(t.viewItem,t.modelCursor),i=r.modelRange,o=r.modelCursor;t.modelRange=i,t.modelCursor=o}}),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",(function(){r.fire("ready")}),{priority:"lowest"}),this.on("ready",(function(){r.model.enqueueChange("transparent",Oa)}),{priority:"lowest"})}return m(e,[{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootName,n=void 0===t?"main":t,r=e.trim,i=void 0===r?"empty":r;if(!this._checkIfRootsExists([n]))throw new Kt.a("datacontroller-get-non-existent-root",this);var o=this.model.document.getRoot(n);return"empty"!==i||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,e):""}},{key:"stringify",value:function(e,t){var n=this.toView(e,t);return this.processor.toData(n)}},{key:"toView",value:function(e,t){var n=this.viewDocument,r=this._viewWriter;this.mapper.clearBindings();var i=na._createIn(e),o=new ni(n);if(this.mapper.bindElements(e,o),this.downcastDispatcher.conversionApi.options=t,this.downcastDispatcher.convertInsert(i,r),!e.is("documentFragment")){var a,s=function(e){var t=[],n=e.root.document;if(!n)return[];var r,i=na._createIn(e),o=l(n.model.markers);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=i.getIntersection(a.getRange());s&&t.push([a.name,s])}}catch(e){o.e(e)}finally{o.f()}return t}(e),u=l(s);try{for(u.s();!(a=u.n()).done;){var d=c(a.value,2),f=d[0],h=d[1];this.downcastDispatcher.convertMarkerAdd(f,h,r)}}catch(e){u.e(e)}finally{u.f()}}return delete this.downcastDispatcher.conversionApi.options,o}},{key:"init",value:function(e){var t=this;if(this.model.document.version)throw new Kt.a("datacontroller-init-document-not-empty",this);var n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new Kt.a("datacontroller-init-non-existent-root",this);return this.model.enqueueChange("transparent",(function(e){for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=t.model.document.getRoot(o);e.insert(t.parse(n[o],a),a,0)}})),Promise.resolve()}},{key:"set",value:function(e){var t=this,n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new Kt.a("datacontroller-set-non-existent-root",this);this.model.enqueueChange("transparent",(function(e){e.setSelection(null),e.removeSelectionAttribute(t.model.document.selection.getAttributeKeys());for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=t.model.document.getRoot(o);e.remove(e.createRangeIn(a)),e.insert(t.parse(n[o],a),a,0)}}))}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root",n=this.processor.toView(e);return this.toModel(n,t)}},{key:"toModel",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((function(r){return t.upcastDispatcher.convert(e,r,n)}))}},{key:"addStyleProcessorRules",value:function(e){e(this.stylesProcessor)}},{key:"destroy",value:function(){this.stopListening()}},{key:"_checkIfRootsExists",value:function(e){var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!this.model.document.getRootNames().includes(r))return!1}}catch(e){n.e(e)}finally{n.f()}return!0}}]),e}();sn(os,mr);var as=function(){function e(t,n){h(this,e),this._helpers=new Map,this._downcast=Array.isArray(t)?t:[t],this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Array.isArray(n)?n:[n],this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}return m(e,[{key:"addAlias",value:function(e,t){var n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new Kt.a("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}},{key:"for",value:function(e){if(!this._helpers.has(e))throw new Kt.a("conversion-for-unknown-group",this);return this._helpers.get(e)}},{key:"elementToElement",value:function(e){this.for("downcast").elementToElement(e);var t,n=l(ss(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.model,o=r.view;this.for("upcast").elementToElement({model:i,view:o,converterPriority:e.converterPriority})}}catch(e){n.e(e)}finally{n.f()}}},{key:"attributeToElement",value:function(e){this.for("downcast").attributeToElement(e);var t,n=l(ss(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.model,o=r.view;this.for("upcast").elementToAttribute({view:o,model:i,converterPriority:e.converterPriority})}}catch(e){n.e(e)}finally{n.f()}}},{key:"attributeToAttribute",value:function(e){this.for("downcast").attributeToAttribute(e);var t,n=l(ss(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.model,o=r.view;this.for("upcast").attributeToAttribute({view:o,model:i})}}catch(e){n.e(e)}finally{n.f()}}},{key:"_createConversionHelpers",value:function(e){var t=e.name,n=e.dispatchers,r=e.isDowncast;if(this._helpers.has(t))throw new Kt.a("conversion-group-exists",this);var i=r?new Aa(n):new ja(n);this._helpers.set(t,i)}}]),e}();function ss(e){var t,n,i,a,s,c;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.model.values){r.next=20;break}t=l(e.model.values),r.prev=2,t.s();case 4:if((n=t.n()).done){r.next=10;break}return i=n.value,a={key:e.model.key,value:i},s=e.view[i],c=e.upcastAlso?e.upcastAlso[i]:void 0,r.delegateYield(cs(a,s,c),"t0",8);case 8:r.next=4;break;case 10:r.next=15;break;case 12:r.prev=12,r.t1=r.catch(2),t.e(r.t1);case 15:return r.prev=15,t.f(),r.finish(15);case 18:r.next=21;break;case 20:return r.delegateYield(cs(e.model,e.view,e.upcastAlso),"t2",21);case 21:case"end":return r.stop()}}),r,null,[[2,12,15,18]])}function cs(e,t,n){var r,a,s;return o.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,{model:e,view:t};case 2:if(!n){i.next=21;break}n=Array.isArray(n)?n:[n],r=l(n),i.prev=5,r.s();case 7:if((a=r.n()).done){i.next=13;break}return s=a.value,i.next=11,{model:e,view:s};case 11:i.next=7;break;case 13:i.next=18;break;case 15:i.prev=15,i.t0=i.catch(5),r.e(i.t0);case 18:return i.prev=18,r.f(),i.finish(18);case 21:case"end":return i.stop()}}),i,null,[[5,15,18,21]])}var ls=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";h(this,e),this.operations=[],this.type=t}return m(e,[{key:"addOperation",value:function(e){return e.batch=this,this.operations.push(e),e}},{key:"baseVersion",get:function(){var e,t=l(this.operations);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==n.baseVersion)return n.baseVersion}}catch(e){t.e(e)}finally{t.f()}return null}}]),e}(),us=function(){function e(t){h(this,e),this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}return m(e,[{key:"_validate",value:function(){}},{key:"toJSON",value:function(){var e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}}],[{key:"fromJSON",value:function(e){return new this(e.baseVersion)}},{key:"className",get:function(){return"Operation"}}]),e}(),ds=function(){function e(t){h(this,e),this.markers=new Map,this._children=new Ko,t&&this._insertChild(0,t)}return m(e,[{key:Symbol.iterator,value:function(){return this.getChildren()}},{key:"is",value:function(e){return"documentFragment"===e||"model:documentFragment"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"getPath",value:function(){return[]}},{key:"getNodeByPath",value:function(e){var t,n=this,r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n=n.getChild(n.offsetToIndex(i))}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"toJSON",value:function(){var e,t=[],n=l(this._children);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r.toJSON())}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,r=function(e){return"string"==typeof e?[new Wo(e)]:(an(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new Wo(e):e instanceof Yo?new Wo(e.data,e.getAttributes()):e})))}(t),i=l(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(e){i.e(e)}finally{i.f()}this._children._insertNodes(e,r)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this._children._removeNodes(e,n),i=l(r);try{for(i.s();!(t=i.n()).done;){var o=t.value;o.parent=null}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}],[{key:"fromJSON",value:function(t){var n,r=[],i=l(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.name?r.push(Go.fromJSON(o)):r.push(Wo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}return new e(r)}}]),e}();function fs(e,t){var n=(t=ms(t)).reduce((function(e,t){return e+t.offsetSize}),0),r=e.parent;gs(e);var i=e.index;return r._insertChild(i,t),vs(r,i+t.length),vs(r,i),new na(e,e.getShiftedBy(n))}function hs(e){if(!e.isFlat)throw new Kt.a("operation-utils-remove-range-not-flat",this);var t=e.start.parent;gs(e.start),gs(e.end);var n=t._removeChildren(e.start.index,e.end.index-e.start.index);return vs(t,e.start.index),n}function ps(e,t){if(!e.isFlat)throw new Kt.a("operation-utils-move-range-not-flat",this);var n=hs(e);return fs(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),n)}function ms(e){var t=[];e instanceof Array||(e=[e]);for(var n=0;n<e.length;n++)if("string"==typeof e[n])t.push(new Wo(e[n]));else if(e[n]instanceof Yo)t.push(new Wo(e[n].data,e[n].getAttributes()));else if(e[n]instanceof ds||e[n]instanceof Ko){var r,i=l(e[n]);try{for(i.s();!(r=i.n()).done;){var o=r.value;t.push(o)}}catch(e){i.e(e)}finally{i.f()}}else e[n]instanceof qo&&t.push(e[n]);for(var a=1;a<t.length;a++){var s=t[a],c=t[a-1];s instanceof Wo&&c instanceof Wo&&bs(s,c)&&(t.splice(a-1,2,new Wo(c.data+s.data,c.getAttributes())),a--)}return t}function vs(e,t){var n=e.getChild(t-1),r=e.getChild(t);if(n&&r&&n.is("$text")&&r.is("$text")&&bs(n,r)){var i=new Wo(n.data+r.data,n.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,i)}}function gs(e){var t=e.textNode,n=e.parent;if(t){var r=e.offset-t.startOffset,i=t.index;n._removeChildren(i,1);var o=new Wo(t.data.substr(0,r),t.getAttributes()),a=new Wo(t.data.substr(r),t.getAttributes());n._insertChild(i,[o,a])}}function bs(e,t){var n,r=e.getAttributes(),i=t.getAttributes(),o=l(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a[1]!==t.getAttribute(a[0]))return!1;i.next()}}catch(e){o.e(e)}finally{o.f()}return i.next().done}var ys=function(e,t){return ao(e,t)},ks=function(e){v(n,e);var t=g(n);function n(e,r,i,o,a){var s;return h(this,n),(s=t.call(this,a)).range=e.clone(),s.key=r,s.oldValue=void 0===i?null:i,s.newValue=void 0===o?null:o,s}return m(n,[{key:"clone",value:function(){return new n(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.range=this.range.toJSON(),e}},{key:"_validate",value:function(){if(!this.range.isFlat)throw new Kt.a("attribute-operation-range-not-flat",this);var e,t=l(this.range.getItems({shallow:!0}));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==this.oldValue&&!ys(n.getAttribute(this.key),this.oldValue))throw new Kt.a("attribute-operation-wrong-old-value",this,{item:n,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&n.hasAttribute(this.key))throw new Kt.a("attribute-operation-attribute-exists",this,{node:n,key:this.key})}}catch(e){t.e(e)}finally{t.f()}}},{key:"_execute",value:function(){ys(this.oldValue,this.newValue)||function(e,t,n){gs(e.start),gs(e.end);var r,i=l(e.getItems({shallow:!0}));try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.is("$textProxy")?o.textNode:o;null!==n?a._setAttribute(t,n):a._removeAttribute(t),vs(a.parent,a.index)}}catch(e){i.e(e)}finally{i.f()}vs(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}},{key:"type",get:function(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}}],[{key:"fromJSON",value:function(e,t){return new n(na.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}},{key:"className",get:function(){return"AttributeOperation"}}]),n}(us),ws=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,null)).sourcePosition=e.clone(),i.howMany=r,i}return m(n,[{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.sourcePosition=this.sourcePosition.toJSON(),e}},{key:"_validate",value:function(){if(this.sourcePosition.root.document)throw new Kt.a("detach-operation-on-document-node",this)}},{key:"_execute",value:function(){hs(na._createFromPositionAndShift(this.sourcePosition,this.howMany))}},{key:"type",get:function(){return"detach"}}],[{key:"className",get:function(){return"DetachOperation"}}]),n}(us),_s=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,o)).sourcePosition=e.clone(),a.sourcePosition.stickiness="toNext",a.howMany=r,a.targetPosition=i.clone(),a.targetPosition.stickiness="toNone",a}return m(n,[{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}},{key:"getMovedRangeStart",value:function(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}},{key:"getReversed",value:function(){var e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.sourcePosition.parent,t=this.targetPosition.parent,n=this.sourcePosition.offset,r=this.targetPosition.offset;if(n+this.howMany>e.maxOffset)throw new Kt.a("move-operation-nodes-do-not-exist",this);if(e===t&&n<r&&r<n+this.howMany)throw new Kt.a("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==mn(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){var i=this.sourcePosition.path.length-1;if(this.targetPosition.path[i]>=n&&this.targetPosition.path[i]<n+this.howMany)throw new Kt.a("move-operation-node-into-itself",this)}}},{key:"_execute",value:function(){ps(na._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}},{key:"type",get:function(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}}],[{key:"fromJSON",value:function(e,t){var n=Jo.fromJSON(e.sourcePosition,t),r=Jo.fromJSON(e.targetPosition,t);return new this(n,e.howMany,r,e.baseVersion)}},{key:"className",get:function(){return"MoveOperation"}}]),n}(us),Cs=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,i)).position=e.clone(),o.position.stickiness="toNone",o.nodes=new Ko(ms(r)),o.shouldReceiveAttributes=!1,o}return m(n,[{key:"clone",value:function(){var e=new Ko(u(this.nodes).map((function(e){return e._clone(!0)}))),t=new n(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}},{key:"getReversed",value:function(){var e=this.position.root.document.graveyard,t=new Jo(e,[0]);return new _s(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new Kt.a("insert-operation-position-invalid",this)}},{key:"_execute",value:function(){var e=this.nodes;this.nodes=new Ko(u(e).map((function(e){return e._clone(!0)}))),fs(this.position,e)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}},{key:"type",get:function(){return"insert"}},{key:"howMany",get:function(){return this.nodes.maxOffset}}],[{key:"fromJSON",value:function(e,t){var r,i=[],o=l(e.nodes);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.name?i.push(Go.fromJSON(a)):i.push(Wo.fromJSON(a))}}catch(e){o.e(e)}finally{o.f()}var s=new n(Jo.fromJSON(e.position,t),i,e.baseVersion);return s.shouldReceiveAttributes=e.shouldReceiveAttributes,s}},{key:"className",get:function(){return"InsertOperation"}}]),n}(us),As=function(e){v(n,e);var t=g(n);function n(e,r,i,o,a,s){var c;return h(this,n),(c=t.call(this,s)).name=e,c.oldRange=r?r.clone():null,c.newRange=i?i.clone():null,c.affectsData=a,c._markers=o,c}return m(n,[{key:"clone",value:function(){return new n(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}},{key:"_execute",value:function(){var e=this.newRange?"_set":"_remove";this._markers[e](this.name,this.newRange,!0,this.affectsData)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}},{key:"type",get:function(){return"marker"}}],[{key:"fromJSON",value:function(e,t){return new n(e.name,e.oldRange?na.fromJSON(e.oldRange,t):null,e.newRange?na.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}},{key:"className",get:function(){return"MarkerOperation"}}]),n}(us),xs=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,o)).position=e,a.position.stickiness="toNext",a.oldName=r,a.newName=i,a}return m(n,[{key:"clone",value:function(){return new n(this.position.clone(),this.oldName,this.newName,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.position.nodeAfter;if(!(e instanceof Go))throw new Kt.a("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new Kt.a("rename-operation-wrong-name",this)}},{key:"_execute",value:function(){this.position.nodeAfter.name=this.newName}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.position=this.position.toJSON(),e}},{key:"type",get:function(){return"rename"}}],[{key:"fromJSON",value:function(e,t){return new n(Jo.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}},{key:"className",get:function(){return"RenameOperation"}}]),n}(us),Ss=function(e){v(n,e);var t=g(n);function n(e,r,i,o,a){var s;return h(this,n),(s=t.call(this,a)).root=e,s.key=r,s.oldValue=i,s.newValue=o,s}return m(n,[{key:"clone",value:function(){return new n(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"_validate",value:function(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new Kt.a("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new Kt.a("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new Kt.a("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}},{key:"_execute",value:function(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.root=this.root.toJSON(),e}},{key:"type",get:function(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}}],[{key:"fromJSON",value:function(e,t){if(!t.getRoot(e.root))throw new Kt.a("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new n(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}},{key:"className",get:function(){return"RootAttributeOperation"}}]),n}(us),Ms=function(e){v(n,e);var t=g(n);function n(e,r,i,o,a){var s;return h(this,n),(s=t.call(this,a)).sourcePosition=e.clone(),s.sourcePosition.stickiness="toPrevious",s.howMany=r,s.targetPosition=i.clone(),s.targetPosition.stickiness="toNext",s.graveyardPosition=o.clone(),s}return m(n,[{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}},{key:"getReversed",value:function(){var e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),n=new Jo(this.sourcePosition.root,t)._getTransformedByMergeOperation(this),r=new Es(e,this.howMany,this.graveyardPosition,this.baseVersion+1);return r.insertionPosition=n,r}},{key:"_validate",value:function(){var e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new Kt.a("merge-operation-source-position-invalid",this);if(!t.parent)throw new Kt.a("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new Kt.a("merge-operation-how-many-invalid",this)}},{key:"_execute",value:function(){var e=this.sourcePosition.parent;ps(na._createIn(e),this.targetPosition),ps(na._createOn(e),this.graveyardPosition)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}},{key:"type",get:function(){return"merge"}},{key:"deletionPosition",get:function(){return new Jo(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}},{key:"movedRange",get:function(){var e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new na(this.sourcePosition,e)}}],[{key:"fromJSON",value:function(e,t){var n=Jo.fromJSON(e.sourcePosition,t),r=Jo.fromJSON(e.targetPosition,t),i=Jo.fromJSON(e.graveyardPosition,t);return new this(n,e.howMany,r,i,e.baseVersion)}},{key:"className",get:function(){return"MergeOperation"}}]),n}(us),Es=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,o)).splitPosition=e.clone(),a.splitPosition.stickiness="toNext",a.howMany=r,a.insertionPosition=n.getInsertionPosition(e),a.insertionPosition.stickiness="toNone",a.graveyardPosition=i?i.clone():null,a.graveyardPosition&&(a.graveyardPosition.stickiness="toNext"),a}return m(n,[{key:"clone",value:function(){var e=new this.constructor(this.splitPosition,this.howMany,this.graveyardPosition,this.baseVersion);return e.insertionPosition=this.insertionPosition,e}},{key:"getReversed",value:function(){var e=this.splitPosition.root.document.graveyard,t=new Jo(e,[0]);return new Ms(this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset<t)throw new Kt.a("split-operation-position-invalid",this);if(!e.parent)throw new Kt.a("split-operation-split-in-root",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new Kt.a("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new Kt.a("split-operation-graveyard-position-invalid",this)}},{key:"_execute",value:function(){var e=this.splitPosition.parent;if(this.graveyardPosition)ps(na._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{var t=e._clone();fs(this.insertionPosition,t)}ps(new na(Jo._createAt(e,this.splitPosition.offset),Jo._createAt(e,e.maxOffset)),this.moveTargetPosition)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}},{key:"type",get:function(){return"split"}},{key:"moveTargetPosition",get:function(){var e=this.insertionPosition.path.slice();return e.push(0),new Jo(this.insertionPosition.root,e)}},{key:"movedRange",get:function(){var e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new na(this.splitPosition,e)}}],[{key:"getInsertionPosition",value:function(e){var t=e.path.slice(0,-1);return t[t.length-1]++,new Jo(e.root,t)}},{key:"fromJSON",value:function(e,t){var n=Jo.fromJSON(e.splitPosition,t),r=Jo.fromJSON(e.insertionPosition,t),i=e.graveyardPosition?Jo.fromJSON(e.graveyardPosition,t):null,o=new this(n,e.howMany,i,e.baseVersion);return o.insertionPosition=r,o}},{key:"className",get:function(){return"SplitOperation"}}]),n}(us),Ts=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";return h(this,n),(i=t.call(this,r))._document=e,i.rootName=o,i}return m(n,[{key:"is",value:function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){return this.rootName}},{key:"document",get:function(){return this._document}}]),n}(Go),Ds=function(){function e(t,n){h(this,e),this.model=t,this.batch=n}return m(e,[{key:"createText",value:function(e,t){return new Wo(e,t)}},{key:"createElement",value:function(e,t){return new Go(e,t)}},{key:"createDocumentFragment",value:function(){return new ds}},{key:"cloneElement",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e._clone(t)}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),!(e instanceof Wo&&""==e.data)){var r=Jo._createAt(t,n);if(e.parent){if(Ns(e.root,r.root))return void this.move(na._createOn(e),r);if(e.root.document)throw new Kt.a("model-writer-insert-forbidden-move",this);this.remove(e)}var i=r.root.document?r.root.document.version:null,o=new Cs(r,e,i);if(e instanceof Wo&&(o.shouldReceiveAttributes=!0),this.batch.addOperation(o),this.model.applyOperation(o),e instanceof ds){var a,s=l(e.markers);try{for(s.s();!(a=s.n()).done;){var u=c(a.value,2),d=u[0],f=u[1],h=Jo._createAt(f.root,0),p={range:new na(f.start._getCombined(h,r),f.end._getCombined(h,r)),usingOperation:!0,affectsData:!0};this.model.markers.has(d)?this.updateMarker(d,p):this.addMarker(d,p)}}catch(e){s.e(e)}finally{s.f()}}}}},{key:"insertText",value:function(e,t,n,r){t instanceof ds||t instanceof Go||t instanceof Jo?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,r)}},{key:"insertElement",value:function(e,t,n,r){t instanceof ds||t instanceof Go||t instanceof Jo?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,r)}},{key:"append",value:function(e,t){this.insert(e,t,"end")}},{key:"appendText",value:function(e,t,n){t instanceof ds||t instanceof Go?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}},{key:"appendElement",value:function(e,t,n){t instanceof ds||t instanceof Go?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}},{key:"setAttribute",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof na){var r,i=l(n.getMinimalFlatRanges());try{for(i.s();!(r=i.n()).done;){Os(this,e,t,r.value)}}catch(e){i.e(e)}finally{i.f()}}else Ps(this,e,t,n)}},{key:"setAttributes",value:function(e,t){var n,r=l(kn(e));try{for(r.s();!(n=r.n()).done;){var i=c(n.value,2),o=i[0],a=i[1];this.setAttribute(o,a,t)}}catch(e){r.e(e)}finally{r.f()}}},{key:"removeAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),t instanceof na){var n,r=l(t.getMinimalFlatRanges());try{for(r.s();!(n=r.n()).done;){Os(this,e,null,n.value)}}catch(e){r.e(e)}finally{r.f()}}else Ps(this,e,null,t)}},{key:"clearAttributes",value:function(e){var t=this;this._assertWriterUsedCorrectly();var n=function(e){var n,r=l(e.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;t.removeAttribute(i,e)}}catch(e){r.e(e)}finally{r.f()}};if(e instanceof na){var r,i=l(e.getItems());try{for(i.s();!(r=i.n()).done;){n(r.value)}}catch(e){i.e(e)}finally{i.f()}}else n(e)}},{key:"move",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof na))throw new Kt.a("writer-move-invalid-range",this);if(!e.isFlat)throw new Kt.a("writer-move-range-not-flat",this);var r=Jo._createAt(t,n);if(!r.isEqual(e.start)){if(this._addOperationForAffectedMarkers("move",e),!Ns(e.root,r.root))throw new Kt.a("writer-move-different-document",this);var i=e.root.document?e.root.document.version:null,o=new _s(e.start,e.end.offset-e.start.offset,r,i);this.batch.addOperation(o),this.model.applyOperation(o)}}},{key:"remove",value:function(e){this._assertWriterUsedCorrectly();var t,n=l((e instanceof na?e:na._createOn(e)).getMinimalFlatRanges().reverse());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._addOperationForAffectedMarkers("move",r),js(r.start,r.end.offset-r.start.offset,this.batch,this.model)}}catch(e){n.e(e)}finally{n.f()}}},{key:"merge",value:function(e){this._assertWriterUsedCorrectly();var t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof Go))throw new Kt.a("writer-merge-no-element-before",this);if(!(n instanceof Go))throw new Kt.a("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}},{key:"createPositionFromPath",value:function(e,t,n){return this.model.createPositionFromPath(e,t,n)}},{key:"createPositionAt",value:function(e,t){return this.model.createPositionAt(e,t)}},{key:"createPositionAfter",value:function(e){return this.model.createPositionAfter(e)}},{key:"createPositionBefore",value:function(e){return this.model.createPositionBefore(e)}},{key:"createRange",value:function(e,t){return this.model.createRange(e,t)}},{key:"createRangeIn",value:function(e){return this.model.createRangeIn(e)}},{key:"createRangeOn",value:function(e){return this.model.createRangeOn(e)}},{key:"createSelection",value:function(e,t,n){return this.model.createSelection(e,t,n)}},{key:"_mergeDetached",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;this.move(na._createIn(n),Jo._createAt(t,"end")),this.remove(n)}},{key:"_merge",value:function(e){var t=Jo._createAt(e.nodeBefore,"end"),n=Jo._createAt(e.nodeAfter,0),r=e.root.document.graveyard,i=new Jo(r,[0]),o=e.root.document.version,a=new Ms(n,e.nodeAfter.maxOffset,t,i,o);this.batch.addOperation(a),this.model.applyOperation(a)}},{key:"rename",value:function(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof Go))throw new Kt.a("writer-rename-not-element-instance",this);var n=e.root.document?e.root.document.version:null,r=new xs(Jo._createBefore(e),e.name,t,n);this.batch.addOperation(r),this.model.applyOperation(r)}},{key:"split",value:function(e,t){this._assertWriterUsedCorrectly();var n,r,i=e.parent;if(!i.parent)throw new Kt.a("writer-split-element-no-parent",this);if(t||(t=i.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new Kt.a("writer-split-invalid-limit-element",this);do{var o=i.root.document?i.root.document.version:null,a=i.maxOffset-e.offset,s=new Es(e,a,null,o);this.batch.addOperation(s),this.model.applyOperation(s),n||r||(n=i,r=e.parent.nextSibling),i=(e=this.createPositionAfter(e.parent)).parent}while(i!==t);return{position:e,range:new na(Jo._createAt(n,"end"),Jo._createAt(r,0))}}},{key:"wrap",value:function(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new Kt.a("writer-wrap-range-not-flat",this);var n=t instanceof Go?t:new Go(t);if(n.childCount>0)throw new Kt.a("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new Kt.a("writer-wrap-element-attached",this);this.insert(n,e.start);var r=new na(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(r,Jo._createAt(n,0))}},{key:"unwrap",value:function(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new Kt.a("writer-unwrap-element-no-parent",this);this.move(na._createIn(e),this.createPositionAfter(e)),this.remove(e)}},{key:"addMarker",value:function(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new Kt.a("writer-addmarker-no-usingoperation",this);var n=t.usingOperation,r=t.range,i=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new Kt.a("writer-addmarker-marker-exists",this);if(!r)throw new Kt.a("writer-addmarker-no-range",this);return n?(Is(this,e,null,r,i),this.model.markers.get(e)):this.model.markers._set(e,r,n,i)}},{key:"updateMarker",value:function(e,t){this._assertWriterUsedCorrectly();var n="string"==typeof e?e:e.name,r=this.model.markers.get(n);if(!r)throw new Kt.a("writer-updatemarker-marker-not-exists",this);if(t){var i="boolean"==typeof t.usingOperation,o="boolean"==typeof t.affectsData,a=o?t.affectsData:r.affectsData;if(!i&&!t.range&&!o)throw new Kt.a("writer-updatemarker-wrong-options",this);var s=r.getRange(),c=t.range?t.range:s;i&&t.usingOperation!==r.managedUsingOperations?t.usingOperation?Is(this,n,null,c,a):(Is(this,n,s,null,a),this.model.markers._set(n,c,void 0,a)):r.managedUsingOperations?Is(this,n,s,c,a):this.model.markers._set(n,c,void 0,a)}else this.model.markers._refresh(r)}},{key:"removeMarker",value:function(e){this._assertWriterUsedCorrectly();var t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new Kt.a("writer-removemarker-no-marker",this);var n=this.model.markers.get(t);n.managedUsingOperations?Is(this,t,n.getRange(),null,n.affectsData):this.model.markers._remove(t)}},{key:"setSelection",value:function(e,t,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}},{key:"setSelectionAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else{var n,r=l(kn(e));try{for(r.s();!(n=r.n()).done;){var i=c(n.value,2),o=i[0],a=i[1];this._setSelectionAttribute(o,a)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"removeSelectionAttribute",value:function(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else{var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._removeSelectionAttribute(r)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"overrideSelectionGravity",value:function(){return this.model.document.selection._overrideGravity()}},{key:"restoreSelectionGravity",value:function(e){this.model.document.selection._restoreGravity(e)}},{key:"_setSelectionAttribute",value:function(e,t){var n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){var r=ya._getStoreAttributeKey(e);this.setAttribute(r,t,n.anchor.parent)}n._setAttribute(e,t)}},{key:"_removeSelectionAttribute",value:function(e){var t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){var n=ya._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}},{key:"_assertWriterUsedCorrectly",value:function(){if(this.model._currentWriter!==this)throw new Kt.a("writer-incorrect-use",this)}},{key:"_addOperationForAffectedMarkers",value:function(e,t){var n,r=l(this.model.markers);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.managedUsingOperations){var o=i.getRange(),a=!1;if("move"===e)a=t.containsPosition(o.start)||t.start.isEqual(o.start)||t.containsPosition(o.end)||t.end.isEqual(o.end);else{var s=t.nodeBefore,c=t.nodeAfter,u=o.start.parent==s&&o.start.isAtEnd,d=o.end.parent==c&&0==o.end.offset,f=o.end.nodeAfter==c,h=o.start.nodeAfter==c;a=u||d||f||h}a&&this.updateMarker(i.name,{range:o})}}}catch(e){r.e(e)}finally{r.f()}}}]),e}();function Os(e,t,n,r){var i,o,a,s,c=e.model,u=c.document,d=r.start,f=l(r.getWalker({shallow:!0}));try{for(f.s();!(s=f.n()).done;){var h=s.value;a=h.item.getAttribute(t),i&&o!=a&&(o!=n&&p(),d=i),i=h.nextPosition,o=a}}catch(e){f.e(e)}finally{f.f()}function p(){var r=new na(d,i),a=r.root.document?u.version:null,s=new ks(r,t,o,n,a);e.batch.addOperation(s),c.applyOperation(s)}i instanceof Jo&&i!=d&&o!=n&&p()}function Ps(e,t,n,r){var i,o,a=e.model,s=a.document,c=r.getAttribute(t);if(c!=n){if(r.root===r){var l=r.document?s.version:null;o=new Ss(r,t,c,n,l)}else{var u=(i=new na(Jo._createBefore(r),e.createPositionAfter(r))).root.document?s.version:null;o=new ks(i,t,c,n,u)}e.batch.addOperation(o),a.applyOperation(o)}}function Is(e,t,n,r,i){var o=e.model,a=o.document,s=new As(t,n,r,o.markers,i,a.version);e.batch.addOperation(s),o.applyOperation(s)}function js(e,t,n,r){var i;if(e.root.document){var o=r.document,a=new Jo(o.graveyard,[0]);i=new _s(e,t,a,o.version)}else i=new ws(e,t);n.addOperation(i),r.applyOperation(i)}function Ns(e,t){return e===t||e instanceof Ts&&t instanceof Ts}var Rs=function(){function e(t){h(this,e),this._markerCollection=t,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}return m(e,[{key:"refreshItem",value:function(e){if(!this._isInInsertedElement(e.parent)){this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize);var t,n=na._createOn(e),r=l(this._markerCollection.getMarkersIntersectingRange(n));try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.getRange();this.bufferMarkerChange(i.name,o,o,i.affectsData)}}catch(e){r.e(e)}finally{r.f()}this._cachedChanges=null}}},{key:"bufferOperation",value:function(e){switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":var t,n=l(e.range.getItems({shallow:!0}));try{for(n.s();!(t=n.n()).done;){var r=t.value;this._isInInsertedElement(r.parent)||this._markAttribute(r)}}catch(e){n.e(e)}finally{n.f()}break;case"remove":case"move":case"reinsert":if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;var i=this._isInInsertedElement(e.sourcePosition.parent),o=this._isInInsertedElement(e.targetPosition.parent);i||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),o||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break;case"rename":if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);var a,s=na._createFromPositionAndShift(e.position,1),c=l(this._markerCollection.getMarkersIntersectingRange(s));try{for(c.s();!(a=c.n()).done;){var u=a.value,d=u.getRange();this.bufferMarkerChange(u.name,d,d,u.affectsData)}}catch(e){c.e(e)}finally{c.f()}break;case"split":var f=e.splitPosition.parent;this._isInInsertedElement(f)||this._markRemove(f,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break;case"merge":var h=e.sourcePosition.parent;this._isInInsertedElement(h.parent)||this._markRemove(h.parent,h.startOffset,1);var p=e.graveyardPosition.parent;this._markInsert(p,e.graveyardPosition.offset,1);var m=e.targetPosition.parent;this._isInInsertedElement(m)||this._markInsert(m,e.targetPosition.offset,h.maxOffset)}this._cachedChanges=null}},{key:"bufferMarkerChange",value:function(e,t,n,r){var i=this._changedMarkers.get(e);i?(i.newRange=n,i.affectsData=r,null==i.oldRange&&null==i.newRange&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{oldRange:t,newRange:n,affectsData:r})}},{key:"getMarkersToRemove",value:function(){var e,t=[],n=l(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var r=c(e.value,2),i=r[0],o=r[1];null!=o.oldRange&&t.push({name:i,range:o.oldRange})}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"getMarkersToAdd",value:function(){var e,t=[],n=l(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var r=c(e.value,2),i=r[0],o=r[1];null!=o.newRange&&t.push({name:i,range:o.newRange})}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"getChangedMarkers",value:function(){return Array.from(this._changedMarkers).map((function(e){return{name:e[0],data:{oldRange:e[1].oldRange,newRange:e[1].newRange}}}))}},{key:"hasDataChanges",value:function(){var e,t=l(this._changedMarkers);try{for(t.s();!(e=t.n()).done;){if(c(e.value,2)[1].affectsData)return!0}}catch(e){t.e(e)}finally{t.f()}return this._changesInElement.size>0}},{key:"getChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeChangesInGraveyard:!1};if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();var t,n=[],r=l(this._changesInElement.keys());try{for(r.s();!(t=r.n()).done;){var i,o=t.value,a=this._changesInElement.get(o).sort((function(e,t){return e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1})),s=this._elementSnapshots.get(o),c=Ls(o.getChildren()),d=Bs(s.length,a),f=0,h=0,p=l(d);try{for(p.s();!(i=p.n()).done;){var m=i.value;if("i"===m)n.push(this._getInsertDiff(o,f,c[f].name)),f++;else if("r"===m)n.push(this._getRemoveDiff(o,f,s[h].name)),h++;else if("a"===m){var v=c[f].attributes,g=s[h].attributes,b=void 0;if("$text"==c[f].name)b=new na(Jo._createAt(o,f),Jo._createAt(o,f+1));else{var y=o.offsetToIndex(f);b=new na(Jo._createAt(o,f),Jo._createAt(o.getChild(y),0))}n.push.apply(n,u(this._getAttributesDiff(b,g,v))),f++,h++}else f++,h++}}catch(e){p.e(e)}finally{p.f()}}}catch(e){r.e(e)}finally{r.f()}n.sort((function(e,t){return e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1}));for(var k=1;k<n.length;k++){var w=n[k-1],_=n[k],C="remove"==w.type&&"remove"==_.type&&"$text"==w.name&&"$text"==_.name&&w.position.isEqual(_.position),A="insert"==w.type&&"insert"==_.type&&"$text"==w.name&&"$text"==_.name&&w.position.parent==_.position.parent&&w.position.offset+w.length==_.position.offset,x="attribute"==w.type&&"attribute"==_.type&&w.position.parent==_.position.parent&&w.range.isFlat&&_.range.isFlat&&w.position.offset+w.length==_.position.offset&&w.attributeKey==_.attributeKey&&w.attributeOldValue==_.attributeOldValue&&w.attributeNewValue==_.attributeNewValue;(C||A||x)&&(n[k-1].length++,x&&(n[k-1].range.end=n[k-1].range.end.getShiftedBy(1)),n.splice(k,1),k--)}for(var S=0,M=n;S<M.length;S++){var E=M[S];delete E.changeCount,"attribute"==E.type&&(delete E.position,delete E.length)}return this._changeCount=0,this._cachedChangesWithGraveyard=n.slice(),this._cachedChanges=n.slice().filter(Fs),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}},{key:"reset",value:function(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}},{key:"_markInsert",value:function(e,t,n){var r={type:"insert",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,r)}},{key:"_markRemove",value:function(e,t,n){var r={type:"remove",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,r),this._removeAllNestedChanges(e,t,n)}},{key:"_markAttribute",value:function(e){var t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}},{key:"_markChange",value:function(e,t){this._makeSnapshot(e);var n=this._getChangesForElement(e);this._handleChange(t,n),n.push(t);for(var r=0;r<n.length;r++)n[r].howMany<1&&(n.splice(r,1),r--)}},{key:"_getChangesForElement",value:function(e){var t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}},{key:"_makeSnapshot",value:function(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,Ls(e.getChildren()))}},{key:"_handleChange",value:function(e,t){e.nodesToHandle=e.howMany;var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e.offset+e.howMany,a=i.offset+i.howMany;if("insert"==e.type&&("insert"==i.type&&(e.offset<=i.offset?i.offset+=e.howMany:e.offset<a&&(i.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==i.type&&e.offset<i.offset&&(i.offset+=e.howMany),"attribute"==i.type))if(e.offset<=i.offset)i.offset+=e.howMany;else if(e.offset<a){var s=i.howMany;i.howMany=e.offset-i.offset,t.unshift({type:"attribute",offset:o,howMany:s-i.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==i.type)if(o<=i.offset)i.offset-=e.howMany;else if(o<=a)if(e.offset<i.offset){var c=o-i.offset;i.offset=e.offset,i.howMany-=c,e.nodesToHandle-=c}else i.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=i.offset)e.nodesToHandle-=i.howMany,i.howMany=0;else if(e.offset<a){var u=a-e.offset;i.howMany-=u,e.nodesToHandle-=u}if("remove"==i.type&&(o<=i.offset?i.offset-=e.howMany:e.offset<i.offset&&(e.nodesToHandle+=i.howMany,i.howMany=0)),"attribute"==i.type)if(o<=i.offset)i.offset-=e.howMany;else if(e.offset<i.offset){var d=o-i.offset;i.offset=e.offset,i.howMany-=d}else if(e.offset<a)if(o<=a){var f=i.howMany;i.howMany=e.offset-i.offset;var h=f-i.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:h,count:this._changeCount++})}else i.howMany-=a-e.offset}if("attribute"==e.type){if("insert"==i.type)if(e.offset<i.offset&&o>i.offset){if(o>a){var p={type:"attribute",offset:a,howMany:o-a,count:this._changeCount++};this._handleChange(p,t),t.push(p)}e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=i.offset&&e.offset<a&&(o>a?(e.nodesToHandle=o-a,e.offset=a):e.nodesToHandle=0);if("remove"==i.type&&e.offset<i.offset&&o>i.offset){var m={type:"attribute",offset:i.offset,howMany:o-i.offset,count:this._changeCount++};this._handleChange(m,t),t.push(m),e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==i.type&&(e.offset>=i.offset&&o<=a?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=i.offset&&o>=a&&(i.howMany=0))}}}catch(e){r.e(e)}finally{r.f()}e.howMany=e.nodesToHandle,delete e.nodesToHandle}},{key:"_getInsertDiff",value:function(e,t,n){return{type:"insert",position:Jo._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getRemoveDiff",value:function(e,t,n){return{type:"remove",position:Jo._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getAttributesDiff",value:function(e,t,n){var r=[];n=new Map(n);var i,o=l(t);try{for(o.s();!(i=o.n()).done;){var a=c(i.value,2),s=a[0],u=a[1],d=n.has(s)?n.get(s):null;d!==u&&r.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:s,attributeOldValue:u,attributeNewValue:d,changeCount:this._changeCount++}),n.delete(s)}}catch(e){o.e(e)}finally{o.f()}var f,h=l(n);try{for(h.s();!(f=h.n()).done;){var p=c(f.value,2),m=p[0],v=p[1];r.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:m,attributeOldValue:null,attributeNewValue:v,changeCount:this._changeCount++})}}catch(e){h.e(e)}finally{h.f()}return r}},{key:"_isInInsertedElement",value:function(e){var t=e.parent;if(!t)return!1;var n=this._changesInElement.get(t),r=e.startOffset;if(n){var i,o=l(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;if("insert"==a.type&&r>=a.offset&&r<a.offset+a.howMany)return!0}}catch(e){o.e(e)}finally{o.f()}}return this._isInInsertedElement(t)}},{key:"_removeAllNestedChanges",value:function(e,t,n){var r,i=l(new na(Jo._createAt(e,t),Jo._createAt(e,t+n)).getItems({shallow:!0}));try{for(i.s();!(r=i.n()).done;){var o=r.value;o.is("element")&&(this._elementSnapshots.delete(o),this._changesInElement.delete(o),this._removeAllNestedChanges(o,0,o.maxOffset))}}catch(e){i.e(e)}finally{i.f()}}},{key:"isEmpty",get:function(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}}]),e}();function Ls(e){var t,n=[],r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.is("$text"))for(var o=0;o<i.data.length;o++)n.push({name:"$text",attributes:new Map(i.getAttributes())});else n.push({name:i.name,attributes:new Map(i.getAttributes())})}}catch(e){r.e(e)}finally{r.f()}return n}function Bs(e,t){var n,r=[],i=0,o=0,a=l(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.offset>i){for(var c=0;c<s.offset-i;c++)r.push("e");o+=s.offset-i}if("insert"==s.type){for(var d=0;d<s.howMany;d++)r.push("i");i=s.offset+s.howMany}else if("remove"==s.type){for(var f=0;f<s.howMany;f++)r.push("r");i=s.offset,o+=s.howMany}else r.push.apply(r,u("a".repeat(s.howMany).split(""))),i=s.offset+s.howMany,o+=s.howMany}}catch(e){a.e(e)}finally{a.f()}if(o<e)for(var h=0;h<e-o-i;h++)r.push("e");return r}function Fs(e){var t=e.position&&"$graveyard"==e.position.root.rootName,n=e.range&&"$graveyard"==e.range.root.rootName;return!t&&!n}var zs=function(){function e(){h(this,e),this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set}return m(e,[{key:"addOperation",value:function(e){this._operations.includes(e)||this._operations.push(e)}},{key:"getOperations",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NEGATIVE_INFINITY,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,r=[],i=l(this._operations);try{for(i.s();!(e=i.n()).done;){var o=e.value;o.baseVersion>=t&&o.baseVersion<n&&r.push(o)}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"getOperation",value:function(e){var t,n=l(this._operations);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.baseVersion==e)return r}}catch(e){n.e(e)}finally{n.f()}}},{key:"setOperationAsUndone",value:function(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}},{key:"isUndoingOperation",value:function(e){return this._undoPairs.has(e)}},{key:"isUndoneOperation",value:function(e){return this._undoneOperations.has(e)}},{key:"getUndoneOperation",value:function(e){return this._undoPairs.get(e)}}]),e}();function Vs(e,t){return!!(n=e.charAt(t-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}(e.charAt(t));var n}function $s(e,t){return!!(n=e.charAt(t))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}var Hs="$graveyard",Us=function(){function e(t){var n=this;h(this,e),this.model=t,this.version=0,this.history=new zs(this),this.selection=new ya(this),this.roots=new cn({idProperty:"rootName"}),this.differ=new Rs(t.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",Hs),this.listenTo(t,"applyOperation",(function(e,t){var r=t[0];if(r.isDocumentOperation&&r.baseVersion!==n.version)throw new Kt.a("model-document-applyoperation-wrong-version",n,{operation:r})}),{priority:"highest"}),this.listenTo(t,"applyOperation",(function(e,t){var r=t[0];r.isDocumentOperation&&n.differ.bufferOperation(r)}),{priority:"high"}),this.listenTo(t,"applyOperation",(function(e,t){var r=t[0];r.isDocumentOperation&&(n.version++,n.history.addOperation(r))}),{priority:"low"}),this.listenTo(this.selection,"change",(function(){n._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(t.markers,"update",(function(e,t,r,i){n.differ.bufferMarkerChange(t.name,r,i,t.affectsData),null===r&&t.on("change",(function(e,r){n.differ.bufferMarkerChange(t.name,r,t.getRange(),t.affectsData)}))}))}return m(e,[{key:"createRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$root",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(t))throw new Kt.a("model-document-createroot-name-exists",this,{name:t});var n=new Ts(this,e,t);return this.roots.add(n),n}},{key:"destroy",value:function(){this.selection.destroy(),this.stopListening()}},{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"getRootNames",value:function(){return Array.from(this.roots,(function(e){return e.rootName})).filter((function(e){return e!=Hs}))}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"toJSON",value:function(){var e=vn(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}},{key:"_handleChangeBlock",value:function(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}},{key:"_hasDocumentChangedFromTheLastChangeBlock",value:function(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}},{key:"_getDefaultRoot",value:function(){var e,t=l(this.roots);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n!==this.graveyard)return n}}catch(e){t.e(e)}finally{t.f()}return this.graveyard}},{key:"_getDefaultRange",value:function(){var e=this._getDefaultRoot(),t=this.model,n=t.schema,r=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(r)||t.createRange(r)}},{key:"_validateSelectionRange",value:function(e){return qs(e.start)&&qs(e.end)}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,r=l(this._postFixers);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(this.selection.refresh(),t=i(e))break}}catch(e){r.e(e)}finally{r.f()}}while(t)}},{key:"graveyard",get:function(){return this.getRoot(Hs)}}]),e}();function qs(e){var t=e.textNode;if(t){var n=t.data,r=e.offset-t.startOffset;return!Vs(n,r)&&!$s(n,r)}return!0}sn(Us,Xt);var Ws=function(){function e(){h(this,e),this._markers=new Map}return m(e,[{key:Symbol.iterator,value:function(){return this._markers.values()}},{key:"has",value:function(e){return this._markers.has(e)}},{key:"get",value:function(e){return this._markers.get(e)||null}},{key:"_set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e instanceof Ys?e.name:e;if(i.includes(","))throw new Kt.a("markercollection-incorrect-marker-name",this);var o=this._markers.get(i);if(o){var a=o.getRange(),s=!1;return a.isEqual(t)||(o._attachLiveRange(ma.fromRange(t)),s=!0),n!=o.managedUsingOperations&&(o._managedUsingOperations=n,s=!0),"boolean"==typeof r&&r!=o.affectsData&&(o._affectsData=r,s=!0),s&&this.fire("update:"+i,o,a,t),o}var c=ma.fromRange(t),l=new Ys(i,c,n,r);return this._markers.set(i,l),this.fire("update:"+i,l,null,t),l}},{key:"_remove",value:function(e){var t=e instanceof Ys?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire("update:"+t,n,n.getRange(),null),this._destroyMarker(n),!0)}},{key:"_refresh",value:function(e){var t=e instanceof Ys?e.name:e,n=this._markers.get(t);if(!n)throw new Kt.a("markercollection-refresh-marker-not-exists",this);var r=n.getRange();this.fire("update:"+t,n,r,r,n.managedUsingOperations,n.affectsData)}},{key:"getMarkersAtPosition",value:o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=l(this),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(i=r.value,e.t0=i.getRange().containsPosition(t),!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"getMarkersIntersectingRange",value:o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=l(this),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(i=r.value,e.t0=null!==i.getRange().getIntersection(t),!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"destroy",value:function(){var e,t=l(this._markers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._destroyMarker(n)}}catch(e){t.e(e)}finally{t.f()}this._markers=null,this.stopListening()}},{key:"getMarkersGroup",value:o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=l(this._markers.values()),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(i=r.value,e.t0=i.name.startsWith(t+":"),!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"_destroyMarker",value:function(e){e.stopListening(),e._detachLiveRange()}}]),e}();sn(Ws,Xt);var Ys=function(){function e(t,n,r,i){h(this,e),this.name=t,this._liveRange=this._attachLiveRange(n),this._managedUsingOperations=r,this._affectsData=i}return m(e,[{key:"getStart",value:function(){if(!this._liveRange)throw new Kt.a("marker-destroyed",this);return this._liveRange.start.clone()}},{key:"getEnd",value:function(){if(!this._liveRange)throw new Kt.a("marker-destroyed",this);return this._liveRange.end.clone()}},{key:"getRange",value:function(){if(!this._liveRange)throw new Kt.a("marker-destroyed",this);return this._liveRange.toRange()}},{key:"is",value:function(e){return"marker"===e||"model:marker"===e}},{key:"_attachLiveRange",value:function(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}},{key:"_detachLiveRange",value:function(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}},{key:"managedUsingOperations",get:function(){if(!this._liveRange)throw new Kt.a("marker-destroyed",this);return this._managedUsingOperations}},{key:"affectsData",get:function(){if(!this._liveRange)throw new Kt.a("marker-destroyed",this);return this._affectsData}}]),e}();sn(Ys,Xt);var Ks=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"clone",value:function(){return new n(this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.baseVersion+1)}},{key:"_execute",value:function(){}},{key:"type",get:function(){return"noop"}}],[{key:"className",get:function(){return"NoOperation"}}]),n}(us),Gs={};Gs[ks.className]=ks,Gs[Cs.className]=Cs,Gs[As.className]=As,Gs[_s.className]=_s,Gs[Ks.className]=Ks,Gs[us.className]=us,Gs[xs.className]=xs,Gs[Ss.className]=Ss,Gs[Es.className]=Es,Gs[Ms.className]=Ms;var Qs=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(h(this,n),!(i=t.call(this,e,r,o)).root.is("rootElement"))throw new Kt.a("model-liveposition-root-not-rootelement",e);return Xs.call(y(i)),b(i)}return m(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e}},{key:"toPosition",value:function(){return new Jo(this.root,this.path.slice(),this.stickiness)}}],[{key:"fromPosition",value:function(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}]),n}(Jo);function Xs(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var r=n[0];r.isDocumentOperation&&Js.call(e,r)}),{priority:"low"})}function Js(e){var t=this.getTransformedByOperation(e);if(!this.isEqual(t)){var n=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",n)}}sn(Qs,Xt);var Zs=function(){function e(t,n,r){h(this,e),this.model=t,this.writer=n,this.position=r,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}return m(e,[{key:"handleNodes",value:function(e,t){e=Array.from(e);for(var n=0;n<e.length;n++){var r=e[n];this._handleNode(r,{isFirst:0===n&&t.isFirst,isLast:n===e.length-1&&t.isLast})}this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}},{key:"getSelectionRange",value:function(){return this.nodeToSelect?na._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}},{key:"getAffectedRange",value:function(){return this._affectedStart?new na(this._affectedStart,this._affectedEnd):null}},{key:"destroy",value:function(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}},{key:"_handleNode",value:function(e,t){this.schema.isObject(e)?this._handleObject(e,t):this._checkAndSplitToAllowedPosition(e,t)?(this._insert(e),this._mergeSiblingsOf(e,t)):this._handleDisallowedNode(e,t)}},{key:"_handleObject",value:function(e,t){this._checkAndSplitToAllowedPosition(e)?this._insert(e):this._tryAutoparagraphing(e,t)}},{key:"_handleDisallowedNode",value:function(e,t){e.is("element")?this.handleNodes(e.getChildren(),t):this._tryAutoparagraphing(e,t)}},{key:"_insert",value:function(e){if(!this.schema.checkChild(this.position,e))throw new Kt.a("insertcontent-wrong-position",this,{node:e,position:this.position});var t=Qs.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this.writer.insert(e,this.position),this.position=t.toPosition(),t.detach(),this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?this.nodeToSelect=e:this.nodeToSelect=null,this._filterAttributesOf.push(e)}},{key:"_setAffectedBoundaries",value:function(e){this._affectedStart||(this._affectedStart=Qs.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Qs.fromPosition(e,"toNext"))}},{key:"_mergeSiblingsOf",value:function(e,t){if(e instanceof Go){var n=this._canMergeLeft(e,t),r=this._canMergeRight(e,t),i=Qs._createBefore(e);i.stickiness="toNext";var o=Qs._createAfter(e);if(o.stickiness="toNext",n){var a=Qs.fromPosition(this.position);a.stickiness="toNext",this._affectedStart.isEqual(i)&&(this._affectedStart.detach(),this._affectedStart=Qs._createAt(i.nodeBefore,"end","toPrevious")),this.writer.merge(i),i.isEqual(this._affectedEnd)&&t.isLast&&(this._affectedEnd.detach(),this._affectedEnd=Qs._createAt(i.nodeBefore,"end","toNext")),this.position=a.toPosition(),a.detach()}if(r){if(!this.position.isEqual(o))throw new Kt.a("insertcontent-invalid-insertion-position",this);this.position=Jo._createAt(o.nodeBefore,"end");var s=Qs.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(o)&&(this._affectedEnd.detach(),this._affectedEnd=Qs._createAt(o.nodeBefore,"end","toNext")),this.writer.merge(o),o.getShiftedBy(-1).isEqual(this._affectedStart)&&t.isFirst&&(this._affectedStart.detach(),this._affectedStart=Qs._createAt(o.nodeBefore,0,"toPrevious")),this.position=s.toPosition(),s.detach()}(n||r)&&this._filterAttributesOf.push(this.position.parent),i.detach(),o.detach()}}},{key:"_canMergeLeft",value:function(e,t){var n=e.previousSibling;return t.isFirst&&n instanceof Go&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(n,e)}},{key:"_canMergeRight",value:function(e,t){var n=e.nextSibling;return t.isLast&&n instanceof Go&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(e,n)}},{key:"_tryAutoparagraphing",value:function(e,t){var n=this.writer.createElement("paragraph");this._getAllowedIn(n,this.position.parent)&&this.schema.checkChild(n,e)&&(n._appendChild(e),this._handleNode(n,t))}},{key:"_checkAndSplitToAllowedPosition",value:function(e){var t=this._getAllowedIn(e,this.position.parent);if(!t)return!1;for(;t!=this.position.parent;){if(this.schema.isLimit(this.position.parent))return!1;if(this.position.isAtStart){var n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===t&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{var r=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=r,this.canMergeWith.add(this.position.nodeAfter)}}return!0}},{key:"_getAllowedIn",value:function(e,t){return this.schema.checkChild(t,e)?t:t.parent?this._getAllowedIn(e,t.parent):null}}]),e}();function ec(e,t,n,r){var i=t.parent,o=n.parent;if(i!=r&&o!=r){for(t=e.createPositionAfter(i),(n=e.createPositionBefore(o)).isEqual(t)||e.insert(o,t),e.merge(t);n.parent.isEmpty;){var a=n.parent;n=e.createPositionBefore(a),e.remove(a)}nc(e.model.schema,t,n)&&ec(e,t,n,r)}}function tc(e,t,n,r){var i=t.parent,o=n.parent;if(i!=r&&o!=r){for(t=e.createPositionAfter(i),(n=e.createPositionBefore(o)).isEqual(t)||e.insert(i,n);t.parent.isEmpty;){var a=t.parent;t=e.createPositionBefore(a),e.remove(a)}n=e.createPositionBefore(o),function(e,t){var n=t.nodeBefore,r=t.nodeAfter;n.name!=r.name&&e.rename(n,r.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(r.getAttributes()),n),e.merge(t)}(e,n),nc(e.model.schema,t,n)&&tc(e,t,n,r)}}function nc(e,t,n){var r=t.parent,i=n.parent;return r!=i&&!e.isLimit(r)&&!e.isLimit(i)&&function(e,t,n){var r,i=l(new na(e,t).getWalker());try{for(i.s();!(r=i.n()).done;){var o=r.value;if(n.isLimit(o.item))return!1}}catch(e){i.e(e)}finally{i.f()}return!0}(t,n,e)}function rc(e,t,n){var r=e.createElement("paragraph");e.insert(r,t),ic(e,n,e.createPositionAt(r,0))}function ic(e,t,n){t instanceof ya?e.setSelection(n):t.setTo(n)}var oc=' ,.?!:;"-()';function ac(e,t){var n=e.isForward,r=e.walker,i=e.unit,o=e.schema,a=t.type,s=t.item,c=t.nextPosition;if("text"==a)return"word"===e.unit?function(e,t){var n=e.position.textNode;if(n)for(var r=e.position.offset-n.startOffset;!cc(n.data,r,t)&&!lc(n,r,t);){e.next();var i=t?e.position.nodeAfter:e.position.nodeBefore;if(i&&i.is("$text")){var o=i.data.charAt(t?0:i.data.length-1);oc.includes(o)||(e.next(),n=e.position.textNode)}r=e.position.offset-n.startOffset}return e.position}(r,n):function(e,t){var n=e.position.textNode;if(n)for(var r=n.data,i=e.position.offset-n.startOffset;Vs(r,i)||"character"==t&&$s(r,i);)e.next(),i=e.position.offset-n.startOffset;return e.position}(r,i);if(a==(n?"elementStart":"elementEnd")){if(o.isSelectable(s))return Jo._createAt(s,n?"after":"before");if(o.checkChild(c,"$text"))return c}else{if(o.isLimit(s))return void r.skip((function(){return!0}));if(o.checkChild(c,"$text"))return c}}function sc(e,t){var n=e.root,r=Jo._createAt(n,t?"end":0);return t?new na(e,r):new na(r,e)}function cc(e,t,n){var r=t+(n?0:-1);return oc.includes(e.charAt(r))}function lc(e,t,n){return t===(n?e.endOffset:0)}function uc(e,t){var n=[];Array.from(e.getItems({direction:"backward"})).map((function(e){return t.createRangeOn(e)})).filter((function(t){return(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))})).forEach((function(e){n.push(e.start.parent),t.remove(e)})),n.forEach((function(e){for(var n=e;n.parent&&n.isEmpty;){var r=t.createRangeOn(n);n=n.parent,t.remove(r)}}))}function dc(e,t){return e.isCollapsed?function(e,t){var n=e.start,r=t.getNearestSelectionRange(n);if(!r)return null;if(!r.isCollapsed)return r;var i=r.start;return n.isEqual(i)?null:new na(i)}(e,t):function(e,t){var n=e.start,r=e.end,i=t.checkChild(n,"$text"),o=t.checkChild(r,"$text"),a=t.getLimitElement(n),s=t.getLimitElement(r);if(a===s){if(i&&o)return null;if(function(e,t,n){var r=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,"$text"),i=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,"$text");return r||i}(n,r,t)){var c=n.nodeAfter&&t.isSelectable(n.nodeAfter)?null:t.getNearestSelectionRange(n,"forward"),l=r.nodeBefore&&t.isSelectable(r.nodeBefore)?null:t.getNearestSelectionRange(r,"backward"),u=c?c.start:n,d=l?l.start:r;return new na(u,d)}}var f=a&&!a.is("rootElement"),h=s&&!s.is("rootElement");if(f||h){var p=n.nodeAfter&&r.nodeBefore&&n.nodeAfter.parent===r.nodeBefore.parent,m=f&&(!p||!hc(n.nodeAfter,t)),v=h&&(!p||!hc(r.nodeBefore,t)),g=n,b=r;return m&&(g=Jo._createBefore(fc(a,t))),v&&(b=Jo._createAfter(fc(s,t))),new na(g,b)}return null}(e,t)}function fc(e,t){for(var n=e,r=n;t.isLimit(r)&&r.parent;)n=r,r=r.parent;return n}function hc(e,t){return e&&t.isSelectable(e)}var pc=function(){function e(){var t=this;h(this,e),this.markers=new Ws,this.document=new Us(this),this.schema=new qa,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((function(e){return t.decorate(e)})),this.on("applyOperation",(function(e,t){t[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$clipboardHolder"}),this.schema.register("$marker"),this.schema.addChildCheck((function(e,t){if("$marker"===t.name)return!0})),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,r=t.document.selection,i=t.schema,o=[],a=!1,s=l(r.getRanges());try{for(s.s();!(n=s.n()).done;){var c=n.value,u=dc(c,i);u&&!u.isEqual(c)?(o.push(u),a=!0):o.push(c)}}catch(e){s.e(e)}finally{s.f()}a&&e.setSelection(function(e){var t=[];t.push(e.shift());var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=t.pop();if(i.isIntersecting(o)){var a=o.start.isAfter(i.start)?i.start:o.start,s=o.end.isAfter(i.end)?o.end:i.end,c=new na(a,s);t.push(c)}else t.push(o),t.push(i)}}catch(e){r.e(e)}finally{r.f()}return t}(o),{backward:r.isBackward})}(t,e)}))}(this),this.document.registerPostFixer(Oa)}return m(e,[{key:"change",value:function(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new ls,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){Kt.a.rethrowUnexpectedError(e,this)}}},{key:"enqueueChange",value:function(e,t){try{"string"==typeof e?e=new ls(e):"function"==typeof e&&(t=e,e=new ls),this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){Kt.a.rethrowUnexpectedError(e,this)}}},{key:"applyOperation",value:function(e){e._execute()}},{key:"insertContent",value:function(e,t,n){return function(e,t,n,r){return e.change((function(i){var o;(o=n?n instanceof ua||n instanceof ya?n:i.createSelection(n,r):e.document.selection).isCollapsed||e.deleteContent(o,{doNotAutoparagraph:!0});var a,s=new Zs(e,i,o.anchor);a=t.is("documentFragment")?t.getChildren():[t],s.handleNodes(a,{isFirst:!0,isLast:!0});var c=s.getSelectionRange();c&&(o instanceof ya?i.setSelection(c):o.setTo(c));var l=s.getAffectedRange()||e.createRange(o.anchor);return s.destroy(),l}))}(this,e,t,n)}},{key:"deleteContent",value:function(e,t){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.isCollapsed){var r=t.getFirstRange();if("$graveyard"!=r.root.rootName){var i=e.schema;e.change((function(e){if(n.doNotResetEntireContent||!function(e,t){var n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;var r=t.getFirstRange();return r.start.parent!=r.end.parent&&e.checkChild(n,"paragraph")}(i,t)){var o=c(function(e){var t=e.root.document.model,n=e.start,r=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){var i=function(e){var t,n=e.parent,r=n.root.document.model.schema,i=l(n.getAncestors({parentFirst:!0,includeSelf:!0}));try{for(i.s();!(t=i.n()).done;){var o=t.value;if(r.isLimit(o))return null;if(r.isBlock(o))return o}}catch(e){i.e(e)}finally{i.f()}}(r);if(i&&r.isTouching(t.createPositionAt(i,0))){var o=t.createSelection(e);t.modifySelection(o,{direction:"backward"}),r=o.getLastPosition()}}return[Qs.fromPosition(n,"toPrevious"),Qs.fromPosition(r,"toNext")]}(r),2),a=o[0],s=o[1];a.isTouching(s)||e.remove(e.createRange(a,s)),n.leaveUnmerged||(function(e,t,n){var r=e.model;if(nc(e.model.schema,t,n)){var i=c(function(e,t){for(var n=e.getAncestors(),r=t.getAncestors(),i=0;n[i]&&n[i]==r[i];)i++;return[n[i],r[i]]}(t,n),2),o=i[0],a=i[1];!r.hasContent(o,{ignoreMarkers:!0})&&r.hasContent(a,{ignoreMarkers:!0})?tc(e,t,n,o.parent):ec(e,t,n,o.parent)}}(e,a,s),i.removeDisallowedAttributes(a.parent.getChildren(),e)),ic(e,t,a),!n.doNotAutoparagraph&&function(e,t){var n=e.checkChild(t,"$text"),r=e.checkChild(t,"paragraph");return!n&&r}(i,a)&&rc(e,a,t),a.detach(),s.detach()}else!function(e,t){var n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),rc(e,e.createPositionAt(n,0),t)}(e,t)}))}}}(this,e,t)}},{key:"modifySelection",value:function(e,t){!function(e,t){for(var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.schema,o="backward"!=r.direction,a=r.unit?r.unit:"character",s=t.focus,c=new Qo({boundaries:sc(s,o),singleCharacters:!0,direction:o?"forward":"backward"}),l={walker:c,schema:i,isForward:o,unit:a},u=function(){if(n.done)return{v:void 0};var r=ac(l,n.value);return r?{v:void(t instanceof ya?e.change((function(e){e.setSelectionFocus(r)})):t.setFocus(r))}:void 0};n=c.next();){var d=u();if("object"===x(d))return d.v}}(this,e,t)}},{key:"getSelectedContent",value:function(e){return function(e,t){return e.change((function(e){var n=e.createDocumentFragment(),r=t.getFirstRange();if(!r||r.isCollapsed)return n;var i,o,a=r.start.root,s=r.start.getCommonPath(r.end),c=a.getNodeByPath(s),u=(i=r.start.parent==r.end.parent?r:e.createRange(e.createPositionAt(c,r.start.path[s.length]),e.createPositionAt(c,r.end.path[s.length]+1))).end.offset-i.start.offset,d=l(i.getItems({shallow:!0}));try{for(d.s();!(o=d.n()).done;){var f=o.value;f.is("$textProxy")?e.appendText(f.data,f.getAttributes(),n):e.append(e.cloneElement(f,!0),n)}}catch(e){d.e(e)}finally{d.f()}if(i!=r){var h=r._getTransformedByMove(i.start,e.createPositionAt(n,0),u)[0],p=e.createRange(e.createPositionAt(n,0),h.start);uc(e.createRange(h.end,e.createPositionAt(n,"end")),e),uc(p,e)}return n}))}(this,e)}},{key:"hasContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e instanceof Go?na._createIn(e):e;if(n.isCollapsed)return!1;var r=t.ignoreWhitespaces,i=void 0!==r&&r,o=t.ignoreMarkers,a=void 0!==o&&o;if(!a){var s,c=l(this.markers.getMarkersIntersectingRange(n));try{for(c.s();!(s=c.n()).done;){var u=s.value;if(u.affectsData)return!0}}catch(e){c.e(e)}finally{c.f()}}var d,f=l(n.getItems());try{for(f.s();!(d=f.n()).done;){var h=d.value;if(this.schema.isContent(h)){if(!h.is("$textProxy"))return!0;if(!i)return!0;if(-1!==h.data.search(/\S/))return!0}}}catch(e){f.e(e)}finally{f.f()}return!1}},{key:"createPositionFromPath",value:function(e,t,n){return new Jo(e,t,n)}},{key:"createPositionAt",value:function(e,t){return Jo._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Jo._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Jo._createBefore(e)}},{key:"createRange",value:function(e,t){return new na(e,t)}},{key:"createRangeIn",value:function(e){return na._createIn(e)}},{key:"createRangeOn",value:function(e){return na._createOn(e)}},{key:"createSelection",value:function(e,t,n){return new ua(e,t,n)}},{key:"createBatch",value:function(e){return new ls(e)}},{key:"createOperationFromJSON",value:function(e){return function(){function e(){h(this,e)}return m(e,null,[{key:"fromJSON",value:function(e,t){return Gs[e.__className].fromJSON(e,t)}}]),e}().fromJSON(e,this.document)}},{key:"destroy",value:function(){this.document.destroy(),this.stopListening()}},{key:"_runPendingChanges",value:function(){var e=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){var t=this._pendingChanges[0].batch;this._currentWriter=new Ds(this,t);var n=this._pendingChanges[0].callback(this._currentWriter);e.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),e}}]),e}();sn(pc,mr);var mc=function(){function e(){h(this,e),this._listener=Object.create(Vi)}return m(e,[{key:"listenTo",value:function(e){var t=this;this._listener.listenTo(e,"keydown",(function(e,n){t._listener.fire("_keydown:"+qr(n),n)}))}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Wr(e),i=n.priority;this._listener.listenTo(this._listener,"_keydown:"+r,(function(e,n){t(n,(function(){n.preventDefault(),n.stopPropagation(),e.stop()})),e.return=!0}),{priority:i})}},{key:"press",value:function(e){return!!this._listener.fire("_keydown:"+qr(e),e)}},{key:"destroy",value:function(){this._listener.stopListening()}}]),e}(),vc=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this)).editor=e,r}return m(n,[{key:"set",value:function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t){var o=t;t=function(e,t){r.editor.execute(o),t()}}s(A(n.prototype),"set",this).call(this,e,t,i)}}]),n}(mc),gc=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,e),this._context=n.context||new pn({language:n.language}),this._context._addEditor(this,!n.context);var r=Array.from(this.constructor.builtinPlugins||[]);this.config=new Vt(n,this.constructor.defaultConfig),this.config.define("plugins",r),this.config.define(this._context._getEditorConfig()),this.plugins=new ln(this,r,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new $a,this.set("state","initializing"),this.once("ready",(function(){return t.state="ready"}),{priority:"high"}),this.once("destroy",(function(){return t.state="destroyed"}),{priority:"high"}),this.set("isReadOnly",!1),this.model=new pc;var i=new rr;this.data=new os(this.model,i),this.editing=new Va(this.model,i),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new as([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new vc(this),this.keystrokes.listenTo(this.editing.view.document)}return m(e,[{key:"initPlugins",value:function(){var e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],r=e.get("extraPlugins")||[];return this.plugins.init(t.concat(r),n)}},{key:"destroy",value:function(){var e=this,t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((function(t){return e.once("ready",t)}))),t.then((function(){e.fire("destroy"),e.stopListening(),e.commands.destroy()})).then((function(){return e.plugins.destroy()})).then((function(){e.model.destroy(),e.data.destroy(),e.editing.destroy(),e.keystrokes.destroy()})).then((function(){return e._context._removeEditor(e)}))}},{key:"execute",value:function(){try{var e;return(e=this.commands).execute.apply(e,arguments)}catch(e){Kt.a.rethrowUnexpectedError(e,this)}}}]),e}();sn(gc,mr);var bc={updateSourceElement:function(){if(!this.sourceElement)throw new Kt.a("editor-missing-sourceelement",this);var e,t;e=this.sourceElement,t=this.data.get(),e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}},yc=function(){function e(){h(this,e)}return m(e,[{key:"getHtml",value:function(e){var t=document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}]),e}(),kc=function(){function e(t){h(this,e),this._domParser=new DOMParser,this._domConverter=new Ri(t,{blockFillerMode:"nbsp"}),this._htmlWriter=new yc}return m(e,[{key:"toData",value:function(e){var t=this._domConverter.viewToDom(e,document);return this._htmlWriter.getHtml(t)}},{key:"toView",value:function(e){var t=this._toDom(e);return this._domConverter.domToView(t)}},{key:"_toDom",value:function(e){for(var t=this._domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment(),r=t.body.childNodes;r.length>0;)n.appendChild(r[0]);return n}}]),e}(),wc=function(){function e(t){h(this,e),this.editor=t,this._components=new Map}return m(e,[{key:"names",value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l(this._components.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,r.originalName;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"add",value:function(e,t){this._components.set(_c(e),{callback:t,originalName:e})}},{key:"create",value:function(e){if(!this.has(e))throw new Kt.a("componentfactory-item-missing",this,{name:e});return this._components.get(_c(e)).callback(this.editor.locale)}},{key:"has",value:function(e){return this._components.has(_c(e))}}]),e}();function _c(e){return String(e).toLowerCase()}var Cc=function(){function e(){h(this,e),this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}return m(e,[{key:"add",value:function(e){var t=this;if(this._elements.has(e))throw new Kt.a("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",(function(){return t._focus(e)}),{useCapture:!0}),this.listenTo(e,"blur",(function(){return t._blur()}),{useCapture:!0}),this._elements.add(e)}},{key:"remove",value:function(e){e===this.focusedElement&&this._blur(e),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}},{key:"destroy",value:function(){this.stopListening()}},{key:"_focus",value:function(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}},{key:"_blur",value:function(){var e=this;clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((function(){e.focusedElement=null,e.isFocused=!1}),0)}}]),e}();sn(Cc,Vi),sn(Cc,mr);var Ac=function(){function e(t){var n=this;h(this,e),this.editor=t,this.componentFactory=new wc(t),this.focusTracker=new Cc,this._editableElementsMap=new Map,this.listenTo(t.editing.view.document,"layoutChanged",(function(){return n.update()}))}return m(e,[{key:"update",value:function(){this.fire("update")}},{key:"destroy",value:function(){this.stopListening(),this.focusTracker.destroy();var e,t=l(this._editableElementsMap.values());try{for(t.s();!(e=t.n()).done;){e.value.ckeditorInstance=null}}catch(e){t.e(e)}finally{t.f()}this._editableElementsMap=new Map}},{key:"setEditableElement",value:function(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor)}},{key:"getEditableElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(e)}},{key:"getEditableElementsNames",value:function(){return this._editableElementsMap.keys()}},{key:"element",get:function(){return null}},{key:"_editableElements",get:function(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}]),e}();sn(Ac,Xt),n(15);var xc=new WeakMap;function Sc(e){var t=e.view,n=e.element,r=e.text,i=e.isDirectHost,o=void 0===i||i,a=t.document;xc.has(a)||(xc.set(a,new Map),a.registerPostFixer((function(e){return Mc(a,e)}))),xc.get(a).set(n,{text:r,isDirectHost:o}),t.change((function(e){return Mc(a,e)}))}function Mc(e,t){var n,r=!1,i=l(xc.get(e));try{for(i.s();!(n=i.n()).done;){var o=c(n.value,2);Ec(t,o[0],o[1])&&(r=!0)}}catch(e){i.e(e)}finally{i.f()}return r}function Ec(e,t,n){var r=n.text,i=n.isDirectHost?t:function(e){if(1===e.childCount){var t=e.getChild(0);if(t.is("element")&&!t.is("uiElement"))return t}return null}(t),o=!1;return!!i&&(n.hostElement=i,i.getAttribute("data-placeholder")!==r&&(e.setAttribute("data-placeholder",r,i),o=!0),function(e){if(!e.isAttached())return!1;var t=!Array.from(e.getChildren()).some((function(e){return!e.is("uiElement")})),n=e.document;if(!n.isFocused&&t)return!0;var r=n.selection.anchor;return!(!t||!r||r.parent===e)}(i)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,i)&&(o=!0):function(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}(e,i)&&(o=!0),o)}var Tc=function(){function e(){h(this,e),this._replacedElements=[]}return m(e,[{key:"replace",value:function(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}},{key:"restore",value:function(){this._replacedElements.forEach((function(e){var t=e.element,n=e.newElement;t.style.display="",n&&n.remove()})),this._replacedElements=[]}}]),e}(),Dc=function(e){v(n,e);var t=g(n);function n(e,r){var i,o;return h(this,n),(i=t.call(this,e)).view=r,i._toolbarConfig=(o=e.config.get("toolbar"),Array.isArray(o)?{items:o}:o?Object.assign({items:[]},o):{items:[]}),i._elementReplacer=new Tc,i}return m(n,[{key:"init",value:function(e){var t=this.editor,n=this.view,r=t.editing.view,i=n.editable,o=r.document.getRoot();i.name=o.rootName,n.render();var a=i.element;this.setEditableElement(i.name,a),this.focusTracker.add(a),n.editable.bind("isFocused").to(this.focusTracker),r.attachDomRoot(a),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}},{key:"destroy",value:function(){var e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.detachDomRoot(e.editable.name),e.destroy(),s(A(n.prototype),"destroy",this).call(this)}},{key:"_initToolbar",value:function(){var e=this.editor,t=this.view,n=e.editing.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,this._toolbarConfig.viewportTopOffset&&(t.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),t.toolbar.fillFromConfig(this._toolbarConfig.items,this.componentFactory),function(e){var t=e.origin,n=e.originKeystrokeHandler,r=e.originFocusTracker,i=e.toolbar,o=e.beforeFocus,a=e.afterBlur;r.add(i.element),n.set("Alt+F10",(function(e,t){r.isFocused&&!i.focusTracker.isFocused&&(o&&o(),i.focus(),t())})),i.keystrokes.set("Esc",(function(e,n){i.focusTracker.isFocused&&(t.focus(),a&&a(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:e.keystrokes,toolbar:t.toolbar})}},{key:"_initPlaceholder",value:function(){var e=this.editor,t=e.editing.view,n=t.document.getRoot(),r=e.sourceElement,i=e.config.get("placeholder")||r&&"textarea"===r.tagName.toLowerCase()&&r.getAttribute("placeholder");i&&Sc({view:t,element:n,text:i,isDirectHost:!1})}},{key:"element",get:function(){return this.view.element}}]),n}(Ac),Oc=function(e){v(n,e);var t=g(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return h(this,n),(e=t.call(this,r,{idProperty:"viewUid"})).on("add",(function(t,n,r){e._renderViewIntoCollectionParent(n,r)})),e.on("remove",(function(t,n){n.element&&e._parentElement&&n.element.remove()})),e._parentElement=null,e}return m(n,[{key:"destroy",value:function(){this.map((function(e){return e.destroy()}))}},{key:"setParent",value:function(e){this._parentElement=e;var t,n=l(this);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._renderViewIntoCollectionParent(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"delegate",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length||!n.every((function(e){return"string"==typeof e})))throw new Kt.a("ui-viewcollection-delegate-wrong-events",this);return{to:function(t){var r,i=l(e);try{for(i.s();!(r=i.n()).done;){var o,a=r.value,s=l(n);try{for(s.s();!(o=s.n()).done;){var c=o.value;a.delegate(c).to(t)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){i.e(e)}finally{i.f()}e.on("add",(function(e,r){var i,o=l(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;r.delegate(a).to(t)}}catch(e){o.e(e)}finally{o.f()}})),e.on("remove",(function(e,r){var i,o=l(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;r.stopDelegating(a,t)}}catch(e){o.e(e)}finally{o.f()}}))}}}},{key:"_renderViewIntoCollectionParent",value:function(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}}]),n}(cn),Pc=function(){function e(t){h(this,e),Object.assign(this,$c(Vc(t))),this._isRendered=!1,this._revertData=null}return m(e,[{key:"render",value:function(){var e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}},{key:"apply",value:function(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,isApplying:!0,revertData:this._revertData}),e}},{key:"revert",value:function(e){if(!this._revertData)throw new Kt.a("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}},{key:"getViews",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!t.children){o.next=24;break}n=l(t.children),o.prev=2,n.s();case 4:if((r=n.n()).done){o.next=16;break}if(!Yc(i=r.value)){o.next=11;break}return o.next=9,i;case 9:o.next=14;break;case 11:if(o.t0=Kc(i),!o.t0){o.next=14;break}return o.delegateYield(e(i),"t1",14);case 14:o.next=4;break;case 16:o.next=21;break;case 18:o.prev=18,o.t2=o.catch(2),n.e(o.t2);case 21:return o.prev=21,n.f(),o.finish(21);case 24:case"end":return o.stop()}}),e,null,[[2,18,21,24]])}))(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"_renderNode",value:function(e){if(e.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new Kt.a("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}},{key:"_renderElement",value:function(e){var t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}},{key:"_renderText",value:function(e){var t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),Rc(this.text)?this._bindToObservable({schema:this.text,updater:Bc(t),data:e}):t.textContent=this.text.join(""),t}},{key:"_renderAttributes",value:function(e){var t,n,r,i;if(this.attributes){var o=e.node,a=e.revertData;for(t in this.attributes)if(r=o.getAttribute(t),n=this.attributes[t],a&&(a.attributes[t]=r),i=q(n[0])&&n[0].ns?n[0].ns:null,Rc(n)){var s=i?n[0].value:n;a&&Qc(t)&&s.unshift(r),this._bindToObservable({schema:s,updater:Fc(o,t,i),data:e})}else"style"==t&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],e):(a&&r&&Qc(t)&&n.unshift(r),Wc(n=n.map((function(e){return e&&e.value||e})).reduce((function(e,t){return e.concat(t)}),[]).reduce(Uc,""))||o.setAttributeNS(i,t,n))}}},{key:"_renderStyleAttribute",value:function(e,t){var n=t.node;for(var r in e){var i=e[r];Rc(i)?this._bindToObservable({schema:[i],updater:zc(n,r),data:t}):n.style[r]=i}}},{key:"_renderElementChildren",value:function(e){var t,n=e.node,r=e.intoFragment?document.createDocumentFragment():n,i=e.isApplying,o=0,a=l(this.children);try{for(a.s();!(t=a.n()).done;){var s=t.value;if(Gc(s)){if(!i){s.setParent(n);var c,u=l(s);try{for(u.s();!(c=u.n()).done;){var d=c.value;r.appendChild(d.element)}}catch(e){u.e(e)}finally{u.f()}}}else if(Yc(s))i||(s.isRendered||s.render(),r.appendChild(s.element));else if(Mi(s))r.appendChild(s);else if(i){var f={children:[],bindings:[],attributes:{}};e.revertData.children.push(f),s._renderNode({node:r.childNodes[o++],isApplying:!0,revertData:f})}else r.appendChild(s.render())}}catch(e){a.e(e)}finally{a.f()}e.intoFragment&&n.appendChild(r)}},{key:"_setUpListeners",value:function(e){var t=this;if(this.eventListeners){var n=function(n){var r=t.eventListeners[n].map((function(t){var r=c(n.split("@"),2),i=r[0],o=r[1];return t.activateDomEventListener(i,o,e)}));e.revertData&&e.revertData.bindings.push(r)};for(var r in this.eventListeners)n(r)}}},{key:"_bindToObservable",value:function(e){var t=e.schema,n=e.updater,r=e.data,i=r.revertData;Lc(t,n,r);var o=t.filter((function(e){return!Wc(e)})).filter((function(e){return e.observable})).map((function(e){return e.activateAttributeListener(t,n,r)}));i&&i.bindings.push(o)}},{key:"_revertTemplateFromNode",value:function(e,t){var n,r=l(t.bindings);try{for(r.s();!(n=r.n()).done;){var i,o=l(n.value);try{for(o.s();!(i=o.n()).done;){(0,i.value)()}}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}if(t.text)e.textContent=t.text;else{for(var a in t.attributes){var s=t.attributes[a];null===s?e.removeAttribute(a):e.setAttribute(a,s)}for(var c=0;c<t.children.length;++c)this._revertTemplateFromNode(e.childNodes[c],t.children[c])}}}],[{key:"bind",value:function(e,t){return{to:function(n,r){return new jc({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:r})},if:function(n,r,i){return new Nc({observable:e,emitter:t,attribute:n,valueIfTrue:r,callback:i})}}}},{key:"extend",value:function(e,t){if(e._isRendered)throw new Kt.a("template-extend-render",[this,e]);!function e(t,n){var r;if(n.attributes&&(t.attributes||(t.attributes={}),qc(t.attributes,n.attributes)),n.eventListeners&&(t.eventListeners||(t.eventListeners={}),qc(t.eventListeners,n.eventListeners)),n.text&&(r=t.text).push.apply(r,u(n.text)),n.children&&n.children.length){if(t.children.length!=n.children.length)throw new Kt.a("ui-template-extend-children-mismatch",t);var i,o=0,a=l(n.children);try{for(a.s();!(i=a.n()).done;){var s=i.value;e(t.children[o++],s)}}catch(e){a.e(e)}finally{a.f()}}}(e,$c(Vc(t)))}}]),e}();sn(Pc,Xt);var Ic=function(){function e(t){h(this,e),Object.assign(this,t)}return m(e,[{key:"getValue",value:function(e){var t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}},{key:"activateAttributeListener",value:function(e,t,n){var r=this,i=function(){return Lc(e,t,n)};return this.emitter.listenTo(this.observable,"change:"+this.attribute,i),function(){r.emitter.stopListening(r.observable,"change:"+r.attribute,i)}}}]),e}(),jc=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"activateDomEventListener",value:function(e,t,n){var r=this,i=function(e,n){t&&!n.target.matches(t)||("function"==typeof r.eventNameOrFunction?r.eventNameOrFunction(n):r.observable.fire(r.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,e,i),function(){r.emitter.stopListening(n.node,e,i)}}}]),n}(Ic),Nc=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"getValue",value:function(e){return!Wc(s(A(n.prototype),"getValue",this).call(this,e))&&(this.valueIfTrue||!0)}}]),n}(Ic);function Rc(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(Rc):e instanceof Ic)}function Lc(e,t,n){var r=function(e,t){return e.map((function(e){return e instanceof Ic?e.getValue(t):e}))}(e,n.node);Wc(r=1==e.length&&e[0]instanceof Nc?r[0]:r.reduce(Uc,""))?t.remove():t.set(r)}function Bc(e){return{set:function(t){e.textContent=t},remove:function(){e.textContent=""}}}function Fc(e,t,n){return{set:function(r){e.setAttributeNS(n,t,r)},remove:function(){e.removeAttributeNS(n,t)}}}function zc(e,t){return{set:function(n){e.style[t]=n},remove:function(){e.style[t]=null}}}function Vc(e){return Ft(e,(function(e){if(e&&(e instanceof Ic||Kc(e)||Yc(e)||Gc(e)))return e}))}function $c(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){Array.isArray(e.text)||(e.text=[e.text])}(e),e.on&&(e.eventListeners=function(e){for(var t in e)Hc(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(var t in e)e[t].value&&(e[t].value=[].concat(e[t].value)),Hc(e,t)}(e.attributes);var t=[];if(e.children)if(Gc(e.children))t.push(e.children);else{var n,r=l(e.children);try{for(r.s();!(n=r.n()).done;){var i=n.value;Kc(i)||Yc(i)||Mi(i)?t.push(i):t.push(new Pc(i))}}catch(e){r.e(e)}finally{r.f()}}e.children=t}return e}function Hc(e,t){Array.isArray(e[t])||(e[t]=[e[t]])}function Uc(e,t){return Wc(t)?e:Wc(e)?t:"".concat(e," ").concat(t)}function qc(e,t){for(var n in t){var r;e[n]?(r=e[n]).push.apply(r,u(t[n])):e[n]=t[n]}}function Wc(e){return!e&&0!==e}function Yc(e){return e instanceof Xc}function Kc(e){return e instanceof Pc}function Gc(e){return e instanceof Oc}function Qc(e){return"class"==e||"style"==e}n(17);var Xc=function(){function e(t){h(this,e),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new cn,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(function(e,n){n.locale=t})),this.decorate("render")}return m(e,[{key:"createCollection",value:function(e){var t=new Oc(e);return this._viewCollections.add(t),t}},{key:"registerChild",value:function(e){an(e)||(e=[e]);var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._unboundChildren.add(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"deregisterChild",value:function(e){an(e)||(e=[e]);var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._unboundChildren.remove(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"setTemplate",value:function(e){this.template=new Pc(e)}},{key:"extendTemplate",value:function(e){Pc.extend(this.template,e)}},{key:"render",value:function(){if(this.isRendered)throw new Kt.a("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}},{key:"destroy",value:function(){this.stopListening(),this._viewCollections.map((function(e){return e.destroy()})),this.template&&this.template._revertData&&this.template.revert(this.element)}},{key:"bindTemplate",get:function(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Pc.bind(this,this)}}]),e}();sn(Xc,Vi),sn(Xc,mr);var Jc=function(e){return"string"==typeof e||!Se(e)&&P(e)&&"[object String]"==T(e)},Zc=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return h(this,n),(r=t.call(this,i)).locale=e,r}return m(n,[{key:"attachToDom",value:function(){this._bodyCollectionContainer=new Pc({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();var e=document.querySelector(".ck-body-wrapper");e||(e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=n&&n.xmlns,o=i?e.createElementNS(i,t):e.createElement(t);for(var a in n)o.setAttribute(a,n[a]);!Jc(r)&&an(r)||(r=[r]);var s,c=l(r);try{for(c.s();!(s=c.n()).done;){var u=s.value;Jc(u)&&(u=e.createTextNode(u)),o.appendChild(u)}}catch(e){c.e(e)}finally{c.f()}return o}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}},{key:"detachFromDom",value:function(){s(A(n.prototype),"destroy",this).call(this),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();var e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}]),n}(Oc);n(19);var el=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).body=new Zc(e),r}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.body.attachToDom()}},{key:"destroy",value:function(){return this.body.detachFromDom(),s(A(n.prototype),"destroy",this).call(this)}}]),n}(Xc);n(21);var tl=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).set("text"),r.set("for"),r.id="ck-editor__label_"+Wt();var i=r.bindTemplate;return r.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:r.id,for:i.to("for")},children:[{text:i.to("text")}]}),r}return n}(Xc),nl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).top=r.createCollection(),r.main=r.createCollection(),r._voiceLabelView=r._createVoiceLabel(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":r._voiceLabelView.id},children:[r._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:r.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:r.main}]}),r}return m(n,[{key:"_createVoiceLabel",value:function(){var e=this.t,t=new tl;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}]),n}(el),rl=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,e,r,i)).extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),o}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this);var t=this._editingView,r=this.t;t.change((function(n){var i=t.document.getRoot(e.name);n.setAttribute("aria-label",r("Rich Text Editor, %0",e.name),i)}))}}]),n}(function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,e)).setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),o.name=null,o.set("isFocused",!1),o._editableElement=i,o._hasExternalElement=!!o._editableElement,o._editingView=r,o}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(function(){return e._updateIsFocusedClasses()})),this._updateIsFocusedClasses()}},{key:"destroy",value:function(){this._hasExternalElement&&this.template.revert(this._editableElement),s(A(n.prototype),"destroy",this).call(this)}},{key:"_updateIsFocusedClasses",value:function(){var e=this._editingView;function t(t){e.change((function(n){var r=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",r),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",r)}))}e.isRenderingInProgress?function n(r){e.once("change:isRenderingInProgress",(function(e,i,o){o?n(r):t(r)}))}(this):t(this)}}]),n}(Xc));function il(e){return function(t){return t+e}}n(23);var ol=il("px"),al=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("isActive",!1),r.set("isSticky",!1),r.set("limiterElement",null),r.set("limiterBottomOffset",50),r.set("viewportTopOffset",0),r.set("_marginLeft",null),r.set("_isStickyToTheLimiter",!1),r.set("_hasViewportTopOffset",!1),r.content=r.createCollection(),r._contentPanelPlaceholder=new Pc({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:i.to("isSticky",(function(e){return e?"block":"none"})),height:i.to("isSticky",(function(e){return e?ol(r._panelRect.height):null}))}}}).render(),r._contentPanel=new Pc({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",i.if("isSticky","ck-sticky-panel__content_sticky"),i.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:i.to("isSticky",(function(e){return e?ol(r._contentPanelPlaceholder.getBoundingClientRect().width):null})),top:i.to("_hasViewportTopOffset",(function(e){return e?ol(r.viewportTopOffset):null})),bottom:i.to("_isStickyToTheLimiter",(function(e){return e?ol(r.limiterBottomOffset):null})),marginLeft:i.to("_marginLeft")}},children:r.content}).render(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[r._contentPanelPlaceholder,r._contentPanel]}),r}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),this._checkIfShouldBeSticky(),this.listenTo(Pi.window,"scroll",(function(){e._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(function(){e._checkIfShouldBeSticky()}))}},{key:"_checkIfShouldBeSticky",value:function(){var e,t=this._panelRect=this._contentPanel.getBoundingClientRect();this.limiterElement?(e=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&e.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<e.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=e.bottom<t.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:ol(-Pi.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}]),n}(Xc),sl=function(){function e(t){var n=this;if(h(this,e),Object.assign(this,t),t.actions&&t.keystrokeHandler){var r=function(e){var r=t.actions[e];"string"==typeof r&&(r=[r]);var i,o=l(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;t.keystrokeHandler.set(a,(function(t,r){n[e](),r()}))}}catch(e){o.e(e)}finally{o.f()}};for(var i in t.actions)r(i)}}return m(e,[{key:"focusFirst",value:function(){this._focus(this.first)}},{key:"focusLast",value:function(){this._focus(this.last)}},{key:"focusNext",value:function(){this._focus(this.next)}},{key:"focusPrevious",value:function(){this._focus(this.previous)}},{key:"_focus",value:function(e){e&&e.focus()}},{key:"_getFocusableItem",value:function(e){var t=this.current,n=this.focusables.length;if(!n)return null;if(null===t)return this[1===e?"first":"last"];var r=(t+n+e)%n;do{var i=this.focusables.get(r);if(cl(i))return i;r=(r+n+e)%n}while(r!==t);return null}},{key:"first",get:function(){return this.focusables.find(cl)||null}},{key:"last",get:function(){return this.focusables.filter(cl).slice(-1)[0]||null}},{key:"next",get:function(){return this._getFocusableItem(1)}},{key:"previous",get:function(){return this._getFocusableItem(-1)}},{key:"current",get:function(){var e=this,t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((function(n,r){var i=n.element===e.focusTracker.focusedElement;return i&&(t=r),i})),t)}}]),e}();function cl(e){return!(!e.focus||"none"==Pi.window.getComputedStyle(e.element).display)}var ll=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}}),r}return n}(Xc),ul=function(){function e(t,n){h(this,e),e._observerInstance||e._createObserver(),this._element=t,this._callback=n,e._addElementCallback(t,n),e._observerInstance.observe(t)}return m(e,[{key:"destroy",value:function(){e._deleteElementCallback(this._element,this._callback)}}],[{key:"_addElementCallback",value:function(t,n){e._elementCallbacks||(e._elementCallbacks=new Map);var r=e._elementCallbacks.get(t);r||(r=new Set,e._elementCallbacks.set(t,r)),r.add(n)}},{key:"_deleteElementCallback",value:function(t,n){var r=e._getElementCallbacks(t);r&&(r.delete(n),r.size||(e._elementCallbacks.delete(t),e._observerInstance.unobserve(t))),e._elementCallbacks&&!e._elementCallbacks.size&&(e._observerInstance=null,e._elementCallbacks=null)}},{key:"_getElementCallbacks",value:function(t){return e._elementCallbacks?e._elementCallbacks.get(t):null}},{key:"_createObserver",value:function(){var t;t="function"==typeof Pi.window.ResizeObserver?Pi.window.ResizeObserver:dl,e._observerInstance=new t((function(t){var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e._getElementCallbacks(i.target);if(o){var a,s=l(o);try{for(s.s();!(a=s.n()).done;){(0,a.value)(i)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){r.e(e)}finally{r.f()}}))}}]),e}();ul._observerInstance=null,ul._elementCallbacks=null;var dl=function(){function e(t){h(this,e),this._callback=t,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}return m(e,[{key:"observe",value:function(e){this._elements.add(e),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}},{key:"unobserve",value:function(e){this._elements.delete(e),this._previousRects.delete(e),this._elements.size||this._stopPeriodicCheck()}},{key:"_startPeriodicCheck",value:function(){var e=this;this.listenTo(Pi.window,"resize",(function(){e._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout((function t(){e._checkElementRectsAndExecuteCallback(),e._periodicCheckTimeout=setTimeout(t,100)}),100)}},{key:"_stopPeriodicCheck",value:function(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}},{key:"_checkElementRectsAndExecuteCallback",value:function(){var e,t=[],n=l(this._elements);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._hasRectChanged(r)&&t.push({target:r,contentRect:this._previousRects.get(r)})}}catch(e){n.e(e)}finally{n.f()}t.length&&this._callback(t)}},{key:"_hasRectChanged",value:function(e){if(!e.ownerDocument.body.contains(e))return!1;var t=new Oo(e),n=this._previousRects.get(e),r=!n||!n.isEqual(t);return this._previousRects.set(e,t),r}}]),e}();sn(dl,Vi);var fl=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("isVisible",!1),r.set("position","se"),r.children=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",i.to("position",(function(e){return"ck-dropdown__panel_"+e})),i.if("isVisible","ck-dropdown__panel-visible")]},children:r.children,on:{selectstart:i.to((function(e){return e.preventDefault()}))}}),r}return m(n,[{key:"focus",value:function(){this.children.length&&this.children.first.focus()}},{key:"focusLast",value:function(){if(this.children.length){var e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}]),n}(Xc);function hl(e){var t=e.element,n=e.target,r=e.positions,i=e.limiter,o=e.fitInViewport;W(n)&&(n=n()),W(i)&&(i=i());var a,s,u=function(e){return e&&e.parentNode?e.offsetParent===Pi.document.body?null:e.offsetParent:null}(t),d=new Oo(t),f=new Oo(n);if(i||o){var h=function(e,t){var n=t.viewportRect,r=t.elementRect.getArea(),i=function(e,t){var n,r=t.targetRect,i=t.elementRect,o=t.limiterRect,a=t.viewportRect,s=[],u=i.getArea(),d=l(e);try{for(d.s();!(n=d.n()).done;){var f=pl(n.value,r,i);if(f){var h=c(f,2),p=h[0],m=h[1],v=0,g=0;if(o)if(a){var b=o.getIntersection(a);b&&(v=b.getIntersectionArea(m))}else v=o.getIntersectionArea(m);a&&(g=a.getIntersectionArea(m));var y={positionName:p,positionRect:m,limiterIntersectArea:v,viewportIntersectArea:g};if(v===u)return[y];s.push(y)}}}catch(e){d.e(e)}finally{d.f()}return s}(e,t);if(n){var o=ml(i.filter((function(e){return e.viewportIntersectArea===r})),r);if(o)return o}return ml(i,r)}(r,{targetRect:f,elementRect:d,limiterRect:i&&new Oo(i).getVisible(),viewportRect:o&&new Oo(Pi.window)}),p=c(h||pl(r[0],f,d),2);s=p[0],a=p[1]}else{var m=c(pl(r[0],f,d),2);s=m[0],a=m[1]}var v=vl(a);return u&&(v=function(e,t){var n=e.left,r=e.top,i=vl(new Oo(t)),o=To(t);return n-=i.left,r-=i.top,n+=t.scrollLeft,r+=t.scrollTop,{left:n-=o.left,top:r-=o.top}}(v,u)),{left:v.left,top:v.top,name:s}}function pl(e,t,n){var r=e(t,n);if(!r)return null;var i=r.left,o=r.top;return[r.name,n.clone().moveTo(i,o)]}function ml(e,t){var n,r,i,o=0,a=l(e);try{for(a.s();!(i=a.n()).done;){var s=i.value,c=s.positionName,u=s.positionRect,d=s.limiterIntersectArea,f=s.viewportIntersectArea;if(d===t)return[c,u];var h=Math.pow(f,2)+Math.pow(d,2);h>o&&(o=h,n=u,r=c)}}catch(e){a.e(e)}finally{a.f()}return n?[r,n]:null}function vl(e){var t=e.left,n=e.top,r=Pi.window;return{left:t+r.scrollX,top:n+r.scrollY}}n(25);var gl=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;h(this,n);var a=(o=t.call(this,e)).bindTemplate;return o.buttonView=r,o.panelView=i,o.set("isOpen",!1),o.set("isEnabled",!0),o.set("class"),o.set("id"),o.set("panelPosition","auto"),o.keystrokes=new mc,o.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",a.to("class"),a.if("isEnabled","ck-disabled",(function(e){return!e}))],id:a.to("id"),"aria-describedby":a.to("ariaDescribedById")},children:[r,i]}),r.extendTemplate({attributes:{class:["ck-dropdown__button"]}}),o}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),this.listenTo(this.buttonView,"open",(function(){e.isOpen=!e.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(function(){e.isOpen&&("auto"===e.panelPosition?e.panelView.position=n._getOptimalPosition({element:e.panelView.element,target:e.buttonView.element,fitInViewport:!0,positions:e._panelPositions}).name:e.panelView.position=e.panelPosition)})),this.keystrokes.listenTo(this.element);var t=function(t,n){e.isOpen&&(e.buttonView.focus(),e.isOpen=!1,n())};this.keystrokes.set("arrowdown",(function(t,n){e.buttonView.isEnabled&&!e.isOpen&&(e.isOpen=!0,n())})),this.keystrokes.set("arrowright",(function(t,n){e.isOpen&&n()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}},{key:"focus",value:function(){this.buttonView.focus()}},{key:"_panelPositions",get:function(){var e=n.defaultPanelPositions,t=e.southEast,r=e.southWest,i=e.northEast,o=e.northWest;return"ltr"===this.locale.uiLanguageDirection?[t,r,i,o]:[r,t,o,i]}}]),n}(Xc);gl.defaultPanelPositions={southEast:function(e){return{top:e.bottom,left:e.left,name:"se"}},southWest:function(e,t){return{top:e.bottom,left:e.left-t.width+e.width,name:"sw"}},northEast:function(e,t){return{top:e.top-t.height,left:e.left,name:"ne"}},northWest:function(e,t){return{top:e.bottom-t.height,left:e.left-t.width+e.width,name:"nw"}}},gl._getOptimalPosition=hl,n(27);var bl=function(e){v(n,e);var t=g(n);function n(){var e;h(this,n);var r=(e=t.call(this)).bindTemplate;return e.set("content",""),e.set("viewBox","0 0 20 20"),e.set("fillColor",""),e.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:r.to("viewBox")}}),e}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(function(){e._updateXMLContent(),e._colorFillPaths()})),this.on("change:fillColor",(function(){e._colorFillPaths()}))}},{key:"_updateXMLContent",value:function(){if(this.content){var e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");for(t&&(this.viewBox=t),this.element.innerHTML="";e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}},{key:"_colorFillPaths",value:function(){var e=this;this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((function(t){t.style.fill=e.fillColor}))}}]),n}(Xc);n(29);var yl=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).set("text",""),r.set("position","s");var i=r.bindTemplate;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",i.to("position",(function(e){return"ck-tooltip_"+e})),i.if("text","ck-hidden",(function(e){return!e.trim()}))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:i.to("text")}]}]}),r}return n}(Xc);n(31);var kl=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate,o=Wt();return r.set("class"),r.set("labelStyle"),r.set("icon"),r.set("isEnabled",!0),r.set("isOn",!1),r.set("isVisible",!0),r.set("isToggleable",!1),r.set("keystroke"),r.set("label"),r.set("tabindex",-1),r.set("tooltip"),r.set("tooltipPosition","s"),r.set("type","button"),r.set("withText",!1),r.set("withKeystroke",!1),r.children=r.createCollection(),r.tooltipView=r._createTooltipView(),r.labelView=r._createLabelView(o),r.iconView=new bl,r.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),r.keystrokeView=r._createKeystrokeView(),r.bind("_tooltipString").to(y(r),"tooltip",y(r),"label",y(r),"keystroke",r._getTooltipString.bind(y(r))),r.setTemplate({tag:"button",attributes:{class:["ck","ck-button",i.to("class"),i.if("isEnabled","ck-disabled",(function(e){return!e})),i.if("isVisible","ck-hidden",(function(e){return!e})),i.to("isOn",(function(e){return e?"ck-on":"ck-off"})),i.if("withText","ck-button_with-text"),i.if("withKeystroke","ck-button_with-keystroke")],type:i.to("type",(function(e){return e||"button"})),tabindex:i.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+o,"aria-disabled":i.if("isEnabled",!0,(function(e){return!e})),"aria-pressed":i.to("isOn",(function(e){return!!r.isToggleable&&String(e)}))},children:r.children,on:{mousedown:i.to((function(e){e.preventDefault()})),click:i.to((function(e){r.isEnabled?r.fire("execute"):e.preventDefault()}))}}),r}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}},{key:"focus",value:function(){this.element.focus()}},{key:"_createTooltipView",value:function(){var e=new yl;return e.bind("text").to(this,"_tooltipString"),e.bind("position").to(this,"tooltipPosition"),e}},{key:"_createLabelView",value:function(e){var t=new Xc,n=this.bindTemplate;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:"ck-editor__aria-label_"+e},children:[{text:this.bindTemplate.to("label")}]}),t}},{key:"_createKeystrokeView",value:function(){var e=new Xc;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(function(e){return Yr(e)}))}]}),e}},{key:"_getTooltipString",value:function(e,t,n){return e?"string"==typeof e?e:(n&&(n=Yr(n)),e instanceof Function?e(t,n):"".concat(t).concat(n?" (".concat(n,")"):"")):""}}]),n}(Xc),wl='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>',_l=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).arrowView=r._createArrowView(),r.extendTemplate({attributes:{"aria-haspopup":!0}}),r.delegate("execute").to(y(r),"open"),r}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.children.add(this.arrowView)}},{key:"_createArrowView",value:function(){var e=new bl;return e.content=wl,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}]),n}(kl);n(33);var Cl=function(e){v(n,e);var t=g(n);function n(){var e;return h(this,n),(e=t.call(this)).items=e.createCollection(),e.focusTracker=new Cc,e.keystrokes=new mc,e._focusCycler=new sl({focusables:e.items,focusTracker:e.focusTracker,keystrokeHandler:e.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),e.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:e.items}),e}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this);var t,r=l(this.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.focusTracker.add(i.element)}}catch(e){r.e(e)}finally{r.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}}]),n}(Xc),Al=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).children=r.createCollection(),r.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:r.children}),r}return m(n,[{key:"focus",value:function(){this.children.first.focus()}}]),n}(Xc),xl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}}),r}return n}(Xc);n(35);var Sl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).isToggleable=!0,r.toggleSwitchView=r._createToggleView(),r.extendTemplate({attributes:{class:"ck-switchbutton"}}),r}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.children.add(this.toggleSwitchView)}},{key:"_createToggleView",value:function(){var e=new Xc;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}]),n}(kl);function Ml(e){var t=e.emitter,n=e.activator,r=e.callback,i=e.contextElements;t.listenTo(document,"mousedown",(function(e,t){if(n()){var o,a="function"==typeof t.composedPath?t.composedPath():[],s=l(i);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(c.contains(t.target)||a.includes(c))return}}catch(e){s.e(e)}finally{s.f()}r()}}))}function El(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_l,n=new t(e),r=new fl(e),i=new gl(e,n,r);return n.bind("isEnabled").to(i),n instanceof _l?n.bind("isOn").to(i,"isOpen"):n.arrowView.bind("isOn").to(i,"isOpen"),function(e){(function(e){e.on("render",(function(){Ml({emitter:e,activator:function(){return e.isOpen},callback:function(){e.isOpen=!1},contextElements:[e.element]})}))})(e),function(e){e.on("execute",(function(t){t.source instanceof Sl||(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",(function(t,n){e.isOpen&&(e.panelView.focus(),n())})),e.keystrokes.set("arrowup",(function(t,n){e.isOpen&&(e.panelView.focusLast(),n())}))}(e)}(i),i}function Tl(e,t){var n=e.locale,r=n.t,i=e.toolbarView=new Ol(n);i.set("ariaLabel",r("Dropdown toolbar")),e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.map((function(e){return i.items.add(e)})),e.panelView.children.add(i),i.items.delegate("execute").to(e)}function Dl(e,t){var n=e.locale,r=e.listView=new Cl(n);r.items.bindTo(t).using((function(e){var t=e.type,r=e.model;if("separator"===t)return new xl(n);if("button"===t||"switchbutton"===t){var i,o,a=new Al(n);return(i=o="button"===t?new kl(n):new Sl(n)).bind.apply(i,u(Object.keys(r))).to(r),o.delegate("execute").to(a),a.children.add(o),a}})),e.panelView.children.add(r),r.items.delegate("execute").to(e)}n(37),n(39),n(41);var Ol=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n);var o,a=(i=t.call(this,e)).bindTemplate,s=i.t;return i.options=r||{},i.set("ariaLabel",s("Editor toolbar")),i.set("maxWidth","auto"),i.items=i.createCollection(),i.focusTracker=new Cc,i.keystrokes=new mc,i.set("class"),i.set("isCompact",!1),i.itemsView=new Pl(e),i.children=i.createCollection(),i.children.add(i.itemsView),i.focusables=i.createCollection(),i._focusCycler=new sl({focusables:i.focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}}),i.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar",a.to("class"),a.if("isCompact","ck-toolbar_compact")],role:"toolbar","aria-label":a.to("ariaLabel"),style:{maxWidth:a.to("maxWidth")}},children:i.children,on:{mousedown:(o=y(i),o.bindTemplate.to((function(e){e.target===o.element&&e.preventDefault()})))}}),i._behavior=i.options.shouldGroupWhenFull?new jl(y(i)):new Il(y(i)),i}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this);var t,r=l(this.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.focusTracker.add(i.element)}}catch(e){r.e(e)}finally{r.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}},{key:"destroy",value:function(){return this._behavior.destroy(),s(A(n.prototype),"destroy",this).call(this)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"fillFromConfig",value:function(e,t){this.items.addMany(e.map((function(e){return"|"==e?new ll:t.has(e)?t.create(e):void Object(Kt.c)("toolbarview-item-unavailable",{name:e})})).filter((function(e){return void 0!==e})))}}]),n}(Xc),Pl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).children=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:r.children}),r}return n}(Xc),Il=function(){function e(t){h(this,e);var n=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((function(e){return e})),t.focusables.bindTo(t.items).using((function(e){return e})),t.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}return m(e,[{key:"render",value:function(){}},{key:"destroy",value:function(){}}]),e}(),jl=function(){function e(t){var n=this;h(this,e),this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,t.itemsView.children.bindTo(this.ungroupedItems).using((function(e){return e})),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),t.children.on("add",this._updateFocusCycleableItems.bind(this)),t.children.on("remove",this._updateFocusCycleableItems.bind(this)),t.items.on("change",(function(e,t){var r,i=t.index,o=l(t.removed);try{for(o.s();!(r=o.n()).done;){var a=r.value;i>=n.ungroupedItems.length?n.groupedItems.remove(a):n.ungroupedItems.remove(a)}}catch(e){o.e(e)}finally{o.f()}for(var s=i;s<i+t.added.length;s++){var c=t.added[s-i];s>n.ungroupedItems.length?n.groupedItems.add(c,s-n.ungroupedItems.length):n.ungroupedItems.add(c,s)}n._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}return m(e,[{key:"render",value:function(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}},{key:"destroy",value:function(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}},{key:"_updateGrouping",value:function(){if(this.viewElement.ownerDocument.body.contains(this.viewElement))if(this.viewElement.offsetParent){for(var e,t=this.groupedItems.length;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}else this.shouldUpdateGroupingOnNextResize=!0}},{key:"_enableGroupingOnResize",value:function(){var e,t=this;this.resizeObserver=new ul(this.viewElement,(function(n){e&&e===n.contentRect.width&&!t.shouldUpdateGroupingOnNextResize||(t.shouldUpdateGroupingOnNextResize=!1,t._updateGrouping(),e=n.contentRect.width)})),this._updateGrouping()}},{key:"_enableGroupingOnMaxWidthChange",value:function(e){var t=this;e.on("change:maxWidth",(function(){t._updateGrouping()}))}},{key:"_groupLastItem",value:function(){this.groupedItems.length||(this.viewChildren.add(new ll),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}},{key:"_ungroupFirstItem",value:function(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}},{key:"_createGroupedItemsDropdown",value:function(){var e=this.viewLocale,t=e.t,n=El(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",Tl(n,[]),n.buttonView.set({label:t("Show more items"),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'}),n.toolbarView.items.bindTo(this.groupedItems).using((function(e){return e})),n}},{key:"_updateFocusCycleableItems",value:function(){var e=this;this.viewFocusables.clear(),this.ungroupedItems.map((function(t){e.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}},{key:"_areItemsOverflowing",get:function(){if(!this.ungroupedItems.length)return!1;var e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new Oo(e.lastChild),r=new Oo(e);if(!this.cachedPadding){var i=Pi.window.getComputedStyle(e),o="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(i[o])}return"ltr"===t?n.right>r.right-this.cachedPadding:n.left<r.left+this.cachedPadding}}]),e}();n(43);var Nl=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h(this,n),(i=t.call(this,e)).stickyPanel=new al(e),i.toolbar=new Ol(e,{shouldGroupWhenFull:o.shouldToolbarGroupWhenFull}),i.editable=new rl(e,r),i}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}]),n}(nl),Rl=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n),i=t.call(this,r),zt(e)&&(i.sourceElement=e),i.data.processor=new kc(i.data.viewDocument),i.model.document.createRoot();var o=!i.config.get("toolbar.shouldNotGroupWhenFull"),a=new Nl(i.locale,i.editing.view,{shouldToolbarGroupWhenFull:o});return i.ui=new Dc(y(i),a),function(e){if(!W(e.updateSourceElement))throw new Kt.a("attachtoform-missing-elementapi-interface",e);var t=e.sourceElement;if(t&&"textarea"===t.tagName.toLowerCase()&&t.form){var n,r=t.form,i=function(){return e.updateSourceElement()};W(r.submit)&&(n=r.submit,r.submit=function(){i(),n.apply(r)}),r.addEventListener("submit",i),e.on("destroy",(function(){r.removeEventListener("submit",i),n&&(r.submit=n)}))}}(y(i)),i}return m(n,[{key:"destroy",value:function(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),s(A(n.prototype),"destroy",this).call(this)}}],[{key:"create",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r){var i=new t(e,n);r(i.initPlugins().then((function(){return i.ui.init(zt(e)?e:null)})).then((function(){if(!zt(e)&&n.initialData)throw new Kt.a("editor-create-initial-data",null);var t=n.initialData||function(e){return zt(e)?(t=e)instanceof HTMLTextAreaElement?t.value:t.innerHTML:e;var t}(e);return i.data.init(t)})).then((function(){return i.fire("ready")})).then((function(){return i})))}))}}]),n}(gc);sn(Rl,{setData:function(e){this.data.set(e)},getData:function(e){return this.data.get(e)}}),sn(Rl,bc);var Ll=function(){function e(t){h(this,e),this.editor=t,this.set("isEnabled",!0),this._disableStack=new Set}return m(e,[{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Bl,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Bl),this.isEnabled=!0)}},{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!1}}]),e}();function Bl(e){e.return=!1,e.stop()}sn(Ll,mr);var Fl=function(){function e(t){var n=this;h(this,e),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(function(){n.refresh()})),this.on("execute",(function(e){n.isEnabled||e.stop()}),{priority:"high"}),this.listenTo(t,"change:isReadOnly",(function(e,t,r){r?n.forceDisabled("readOnlyMode"):n.clearForceDisabled("readOnlyMode")}))}return m(e,[{key:"refresh",value:function(){this.isEnabled=!0}},{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",zl,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",zl),this.refresh())}},{key:"execute",value:function(){}},{key:"destroy",value:function(){this.stopListening()}}]),e}();function zl(e){e.return=!1,e.stop()}function Vl(e){var t=e.next();return t.done?null:t.value}sn(Fl,mr);var $l=["left","right","center","justify"];function Hl(e){return $l.includes(e)}function Ul(e,t){return"rtl"==t.contentLanguageDirection?"right"===e:"left"===e}var ql="alignment",Wl=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.locale,t=Vl(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!t&&this._canBeAligned(t),this.isEnabled&&t.hasAttribute("alignment")?this.value=t.getAttribute("alignment"):this.value="rtl"===e.contentLanguageDirection?"right":"left"}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,r=n.locale,i=n.model,o=i.document,a=t.value;i.change((function(t){var n=Array.from(o.selection.getSelectedBlocks()).filter((function(t){return e._canBeAligned(t)})),i=n[0].getAttribute("alignment");Ul(a,r)||i===a||!a?function(e,t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.removeAttribute(ql,i)}}catch(e){r.e(e)}finally{r.f()}}(n,t):function(e,t,n){var r,i=l(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;t.setAttribute(ql,n,o)}}catch(e){i.e(e)}finally{i.f()}}(n,t,a)}))}},{key:"_canBeAligned",value:function(e){return this.editor.model.schema.checkAttribute(e,ql)}}]),n}(Fl),Yl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("alignment",{options:[].concat($l)}),r}return m(n,null,[{key:"pluginName",get:function(){return"AlignmentEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.model.schema,r=e.config.get("alignment.options").filter(Hl);n.extend("$block",{allowAttributes:"alignment"}),e.model.schema.setAttributeProperties("alignment",{isFormatting:!0});var i=function(e){var t,n={model:{key:"alignment",values:e.slice()},view:{}},r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.view[i]={key:"style",value:{"text-align":i}}}}catch(e){r.e(e)}finally{r.f()}return n}(r.filter((function(e){return!Ul(e,t)})));e.conversion.attributeToAttribute(i),e.commands.add("alignment",new Wl(e))}}]),n}(Ll),Kl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',Gl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',Ql=new Map([["left",Kl],["right",Gl],["center",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>'],["justify",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>']]),Xl=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.ui.componentFactory,r=t.t,i=t.config.get("alignment.options");i.filter(Hl).forEach((function(t){return e._addButton(t)})),n.add("alignment",(function(e){var t=El(e),o=i.map((function(e){return n.create("alignment:"+e)}));Tl(t,o),t.buttonView.set({label:r("Text alignment"),tooltip:!0}),t.toolbarView.isVertical=!0,t.toolbarView.ariaLabel=r("Text alignment toolbar"),t.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});var a="rtl"===e.contentLanguageDirection?Gl:Kl;return t.buttonView.bind("icon").toMany(o,"isOn",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.findIndex((function(e){return e}));return r<0?a:o[r].icon})),t.bind("isEnabled").toMany(o,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),t}))}},{key:"_addButton",value:function(e){var t=this,n=this.editor;n.ui.componentFactory.add("alignment:"+e,(function(r){var i=n.commands.get("alignment"),o=new kl(r);return o.set({label:t.localizedOptionTitles[e],icon:Ql.get(e),tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i),o.bind("isOn").to(i,"value",(function(t){return t===e})),t.listenTo(o,"execute",(function(){n.execute("alignment",{value:e}),n.editing.view.focus()})),o}))}},{key:"localizedOptionTitles",get:function(){var e=this.editor.t;return{left:e("Align left"),right:e("Align right"),center:e("Align center"),justify:e("Justify")}}}],[{key:"pluginName",get:function(){return"AlignmentUI"}}]),n}(Ll);function Jl(e,t){var n=e.start;return{text:Array.from(e.getItems()).reduce((function(e,r){return r.is("$text")||r.is("$textProxy")?e+r.data:(n=t.createPositionAfter(r),"")}),""),range:t.createRange(n,e.end)}}var Zl=function(){function e(t,n){var r=this;h(this,e),this.model=t,this.testCallback=n,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(function(){r.isEnabled?r._startListening():(r.stopListening(t.document.selection),r.stopListening(t.document))})),this._startListening()}return m(e,[{key:"_startListening",value:function(){var e=this,t=this.model.document;this.listenTo(t.selection,"change:range",(function(n,r){r.directChange&&(t.selection.isCollapsed?e._evaluateTextBeforeSelection("selection"):e.hasMatch&&(e.fire("unmatched"),e.hasMatch=!1))})),this.listenTo(t,"change:data",(function(t,n){"transparent"!=n.type&&e._evaluateTextBeforeSelection("data",{batch:n})}))}},{key:"_evaluateTextBeforeSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.model,r=n.document.selection,i=n.createRange(n.createPositionAt(r.focus.parent,0),r.focus),o=Jl(i,n),a=o.text,s=o.range,c=this.testCallback(a);if(!c&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!c,c){var l=Object.assign(t,{text:a,range:s});"object"==x(c)&&Object.assign(l,c),this.fire("matched:"+e,l)}}}]),e}();sn(Zl,mr);var eu=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),tu=function(e){return eu.test(e)},nu="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ru="\\ud83c[\\udffb-\\udfff]",iu="[^\\ud800-\\udfff]",ou="(?:\\ud83c[\\udde6-\\uddff]){2}",au="[\\ud800-\\udbff][\\udc00-\\udfff]",su="(?:"+nu+"|"+ru+")?",cu="[\\ufe0e\\ufe0f]?",lu=cu+su+"(?:\\u200d(?:"+[iu,ou,au].join("|")+")"+cu+su+")*",uu="(?:"+[iu+nu+"?",nu,ou,au,"[\\ud800-\\udfff]"].join("|")+")",du=RegExp(ru+"(?="+ru+")|"+uu+lu,"g"),fu=function(e){return tu(e)?function(e){return e.match(du)||[]}(e):function(e){return e.split("")}(e)},hu=function(e){e=jn(e);var t=tu(e)?fu(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Bn(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r},pu=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,mu=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,vu=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,gu=/^((\w+:(\/{2,})?)|(\W))/i,bu="Ctrl+K";function yu(e,t){var n=t.writer,r=n.createAttributeElement("a",{href:e},{priority:5});return n.setCustomProperty("link",!0,r),r}function ku(e){return function(e){return e.replace(pu,"").match(mu)}(e=String(e))?e:"#"}function wu(e,t){return!!e&&e.is("element","image")&&t.checkAttribute("image","linkHref")}function _u(e,t){var n,r=(n=e,vu.test(n)?"mailto:":t),i=!!r&&!gu.test(e);return e&&i?r+e:e}var Cu=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.)+(?:[a-z\\u00a1-\\uffff]{2,}))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.))+(?:[a-z\\u00a1-\\uffff]{2,})))$","i"),Au=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}},{key:"afterInit",value:function(){this._enableEnterHandling(),this._enableShiftEnterHandling()}},{key:"_enableTypingHandling",value:function(){var e=this,t=this.editor,n=new Zl(t.model,(function(e){if(function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e)){var t=xu(e.substr(0,e.length-1));return t?{url:t}:void 0}})),r=t.plugins.get("Input");n.on("matched:data",(function(n,i){var o=i.batch,a=i.range,s=i.url;if(r.isInput(o)){var c=a.end.getShiftedBy(-1),l=c.getShiftedBy(-s.length),u=t.model.createRange(l,c);e._applyAutoLink(s,u)}})),n.bind("isEnabled").to(this)}},{key:"_enableEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,r=t.commands.get("enter");r&&r.on("execute",(function(){var t=n.document.selection.getFirstPosition();if(t.parent.previousSibling){var r=n.createRangeIn(t.parent.previousSibling);e._checkAndApplyAutoLinkOnRange(r)}}))}},{key:"_enableShiftEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,r=t.commands.get("shiftEnter");r&&r.on("execute",(function(){var t=n.document.selection.getFirstPosition(),r=n.createRange(n.createPositionAt(t.parent,0),t.getShiftedBy(-1));e._checkAndApplyAutoLinkOnRange(r)}))}},{key:"_checkAndApplyAutoLinkOnRange",value:function(e){var t=this.editor.model,n=Jl(e,t),r=n.text,i=n.range,o=xu(r);if(o){var a=t.createRange(i.end.getShiftedBy(-o.length),i.end);this._applyAutoLink(o,a)}}},{key:"_applyAutoLink",value:function(e,t){var n=this,r=this.editor.model;this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,r)&&r.enqueueChange((function(r){var i=n.editor.config.get("link.defaultProtocol"),o=_u(e,i);r.setAttribute("linkHref",o,t)}))}}],[{key:"pluginName",get:function(){return"AutoLink"}}]),n}(Ll);function xu(e){var t=Cu.exec(e);return t?t[2]:null}var Su=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.schema,i=n.document.selection,o=Array.from(i.getSelectedBlocks()),a=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(a){var n=o.filter((function(e){return Mu(e)||Tu(r,e)}));e._applyQuote(t,n)}else e._removeQuote(t,o.filter(Mu))}))}},{key:"_getValue",value:function(){var e=Vl(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!Mu(e))}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.document.selection,t=this.editor.model.schema,n=Vl(e.getSelectedBlocks());return!!n&&Tu(t,n)}},{key:"_removeQuote",value:function(e,t){Eu(e,t).reverse().forEach((function(t){if(t.start.isAtStart&&t.end.isAtEnd)e.unwrap(t.start.parent);else if(t.start.isAtStart){var n=e.createPositionBefore(t.start.parent);e.move(t,n)}else{t.end.isAtEnd||e.split(t.end);var r=e.createPositionAfter(t.end.parent);e.move(t,r)}}))}},{key:"_applyQuote",value:function(e,t){var n=[];Eu(e,t).reverse().forEach((function(t){var r=Mu(t.start);r||(r=e.createElement("blockQuote"),e.wrap(t,r)),n.push(r)})),n.reverse().reduce((function(t,n){return t.nextSibling==n?(e.merge(e.createPositionAfter(t)),t):n}))}}]),n}(Fl);function Mu(e){return"blockQuote"==e.parent.name?e.parent:null}function Eu(e,t){for(var n,r=0,i=[];r<t.length;){var o=t[r],a=t[r+1];n||(n=e.createPositionBefore(o)),a&&o.nextSibling==a||(i.push(e.createRange(n,e.createPositionAfter(o))),n=null),r++}return i}function Tu(e,t){var n=e.checkChild(t.parent,"blockQuote"),r=e.checkChild(["$root","blockQuote"],t);return n&&r}var Du=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new Su(e)),t.register("blockQuote",{allowWhere:"$block",allowContentOf:"$root"}),t.addChildCheck((function(e,t){if(e.endsWith("blockQuote")&&"blockQuote"==t.name)return!1})),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer((function(n){var r,i=l(e.model.document.differ.getChanges());try{for(i.s();!(r=i.n()).done;){var o=r.value;if("insert"==o.type){var a=o.position.nodeAfter;if(!a)continue;if(a.is("element","blockQuote")&&a.isEmpty)return n.remove(a),!0;if(a.is("element","blockQuote")&&!t.checkChild(o.position,a))return n.unwrap(a),!0;if(a.is("element")){var s,c=l(n.createRangeIn(a).getItems());try{for(c.s();!(s=c.n()).done;){var u=s.value;if(u.is("element","blockQuote")&&!t.checkChild(n.createPositionBefore(u),u))return n.unwrap(u),!0}}catch(e){c.e(e)}finally{c.f()}}}else if("remove"==o.type){var d=o.position.parent;if(d.is("element","blockQuote")&&d.isEmpty)return n.remove(d),!0}}}catch(e){i.e(e)}finally{i.f()}return!1}))}},{key:"afterInit",value:function(){var e=this,t=this.editor.commands.get("blockQuote");this.listenTo(this.editor.editing.view.document,"enter",(function(n,r){var i=e.editor.model.document,o=i.selection.getLastPosition().parent;i.selection.isCollapsed&&o.isEmpty&&t.value&&(e.editor.execute("blockQuote"),e.editor.editing.view.scrollToTheSelection(),r.preventDefault(),n.stop())}))}}],[{key:"pluginName",get:function(){return"BlockQuoteEditing"}}]),n}(Ll);n(45);var Ou=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("blockQuote",(function(r){var i=t.commands.get("blockQuote"),o=new kl(r);return o.set({label:n("Block quote"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute("blockQuote"),t.editing.view.focus()})),o}))}}]),n}(Ll),Pu=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).attributeKey=r,i}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document.selection,i=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(r.isCollapsed)i?t.setSelectionAttribute(e.attributeKey,!0):t.removeSelectionAttribute(e.attributeKey);else{var o,a=l(n.schema.getValidRanges(r.getRanges(),e.attributeKey));try{for(a.s();!(o=a.n()).done;){var s=o.value;i?t.setAttribute(e.attributeKey,i,s):t.removeAttribute(e.attributeKey,s)}}catch(e){a.e(e)}finally{a.f()}}}))}},{key:"_getValueFromFirstAllowedNode",value:function(){var e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);var r,i=l(n.getRanges());try{for(i.s();!(r=i.n()).done;){var o,a=l(r.value.getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(t.checkAttribute(s,this.attributeKey))return s.hasAttribute(this.attributeKey)}}catch(e){a.e(e)}finally{a.f()}}}catch(e){i.e(e)}finally{i.f()}return!1}}]),n}(Fl),Iu="bold",ju=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:Iu}),e.model.schema.setAttributeProperties(Iu,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:Iu,view:"strong",upcastAlso:["b",function(e){var t=e.getStyle("font-weight");return t?"bold"==t||Number(t)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),e.commands.add(Iu,new Pu(e,Iu)),e.keystrokes.set("CTRL+B",Iu)}}],[{key:"pluginName",get:function(){return"BoldEditing"}}]),n}(Ll),Nu="bold",Ru=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(Nu,(function(r){var i=t.commands.get(Nu),o=new kl(r);return o.set({label:n("Bold"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(Nu),t.editing.view.focus()})),o}))}}]),n}(Ll),Lu=function(){function e(t){h(this,e),this.files=function(e){var t=e.files?Array.from(e.files):[],n=e.items?Array.from(e.items):[];return t.length?t:n.filter((function(e){return"file"===e.kind})).map((function(e){return e.getAsFile()}))}(t),this._native=t}return m(e,[{key:"getData",value:function(e){return this._native.getData(e)}},{key:"setData",value:function(e,t){this._native.setData(e,t)}},{key:"types",get:function(){return this._native.types}}]),e}(),Bu=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).document;function o(e,t){t.preventDefault();var n=t.dropRange?[t.dropRange]:Array.from(i.selection.getRanges()),r=new Ut(i,"clipboardInput");i.fire(r,{dataTransfer:t.dataTransfer,targetRanges:n}),r.stop.called&&t.stopPropagation()}return r.domEventType=["paste","copy","cut","drop","dragover"],r.listenTo(i,"paste",o,{priority:"low"}),r.listenTo(i,"drop",o,{priority:"low"}),r}return m(n,[{key:"onDomEvent",value:function(e){var t={dataTransfer:new Lu(e.clipboardData?e.clipboardData:e.dataTransfer)};"drop"==e.type&&(t.dropRange=function(e,t){var n,r=t.target.ownerDocument,i=t.clientX,o=t.clientY;return r.caretRangeFromPoint&&r.caretRangeFromPoint(i,o)?n=r.caretRangeFromPoint(i,o):t.rangeParent&&((n=r.createRange()).setStart(t.rangeParent,t.rangeOffset),n.collapse(!0)),n?e.domConverter.domRangeToView(n):e.document.selection.getFirstRange()}(this.view,e)),this.fire(e.type,e,t)}}]),n}(uo),Fu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor.editing.view,t=e.document,n=!1;e.addObserver(Bu),this.listenTo(t,"keydown",(function(e,t){n=t.shiftKey})),this.listenTo(t,"clipboardInput",(function(e,t){n&&(t.asPlainText=!0)}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"PastePlainText"}}]),n}(Ll),zu=["figcaption","li"];var Vu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,r=t.editing.view,i=r.document;function o(e,r){var o=r.dataTransfer;r.preventDefault();var a=t.data.toView(t.model.getSelectedContent(n.selection));i.fire("clipboardOutput",{dataTransfer:o,content:a,method:e.name})}this._htmlDataProcessor=new kc(i),r.addObserver(Bu),this.listenTo(i,"clipboardInput",(function(e){t.isReadOnly&&e.stop()}),{priority:"highest"}),this.listenTo(i,"clipboardInput",(function(t,n){var i,o=n.dataTransfer,a="";o.getData("text/html")?a=function(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(e,t){return 1==t.length?" ":t}))}(o.getData("text/html")):o.getData("text/plain")&&(((i=(i=o.getData("text/plain")).replace(/</g,"<").replace(/>/g,">").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," ")).includes("</p><p>")||i.includes("<br>"))&&(i="<p>".concat(i,"</p>")),a=i),a=e._htmlDataProcessor.toView(a);var s=new Ut(e,"inputTransformation");e.fire(s,{content:a,dataTransfer:o,asPlainText:n.asPlainText}),s.stop.called&&t.stop(),r.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",(function(r,i){if(!i.content.isEmpty){var o=e.editor.data,a=e.editor.model,s=o.toModel(i.content,"$clipboardHolder");if(0==s.childCount)return;if(i.asPlainText||function(e){return!(e.childCount>1)&&0==u(e.getChild(0).getAttributeKeys()).length}(s)){var c=new Map(Array.from(n.selection.getAttributes()).filter((function(e){return t.model.schema.getAttributeProperties(e[0]).isFormatting})));a.change((function(e){var t,n=l(e.createRangeIn(s).getItems());try{for(n.s();!(t=n.n()).done;){var r=t.value;(r.is("$text")||r.is("$textProxy"))&&e.setAttributes(c,r)}}catch(e){n.e(e)}finally{n.f()}}))}a.insertContent(s),r.stop()}}),{priority:"low"}),this.listenTo(i,"copy",o,{priority:"low"}),this.listenTo(i,"cut",(function(e,n){t.isReadOnly?n.preventDefault():o(e,n)}),{priority:"low"}),this.listenTo(i,"clipboardOutput",(function(r,i){i.content.isEmpty||(i.dataTransfer.setData("text/html",e._htmlDataProcessor.toData(i.content)),i.dataTransfer.setData("text/plain",function e(t){var n="";if(t.is("$text")||t.is("$textProxy"))n=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))n=t.getAttribute("alt");else if(t.is("element","br"))n="\n";else{var r,i=null,o=l(t.getChildren());try{for(o.s();!(r=o.n()).done;){var a=r.value,s=e(a);i&&(i.is("containerElement")||a.is("containerElement"))&&(zu.includes(i.name)||zu.includes(a.name)?n+="\n":n+="\n\n"),n+=s,i=a}}catch(e){o.e(e)}finally{o.f()}}return n}(i.content))),"cut"==i.method&&t.model.deleteContent(n.selection)}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Clipboard"}},{key:"requires",get:function(){return[Fu]}}]),n}(Ll);function $u(e,t){var n,r,i;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:n=l(t),o.prev=1,n.s();case 3:if((r=n.n()).done){o.next=11;break}if(i=r.value,o.t0=i&&e.getAttributeProperties(i[0]).copyOnEnter,!o.t0){o.next=9;break}return o.next=9,i;case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t1=o.catch(1),n.e(o.t1);case 16:return o.prev=16,n.f(),o.finish(16);case 19:case"end":return o.stop()}}),d,null,[[1,13,16,19]])}var Hu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(r){!function(e,t,n,r){var i=n.isCollapsed,o=n.getFirstRange(),a=o.start.parent,s=o.end.parent;if(r.isLimit(a)||r.isLimit(s))i||a!=s||e.deleteContent(n);else if(i){var c=$u(t.model.schema,n.getAttributes());Uu(t,o.start),t.setSelectionAttribute(c)}else{var l=!(o.start.isAtStart&&o.end.isAtEnd),u=a==s;e.deleteContent(n,{leaveUnmerged:l}),l&&(u?Uu(t,n.focus):t.setSelection(s,0))}}(e.editor.model,r,n.selection,t.schema),e.fire("afterExecute",{writer:r})}))}}]),n}(Fl);function Uu(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}var qu=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).document;return i.on("keydown",(function(e,t){var n;r.isEnabled&&t.keyCode==Ur.enter&&(i.once("enter",(function(e){return n=e}),{priority:"highest"}),i.fire("enter",new lo(i,t.domEvent,{isSoft:t.shiftKey})),n&&n.stop.called&&e.stop())})),r}return m(n,[{key:"observe",value:function(){}}]),n}(Ui),Wu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;t.addObserver(qu),e.commands.add("enter",new Hu(e)),this.listenTo(n,"enter",(function(n,r){r.preventDefault(),r.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Enter"}}]),n}(Ll),Yu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(r){!function(e,t,n){var r=n.isCollapsed,i=n.getFirstRange(),o=i.start.parent,a=i.end.parent,s=o==a;if(r){var c=$u(e.schema,n.getAttributes());Ku(e,t,i.end),t.removeSelectionAttribute(n.getAttributeKeys()),t.setSelectionAttribute(c)}else{var l=!(i.start.isAtStart&&i.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:l}),s?Ku(e,t,n.focus):l&&t.setSelection(a,0)}}(t,r,n.selection),e.fire("afterExecute",{writer:r})}))}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;var n=t.anchor;if(!n||!e.checkChild(n,"softBreak"))return!1;var r=t.getFirstRange(),i=r.start.parent,o=r.end.parent;return!Gu(i,e)&&!Gu(o,e)||i===o}(e.schema,t.selection)}}]),n}(Fl);function Ku(e,t,n){var r=t.createElement("softBreak");e.insertContent(r,n),t.setSelection(r,"after")}function Gu(e,t){return!e.is("rootElement")&&(t.isLimit(e)||Gu(e.parent,t))}var Qu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.conversion,r=e.editing.view,i=r.document;t.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:function(e,t){return t.writer.createEmptyElement("br")}}),r.addObserver(qu),e.commands.add("shiftEnter",new Yu(e)),this.listenTo(i,"enter",(function(t,n){n.preventDefault(),n.isSoft&&(e.execute("shiftEnter"),r.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ShiftEnter"}}]),n}(Ll),Xu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!Ju(e.schema,n))do{if(!(n=n.parent))return}while(!Ju(e.schema,n));e.change((function(e){e.setSelection(n,"in")}))}}]),n}(Fl);function Ju(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}for(var Zu=Wr("Ctrl+A"),ed=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new Xu(e)),this.listenTo(t,"keydown",(function(t,n){qr(n)===Zu&&(e.execute("selectAll"),n.preventDefault())}))}}],[{key:"pluginName",get:function(){return"SelectAllEditing"}}]),n}(Ll),td=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor;t.ui.componentFactory.add("selectAll",(function(n){var r=t.commands.get("selectAll"),i=new kl(n),o=n.t;return i.set({label:o("Select all"),icon:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),e.listenTo(i,"execute",(function(){t.execute("selectAll"),t.editing.view.focus()})),i}))}}],[{key:"pluginName",get:function(){return"SelectAllUI"}}]),n}(Ll),nd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[ed,td]}},{key:"pluginName",get:function(){return"SelectAll"}}]),n}(Ll),rd=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;h(this,e),this.model=t,this.size=0,this.limit=r,this.isLocked=!1,this._changeCallback=function(e,t){"transparent"!=t.type&&t!==n._batch&&n._reset(!0)},this._selectionChangeCallback=function(){n._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}return m(e,[{key:"input",value:function(e){this.size+=e,this.size>=this.limit&&this._reset(!0)}},{key:"lock",value:function(){this.isLocked=!0}},{key:"unlock",value:function(){this.isLocked=!1}},{key:"destroy",value:function(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}},{key:"_reset",value:function(e){this.isLocked&&!e||(this._batch=null,this.size=0)}},{key:"batch",get:function(){return this._batch||(this._batch=this.model.createBatch()),this._batch}}]),e}(),id=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e))._buffer=new rd(e.model,r),i._batches=new WeakSet,i}return m(n,[{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this),this._buffer.destroy()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document,i=t.text||"",o=i.length,a=t.range?n.createSelection(t.range):r.selection,s=t.resultRange;n.enqueueChange(this._buffer.batch,(function(t){e._buffer.lock(),e._batches.add(e._buffer.batch),n.deleteContent(a),i&&n.insertContent(t.createText(i,r.selection.getAttributes()),a),s?t.setSelection(s):a.is("documentSelection")||t.setSelection(a),e._buffer.unlock(),e._buffer.input(o)}))}},{key:"buffer",get:function(){return this._buffer}}]),n}(Fl),od=[qr("arrowUp"),qr("arrowRight"),qr("arrowDown"),qr("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255],ad=112;ad<=135;ad++)od.push(ad);function sd(e){return!!e.ctrlKey||od.includes(e.keyCode)}function cd(e){if(e.newChildren.length-e.oldChildren.length==1){var t=function(e,t){var n,r=[],i=0;return e.forEach((function(e){"equal"==e?(o(),i++):"insert"==e?(a("insert")?n.values.push(t[i]):(o(),n={type:"insert",index:i,values:[t[i]]}),i++):a("delete")?n.howMany++:(o(),n={type:"delete",index:i,howMany:1})})),o(),r;function o(){n&&(r.push(n),n=null)}function a(e){return n&&n.type==e}}(Ai(e.oldChildren,e.newChildren,ld),e.newChildren);if(!(t.length>1)){var n=t[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}}}function ld(e,t){return e&&e.is("$text")&&t&&t.is("$text")?e.data===t.data:e===t}var ud=function(){function e(t){h(this,e),this.editor=t,this.editing=this.editor.editing}return m(e,[{key:"handle",value:function(e,t){if(function(e){if(0==e.length)return!1;var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("children"===r.type&&!cd(r))return!0}}catch(e){n.e(e)}finally{n.f()}return!1}(e))this._handleContainerChildrenMutations(e,t);else{var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._handleTextMutation(i,t),this._handleTextNodeInsertion(i)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"_handleContainerChildrenMutations",value:function(e,t){var n=function(e){var t=e.map((function(e){return e.node})).reduce((function(e,t){return e.getCommonAncestor(t,{includeSelf:!0})}));if(t)return t.getAncestors({includeSelf:!0,parentFirst:!0}).find((function(e){return e.is("containerElement")||e.is("rootElement")}))}(e);if(n){var r=this.editor.editing.view.domConverter.mapViewToDom(n),i=new Ri(this.editor.editing.view.document),o=this.editor.data.toModel(i.domToView(r)).getChild(0),a=this.editor.editing.mapper.toModelElement(n);if(a){var s=Array.from(o.getChildren()),c=Array.from(a.getChildren()),l=s[s.length-1],u=c[c.length-1],d=l&&l.is("element","softBreak"),f=u&&!u.is("element","softBreak");d&&f&&s.pop();var h=this.editor.model.schema;if(dd(s,h)&&dd(c,h)){var p=s.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," "),m=c.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," ");if(m!==p){var v=fd(Ai(m,p)),g=v.firstChangeAt,b=v.insertions,y=v.deletions,k=null;t&&(k=this.editing.mapper.toModelRange(t.getFirstRange()));var w=p.substr(g,b),_=this.editor.model.createRange(this.editor.model.createPositionAt(a,g),this.editor.model.createPositionAt(a,g+y));this.editor.execute("input",{text:w,range:_,resultRange:k})}}}}}},{key:"_handleTextMutation",value:function(e,t){if("text"==e.type){var n=e.newText.replace(/\u00A0/g," "),r=e.oldText.replace(/\u00A0/g," ");if(r!==n){var i=fd(Ai(r,n)),o=i.firstChangeAt,a=i.insertions,s=i.deletions,c=null;t&&(c=this.editing.mapper.toModelRange(t.getFirstRange()));var l=this.editing.view.createPositionAt(e.node,o),u=this.editing.mapper.toModelPosition(l),d=this.editor.model.createRange(u,u.getShiftedBy(s)),f=n.substr(o,a);this.editor.execute("input",{text:f,range:d,resultRange:c})}}}},{key:"_handleTextNodeInsertion",value:function(e){if("children"==e.type){var t=cd(e),n=this.editing.view.createPositionAt(e.node,t.index),r=this.editing.mapper.toModelPosition(n),i=t.values[0].data;this.editor.execute("input",{text:i.replace(/\u00A0/g," "),range:this.editor.model.createRange(r)})}}}]),e}();function dd(e,t){return e.every((function(e){return t.isInline(e)}))}function fd(e){for(var t=null,n=null,r=0;r<e.length;r++)"equal"!=e[r]&&(t=null===t?r:t,n=r);for(var i=0,o=0,a=t;a<=n;a++)"insert"!=e[a]&&i++,"delete"!=e[a]&&o++;return{insertions:o,deletions:i,firstChangeAt:t}}var hd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=new id(e,e.config.get("typing.undoStep")||20);e.commands.add("input",t),function(e){var t=null,n=e.model,r=e.editing.view,i=e.commands.get("input");function o(e){var o=n.document,s=r.document.isComposing,c=t&&t.isEqual(o.selection);t=null,i.isEnabled&&(sd(e)||o.selection.isCollapsed||s&&229===e.keyCode||!s&&229===e.keyCode&&c||a())}function a(){var e=i.buffer;e.lock();var t=e.batch;i._batches.add(t),n.enqueueChange(t,(function(){n.deleteContent(n.document.selection)})),e.unlock()}Vr?r.document.on("beforeinput",(function(e,t){return o(t)}),{priority:"lowest"}):r.document.on("keydown",(function(e,t){return o(t)}),{priority:"lowest"}),r.document.on("compositionstart",(function(){var e=n.document,t=1!==e.selection.rangeCount||e.selection.getFirstRange().isFlat;e.selection.isCollapsed||t||a()}),{priority:"lowest"}),r.document.on("compositionend",(function(){t=n.createSelection(n.document.selection)}),{priority:"lowest"})}(e),function(e){e.editing.view.document.on("mutations",(function(t,n,r){new ud(e).handle(n,r)}))}(e)}},{key:"isInput",value:function(e){return this.editor.commands.get("input")._batches.has(e)}}],[{key:"pluginName",get:function(){return"Input"}}]),n}(Ll),pd=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).direction=r,i._buffer=new rd(e.model,e.config.get("typing.undoStep")),i}return m(n,[{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document;n.enqueueChange(this._buffer.batch,(function(i){e._buffer.lock();var o=i.createSelection(t.selection||r.selection),a=o.isCollapsed;if(o.isCollapsed&&n.modifySelection(o,{direction:e.direction,unit:t.unit}),e._shouldEntireContentBeReplacedWithParagraph(t.sequence||1))e._replaceEntireContentWithParagraph(i);else if(!o.isCollapsed){var s=0;o.getFirstRange().getMinimalFlatRanges().forEach((function(e){s+=Er(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),n.deleteContent(o,{doNotResetEntireContent:a,direction:e.direction}),e._buffer.input(s),i.setSelection(o),e._buffer.unlock()}}))}},{key:"_shouldEntireContentBeReplacedWithParagraph",value:function(e){if(e>1)return!1;var t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(r))return!1;if(!t.schema.checkChild(r,"paragraph"))return!1;var i=r.getChild(0);return!i||"paragraph"!==i.name}},{key:"_replaceEntireContentWithParagraph",value:function(e){var t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n),i=e.createElement("paragraph");e.remove(e.createRangeIn(r)),e.insert(i,r),e.setSelection(i,0)}},{key:"buffer",get:function(){return this._buffer}}]),n}(Fl),md=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),r=t.call(this,e);var i=e.document,o=0;function a(e,t,n){var r;i.once("delete",(function(e){return r=e}),{priority:Number.POSITIVE_INFINITY}),i.fire("delete",new lo(i,t,n)),r&&r.stop.called&&e.stop()}return i.on("keyup",(function(e,t){t.keyCode!=Ur.delete&&t.keyCode!=Ur.backspace||(o=0)})),i.on("keydown",(function(e,t){var n={};if(t.keyCode==Ur.delete)n.direction="forward",n.unit="character";else{if(t.keyCode!=Ur.backspace)return;n.direction="backward",n.unit="codePoint"}var r=Br?t.altKey:t.ctrlKey;n.unit=r?"word":n.unit,n.sequence=++o,a(e,t.domEvent,n)})),Vr&&i.on("beforeinput",(function(t,n){if("deleteContentBackward"==n.domEvent.inputType){var r={unit:"codepoint",direction:"backward",sequence:1},i=n.domTarget.ownerDocument.defaultView.getSelection();i.anchorNode==i.focusNode&&i.anchorOffset+1!=i.focusOffset&&(r.selectionToRemove=e.domConverter.domSelectionToView(i)),a(t,n.domEvent,r)}})),r}return m(n,[{key:"observe",value:function(){}}]),n}(Ui),vd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;if(t.addObserver(md),e.commands.add("forwardDelete",new pd(e,"forward")),e.commands.add("delete",new pd(e,"backward")),this.listenTo(n,"delete",(function(n,r){var i={unit:r.unit,sequence:r.sequence};if(r.selectionToRemove){var o,a=e.model.createSelection(),s=[],c=l(r.selectionToRemove.getRanges());try{for(c.s();!(o=c.n()).done;){var u=o.value;s.push(e.editing.mapper.toModelRange(u))}}catch(e){c.e(e)}finally{c.f()}a.setTo(s),i.selection=a}e.execute("forward"==r.direction?"forwardDelete":"delete",i),r.preventDefault(),t.scrollToTheSelection()})),Vr){var r=null;this.listenTo(n,"delete",(function(e,t){var n=t.domTarget.ownerDocument.defaultView.getSelection();r={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}),{priority:"lowest"}),this.listenTo(n,"keyup",(function(e,t){if(r){var n=t.domTarget.ownerDocument.defaultView.getSelection();n.collapse(r.anchorNode,r.anchorOffset),n.extend(r.focusNode,r.focusOffset),r=null}}))}}}],[{key:"pluginName",get:function(){return"Delete"}}]),n}(Ll),gd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[hd,vd]}},{key:"pluginName",get:function(){return"Typing"}}]),n}(Ll),bd=new Map;function yd(e,t,n){var r=bd.get(e);r||(r=new Map,bd.set(e,r)),r.set(t,n)}function kd(e){return[e]}function wd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e,t){var n=bd.get(e);return n&&n.has(t)?n.get(t):kd}(e.constructor,t.constructor);try{return r(e=e.clone(),t,n)}catch(e){throw e}}function _d(e,t,n){e=e.slice(),t=t.slice();var r=new Cd(n.document,n.useRelations,n.forceWeakRemove);r.setOriginalOperations(e),r.setOriginalOperations(t);var i=r.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:i};var o,a=new WeakMap,s=l(e);try{for(s.s();!(o=s.n()).done;){var c=o.value;a.set(c,0)}}catch(e){s.e(e)}finally{s.f()}for(var d={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length},f=0;f<e.length;){var h,p,m=e[f],v=a.get(m);if(v!=t.length){var g=t[v],b=wd(m,g,r.getContext(m,g,!0)),y=wd(g,m,r.getContext(g,m,!1));r.updateRelation(m,g),r.setOriginalOperations(b,m),r.setOriginalOperations(y,g);var k,w=l(b);try{for(w.s();!(k=w.n()).done;){var _=k.value;a.set(_,v+y.length)}}catch(e){w.e(e)}finally{w.f()}(h=e).splice.apply(h,[f,1].concat(u(b))),(p=t).splice.apply(p,[v,1].concat(u(y)))}else f++}if(n.padWithNoOps){var C=e.length-d.originalOperationsACount,A=t.length-d.originalOperationsBCount;xd(e,A-C),xd(t,C-A)}return Ad(e,d.nextBaseVersionB),Ad(t,d.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:i}}var Cd=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];h(this,e),this.originalOperations=new Map,this._history=t.history,this._useRelations=n,this._forceWeakRemove=!!r,this._relations=new Map}return m(e,[{key:"setOriginalOperations",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=n?this.originalOperations.get(n):null,i=l(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;this.originalOperations.set(o,r||o)}}catch(e){i.e(e)}finally{i.f()}}},{key:"updateRelation",value:function(e,t){switch(e.constructor){case _s:switch(t.constructor){case Ms:e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter");break;case _s:e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter")}break;case Es:switch(t.constructor){case Ms:e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");break;case _s:(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))&&this._setRelation(e,t,"splitBefore")}break;case Ms:switch(t.constructor){case Ms:e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement");break;case Es:e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource")}break;case As:var n=e.newRange;if(!n)return;switch(t.constructor){case _s:var r=na._createFromPositionAndShift(t.sourcePosition,t.howMany),i=r.containsPosition(n.start)||r.start.isEqual(n.start),o=r.containsPosition(n.end)||r.end.isEqual(n.end);!i&&!o||r.containsRange(n)||this._setRelation(e,t,{side:i?"left":"right",path:i?n.start.path.slice():n.end.path.slice()});break;case Ms:var a=n.start.isEqual(t.targetPosition),s=n.start.isEqual(t.deletionPosition),c=n.end.isEqual(t.deletionPosition),l=n.end.isEqual(t.sourcePosition);(a||s||c||l)&&this._setRelation(e,t,{wasInLeftElement:a,wasStartBeforeMergedElement:s,wasEndBeforeMergedElement:c,wasInRightElement:l})}}}},{key:"getContext",value:function(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}},{key:"_wasUndone",value:function(e){var t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}},{key:"_getRelation",value:function(e,t){var n=this.originalOperations.get(t),r=this._history.getUndoneOperation(n);if(!r)return null;var i=this.originalOperations.get(e),o=this._relations.get(i);return o&&o.get(r)||null}},{key:"_setRelation",value:function(e,t,n){var r=this.originalOperations.get(e),i=this.originalOperations.get(t),o=this._relations.get(r);o||(o=new Map,this._relations.set(r,o)),o.set(i,n)}}]),e}();function Ad(e,t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){n.value.baseVersion=t++}}catch(e){r.e(e)}finally{r.f()}}function xd(e,t){for(var n=0;n<t;n++)e.push(new Ks(0))}function Sd(e,t,n){var r=e.nodes.getNode(0).getAttribute(t);if(r==n)return null;var i=new na(e.position,e.position.getShiftedBy(e.howMany));return new ks(i,t,r,n,0)}function Md(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function Ed(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=new _s(i.start,i.end.offset-i.start.offset,t,0);n.push(o);for(var a=r+1;a<e.length;a++)e[a]=e[a]._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)[0];t=t._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)}return n}yd(ks,ks,(function(e,t,n){if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){var r=e.range.getDifference(t.range).map((function(t){return new ks(t,e.key,e.oldValue,e.newValue,0)})),i=e.range.getIntersection(t.range);return i&&n.aIsStrong&&r.push(new ks(i,t.key,t.newValue,e.newValue,0)),0==r.length?[new Ks(0)]:r}return[e]})),yd(ks,Cs,(function(e,t){if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){var n=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map((function(t){return new ks(t,e.key,e.oldValue,e.newValue,e.baseVersion)}));if(t.shouldReceiveAttributes){var r=Sd(t,e.key,e.oldValue);r&&n.unshift(r)}return n}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]})),yd(ks,Ms,(function(e,t){var n=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&n.push(na._createFromPositionAndShift(t.graveyardPosition,1));var r=e.range._getTransformedByMergeOperation(t);return r.isCollapsed||n.push(r),n.map((function(t){return new ks(t,e.key,e.oldValue,e.newValue,e.baseVersion)}))})),yd(ks,_s,(function(e,t){return function(e,t){var n=na._createFromPositionAndShift(t.sourcePosition,t.howMany),r=null,i=[];n.containsRange(e,!0)?r=e:e.start.hasSameParentAs(n.start)?(i=e.getDifference(n),r=e.getIntersection(n)):i=[e];var o,a=[],s=l(i);try{for(s.s();!(o=s.n()).done;){var c=o.value;c=c._getTransformedByDeletion(t.sourcePosition,t.howMany);var d=t.getMovedRangeStart(),f=c.start.hasSameParentAs(d);c=c._getTransformedByInsertion(d,t.howMany,f),a.push.apply(a,u(c))}}catch(e){s.e(e)}finally{s.f()}return r&&a.push(r._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),a}(e.range,t).map((function(t){return new ks(t,e.key,e.oldValue,e.newValue,e.baseVersion)}))})),yd(ks,Es,(function(e,t){if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){var n=e.clone();return n.range=new na(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,n]}return e.range=e.range._getTransformedBySplitOperation(t),[e]})),yd(Cs,ks,(function(e,t){var n=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){var r=Sd(e,t.key,t.newValue);r&&n.push(r)}return n})),yd(Cs,Cs,(function(e,t,n){return e.position.isEqual(t.position)&&n.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e]})),yd(Cs,_s,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),yd(Cs,Es,(function(e,t){return e.position=e.position._getTransformedBySplitOperation(t),[e]})),yd(Cs,Ms,(function(e,t){return e.position=e.position._getTransformedByMergeOperation(t),[e]})),yd(As,Cs,(function(e,t){return e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e]})),yd(As,As,(function(e,t,n){if(e.name==t.name){if(!n.aIsStrong)return[new Ks(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]})),yd(As,Ms,(function(e,t){return e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e]})),yd(As,_s,(function(e,t,n){if(e.oldRange&&(e.oldRange=na._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(n.abRelation){var r=na._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.start.path=n.abRelation.path,e.newRange.end=r.end,[e];if("right"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=r.start,e.newRange.end.path=n.abRelation.path,[e]}e.newRange=na._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]})),yd(As,Es,(function(e,t,n){if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(n.abRelation){var r=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?e.newRange.start=Jo._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!n.abRelation.wasInLeftElement&&(e.newRange.start=Jo._createAt(t.moveTargetPosition)),e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasInRightElement?e.newRange.end=Jo._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?e.newRange.end=Jo._createAt(t.insertionPosition):e.newRange.end=r.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]})),yd(Ms,Cs,(function(e,t){return e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e]})),yd(Ms,Ms,(function(e,t,n){if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(n.bWasUndone){var r=t.graveyardPosition.path.slice();return r.push(0),e.sourcePosition=new Jo(t.graveyardPosition.root,r),e.howMany=0,[e]}return[new Ks(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){var i="$graveyard"==e.targetPosition.root.rootName,o="$graveyard"==t.targetPosition.root.rootName;if(o&&!i||!(i&&!o)&&n.aIsStrong){var a=t.targetPosition._getTransformedByMergeOperation(t),s=e.targetPosition._getTransformedByMergeOperation(t);return[new _s(a,e.howMany,s,0)]}return[new Ks(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&n.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),yd(Ms,_s,(function(e,t,n){var r=na._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!n.bWasUndone&&!n.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.sourcePosition)?[new Ks(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])})),yd(Ms,Es,(function(e,t,n){if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){var r=0!=t.howMany,i=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(r||i||"mergeTargetNotMoved"==n.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==n.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]})),yd(_s,Cs,(function(e,t){var n=na._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),yd(_s,_s,(function(e,t,n){var r,i=na._createFromPositionAndShift(e.sourcePosition,e.howMany),o=na._createFromPositionAndShift(t.sourcePosition,t.howMany),a=n.aIsStrong,s=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?s=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(s=!1),r=e.targetPosition.isEqual(t.targetPosition)&&s?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Md(e,t)&&Md(t,e))return[t.getReversed()];if(i.containsPosition(t.targetPosition)&&i.containsRange(o,!0))return i.start=i.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),i.end=i.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Ed([i],r);if(o.containsPosition(e.targetPosition)&&o.containsRange(i,!0))return i.start=i.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),i.end=i.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),Ed([i],r);var c=mn(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==c||"extension"==c)return i.start=i.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),i.end=i.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Ed([i],r);"remove"!=e.type||"remove"==t.type||n.aWasUndone||n.forceWeakRemove?"remove"==e.type||"remove"!=t.type||n.bWasUndone||n.forceWeakRemove||(a=!1):a=!0;var d,f=[],h=l(i.getDifference(o));try{for(h.s();!(d=h.n()).done;){var p=d.value;p.start=p.start._getTransformedByDeletion(t.sourcePosition,t.howMany),p.end=p.end._getTransformedByDeletion(t.sourcePosition,t.howMany);var m="same"==mn(p.start.getParentPath(),t.getMovedRangeStart().getParentPath()),v=p._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,m);f.push.apply(f,u(v))}}catch(e){h.e(e)}finally{h.f()}var g=i.getIntersection(o);return null!==g&&a&&(g.start=g.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),g.end=g.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===f.length?f.push(g):1==f.length?o.start.isBefore(i.start)||o.start.isEqual(i.start)?f.unshift(g):f.push(g):f.splice(1,0,g)),0===f.length?[new Ks(e.baseVersion)]:Ed(f,r)})),yd(_s,Es,(function(e,t,n){var r=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(r=e.targetPosition._getTransformedBySplitOperation(t));var i=na._createFromPositionAndShift(e.sourcePosition,e.howMany);if(i.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=r,[e];if(i.start.hasSameParentAs(t.splitPosition)&&i.containsPosition(t.splitPosition)){var o=new na(t.splitPosition,i.end);return o=o._getTransformedBySplitOperation(t),Ed([new na(i.start,t.splitPosition),o],r)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==n.abRelation&&(r=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==n.abRelation&&(r=e.targetPosition);var a=[i._getTransformedBySplitOperation(t)];if(t.graveyardPosition){var s=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);e.howMany>1&&s&&!n.aWasUndone&&a.push(na._createFromPositionAndShift(t.insertionPosition,1))}return Ed(a,r)})),yd(_s,Ms,(function(e,t,n){var r=na._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.sourcePosition))if("remove"!=e.type||n.forceWeakRemove){if(1==e.howMany)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Ks(0)]}else if(!n.aWasUndone){var i=[],o=t.graveyardPosition.clone(),a=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(i.push(new _s(e.sourcePosition,e.howMany-1,e.targetPosition,0)),o=o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),a=a._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));var s=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),c=new _s(o,1,s,0),l=c.getMovedRangeStart().path.slice();l.push(0);var u=new Jo(c.targetPosition.root,l);a=a._getTransformedByMove(o,s,1);var d=new _s(a,t.howMany,u,0);return i.push(c),i.push(d),i}var f=na._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=f.start,e.howMany=f.end.offset-f.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),yd(xs,Cs,(function(e,t){return e.position=e.position._getTransformedByInsertOperation(t),[e]})),yd(xs,Ms,(function(e,t){return e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e])})),yd(xs,_s,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),yd(xs,xs,(function(e,t,n){if(e.position.isEqual(t.position)){if(!n.aIsStrong)return[new Ks(0)];e.oldName=t.newName}return[e]})),yd(xs,Es,(function(e,t){if("same"==mn(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){var n=new xs(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,n]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),yd(Ss,Ss,(function(e,t,n){if(e.root===t.root&&e.key===t.key){if(!n.aIsStrong||e.newValue===t.newValue)return[new Ks(0)];e.oldValue=t.newValue}return[e]})),yd(Es,Cs,(function(e,t){return e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=Es.getInsertionPosition(e.splitPosition),[e]})),yd(Es,Ms,(function(e,t,n){if(!e.graveyardPosition&&!n.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){var r=t.graveyardPosition.path.slice();r.push(0);var i=new Jo(t.graveyardPosition.root,r),o=Es.getInsertionPosition(new Jo(t.graveyardPosition.root,r)),a=new Es(i,0,null,0);return a.insertionPosition=o,e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Es.getInsertionPosition(e.splitPosition),e.graveyardPosition=a.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[a,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Es.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),yd(Es,_s,(function(e,t,n){var r=na._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){var i=r.start.isEqual(e.graveyardPosition)||r.containsPosition(e.graveyardPosition);if(!n.bWasUndone&&i){var o=e.splitPosition._getTransformedByMoveOperation(t),a=e.graveyardPosition._getTransformedByMoveOperation(t),s=a.path.slice();s.push(0);var c=new Jo(a.root,s);return[new _s(o,e.howMany,c,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.splitPosition)){var l=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=l,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=Es.getInsertionPosition(e.splitPosition),[e]}return!e.splitPosition.isEqual(t.targetPosition)||"insertAtSource"!=n.baRelation&&"splitBefore"!=n.abRelation?(t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.graveyardPosition?e.insertionPosition=e.insertionPosition._getTransformedByMoveOperation(t):e.insertionPosition=Es.getInsertionPosition(e.splitPosition),[e]):(e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Es.getInsertionPosition(e.splitPosition),[e])})),yd(Es,Es,(function(e,t,n){if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new Ks(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new Ks(0)];if("splitBefore"==n.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){var r="$graveyard"==e.splitPosition.root.rootName,i="$graveyard"==t.splitPosition.root.rootName;if(i&&!r||!(r&&!i)&&n.aIsStrong){var o=[];return t.howMany&&o.push(new _s(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&o.push(new _s(e.splitPosition,e.howMany,e.moveTargetPosition,0)),o}return[new Ks(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.baRelation){var a=t.insertionPosition.path.slice();a.push(0);var s=new Jo(t.insertionPosition.root,a);return[e,new _s(e.insertionPosition,1,s,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Es.getInsertionPosition(e.splitPosition),[e]}));var Td=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._stack=[],r._createdBatches=new WeakSet,r.refresh(),r.listenTo(e.data,"set",(function(){return r.clearStack()})),r}return m(n,[{key:"refresh",value:function(){this.isEnabled=this._stack.length>0}},{key:"addBatch",value:function(e){var t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}},{key:"clearStack",value:function(){this._stack=[],this.refresh()}},{key:"_restoreSelection",value:function(e,t,n){var r,i=this.editor.model,o=i.document,a=[],s=e.map((function(e){return e.getTransformedByOperations(n)})),c=s.flat(),u=l(s);try{for(u.s();!(r=u.n()).done;){var d=r.value.filter((function(e){return!Od(e,c)}));Dd(d);var f=d.find((function(e){return e.root!=o.graveyard}));f&&a.push(f)}}catch(e){u.e(e)}finally{u.f()}a.length&&i.change((function(e){e.setSelection(a,{backward:t})}))}},{key:"_undo",value:function(e,t){var n=this.editor.model,r=n.document;this._createdBatches.add(t);var i=e.operations.slice().filter((function(e){return e.isDocumentOperation}));i.reverse();var o,a=l(i);try{for(a.s();!(o=a.n()).done;){var s,c=o.value,u=c.baseVersion+1,d=Array.from(r.history.getOperations(u)),f=l(_d([c.getReversed()],d,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA);try{for(f.s();!(s=f.n()).done;){var h=s.value;t.addOperation(h),n.applyOperation(h),r.history.setOperationAsUndone(c,h)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){a.e(e)}finally{a.f()}}}]),n}(Fl);function Dd(e){e.sort((function(e,t){return e.start.isBefore(t.start)?-1:1}));for(var t=1;t<e.length;t++){var n=e[t-1].getJoined(e[t],!0);n&&(t--,e.splice(t,2,n))}}function Od(e,t){return t.some((function(t){return t!==e&&t.containsRange(e,!0)}))}var Pd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t?this._stack.findIndex((function(e){return e.batch==t})):this._stack.length-1,r=this._stack.splice(n,1)[0],i=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(i,(function(){e._undo(r.batch,i);var t=e.editor.model.document.history.getOperations(r.batch.baseVersion);e._restoreSelection(r.selection.ranges,r.selection.isBackward,t),e.fire("revert",r.batch,i)})),this.refresh()}}]),n}(Td),Id=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this,t=this._stack.pop(),n=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(n,(function(){var r=t.batch.operations[t.batch.operations.length-1].baseVersion+1,i=e.editor.model.document.history.getOperations(r);e._restoreSelection(t.selection.ranges,t.selection.isBackward,i),e._undo(t.batch,n)})),this.refresh()}}]),n}(Td),jd=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._batchRegistry=new WeakSet,r}return m(n,null,[{key:"pluginName",get:function(){return"UndoEditing"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor;this._undoCommand=new Pd(t),this._redoCommand=new Id(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(function(t,n){var r=n[0];if(r.isDocumentOperation){var i=r.batch,o=e._redoCommand._createdBatches.has(i),a=e._undoCommand._createdBatches.has(i);e._batchRegistry.has(i)||"transparent"==i.type&&!o&&!a||(o?e._undoCommand.addBatch(i):a||(e._undoCommand.addBatch(i),e._redoCommand.clearStack()),e._batchRegistry.add(i))}}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(function(t,n,r){e._redoCommand.addBatch(r)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}]),n}(Ll),Nd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.042 9.367l2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',Rd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M14.958 9.367l-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',Ld=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,r="ltr"==t.uiLanguageDirection?Nd:Rd,i="ltr"==t.uiLanguageDirection?Rd:Nd;this._addButton("undo",n("Undo"),"CTRL+Z",r),this._addButton("redo",n("Redo"),"CTRL+Y",i)}},{key:"_addButton",value:function(e,t,n,r){var i=this,o=this.editor;o.ui.componentFactory.add(e,(function(a){var s=o.commands.get(e),c=new kl(a);return c.set({label:t,icon:r,keystroke:n,tooltip:!0}),c.bind("isEnabled").to(s,"isEnabled"),i.listenTo(c,"execute",(function(){o.execute(e),o.editing.view.focus()})),c}))}}]),n}(Ll),Bd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[jd,Ld]}},{key:"pluginName",get:function(){return"Undo"}}]),n}(Ll),Fd=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).attributeKey=r,i}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=t.selection.getAttribute(this.attributeKey),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document.selection,i=t.value;n.change((function(t){if(r.isCollapsed)i?t.setSelectionAttribute(e.attributeKey,i):t.removeSelectionAttribute(e.attributeKey);else{var o,a=l(n.schema.getValidRanges(r.getRanges(),e.attributeKey));try{for(a.s();!(o=a.n()).done;){var s=o.value;i?t.setAttribute(e.attributeKey,i,s):t.removeAttribute(e.attributeKey,s)}}catch(e){a.e(e)}finally{a.f()}}}))}}]),n}(Fl),zd=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("color"),r.set("hasBorder"),r.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035L8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',r.extendTemplate({attributes:{style:{backgroundColor:i.to("color")},class:["ck","ck-color-grid__tile",i.if("hasBorder","ck-color-table__color-tile_bordered")]}}),r}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.iconView.fillColor="hsl(0, 0%, 100%)"}}]),n}(kl);n(47);var Vd=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n),i=t.call(this,e);var o=r&&r.colorDefinitions||[],a={};return r&&r.columns&&(a.gridTemplateColumns="repeat( ".concat(r.columns,", 1fr)")),i.set("selectedColor"),i.items=i.createCollection(),i.focusTracker=new Cc,i.keystrokes=new mc,i._focusCycler=new sl({focusables:i.items,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"arrowleft",focusNext:"arrowright"}}),i.items.on("add",(function(e,t){t.isOn=t.color===i.selectedColor})),o.forEach((function(e){var t=new zd;t.set({color:e.color,label:e.label,tooltip:!0,hasBorder:e.options.hasBorder}),t.on("execute",(function(){i.fire("execute",{value:e.color,hasBorder:e.options.hasBorder,label:e.label})})),i.items.add(t)})),i.setTemplate({tag:"div",children:i.items,attributes:{class:["ck","ck-color-grid"],style:a}}),i.on("change:selectedColor",(function(e,t,n){var r,o=l(i.items);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.isOn=a.color===n}}catch(e){o.e(e)}finally{o.f()}})),i}return m(n,[{key:"focus",value:function(){this.items.length&&this.items.first.focus()}},{key:"focusLast",value:function(){this.items.length&&this.items.last.focus()}},{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this);var t,r=l(this.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.focusTracker.add(i.element)}}catch(e){r.e(e)}finally{r.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}}]),n}(Xc),$d=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).set("isEmpty",!0),r.on("change",(function(){r.set("isEmpty",0===r.length)})),r}return m(n,[{key:"add",value:function(e,t){this.find((function(t){return t.color===e.color}))||s(A(n.prototype),"add",this).call(this,e,t)}},{key:"hasColor",value:function(e){return!!this.find((function(t){return t.color===e}))}}]),n}(cn);sn($d,mr);var Hd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.636 9.531l-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>';n(49);var Ud=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=r.colors,a=r.columns,s=r.removeButtonLabel,c=r.documentColorsLabel,l=r.documentColorsCount;return h(this,n),(i=t.call(this,e)).items=i.createCollection(),i.colorDefinitions=o,i.focusTracker=new Cc,i.keystrokes=new mc,i.set("selectedColor"),i.removeButtonLabel=s,i.columns=a,i.documentColors=new $d,i.documentColorsCount=l,i._focusCycler=new sl({focusables:i.items,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),i._documentColorsLabel=c,i.setTemplate({tag:"div",attributes:{class:["ck","ck-color-table"]},children:i.items}),i.items.add(i._removeColorButton()),i}return m(n,[{key:"updateDocumentColors",value:function(e,t){var n=e.document,r=this.documentColorsCount;this.documentColors.clear();var i,o=l(n.getRootNames());try{for(o.s();!(i=o.n()).done;){var a,s=i.value,c=n.getRoot(s),u=l(e.createRangeIn(c).getItems());try{for(u.s();!(a=u.n()).done;){var d=a.value;if(d.is("$textProxy")&&d.hasAttribute(t)&&(this._addColorToDocumentColors(d.getAttribute(t)),this.documentColors.length>=r))return}}catch(e){u.e(e)}finally{u.f()}}}catch(e){o.e(e)}finally{o.f()}}},{key:"updateSelectedColors",value:function(){var e=this.documentColorsGrid,t=this.staticColorsGrid,n=this.selectedColor;t.selectedColor=n,e&&(e.selectedColor=n)}},{key:"render",value:function(){s(A(n.prototype),"render",this).call(this);var e,t=l(this.items);try{for(t.s();!(e=t.n()).done;){var r=e.value;this.focusTracker.add(r.element)}}catch(e){t.e(e)}finally{t.f()}this.keystrokes.listenTo(this.element)}},{key:"appendGrids",value:function(){if(!this.staticColorsGrid&&(this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount)){var e=Pc.bind(this.documentColors,this.documentColors),t=new tl(this.locale);t.text=this._documentColorsLabel,t.extendTemplate({attributes:{class:["ck","ck-color-grid__label",e.if("isEmpty","ck-hidden")]}}),this.items.add(t),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"_removeColorButton",value:function(){var e=this,t=new kl;return t.set({withText:!0,icon:Hd,tooltip:!0,label:this.removeButtonLabel}),t.class="ck-color-table__remove-color",t.on("execute",(function(){e.fire("execute",{value:null})})),t}},{key:"_createStaticColorsGrid",value:function(){var e=new Vd(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return e.delegate("execute").to(this),e}},{key:"_createDocumentColorsGrid",value:function(){var e=this,t=Pc.bind(this.documentColors,this.documentColors),n=new Vd(this.locale,{columns:this.columns});return n.delegate("execute").to(this),n.extendTemplate({attributes:{class:t.if("isEmpty","ck-hidden")}}),n.items.bindTo(this.documentColors).using((function(t){var n=new zd;return n.set({color:t.color,hasBorder:t.options&&t.options.hasBorder}),t.label&&n.set({label:t.label,tooltip:!0}),n.on("execute",(function(){e.fire("execute",{value:t.color})})),n})),this.documentColors.on("change:isEmpty",(function(e,t,r){r&&(n.selectedColor=null)})),n}},{key:"_addColorToDocumentColors",value:function(e){var t=this.colorDefinitions.find((function(t){return t.color===e}));t?this.documentColors.add(Object.assign({},t)):this.documentColors.add({color:e,label:e,options:{hasBorder:!1}})}}]),n}(Xc),qd="fontSize",Wd="fontFamily",Yd="fontColor",Kd="fontBackgroundColor";function Gd(e,t){var n,r={model:{key:e,values:[]},view:{},upcastAlso:{}},i=l(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;r.model.values.push(o.model),r.view[o.model]=o.view,o.upcastAlso&&(r.upcastAlso[o.model]=o.upcastAlso)}}catch(e){i.e(e)}finally{i.f()}return r}function Qd(e){return function(t){return t.getStyle(e).replace(/\s/g,"")}}function Xd(e){return function(t,n){return n.writer.createAttributeElement("span",{style:"".concat(e,":").concat(t)},{priority:7})}}var Jd=function(e){v(n,e);var t=g(n);function n(e){return h(this,n),t.call(this,e,Kd)}return n}(Fd),Zd=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,ef=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,tf=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,nf=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,rf=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,of=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple","currentcolor","transparent"]);function af(e){return e.startsWith("#")?Zd.test(e):e.startsWith("rgb")?ef.test(e)||tf.test(e):e.startsWith("hsl")?nf.test(e)||rf.test(e):of.has(e.toLowerCase())}var sf=["repeat-x","repeat-y","repeat","space","round","no-repeat"],cf=["center","top","bottom","left","right"];function lf(e){return cf.includes(e)}var uf=["fixed","scroll","local"];function df(e){return uf.includes(e)}var ff=/^url\(/;function hf(e){return ff.test(e)}function pf(e){e.setNormalizer("background",mf),e.setNormalizer("background-color",(function(e){return{path:"background.color",value:e}})),e.setReducer("background",(function(e){var t=[];return t.push(["background-color",e.color]),t}))}function mf(e){var t,n,r={},i=l(function(e){return e.replace(/, /g,",").split(" ").map((function(e){return e.replace(/,/g,", ")}))}(e));try{for(i.s();!(t=i.n()).done;){var o=t.value;n=o,sf.includes(n)?(r.repeat=r.repeat||[],r.repeat.push(o)):lf(o)?(r.position=r.position||[],r.position.push(o)):df(o)?r.attachment=o:af(o)?r.color=o:hf(o)&&(r.image=o)}}catch(e){i.e(e)}finally{i.f()}return{path:"background",value:r}}var vf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define(Kd,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),e.data.addStyleProcessorRules(pf),e.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{"background-color":/[\s\S]+/}},model:{key:Kd,value:Qd("background-color")}}),e.conversion.for("downcast").attributeToElement({model:Kd,view:Xd("background-color")}),e.commands.add(Kd,new Jd(e)),e.model.schema.extend("$text",{allowAttributes:Kd}),e.model.schema.setAttributeProperties(Kd,{isFormatting:!0,copyOnEnter:!0}),r}return m(n,null,[{key:"pluginName",get:function(){return"FontBackgroundColorEditing"}}]),n}(Ll);function gf(e){return"string"==typeof e?{model:e,label:e,hasBorder:!1,view:{name:"span",styles:{color:e}}}:{model:e.color,label:e.label||e.color,hasBorder:void 0!==e.hasBorder&&e.hasBorder,view:{name:"span",styles:{color:""+e.color}}}}var bf=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=r.commandName,a=r.icon,s=r.componentName,c=r.dropdownLabel;return h(this,n),(i=t.call(this,e)).commandName=o,i.componentName=s,i.icon=a,i.dropdownLabel=c,i.columns=e.config.get(i.componentName+".columns"),i.colorTableView=void 0,i}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.locale,r=n.t,i=t.commands.get(this.commandName),o=function(e,t){var n=e.t,r={Black:n("Black"),"Dim grey":n("Dim grey"),Grey:n("Grey"),"Light grey":n("Light grey"),White:n("White"),Red:n("Red"),Orange:n("Orange"),Yellow:n("Yellow"),"Light green":n("Light green"),Green:n("Green"),Aquamarine:n("Aquamarine"),Turquoise:n("Turquoise"),"Light blue":n("Light blue"),Blue:n("Blue"),Purple:n("Purple")};return t.map((function(e){var t=r[e.label];return t&&t!=e.label&&(e.label=t),e}))}(n,t.config.get(this.componentName).colors.map(gf).filter((function(e){return!!e}))),a=t.config.get(this.componentName+".documentColors");t.ui.componentFactory.add(this.componentName,(function(n){var s=El(n);return e.colorTableView=function(e){var t=e.dropdownView,n=e.colors,r=e.columns,i=e.removeButtonLabel,o=e.documentColorsLabel,a=e.documentColorsCount,s=t.locale,c=new Ud(s,{colors:n,columns:r,removeButtonLabel:i,documentColorsLabel:o,documentColorsCount:a});return t.colorTableView=c,t.panelView.children.add(c),c.delegate("execute").to(t,"execute"),c}({dropdownView:s,colors:o.map((function(e){return{label:e.label,color:e.model,options:{hasBorder:e.hasBorder}}})),columns:e.columns,removeButtonLabel:r("Remove color"),documentColorsLabel:0!==a?r("Document colors"):void 0,documentColorsCount:void 0===a?e.columns:a}),e.colorTableView.bind("selectedColor").to(i,"value"),s.buttonView.set({label:e.dropdownLabel,icon:e.icon,tooltip:!0}),s.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),s.bind("isEnabled").to(i),s.on("execute",(function(n,r){t.execute(e.commandName,r),t.editing.view.focus()})),s.on("change:isOpen",(function(n,r,i){s.colorTableView.appendGrids(),i&&(0!==a&&e.colorTableView.updateDocumentColors(t.model,e.componentName),e.colorTableView.updateSelectedColors())})),s}))}}]),n}(Ll),yf=function(e){v(n,e);var t=g(n);function n(e){h(this,n);var r=e.locale.t;return t.call(this,e,{commandName:Kd,componentName:Kd,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8.38 9.262H7.62L10 5.506l2.38 5.756zm.532 1.285L14.34 16h1.426L10.804 4H9.196L4.234 16H5.66l1.428-3.453h5.824z"/></svg>',dropdownLabel:r("Font Background Color")})}return m(n,null,[{key:"pluginName",get:function(){return"FontBackgroundColorUI"}}]),n}(bf),kf=function(e){v(n,e);var t=g(n);function n(e){return h(this,n),t.call(this,e,Yd)}return n}(Fd),wf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define(Yd,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),e.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:Yd,value:Qd("color")}}),e.conversion.for("downcast").attributeToElement({model:Yd,view:Xd("color")}),e.commands.add(Yd,new kf(e)),e.model.schema.extend("$text",{allowAttributes:Yd}),e.model.schema.setAttributeProperties(Yd,{isFormatting:!0,copyOnEnter:!0}),r}return m(n,null,[{key:"pluginName",get:function(){return"FontColorEditing"}}]),n}(Ll),_f=function(e){v(n,e);var t=g(n);function n(e){h(this,n);var r=e.locale.t;return t.call(this,e,{commandName:Yd,componentName:Yd,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3L10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>',dropdownLabel:r("Font Color")})}return m(n,null,[{key:"pluginName",get:function(){return"FontColorUI"}}]),n}(bf),Cf=function(e){v(n,e);var t=g(n);function n(e){return h(this,n),t.call(this,e,Wd)}return n}(Fd);function Af(e){return e.map(xf).filter((function(e){return!!e}))}function xf(e){return"object"==x(e)?e:"default"===e?{title:"Default",model:void 0}:"string"==typeof e?function(e){var t=e.replace(/"|'/g,"").split(","),n=t[0],r=t.map(Sf).join(", ");return{title:n,model:r,view:{name:"span",styles:{"font-family":r},priority:7}}}(e):void 0}function Sf(e){return(e=e.trim()).indexOf(" ")>0&&(e="'".concat(e,"'")),e}var Mf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define(Wd,{options:["default","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"],supportAllValues:!1}),r}return m(n,null,[{key:"pluginName",get:function(){return"FontFamilyEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:Wd}),e.model.schema.setAttributeProperties(Wd,{isFormatting:!0,copyOnEnter:!0});var t=Af(e.config.get("fontFamily.options")).filter((function(e){return e.model})),n=Gd(Wd,t);e.config.get("fontFamily.supportAllValues")?this._prepareAnyValueConverters():e.conversion.attributeToElement(n),e.commands.add(Wd,new Cf(e))}},{key:"_prepareAnyValueConverters",value:function(){var e=this.editor;e.conversion.for("downcast").attributeToElement({model:Wd,view:function(e,t){return t.writer.createAttributeElement("span",{style:"font-family:"+e},{priority:7})}}),e.conversion.for("upcast").attributeToAttribute({model:{key:Wd,value:function(e){return e.getStyle("font-family")}},view:{name:"span",styles:{"font-family":/.*/}}})}}]),n}(Ll),Ef=function e(t,n){h(this,e),n&&ur(this,n),t&&this.set(t)};sn(Ef,mr);var Tf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,r=this._getLocalizedOptions(),i=t.commands.get(Wd);t.ui.componentFactory.add(Wd,(function(o){var a=El(o);return Dl(a,function(e,t){var n,r=new cn,i=l(e);try{var o=function(){var e=n.value,i={type:"button",model:new Ef({commandName:Wd,commandParam:e.model,label:e.title,withText:!0})};i.model.bind("isOn").to(t,"value",(function(t){return t===e.model||!(!t||!e.model)&&t.split(",")[0].replace(/'/g,"").toLowerCase()===e.model.toLowerCase()})),e.view&&e.view.styles&&i.model.set("labelStyle","font-family: "+e.view.styles["font-family"]),r.add(i)};for(i.s();!(n=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}return r}(r,i)),a.buttonView.set({label:n("Font Family"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.03 3h6.149a.75.75 0 1 1 0 1.5h-5.514L11.03 3zm1.27 3h4.879a.75.75 0 1 1 0 1.5h-4.244L12.3 6zm1.27 3h3.609a.75.75 0 1 1 0 1.5h-2.973L13.57 9zm-2.754 2.5L8.038 4.785 5.261 11.5h5.555zm.62 1.5H4.641l-1.666 4.028H1.312l5.789-14h1.875l5.789 14h-1.663L11.436 13z"/></svg>',tooltip:!0}),a.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),a.bind("isEnabled").to(i),e.listenTo(a,"execute",(function(e){t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),a}))}},{key:"_getLocalizedOptions",value:function(){var e=this.editor,t=e.t;return Af(e.config.get(Wd).options).map((function(e){return"Default"===e.title&&(e.title=t("Default")),e}))}}]),n}(Ll),Df=function(e){v(n,e);var t=g(n);function n(e){return h(this,n),t.call(this,e,qd)}return n}(Fd);function Of(e){return e.map((function(e){return function(e){if("object"==x(t=e)&&t.title&&t.model&&t.view)return If(e);var t,n=function(e){return Pf[e]||Pf[e.model]}(e);return n?If(n):"default"===e?{model:void 0,title:"Default"}:function(e){var t;if("object"==x(e)){if(!e.model)throw new Kt.a("font-size-invalid-definition",null,e);t=parseFloat(e.model)}else t=parseFloat(e);return isNaN(t)}(e)?void 0:function(e){return"number"!=typeof e&&"string"!=typeof e||(e={title:String(e),model:parseFloat(e)+"px"}),e.view={name:"span",styles:{"font-size":e.model}},If(e)}(e)}(e)})).filter((function(e){return!!e}))}var Pf={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function If(e){return e.view.priority||(e.view.priority=7),e}var jf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define(qd,{options:["tiny","small","default","big","huge"],supportAllValues:!1}),r}return m(n,null,[{key:"pluginName",get:function(){return"FontSizeEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:qd}),e.model.schema.setAttributeProperties(qd,{isFormatting:!0,copyOnEnter:!0});var t=e.config.get("fontSize.supportAllValues"),n=Of(this.editor.config.get("fontSize.options")).filter((function(e){return e.model})),r=Gd(qd,n);t?this._prepareAnyValueConverters(r):e.conversion.attributeToElement(r),e.commands.add(qd,new Df(e))}},{key:"_prepareAnyValueConverters",value:function(e){var t=this.editor,n=e.model.values.filter((function(e){return!String(e).match(/[\d.]+[\w%]+/)}));if(n.length)throw new Kt.a("font-size-invalid-use-of-named-presets",null,{presets:n});t.conversion.for("downcast").attributeToElement({model:qd,view:function(e,t){var n=t.writer;if(e)return n.createAttributeElement("span",{style:"font-size:"+e},{priority:7})}}),t.conversion.for("upcast").attributeToAttribute({model:{key:qd,value:function(e){return e.getStyle("font-size")}},view:{name:"span"}})}}]),n}(Ll);n(51);var Nf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,r=this._getLocalizedOptions(),i=t.commands.get(qd);t.ui.componentFactory.add(qd,(function(o){var a=El(o);return Dl(a,function(e,t){var n,r=new cn,i=l(e);try{var o=function(){var e=n.value,i={type:"button",model:new Ef({commandName:qd,commandParam:e.model,label:e.title,class:"ck-fontsize-option",withText:!0})};e.view&&e.view.styles&&i.model.set("labelStyle","font-size:"+e.view.styles["font-size"]),e.view&&e.view.classes&&i.model.set("class","".concat(i.model.class," ").concat(e.view.classes)),i.model.bind("isOn").to(t,"value",(function(t){return t===e.model})),r.add(i)};for(i.s();!(n=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}return r}(r,i)),a.buttonView.set({label:n("Font Size"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5L7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279l.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>',tooltip:!0}),a.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),a.bind("isEnabled").to(i),e.listenTo(a,"execute",(function(e){t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),a}))}},{key:"_getLocalizedOptions",value:function(){var e=this.editor,t=e.t,n={Default:t("Default"),Tiny:t("Tiny"),Small:t("Small"),Big:t("Big"),Huge:t("Huge")};return Of(e.config.get(qd).options).map((function(e){var t=n[e.title];return t&&t!=e.title&&(e=Object.assign({},e,{title:t})),e}))}}]),n}(Ll),Rf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=Vl(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&Lf(t,e.schema)}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document;t.change((function(r){var i,o=l((e.selection||n.selection).getSelectedBlocks());try{for(o.s();!(i=o.n()).done;){var a=i.value;!a.is("element","paragraph")&&Lf(a,t.schema)&&r.rename(a,"paragraph")}}catch(e){o.e(e)}finally{o.f()}}))}}]),n}(Fl);function Lf(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}var Bf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(e){var t=this.editor.model,n=e.position;t.change((function(e){var r=e.createElement("paragraph");if(!t.schema.checkChild(n.parent,r)){var i=t.schema.findAllowedParent(n,r);if(!i)return;n=e.split(n,i).position}t.insertContent(r,n),e.setSelection(r,"in")}))}}]),n}(Fl),Ff=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model;e.commands.add("paragraph",new Rf(e)),e.commands.add("insertParagraph",new Bf(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:function(e,t){var r=t.writer;return n.paragraphLikeElements.has(e.name)?e.isEmpty?null:r.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}],[{key:"pluginName",get:function(){return"Paragraph"}}]),n}(Ll);Ff.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var zf=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).modelElements=r,i}return m(n,[{key:"refresh",value:function(){var e=this,t=Vl(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((function(n){return Vf(t,n,e.editor.model.schema)}))}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document,r=e.value;t.change((function(e){var i,o=l(Array.from(n.selection.getSelectedBlocks()).filter((function(e){return Vf(e,r,t.schema)})));try{for(o.s();!(i=o.n()).done;){var a=i.value;a.is("element",r)||e.rename(a,r)}}catch(e){o.e(e)}finally{o.f()}}))}}]),n}(Fl);function Vf(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}var $f="paragraph",Hf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]}),r}return m(n,null,[{key:"pluginName",get:function(){return"HeadingEditing"}}]),m(n,[{key:"init",value:function(){var e,t=this.editor,n=[],r=l(t.config.get("heading.options"));try{for(r.s();!(e=r.n()).done;){var i=e.value;i.model!==$f&&(t.model.schema.register(i.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(i),n.push(i.model))}}catch(e){r.e(e)}finally{r.f()}this._addDefaultH1Conversion(t),t.commands.add("heading",new zf(t,n))}},{key:"afterInit",value:function(){var e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(function(t,r){var i=e.model.document.selection.getFirstPosition().parent;n.some((function(e){return i.is("element",e.model)}))&&!i.is("element",$f)&&0===i.childCount&&r.writer.rename(i,$f)}))}},{key:"_addDefaultH1Conversion",value:function(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Yt.get("low")+1})}}],[{key:"requires",get:function(){return[Ff]}}]),n}(Ll);n(13);var Uf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,r=function(e){var t=e.t,n={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map((function(e){var t=n[e.title];return t&&t!=e.title&&(e.title=t),e}))}(t),i=n("Choose heading"),o=n("Heading");t.ui.componentFactory.add("heading",(function(n){var a,s={},c=new cn,u=t.commands.get("heading"),d=t.commands.get("paragraph"),f=[u],h=l(r);try{var p=function(){var e=a.value,t={type:"button",model:new Ef({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(d,"value"),t.model.set("commandName","paragraph"),f.push(d)):(t.model.bind("isOn").to(u,"value",(function(t){return t===e.model})),t.model.set({commandName:"heading",commandValue:e.model})),c.add(t),s[e.model]=e.title};for(h.s();!(a=h.n()).done;)p()}catch(e){h.e(e)}finally{h.f()}var m=El(n);return Dl(m,c),m.buttonView.set({isOn:!1,withText:!0,tooltip:o}),m.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),m.bind("isEnabled").toMany(f,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),m.buttonView.bind("label").to(u,"value",d,"value",(function(e,t){var n=e||t&&"paragraph";return s[n]?s[n]:i})),e.listenTo(m,"execute",(function(e){t.execute(e.source.commandName,e.source.commandValue?{value:e.source.commandValue}:void 0),t.editing.view.focus()})),m}))}}]),n}(Ll),qf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=t.selection.getAttribute("highlight"),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"highlight")}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document.selection,i=t.value;n.change((function(t){var o=n.schema.getValidRanges(r.getRanges(),"highlight");if(r.isCollapsed){var a=r.getFirstPosition();if(r.hasAttribute("highlight")){var s=function(t){return t.item.hasAttribute("highlight")&&t.item.getAttribute("highlight")===e.value},c=a.getLastMatchingPosition(s,{direction:"backward"}),u=a.getLastMatchingPosition(s),d=t.createRange(c,u);i&&e.value!==i?(t.setAttribute("highlight",i,d),t.setSelectionAttribute("highlight",i)):(t.removeAttribute("highlight",d),t.removeSelectionAttribute("highlight"))}else i&&t.setSelectionAttribute("highlight",i)}else{var f,h=l(o);try{for(h.s();!(f=h.n()).done;){var p=f.value;i?t.setAttribute("highlight",i,p):t.removeAttribute("highlight",p)}}catch(e){h.e(e)}finally{h.f()}}}))}}]),n}(Fl),Wf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("highlight",{options:[{model:"yellowMarker",class:"marker-yellow",title:"Yellow marker",color:"var(--ck-highlight-marker-yellow)",type:"marker"},{model:"greenMarker",class:"marker-green",title:"Green marker",color:"var(--ck-highlight-marker-green)",type:"marker"},{model:"pinkMarker",class:"marker-pink",title:"Pink marker",color:"var(--ck-highlight-marker-pink)",type:"marker"},{model:"blueMarker",class:"marker-blue",title:"Blue marker",color:"var(--ck-highlight-marker-blue)",type:"marker"},{model:"redPen",class:"pen-red",title:"Red pen",color:"var(--ck-highlight-pen-red)",type:"pen"},{model:"greenPen",class:"pen-green",title:"Green pen",color:"var(--ck-highlight-pen-green)",type:"pen"}]}),r}return m(n,null,[{key:"pluginName",get:function(){return"HighlightEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"highlight"});var t=e.config.get("highlight.options");e.conversion.attributeToElement(function(e){var t,n={model:{key:"highlight",values:[]},view:{}},r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.model.values.push(i.model),n.view[i.model]={name:"mark",classes:i.class}}}catch(e){r.e(e)}finally{r.f()}return n}(t)),e.commands.add("highlight",new qf(e))}}]),n}(Ll);n(54);var Yf=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("icon"),r.set("isEnabled",!0),r.set("isOn",!1),r.set("isToggleable",!1),r.set("isVisible",!0),r.set("keystroke"),r.set("label"),r.set("tabindex",-1),r.set("tooltip"),r.set("tooltipPosition","s"),r.set("type","button"),r.set("withText",!1),r.children=r.createCollection(),r.actionView=r._createActionView(),r.arrowView=r._createArrowView(),r.keystrokes=new mc,r.focusTracker=new Cc,r.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",i.if("isVisible","ck-hidden",(function(e){return!e})),r.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:r.children}),r}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(function(t,n){e.focusTracker.focusedElement===e.actionView.element&&(e.arrowView.focus(),n())})),this.keystrokes.set("arrowleft",(function(t,n){e.focusTracker.focusedElement===e.arrowView.element&&(e.actionView.focus(),n())}))}},{key:"focus",value:function(){this.actionView.focus()}},{key:"_createActionView",value:function(){var e=new kl;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}},{key:"_createArrowView",value:function(){var e=new kl,t=e.bindTemplate;return e.icon=wl,e.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":t.to("isOn",(function(e){return String(e)}))}}),e.bind("isEnabled").to(this),e.delegate("execute").to(this,"open"),e}}]),n}(Xc);n(56);var Kf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e,t=this.editor.config.get("highlight.options"),n=l(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._addHighlighterButton(r)}}catch(e){n.e(e)}finally{n.f()}this._addRemoveHighlightButton(),this._addDropdown(t)}},{key:"_addRemoveHighlightButton",value:function(){var e=this.editor.t;this._addButton("removeHighlight",e("Remove highlight"),Hd)}},{key:"_addHighlighterButton",value:function(e){var t=this.editor.commands.get("highlight");this._addButton("highlight:"+e.model,e.title,Gf(e.type),e.model,(function(n){n.bind("isEnabled").to(t,"isEnabled"),n.bind("isOn").to(t,"value",(function(t){return t===e.model})),n.iconView.fillColor=e.color,n.isToggleable=!0}))}},{key:"_addButton",value:function(e,t,n,r){var i=this,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},a=this.editor;a.ui.componentFactory.add(e,(function(e){var s=new kl(e),c=i.localizedOptionTitles[t]?i.localizedOptionTitles[t]:t;return s.set({label:c,icon:n,tooltip:!0}),s.on("execute",(function(){a.execute("highlight",{value:r}),a.editing.view.focus()})),o(s),s}))}},{key:"_addDropdown",value:function(e){var t=this,n=this.editor,r=n.t,i=n.ui.componentFactory,o=e[0],a=e.reduce((function(e,t){return e[t.model]=t,e}),{});i.add("highlight",(function(s){var c=n.commands.get("highlight"),l=El(s,Yf),u=l.buttonView;u.set({tooltip:r("Highlight"),lastExecuted:o.model,commandValue:o.model,isToggleable:!0}),u.bind("icon").to(c,"value",(function(e){return Gf(f(e,"type"))})),u.bind("color").to(c,"value",(function(e){return f(e,"color")})),u.bind("commandValue").to(c,"value",(function(e){return f(e,"model")})),u.bind("isOn").to(c,"value",(function(e){return!!e})),u.delegate("execute").to(l);var d=e.map((function(e){var n=i.create("highlight:"+e.model);return t.listenTo(n,"execute",(function(){return l.buttonView.set({lastExecuted:e.model})})),n}));function f(e,t){var n=e&&e!==u.lastExecuted?e:u.lastExecuted;return a[n][t]}return l.bind("isEnabled").toMany(d,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),d.push(new ll),d.push(i.create("removeHighlight")),Tl(l,d),function(e){e.buttonView.actionView.iconView.bind("fillColor").to(e.buttonView,"color")}(l),l.toolbarView.ariaLabel=r("Text highlight toolbar"),u.on("execute",(function(){n.execute("highlight",{value:u.commandValue}),n.editing.view.focus()})),l}))}},{key:"localizedOptionTitles",get:function(){var e=this.editor.t;return{"Yellow marker":e("Yellow marker"),"Green marker":e("Green marker"),"Pink marker":e("Pink marker"),"Blue marker":e("Blue marker"),"Red pen":e("Red pen"),"Green pen":e("Green pen")}}}],[{key:"pluginName",get:function(){return"HighlightUI"}}]),n}(Ll);function Gf(e){return"marker"===e?'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.798 1.59L3.002 12.875l1.895 1.852 2.521 1.402 6.997-12.194z"/><path d="M2.556 16.727l.234-.348c-.297-.151-.462-.293-.498-.426-.036-.137.002-.416.115-.837.094-.25.15-.449.169-.595a4.495 4.495 0 0 0 0-.725c-.209-.621-.303-1.041-.284-1.26.02-.218.178-.506.475-.862l6.77-9.414c.539-.91 1.605-.85 3.199.18 1.594 1.032 2.188 1.928 1.784 2.686l-5.877 10.36c-.158.412-.333.673-.526.782-.193.108-.604.179-1.232.21-.362.131-.608.237-.738.318-.13.081-.305.238-.526.47-.293.265-.504.397-.632.397-.096 0-.27-.075-.524-.226l-.31.41-1.6-1.12zm-.279.415l1.575 1.103-.392.515H1.19l1.087-1.618zm8.1-13.656l-4.953 6.9L8.75 12.57l4.247-7.574c.175-.25-.188-.647-1.092-1.192-.903-.546-1.412-.652-1.528-.32zM8.244 18.5L9.59 17h9.406v1.5H8.245z"/></svg>':'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.126 2.268L2.002 13.874l1.895 1.852 2.521 1.402L14.47 5.481l-1.543-2.568-2.801-.645z"/><path d="M4.5 18.088l-2.645-1.852-.04-2.95-.006-.005.006-.008v-.025l.011.008L8.73 2.97c.165-.233.356-.417.567-.557l-1.212.308L4.604 7.9l-.83-.558 3.694-5.495 2.708-.69 1.65 1.145.046.018.85-1.216 2.16 1.512-.856 1.222c.828.967 1.144 2.141.432 3.158L7.55 17.286l.006.005-3.055.797H4.5zm-.634.166l-1.976.516-.026-1.918 2.002 1.402zM9.968 3.817l-.006-.004-6.123 9.184 3.277 2.294 6.108-9.162.005.003c.317-.452-.16-1.332-1.064-1.966-.891-.624-1.865-.776-2.197-.349zM8.245 18.5L9.59 17h9.406v1.5H8.245z"/></svg>'}var Qf=function(){function e(){h(this,e),this._stack=[]}return m(e,[{key:"add",value:function(e,t){var n=this._stack,r=n[0];this._insertDescriptor(e);var i=n[0];r===i||Xf(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:t})}},{key:"remove",value:function(e,t){var n=this._stack,r=n[0];this._removeDescriptor(e);var i=n[0];r===i||Xf(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:t})}},{key:"_insertDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e.id}));if(!Xf(e,t[n])){n>-1&&t.splice(n,1);for(var r=0;t[r]&&Jf(t[r],e);)r++;t.splice(r,0,e)}}},{key:"_removeDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e}));n>-1&&t.splice(n,1)}}]),e}();function Xf(e,t){return e&&t&&e.priority==t.priority&&Zf(e.classes)==Zf(t.classes)}function Jf(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&Zf(e.classes)>Zf(t.classes)}function Zf(e){return Array.isArray(e)?e.sort().join(","):e}sn(Qf,Xt),n(58);var eh=il("px"),th=Pi.document.body,nh=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("top",0),r.set("left",0),r.set("position","arrow_nw"),r.set("isVisible",!1),r.set("withArrow",!0),r.set("class"),r.content=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",i.to("position",(function(e){return"ck-balloon-panel_"+e})),i.if("isVisible","ck-balloon-panel_visible"),i.if("withArrow","ck-balloon-panel_with-arrow"),i.to("class")],style:{top:i.to("top",eh),left:i.to("left",eh)}},children:r.content}),r}return m(n,[{key:"show",value:function(){this.isVisible=!0}},{key:"hide",value:function(){this.isVisible=!1}},{key:"attachTo",value:function(e){this.show();var t=n.defaultPositions,r=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast],limiter:th,fitInViewport:!0},e),i=n._getOptimalPosition(r),o=parseInt(i.left),a=parseInt(i.top),s=i.name;Object.assign(this,{top:a,left:o,position:s})}},{key:"pin",value:function(e){var t=this;this.unpin(),this._pinWhenIsVisibleCallback=function(){t.isVisible?t._startPinning(e):t._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}},{key:"unpin",value:function(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}},{key:"_startPinning",value:function(e){var t=this;this.attachTo(e);var n=rh(e.target),r=e.limiter?rh(e.limiter):th;this.listenTo(Pi.document,"scroll",(function(i,o){var a=o.target,s=n&&a.contains(n),c=r&&a.contains(r);!s&&!c&&n&&r||t.attachTo(e)}),{useCapture:!0}),this.listenTo(Pi.window,"resize",(function(){t.attachTo(e)}))}},{key:"_stopPinning",value:function(){this.stopListening(Pi.document,"scroll"),this.stopListening(Pi.window,"resize")}}]),n}(Xc);function rh(e){return zt(e)?e:Eo(e)?e.commonAncestorContainer:"function"==typeof e?rh(e()):null}function ih(e,t){return e.top-t.height-nh.arrowVerticalOffset}function oh(e){return e.bottom+nh.arrowVerticalOffset}nh.arrowHorizontalOffset=25,nh.arrowVerticalOffset=10,nh._getOptimalPosition=hl,nh.defaultPositions={northWestArrowSouthWest:function(e,t){return{top:ih(e,t),left:e.left-nh.arrowHorizontalOffset,name:"arrow_sw"}},northWestArrowSouthMiddleWest:function(e,t){return{top:ih(e,t),left:e.left-.25*t.width-nh.arrowHorizontalOffset,name:"arrow_smw"}},northWestArrowSouth:function(e,t){return{top:ih(e,t),left:e.left-t.width/2,name:"arrow_s"}},northWestArrowSouthMiddleEast:function(e,t){return{top:ih(e,t),left:e.left-.75*t.width+nh.arrowHorizontalOffset,name:"arrow_sme"}},northWestArrowSouthEast:function(e,t){return{top:ih(e,t),left:e.left-t.width+nh.arrowHorizontalOffset,name:"arrow_se"}},northArrowSouthWest:function(e,t){return{top:ih(e,t),left:e.left+e.width/2-nh.arrowHorizontalOffset,name:"arrow_sw"}},northArrowSouthMiddleWest:function(e,t){return{top:ih(e,t),left:e.left+e.width/2-.25*t.width-nh.arrowHorizontalOffset,name:"arrow_smw"}},northArrowSouth:function(e,t){return{top:ih(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s"}},northArrowSouthMiddleEast:function(e,t){return{top:ih(e,t),left:e.left+e.width/2-.75*t.width+nh.arrowHorizontalOffset,name:"arrow_sme"}},northArrowSouthEast:function(e,t){return{top:ih(e,t),left:e.left+e.width/2-t.width+nh.arrowHorizontalOffset,name:"arrow_se"}},northEastArrowSouthWest:function(e,t){return{top:ih(e,t),left:e.right-nh.arrowHorizontalOffset,name:"arrow_sw"}},northEastArrowSouthMiddleWest:function(e,t){return{top:ih(e,t),left:e.right-.25*t.width-nh.arrowHorizontalOffset,name:"arrow_smw"}},northEastArrowSouth:function(e,t){return{top:ih(e,t),left:e.right-t.width/2,name:"arrow_s"}},northEastArrowSouthMiddleEast:function(e,t){return{top:ih(e,t),left:e.right-.75*t.width+nh.arrowHorizontalOffset,name:"arrow_sme"}},northEastArrowSouthEast:function(e,t){return{top:ih(e,t),left:e.right-t.width+nh.arrowHorizontalOffset,name:"arrow_se"}},southWestArrowNorthWest:function(e,t){return{top:oh(e),left:e.left-nh.arrowHorizontalOffset,name:"arrow_nw"}},southWestArrowNorthMiddleWest:function(e,t){return{top:oh(e),left:e.left-.25*t.width-nh.arrowHorizontalOffset,name:"arrow_nmw"}},southWestArrowNorth:function(e,t){return{top:oh(e),left:e.left-t.width/2,name:"arrow_n"}},southWestArrowNorthMiddleEast:function(e,t){return{top:oh(e),left:e.left-.75*t.width+nh.arrowHorizontalOffset,name:"arrow_nme"}},southWestArrowNorthEast:function(e,t){return{top:oh(e),left:e.left-t.width+nh.arrowHorizontalOffset,name:"arrow_ne"}},southArrowNorthWest:function(e,t){return{top:oh(e),left:e.left+e.width/2-nh.arrowHorizontalOffset,name:"arrow_nw"}},southArrowNorthMiddleWest:function(e,t){return{top:oh(e),left:e.left+e.width/2-.25*t.width-nh.arrowHorizontalOffset,name:"arrow_nmw"}},southArrowNorth:function(e,t){return{top:oh(e),left:e.left+e.width/2-t.width/2,name:"arrow_n"}},southArrowNorthMiddleEast:function(e,t){return{top:oh(e),left:e.left+e.width/2-.75*t.width+nh.arrowHorizontalOffset,name:"arrow_nme"}},southArrowNorthEast:function(e,t){return{top:oh(e),left:e.left+e.width/2-t.width+nh.arrowHorizontalOffset,name:"arrow_ne"}},southEastArrowNorthWest:function(e,t){return{top:oh(e),left:e.right-nh.arrowHorizontalOffset,name:"arrow_nw"}},southEastArrowNorthMiddleWest:function(e,t){return{top:oh(e),left:e.right-.25*t.width-nh.arrowHorizontalOffset,name:"arrow_nmw"}},southEastArrowNorth:function(e,t){return{top:oh(e),left:e.right-t.width/2,name:"arrow_n"}},southEastArrowNorthMiddleEast:function(e,t){return{top:oh(e),left:e.right-.75*t.width+nh.arrowHorizontalOffset,name:"arrow_nme"}},southEastArrowNorthEast:function(e,t){return{top:oh(e),left:e.right-t.width+nh.arrowHorizontalOffset,name:"arrow_ne"}}};var ah='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',sh="widget-type-around";function ch(e,t,n){return e&&dh(e)&&!n.isInline(t)}function lh(e){return e.getAttribute(sh)}var uh="ck-widget_selected";function dh(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function fh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.is("containerElement"))throw new Kt.a("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=bh,n.label&&function(e,t,n){n.setCustomProperty("widgetLabel",t,e)}(e,n.label,t),n.hasSelectionHandle&&function(e,t){var n=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){var t=this.toDomElement(e),n=new bl;return n.set("content",ah),n.render(),t.appendChild(n.element),t}));t.insert(t.createPositionAt(e,0),n),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),hh(e,t,(function(e,t,n){return n.addClass(r(t.classes),e)}),(function(e,t,n){return n.removeClass(r(t.classes),e)})),e;function r(e){return Array.isArray(e)?e:[e]}}function hh(e,t,n,r){var i=new Qf;i.on("change:top",(function(t,i){i.oldDescriptor&&r(e,i.oldDescriptor,i.writer),i.newDescriptor&&n(e,i.newDescriptor,i.writer)})),t.setCustomProperty("addHighlight",(function(e,t,n){return i.add(t,n)}),e),t.setCustomProperty("removeHighlight",(function(e,t,n){return i.remove(t,n)}),e)}function ph(e){var t=e.getCustomProperty("widgetLabel");return t?"function"==typeof t?t():t:""}function mh(e,t){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(function(n,r,i){t.setAttribute("contenteditable",i?"false":"true",e)})),e.on("change:isFocused",(function(n,r,i){i?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),e}function vh(e,t){var n=e.getSelectedElement();if(n){var r=lh(e);if(r)return t.createPositionAt(n,r);if(t.schema.isBlock(n))return t.createPositionAfter(n)}var i=e.getSelectedBlocks().next().value;if(i){if(i.isEmpty)return t.createPositionAt(i,0);var o=t.createPositionAfter(i);return e.focus.isTouching(o)?o:t.createPositionBefore(i)}return e.focus}function gh(e,t){var n=new Oo(Pi.window),r=n.getIntersection(e),i=t.height+nh.arrowVerticalOffset;if(e.top-i>n.top||e.bottom+i<n.bottom)return null;var o=r||e,a=o.left+o.width/2-t.width/2;return{top:Math.max(e.top,0)+nh.arrowVerticalOffset,left:a,name:"arrow_n"}}function bh(){return null}var yh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){this.isEnabled=function(e){var t=e.schema,n=e.document.selection;return function(e,t,n){var r=function(e,t){var n=vh(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(r,"horizontalLine")}(n,t,e)&&!function(e,t){var n=e.getSelectedElement();return n&&t.isObject(n)}(n,t)}(this.editor.model)}},{key:"execute",value:function(){var e=this.editor.model;e.change((function(t){var n=t.createElement("horizontalLine");e.insertContent(n);var r=n.nextSibling;!(r&&e.schema.checkChild(r,"$text"))&&e.schema.checkChild(n.parent,"paragraph")&&(r=t.createElement("paragraph"),e.insertContent(r,t.createPositionAfter(n))),r&&t.setSelection(r,0)}))}}]),n}(Fl);n(60);var kh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,r=e.conversion;t.register("horizontalLine",{isObject:!0,allowWhere:"$block"}),r.for("dataDowncast").elementToElement({model:"horizontalLine",view:function(e,t){return t.writer.createEmptyElement("hr")}}),r.for("editingDowncast").elementToElement({model:"horizontalLine",view:function(e,t){var r=t.writer,i=n("Horizontal line"),o=r.createContainerElement("div"),a=r.createEmptyElement("hr");return r.addClass("ck-horizontal-line",o),r.setCustomProperty("hr",!0,o),r.insert(r.createPositionAt(o,0),a),function(e,t,n){return t.setCustomProperty("horizontalLine",!0,e),fh(e,t,{label:n})}(o,r,i)}}),r.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),e.commands.add("horizontalLine",new yh(e))}}],[{key:"pluginName",get:function(){return"HorizontalLineEditing"}}]),n}(Ll),wh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("horizontalLine",(function(r){var i=t.commands.get("horizontalLine"),o=new kl(r);return o.set({label:n("Horizontal line"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),e.listenTo(o,"execute",(function(){t.execute("horizontalLine"),t.editing.view.focus()})),o}))}}]),n}(Ll),_h=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"observe",value:function(e){var t=this;this.listenTo(e,"load",(function(e,n){var r=n.target;t.checkShouldIgnoreEventFromTarget(r)||"IMG"==r.tagName&&t._fireEvents(n)}),{useCapture:!0})}},{key:"_fireEvents",value:function(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}]),n}(Ui);function Ch(e){return!!e.getCustomProperty("image")&&dh(e)}function Ah(e){var t=e.getSelectedElement();return t&&Ch(t)?t:null}function xh(e){return!!e&&e.is("element","image")}function Sh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.createElement("image",n),i=vh(t.document.selection,t);t.insertContent(r,i),r.parent&&e.setSelection(r,"on")}function Mh(e){var t=e.schema,n=e.document.selection;return function(e,t,n){var r=function(e,t){var n=vh(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(r,"image")}(n,t,e)&&!function(e,t){var n=e.getSelectedElement();return n&&t.isObject(n)}(n,t)&&function(e){return u(e.focus.getAncestors()).every((function(e){return!e.is("element","image")}))}(n)}function Eh(e){var t,n=[],r=l(e.getChildren());try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i),i.is("element")&&n.push.apply(n,u(i.getChildren()))}}catch(e){r.e(e)}finally{r.f()}return n.find((function(e){return e.is("element","img")}))}function Th(e){return function(n){n.on("attribute:".concat(e,":image"),t)};function t(e,t,n){if(n.consumable.consume(t.item,e.name)){var r=n.writer,i=Eh(n.mapper.toViewElement(t.item));r.setAttribute(t.attributeKey,t.attributeNewValue||"",i)}}}var Dh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){this.isEnabled=Mh(this.editor.model)}},{key:"execute",value:function(e){var t=this.editor.model;t.change((function(n){var r,i=l(Array.isArray(e.source)?e.source:[e.source]);try{for(i.s();!(r=i.n()).done;){var o=r.value;Sh(n,t,{src:o})}}catch(e){i.e(e)}finally{i.f()}}))}}]),n}(Fl),Oh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,r=e.conversion;e.editing.view.addObserver(_h),t.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),r.for("dataDowncast").elementToElement({model:"image",view:function(e,t){return Ph(t.writer)}}),r.for("editingDowncast").elementToElement({model:"image",view:function(e,t){var r=t.writer;return function(e,t,n){return t.setCustomProperty("image",!0,e),fh(e,t,{label:function(){var t=Eh(e).getAttribute("alt");return t?"".concat(t," ").concat(n):n}})}(Ph(r),r,n("image widget"))}}),r.for("downcast").add(Th("src")).add(Th("alt")).add(function(){return function(t){t.on("attribute:srcset:image",e)};function e(e,t,n){if(n.consumable.consume(t.item,e.name)){var r=n.writer,i=Eh(n.mapper.toViewElement(t.item));if(null===t.attributeNewValue){var o=t.attributeOldValue;o.data&&(r.removeAttribute("srcset",i),r.removeAttribute("sizes",i),o.width&&r.removeAttribute("width",i))}else{var a=t.attributeNewValue;a.data&&(r.setAttribute("srcset",a.data,i),r.setAttribute("sizes","100vw",i),a.width&&r.setAttribute("width",a.width,i))}}}}()),r.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:function(e,t){return t.writer.createElement("image",{src:e.getAttribute("src")})}}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:function(e){var t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}}).add(function(){return function(t){t.on("element:figure",e)};function e(e,t,n){if(n.consumable.test(t.viewItem,{name:!0,classes:"image"})){var r=Eh(t.viewItem);if(r&&r.hasAttribute("src")&&n.consumable.test(r,{name:!0})){var i=Vl(n.convertItem(r,t.modelCursor).modelRange.getItems());i&&(n.convertChildren(t.viewItem,i),n.updateConversionResult(i,t))}}}}()),e.commands.add("imageInsert",new Dh(e))}}],[{key:"pluginName",get:function(){return"ImageEditing"}}]),n}(Ll);function Ph(e){var t=e.createEmptyElement("img"),n=e.createContainerElement("figure",{class:"image"});return e.insert(e.createPositionAt(n,0),t),n}var Ih=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType="mousedown",r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo);n(62);var jh=["before","after"],Nh=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038M1 4.178l2 2.038"/></svg>',"image/svg+xml").firstChild,Rh="ck-widget__type-around_disabled",Lh=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._currentFakeCaretModelElement=null,r}return m(n,null,[{key:"pluginName",get:function(){return"WidgetTypeAround"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view;this.on("change:isEnabled",(function(n,r,i){t.change((function(e){var n,r=l(t.document.roots);try{for(r.s();!(n=r.n()).done;){var o=n.value;i?e.removeClass(Rh,o):e.addClass(Rh,o)}}catch(e){r.e(e)}finally{r.f()}})),i||e.model.change((function(e){e.removeSelectionAttribute(sh)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration()}},{key:"destroy",value:function(){this._currentFakeCaretModelElement=null}},{key:"_insertParagraph",value:function(e,t){var n=this.editor,r=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(e,t)}),r.focus(),r.scrollToTheSelection()}},{key:"_listenToIfEnabled",value:function(e,t,n,r){var i=this;this.listenTo(e,t,(function(){i.isEnabled&&n.apply(void 0,arguments)}),r)}},{key:"_insertParagraphAccordingToFakeCaretPosition",value:function(){var e=this.editor.model.document.selection,t=lh(e);if(!t)return!1;var n=e.getSelectedElement();return this._insertParagraph(n,t),!0}},{key:"_enableTypeAroundUIInjection",value:function(){var e=this.editor,t=e.model.schema,n=e.locale.t,r={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(function(e,n,i){var o=i.mapper.toViewElement(n.item);ch(o,n.item,t)&&function(e,t,n){var r=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){var n=this.toDomElement(e);return function(e,t){var n,r=l(jh);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=new Pc({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+i],title:t[i]},children:[e.ownerDocument.importNode(Nh,!0)]});e.appendChild(o.render())}}catch(e){r.e(e)}finally{r.f()}}(n,t),function(e){var t=new Pc({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(n),n}));e.insert(e.createPositionAt(n,"end"),r)}(i.writer,r,o)}),{priority:"low"})}},{key:"_enableTypeAroundFakeCaretActivationUsingKeyboardArrows",value:function(){var e=this,t=this.editor,n=t.model,r=n.document.selection,i=n.schema,o=t.editing.view;function a(e){return"ck-widget_type-around_show-fake-caret_"+e}this._listenToIfEnabled(o.document,"keydown",(function(t,n){Kr(n.keyCode)&&e._handleArrowKeyPress(t,n)}),{priority:Yt.get("high")+10}),this._listenToIfEnabled(r,"change:range",(function(e,n){n.directChange&&t.model.change((function(e){e.removeSelectionAttribute(sh)}))})),this._listenToIfEnabled(n.document,"change:data",(function(){var e=r.getSelectedElement();e&&ch(t.editing.mapper.toViewElement(e),e,i)||t.model.change((function(e){e.removeSelectionAttribute(sh)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(function(t,n,r){var o=r.writer;if(e._currentFakeCaretModelElement){var s=r.mapper.toViewElement(e._currentFakeCaretModelElement);s&&(o.removeClass(jh.map(a),s),e._currentFakeCaretModelElement=null)}var c=n.selection.getSelectedElement();if(c){var l=r.mapper.toViewElement(c);if(ch(l,c,i)){var u=lh(n.selection);u&&(o.addClass(a(u),l),e._currentFakeCaretModelElement=c)}}})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(function(e,n,r){r||t.model.change((function(e){e.removeSelectionAttribute(sh)}))}))}},{key:"_handleArrowKeyPress",value:function(e,t){var n,r=this.editor,i=r.model,o=i.document.selection,a=i.schema,s=r.editing.view,c=Qr(t.keyCode,r.locale.contentLanguageDirection),l=s.document.selection.getSelectedElement();ch(l,r.editing.mapper.toModelElement(l),a)?n=this._handleArrowKeyPressOnSelectedWidget(c):o.isCollapsed&&(n=this._handleArrowKeyPressWhenSelectionNextToAWidget(c)),n&&(t.preventDefault(),e.stop())}},{key:"_handleArrowKeyPressOnSelectedWidget",value:function(e){var t=this.editor.model,n=lh(t.document.selection);return t.change((function(t){return n?n!==(e?"after":"before")&&(t.removeSelectionAttribute(sh),!0):(t.setSelectionAttribute(sh,e?"after":"before"),!0)}))}},{key:"_handleArrowKeyPressWhenSelectionNextToAWidget",value:function(e){var t=this.editor,n=t.model,r=n.schema,i=t.plugins.get("Widget"),o=i._getObjectElementNextToSelection(e);return!!ch(t.editing.mapper.toViewElement(o),o,r)&&(n.change((function(t){i._setSelectionOverElement(o),t.setSelectionAttribute(sh,e?"before":"after")})),!0)}},{key:"_enableInsertingParagraphsOnButtonClick",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"mousedown",(function(r,i){var o=i.domTarget.closest(".ck-widget__type-around__button");if(o){var a=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(o),s=function(e,t){var n=e.closest(".ck-widget");return t.mapDomToView(n)}(o,n.domConverter),c=t.editing.mapper.toModelElement(s);e._insertParagraph(c,a),i.preventDefault(),r.stop()}}))}},{key:"_enableInsertingParagraphsOnEnterKeypress",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",(function(r,i){var o,a=n.document.selection.getSelectedElement(),s=t.editing.mapper.toModelElement(a),c=t.model.schema;e._insertParagraphAccordingToFakeCaretPosition()?o=!0:ch(a,s,c)&&(e._insertParagraph(s,i.isSoft?"before":"after"),o=!0),o&&(i.preventDefault(),r.stop())}))}},{key:"_enableInsertingParagraphsOnTypingKeystroke",value:function(){var e=this,t=this.editor.editing.view,n=[Ur.enter,Ur.delete,Ur.backspace];this._listenToIfEnabled(t.document,"keydown",(function(t,r){n.includes(r.keyCode)||sd(r)||e._insertParagraphAccordingToFakeCaretPosition()}),{priority:Yt.get("high")+1})}},{key:"_enableDeleteIntegration",value:function(){var e=this.editor,t=e.editing.view,n=e.model,r=n.schema;this._listenToIfEnabled(t.document,"delete",(function(t,i){var o=lh(n.document.selection);if(o){var a=i.direction,s=n.document.selection.getSelectedElement(),c="forward"==a;if("before"===o===c)e.execute("delete",{selection:n.createSelection(s,"on")});else{var u=r.getNearestSelectionRange(n.createPositionAt(s,o),a);if(u)if(u.isCollapsed){var d=n.createSelection(u.start);if(n.modifySelection(d,{direction:a}),d.focus.isEqual(u.start)){var f=function(e,t){var n,r=t,i=l(t.getAncestors({parentFirst:!0}));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.childCount>1||e.isLimit(o))break;r=o}}catch(e){i.e(e)}finally{i.f()}return r}(r,u.start.parent);n.deleteContent(n.createSelection(f,"on"),{doNotAutoparagraph:!0})}else n.change((function(t){t.setSelection(u),e.execute(c?"forwardDelete":"delete")}))}else n.change((function(t){t.setSelection(u),e.execute(c?"forwardDelete":"delete")}))}i.preventDefault(),t.stop()}}),{priority:Yt.get("high")+1})}},{key:"_enableInsertContentIntegration",value:function(){var e=this.editor,t=this.editor.model,n=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(function(e,r){var i=c(r,2),o=i[0],a=i[1];if(!a||a.is("documentSelection")){var s=lh(n);return s?(e.stop(),t.change((function(e){var r=n.getSelectedElement(),i=t.createPositionAt(r,s),a=e.createSelection(i),c=t.insertContent(o,a);return e.setSelection(a),c}))):void 0}}),{priority:"high"})}}]),n}(Ll);function Bh(e,t,n){var r,i=e.schema,o="forward"==n?"elementStart":"elementEnd",a=l(e.createRangeIn(t.root).getWalker({startPosition:t,direction:n}));try{for(a.s();!(r=a.n()).done;){var s=r.value,c=s.previousPosition,u=s.item,d=s.type;if(i.isLimit(u)&&!i.isInline(u))return c;if(d==o&&i.isBlock(u))return null}}catch(e){a.e(e)}finally{a.f()}return null}function Fh(e,t,n){var r="backward"==n?t.end:t.start;if(e.checkChild(r,"$text"))return r;var i,o=l(t.getWalker({direction:n}));try{for(o.s();!(i=o.n()).done;){var a=i.value.nextPosition;if(e.checkChild(a,"$text"))return a}}catch(e){o.e(e)}finally{o.f()}}n(64);var zh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.editing.view,n=t.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(function(t,n,r){e._clearPreviouslySelectedWidgets(r.writer);var i,o=r.writer,a=o.document.selection,s=a.getSelectedElement(),c=null,u=l(a.getRanges());try{for(u.s();!(i=u.n()).done;){var d,f=l(i.value);try{for(f.s();!(d=f.n()).done;){var h=d.value.item;dh(h)&&!Vh(h,c)&&(o.addClass(uh,h),e._previouslySelected.add(h),c=h,h==s&&o.setSelection(a.getRanges(),{fake:!0,label:ph(s)}))}}catch(e){f.e(e)}finally{f.f()}}}catch(e){u.e(e)}finally{u.f()}}),{priority:"low"}),t.addObserver(Ih),this.listenTo(n,"mousedown",(function(){return e._onMousedown.apply(e,arguments)})),this.listenTo(n,"keydown",(function(){e._handleSelectionChangeOnArrowKeyPress.apply(e,arguments)}),{priority:"high"}),this.listenTo(n,"keydown",(function(){e._preventDefaultOnArrowKeyPress.apply(e,arguments)}),{priority:Yt.get("high")-20}),this.listenTo(n,"keydown",function(e){var t=e.model;return function(n,r){var i=r.keyCode==Ur.arrowup,o=r.keyCode==Ur.arrowdown,a=r.shiftKey,s=t.document.selection;if(i||o){var c=o;if(!a||!function(e,t){return!e.isCollapsed&&e.isBackward==t}(s,c)){var u=function(e,t,n){var r=e.model;if(n){var i=t.isCollapsed?t.focus:t.getLastPosition(),o=Bh(r,i,"forward");if(!o)return null;var a=r.createRange(i,o),s=Fh(r.schema,a,"backward");return s&&i.isBefore(s)?r.createRange(i,s):null}var c=t.isCollapsed?t.focus:t.getFirstPosition(),l=Bh(r,c,"backward");if(!l)return null;var u=r.createRange(l,c),d=Fh(r.schema,u,"forward");return d&&c.isAfter(d)?r.createRange(d,c):null}(e,s,c);u&&!u.isCollapsed&&function(e,t,n){var r=e.model,i=e.view.domConverter;if(n){var o=r.createSelection(t.start);r.modifySelection(o),o.focus.isAtEnd||t.start.isEqual(o.focus)||(t=r.createRange(o.focus,t.end))}var a,s,c=e.mapper.toViewRange(t),u=i.viewRangeToDom(c),d=l(Oo.getDomRangeRects(u));try{for(d.s();!(s=d.n()).done;){var f=s.value;if(void 0!==a){if(Math.round(f.top)>=a)return!1;a=Math.max(a,Math.round(f.bottom))}else a=Math.round(f.bottom)}}catch(e){d.e(e)}finally{d.f()}return!0}(e,u,c)&&(t.change((function(e){var n=c?u.end:u.start;if(a){var r=t.createSelection(s.anchor);r.setFocus(n),e.setSelection(r)}else e.setSelection(n)})),n.stop(),r.preventDefault(),r.stopPropagation())}}}}(this.editor.editing)),this.listenTo(n,"delete",(function(t,n){e._handleDelete("forward"==n.direction)&&(n.preventDefault(),t.stop())}),{priority:"high"})}},{key:"_onMousedown",value:function(e,t){var n=this.editor,r=n.editing.view,i=r.document,o=t.target;if(function(e){for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(dh(e))return!1;e=e.parent}return!1}(o)){if((zr||Fr)&&t.domEvent.detail>=3){var a=n.editing.mapper,s=o.is("attributeElement")?o.findAncestor((function(e){return!e.is("attributeElement")})):o,c=a.toModelElement(s);t.preventDefault(),this.editor.model.change((function(e){e.setSelection(c,"in")}))}}else if(dh(o)||(o=o.findAncestor(dh))){t.preventDefault(),i.isFocused||r.focus();var l=n.editing.mapper.toModelElement(o);this._setSelectionOverElement(l)}}},{key:"_handleSelectionChangeOnArrowKeyPress",value:function(e,t){var n=t.keyCode;if(Kr(n)){var r=this.editor.model,i=r.schema,o=r.document.selection,a=o.getSelectedElement(),s=Qr(n,this.editor.locale.contentLanguageDirection);if(a&&i.isObject(a)){var c=s?o.getLastPosition():o.getFirstPosition(),l=i.getNearestSelectionRange(c,s?"forward":"backward");l&&(r.change((function(e){e.setSelection(l)})),t.preventDefault(),e.stop())}else if(o.isCollapsed){var u=this._getObjectElementNextToSelection(s);u&&i.isObject(u)&&(this._setSelectionOverElement(u),t.preventDefault(),e.stop())}}}},{key:"_preventDefaultOnArrowKeyPress",value:function(e,t){if(Kr(t.keyCode)){var n=this.editor.model,r=n.schema,i=n.document.selection.getSelectedElement();i&&r.isObject(i)&&(t.preventDefault(),e.stop())}}},{key:"_handleDelete",value:function(e){var t=this;if(!this.editor.isReadOnly){var n=this.editor.model.document.selection;if(n.isCollapsed){var r=this._getObjectElementNextToSelection(e);return r?(this.editor.model.change((function(e){for(var i=n.anchor.parent;i.isEmpty;){var o=i;i=o.parent,e.remove(o)}t._setSelectionOverElement(r)})),!0):void 0}}}},{key:"_setSelectionOverElement",value:function(e){this.editor.model.change((function(t){t.setSelection(t.createRangeOn(e))}))}},{key:"_getObjectElementNextToSelection",value:function(e){var t=this.editor.model,n=t.schema,r=t.document.selection,i=t.createSelection(r);t.modifySelection(i,{direction:e?"forward":"backward"});var o=e?i.focus.nodeBefore:i.focus.nodeAfter;return o&&n.isObject(o)?o:null}},{key:"_clearPreviouslySelectedWidgets",value:function(e){var t,n=l(this._previouslySelected);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.removeClass(uh,r)}}catch(e){n.e(e)}finally{n.f()}this._previouslySelected.clear()}}],[{key:"pluginName",get:function(){return"Widget"}},{key:"requires",get:function(){return[Lh]}}]),n}(Ll);function Vh(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}var $h=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=xh(e),xh(e)&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection.getSelectedElement();t.change((function(t){t.setAttribute("alt",e.newValue,n)}))}}]),n}(Fl),Hh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.editor.commands.add("imageTextAlternative",new $h(this.editor))}}],[{key:"pluginName",get:function(){return"ImageTextAlternativeEditing"}}]),n}(Ll);n(66);var Uh=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n),i=t.call(this,e);var o="ck-labeled-field-view-"+Wt(),a="ck-labeled-field-view-status-"+Wt();i.fieldView=r(y(i),o,a),i.set("label"),i.set("isEnabled",!0),i.set("errorText",null),i.set("infoText",null),i.set("class"),i.labelView=i._createLabelView(o),i.statusView=i._createStatusView(a),i.bind("_statusText").to(y(i),"errorText",y(i),"infoText",(function(e,t){return e||t}));var s=i.bindTemplate;return i.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",s.to("class"),s.if("isEnabled","ck-disabled",(function(e){return!e}))]},children:[i.labelView,i.fieldView,i.statusView]}),i}return m(n,[{key:"_createLabelView",value:function(e){var t=new tl(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}},{key:"_createStatusView",value:function(e){var t=new Xc(this.locale),n=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(function(e){return!e}))],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}},{key:"focus",value:function(){this.fieldView.focus()}}]),n}(Xc);n(68);var qh=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).set("value"),r.set("id"),r.set("placeholder"),r.set("isReadOnly",!1),r.set("hasError",!1),r.set("ariaDescribedById");var i=r.bindTemplate;return r.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",i.if("hasError","ck-error")],id:i.to("id"),placeholder:i.to("placeholder"),readonly:i.to("isReadOnly"),"aria-invalid":i.if("hasError",!0),"aria-describedby":i.to("ariaDescribedById")},on:{input:i.to("input")}}),r}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this);var t=function(t){e.element.value=t||0===t?t:""};t(this.value),this.on("change:value",(function(e,n,r){t(r)}))}},{key:"select",value:function(){this.element.select()}},{key:"focus",value:function(){this.element.focus()}}]),n}(Xc);function Wh(e,t,n){var r=new qh(e.locale);return r.set({id:t,ariaDescribedById:n}),r.bind("isReadOnly").to(e,"isEnabled",(function(e){return!e})),r.bind("hasError").to(e,"errorText",(function(e){return!!e})),r.on("input",(function(){e.errorText=null})),r}function Yh(e){var t=e.view;t.listenTo(t.element,"submit",(function(e,n){n.preventDefault(),t.fire("submit")}),{useCapture:!0})}var Kh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',Gh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.591 10.177l4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>';n(70),n(8);var Qh=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).locale.t;return r.focusTracker=new Cc,r.keystrokes=new mc,r.labeledInput=r._createLabeledInputView(),r.saveButtonView=r._createButton(i("Save"),Kh,"ck-button-save"),r.saveButtonView.type="submit",r.cancelButtonView=r._createButton(i("Cancel"),Gh,"ck-button-cancel","cancel"),r._focusables=new Oc,r._focusCycler=new sl({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[r.labeledInput,r.saveButtonView,r.cancelButtonView]}),r}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),this.keystrokes.listenTo(this.element),Yh({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)}))}},{key:"_createButton",value:function(e,t,n,r){var i=new kl(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"_createLabeledInputView",value:function(){var e=this.locale.t,t=new Uh(this.locale,Wh);return t.label=e("Text alternative"),t.fieldView.placeholder=e("Text alternative"),t}}]),n}(Xc);n(73),n(75);var Xh=il("px"),Jh=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).positionLimiter=function(){var e=r.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},r.set("visibleView",null),r.view=new nh(e.locale),e.ui.view.body.add(r.view),e.ui.focusTracker.add(r.view.element),r._viewToStack=new Map,r._idToStack=new Map,r.set("_numberOfStacks",0),r.set("_singleViewMode",!1),r._rotatorView=r._createRotatorView(),r._fakePanelsView=r._createFakePanelsView(),r}return m(n,null,[{key:"pluginName",get:function(){return"ContextualBalloon"}}]),m(n,[{key:"hasView",value:function(e){return Array.from(this._viewToStack.keys()).includes(e)}},{key:"add",value:function(e){if(this.hasView(e.view))throw new Kt.a("contextualballoon-add-view-exist",[this,e]);var t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));var n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}},{key:"remove",value:function(e){if(!this.hasView(e))throw new Kt.a("contextualballoon-remove-view-not-exist",[this,e]);var t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}},{key:"updatePosition",value:function(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}},{key:"showStack",value:function(e){this.visibleStack=e;var t=this._idToStack.get(e);if(!t)throw new Kt.a("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}},{key:"_getStackId",value:function(e){return Array.from(this._idToStack.entries()).find((function(t){return t[1]===e}))[0]}},{key:"_showNextStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}},{key:"_showPrevStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}},{key:"_createRotatorView",value:function(){var e=this,t=new Zh(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>1})),t.on("change:isNavigationVisible",(function(){return e.updatePosition()}),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(function(t,r){if(r<2)return"";var i=Array.from(e._idToStack.values()).indexOf(e._visibleStack)+1;return n("%0 of %1",[i,r])})),t.buttonNextView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showNextStack()})),t.buttonPrevView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showPrevStack()})),t}},{key:"_createFakePanelsView",value:function(){var e=new ep(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>=2?Math.min(e-1,2):0})),e.listenTo(this.view,"change:top",(function(){return e.updatePosition()})),e.listenTo(this.view,"change:left",(function(){return e.updatePosition()})),this.editor.ui.view.body.add(e),e}},{key:"_showView",value:function(e){var t=e.view,n=e.balloonClassName,r=void 0===n?"":n,i=e.withArrow,o=void 0===i||i,a=e.singleViewMode,s=void 0!==a&&a;this.view.class=r,this.view.withArrow=o,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}},{key:"_getBalloonPosition",value:function(){var e=Array.from(this._visibleStack.values()).pop().position;return e&&!e.limiter&&(e=Object.assign({},e,{limiter:this.positionLimiter})),e}},{key:"_visibleStack",get:function(){return this._viewToStack.get(this.visibleView)}}]),n}(Ll),Zh=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),r=t.call(this,e);var i=e.t,o=r.bindTemplate;return r.set("isNavigationVisible",!0),r.focusTracker=new Cc,r.buttonPrevView=r._createButtonView(i("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),r.buttonNextView=r._createButtonView(i("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),r.content=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",o.to("isNavigationVisible",(function(e){return e?"":"ck-hidden"}))]},children:[r.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.to("counter")}]},r.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:r.content}]}),r}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.focusTracker.add(this.element)}},{key:"showView",value:function(e){this.hideView(),this.content.add(e)}},{key:"hideView",value:function(){this.content.clear()}},{key:"_createButtonView",value:function(e,t){var n=new kl(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}]),n}(Xc),ep=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n);var o=(i=t.call(this,e)).bindTemplate;return i.set("top",0),i.set("left",0),i.set("height",0),i.set("width",0),i.set("numberOfPanels",0),i.content=i.createCollection(),i._balloonPanelView=r,i.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",(function(e){return e?"":"ck-hidden"}))],style:{top:o.to("top",Xh),left:o.to("left",Xh),width:o.to("width",Xh),height:o.to("height",Xh)}},children:i.content}),i.on("change:numberOfPanels",(function(e,t,n,r){n>r?i._addPanels(n-r):i._removePanels(r-n),i.updatePosition()})),i}return m(n,[{key:"_addPanels",value:function(e){for(;e--;){var t=new Xc;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}},{key:"_removePanels",value:function(e){for(;e--;){var t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}},{key:"updatePosition",value:function(){if(this.numberOfPanels){var e=this._balloonPanelView,t=e.top,n=e.left,r=new Oo(this._balloonPanelView.element),i=r.width,o=r.height;Object.assign(this,{top:t,left:n,width:i,height:o})}}}]),n}(Xc);function tp(e){var t=e.editing.view,n=nh.defaultPositions;return{target:t.domConverter.viewToDom(t.document.selection.getSelectedElement()),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}var np=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this._createButton(),this._createForm()}},{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this),this._form.destroy()}},{key:"_createButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("imageTextAlternative",(function(r){var i=t.commands.get("imageTextAlternative"),o=new kl(r);return o.set({label:n("Change image text alternative"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22L2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21l-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),e.listenTo(o,"execute",(function(){e._showForm()})),o}))}},{key:"_createForm",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new Qh(t.locale),this._form.render(),this.listenTo(this._form,"submit",(function(){t.execute("imageTextAlternative",{newValue:e._form.labeledInput.fieldView.element.value}),e._hideForm(!0)})),this.listenTo(this._form,"cancel",(function(){e._hideForm(!0)})),this._form.keystrokes.set("Esc",(function(t,n){e._hideForm(!0),n()})),this.listenTo(t.ui,"update",(function(){Ah(n.selection)?e._isVisible&&function(e){var t=e.plugins.get("ContextualBalloon");if(Ah(e.editing.view.document.selection)){var n=tp(e);t.updatePosition(n)}}(t):e._hideForm(!0)})),Ml({emitter:this._form,activator:function(){return e._isVisible},contextElements:[this._balloon.view.element],callback:function(){return e._hideForm()}})}},{key:"_showForm",value:function(){if(!this._isVisible){var e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._isInBalloon||this._balloon.add({view:this._form,position:tp(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select()}}},{key:"_hideForm",value:function(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}},{key:"_isVisible",get:function(){return this._balloon.visibleView===this._form}},{key:"_isInBalloon",get:function(){return this._balloon.hasView(this._form)}}],[{key:"requires",get:function(){return[Jh]}},{key:"pluginName",get:function(){return"ImageTextAlternativeUI"}}]),n}(Ll),rp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Hh,np]}},{key:"pluginName",get:function(){return"ImageTextAlternative"}}]),n}(Ll);n(77);var ip=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Oh,zh,rp]}},{key:"pluginName",get:function(){return"Image"}}]),n}(Ll);function op(e){var t,n=l(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r&&r.is("element","caption"))return r}}catch(e){n.e(e)}finally{n.f()}return null}function ap(e){var t=e.parent;return"figcaption"==e.name&&t&&"figure"==t.name&&t.hasClass("image")?{name:!0}:null}var sp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view,r=t.model.schema,i=t.data,o=t.editing,a=t.t;r.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),t.model.document.registerPostFixer((function(t){return e._insertMissingModelCaptionElement(t)})),t.conversion.for("upcast").elementToElement({view:ap,model:"caption"}),i.downcastDispatcher.on("insert:caption",cp((function(e){return e.createContainerElement("figcaption")}),!1));var s=function(e,t){return function(n){var r=n.createEditableElement("figcaption");return n.setCustomProperty("imageCaption",!0,r),Sc({view:e,element:r,text:t}),mh(r,n)}}(n,a("Enter image caption"));o.downcastDispatcher.on("insert:caption",cp(s)),o.downcastDispatcher.on("insert",this._fixCaptionVisibility((function(e){return e.item})),{priority:"high"}),o.downcastDispatcher.on("remove",this._fixCaptionVisibility((function(e){return e.position.parent})),{priority:"high"}),n.document.registerPostFixer((function(t){return e._updateCaptionVisibility(t)}))}},{key:"_updateCaptionVisibility",value:function(e){var t,n=this.editor.editing.mapper,r=this._lastSelectedCaption,i=this.editor.model.document.selection,o=i.getSelectedElement();if(o&&o.is("element","image")){var a=op(o);t=n.toViewElement(a)}var s=lp(i.getFirstPosition().parent);if(s&&(t=n.toViewElement(s)),t)return r?(r===t||(up(r,e),this._lastSelectedCaption=t),dp(t,e)):(this._lastSelectedCaption=t,dp(t,e));if(r){var c=up(r,e);return this._lastSelectedCaption=null,c}return!1}},{key:"_fixCaptionVisibility",value:function(e){var t=this;return function(n,r,i){var o=lp(e(r)),a=t.editor.editing.mapper,s=i.writer;if(o){var c=a.toViewElement(o);c&&(o.childCount?s.removeClass("ck-hidden",c):s.addClass("ck-hidden",c))}}}},{key:"_insertMissingModelCaptionElement",value:function(e){var t,n=this.editor.model,r=[],i=l(n.document.differ.getChanges());try{for(i.s();!(t=i.n()).done;){var o=t.value;if("insert"==o.type&&"$text"!=o.name){var a=o.position.nodeAfter;if(a.is("element","image")&&!op(a)&&r.push(a),!a.is("element","image")&&a.childCount){var s,c=l(n.createRangeIn(a).getItems());try{for(c.s();!(s=c.n()).done;){var u=s.value;u.is("element","image")&&!op(u)&&r.push(u)}}catch(e){c.e(e)}finally{c.f()}}}}}catch(e){i.e(e)}finally{i.f()}for(var d=0,f=r;d<f.length;d++){var h=f[d];e.appendElement("caption",h)}return!!r.length}}],[{key:"pluginName",get:function(){return"ImageCaptionEditing"}}]),n}(Ll);function cp(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(n,r,i){var o=r.item;if((o.childCount||t)&&xh(o.parent)){if(!i.consumable.consume(r.item,"insert"))return;var a=i.mapper.toViewElement(r.range.start.parent),s=e(i.writer),c=i.writer;o.childCount||c.addClass("ck-hidden",s),function(e,t,n,r){var i=r.writer.createPositionAt(n,"end");r.writer.insert(i,e),r.mapper.bindElements(t,e)}(s,r.item,a,i)}}}function lp(e){var t=e.getAncestors({includeSelf:!0}).find((function(e){return"caption"==e.name}));return t&&t.parent&&"image"==t.parent.name?t:null}function up(e,t){return!e.childCount&&!e.hasClass("ck-hidden")&&(t.addClass("ck-hidden",e),!0)}function dp(e,t){return!!e.hasClass("ck-hidden")&&(t.removeClass("ck-hidden",e),!0)}n(79);var fp=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).buttonView=new kl(e),r._fileInputView=new hp(e),r._fileInputView.bind("acceptedType").to(y(r)),r._fileInputView.bind("allowMultipleFiles").to(y(r)),r._fileInputView.delegate("done").to(y(r)),r.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[r.buttonView,r._fileInputView]}),r.buttonView.on("execute",(function(){r._fileInputView.open()})),r}return m(n,[{key:"focus",value:function(){this.buttonView.focus()}}]),n}(Xc),hp=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).set("acceptedType"),r.set("allowMultipleFiles",!1);var i=r.bindTemplate;return r.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:i.to("acceptedType"),multiple:i.to("allowMultipleFiles")},on:{change:i.to((function(){r.element&&r.element.files&&r.element.files.length&&r.fire("done",r.element.files),r.element.value=""}))}}),r}return m(n,[{key:"open",value:function(){this.element.click()}}]),n}(Xc);function pp(e){var t=e.map((function(e){return e.replace("+","\\+")}));return new RegExp("^image\\/(".concat(t.join("|"),")$"))}var mp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',vp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.t;e.ui.componentFactory.add("imageUpload",(function(n){var r=new fp(n),i=e.commands.get("imageUpload"),o=e.config.get("image.upload.types"),a=pp(o);return r.set({acceptedType:o.map((function(e){return"image/"+e})).join(","),allowMultipleFiles:!0}),r.buttonView.set({label:t("Insert image"),icon:mp,tooltip:!0}),r.buttonView.bind("isEnabled").to(i),r.on("done",(function(t,n){var r=Array.from(n).filter((function(e){return a.test(e.type)}));r.length&&e.execute("imageUpload",{file:r})})),r}))}}],[{key:"pluginName",get:function(){return"ImageUploadUI"}}]),n}(Ll),gp=function(){function e(t){h(this,e),this.context=t}return m(e,[{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!0}}]),e}();sn(gp,mr);var bp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.set("hasAny",!1),this._actions=new cn({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}},{key:"add",value:function(e){if("string"!=typeof e)throw new Kt.a("pendingactions-add-invalid-message",this);var t=Object.create(mr);return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}},{key:"remove",value:function(e){this._actions.remove(e),this.hasAny=!!this._actions.length}},{key:Symbol.iterator,value:function(){return this._actions[Symbol.iterator]()}},{key:"first",get:function(){return this._actions.get(0)}}],[{key:"pluginName",get:function(){return"PendingActions"}}]),n}(gp),yp=function(){function e(){var t=this;h(this,e);var n=new window.FileReader;this._reader=n,this._data=void 0,this.set("loaded",0),n.onprogress=function(e){t.loaded=e.loaded}}return m(e,[{key:"read",value:function(e){var t=this,n=this._reader;return this.total=e.size,new Promise((function(r,i){n.onload=function(){var e=n.result;t._data=e,r(e)},n.onerror=function(){i("error")},n.onabort=function(){i("aborted")},t._reader.readAsDataURL(e)}))}},{key:"abort",value:function(){this._reader.abort()}},{key:"error",get:function(){return this._reader.error}},{key:"data",get:function(){return this._data}}]),e}();sn(yp,mr);var kp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this;this.loaders=new cn,this.loaders.on("add",(function(){return e._updatePendingAction()})),this.loaders.on("remove",(function(){return e._updatePendingAction()})),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0}))}},{key:"getLoader",value:function(e){return this._loadersMap.get(e)||null}},{key:"createLoader",value:function(e){var t=this;if(!this.createUploadAdapter)return Object(Kt.c)("filerepository-no-upload-adapter"),null;var n=new wp(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(e,n),e instanceof Promise&&n.file.then((function(e){t._loadersMap.set(e,n)})).catch((function(){})),n.on("change:uploaded",(function(){var e,n=0,r=l(t.loaders);try{for(r.s();!(e=r.n()).done;){n+=e.value.uploaded}}catch(e){r.e(e)}finally{r.f()}t.uploaded=n})),n.on("change:uploadTotal",(function(){var e,n=0,r=l(t.loaders);try{for(r.s();!(e=r.n()).done;){var i=e.value;i.uploadTotal&&(n+=i.uploadTotal)}}catch(e){r.e(e)}finally{r.f()}t.uploadTotal=n})),n}},{key:"destroyLoader",value:function(e){var t=this,n=e instanceof wp?e:this.getLoader(e);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((function(e,r){e===n&&t._loadersMap.delete(r)}))}},{key:"_updatePendingAction",value:function(){var e=this.editor.plugins.get(bp);if(this.loaders.length){if(!this._pendingAction){var t=this.editor.t,n=function(e){return"".concat(t("Upload in progress")," ").concat(parseInt(e),"%.")};this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}],[{key:"pluginName",get:function(){return"FileRepository"}},{key:"requires",get:function(){return[bp]}}]),n}(Ll);sn(kp,mr);var wp=function(){function e(t,n){h(this,e),this.id=Wt(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=n(this),this._reader=new yp,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0})),this.set("uploadResponse",null)}return m(e,[{key:"read",value:function(){var e=this;if("idle"!=this.status)throw new Kt.a("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((function(t){return e._reader.read(t)})).then((function(t){if("reading"!==e.status)throw e.status;return e.status="idle",t})).catch((function(t){if("aborted"===t)throw e.status="aborted","aborted";throw e.status="error",e._reader.error?e._reader.error:t}))}},{key:"upload",value:function(){var e=this;if("idle"!=this.status)throw new Kt.a("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((function(){return e._adapter.upload()})).then((function(t){return e.uploadResponse=t,e.status="idle",t})).catch((function(t){if("aborted"===e.status)throw"aborted";throw e.status="error",t}))}},{key:"abort",value:function(){var e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((function(){})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}},{key:"_destroy",value:function(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}},{key:"_createFilePromiseWrapper",value:function(e){var t={};return t.promise=new Promise((function(n,r){t.rejecter=r,t.isFulfilled=!1,e.then((function(e){t.isFulfilled=!0,n(e)})).catch((function(e){t.isFulfilled=!0,r(e)}))})),t}},{key:"file",get:function(){var e=this;return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((function(t){return e._filePromiseWrapper?t:null})):Promise.resolve(null)}},{key:"data",get:function(){return this._reader.data}}]),e}();sn(wp,mr),n(81),n(83),n(85);var _p=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>'),r}return m(n,[{key:"init",value:function(){var e=this;this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(function(){return e.uploadStatusChange.apply(e,arguments)}))}},{key:"uploadStatusChange",value:function(e,t,n){var r=this.editor,i=t.item,o=i.getAttribute("uploadId");if(n.consumable.consume(t.item,e.name)){var a=r.plugins.get(kp),s=o?t.attributeNewValue:null,c=this.placeholder,l=r.editing.mapper.toViewElement(i),u=n.writer;if("reading"==s)return Cp(l,u),void Ap(c,l,u);if("uploading"==s){var d=a.loaders.get(o);return Cp(l,u),void(d?(xp(l,u),function(e,t,n,r){var i=function(e){var t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),i),n.on("change:uploadedPercent",(function(e,t,n){r.change((function(e){e.setStyle("width",n+"%",i)}))}))}(l,u,d,r.editing.view),function(e,t,n){if(n.data){var r=Eh(e);t.setAttribute("src",n.data,r)}}(l,u,d)):Ap(c,l,u))}"complete"==s&&a.loaders.get(o)&&function(e,t,n){var r=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),r),setTimeout((function(){n.change((function(e){return e.remove(e.createRangeOn(r))}))}),3e3)}(l,u,r.editing.view),function(e,t){Mp(e,t,"progressBar")}(l,u),xp(l,u),function(e,t){t.removeClass("ck-appear",e)}(l,u)}}}]),n}(Ll);function Cp(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function Ap(e,t,n){t.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",t);var r=Eh(t);r.getAttribute("src")!==e&&n.setAttribute("src",e,r),Sp(t,"placeholder")||n.insert(n.createPositionAfter(r),function(e){var t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(n))}function xp(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),Mp(e,t,"placeholder")}function Sp(e,t){var n,r=l(e.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.getCustomProperty(t))return i}}catch(e){r.e(e)}finally{r.f()}}function Mp(e,t,n){var r=Sp(e,n);r&&t.remove(t.createRangeOn(r))}var Ep=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.on("show:warning",(function(e,t){window.alert(t.message)}),{priority:"lowest"})}},{key:"showSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}},{key:"showInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}},{key:"showWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}},{key:"_showNotification",value:function(e){var t="show:"+e.type+(e.namespace?":"+e.namespace:"");this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}],[{key:"pluginName",get:function(){return"Notification"}}]),n}(gp),Tp=function(){function e(t){h(this,e),this.document=t}return m(e,[{key:"createDocumentFragment",value:function(e){return new ni(this.document,e)}},{key:"createElement",value:function(e,t,n){return new ar(this.document,e,t,n)}},{key:"createText",value:function(e){return new bn(this.document,e)}},{key:"clone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e._clone(t)}},{key:"appendChild",value:function(e,t){return t._appendChild(e)}},{key:"insertChild",value:function(e,t,n){return n._insertChild(e,t)}},{key:"removeChildren",value:function(e,t,n){return n._removeChildren(e,t)}},{key:"remove",value:function(e){var t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}},{key:"replace",value:function(e,t){var n=e.parent;if(n){var r=n.getChildIndex(e);return this.removeChildren(r,1,n),this.insertChild(r,t,n),!0}return!1}},{key:"unwrapElement",value:function(e){var t=e.parent;if(t){var n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}},{key:"rename",value:function(e,t){var n=new ar(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){B(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"createPositionAt",value:function(e,t){return xr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return xr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return xr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Sr(e,t)}},{key:"createRangeOn",value:function(e){return Sr._createOn(e)}},{key:"createRangeIn",value:function(e){return Sr._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Tr(e,t,n)}}]),e}(),Dp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement(),t=e&&"image"===e.name||!1;this.isEnabled=Mh(this.editor.model)||t}},{key:"execute",value:function(e){var t=this.editor,n=t.model,r=t.plugins.get(kp);n.change((function(t){var i,o=l(Array.isArray(e.file)?e.file:[e.file]);try{for(o.s();!(i=o.n()).done;){var a=i.value;Op(t,n,r,a)}}catch(e){o.e(e)}finally{o.f()}}))}}]),n}(Fl);function Op(e,t,n,r){var i=n.createLoader(r);i&&Sh(e,t,{uploadId:i.id})}var Pp=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),r}return m(n,null,[{key:"requires",get:function(){return[kp,Ep,Vu]}},{key:"pluginName",get:function(){return"ImageUploadEditing"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,r=t.model.schema,i=t.conversion,o=t.plugins.get(kp),a=pp(t.config.get("image.upload.types"));r.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),t.commands.add("imageUpload",new Dp(t)),i.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(function(e,n){if(r=n.dataTransfer,!Array.from(r.types).includes("text/html")||""===r.getData("text/html")){var r,i=Array.from(n.dataTransfer.files).filter((function(e){return!!e&&a.test(e.type)})),o=n.targetRanges.map((function(e){return t.editing.mapper.toModelRange(e)}));t.model.change((function(n){n.setSelection(o),i.length&&(e.stop(),t.model.enqueueChange("default",(function(){t.execute("imageUpload",{file:i})})))}))}})),this.listenTo(t.plugins.get(Vu),"inputTransformation",(function(e,n){var r=Array.from(t.editing.view.createRangeIn(n.content)).filter((function(e){return!(!(t=e.item).is("element","img")||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))&&!e.item.getAttribute("uploadProcessed");var t})).map((function(e){return{promise:(t=e.item,new Promise((function(e,n){var r=t.getAttribute("src");fetch(r).then((function(e){return e.blob()})).then((function(t){var n=function(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}(t,r),i=n.replace("image/",""),o=new File([t],"image."+i,{type:n});e(o)})).catch(n)}))),imageElement:e.item};var t}));if(r.length){var i,a=new Tp(t.editing.view.document),s=l(r);try{for(s.s();!(i=s.n()).done;){var c=i.value;a.setAttribute("uploadProcessed",!0,c.imageElement);var u=o.createLoader(c.promise);u&&(a.setAttribute("src","",c.imageElement),a.setAttribute("uploadId",u.id,c.imageElement))}}catch(e){s.e(e)}finally{s.f()}}})),t.editing.view.document.on("dragover",(function(e,t){t.preventDefault()})),n.on("change",(function(){var r,i=l(n.differ.getChanges({includeChangesInGraveyard:!0}));try{for(i.s();!(r=i.n()).done;){var a=r.value;if("insert"==a.type&&"$text"!=a.name){var s,c=a.position.nodeAfter,u="$graveyard"==a.position.root.rootName,d=l(Ip(t,c));try{for(d.s();!(s=d.n()).done;){var f=s.value,h=f.getAttribute("uploadId");if(h){var p=o.loaders.get(h);p&&(u?p.abort():"idle"==p.status&&e._readAndUpload(p,f))}}}catch(e){d.e(e)}finally{d.f()}}}}catch(e){i.e(e)}finally{i.f()}}))}},{key:"_readAndUpload",value:function(e,t){var n=this,r=this.editor,i=r.model,o=r.locale.t,a=r.plugins.get(kp),s=r.plugins.get(Ep);return i.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","reading",t)})),e.read().then((function(){var n=e.upload();if(zr){var o=Eh(r.editing.mapper.toViewElement(t));r.editing.view.once("render",(function(){if(o.parent){var e=r.editing.view.domConverter.mapViewToDom(o.parent);if(e){var t=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=t}}}))}return i.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","uploading",t)})),n})).then((function(e){i.enqueueChange("transparent",(function(r){r.setAttributes({uploadStatus:"complete",src:e.default},t),n._parseAndSetSrcsetAttributeOnImage(e,t,r)})),c()})).catch((function(n){if("error"!==e.status&&"aborted"!==e.status)throw n;"error"==e.status&&n&&s.showWarning(n,{title:o("Upload failed"),namespace:"upload"}),c(),i.enqueueChange("transparent",(function(e){e.remove(t)}))}));function c(){i.enqueueChange("transparent",(function(e){e.removeAttribute("uploadId",t),e.removeAttribute("uploadStatus",t)})),a.destroyLoader(e)}}},{key:"_parseAndSetSrcsetAttributeOnImage",value:function(e,t,n){var r=0,i=Object.keys(e).filter((function(e){var t=parseInt(e,10);if(!isNaN(t))return r=Math.max(r,t),!0})).map((function(t){return"".concat(e[t]," ").concat(t,"w")})).join(", ");""!=i&&n.setAttribute("srcset",{data:i,width:r},t)}}]),n}(Ll);function Ip(e,t){return Array.from(e.model.createRangeOn(t)).filter((function(e){return e.item.is("element","image")})).map((function(e){return e.item}))}var jp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"pluginName",get:function(){return"ImageUpload"}},{key:"requires",get:function(){return[Pp,vp,_p]}}]),n}(Ll);n(87);var Np=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,n);var o=(r=t.call(this,e)).bindTemplate;return r.set("class",i.class||null),r.children=r.createCollection(),i.children&&i.children.forEach((function(e){return r.children.add(e)})),r.set("_role",null),r.set("_ariaLabelledBy",null),i.labelView&&r.set({_role:"group",_ariaLabelledBy:i.labelView.id}),r.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",o.to("class")],role:o.to("_role"),"aria-labelledby":o.to("_ariaLabelledBy")},children:r.children}),r}return n}(Xc);n(89);var Rp=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n);var o=(i=t.call(this,e))._createActionButtons(e),a=o.insertButtonView,s=o.cancelButtonView;if(i.insertButtonView=a,i.cancelButtonView=s,i.dropdownView=i._createDropdownView(e),i.set("imageURLInputValue",""),i.focusTracker=new Cc,i.keystrokes=new mc,i._focusables=new Oc,i._focusCycler=new sl({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i.set("_integrations",new cn),r)for(var l=function(){var e=c(f[d],2),t=e[0],n=e[1];"insertImageViaUrl"===t&&(n.fieldView.bind("value").to(y(i),"imageURLInputValue",(function(e){return e||""})),n.fieldView.on("input",(function(){i.imageURLInputValue=n.fieldView.element.value.trim()}))),n.name=t,i._integrations.add(n)},d=0,f=Object.entries(r);d<f.length;d++)l();return i.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:"-1"},children:[].concat(u(i._integrations),[new Np(e,{children:[i.insertButtonView,i.cancelButtonView],class:"ck-image-insert-form__action-row"})])}),i}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),Yh({view:this});var t=[].concat(u(this._integrations),[this.insertButtonView,this.cancelButtonView]);t.forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);var r=function(e){return e.stopPropagation()};this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r),this.listenTo(t[0].element,"selectstart",(function(e,t){t.stopPropagation()}),{priority:"high"})}},{key:"getIntegration",value:function(e){return this._integrations.find((function(t){return t.name===e}))}},{key:"_createDropdownView",value:function(e){var t=e.t,n=El(e,Yf),r=n.buttonView,i=n.panelView;return r.set({label:t("Insert image"),icon:mp,tooltip:!0}),i.extendTemplate({attributes:{class:"ck-image-insert__panel"}}),n}},{key:"_createActionButtons",value:function(e){var t=e.t,n=new kl(e),r=new kl(e);return n.set({label:t("Insert"),icon:Kh,class:"ck-button-save",type:"submit",withText:!0,isEnabled:this.imageURLInputValue}),r.set({label:t("Cancel"),icon:Gh,class:"ck-button-cancel",withText:!0}),n.bind("isEnabled").to(this,"imageURLInputValue",(function(e){return!!e})),n.delegate("execute").to(this,"submit"),r.delegate("execute").to(this,"cancel"),{insertButtonView:n,cancelButtonView:r}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}}]),n}(Xc);function Lp(e){var t=e.t,n=new Uh(e,Wh);return n.set({label:t("Insert image via URL")}),n.fieldView.placeholder="https://example.com/src/image.png",n.infoText=t("Paste the image source URL."),n}var Bp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this;this.editor.ui.componentFactory.add("imageInsert",(function(t){return e._createDropdownView(t)}))}},{key:"_createDropdownView",value:function(e){var t=this.editor,n=new Rp(e,function(e){var t=e.config.get("image.insert.integrations"),n=e.plugins.get("ImageInsertUI"),r={insertImageViaUrl:Lp(e.locale)};if(!t)return r;if(t.find((function(e){return"openCKFinder"===e}))&&e.ui.componentFactory.has("ckfinder")){var i=e.ui.componentFactory.create("ckfinder");i.set({withText:!0,class:"ck-image-insert__ck-finder-button"}),i.delegate("execute").to(n,"cancel"),r.openCKFinder=i}return t.reduce((function(t,n){return r[n]?t[n]=r[n]:e.ui.componentFactory.has(n)&&(t[n]=e.ui.componentFactory.create(n)),t}),{})}(t)),r=t.commands.get("imageUpload"),i=n.dropdownView,o=i.buttonView;return o.actionView=t.ui.componentFactory.create("imageUpload"),o.actionView.extendTemplate({attributes:{class:"ck ck-button ck-splitbutton__action"}}),this._setUpDropdown(i,n,r)}},{key:"_setUpDropdown",value:function(e,t,n){var r=this.editor,i=r.t,o=t.insertButtonView,a=t.getIntegration("insertImageViaUrl"),s=e.panelView;function c(){r.editing.view.focus(),e.isOpen=!1}return e.bind("isEnabled").to(n),e.buttonView.once("open",(function(){s.children.add(t)})),e.on("change:isOpen",(function(){var n=r.model.document.selection.getSelectedElement();e.isOpen&&(t.focus(),xh(n)?(t.imageURLInputValue=n.getAttribute("src"),o.label=i("Update"),a.label=i("Update image URL")):(t.imageURLInputValue="",o.label=i("Insert"),a.label=i("Insert image via URL")))}),{priority:"low"}),t.delegate("submit","cancel").to(e),this.delegate("cancel").to(e),e.on("submit",(function(){c(),function(){var e=r.model.document.selection.getSelectedElement();xh(e)?r.model.change((function(n){n.setAttribute("src",t.imageURLInputValue,e),n.removeAttribute("srcset",e),n.removeAttribute("sizes",e)})):r.execute("imageInsert",{source:t.imageURLInputValue})}()})),e.on("cancel",(function(){c()})),e}}],[{key:"pluginName",get:function(){return"ImageInsertUI"}}]),n}(Ll),Fp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=xh(e),e&&e.hasAttribute("width")?this.value={width:e.getAttribute("width"),height:null}:this.value=null}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection.getSelectedElement();this.value={width:e.width,height:null},n&&t.change((function(t){t.setAttribute("width",e.width,n)}))}}]),n}(Fl),zp=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"imageResize:original",value:null,icon:"original"},{name:"imageResize:25",value:"25",icon:"small"},{name:"imageResize:50",value:"50",icon:"medium"},{name:"imageResize:75",value:"75",icon:"large"}]}),r}return m(n,null,[{key:"pluginName",get:function(){return"ImageResizeEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=new Fp(e);this._registerSchema(),this._registerConverters(),e.commands.add("imageResize",t)}},{key:"_registerSchema",value:function(){this.editor.model.schema.extend("image",{allowAttributes:"width"}),this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0})}},{key:"_registerConverters",value:function(){var e=this.editor;e.conversion.for("downcast").add((function(e){return e.on("attribute:width:image",(function(e,t,n){if(n.consumable.consume(t.item,e.name)){var r=n.writer,i=n.mapper.toViewElement(t.item);null!==t.attributeNewValue?(r.setStyle("width",t.attributeNewValue,i),r.addClass("image_resized",i)):(r.removeStyle("width",i),r.removeClass("image_resized",i))}}))})),e.conversion.for("upcast").attributeToAttribute({view:{name:"figure",styles:{width:/.+/}},model:{key:"width",value:function(e){return e.getStyle("width")}}})}}]),n}(Ll),Vp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',$p={small:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',medium:Vp,large:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',original:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>'},Hp=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._resizeUnit=e.config.get("image.resizeUnit"),r}return m(n,null,[{key:"requires",get:function(){return[zp]}},{key:"pluginName",get:function(){return"ImageResizeButtons"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=e.config.get("image.resizeOptions"),n=e.commands.get("imageResize");this.bind("isEnabled").to(n);var r,i=l(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;this._registerImageResizeButton(o)}}catch(e){i.e(e)}finally{i.f()}this._registerImageResizeDropdown(t)}},{key:"_registerImageResizeButton",value:function(e){var t=this,n=this.editor,r=e.name,i=e.value,o=e.icon,a=i?i+this._resizeUnit:null;n.ui.componentFactory.add(r,(function(r){var i=new kl(r),s=n.commands.get("imageResize"),c=t._getOptionLabelValue(e,!0);if(!$p[o])throw new Kt.a("imageresizebuttons-missing-icon",n,e);return i.set({label:c,icon:$p[o],tooltip:c,isToggleable:!0}),i.bind("isEnabled").to(t),i.bind("isOn").to(s,"value",Up(a)),t.listenTo(i,"execute",(function(){n.execute("imageResize",{width:a})})),i}))}},{key:"_registerImageResizeDropdown",value:function(e){var t=this,n=this.editor,r=n.t,i=e.find((function(e){return!e.value}));n.ui.componentFactory.add("imageResize",(function(o){var a=n.commands.get("imageResize"),s=El(o,_l),c=s.buttonView;return c.set({tooltip:r("Resize image"),commandValue:i.value,icon:Vp,isToggleable:!0,label:t._getOptionLabelValue(i),withText:!0,class:"ck-resize-image-button"}),c.bind("label").to(a,"value",(function(e){return e&&e.width?e.width:t._getOptionLabelValue(i)})),s.bind("isOn").to(a),s.bind("isEnabled").to(t),Dl(s,t._getResizeDropdownListItemDefinitions(e,a)),s.listView.ariaLabel=r("Image resize list"),t.listenTo(s,"execute",(function(e){n.execute(e.source.commandName,{width:e.source.commandValue}),n.editing.view.focus()})),s}))}},{key:"_getOptionLabelValue",value:function(e,t){var n=this.editor.t;return e.label?e.label:t?e.value?n("Resize image to %0",e.value+this._resizeUnit):n("Resize image to the original size"):e.value?e.value+this._resizeUnit:n("Original")}},{key:"_getResizeDropdownListItemDefinitions",value:function(e,t){var n=this,r=new cn;return e.map((function(e){var i=e.value?e.value+n._resizeUnit:null,o={type:"button",model:new Ef({commandName:"imageResize",commandValue:i,label:n._getOptionLabelValue(e),withText:!0,icon:null})};o.model.bind("isOn").to(t,"value",Up(i)),r.add(o)})),r}}]),n}(Ll);function Up(e){return function(t){return null===e&&t===e||t&&t.width===e}}var qp=function(){function e(t){h(this,e),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=t,this._referenceCoordinates=null}return m(e,[{key:"begin",value:function(e,t,n){var r=new Oo(t);this.activeHandlePosition=function(e){for(var t=0,n=["top-left","top-right","bottom-right","bottom-left"];t<n.length;t++){var r=n[t];if(e.classList.contains(Wp(r)))return r}}(e),this._referenceCoordinates=function(e,t){var n=new Oo(e),r=t.split("-"),i={x:"right"==r[1]?n.right:n.left,y:"bottom"==r[0]?n.bottom:n.top};return i.x+=e.ownerDocument.defaultView.scrollX,i.y+=e.ownerDocument.defaultView.scrollY,i}(t,function(e){var t=e.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return"".concat(n[t[0]],"-").concat(n[t[1]])}(this.activeHandlePosition)),this.originalWidth=r.width,this.originalHeight=r.height,this.aspectRatio=r.width/r.height;var i=n.style.width;i&&i.match(/^\d+\.?\d*%$/)?this.originalWidthPercents=parseFloat(i):this.originalWidthPercents=function(e,t){var n=e.parentElement,r=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return t.width/r*100}(n,r)}},{key:"update",value:function(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}]),e}();function Wp(e){return"ck-widget__resizer__handle-"+e}sn(qp,mr);var Yp=function(){function e(t){var n=this;h(this,e),this._options=t,this._domResizerWrapper=null,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(function(e){n.state.proposedWidth||n.state.proposedWidthPercents||(n._cleanup(),e.stop())}),{priority:"high"}),this.on("change:isEnabled",(function(){n.isEnabled&&n.redraw()}))}return m(e,[{key:"attach",value:function(){var e=this,t=this,n=this._options.viewElement;this._options.editor.editing.view.change((function(r){var i=r.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(e){var n=this.toDomElement(e);return t._appendHandles(n),t._appendSizeUI(n),t._domResizerWrapper=n,t.on("change:isEnabled",(function(e,t,r){n.style.display=r?"":"none"})),n.style.display=t.isEnabled?"":"none",n}));r.insert(r.createPositionAt(n,"end"),i),r.addClass("ck-widget_with-resizer",n),e._viewResizerWrapper=i}))}},{key:"begin",value:function(e){this.state=new qp(this._options),this._sizeUI.bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}},{key:"updateSize",value:function(e){var t=this,n=this._proposeNewSize(e);this._options.editor.editing.view.change((function(e){var r=t._options.unit||"%",i=("%"===r?n.widthPercents:n.width)+r;e.setStyle("width",i,t._options.viewElement)}));var r=this._getHandleHost(),i=new Oo(r);n.handleHostWidth=Math.round(i.width),n.handleHostHeight=Math.round(i.height);var o=new Oo(r);n.width=Math.round(o.width),n.height=Math.round(o.height),this.redraw(i),this.state.update(n)}},{key:"commit",value:function(){var e=this,t=this._options.unit||"%",n=("%"===t?this.state.proposedWidthPercents:this.state.proposedWidth)+t;this._options.editor.editing.view.change((function(){e._cleanup(),e._options.onCommit(n)}))}},{key:"cancel",value:function(){this._cleanup()}},{key:"destroy",value:function(){this.cancel()}},{key:"redraw",value:function(e){var t=this._domResizerWrapper;if((n=t)&&n.ownerDocument&&n.ownerDocument.contains(n)){var n,r,i=t.parentElement,o=this._getHandleHost(),a=this._viewResizerWrapper,s=[a.getStyle("width"),a.getStyle("height"),a.getStyle("left"),a.getStyle("top")];if(i.isSameNode(o)){var c=e||new Oo(o);r=[c.width+"px",c.height+"px",void 0,void 0]}else r=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];"same"!==mn(s,r)&&this._options.editor.editing.view.change((function(e){e.setStyle({width:r[0],height:r[1],left:r[2],top:r[3]},a)}))}}},{key:"containsHandle",value:function(e){return this._domResizerWrapper.contains(e)}},{key:"_cleanup",value:function(){var e=this;this._sizeUI.dismiss(),this._sizeUI.isVisible=!1,this._options.editor.editing.view.change((function(t){t.setStyle("width",e._initialViewWidth,e._options.viewElement)}))}},{key:"_proposeNewSize",value:function(e){var t,n=this.state,r=(t=e).pageX,i=t.pageY,o=!this._options.isCentered||this._options.isCentered(this),a={x:n._referenceCoordinates.x-(r+n.originalWidth),y:i-n.originalHeight-n._referenceCoordinates.y};o&&n.activeHandlePosition.endsWith("-right")&&(a.x=r-(n._referenceCoordinates.x+n.originalWidth)),o&&(a.x*=2);var s={width:Math.abs(n.originalWidth+a.x),height:Math.abs(n.originalHeight+a.y)};s.dominant=s.width/n.aspectRatio>s.height?"width":"height",s.max=s[s.dominant];var c={width:s.width,height:s.height};return"width"==s.dominant?c.height=c.width/n.aspectRatio:c.width=c.height*n.aspectRatio,{width:Math.round(c.width),height:Math.round(c.height),widthPercents:Math.min(Math.round(n.originalWidthPercents/n.originalWidth*c.width*100)/100,100)}}},{key:"_getResizeHost",value:function(){var e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}},{key:"_getHandleHost",value:function(){var e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}},{key:"_appendHandles",value:function(e){for(var t,n=0,r=["top-left","top-right","bottom-right","bottom-left"];n<r.length;n++){var i=r[n];e.appendChild(new Pc({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(t=i,"ck-widget__resizer__handle-"+t)}}).render())}}},{key:"_appendSizeUI",value:function(e){var t=new Kp;t.render(),this._sizeUI=t,e.appendChild(t.element)}}],[{key:"isResizeHandle",value:function(e){return e.classList.contains("ck-widget__resizer__handle")}}]),e}();sn(Yp,mr);var Kp=function(e){v(n,e);var t=g(n);function n(){var e;h(this,n);var r=(e=t.call(this)).bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",r.to("activeHandlePosition",(function(e){return e?"ck-orientation-"+e:""}))],style:{display:r.if("isVisible","none",(function(e){return!e}))}},children:[{text:r.to("label")}]}),e}return m(n,[{key:"bindToState",value:function(e,t){this.bind("isVisible").to(t,"proposedWidth",t,"proposedHeight",(function(e,t){return null!==e&&null!==t})),this.bind("label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",(function(t,n,r){return"px"===e.unit?"".concat(t,"×").concat(n):r+"%"})),this.bind("activeHandlePosition").to(t)}},{key:"dismiss",value:function(){this.unbind(),this.isVisible=!1}}]),n}(Xc);n(91);var Gp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this;this.set("_visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map;var t=Pi.window.document;this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0}),this.editor.editing.view.addObserver(Ih),this._observer=Object.create(Vi),this.listenTo(this.editor.editing.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this));var n=function(){e._visibleResizer&&e._visibleResizer.redraw()},r=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return q(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_o(e,t,{leading:r,maxWait:t,trailing:i})}(n,200);this.on("change:_visibleResizer",n),this.editor.ui.on("update",r),this._observer.listenTo(Pi.window,"resize",r);var i=this.editor.editing.view.document.selection;i.on("change",(function(){var t=i.getSelectedElement();e._visibleResizer=e._getResizerByViewElement(t)||null}))}},{key:"destroy",value:function(){this._observer.stopListening();var e,t=l(this._resizers.values());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}}},{key:"attachTo",value:function(e){var t=new Yp(e),n=this.editor.plugins;if(t.attach(),n.has("WidgetToolbarRepository")){var r=n.get("WidgetToolbarRepository");t.on("begin",(function(){r.forceDisabled("resize")}),{priority:"lowest"}),t.on("cancel",(function(){r.clearForceDisabled("resize")}),{priority:"highest"}),t.on("commit",(function(){r.clearForceDisabled("resize")}),{priority:"highest"})}return this._resizers.set(e.viewElement,t),t}},{key:"_getResizerByHandle",value:function(e){var t,n=l(this._resizers.values());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.containsHandle(e))return r}}catch(e){n.e(e)}finally{n.f()}}},{key:"_getResizerByViewElement",value:function(e){return this._resizers.get(e)}},{key:"_mouseDownListener",value:function(e,t){var n=t.domTarget;Yp.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),e.stop(),t.preventDefault()))}},{key:"_mouseMoveListener",value:function(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}},{key:"_mouseUpListener",value:function(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}],[{key:"pluginName",get:function(){return"WidgetResize"}}]),n}(Ll);sn(Gp,mr);var Qp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.commands.get("imageResize");this.bind("isEnabled").to(n),t.editing.downcastDispatcher.on("insert:image",(function(n,r,i){var o=i.mapper.toViewElement(r.item),a=t.plugins.get(Gp).attachTo({unit:t.config.get("image.resizeUnit"),modelElement:r.item,viewElement:o,editor:t,getHandleHost:function(e){return e.querySelector("img")},getResizeHost:function(e){return e},isCentered:function(){var e=r.item.getAttribute("imageStyle");return!e||"full"==e||"alignCenter"==e},onCommit:function(e){t.execute("imageResize",{width:e})}});a.on("updateSize",(function(){o.hasClass("image_resized")||t.editing.view.change((function(e){e.addClass("image_resized",o)}))})),a.bind("isEnabled").to(e)}),{priority:"low"})}}],[{key:"requires",get:function(){return[Gp]}},{key:"pluginName",get:function(){return"ImageResizeHandles"}}]),n}(Ll);n(93);var Xp=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).defaultStyle=!1,i.styles=r.reduce((function(e,t){return e[t.name]=t,t.isDefault&&(i.defaultStyle=t.name),e}),{}),i}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=xh(e),e)if(e.hasAttribute("imageStyle")){var t=e.getAttribute("imageStyle");this.value=!!this.styles[t]&&t}else this.value=this.defaultStyle;else this.value=!1}},{key:"execute",value:function(e){var t=this,n=e.value,r=this.editor.model,i=r.document.selection.getSelectedElement();r.change((function(e){t.styles[n].isDefault?e.removeAttribute("imageStyle",i):e.setAttribute("imageStyle",n,i)}))}}]),n}(Fl);function Jp(e,t){var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.name===e)return i}}catch(e){r.e(e)}finally{r.f()}}var Zp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm2.5 3V12h11V7.5h-11zM4.061 6H15.94c.586 0 1.061.407 1.061.91v5.68c0 .503-.475.91-1.061.91H4.06c-.585 0-1.06-.407-1.06-.91V6.91C3 6.406 3.475 6 4.061 6zM2 16.5V15h16v1.5z"/></svg>',em='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M18 4.5V3H2v1.5h16zm0 3V6h-5.674v1.5H18zm0 3V9h-5.674v1.5H18zm0 3V12h-5.674v1.5H18zm-8.5-6V12h-6V7.5h6zm.818-1.5H2.682C2.305 6 2 6.407 2 6.91v5.68c0 .503.305.91.682.91h7.636c.377 0 .682-.407.682-.91V6.91c0-.503-.305-.91-.682-.91zM18 16.5V15H2v1.5h16z"/></svg>',tm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm4.5 3V12h7V7.5h-7zM5.758 6h8.484c.419 0 .758.407.758.91v5.681c0 .502-.34.909-.758.909H5.758c-.419 0-.758-.407-.758-.91V6.91c0-.503.34-.91.758-.91zM2 16.5V15h16v1.5z"/></svg>',nm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm0 3V6h5.674v1.5zm0 3V9h5.674v1.5zm0 3V12h5.674v1.5zm8.5-6V12h6V7.5h-6zM9.682 6h7.636c.377 0 .682.407.682.91v5.68c0 .503-.305.91-.682.91H9.682c-.377 0-.682-.407-.682-.91V6.91c0-.503.305-.91.682-.91zM2 16.5V15h16v1.5z"/></svg>',rm={full:{name:"full",title:"Full size image",icon:Zp,isDefault:!0},side:{name:"side",title:"Side image",icon:nm,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:em,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:tm,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:nm,className:"image-style-align-right"}},im={full:Zp,left:em,right:nm,center:tm};function om(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(am)}function am(e){if("string"==typeof e){var t=e;rm[t]?e=Object.assign({},rm[t]):(Object(Kt.c)("image-style-not-found",{name:t}),e={name:t})}else if(rm[e.name]){var n=rm[e.name],r=Object.assign({},e);for(var i in n)Object.prototype.hasOwnProperty.call(e,i)||(r[i]=n[i]);e=r}return"string"==typeof e.icon&&im[e.icon]&&(e.icon=im[e.icon]),e}var sm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.data,r=e.editing;e.config.define("image.styles",["full","side"]);var i=om(e.config.get("image.styles"));t.extend("image",{allowAttributes:"imageStyle"});var o=function(e){return function(t,n,r){if(r.consumable.consume(n.item,t.name)){var i=Jp(n.attributeNewValue,e),o=Jp(n.attributeOldValue,e),a=r.mapper.toViewElement(n.item),s=r.writer;o&&s.removeClass(o.className,a),i&&s.addClass(i.className,a)}}}(i);r.downcastDispatcher.on("attribute:imageStyle:image",o),n.downcastDispatcher.on("attribute:imageStyle:image",o),n.upcastDispatcher.on("element:figure",function(e){var t=e.filter((function(e){return!e.isDefault}));return function(e,n,r){if(n.modelRange){var i=n.viewItem,o=Vl(n.modelRange.getItems());if(r.schema.checkAttribute(o,"imageStyle")){var a,s=l(t);try{for(s.s();!(a=s.n()).done;){var c=a.value;r.consumable.consume(i,{classes:c.className})&&r.writer.setAttribute("imageStyle",c.name,o)}}catch(e){s.e(e)}finally{s.f()}}}}}(i),{priority:"low"}),e.commands.add("imageStyle",new Xp(e,i))}}],[{key:"pluginName",get:function(){return"ImageStyleEditing"}}]),n}(Ll);n(95);var cm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e,t=function(e,t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t[i.title]&&(i.title=t[i.title])}}catch(e){r.e(e)}finally{r.f()}return e}(om(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles),n=l(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._createButton(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"_createButton",value:function(e){var t=this,n=this.editor,r="imageStyle:"+e.name;n.ui.componentFactory.add(r,(function(r){var i=n.commands.get("imageStyle"),o=new kl(r);return o.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",(function(t){return t===e.name})),t.listenTo(o,"execute",(function(){n.execute("imageStyle",{value:e.name}),n.editing.view.focus()})),o}))}},{key:"localizedDefaultStylesTitles",get:function(){var e=this.editor.t;return{"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}}],[{key:"pluginName",get:function(){return"ImageStyleUI"}}]),n}(Ll),lm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor;if(t.plugins.has("BalloonToolbar")){var n=t.plugins.get("BalloonToolbar");this.listenTo(n,"show",(function(e){(function(e){var t=e.getSelectedElement();return!(!t||!dh(t))})(t.editing.view.document.selection)&&e.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui,"update",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui.focusTracker,"change:isFocused",(function(){e._updateToolbarsVisibility()}),{priority:"low"})}},{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this);var e,t=l(this._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){e.value.view.destroy()}}catch(e){t.e(e)}finally{t.f()}}},{key:"register",value:function(e,t){var n=t.ariaLabel,r=t.items,i=t.getRelatedElement,o=t.balloonClassName,a=void 0===o?"ck-toolbar-container":o;if(r.length){var s=this.editor,c=s.t,l=new Ol(s.locale);if(l.ariaLabel=n||c("Widget toolbar"),this._toolbarDefinitions.has(e))throw new Kt.a("widget-toolbar-duplicated",this,{toolbarId:e});l.fillFromConfig(r,s.ui.componentFactory),this._toolbarDefinitions.set(e,{view:l,getRelatedElement:i,balloonClassName:a})}else Object(Kt.c)("widget-toolbar-no-items",{toolbarId:e})}},{key:"_updateToolbarsVisibility",value:function(){var e,t=0,n=null,r=null,i=l(this._toolbarDefinitions.values());try{for(i.s();!(e=i.n()).done;){var o=e.value,a=o.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&a)if(this.editor.ui.focusTracker.isFocused){var s=a.getAncestors().length;s>t&&(t=s,n=a,r=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}}catch(e){i.e(e)}finally{i.f()}r&&this._showToolbar(r,n)}},{key:"_hideToolbar",value:function(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}},{key:"_showToolbar",value:function(e,t){var n=this;this._isToolbarVisible(e)?um(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:dm(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(function(){var e,t=l(n._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){var r=e.value;if(n._isToolbarVisible(r)){var i=r.getRelatedElement(n.editor.editing.view.document.selection);um(n.editor,i)}}}catch(e){t.e(e)}finally{t.f()}})))}},{key:"_isToolbarVisible",value:function(e){return this._balloon.visibleView===e.view}},{key:"_isToolbarInBalloon",value:function(e){return this._balloon.hasView(e.view)}}],[{key:"requires",get:function(){return[Jh]}},{key:"pluginName",get:function(){return"WidgetToolbarRepository"}}]),n}(Ll);function um(e,t){var n=e.plugins.get("ContextualBalloon"),r=dm(e,t);n.updatePosition(r)}function dm(e,t){var n=e.editing.view,r=nh.defaultPositions;return{target:n.domConverter.mapViewToDom(t),positions:[r.northArrowSouth,r.northArrowSouthWest,r.northArrowSouthEast,r.southArrowNorth,r.southArrowNorthWest,r.southArrowNorthEast,gh]}}var fm=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._childCommands=[],r}return m(n,[{key:"refresh",value:function(){}},{key:"execute",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._getFirstEnabledCommand().execute(t)}},{key:"registerChildCommand",value:function(e){var t=this;this._childCommands.push(e),e.on("change:isEnabled",(function(){return t._checkEnabled()})),this._checkEnabled()}},{key:"_checkEnabled",value:function(){this.isEnabled=!!this._getFirstEnabledCommand()}},{key:"_getFirstEnabledCommand",value:function(){return this._childCommands.find((function(e){return e.isEnabled}))}}]),n}(Fl),hm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.commands.add("indent",new fm(e)),e.commands.add("outdent",new fm(e))}}],[{key:"pluginName",get:function(){return"IndentEditing"}}]),n}(Ll),pm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95L5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',mm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',vm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,r="ltr"==t.uiLanguageDirection?pm:mm,i="ltr"==t.uiLanguageDirection?mm:pm;this._defineButton("indent",n("Increase indent"),r),this._defineButton("outdent",n("Decrease indent"),i)}},{key:"_defineButton",value:function(e,t,n){var r=this,i=this.editor;i.ui.componentFactory.add(e,(function(o){var a=i.commands.get(e),s=new kl(o);return s.set({label:t,icon:n,tooltip:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),r.listenTo(s,"execute",(function(){i.execute(e),i.editing.view.focus()})),s}))}}],[{key:"pluginName",get:function(){return"IndentUI"}}]),n}(Ll),gm="italic",bm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:gm}),e.model.schema.setAttributeProperties(gm,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:gm,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add(gm,new Pu(e,gm)),e.keystrokes.set("CTRL+I",gm)}}],[{key:"pluginName",get:function(){return"ItalicEditing"}}]),n}(Ll),ym="italic",km=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(ym,(function(r){var i=t.commands.get(ym),o=new kl(r);return o.set({label:n("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.586 14.633l.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(ym),t.editing.view.focus()})),o}))}}]),n}(Ll),wm=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).attributes=new Set,r._overrideUid=null,r}return m(n,null,[{key:"pluginName",get:function(){return"TwoStepCaretMovement"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model,r=t.editing.view,i=t.locale,o=n.document.selection;this.listenTo(r.document,"keydown",(function(t,n){if(o.isCollapsed&&!(n.shiftKey||n.altKey||n.ctrlKey)){var r=n.keyCode==Ur.arrowright,a=n.keyCode==Ur.arrowleft;if(r||a){var s=i.contentLanguageDirection;!0===("ltr"===s&&r||"rtl"===s&&a?e._handleForwardMovement(n):e._handleBackwardMovement(n))&&t.stop()}}}),{priority:Yt.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(o,"change:range",(function(t,n){e._isNextGravityRestorationSkipped?e._isNextGravityRestorationSkipped=!1:e._isGravityOverridden&&(!n.directChange&&xm(o.getFirstPosition(),e.attributes)||e._restoreGravity())}))}},{key:"registerAttribute",value:function(e){this.attributes.add(e)}},{key:"_handleForwardMovement",value:function(e){var t=this.attributes,n=this.editor.model.document.selection,r=n.getFirstPosition();return!this._isGravityOverridden&&(!r.isAtStart||!_m(n,t))&&(xm(r,t)?(Am(e),this._overrideGravity(),!0):void 0)}},{key:"_handleBackwardMovement",value:function(e){var t=this.attributes,n=this.editor.model,r=n.document.selection,i=r.getFirstPosition();return this._isGravityOverridden?(Am(e),this._restoreGravity(),Cm(n,t,i),!0):i.isAtStart?!!_m(r,t)&&(Am(e),Cm(n,t,i),!0):function(e,t){return xm(e.getShiftedBy(-1),t)}(i,t)?i.isAtEnd&&!_m(r,t)&&xm(i,t)?(Am(e),Cm(n,t,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}},{key:"_overrideGravity",value:function(){this._overrideUid=this.editor.model.change((function(e){return e.overrideSelectionGravity()}))}},{key:"_restoreGravity",value:function(){var e=this;this.editor.model.change((function(t){t.restoreSelectionGravity(e._overrideUid),e._overrideUid=null}))}},{key:"_isGravityOverridden",get:function(){return!!this._overrideUid}}]),n}(Ll);function _m(e,t){var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(e.hasAttribute(i))return!0}}catch(e){r.e(e)}finally{r.f()}return!1}function Cm(e,t,n){var r=n.nodeBefore;e.change((function(e){r?e.setSelectionAttribute(r.getAttributes()):e.removeSelectionAttribute(t)}))}function Am(e){e.preventDefault()}function xm(e,t){var n,r=e.nodeBefore,i=e.nodeAfter,o=l(t);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=r?r.getAttribute(a):void 0;if((i?i.getAttribute(a):void 0)!==s)return!0}}catch(e){o.e(e)}finally{o.f()}return!1}function Sm(e,t,n,r){return r.createRange(Mm(e,t,n,!0,r),Mm(e,t,n,!1,r))}function Mm(e,t,n,r,i){for(var o=e.textNode||(r?e.nodeBefore:e.nodeAfter),a=null;o&&o.getAttribute(t)==n;)a=o,o=r?o.previousSibling:o.nextSibling;return a?i.createPositionAt(a,r?"before":"after"):e}var Em=function(){function e(){h(this,e),this._definitions=new Set}return m(e,[{key:"add",value:function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t._definitions.add(e)})):this._definitions.add(e)}},{key:"getDispatcher",value:function(){var e=this;return function(t){t.on("attribute:linkHref",(function(t,n,r){if(r.consumable.test(n.item,"attribute:linkHref")){var i,o=r.writer,a=o.document.selection,s=l(e._definitions);try{for(s.s();!(i=s.n()).done;){var c=i.value,u=o.createAttributeElement("a",c.attributes,{priority:5});o.setCustomProperty("link",!0,u),c.callback(n.attributeNewValue)?n.item.is("selection")?o.wrap(a.getFirstRange(),u):o.wrap(r.mapper.toViewRange(n.range),u):o.unwrap(r.mapper.toViewRange(n.range),u)}}catch(e){s.e(e)}finally{s.f()}}}),{priority:"high"})}}},{key:"getDispatcherForLinkedImage",value:function(){var e=this;return function(t){t.on("attribute:linkHref:image",(function(t,n,r){var i,o=r.mapper.toViewElement(n.item),a=Array.from(o.getChildren()).find((function(e){return"a"===e.name})),s=l(e._definitions);try{for(s.s();!(i=s.n()).done;){var u=i.value,d=kn(u.attributes);if(u.callback(n.attributeNewValue)){var f,h=l(d);try{for(h.s();!(f=h.n()).done;){var p=c(f.value,2),m=p[0],v=p[1];"class"===m?r.writer.addClass(v,a):r.writer.setAttribute(m,v,a)}}catch(e){h.e(e)}finally{h.f()}}else{var g,b=l(d);try{for(b.s();!(g=b.n()).done;){var y=c(g.value,2),k=y[0],w=y[1];"class"===k?r.writer.removeClass(w,a):r.writer.removeAttribute(k,a)}}catch(e){b.e(e)}finally{b.f()}}}}catch(e){s.e(e)}finally{s.f()}}))}}},{key:"length",get:function(){return this._definitions.size}}]),e}(),Tm=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).manualDecorators=new cn,r.automaticDecorators=new Em,r}return m(n,[{key:"restoreManualDecoratorStates",value:function(){var e,t=l(this.manualDecorators);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.value=this._getDecoratorStateFromModel(n.id)}}catch(e){t.e(e)}finally{t.f()}}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=Vl(t.selection.getSelectedBlocks());wu(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.selection.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref"));var r,i=l(this.manualDecorators);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.value=this._getDecoratorStateFromModel(o.id)}}catch(e){i.e(e)}finally{i.f()}}},{key:"execute",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.editor.model,i=r.document.selection,o=[],a=[];for(var s in n)n[s]?o.push(s):a.push(s);r.change((function(n){if(i.isCollapsed){var s=i.getFirstPosition();if(i.hasAttribute("linkHref")){var c=Sm(s,"linkHref",i.getAttribute("linkHref"),r);n.setAttribute("linkHref",e,c),o.forEach((function(e){n.setAttribute(e,!0,c)})),a.forEach((function(e){n.removeAttribute(e,c)})),n.setSelection(n.createPositionAfter(c.end.nodeBefore))}else if(""!==e){var u=kn(i.getAttributes());u.set("linkHref",e),o.forEach((function(e){u.set(e,!0)}));var d=n.createText(e,u);r.insertContent(d,s),n.setSelection(n.createPositionAfter(d))}["linkHref"].concat(o,a).forEach((function(e){n.removeSelectionAttribute(e)}))}else{var f,h=r.schema.getValidRanges(i.getRanges(),"linkHref"),p=[],m=l(i.getSelectedBlocks());try{for(m.s();!(f=m.n()).done;){var v=f.value;r.schema.checkAttribute(v,"linkHref")&&p.push(n.createRangeOn(v))}}catch(e){m.e(e)}finally{m.f()}var g,b=p.slice(),y=l(h);try{for(y.s();!(g=y.n()).done;){var k=g.value;t._isRangeToUpdate(k,p)&&b.push(k)}}catch(e){y.e(e)}finally{y.f()}var w,_=l(b);try{var C=function(){var t=w.value;n.setAttribute("linkHref",e,t),o.forEach((function(e){n.setAttribute(e,!0,t)})),a.forEach((function(e){n.removeAttribute(e,t)}))};for(_.s();!(w=_.n()).done;)C()}catch(e){_.e(e)}finally{_.f()}}}))}},{key:"_getDecoratorStateFromModel",value:function(e){var t=this.editor.model,n=t.document,r=Vl(n.selection.getSelectedBlocks());return wu(r,t.schema)?r.getAttribute(e):n.selection.getAttribute(e)}},{key:"_isRangeToUpdate",value:function(e,t){var n,r=l(t);try{for(r.s();!(n=r.n()).done;){if(n.value.containsRange(e))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}}]),n}(Fl),Dm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=Vl(t.selection.getSelectedBlocks());wu(n,e.schema)?this.isEnabled=e.schema.checkAttribute(n,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref")}},{key:"execute",value:function(){var e=this.editor,t=this.editor.model,n=t.document.selection,r=e.commands.get("link");t.change((function(e){var i,o=l(n.isCollapsed?[Sm(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),t)]:n.getRanges());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(e.removeAttribute("linkHref",a),r){var s,c=l(r.manualDecorators);try{for(c.s();!(s=c.n()).done;){var u=s.value;e.removeAttribute(u.id,a)}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){o.e(e)}finally{o.f()}}))}}]),n}(Fl),Om=function e(t){var n=t.id,r=t.label,i=t.attributes,o=t.defaultValue;h(this,e),this.id=n,this.set("value"),this.defaultValue=o,this.label=r,this.attributes=i};sn(Om,mr),n(97);var Pm="automatic",Im=/^(https?:)?\/\//,jm=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("link",{addTargetToExternalLinks:!1}),r}return m(n,null,[{key:"pluginName",get:function(){return"LinkEditing"}},{key:"requires",get:function(){return[wm,hd,Vu]}}]),m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:yu}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:function(e,t){return yu(ku(e),t)}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:function(e){return e.getAttribute("href")}}}),e.commands.add("link",new Tm(e)),e.commands.add("unlink",new Dm(e));var t=function(e,t){var n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((function(e){return e.label&&n[e.label]&&(e.label=n[e.label]),e})),t}(e.t,function(e){var t=[];if(e)for(var n=0,r=Object.entries(e);n<r.length;n++){var i=c(r[n],2),o=i[0],a=i[1],s=Object.assign({},a,{id:"link"+hu(o)});t.push(s)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(t.filter((function(e){return e.mode===Pm}))),this._enableManualDecorators(t.filter((function(e){return"manual"===e.mode}))),e.plugins.get(wm).registerAttribute("linkHref"),function(e,t,n,r){var i=e.editing.view,o=new Set;i.document.registerPostFixer((function(n){var i=e.model.document.selection,a=!1;if(i.hasAttribute(t)){var s,c=Sm(i.getFirstPosition(),t,i.getAttribute(t),e.model),u=l(e.editing.mapper.toViewRange(c).getItems());try{for(u.s();!(s=u.n()).done;){var d=s.value;d.is("element","a")&&!d.hasClass(r)&&(n.addClass(r,d),o.add(d),a=!0)}}catch(e){u.e(e)}finally{u.f()}}return a})),e.conversion.for("editingDowncast").add((function(e){function t(){i.change((function(e){var t,n=l(o.values());try{for(n.s();!(t=n.n()).done;){var i=t.value;e.removeClass(r,i),o.delete(i)}}catch(e){n.e(e)}finally{n.f()}}))}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})}))}(e,"linkHref",0,"ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}},{key:"_enableAutomaticDecorators",value:function(e){var t=this.editor,n=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:Pm,callback:function(e){return Im.test(e)},attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(e),n.length&&t.conversion.for("downcast").add(n.getDispatcher())}},{key:"_enableManualDecorators",value:function(e){if(e.length){var t=this.editor,n=t.commands.get("link").manualDecorators;e.forEach((function(e){t.model.schema.extend("$text",{allowAttributes:e.id}),n.add(new Om(e)),t.conversion.for("downcast").attributeToElement({model:e.id,view:function(t,r){var i=r.writer;if(t){var o=n.get(e.id).attributes,a=i.createAttributeElement("a",o,{priority:5});return i.setCustomProperty("link",!0,a),a}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:n.get(e.id).attributes},model:{key:e.id}})}))}}},{key:"_enableInsertContentSelectionAttributesFixer",value:function(){var e=this.editor,t=e.model,n=t.document.selection,r=e.commands.get("link");this.listenTo(t,"insertContent",(function(){var e=n.anchor.nodeBefore,i=n.anchor.nodeAfter;n.hasAttribute("linkHref")&&e&&e.hasAttribute("linkHref")&&(i&&i.hasAttribute("linkHref")||t.change((function(e){Nm(e,r.manualDecorators)})))}),{priority:"low"})}},{key:"_enableClickingAfterLink",value:function(){var e=this.editor,t=e.commands.get("link");e.editing.view.addObserver(Ih);var n=!1;this.listenTo(e.editing.view.document,"mousedown",(function(){n=!0})),this.listenTo(e.editing.view.document,"selectionChange",(function(){if(n){n=!1;var r=e.model.document.selection;if(r.isCollapsed&&r.hasAttribute("linkHref")){var i=r.getFirstPosition(),o=Sm(i,"linkHref",r.getAttribute("linkHref"),e.model);(i.isTouching(o.start)||i.isTouching(o.end))&&e.model.change((function(e){Nm(e,t.manualDecorators)}))}}}))}},{key:"_enableTypingOverLink",value:function(){var e,t,n=this.editor,r=n.editing.view;this.listenTo(r.document,"delete",(function(){t=!0}),{priority:"high"}),this.listenTo(n.model,"deleteContent",(function(){var r=n.model.document.selection;r.isCollapsed||(t?t=!1:Rm(n)&&function(e){var t=e.document.selection,n=t.getFirstPosition(),r=t.getLastPosition(),i=n.nodeAfter;return!!i&&(!!i.is("$text")&&(!!i.hasAttribute("linkHref")&&(i===(r.textNode||r.nodeBefore)||Sm(n,"linkHref",i.getAttribute("linkHref"),e).containsRange(e.createRange(n,r),!0))))}(n.model)&&(e=r.getAttributes()))}),{priority:"high"}),this.listenTo(n.model,"insertContent",(function(r,i){var o=c(i,1)[0];t=!1,Rm(n)&&e&&(n.model.change((function(t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=c(n.value,2),a=i[0],s=i[1];t.setAttribute(a,s,o)}}catch(e){r.e(e)}finally{r.f()}})),e=null)}),{priority:"high"})}},{key:"_handleDeleteContentAfterLink",value:function(){var e=this.editor,t=e.model,n=t.document.selection,r=e.editing.view,i=e.commands.get("link"),o=!1,a=!1;this.listenTo(r.document,"delete",(function(e,t){a=t.domEvent.keyCode===Ur.backspace}),{priority:"high"}),this.listenTo(t,"deleteContent",(function(){o=!1;var e=n.getFirstPosition(),r=n.getAttribute("linkHref");if(r){var i=Sm(e,"linkHref",r,t);o=i.containsPosition(e)||i.end.isEqual(e)}}),{priority:"high"}),this.listenTo(t,"deleteContent",(function(){a&&(a=!1,o||e.model.enqueueChange((function(e){Nm(e,i.manualDecorators)})))}),{priority:"low"})}}]),n}(Ll);function Nm(e,t){e.removeSelectionAttribute("linkHref");var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.removeSelectionAttribute(i.id)}}catch(e){r.e(e)}finally{r.f()}}function Rm(e){return e.plugins.get("Input").isInput(e.model.change((function(e){return e.batch})))}var Lm=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType="click",r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo);n(99);var Bm=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;h(this,n),o=t.call(this,e);var a=e.t;o.focusTracker=new Cc,o.keystrokes=new mc,o.urlInputView=o._createUrlInput(i),o.saveButtonView=o._createButton(a("Save"),Kh,"ck-button-save"),o.saveButtonView.type="submit",o.cancelButtonView=o._createButton(a("Cancel"),Gh,"ck-button-cancel","cancel"),o._manualDecoratorSwitches=o._createManualDecoratorSwitches(r),o.children=o._createFormChildren(r.manualDecorators),o._focusables=new Oc,o._focusCycler=new sl({focusables:o._focusables,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});var s=["ck","ck-link-form","ck-responsive-form"];return r.manualDecorators.length&&s.push("ck-link-form_layout-vertical","ck-vertical-form"),o.setTemplate({tag:"form",attributes:{class:s,tabindex:"-1"},children:o.children}),o}return m(n,[{key:"getDecoratorSwitchesState",value:function(){return Array.from(this._manualDecoratorSwitches).reduce((function(e,t){return e[t.name]=t.isOn,e}),{})}},{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),Yh({view:this}),[this.urlInputView].concat(u(this._manualDecoratorSwitches),[this.saveButtonView,this.cancelButtonView]).forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createUrlInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://",t=this.locale.t,n=new Uh(this.locale,Wh);return n.label=t("Link URL"),n.fieldView.placeholder=e+"example.com",n}},{key:"_createButton",value:function(e,t,n,r){var i=new kl(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"_createManualDecoratorSwitches",value:function(e){var t,n=this,r=this.createCollection(),i=l(e.manualDecorators);try{var o=function(){var i=t.value,o=new Sl(n.locale);o.set({name:i.id,label:i.label,withText:!0}),o.bind("isOn").toMany([i,e],"value",(function(e,t){return void 0===t&&void 0===e?i.defaultValue:e})),o.on("execute",(function(){i.set("value",!o.isOn)})),r.add(o)};for(i.s();!(t=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_createFormChildren",value:function(e){var t=this.createCollection();if(t.add(this.urlInputView),e.length){var n=new Xc;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((function(e){return{tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}}})),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(n)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}]),n}(Xc);n(101);var Fm=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),r=t.call(this,e);var i=e.t;return r.focusTracker=new Cc,r.keystrokes=new mc,r.previewButtonView=r._createPreviewButton(),r.unlinkButtonView=r._createButton(i("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562l-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),r.editButtonView=r._createButton(i("Edit link"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.3 17.37l-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506L13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5L9.375 17H19v1.5H8z"/></svg>',"edit"),r.set("href"),r._focusables=new Oc,r._focusCycler=new sl({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[r.previewButtonView,r.editButtonView,r.unlinkButtonView]}),r}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createButton",value:function(e,t,n){var r=new kl(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.delegate("execute").to(this,n),r}},{key:"_createPreviewButton",value:function(){var e=new kl(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",(function(e){return e&&ku(e)})),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",(function(e){return e||n("This link has no URL")})),e.bind("isEnabled").to(this,"href",(function(e){return!!e})),e.template.tag="a",e.template.eventListeners={},e}}]),n}(Xc),zm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',Vm="link-ui",$m=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.editing.view.addObserver(Lm),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=e.plugins.get(Jh),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),e.conversion.for("editingDowncast").markerToHighlight({model:Vm,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:Vm,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}},{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this),this.formView.destroy()}},{key:"_createActionsView",value:function(){var e=this,t=this.editor,n=new Fm(t.locale),r=t.commands.get("link"),i=t.commands.get("unlink");return n.bind("href").to(r,"value"),n.editButtonView.bind("isEnabled").to(r),n.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(n,"edit",(function(){e._addFormView()})),this.listenTo(n,"unlink",(function(){t.execute("unlink"),e._hideUI()})),n.keystrokes.set("Esc",(function(t,n){e._hideUI(),n()})),n.keystrokes.set(bu,(function(t,n){e._addFormView(),n()})),n}},{key:"_createFormView",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),r=t.config.get("link.defaultProtocol"),i=new Bm(t.locale,n,r);return i.urlInputView.fieldView.bind("value").to(n,"value"),i.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e})),i.saveButtonView.bind("isEnabled").to(n),this.listenTo(i,"submit",(function(){var n=_u(i.urlInputView.fieldView.element.value,r);t.execute("link",n,i.getDecoratorSwitchesState()),e._closeFormView()})),this.listenTo(i,"cancel",(function(){e._closeFormView()})),i.keystrokes.set("Esc",(function(t,n){e._closeFormView(),n()})),i}},{key:"_createToolbarLinkButton",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),r=t.t;t.keystrokes.set(bu,(function(t,r){r(),n.isEnabled&&e._showUI(!0)})),t.ui.componentFactory.add("link",(function(t){var i=new kl(t);return i.isEnabled=!0,i.label=r("Link"),i.icon=zm,i.keystroke=bu,i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(n,"isEnabled"),i.bind("isOn").to(n,"value",(function(e){return!!e})),e.listenTo(i,"execute",(function(){return e._showUI(!0)})),i}))}},{key:"_enableUserBalloonInteractions",value:function(){var e=this,t=this.editor.editing.view.document;this.listenTo(t,"click",(function(){e._getSelectedLinkElement()&&e._showUI()})),this.editor.keystrokes.set("Tab",(function(t,n){e._areActionsVisible&&!e.actionsView.focusTracker.isFocused&&(e.actionsView.focus(),n())}),{priority:"high"}),this.editor.keystrokes.set("Esc",(function(t,n){e._isUIVisible&&(e._hideUI(),n())})),Ml({emitter:this.formView,activator:function(){return e._isUIInPanel},contextElements:[this._balloon.view.element],callback:function(){return e._hideUI()}})}},{key:"_addActionsView",value:function(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}},{key:"_addFormView",value:function(){if(!this._isFormInPanel){var e=this.editor.commands.get("link");this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.urlInputView.fieldView.element.value=e.value||""}}},{key:"_closeFormView",value:function(){var e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}},{key:"_removeFormView",value:function(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}},{key:"_showUI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}},{key:"_hideUI",value:function(){if(this._isUIInPanel){var e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}}},{key:"_startUpdatingUI",value:function(){var e=this,t=this.editor,n=t.editing.view.document,r=this._getSelectedLinkElement(),i=a(),o=function(){var t=e._getSelectedLinkElement(),n=a();r&&!t||!r&&n!==i?e._hideUI():e._isUIVisible&&e._balloon.updatePosition(e._getBalloonPositionData()),r=t,i=n};function a(){return n.selection.focus.getAncestors().reverse().find((function(e){return e.is("element")}))}this.listenTo(t.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}},{key:"_getBalloonPositionData",value:function(){var e=this.editor.editing.view,t=this.editor.model,n=e.document,r=null;if(t.markers.has(Vm)){var i=Array.from(this.editor.editing.mapper.markerNameToElements(Vm)),o=e.createRange(e.createPositionBefore(i[0]),e.createPositionAfter(i[i.length-1]));r=e.domConverter.viewRangeToDom(o)}else{var a=this._getSelectedLinkElement(),s=n.selection.getFirstRange();r=a?e.domConverter.mapViewToDom(a):e.domConverter.viewRangeToDom(s)}return{target:r}}},{key:"_getSelectedLinkElement",value:function(){var e=this.editor.editing.view,t=e.document.selection;if(t.isCollapsed)return Hm(t.getFirstPosition());var n=t.getFirstRange().getTrimmed(),r=Hm(n.start),i=Hm(n.end);return r&&r==i&&e.createRangeIn(r).getTrimmed().isEqual(n)?r:null}},{key:"_showFakeVisualSelection",value:function(){var e=this.editor.model;e.change((function(t){var n=e.document.selection.getFirstRange();if(e.markers.has(Vm))t.updateMarker(Vm,{range:n});else if(n.start.isAtEnd){var r=function e(t,n,r){var i=[t.start.path[0]+1,0],o=r.createPositionFromPath(t.start.root,i,"toNext"),a=r.createRange(o,t.end);return a.start.path[0]>t.end.path[0]?r.createRange(n):o.isAtStart&&o.isAtEnd?e(a,n,r):a}(n,e.document.selection.focus,t);t.addMarker(Vm,{usingOperation:!1,affectsData:!1,range:r})}else t.addMarker(Vm,{usingOperation:!1,affectsData:!1,range:n})}))}},{key:"_hideFakeVisualSelection",value:function(){var e=this.editor.model;e.markers.has(Vm)&&e.change((function(e){e.removeMarker(Vm)}))}},{key:"_isFormInPanel",get:function(){return this._balloon.hasView(this.formView)}},{key:"_areActionsInPanel",get:function(){return this._balloon.hasView(this.actionsView)}},{key:"_areActionsVisible",get:function(){return this._balloon.visibleView===this.actionsView}},{key:"_isUIInPanel",get:function(){return this._isFormInPanel||this._areActionsInPanel}},{key:"_isUIVisible",get:function(){return this._balloon.visibleView==this.formView||this._areActionsVisible}}],[{key:"requires",get:function(){return[Jh]}},{key:"pluginName",get:function(){return"LinkUI"}}]),n}(Ll);function Hm(e){return e.getAncestors().find((function(e){return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))}var Um=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("image",{allowAttributes:["linkHref"]}),e.conversion.for("upcast").add((function(e){e.on("element:a",(function(e,t,n){var r=t.viewItem,i=Km(r);if(i){if(n.consumable.consume(r,{attributes:["href"]})){var o=r.getAttribute("href");if(o){var a=t.modelCursor.parent;if(!a.is("element","image")){var s=n.convertItem(i,t.modelCursor);t.modelRange=s.modelRange,t.modelCursor=s.modelCursor,a=t.modelCursor.nodeBefore}a&&a.is("element","image")&&n.writer.setAttribute("linkHref",o,a)}}}}),{priority:"high"})})),e.conversion.for("editingDowncast").add(qm({attachIconIndicator:!0})),e.conversion.for("dataDowncast").add(qm({attachIconIndicator:!1})),this._enableAutomaticDecorators(),this._enableManualDecorators()}},{key:"_enableAutomaticDecorators",value:function(){var e=this.editor,t=e.commands.get("link").automaticDecorators;t.length&&e.conversion.for("downcast").add(t.getDispatcherForLinkedImage())}},{key:"_enableManualDecorators",value:function(){var e,t=this.editor,n=t.commands.get("link"),r=n.manualDecorators,i=l(n.manualDecorators);try{for(i.s();!(e=i.n()).done;){var o=e.value;t.model.schema.extend("image",{allowAttributes:o.id}),t.conversion.for("downcast").add(Wm(r,o)),t.conversion.for("upcast").add(Ym(r,o))}}catch(e){i.e(e)}finally{i.f()}}}],[{key:"requires",get:function(){return[Oh,jm]}},{key:"pluginName",get:function(){return"LinkImageEditing"}}]),n}(Ll);function qm(e){return function(t){t.on("attribute:linkHref:image",(function(t,n,r){var i,o=r.mapper.toViewElement(n.item),a=r.writer,s=Array.from(o.getChildren()).find((function(e){return"a"===e.name}));if(e.attachIconIndicator&&(i=a.createUIElement("span",{class:"ck ck-link-image_icon"},(function(e){var t=this.toDomElement(e);return t.innerHTML=zm,t}))),s)if(n.attributeNewValue)a.setAttribute("href",n.attributeNewValue,s);else{var c=Array.from(s.getChildren()).find((function(e){return"img"===e.name}));a.move(a.createRangeOn(c),a.createPositionAt(o,0)),a.remove(s)}else{var l=a.createContainerElement("a",{href:n.attributeNewValue});a.insert(a.createPositionAt(o,0),l),a.move(a.createRangeOn(o.getChild(1)),a.createPositionAt(l,0)),i&&a.insert(a.createPositionAt(l,"end"),i)}}))}}function Wm(e,t){return function(n){n.on("attribute:".concat(t.id,":image"),(function(n,r,i){var o,a=e.get(t.id).attributes,s=i.mapper.toViewElement(r.item),u=Array.from(s.getChildren()).find((function(e){return"a"===e.name})),d=l(kn(a));try{for(d.s();!(o=d.n()).done;){var f=c(o.value,2),h=f[0],p=f[1];i.writer.setAttribute(h,p,u)}}catch(e){d.e(e)}finally{d.f()}}))}}function Ym(e,t){return function(n){n.on("element:a",(function(n,r,i){var o=r.viewItem;if(Km(o)){var a={attributes:e.get(t.id).attributes},s=new wn(a).match(o);if(s&&i.consumable.consume(o,s.match)){var c=r.modelCursor.nodeBefore||r.modelCursor.parent;i.writer.setAttribute(t.id,!0,c)}}}),{priority:"high"})}}function Km(e){return Array.from(e.getChildren()).find((function(e){return"img"===e.name}))}var Gm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor.editing.view.document;this.listenTo(e,"click",(function(t,n){Qm(e.selection.getSelectedElement())&&n.preventDefault()})),this._createToolbarLinkImageButton()}},{key:"_createToolbarLinkImageButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("linkImage",(function(r){var i=new kl(r),o=t.plugins.get("LinkUI"),a=t.commands.get("link");return i.set({isEnabled:!0,label:n("Link image"),icon:zm,keystroke:bu,tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(a,"isEnabled"),i.bind("isOn").to(a,"value",(function(e){return!!e})),e.listenTo(i,"execute",(function(){Qm(t.editing.view.document.selection.getSelectedElement())?o._addActionsView():o._showUI(!0)})),i}))}}],[{key:"requires",get:function(){return[ip,jm,$m]}},{key:"pluginName",get:function(){return"LinkImageUI"}}]),n}(Ll);function Qm(e){return!(!e||!Ch(e))&&e.getChild(0).is("element","a")}n(103);var Xm=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).type=r,i}return m(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document,r=Array.from(n.selection.getSelectedBlocks()).filter((function(e){return Zm(e,t.schema)})),i=!0===this.value;t.change((function(t){if(i){for(var n=r[r.length-1].nextSibling,o=Number.POSITIVE_INFINITY,a=[];n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){var s=n.getAttribute("listIndent");s<o&&(o=s);var c=s-o;a.push({element:n,listIndent:c}),n=n.nextSibling}var u,d=l(a=a.reverse());try{for(d.s();!(u=d.n()).done;){var f=u.value;t.setAttribute("listIndent",f.listIndent,f.element)}}catch(e){d.e(e)}finally{d.f()}}if(!i){var h,p=Number.POSITIVE_INFINITY,m=l(r);try{for(m.s();!(h=m.n()).done;){var v=h.value;v.is("element","listItem")&&v.getAttribute("listIndent")<p&&(p=v.getAttribute("listIndent"))}}catch(e){m.e(e)}finally{m.f()}Jm(r,!0,p=0===p?1:p),Jm(r,!1,p)}var g,b=l(r.reverse());try{for(b.s();!(g=b.n()).done;){var y=g.value;i&&"listItem"==y.name?t.rename(y,"paragraph"):i||"listItem"==y.name?i||"listItem"!=y.name||y.getAttribute("listType")==e.type||t.setAttribute("listType",e.type,y):(t.setAttributes({listType:e.type,listIndent:0},y),t.rename(y,"listItem"))}}catch(e){b.e(e)}finally{b.f()}e.fire("_executeCleanup",r)}))}},{key:"_getValue",value:function(){var e=Vl(this.editor.model.document.selection.getSelectedBlocks());return!!e&&e.is("element","listItem")&&e.getAttribute("listType")==this.type}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.document.selection,t=this.editor.model.schema,n=Vl(e.getSelectedBlocks());return!!n&&Zm(n,t)}}]),n}(Fl);function Jm(e,t,n){var r=t?e[0]:e[e.length-1];if(r.is("element","listItem"))for(var i=r[t?"previousSibling":"nextSibling"],o=r.getAttribute("listIndent");i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=n;)o>i.getAttribute("listIndent")&&(o=i.getAttribute("listIndent")),i.getAttribute("listIndent")==o&&e[t?"unshift":"push"](i),i=i[t?"previousSibling":"nextSibling"]}function Zm(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}var ev=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e))._indentBy="forward"==r?1:-1,i}return m(n,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document,r=Array.from(n.selection.getSelectedBlocks());t.change((function(t){for(var n=r[r.length-1],i=n.nextSibling;i&&"listItem"==i.name&&i.getAttribute("listIndent")>n.getAttribute("listIndent");)r.push(i),i=i.nextSibling;e._indentBy<0&&(r=r.reverse());var o,a=l(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=s.getAttribute("listIndent")+e._indentBy;c<0?t.rename(s,"paragraph"):t.setAttribute("listIndent",c,s)}}catch(e){a.e(e)}finally{a.f()}e.fire("_executeCleanup",r)}))}},{key:"_checkEnabled",value:function(){var e=Vl(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){for(var t=e.getAttribute("listIndent"),n=e.getAttribute("listType"),r=e.previousSibling;r&&r.is("element","listItem")&&r.getAttribute("listIndent")>=t;){if(r.getAttribute("listIndent")==t)return r.getAttribute("listType")==n;r=r.previousSibling}return!1}return!0}}]),n}(Fl);function tv(e,t,n,r){var i=t.parent,o=n.mapper,a=n.writer,s=o.toViewPosition(r.createPositionBefore(e)),c=iv(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),u=e.previousSibling;if(c&&c.getAttribute("listIndent")==e.getAttribute("listIndent")){var d=o.toViewElement(c);s=a.breakContainer(a.createPositionAfter(d))}else if(u&&"listItem"==u.name){s=o.toViewPosition(r.createPositionAt(u,"end"));var f=o.findMappedViewAncestor(s),h=function(e){var t,n=l(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;if("ul"==r.name||"ol"==r.name)return r}}catch(e){n.e(e)}finally{n.f()}return null}(f);s=h?a.createPositionBefore(h):a.createPositionAt(f,"end")}else s=o.toViewPosition(r.createPositionBefore(e));if(s=rv(s),a.insert(s,i),u&&"listItem"==u.name){var p,m=o.toViewElement(u),v=a.createRange(a.createPositionAt(m,0),s).getWalker({ignoreElementEnd:!0}),g=l(v);try{for(g.s();!(p=g.n()).done;){var b=p.value;if(b.item.is("element","li")){var y=a.breakContainer(a.createPositionBefore(b.item)),k=b.item.parent,w=a.createPositionAt(t,"end");nv(a,w.nodeBefore,w.nodeAfter),a.move(a.createRangeOn(k),w),v.position=y}}}catch(e){g.e(e)}finally{g.f()}}else{var _=i.nextSibling;if(_&&(_.is("element","ul")||_.is("element","ol"))){var C,A=null,x=l(_.getChildren());try{for(x.s();!(C=x.n()).done;){var S=C.value,M=o.toModelElement(S);if(!(M&&M.getAttribute("listIndent")>e.getAttribute("listIndent")))break;A=S}}catch(e){x.e(e)}finally{x.f()}A&&(a.breakContainer(a.createPositionAfter(A)),a.move(a.createRangeOn(A.parent),a.createPositionAt(t,"end")))}}nv(a,i,i.nextSibling),nv(a,i.previousSibling,i)}function nv(e,t,n){return!t||!n||"ul"!=t.name&&"ol"!=t.name||t.name!=n.name||t.getAttribute("class")!==n.getAttribute("class")?null:e.mergeContainers(e.createPositionAfter(t))}function rv(e){return e.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))}function iv(e,t){for(var n=!!t.sameIndent,r=!!t.smallerIndent,i=t.listIndent,o=e;o&&"listItem"==o.name;){var a=o.getAttribute("listIndent");if(n&&i==a||r&&i>a)return o;o="forward"===t.direction?o.nextSibling:o.previousSibling}return null}function ov(e,t,n,r){e.ui.componentFactory.add(t,(function(i){var o=e.commands.get(t),a=new kl(i);return a.set({label:n,icon:r,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),a.on("execute",(function(){e.execute(t),e.editing.view.focus()})),a}))}function av(){var e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:lr.call(this)}function sv(e){return function(t,n,r){var i=r.consumable;if(i.test(n.item,"insert")&&i.test(n.item,"attribute:listType")&&i.test(n.item,"attribute:listIndent")){i.consume(n.item,"insert"),i.consume(n.item,"attribute:listType"),i.consume(n.item,"attribute:listIndent");var o=n.item;tv(o,function(e,t){var n=t.mapper,r=t.writer,i="numbered"==e.getAttribute("listType")?"ol":"ul",o=function(e){var t=e.createContainerElement("li");return t.getFillerOffset=av,t}(r),a=r.createContainerElement(i,null);return r.insert(r.createPositionAt(a,0),o),n.bindElements(e,o),o}(o,r),r,e)}}}function cv(e,t,n){if(n.consumable.consume(t.item,"attribute:listType")){var r=n.mapper.toViewElement(t.item),i=n.writer;i.breakContainer(i.createPositionBefore(r)),i.breakContainer(i.createPositionAfter(r));var o=r.parent,a="numbered"==t.attributeNewValue?"ol":"ul";i.rename(a,o)}}function lv(e,t,n){var r=n.mapper.toViewElement(t.item).parent,i=n.writer;nv(i,r,r.nextSibling),nv(i,r.previousSibling,r);var o,a=l(t.item.getChildren());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.consumable.consume(s,"insert")}}catch(e){a.e(e)}finally{a.f()}}function uv(e,t,n){if("listItem"!=t.item.name){for(var r=n.mapper.toViewPosition(t.range.start),i=n.writer,o=[];("ul"==r.parent.name||"ol"==r.parent.name)&&"li"==(r=i.breakContainer(r)).parent.name;){var a=r,s=i.createPositionAt(r.parent,"end");if(!a.isEqual(s)){var c=i.remove(i.createRange(a,s));o.push(c)}r=i.createPositionAfter(r.parent)}if(o.length>0){for(var l=0;l<o.length;l++){var u=r.nodeBefore;if(r=i.insert(r,o[l]).end,l>0){var d=nv(i,u,u.nextSibling);d&&d.parent==u&&r.offset--}}nv(i,r.nodeBefore,r.nodeAfter)}}}function dv(e,t,n){var r=n.mapper.toViewPosition(t.position),i=r.nodeBefore,o=r.nodeAfter;nv(n.writer,i,o)}function fv(e,t,n){if(n.consumable.consume(t.viewItem,{name:!0})){var r=n.writer,i=r.createElement("listItem"),o=function(e){for(var t=0,n=e.parent;n;){if(n.is("element","li"))t++;else{var r=n.previousSibling;r&&r.is("element","li")&&t++}n=n.parent}return t}(t.viewItem);r.setAttribute("listIndent",o,i);var a=t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted";if(r.setAttribute("listType",a,i),!n.safeInsert(i,t.modelCursor))return;var s=function(e,t,n){var r,i=n.writer,o=n.schema,a=i.createPositionAfter(e),s=l(t);try{for(s.s();!(r=s.n()).done;){var c=r.value;if("ul"==c.name||"ol"==c.name)a=n.convertItem(c,a).modelCursor;else{var u=n.convertItem(c,i.createPositionAt(e,"end")),d=u.modelRange.start.nodeAfter;d&&d.is("element")&&!o.checkChild(e,d.name)&&(e=u.modelCursor.parent.is("element","listItem")?u.modelCursor.parent:gv(u.modelCursor),a=i.createPositionAfter(e))}}}catch(e){s.e(e)}finally{s.f()}return a}(i,t.viewItem.getChildren(),n);t.modelRange=r.createRange(t.modelCursor,s),n.updateConversionResult(i,t)}}function hv(e,t,n){if(n.consumable.test(t.viewItem,{name:!0}))for(var r=0,i=Array.from(t.viewItem.getChildren());r<i.length;r++){var o=i[r];!o.is("element","li")&&!yv(o)&&o._remove()}}function pv(e,t,n){if(n.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;var r,i=!1,o=!0,a=l(u(t.viewItem.getChildren()));try{for(a.s();!(r=a.n()).done;){var s=r.value;i&&!yv(s)&&s._remove(),s.is("$text")?(o&&(s._data=s.data.replace(/^\s+/,"")),s.nextSibling&&!yv(s.nextSibling)||(s._data=s.data.replace(/\s+$/,""))):yv(s)&&(i=!0),o=!1}}catch(e){a.e(e)}finally{a.f()}}}function mv(e){return function(t,n){if(!n.isPhantom){var r=n.modelPosition.nodeBefore;if(r&&r.is("element","listItem")){var i,o=n.mapper.toViewElement(r),a=o.getAncestors().find(yv),s=l(e.createPositionAt(o,0).getWalker());try{for(s.s();!(i=s.n()).done;){var c=i.value;if("elementStart"==c.type&&c.item.is("element","li")){n.viewPosition=c.previousPosition;break}if("elementEnd"==c.type&&c.item==a){n.viewPosition=c.nextPosition;break}}}catch(e){s.e(e)}finally{s.f()}}}}}function vv(e,t){var n,r=c(t,2),i=r[0],o=r[1],a=i.is("documentFragment")?i.getChild(0):i;if(n=o?this.createSelection(o):this.document.selection,a&&a.is("element","listItem")){var s=n.getFirstPosition(),l=null;if(s.parent.is("element","listItem")?l=s.parent:s.nodeBefore&&s.nodeBefore.is("element","listItem")&&(l=s.nodeBefore),l){var u=l.getAttribute("listIndent");if(u>0)for(;a&&a.is("element","listItem");)a._setAttribute("listIndent",a.getAttribute("listIndent")+u),a=a.nextSibling}}}function gv(e){var t,n=new Qo({startPosition:e});do{t=n.next()}while(!t.value.item.is("element","listItem"));return t.value.item}function bv(e,t,n,r,i,o){var a,s=iv(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e,foo:"b"}),c=i.mapper,l=i.writer,d=s?s.getAttribute("listIndent"):null;if(s)if(d==e){var f=c.toViewElement(s).parent;a=l.createPositionAfter(f)}else{var h=o.createPositionAt(s,"end");a=c.toViewPosition(h)}else a=n;a=rv(a);for(var p=0,m=u(r.getChildren());p<m.length;p++){var v=m[p];yv(v)&&(a=l.move(l.createRangeOn(v),a).end,nv(l,v,v.nextSibling),nv(l,v.previousSibling,v))}}function yv(e){return e.is("element","ol")||e.is("element","ul")}var kv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});var n,r=t.data,i=t.editing;t.model.document.registerPostFixer((function(e){return function(e,t){var n,r=e.document.differ.getChanges(),i=new Map,o=!1,a=l(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("insert"==s.type&&"listItem"==s.name)m(s.position);else if("insert"==s.type&&"listItem"!=s.name){if("$text"!=s.name){var c=s.position.nodeAfter;c.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",c),o=!0),c.hasAttribute("listType")&&(t.removeAttribute("listType",c),o=!0),c.hasAttribute("listStyle")&&(t.removeAttribute("listStyle",c),o=!0);var u,d=l(Array.from(e.createRangeIn(c)).filter((function(e){return e.item.is("element","listItem")})));try{for(d.s();!(u=d.n()).done;){m(u.value.previousPosition)}}catch(e){d.e(e)}finally{d.f()}}m(s.position.getShiftedBy(s.length))}else"remove"==s.type&&"listItem"==s.name?m(s.position):("attribute"==s.type&&"listIndent"==s.attributeKey||"attribute"==s.type&&"listType"==s.attributeKey)&&m(s.range.start)}}catch(e){a.e(e)}finally{a.f()}var f,h=l(i.values());try{for(h.s();!(f=h.n()).done;){var p=f.value;v(p),g(p)}}catch(e){h.e(e)}finally{h.f()}return o;function m(e){var t=e.nodeBefore;if(t&&t.is("element","listItem")){var n=t;if(i.has(n))return;for(var r=n.previousSibling;r&&r.is("element","listItem");r=n.previousSibling)if(n=r,i.has(n))return;i.set(t,n)}else{var o=e.nodeAfter;o&&o.is("element","listItem")&&i.set(o,o)}}function v(e){for(var n=0,r=null;e&&e.is("element","listItem");){var i=e.getAttribute("listIndent");if(i>n){var a=void 0;null===r?(r=i-n,a=n):(r>i&&(r=i),a=i-r),t.setAttribute("listIndent",a,e),o=!0}else r=null,n=e.getAttribute("listIndent")+1;e=e.nextSibling}}function g(e){for(var n=[],r=null;e&&e.is("element","listItem");){var i=e.getAttribute("listIndent");if(r&&r.getAttribute("listIndent")>i&&(n=n.slice(0,i+1)),0!=i)if(n[i]){var a=n[i];e.getAttribute("listType")!=a&&(t.setAttribute("listType",a,e),o=!0)}else n[i]=e.getAttribute("listType");r=e,e=e.nextSibling}}}(t.model,e)})),i.mapper.registerViewToModelLength("li",wv),r.mapper.registerViewToModelLength("li",wv),i.mapper.on("modelToViewPosition",mv(i.view)),i.mapper.on("viewToModelPosition",(n=t.model,function(e,t){var r=t.viewPosition,i=r.parent,o=t.mapper;if("ul"==i.name||"ol"==i.name){if(r.isAtEnd){var a=o.toModelElement(r.nodeBefore),s=o.getModelLength(r.nodeBefore);t.modelPosition=n.createPositionBefore(a).getShiftedBy(s)}else{var c=o.toModelElement(r.nodeAfter);t.modelPosition=n.createPositionBefore(c)}e.stop()}else if("li"==i.name&&r.nodeBefore&&("ul"==r.nodeBefore.name||"ol"==r.nodeBefore.name)){for(var l=o.toModelElement(i),u=1,d=r.nodeBefore;d&&yv(d);)u+=o.getModelLength(d),d=d.previousSibling;t.modelPosition=n.createPositionBefore(l).getShiftedBy(u),e.stop()}})),r.mapper.on("modelToViewPosition",mv(i.view)),t.conversion.for("editingDowncast").add((function(e){e.on("insert",uv,{priority:"high"}),e.on("insert:listItem",sv(t.model)),e.on("attribute:listType:listItem",cv,{priority:"high"}),e.on("attribute:listType:listItem",lv,{priority:"low"}),e.on("attribute:listIndent:listItem",function(e){return function(t,n,r){if(r.consumable.consume(n.item,"attribute:listIndent")){var i=r.mapper.toViewElement(n.item),o=r.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));var a=i.parent,s=a.previousSibling,c=o.createRangeOn(a);o.remove(c),s&&s.nextSibling&&nv(o,s,s.nextSibling),bv(n.attributeOldValue+1,n.range.start,c.start,i,r,e),tv(n.item,i,r,e);var u,d=l(n.item.getChildren());try{for(d.s();!(u=d.n()).done;){var f=u.value;r.consumable.consume(f,"insert")}}catch(e){d.e(e)}finally{d.f()}}}}(t.model)),e.on("remove:listItem",function(e){return function(t,n,r){var i=r.mapper.toViewPosition(n.position).getLastMatchingPosition((function(e){return!e.item.is("element","li")})).nodeAfter,o=r.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));var a=i.parent,s=a.previousSibling,c=o.createRangeOn(a),u=o.remove(c);s&&s.nextSibling&&nv(o,s,s.nextSibling),bv(r.mapper.toModelElement(i).getAttribute("listIndent")+1,n.position,c.start,i,r,e);var d,f=l(o.createRangeIn(u).getItems());try{for(f.s();!(d=f.n()).done;){var h=d.value;r.mapper.unbindViewElement(h)}}catch(e){f.e(e)}finally{f.f()}t.stop()}}(t.model)),e.on("remove",dv,{priority:"low"})})),t.conversion.for("dataDowncast").add((function(e){e.on("insert",uv,{priority:"high"}),e.on("insert:listItem",sv(t.model))})),t.conversion.for("upcast").add((function(e){e.on("element:ul",hv,{priority:"high"}),e.on("element:ol",hv,{priority:"high"}),e.on("element:li",pv,{priority:"high"}),e.on("element:li",fv)})),t.model.on("insertContent",vv,{priority:"high"}),t.commands.add("numberedList",new Xm(t,"numbered")),t.commands.add("bulletedList",new Xm(t,"bulleted")),t.commands.add("indentList",new ev(t,"forward")),t.commands.add("outdentList",new ev(t,"backward"));var o=i.view.document;this.listenTo(o,"enter",(function(t,n){var r=e.editor.model.document,i=r.selection.getLastPosition().parent;r.selection.isCollapsed&&"listItem"==i.name&&i.isEmpty&&(e.editor.execute("outdentList"),n.preventDefault(),t.stop())})),this.listenTo(o,"delete",(function(t,n){if("backward"===n.direction){var r=e.editor.model.document.selection;if(r.isCollapsed){var i=r.getFirstPosition();if(i.isAtStart){var o=i.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(e.editor.execute("outdentList"),n.preventDefault(),t.stop()))}}}}),{priority:"high"});var a=function(t){return function(n,r){e.editor.commands.get(t).isEnabled&&(e.editor.execute(t),r())}};t.keystrokes.set("Tab",a("indentList")),t.keystrokes.set("Shift+Tab",a("outdentList"))}},{key:"afterInit",value:function(){var e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand(e.get("indentList")),n&&n.registerChildCommand(e.get("outdentList"))}}],[{key:"pluginName",get:function(){return"ListEditing"}},{key:"requires",get:function(){return[Ff]}}]),n}(Ll);function wv(e){var t,n=1,r=l(e.getChildren());try{for(r.s();!(t=r.n()).done;){var i=t.value;if("ul"==i.name||"ol"==i.name){var o,a=l(i.getChildren());try{for(a.s();!(o=a.n()).done;){n+=wv(o.value)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){r.e(e)}finally{r.f()}return n}var _v=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor.t;ov(this.editor,"numberedList",e("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),ov(this.editor,"bulletedList",e("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}]),n}(Ll);function Cv(e,t){return function(e){e.on("attribute:url:media",n)};function n(n,r,i){if(i.consumable.consume(r.item,n.name)){var o=r.attributeNewValue,a=i.writer,s=i.mapper.toViewElement(r.item),c=u(s.getChildren()).find((function(e){return e.getCustomProperty("media-content")}));a.remove(c);var l=e.getMediaViewElement(a,o,t);a.insert(a.createPositionAt(s,0),l)}}}function Av(e){var t=e.getSelectedElement();return t&&function(e){return!!e.getCustomProperty("media")&&dh(e)}(t)?t:null}function xv(e,t,n,r){var i=e.createContainerElement("figure",{class:"media"});return e.insert(e.createPositionAt(i,0),t.getMediaViewElement(e,n,r)),i}function Sv(e){var t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function Mv(e,t,n){e.change((function(r){var i=r.createElement("media",{url:t});e.insertContent(i,n),r.setSelection(i,"on")}))}var Ev=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema,r=vh(t,e),i=Sv(t),o=r.parent;o.isEmpty&&!e.schema.isLimit(o)&&(o=o.parent),this.value=i?i.getAttribute("url"):null,this.isEnabled=n.checkChild(o,"media")}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection,r=Sv(n);if(r)t.change((function(t){t.setAttribute("url",e,r)}));else{var i=vh(n,t);Mv(t,e,i)}}}]),n}(Fl),Tv=function(){function e(t,n){h(this,e);var r=n.providers,i=n.extraProviders||[],o=new Set(n.removeProviders),a=r.concat(i).filter((function(e){var t=e.name;return t?!o.has(t):(Object(Kt.c)("media-embed-no-provider-name",{provider:e}),!1)}));this.locale=t,this.providerDefinitions=a}return m(e,[{key:"hasMedia",value:function(e){return!!this._getMedia(e)}},{key:"getMediaViewElement",value:function(e,t,n){return this._getMedia(t).getViewElement(e,n)}},{key:"_getMedia",value:function(e){if(!e)return new Dv(this.locale);e=e.trim();var t,n=l(this.providerDefinitions);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.html,o=r.url;Array.isArray(o)||(o=[o]);var a,s=l(o);try{for(s.s();!(a=s.n()).done;){var c=a.value,u=this._getUrlMatches(e,c);if(u)return new Dv(this.locale,e,u,i)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"_getUrlMatches",value:function(e,t){var n=e.match(t);if(n)return n;var r=e.replace(/^https?:\/\//,"");return(n=r.match(t))||((n=(r=r.replace(/^www\./,"")).match(t))||null)}}]),e}(),Dv=function(){function e(t,n,r,i){h(this,e),this.url=this._getValidUrl(n),this._t=t.t,this._match=r,this._previewRenderer=i}return m(e,[{key:"getViewElement",value:function(e,t){var n,r={};if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(r["data-oembed-url"]=this.url),t.renderForEditingView&&(r.class="ck-media__wrapper");var i=this._getPreviewHtml(t);n=e.createRawElement("div",r,(function(e){e.innerHTML=i}))}else this.url&&(r.url=this.url),n=e.createEmptyElement("oembed",r);return e.setCustomProperty("media-content",!0,n),n}},{key:"_getPreviewHtml",value:function(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}},{key:"_getPlaceholderHtml",value:function(){var e=new yl,t=new bl;return e.text=this._t("Open media in new tab"),t.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',t.viewBox="0 0 64 42",new Pc({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},e]}]}).render().outerHTML}},{key:"_getValidUrl",value:function(e){return e?e.match(/^https?/)?e:"https://"+e:null}}]),e}();n(105);var Ov=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("mediaEmbed",{providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>')}},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>')}},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>')}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>')}},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:/^google\.com\/maps/},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),r.registry=new Tv(e.locale,e.config.get("mediaEmbed")),r}return m(n,null,[{key:"pluginName",get:function(){return"MediaEmbedEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,r=e.conversion,i=e.config.get("mediaEmbed.previewsInData"),o=this.registry;e.commands.add("mediaEmbed",new Ev(e)),t.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),r.for("dataDowncast").elementToElement({model:"media",view:function(e,t){var n=t.writer,r=e.getAttribute("url");return xv(n,o,r,{renderMediaPreview:r&&i})}}),r.for("dataDowncast").add(Cv(o,{renderMediaPreview:i})),r.for("editingDowncast").elementToElement({model:"media",view:function(e,t){var r=t.writer,i=e.getAttribute("url");return function(e,t,n){return t.setCustomProperty("media",!0,e),fh(e,t,{label:n})}(xv(r,o,i,{renderForEditingView:!0}),r,n("media widget"))}}),r.for("editingDowncast").add(Cv(o,{renderForEditingView:!0})),r.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:function(e,t){var n=t.writer,r=e.getAttribute("url");if(o.hasMedia(r))return n.createElement("media",{url:r})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:function(e,t){var n=t.writer,r=e.getAttribute("data-oembed-url");if(o.hasMedia(r))return n.createElement("media",{url:r})}})}}]),n}(Ll),Pv=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=%]+$/,Iv=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._timeoutId=null,r._positionToInsert=null,r}return m(n,null,[{key:"requires",get:function(){return[Vu,Bd]}},{key:"pluginName",get:function(){return"AutoMediaEmbed"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document;this.listenTo(t.plugins.get(Vu),"inputTransformation",(function(){var t=n.selection.getFirstRange(),r=Qs.fromPosition(t.start);r.stickiness="toPrevious";var i=Qs.fromPosition(t.end);i.stickiness="toNext",n.once("change:data",(function(){e._embedMediaBetweenPositions(r,i),r.detach(),i.detach()}),{priority:"high"})})),t.commands.get("undo").on("execute",(function(){e._timeoutId&&(Pi.window.clearTimeout(e._timeoutId),e._positionToInsert.detach(),e._timeoutId=null,e._positionToInsert=null)}),{priority:"high"})}},{key:"_embedMediaBetweenPositions",value:function(e,t){var n,r=this,i=this.editor,o=i.plugins.get(Ov).registry,a=new ma(e,t),s=a.getWalker({ignoreElementEnd:!0}),c="",u=l(s);try{for(u.s();!(n=u.n()).done;){var d=n.value;d.item.is("$textProxy")&&(c+=d.item.data)}}catch(e){u.e(e)}finally{u.f()}(c=c.trim()).match(Pv)&&o.hasMedia(c)&&i.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Qs.fromPosition(e),this._timeoutId=Pi.window.setTimeout((function(){i.model.change((function(e){var t;r._timeoutId=null,e.remove(a),a.detach(),"$graveyard"!==r._positionToInsert.root.rootName&&(t=r._positionToInsert),Mv(i.model,c,t),r._positionToInsert.detach(),r._positionToInsert=null}))}),100)):a.detach()}}]),n}(Ll);n(107);var jv=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n),i=t.call(this,r);var o=r.t;return i.focusTracker=new Cc,i.keystrokes=new mc,i.set("mediaURLInputValue",""),i.urlInputView=i._createUrlInput(),i.saveButtonView=i._createButton(o("Save"),Kh,"ck-button-save"),i.saveButtonView.type="submit",i.saveButtonView.bind("isEnabled").to(y(i),"mediaURLInputValue",(function(e){return!!e})),i.cancelButtonView=i._createButton(o("Cancel"),Gh,"ck-button-cancel","cancel"),i._focusables=new Oc,i._focusCycler=new sl({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i._validators=e,i.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[i.urlInputView,i.saveButtonView,i.cancelButtonView]}),i}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),Yh({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);var t=function(e){return e.stopPropagation()};this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t),this.listenTo(this.urlInputView.element,"selectstart",(function(e,t){t.stopPropagation()}),{priority:"high"})}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"isValid",value:function(){this.resetFormStatus();var e,t=l(this._validators);try{for(t.s();!(e=t.n()).done;){var n=(0,e.value)(this);if(n)return this.urlInputView.errorText=n,!1}}catch(e){t.e(e)}finally{t.f()}return!0}},{key:"resetFormStatus",value:function(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}},{key:"_createUrlInput",value:function(){var e=this,t=this.locale.t,n=new Uh(this.locale,Wh),r=n.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),n.label=t("Media URL"),n.infoText=this._urlInputViewInfoDefault,r.placeholder="https://example.com",r.on("input",(function(){n.infoText=r.element.value?e._urlInputViewInfoTip:e._urlInputViewInfoDefault,e.mediaURLInputValue=r.element.value.trim()})),n}},{key:"_createButton",value:function(e,t,n,r){var i=new kl(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"url",get:function(){return this.urlInputView.fieldView.element.value.trim()},set:function(e){this.urlInputView.fieldView.element.value=e.trim()}}]),n}(Xc),Nv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.commands.get("mediaEmbed"),r=t.plugins.get(Ov).registry;t.ui.componentFactory.add("mediaEmbed",(function(i){var o=El(i),a=new jv(function(e,t){return[function(t){if(!t.url.length)return e("The URL must not be empty.")},function(n){if(!t.hasMedia(n.url))return e("This media URL is not supported.")}]}(t.t,r),t.locale);return e._setUpDropdown(o,a,n,t),e._setUpForm(o,a,n),o}))}},{key:"_setUpDropdown",value:function(e,t,n){var r=this.editor,i=r.t,o=e.buttonView;function a(){r.editing.view.focus(),e.isOpen=!1}e.bind("isEnabled").to(n),e.panelView.children.add(t),o.set({label:i("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0}),o.on("open",(function(){t.url=n.value||"",t.urlInputView.fieldView.select(),t.focus()}),{priority:"low"}),e.on("submit",(function(){t.isValid()&&(r.execute("mediaEmbed",t.url),a())})),e.on("change:isOpen",(function(){return t.resetFormStatus()})),e.on("cancel",(function(){return a()}))}},{key:"_setUpForm",value:function(e,t,n){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e}))}}],[{key:"requires",get:function(){return[Ov]}},{key:"pluginName",get:function(){return"MediaEmbedUI"}}]),n}(Ll);function Rv(e,t,n){var r=t.parent,i=n.createElement(e.type),o=r.getChildIndex(t)+1;return n.insertChild(o,i,r),i}function Lv(e){var t={},n=e.getStyle("mso-list");if(n){var r=n.match(/(^|\s+)l(\d+)/i),i=n.match(/\s*lfo(\d+)/i),o=n.match(/\s*level(\d+)/i);r&&i&&o&&(t.id=r[2],t.order=i[1],t.indent=o[1])}return t}n(109);var Bv=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i,Fv=function(){function e(t){h(this,e),this.document=t}return m(e,[{key:"isActive",value:function(e){return Bv.test(e)}},{key:"execute",value:function(e){var t=new Tp(this.document);!function(e,t){var n,r=l(e.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is("element","b")&&"normal"===i.getStyle("font-weight")){var o=e.getChildIndex(i);t.remove(i),t.insertChild(o,i.getChildren(),e)}}}catch(e){r.e(e)}finally{r.f()}}(e.content,t),function(e,t){var n,r=l(t.createRangeIn(e));try{for(r.s();!(n=r.n()).done;){var i=n.value.item;if(i.is("element","li")){var o=i.getChild(0);o&&o.is("element","p")&&t.unwrapElement(o)}}}catch(e){r.e(e)}finally{r.f()}}(e.content,t)}}]),e}();function zv(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(e,t){return 1===t.length?" ":Array(t.length+1).join(" ").substr(0,t.length)}))}function Vv(e){return btoa(e.match(/\w{2}/g).map((function(e){return String.fromCharCode(parseInt(e,16))})).join(""))}var $v=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,Hv=/xmlns:o="urn:schemas-microsoft-com/i,Uv=function(){function e(t){h(this,e),this.document=t}return m(e,[{key:"isActive",value:function(e){return $v.test(e)||Hv.test(e)}},{key:"execute",value:function(e){var t=function(e,t){var n=new DOMParser,r=function(e){return zv(zv(e)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[\s]*?)[\r\n]+(\s*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/<o:p>( |\u00A0)<\/o:p>/g,"").replace(/>(\s*[\r\n]\s*)</g,"><")}(function(e){var t=e.match(/<\/body>(.*?)(<\/html>|$)/);return t&&t[1]&&(e=e.slice(0,t.index)+e.slice(t.index).replace(t[1],"")),e}(e=e.replace(/<!--\[if gte vml 1]>/g,""))),i=n.parseFromString(r,"text/html");!function(e){e.querySelectorAll("span[style*=spacerun]").forEach((function(e){var t=e.innerText.length||0;e.innerHTML=Array(t+1).join(" ").substr(0,t)}))}(i);var o=i.body.innerHTML,a=function(e,t){for(var n=new Or(t),r=new Ri(n,{blockFillerMode:"nbsp"}),i=e.createDocumentFragment(),o=e.body.childNodes;o.length>0;)i.appendChild(o[0]);return r.domToView(i)}(i,t),s=function(e){for(var t=[],n=[],r=0,i=Array.from(e.getElementsByTagName("style"));r<i.length;r++){var o=i[r];o.sheet&&o.sheet.cssRules&&o.sheet.cssRules.length&&(t.push(o.sheet),n.push(o.innerHTML))}return{styles:t,stylesString:n.join(" ")}}(i);return{body:a,bodyString:o,styles:s.styles,stylesString:s.stylesString}}(e.dataTransfer.getData("text/html"),this.document.stylesProcessor),n=t.body;(function(e,t){if(e.childCount){var n=new Tp(e.document),r=function(e,t){var n,r=t.createRangeIn(e),i=new wn({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),o=[],a=l(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("elementStart"===s.type&&i.match(s.item)){var c=Lv(s.item);o.push({element:s.item,id:c.id,order:c.order,indent:c.indent})}}}catch(e){a.e(e)}finally{a.f()}return o}(e,n);if(r.length){var i=null,o=1;r.forEach((function(e,a){var s,c,u=function(e,t){if(!e)return!0;if(e.id!==t.id)return!0;var n,r=t.element.previousSibling;return!r||!((n=r).is("element","ol")||n.is("element","ul"))}(r[a-1],e),d=(c=e,(s=u?null:r[a-1])?c.indent-s.indent:c.indent-1);if(u&&(i=null,o=1),!i||0!==d){var f=function(e,t){var n=new RegExp("@list l".concat(e.id,":level").concat(e.indent,"\\s*({[^}]*)"),"gi").exec(t),r="decimal";if(n&&n[1]){var i=/mso-level-number-format:([^;]*);/gi.exec(n[1]);i&&i[1]&&(r=i[1].trim())}return{type:"bullet"!==r&&"image"!==r?"ol":"ul",style:r}}(e,t);if(i){if(e.indent>o){var h=i.getChild(i.childCount-1),p=h.getChild(h.childCount-1);i=Rv(f,p,n),o+=1}else if(e.indent<o){var m=o-e.indent;i=function(e,t){var n,r=null,i=0,o=l(e.getAncestors({parentFirst:!0}));try{for(o.s();!(n=o.n()).done;){var a=n.value;if("ul"!==a.name&&"ol"!==a.name||i++,i===t){r=a;break}}}catch(e){o.e(e)}finally{o.f()}return r}(i,m),o=parseInt(e.indent)}}else i=Rv(f,e.element,n);e.indent<=o&&(i.is("element",f.type)||(i=n.rename(f.type,i)))}var v=function(e,t){return function(e,t){var n,r=new wn({name:"span",styles:{"mso-list":"Ignore"}}),i=l(t.createRangeIn(e));try{for(i.s();!(n=i.n()).done;){var o=n.value;"elementStart"===o.type&&r.match(o.item)&&t.remove(o.item)}}catch(e){i.e(e)}finally{i.f()}}(e,t),t.rename("li",e)}(e.element,n);n.appendChild(v,i)}))}}})(n,t.stylesString),function(e,t){if(e.childCount){var n=new Tp;!function(e,t,n){var r,i=n.createRangeIn(t),o=new wn({name:"img"}),a=[],s=l(i);try{for(s.s();!(r=s.n()).done;){var c=r.value;if(o.match(c.item)){var u=c.item,d=u.getAttribute("v:shapes")?u.getAttribute("v:shapes").split(" "):[];d.length&&d.every((function(t){return e.indexOf(t)>-1}))?a.push(u):u.getAttribute("src")||a.push(u)}}}catch(e){s.e(e)}finally{s.f()}for(var f=0,h=a;f<h.length;f++){var p=h[f];n.remove(p)}}(function(e,t){var n,r=t.createRangeIn(e),i=new wn({name:/v:(.+)/}),o=[],a=l(r);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=s.item,u=c.previousSibling&&c.previousSibling.name||null;i.match(c)&&c.getAttribute("o:gfxdata")&&"v:shapetype"!==u&&o.push(s.item.getAttribute("id"))}}catch(e){a.e(e)}finally{a.f()}return o}(e,n),e,n),function(e,t){var n,r=t.createRangeIn(e),i=new wn({name:/v:(.+)/}),o=[],a=l(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.match(s.item)&&o.push(s.item)}}catch(e){a.e(e)}finally{a.f()}for(var c=0,u=o;c<u.length;c++){var d=u[c];t.remove(d)}}(e,n);var r=function(e,t){var n,r=t.createRangeIn(e),i=new wn({name:"img"}),o=[],a=l(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.match(s.item)&&s.item.getAttribute("src").startsWith("file://")&&o.push(s.item)}}catch(e){a.e(e)}finally{a.f()}return o}(e,n);r.length&&function(e,t,n){if(e.length===t.length)for(var r=0;r<e.length;r++){var i="data:".concat(t[r].type,";base64,").concat(Vv(t[r].hex));n.setAttribute("src",i,e[r])}}(r,function(e){if(!e)return[];var t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),r=e.match(n),i=[];if(r){var o,a=l(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=!1;s.includes("\\pngblip")?c="image/png":s.includes("\\jpegblip")&&(c="image/jpeg"),c&&i.push({hex:s.replace(t,"").replace(/[^\da-fA-F]/g,""),type:c})}}catch(e){a.e(e)}finally{a.f()}}return i}(t),n)}}(n,e.dataTransfer.getData("text/rtf")),e.content=n}}]),e}(),qv="removeFormat",Wv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(qv,(function(r){var i=t.commands.get(qv),o=new kl(r);return o.set({label:n("Remove Format"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z"/></svg>',tooltip:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(qv),t.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"RemoveFormatUI"}}]),n}(Ll),Yv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model;this.isEnabled=!!Vl(this._getFormattingItems(e.document.selection,e.schema))}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.schema;t.change((function(r){var i,o=l(e._getFormattingItems(t.document.selection,n));try{for(o.s();!(i=o.n()).done;){var a=i.value;if(a.is("selection")){var s,c=l(e._getFormattingAttributes(a,n));try{for(c.s();!(s=c.n()).done;){var u=s.value;r.removeSelectionAttribute(u)}}catch(e){c.e(e)}finally{c.f()}}else{var d,f=r.createRangeOn(a),h=l(e._getFormattingAttributes(a,n));try{for(h.s();!(d=h.n()).done;){var p=d.value;r.removeAttribute(p,f)}}catch(e){h.e(e)}finally{h.f()}}}}catch(e){o.e(e)}finally{o.f()}}))}},{key:"_getFormattingItems",value:o.a.mark((function e(t,n){var r,i,a,s,c,u,d,f,h,p,m=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=function(e){return!!Vl(m._getFormattingAttributes(e,n))},i=l(t.getRanges()),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=27;break}s=a.value,c=l(s.getItems()),e.prev=7,c.s();case 9:if((u=c.n()).done){e.next=17;break}if(d=u.value,e.t0=!n.isBlock(d)&&r(d),!e.t0){e.next=15;break}return e.next=15,d;case 15:e.next=9;break;case 17:e.next=22;break;case 19:e.prev=19,e.t1=e.catch(7),c.e(e.t1);case 22:return e.prev=22,c.f(),e.finish(22);case 25:e.next=4;break;case 27:e.next=32;break;case 29:e.prev=29,e.t2=e.catch(2),i.e(e.t2);case 32:return e.prev=32,i.f(),e.finish(32);case 35:f=l(t.getSelectedBlocks()),e.prev=36,f.s();case 38:if((h=f.n()).done){e.next=46;break}if(p=h.value,e.t3=r(p),!e.t3){e.next=44;break}return e.next=44,p;case 44:e.next=38;break;case 46:e.next=51;break;case 48:e.prev=48,e.t4=e.catch(36),f.e(e.t4);case 51:return e.prev=51,f.f(),e.finish(51);case 54:if(e.t5=r(t),!e.t5){e.next=58;break}return e.next=58,t;case 58:case"end":return e.stop()}}),e,null,[[2,29,32,35],[7,19,22,25],[36,48,51,54]])}))},{key:"_getFormattingAttributes",value:o.a.mark((function e(t,n){var r,i,a,s,u;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=l(t.getAttributes()),e.prev=1,r.s();case 3:if((i=r.n()).done){e.next=12;break}if(a=c(i.value,1),s=a[0],u=n.getAttributeProperties(s),e.t0=u&&u.isFormatting,!e.t0){e.next=10;break}return e.next=10,s;case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t1=e.catch(1),r.e(e.t1);case 17:return e.prev=17,r.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[1,14,17,20]])}))}]),n}(Fl),Kv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.commands.add("removeFormat",new Yv(e))}}],[{key:"pluginName",get:function(){return"RemoveFormatEditing"}}]),n}(Ll),Gv=function(){function e(t,n){h(this,e),this.loader=t,this.options=n}return m(e,[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return new Promise((function(n,r){e._initRequest(),e._initListeners(n,r,t),e._sendRequest(t)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var e=this.xhr=new XMLHttpRequest;e.open("POST",this.options.uploadUrl,!0),e.responseType="json"}},{key:"_initListeners",value:function(e,t,n){var r=this.xhr,i=this.loader,o="Couldn't upload file: ".concat(n.name,".");r.addEventListener("error",(function(){return t(o)})),r.addEventListener("abort",(function(){return t()})),r.addEventListener("load",(function(){var n=r.response;if(!n||n.error)return t(n&&n.error&&n.error.message?n.error.message:o);e(n.url?{default:n.url}:n.urls)})),r.upload&&r.upload.addEventListener("progress",(function(e){e.lengthComputable&&(i.uploadTotal=e.total,i.uploaded=e.loaded)}))}},{key:"_sendRequest",value:function(e){for(var t=this.options.headers||{},n=this.options.withCredentials||!1,r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];this.xhr.setRequestHeader(o,t[o])}this.xhr.withCredentials=n;var a=new FormData;a.append("upload",e),this.xhr.send(a)}}]),e}();function Qv(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;t>i?r.setAttribute(e,t,n):r.removeAttribute(e,n)}function Xv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.createElement("tableCell",n);return e.insertElement("paragraph",r),e.insert(r,t),r}function Jv(e,t){var n=t.parent.parent,r=parseInt(n.getAttribute("headingColumns")||0),i=e.getCellLocation(t).column;return!!r&&i<r}function Zv(e){for(var t=0,n=0,r=Array.from(e.getChildren()).filter((function(e){return"th"===e.name||"td"===e.name}));n<r.length&&"th"===r[n].name;){var i=r[n];t+=parseInt(i.getAttribute("colspan")||1),n++}return t}var eg=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e),this._table=t,this._startRow=void 0!==n.row?n.row:n.startRow||0,this._endRow=void 0!==n.row?n.row:n.endRow,this._startColumn=void 0!==n.column?n.column:n.startColumn||0,this._endColumn=void 0!==n.column?n.column:n.endColumn,this._includeAllSlots=!!n.includeAllSlots,this._skipRows=new Set,this._row=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}return m(e,[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){var e=this._table.getChild(this._row);if(!e||this._isOverEndRow())return{done:!0};if(this._isOverEndColumn())return this._advanceToNextRow();var t=null,n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(n.cell,n.row,n.column));else{var r=e.getChild(this._cellIndex);if(!r)return this._advanceToNextRow();var i=parseInt(r.getAttribute("colspan")||1),o=parseInt(r.getAttribute("rowspan")||1);(i>1||o>1)&&this._recordSpans(r,o,i),this._shouldSkipSlot()||(t=this._formatOutValue(r)),this._nextCellAtColumn=this._column+i}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}},{key:"skipRow",value:function(e){this._skipRows.add(e)}},{key:"_advanceToNextRow",value:function(){return this._row++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}},{key:"_isOverEndRow",value:function(){return void 0!==this._endRow&&this._row>this._endRow}},{key:"_isOverEndColumn",value:function(){return void 0!==this._endColumn&&this._column>this._endColumn}},{key:"_formatOutValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._column;return{done:!1,value:new tg(this,e,t,n)}}},{key:"_shouldSkipSlot",value:function(){var e=this._skipRows.has(this._row),t=this._row<this._startRow,n=this._column<this._startColumn,r=void 0!==this._endColumn&&this._column>this._endColumn;return e||t||n||r}},{key:"_getSpanned",value:function(){var e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}},{key:"_recordSpans",value:function(e,t,n){for(var r={cell:e,row:this._row,column:this._column},i=this._row;i<this._row+t;i++)for(var o=this._column;o<this._column+n;o++)i==this._row&&o==this._column||this._markSpannedCell(i,o,r)}},{key:"_markSpannedCell",value:function(e,t,n){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,n)}}]),e}(),tg=function(){function e(t,n,r,i){h(this,e),this.cell=n,this.row=t._row,this.column=t._column,this.cellAnchorRow=r,this.cellAnchorColumn=i,this._cellIndex=t._cellIndex,this._table=t._table}return m(e,[{key:"getPositionBefore",value:function(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}},{key:"isAnchor",get:function(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}},{key:"cellWidth",get:function(){return parseInt(this.cell.getAttribute("colspan")||1)}},{key:"cellHeight",get:function(){return parseInt(this.cell.getAttribute("rowspan")||1)}}]),e}();function ng(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t.on("insert:table",(function(t,n,r){var i=n.item;if(r.consumable.consume(i,"insert")){r.consumable.consume(i,"attribute:headingRows:table"),r.consumable.consume(i,"attribute:headingColumns:table");var o,a,s,c=e&&e.asWidget,u=r.writer.createContainerElement("figure",{class:"table"}),d=r.writer.createContainerElement("table");r.writer.insert(r.writer.createPositionAt(u,0),d),c&&(a=u,(s=r.writer).setCustomProperty("table",!0,a),o=fh(a,s,{hasSelectionHandle:!0}));var f,h=new eg(i),p={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0},m=new Map,v=l(h);try{for(v.s();!(f=v.n()).done;){var g=f.value,b=g.row,y=g.cell,k=i.getChild(b),w=m.get(b)||sg(d,k,b,p,r);m.set(b,w),r.consumable.consume(y,"insert"),ag(g,p,r.writer.createPositionAt(w,"end"),r,e)}}catch(e){v.e(e)}finally{v.f()}var _,C=l(i.getChildren());try{for(C.s();!(_=C.n()).done;){var A=_.value,x=A.index;m.has(x)||m.set(x,sg(d,A,x,p,r))}}catch(e){C.e(e)}finally{C.f()}var S=r.mapper.toViewPosition(n.range.start);r.mapper.bindElements(i,c?o:u),r.writer.insert(S,c?o:u)}}))}}function rg(e,t){var n=t.writer;if(e.parent.is("element","tableCell"))return ig(e)?n.createContainerElement("span",{style:"display:inline-block"}):n.createContainerElement("p")}function ig(e){return 1===e.parent.childCount&&!dg(e)}function og(e,t,n){var r=e.cell,i=cg(e,t),o=n.mapper.toViewElement(r);o&&o.name!==i&&function(e,t,n){var r=n.writer,i=n.mapper.toViewElement(e),o=mh(r.createEditableElement(t,i.getAttributes()),r);hh(o,r,(function(e,t,n){return n.addClass(fg(t.classes),e)}),(function(e,t,n){return n.removeClass(fg(t.classes),e)})),r.insert(r.createPositionAfter(i),o),r.move(r.createRangeIn(i),r.createPositionAt(o,0)),r.remove(r.createRangeOn(i)),n.mapper.unbindViewElement(i),n.mapper.bindElements(e,o)}(r,i,n)}function ag(e,t,n,r,i){var o=i&&i.asWidget,a=cg(e,t),s=o?mh(r.writer.createEditableElement(a),r.writer):r.writer.createContainerElement(a);o&&hh(s,r.writer,(function(e,t,n){return n.addClass(fg(t.classes),e)}),(function(e,t,n){return n.removeClass(fg(t.classes),e)}));var c=e.cell,l=c.getChild(0),u=1===c.childCount&&"paragraph"===l.name;if(r.writer.insert(n,s),r.mapper.bindElements(c,s),!o&&!dg(l)&&u){var d=c.getChild(0);r.consumable.consume(d,"insert"),r.mapper.bindElements(d,s)}}function sg(e,t,n,r,i){i.consumable.consume(t,"insert");var o=t.isEmpty?i.writer.createEmptyElement("tr"):i.writer.createContainerElement("tr");i.mapper.bindElements(t,o);var a=r.headingRows,s=function(e,t,n){return lg(e,t)||function(e,t,n){var r=n.writer.createContainerElement(e),i=n.writer.createPositionAt(t,"tbody"==e?"end":0);return n.writer.insert(i,r),r}(e,t,n)}(function(e,t){return e<t.headingRows?"thead":"tbody"}(n,r),e,i),c=a>0&&n>=a?n-a:n,l=i.writer.createPositionAt(s,c);return i.writer.insert(l,o),o}function cg(e,t){var n=e.row,r=e.column,i=t.headingColumns,o=t.headingRows;return o&&o>n||i&&i>r?"th":"td"}function lg(e,t){var n,r=l(t.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.name==e)return i}}catch(e){r.e(e)}finally{r.f()}}function ug(e,t,n){var r=lg(e,t);r&&0===r.childCount&&n.writer.remove(n.writer.createRangeOn(r))}function dg(e){return!!u(e.getAttributeKeys()).length}function fg(e){return Array.isArray(e)?e:[e]}var hg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema,r=function(e){var t=e.parent;return t===t.root?t:t.parent}(t.getFirstPosition());this.isEnabled=n.checkChild(r,"table")}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document.selection,r=this.editor.plugins.get("TableUtils"),i=vh(n,t);t.change((function(n){var o=r.createTable(n,e);t.insertContent(o,i),n.setSelection(n.createPositionAt(o.getNodeByPath([0,0,0]),0))}))}}]),n}(Fl);function pg(e){var t,n=[],r=l(kg(e.getRanges()));try{for(r.s();!(t=r.n()).done;){var i=t.value.getContainedElement();i&&i.is("element","tableCell")&&n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}function mg(e){var t,n=[],r=l(e.getRanges());try{for(r.s();!(t=r.n()).done;){var i=t.value.start.findAncestor("tableCell");i&&n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}function vg(e){var t=pg(e);return t.length?t:mg(e)}function gg(e){return wg(e.map((function(e){return e.parent.index})))}function bg(e){var t=e[0].findAncestor("table");return wg(u(new eg(t)).filter((function(t){return e.includes(t.cell)})).map((function(e){return e.column})))}function yg(e,t){if(e.length<2||!function(e){var t=e[0].findAncestor("table");if(!Cg(gg(e),parseInt(t.getAttribute("headingRows")||0)))return!1;var n=parseInt(t.getAttribute("headingColumns")||0);return Cg(bg(e),n)}(e))return!1;var n,r=new Set,i=new Set,o=0,a=l(e);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=t.getCellLocation(s),d=c.row,f=c.column,h=parseInt(s.getAttribute("rowspan")||1),p=parseInt(s.getAttribute("colspan")||1);r.add(d),i.add(f),h>1&&r.add(d+h-1),p>1&&i.add(f+p-1),o+=h*p}}catch(e){a.e(e)}finally{a.f()}return function(e,t){var n=Array.from(e.values()),r=Array.from(t.values());return(Math.max.apply(Math,u(n))-Math.min.apply(Math,u(n))+1)*(Math.max.apply(Math,u(r))-Math.min.apply(Math,u(r))+1)}(r,i)==o}function kg(e){return Array.from(e).sort(_g)}function wg(e){var t=e.sort((function(e,t){return e-t}));return{first:t[0],last:t[t.length-1]}}function _g(e,t){var n=e.start,r=t.start;return n.isBefore(r)?-1:1}function Cg(e,t){return e.first<t==e.last<t}var Ag=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,n),(r=t.call(this,e)).order=i.order||"below",r}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!e}},{key:"execute",value:function(){var e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),r="above"===this.order,i=vg(t),o=gg(i),a=r?o.first:o.last,s=i[0].findAncestor("table");n.insertRows(s,{at:r?a:a+1,copyStructureFromAbove:!r})}}]),n}(Fl),xg=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,n),(r=t.call(this,e)).order=i.order||"right",r}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!e}},{key:"execute",value:function(){var e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),r="left"===this.order,i=vg(t),o=bg(i),a=r?o.first:o.last,s=i[0].findAncestor("table");n.insertColumns(s,{columns:1,at:r?a:a+1})}}]),n}(Fl),Sg=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,n),(r=t.call(this,e)).direction=i.direction||"horizontally",r}return m(n,[{key:"refresh",value:function(){var e=vg(this.editor.model.document.selection);this.isEnabled=1===e.length}},{key:"execute",value:function(){var e=vg(this.editor.model.document.selection)[0],t="horizontally"===this.direction,n=this.editor.plugins.get("TableUtils");t?n.splitCellHorizontally(e,2):n.splitCellVertically(e,2)}}]),n}(Fl);function Mg(e,t,n){for(var r=t.startRow,i=t.startColumn,o=t.endRow,a=t.endColumn,s=n.createElement("table"),c=o-r+1,d=0;d<c;d++)n.insertElement("tableRow",s,"end");var f,h=l(u(new eg(e,{startRow:r,endRow:o,startColumn:i,endColumn:a,includeAllSlots:!0})));try{for(h.s();!(f=h.n()).done;){var p=f.value,m=p.row,v=p.column,g=p.cell,b=p.isAnchor,y=p.cellAnchorRow,k=p.cellAnchorColumn,w=m-r,_=s.getChild(w);if(b){var C=n.cloneElement(g);n.append(C,_),Pg(C,m,v,o,a,n)}else(y<r||k<i)&&Xv(n,n.createPositionAt(_,"end"))}}catch(e){h.e(e)}finally{h.f()}return function(e,t,n,r,i){var o=parseInt(t.getAttribute("headingRows")||0);o>0&&Qv("headingRows",o-n,e,i,0);var a=parseInt(t.getAttribute("headingColumns")||0);a>0&&Qv("headingColumns",a-r,e,i,0)}(s,e,r,i,n),s}function Eg(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[],o=new eg(e,{startRow:r,endRow:t-1}),a=l(o);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=s.row,u=s.cellHeight,d=c+u-1;c<t&&t<=d&&i.push(s)}}catch(e){a.e(e)}finally{a.f()}return i}function Tg(e,t,n){var r=e.parent,i=r.parent,o=r.index,a=t-o,s={},c=parseInt(e.getAttribute("rowspan"))-a;c>1&&(s.rowspan=c);var d=parseInt(e.getAttribute("colspan")||1);d>1&&(s.colspan=d);var f,h,p=o+a,m=null,v=l(u(new eg(i,{startRow:o,endRow:p,includeAllSlots:!0})));try{for(v.s();!(h=v.n()).done;){var g=h.value,b=g.row,y=g.column;g.cell===e&&void 0===f&&(f=y),void 0!==f&&f===y&&b===p&&(m=Xv(n,g.getPositionBefore(),s))}}catch(e){v.e(e)}finally{v.f()}return Qv("rowspan",a,e,n),m}function Dg(e,t){var n,r=[],i=l(new eg(e));try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.column,s=o.cellWidth;a<t&&t<=a+s-1&&r.push(o)}}catch(e){i.e(e)}finally{i.f()}return r}function Og(e,t,n,r){var i=n-t,o={},a=parseInt(e.getAttribute("colspan"))-i;a>1&&(o.colspan=a);var s=parseInt(e.getAttribute("rowspan")||1);s>1&&(o.rowspan=s);var c=Xv(r,r.createPositionAfter(e),o);return Qv("colspan",i,e,r),c}function Pg(e,t,n,r,i,o){var a=parseInt(e.getAttribute("colspan")||1),s=parseInt(e.getAttribute("rowspan")||1);n+a-1>i&&Qv("colspan",i-n+1,e,o,1),t+s-1>r&&Qv("rowspan",r-t+1,e,o,1)}function Ig(e,t){var n,r=t.getColumns(e),i=new Array(r).fill(0),o=l(new eg(e));try{for(o.s();!(n=o.n()).done;){i[n.value.column]++}}catch(e){o.e(e)}finally{o.f()}var a=i.reduce((function(e,t,n){return t?e:[].concat(u(e),[n])}),[]);if(a.length>0){var s=a[a.length-1];return t.removeColumns(e,{at:s}),!0}return!1}function jg(e,t){for(var n=[],r=0;r<e.childCount;r++)e.getChild(r).isEmpty&&n.push(r);if(n.length>0){var i=n[n.length-1];return t.removeRows(e,{at:i}),!0}return!1}function Ng(e,t){Ig(e,t)||jg(e,t)}function Rg(e,t){var n=Array.from(new eg(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(n.every((function(e){return 1===e.cellHeight})))return t.lastRow;var r=n[0].cellHeight-1;return t.lastRow+r}function Lg(e,t){var n=Array.from(new eg(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(n.every((function(e){return 1===e.cellWidth})))return t.lastColumn;var r=n[0].cellWidth-1;return t.lastColumn+r}var Bg=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).direction=r.direction,i.isHorizontal="right"==i.direction||"left"==i.direction,i}return m(n,[{key:"refresh",value:function(){var e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=mg(t.document.selection)[0],r=this.value,i=this.direction;t.change((function(t){var o="right"==i||"down"==i,a=o?n:r,s=o?r:n,c=s.parent;!function(e,t,n){Fg(e)||(Fg(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}(s,a,t);var l=e.isHorizontal?"colspan":"rowspan",u=parseInt(n.getAttribute(l)||1),d=parseInt(r.getAttribute(l)||1);t.setAttribute(l,u+d,a),t.setSelection(t.createRangeIn(a));var f=e.editor.plugins.get("TableUtils");Ng(c.findAncestor("table"),f)}))}},{key:"_getMergeableCell",value:function(){var e=mg(this.editor.model.document.selection)[0];if(e){var t=this.editor.plugins.get("TableUtils"),n=this.isHorizontal?function(e,t,n){var r=e.parent.parent,i="right"==t?e.nextSibling:e.previousSibling,o=(r.getAttribute("headingColumns")||0)>0;if(i){var a="right"==t?e:i,s="right"==t?i:e,c=n.getCellLocation(a).column,l=n.getCellLocation(s).column,u=parseInt(a.getAttribute("colspan")||1),d=Jv(n,a),f=Jv(n,s);if(!o||d==f)return c+u===l?i:void 0}}(e,this.direction,t):function(e,t){var n=e.parent,r=n.parent,i=r.getChildIndex(n);if(!("down"==t&&i===r.childCount-1||"up"==t&&0===i)){var o=parseInt(e.getAttribute("rowspan")||1),a=r.getAttribute("headingRows")||0;if(!a||!("down"==t&&i+o===a)&&!("up"==t&&i===a)){var s=parseInt(e.getAttribute("rowspan")||1),c="down"==t?i+s:i,l=u(new eg(r,{endRow:c})),d=l.find((function(t){return t.cell===e})).column,f=l.find((function(e){var n=e.row,r=e.cellHeight;return e.column===d&&("down"==t?n===c:c===n+r)}));return f&&f.cell}}}(e,this.direction);if(n){var r=this.isHorizontal?"rowspan":"colspan",i=parseInt(e.getAttribute(r)||1);return parseInt(n.getAttribute(r)||1)===i?n:void 0}}}}]),n}(Fl);function Fg(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}var zg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=vg(this.editor.model.document.selection),t=e[0];if(t){var n=t.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getRows(n)-1,i=gg(e),o=0===i.first&&i.last===r;this.isEnabled=!o}else this.isEnabled=!1}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=vg(t.document.selection),r=gg(n),i=n[0],o=i.findAncestor("table"),a=this.editor.plugins.get("TableUtils").getCellLocation(i).column;t.change((function(t){var n=r.last-r.first+1;e.editor.plugins.get("TableUtils").removeRows(o,{at:r.first,rows:n});var i=function(e,t,n){var r,i=e.getChild(t)||e.getChild(e.childCount-1),o=i.getChild(0),a=0,s=l(i.getChildren());try{for(s.s();!(r=s.n()).done;){var c=r.value;if(a>n)return o;o=c,a+=parseInt(c.getAttribute("colspan")||1)}}catch(e){s.e(e)}finally{s.f()}return o}(o,r.first,a);t.setSelection(t.createPositionAt(i,0))}))}}]),n}(Fl),Vg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=vg(this.editor.model.document.selection),t=e[0];if(t){var n=t.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getColumns(n),i=bg(e),o=i.first,a=i.last;this.isEnabled=a-o<r-1}else this.isEnabled=!1}},{key:"execute",value:function(){var e=this,t=c(function(e){var t=vg(e),n=t[0],r=t.pop(),i=[n,r];return n.isBefore(r)?i:i.reverse()}(this.editor.model.document.selection),2),n=t[0],r=t[1],i=n.parent.parent,o=u(new eg(i)),a={first:o.find((function(e){return e.cell===n})).column,last:o.find((function(e){return e.cell===r})).column},s=function(e,t,n,r){return parseInt(n.getAttribute("colspan")||1)>1?n:t.previousSibling||n.nextSibling?n.nextSibling||t.previousSibling:r.first?e.reverse().find((function(e){return e.column<r.first})).cell:e.reverse().find((function(e){return e.column>r.last})).cell}(o,n,r,a);this.editor.model.change((function(t){var n=a.last-a.first+1;e.editor.plugins.get("TableUtils").removeColumns(i,{at:a.first,columns:n}),t.setSelection(t.createPositionAt(s,0))}))}}]),n}(Fl),$g=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this,t=vg(this.editor.model.document.selection),n=t.length>0;this.isEnabled=n,this.value=n&&t.every((function(t){return e._isInHeading(t,t.parent.parent)}))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.forceValue!==this.value){var t=this.editor.model,n=vg(t.document.selection),r=n[0].findAncestor("table"),i=gg(n),o=i.first,a=i.last,s=this.value?o:a+1,c=r.getAttribute("headingRows")||0;t.change((function(e){if(s){var t,n=l(Eg(r,s,s>c?c:0));try{for(n.s();!(t=n.n()).done;){Tg(t.value.cell,s,e)}}catch(e){n.e(e)}finally{n.f()}}Qv("headingRows",s,r,e,0)}))}}},{key:"_isInHeading",value:function(e,t){var n=parseInt(t.getAttribute("headingRows")||0);return!!n&&e.parent.index<n}}]),n}(Fl),Hg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=vg(this.editor.model.document.selection),t=this.editor.plugins.get("TableUtils"),n=e.length>0;this.isEnabled=n,this.value=n&&e.every((function(e){return Jv(t,e)}))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.forceValue!==this.value){var t=this.editor.model,n=vg(t.document.selection),r=n[0].findAncestor("table"),i=bg(n),o=i.first,a=i.last,s=this.value?o:a+1;t.change((function(e){if(s){var t,n=l(Dg(r,s));try{for(n.s();!(t=n.n()).done;){var i=t.value;Og(i.cell,i.column,s,e)}}catch(e){n.e(e)}finally{n.f()}}Qv("headingColumns",s,r,e,0)}))}}}]),n}(Fl),Ug=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.decorate("insertColumns"),this.decorate("insertRows")}},{key:"getCellLocation",value:function(e){var t,n=e.parent,r=n.parent,i=r.getChildIndex(n),o=l(new eg(r,{row:i}));try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.cell,c=a.row,u=a.column;if(s===e)return{row:c,column:u}}}catch(e){o.e(e)}finally{o.f()}}},{key:"createTable",value:function(e,t){var n=e.createElement("table");return qg(e,n,0,parseInt(t.rows)||2,parseInt(t.columns)||2),t.headingRows&&Qv("headingRows",t.headingRows,n,e,0),t.headingColumns&&Qv("headingColumns",t.headingColumns,n,e,0),n}},{key:"insertRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.editor.model,r=t.at||0,i=t.rows||1,o=void 0!==t.copyStructureFromAbove,a=t.copyStructureFromAbove?r-1:r,s=this.getRows(e),c=this.getColumns(e);n.change((function(t){var n=e.getAttribute("headingRows")||0;if(n>r&&Qv("headingRows",n+i,e,t,0),o||0!==r&&r!==s){var u,d=o?Math.max(r,a):r,f=new eg(e,{endRow:d}),h=new Array(c).fill(1),p=l(f);try{for(p.s();!(u=p.n()).done;){var m=u.value,v=m.row,g=m.column,b=m.cellHeight,y=m.cellWidth,k=m.cell,w=v+b-1,_=v<=a&&a<=w;v<r&&r<=w?(t.setAttribute("rowspan",b+i,k),h[g]=-y):o&&_&&(h[g]=y)}}catch(e){p.e(e)}finally{p.f()}for(var C=0;C<i;C++){var A=t.createElement("tableRow");t.insert(A,e,r);for(var x=0;x<h.length;x++){var S=h[x],M=t.createPositionAt(A,"end");S>0&&Xv(t,M,S>1?{colspan:S}:null),x+=Math.abs(S)-1}}}else qg(t,e,r,i,c)}))}},{key:"insertColumns",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.editor.model,i=n.at||0,o=n.columns||1;r.change((function(n){var r=e.getAttribute("headingColumns");i<r&&n.setAttribute("headingColumns",r+o,e);var a=t.getColumns(e);if(0!==i&&a!==i){var s,c=new eg(e,{column:i,includeAllSlots:!0}),u=l(c);try{for(u.s();!(s=u.n()).done;){var d=s.value,f=d.row,h=d.cell,p=d.cellAnchorColumn,m=d.cellAnchorRow,v=d.cellWidth,g=d.cellHeight;if(p<i){n.setAttribute("colspan",v+o,h);for(var b=m+g-1,y=f;y<=b;y++)c.skipRow(y)}else Wg(o,n,d.getPositionBefore())}}catch(e){u.e(e)}finally{u.f()}}else{var k,w=l(e.getChildren());try{for(w.s();!(k=w.n()).done;){var _=k.value;Wg(o,n,n.createPositionAt(_,i?"end":0))}}catch(e){w.e(e)}finally{w.f()}}}))}},{key:"removeRows",value:function(e,t){var n=this,r=this.editor.model,i=t.rows||1,o=t.at,a=o+i-1;r.change((function(t){var r=function(e,t,n){var r,i=new Map,o=[],a=l(new eg(e,{endRow:n}));try{for(a.s();!(r=a.n()).done;){var s=r.value,c=s.row,u=s.column,d=s.cellHeight,f=s.cell,h=c+d-1;if(c>=t&&c<=n&&h>n){var p=d-(n-c+1);i.set(u,{cell:f,rowspan:p})}if(c<t&&h>=t){var m;m=h>=n?n-t+1:h-t+1,o.push({cell:f,rowspan:d-m})}}}catch(e){a.e(e)}finally{a.f()}return{cellsToMove:i,cellsToTrim:o}}(e,o,a),i=r.cellsToMove,s=r.cellsToTrim;i.size&&function(e,t,n,r){var i,o,a=u(new eg(e,{includeAllSlots:!0,row:t})),s=e.getChild(t),c=l(a);try{for(c.s();!(o=c.n()).done;){var d=o.value,f=d.column,h=d.cell,p=d.isAnchor;if(n.has(f)){var m=n.get(f),v=m.cell,g=m.rowspan,b=i?r.createPositionAfter(i):r.createPositionAt(s,0);r.move(r.createRangeOn(v),b),Qv("rowspan",g,v,r),i=v}else p&&(i=h)}}catch(e){c.e(e)}finally{c.f()}}(e,a+1,i,t);for(var c=a;c>=o;c--)t.remove(e.getChild(c));var d,f=l(s);try{for(f.s();!(d=f.n()).done;){var h=d.value;Qv("rowspan",h.rowspan,h.cell,t)}}catch(e){f.e(e)}finally{f.f()}!function(e,t,n,r){var i=e.getAttribute("headingRows")||0;t<i&&Qv("headingRows",n<i?i-(n-t+1):t,e,r,0)}(e,o,a,t),Ig(e,n)||jg(e,n)}))}},{key:"removeColumns",value:function(e,t){var n=this,r=this.editor.model,i=t.at,o=t.columns||1,a=t.at+o-1;r.change((function(t){!function(e,t,n){var r=e.getAttribute("headingColumns")||0;if(r&&t.first<r){var i=Math.min(r-1,t.last)-t.first+1;n.setAttribute("headingColumns",r-i,e)}}(e,{first:i,last:a},t);for(var r=a;r>=i;r--)for(var o=0,s=u(new eg(e));o<s.length;o++){var c=s[o],l=c.cell,d=c.column,f=c.cellWidth;d<=r&&f>1&&d+f>r?Qv("colspan",f-1,l,t):d===r&&t.remove(l)}jg(e,n)||Ig(e,n)}))}},{key:"splitCellVertically",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,r=e.parent.parent,i=parseInt(e.getAttribute("rowspan")||1),o=parseInt(e.getAttribute("colspan")||1);n.change((function(n){if(o>1){var a=Yg(o,t),s=a.newCellsSpan;Qv("colspan",a.updatedSpan,e,n);var c={};s>1&&(c.colspan=s),i>1&&(c.rowspan=i),Wg(o>t?t-1:o-1,n,n.createPositionAfter(e),c)}if(o<t){var d,f=t-o,h=u(new eg(r)),p=h.find((function(t){return t.cell===e})).column,m=l(h.filter((function(t){var n=t.cell,r=t.cellWidth,i=t.column;return n!==e&&i===p||i<p&&i+r>p})));try{for(m.s();!(d=m.n()).done;){var v=d.value,g=v.cell,b=v.cellWidth;n.setAttribute("colspan",b+f,g)}}catch(e){m.e(e)}finally{m.f()}var y={};i>1&&(y.rowspan=i),Wg(f,n,n.createPositionAfter(e),y);var k=r.getAttribute("headingColumns")||0;k>p&&Qv("headingColumns",k+f,r,n)}}))}},{key:"splitCellHorizontally",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,r=e.parent,i=r.parent,o=i.getChildIndex(r),a=parseInt(e.getAttribute("rowspan")||1),s=parseInt(e.getAttribute("colspan")||1);n.change((function(n){if(a>1){var r=u(new eg(i,{startRow:o,endRow:o+a-1,includeAllSlots:!0})),c=Yg(a,t),d=c.newCellsSpan,f=c.updatedSpan;Qv("rowspan",f,e,n);var h=r.find((function(t){return t.cell===e})).column,p={};d>1&&(p.rowspan=d),s>1&&(p.colspan=s);for(var m=0,v=r;m<v.length;m++){var g=v[m],b=g.column,y=g.row;y>=o+f&&b===h&&(y+o+f)%d==0&&Wg(1,n,g.getPositionBefore(),p)}}if(a<t){var k,w=t-a,_=l(u(new eg(i,{startRow:0,endRow:o})));try{for(_.s();!(k=_.n()).done;){var C=k.value,A=C.cell,x=C.cellHeight,S=C.row;if(A!==e&&S+x>o){var M=x+w;n.setAttribute("rowspan",M,A)}}}catch(e){_.e(e)}finally{_.f()}var E={};s>1&&(E.colspan=s),qg(n,i,o+1,w,1,E);var T=i.getAttribute("headingRows")||0;T>o&&Qv("headingRows",T+w,i,n)}}))}},{key:"getColumns",value:function(e){return u(e.getChild(0).getChildren()).reduce((function(e,t){return e+parseInt(t.getAttribute("colspan")||1)}),0)}},{key:"getRows",value:function(e){return e.childCount}}],[{key:"pluginName",get:function(){return"TableUtils"}}]),n}(Ll);function qg(e,t,n,r,i){for(var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=0;a<r;a++){var s=e.createElement("tableRow");e.insert(s,t,n),Wg(i,e,e.createPositionAt(s,"end"),o)}}function Wg(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=0;i<e;i++)Xv(t,n,r)}function Yg(e,t){if(e<t)return{newCellsSpan:1,updatedSpan:1};var n=Math.floor(e/t);return{newCellsSpan:n,updatedSpan:e-n*t+n}}var Kg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=pg(this.editor.model.document.selection);this.isEnabled=yg(e,this.editor.plugins.get(Ug))}},{key:"execute",value:function(){var e=this.editor.model,t=this.editor.plugins.get(Ug);e.change((function(n){var r=pg(e.document.selection),i=r.shift(),o=function(e,t,n){var r,i=0,o=0,a=l(t);try{for(a.s();!(r=a.n()).done;){var s=r.value,c=n.getCellLocation(s),u=c.row;i=Xg(s,c.column,i,"colspan"),o=Xg(s,u,o,"rowspan")}}catch(e){a.e(e)}finally{a.f()}var d=n.getCellLocation(e),f=d.row;return{mergeWidth:i-d.column,mergeHeight:o-f}}(i,r,t),a=o.mergeWidth,s=o.mergeHeight;Qv("colspan",a,i,n),Qv("rowspan",s,i,n);var c,u=l(r);try{for(u.s();!(c=u.n()).done;){Gg(c.value,i,n)}}catch(e){u.e(e)}finally{u.f()}Ng(i.findAncestor("table"),t),n.setSelection(i,"in")}))}}]),n}(Fl);function Gg(e,t,n){Qg(e)||(Qg(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}function Qg(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}function Xg(e,t,n,r){var i=parseInt(e.getAttribute(r)||1);return Math.max(n,t+i)}var Jg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=vg(this.editor.model.document.selection);this.isEnabled=e.length>0}},{key:"execute",value:function(){for(var e=this.editor.model,t=vg(e.document.selection),n=gg(t),r=t[0].findAncestor("table"),i=[],o=n.first;o<=n.last;o++){var a,s=l(r.getChild(o).getChildren());try{for(s.s();!(a=s.n()).done;){var c=a.value;i.push(e.createRangeOn(c))}}catch(e){s.e(e)}finally{s.f()}}e.change((function(e){e.setSelection(i)}))}}]),n}(Fl),Zg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=vg(this.editor.model.document.selection);this.isEnabled=e.length>0}},{key:"execute",value:function(){var e,t=this.editor.model,n=vg(t.document.selection),r=n[0],i=n.pop(),o=r.findAncestor("table"),a=this.editor.plugins.get("TableUtils"),s=a.getCellLocation(r),c=a.getCellLocation(i),u=Math.min(s.column,c.column),d=Math.max(s.column,c.column),f=[],h=l(new eg(o,{startColumn:u,endColumn:d}));try{for(h.s();!(e=h.n()).done;){var p=e.value;f.push(t.createRangeOn(p.cell))}}catch(e){h.e(e)}finally{h.f()}t.change((function(e){e.setSelection(f)}))}}]),n}(Fl);function eb(e,t){var n=!1,r=function(e){var t,n=parseInt(e.getAttribute("headingRows")||0),r=e.childCount,i=[],o=l(new eg(e));try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.row,c=a.cell,u=a.cellHeight;if(!(u<2)){var d=s<n?n:r;if(s+u>d){var f=d-s;i.push({cell:c,rowspan:f})}}}}catch(e){o.e(e)}finally{o.f()}return i}(e);if(r.length){n=!0;var i,o=l(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;Qv("rowspan",a.rowspan,a.cell,t,1)}}catch(e){o.e(e)}finally{o.f()}}return n}function tb(e,t){var n,r=!1,i=function(e){var t,n=new Array(e.childCount).fill(0),r=l(new eg(e,{includeAllSlots:!0}));try{for(r.s();!(t=r.n()).done;){n[t.value.row]++}}catch(e){r.e(e)}finally{r.f()}return n}(e),o=[],a=l(i.entries());try{for(a.s();!(n=a.n()).done;){var s=c(n.value,2),u=s[0];s[1]||o.push(u)}}catch(e){a.e(e)}finally{a.f()}if(o.length){r=!0;var d,f=l(o.reverse());try{for(f.s();!(d=f.n()).done;){var h=d.value;t.remove(e.getChild(h)),i.splice(h,1)}}catch(e){f.e(e)}finally{f.f()}}var p=i[0];if(!i.every((function(e){return e===p}))){var m,v=i.reduce((function(e,t){return t>e?t:e}),0),g=l(i.entries());try{for(g.s();!(m=g.n()).done;){var b=c(m.value,2),y=b[0],k=v-b[1];if(k){for(var w=0;w<k;w++)Xv(t,t.createPositionAt(e.getChild(y),"end"));r=!0}}}catch(e){g.e(e)}finally{g.f()}}return r}function nb(e){var t="attribute"===e.type,n=e.attributeKey;return t&&("headingRows"===n||"colspan"===n||"rowspan"===n)}function rb(e,t){var n,r=!1,i=l(e.getChildren());try{for(i.s();!(n=i.n()).done;){r=ib(n.value,t)||r}}catch(e){i.e(e)}finally{i.f()}return r}function ib(e,t){var n,r=!1,i=l(e.getChildren());try{for(i.s();!(n=i.n()).done;){r=ob(n.value,t)||r}}catch(e){i.e(e)}finally{i.f()}return r}function ob(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;var n,r=Array.from(e.getChildren()).filter((function(e){return e.is("$text")})),i=l(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.wrap(t.createRangeOn(o),"paragraph")}}catch(e){i.e(e)}finally{i.f()}return!!r.length}function ab(e){return!(!e.position||!e.position.parent.is("element","tableCell"))&&("insert"==e.type&&"$text"==e.name||"remove"==e.type)}function sb(e,t){if(!e.is("element","paragraph"))return!1;var n=t.toViewElement(e);return!!n&&ig(e)!==n.is("element","span")}n(111);var cb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model,n=t.schema,r=e.conversion;n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),n.extend("$block",{allowIn:"tableCell"}),n.addChildCheck((function(e,t){if("table"==t.name&&Array.from(e.getNames()).includes("table"))return!1})),r.for("upcast").add((function(e){e.on("element:table",(function(e,t,n){var r=t.viewItem;if(n.consumable.test(r,{name:!0})){var i=function(e){for(var t,n={headingRows:0,headingColumns:0},r=[],i=[],o=0,a=Array.from(e.getChildren());o<a.length;o++){var s=a[o];if("tbody"===s.name||"thead"===s.name||"tfoot"===s.name){"thead"!==s.name||t||(t=s);var c,u=l(Array.from(s.getChildren()).filter((function(e){return e.is("element","tr")})));try{for(u.s();!(c=u.n()).done;){var d=c.value;if("thead"===d.parent.name&&d.parent===t)n.headingRows++,r.push(d);else{i.push(d);var f=Zv(d);f>n.headingColumns&&(n.headingColumns=f)}}}catch(e){u.e(e)}finally{u.f()}}}return n.rows=[].concat(r,i),n}(r),o=i.rows,a=i.headingRows,s=i.headingColumns,c={};s&&(c.headingColumns=s),a&&(c.headingRows=a);var u=n.writer.createElement("table",c);if(n.safeInsert(u,t.modelCursor)){if(n.consumable.consume(r,{name:!0}),o.forEach((function(e){return n.convertItem(e,n.writer.createPositionAt(u,"end"))})),u.isEmpty){var d=n.writer.createElement("tableRow");n.writer.insert(d,n.writer.createPositionAt(u,"end")),Xv(n.writer,n.writer.createPositionAt(d,"end"))}n.updateConversionResult(u,t)}}}))})),r.for("editingDowncast").add(ng({asWidget:!0})),r.for("dataDowncast").add(ng()),r.for("upcast").elementToElement({model:"tableRow",view:"tr"}),r.for("upcast").add((function(e){e.on("element:tr",(function(e,t){t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()}),{priority:"high"})})),r.for("editingDowncast").add((function(e){return e.on("insert:tableRow",(function(e,t,n){var r=t.item;if(n.consumable.consume(r,"insert")){var i,o=r.parent,a=function(e){var t,n=l(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;if("table"===r.name)return r}}catch(e){n.e(e)}finally{n.f()}}(n.mapper.toViewElement(o)),s=o.getChildIndex(r),c=new eg(o,{row:s}),u={headingRows:o.getAttribute("headingRows")||0,headingColumns:o.getAttribute("headingColumns")||0},d=new Map,f=l(c);try{for(f.s();!(i=f.n()).done;){var h=i.value,p=d.get(s)||sg(a,r,s,u,n);d.set(s,p),n.consumable.consume(h.cell,"insert"),ag(h,u,n.writer.createPositionAt(p,"end"),n,{asWidget:!0})}}catch(e){f.e(e)}finally{f.f()}}}))})),r.for("editingDowncast").add((function(e){return e.on("remove:tableRow",(function(e,t,n){e.stop();var r,i=n.writer,o=n.mapper,a=o.toViewPosition(t.position).getLastMatchingPosition((function(e){return!e.item.is("element","tr")})).nodeAfter,s=a.parent.parent,c=i.createRangeOn(a),u=i.remove(c),d=l(i.createRangeIn(u).getItems());try{for(d.s();!(r=d.n()).done;){var f=r.value;o.unbindViewElement(f)}}catch(e){d.e(e)}finally{d.f()}ug("thead",s,n),ug("tbody",s,n)}),{priority:"higher"})})),r.for("upcast").elementToElement({model:"tableCell",view:"td"}),r.for("upcast").elementToElement({model:"tableCell",view:"th"}),r.for("editingDowncast").add((function(e){return e.on("insert:tableCell",(function(e,t,n){var r=t.item;if(n.consumable.consume(r,"insert")){var i,o=r.parent,a=o.parent,s=a.getChildIndex(o),c=new eg(a,{row:s}),u={headingRows:a.getAttribute("headingRows")||0,headingColumns:a.getAttribute("headingColumns")||0},d=l(c);try{for(d.s();!(i=d.n()).done;){var f=i.value;if(f.cell===r){var h=n.mapper.toViewElement(o);return void ag(f,u,n.writer.createPositionAt(h,o.getChildIndex(r)),n,{asWidget:!0})}}}catch(e){d.e(e)}finally{d.f()}}}))})),e.conversion.for("editingDowncast").elementToElement({model:"paragraph",view:rg,converterPriority:"high"}),r.attributeToAttribute({model:"colspan",view:"colspan"}),r.attributeToAttribute({model:"rowspan",view:"rowspan"}),r.for("editingDowncast").add((function(e){return e.on("attribute:headingColumns:table",(function(e,t,n){var r=t.item;if(n.consumable.consume(t.item,e.name)){var i,o={headingRows:r.getAttribute("headingRows")||0,headingColumns:r.getAttribute("headingColumns")||0},a=t.attributeOldValue,s=t.attributeNewValue,c=l(new eg(r,{endColumn:(a>s?a:s)-1}));try{for(c.s();!(i=c.n()).done;){og(i.value,o,n)}}catch(e){c.e(e)}finally{c.f()}}}))})),e.commands.add("insertTable",new hg(e)),e.commands.add("insertTableRowAbove",new Ag(e,{order:"above"})),e.commands.add("insertTableRowBelow",new Ag(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new xg(e,{order:"left"})),e.commands.add("insertTableColumnRight",new xg(e,{order:"right"})),e.commands.add("removeTableRow",new zg(e)),e.commands.add("removeTableColumn",new Vg(e)),e.commands.add("splitTableCellVertically",new Sg(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new Sg(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new Kg(e)),e.commands.add("mergeTableCellRight",new Bg(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new Bg(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new Bg(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new Bg(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new Hg(e)),e.commands.add("setTableRowHeader",new $g(e)),e.commands.add("selectTableRow",new Jg(e)),e.commands.add("selectTableColumn",new Zg(e)),function(e){e.document.registerPostFixer((function(){return function(e){var t,n=e.document.differ,r=new Set,i=l(n.getChanges());try{for(i.s();!(t=i.n()).done;){var o=t.value;if("attribute"==o.type){var a=o.range.start.nodeAfter;a&&a.is("element","table")&&"headingRows"==o.attributeKey&&r.add(a)}}}catch(e){i.e(e)}finally{i.f()}if(r.size){var s,c=l(r.values());try{for(c.s();!(s=c.n()).done;){var u=s.value;n.refreshItem(u)}}catch(e){c.e(e)}finally{c.f()}return!0}return!1}(e)}))}(t),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,r=t.document.differ.getChanges(),i=!1,o=new Set,a=l(r);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=void 0;"table"==s.name&&"insert"==s.type&&(c=s.position.nodeAfter),"tableRow"!=s.name&&"tableCell"!=s.name||(c=s.position.findAncestor("table")),nb(s)&&(c=s.range.start.findAncestor("table")),c&&!o.has(c)&&(i=eb(c,e)||i,i=tb(c,e)||i,o.add(c))}}catch(e){a.e(e)}finally{a.f()}return i}(t,e)}))}(t),function(e,t){e.document.registerPostFixer((function(){return function(e,t){var n,r=new Set,i=l(e.getChanges());try{for(i.s();!(n=i.n()).done;){var o=n.value,a="attribute"==o.type?o.range.start.parent:o.position.parent;a.is("element","tableCell")&&r.add(a)}}catch(e){i.e(e)}finally{i.f()}var s,c=l(r.values());try{for(c.s();!(s=c.n()).done;){var d,f=l(u(s.value.getChildren()).filter((function(e){return sb(e,t)})));try{for(f.s();!(d=f.n()).done;){var h=d.value;e.refreshItem(h)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){c.e(e)}finally{c.f()}return!1}(e.document.differ,t)}))}(t,e.editing.mapper),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,r=!1,i=l(t.document.differ.getChanges());try{for(i.s();!(n=i.n()).done;){var o=n.value;"insert"==o.type&&"table"==o.name&&(r=rb(o.position.nodeAfter,e)||r),"insert"==o.type&&"tableRow"==o.name&&(r=ib(o.position.nodeAfter,e)||r),"insert"==o.type&&"tableCell"==o.name&&(r=ob(o.position.nodeAfter,e)||r),ab(o)&&(r=ob(o.position.parent,e)||r)}}catch(e){i.e(e)}finally{i.f()}return r}(t,e)}))}(t)}}],[{key:"pluginName",get:function(){return"TableEditing"}},{key:"requires",get:function(){return[Ug]}}]),n}(Ll);n(113);var lb=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.items=r._createGridCollection(),r.set("rows",0),r.set("columns",0),r.bind("label").to(y(r),"columns",y(r),"rows",(function(e,t){return"".concat(t," × ").concat(e)})),r.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":i.to("boxover")},children:r.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:i.to("label")}]}],on:{mousedown:i.to((function(e){e.preventDefault()})),click:i.to((function(){r.fire("execute")}))}}),r.on("boxover",(function(e,t){var n=t.target.dataset,i=n.row,o=n.column;r.set({rows:parseInt(i),columns:parseInt(o)})})),r.on("change:columns",(function(){r._highlightGridBoxes()})),r.on("change:rows",(function(){r._highlightGridBoxes()})),r}return m(n,[{key:"focus",value:function(){}},{key:"focusLast",value:function(){}},{key:"_highlightGridBoxes",value:function(){var e=this.rows,t=this.columns;this.items.map((function(n,r){var i=Math.floor(r/10)<e&&r%10<t;n.set("isOn",i)}))}},{key:"_createGridCollection",value:function(){for(var e=[],t=0;t<100;t++){var n=Math.floor(t/10),r=t%10;e.push(new ub(this.locale,n+1,r+1))}return this.createCollection(e)}}]),n}(Xc),ub=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;h(this,n);var a=(o=t.call(this,e)).bindTemplate;return o.set("isOn",!1),o.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",a.if("isOn","ck-on")],"data-row":r,"data-column":i}}),o}return n}(Xc),db=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=this.editor.t,r="ltr"===t.locale.contentLanguageDirection;t.ui.componentFactory.add("insertTable",(function(e){var r,i=t.commands.get("insertTable"),o=El(e);return o.bind("isEnabled").to(i),o.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:n("Insert table"),tooltip:!0}),o.on("change:isOpen",(function(){r||(r=new lb(e),o.panelView.children.add(r),r.delegate("execute").to(o),o.buttonView.on("open",(function(){r.rows=0,r.columns=0})),o.on("execute",(function(){t.execute("insertTable",{rows:r.rows,columns:r.columns}),t.editing.view.focus()})))})),o})),t.ui.componentFactory.add("tableColumn",(function(t){var i=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:n("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:r?"insertTableColumnLeft":"insertTableColumnRight",label:n("Insert column left")}},{type:"button",model:{commandName:r?"insertTableColumnRight":"insertTableColumnLeft",label:n("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:n("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:n("Select column")}}];return e._prepareDropdown(n("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',i,t)})),t.ui.componentFactory.add("tableRow",(function(t){var r=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:n("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:n("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:n("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:n("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:n("Select row")}}];return e._prepareDropdown(n("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',r,t)})),t.ui.componentFactory.add("mergeTableCells",(function(t){var i=[{type:"button",model:{commandName:"mergeTableCellUp",label:n("Merge cell up")}},{type:"button",model:{commandName:r?"mergeTableCellRight":"mergeTableCellLeft",label:n("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:n("Merge cell down")}},{type:"button",model:{commandName:r?"mergeTableCellLeft":"mergeTableCellRight",label:n("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:n("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:n("Split cell horizontally")}}];return e._prepareMergeSplitButtonDropdown(n("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',i,t)}))}},{key:"_prepareDropdown",value:function(e,t,n,r){var i=this.editor,o=El(r),a=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:e,icon:t,tooltip:!0}),o.bind("isEnabled").toMany(a,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),this.listenTo(o,"execute",(function(e){i.execute(e.source.commandName),i.editing.view.focus()})),o}},{key:"_prepareMergeSplitButtonDropdown",value:function(e,t,n,r){var i=this.editor,o=El(r,Yf);return this._fillDropdownWithListOptions(o,n),o.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),this.listenTo(o.buttonView,"execute",(function(){i.execute("mergeTableCells"),i.editing.view.focus()})),this.listenTo(o,"execute",(function(e){i.execute(e.source.commandName),i.editing.view.focus()})),o}},{key:"_fillDropdownWithListOptions",value:function(e,t){var n,r=this.editor,i=[],o=new cn,a=l(t);try{for(a.s();!(n=a.n()).done;){fb(n.value,r,i,o)}}catch(e){a.e(e)}finally{a.f()}return Dl(e,o,r.ui.componentFactory),i}}]),n}(Ll);function fb(e,t,n,r){var i=e.model=new Ef(e.model),o=e.model,a=o.commandName,s=o.bindIsOn;if("button"===e.type||"switchbutton"===e.type){var c=t.commands.get(a);n.push(c),i.set({commandName:a}),i.bind("isEnabled").to(c),s&&i.bind("isOn").to(c,"value")}i.set({withText:!0}),r.add(e)}n(115);var hb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.model;this.listenTo(t,"deleteContent",(function(t,n){return e._handleDeleteContent(t,n)}),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}},{key:"getSelectedTableCells",value:function(){var e=pg(this.editor.model.document.selection);return 0==e.length?null:e}},{key:"getSelectionAsFragment",value:function(){var e=this,t=this.getSelectedTableCells();return t?this.editor.model.change((function(n){var r=n.createDocumentFragment(),i=e.editor.plugins.get("TableUtils"),o=bg(t),a=o.first,s=o.last,c=gg(t),l=c.first,u=c.last,d=t[0].findAncestor("table"),f=u,h=s;if(yg(t,i)){var p={firstColumn:a,lastColumn:s,firstRow:l,lastRow:u};f=Rg(d,p),h=Lg(d,p)}var m=Mg(d,{startRow:l,startColumn:a,endRow:f,endColumn:h},n);return n.insert(m,r,0),r})):null}},{key:"setCellSelection",value:function(e,t){var n=this._getCellsToSelect(e,t);this.editor.model.change((function(e){e.setSelection(n.cells.map((function(t){return e.createRangeOn(t)})),{backward:n.backward})}))}},{key:"getFocusCell",value:function(){var e=u(this.editor.model.document.selection.getRanges()).pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}},{key:"getAnchorCell",value:function(){var e=Vl(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}},{key:"_defineSelectionConverter",value:function(){var e=this,t=this.editor,n=new Set;t.conversion.for("editingDowncast").add((function(t){return t.on("selection",(function(t,r,i){var o=i.writer;!function(e){var t,r=l(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;e.removeClass("ck-editor__editable_selected",i)}}catch(e){r.e(e)}finally{r.f()}n.clear()}(o);var a=e.getSelectedTableCells();if(a){var s,c=l(a);try{for(c.s();!(s=c.n()).done;){var u=s.value,d=i.mapper.toViewElement(u);o.addClass("ck-editor__editable_selected",d),n.add(d)}}catch(e){c.e(e)}finally{c.f()}var f=i.mapper.toViewElement(a[a.length-1]);o.setSelection(f,0)}}),{priority:"lowest"})}))}},{key:"_enablePluginDisabling",value:function(){var e=this,t=this.editor;this.on("change:isEnabled",(function(){if(!e.isEnabled){var n=e.getSelectedTableCells();if(!n)return;t.model.change((function(e){var r=e.createPositionAt(n[0],0),i=t.model.schema.getNearestSelectionRange(r);e.setSelection(i)}))}}))}},{key:"_handleDeleteContent",value:function(e,t){var n=c(t,2),r=n[0],i=n[1],o=this.editor.model,a=!i||"backward"==i.direction,s=pg(r);s.length&&(e.stop(),o.change((function(e){var t=s[a?s.length-1:0];o.change((function(e){var t,n=l(s);try{for(n.s();!(t=n.n()).done;){var r=t.value;o.deleteContent(e.createSelection(r,"in"))}}catch(e){n.e(e)}finally{n.f()}}));var n=o.schema.getNearestSelectionRange(e.createPositionAt(t,0));r.is("documentSelection")?e.setSelection(n):r.setTo(n)})))}},{key:"_getCellsToSelect",value:function(e,t){var n,r=this.editor.plugins.get("TableUtils"),i=r.getCellLocation(e),o=r.getCellLocation(t),a=Math.min(i.row,o.row),s=Math.max(i.row,o.row),c=Math.min(i.column,o.column),u=Math.max(i.column,o.column),d=new Array(s-a+1).fill(null).map((function(){return[]})),f={startRow:a,endRow:s,startColumn:c,endColumn:u},h=l(new eg(e.findAncestor("table"),f));try{for(h.s();!(n=h.n()).done;){var p=n.value,m=p.row,v=p.cell;d[m-a].push(v)}}catch(e){h.e(e)}finally{h.f()}var g=o.row<i.row,b=o.column<i.column;return g&&d.reverse(),b&&d.forEach((function(e){return e.reverse()})),{cells:d.flat(),backward:g||b}}}],[{key:"pluginName",get:function(){return"TableSelection"}},{key:"requires",get:function(){return[Ug]}}]),n}(Ll),pb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this.listenTo(n,"copy",(function(t,n){return e._onCopyCut(t,n)})),this.listenTo(n,"cut",(function(t,n){return e._onCopyCut(t,n)})),this.listenTo(t.model,"insertContent",(function(t,n){return e._onInsertContent.apply(e,[t].concat(u(n)))}),{priority:"high"}),this.decorate("_replaceTableSlotCell")}},{key:"_onCopyCut",value:function(e,t){var n=this.editor.plugins.get(hb);if(n.getSelectedTableCells()&&("cut"!=e.name||!this.editor.isReadOnly)){t.preventDefault(),e.stop();var r=this.editor.data,i=this.editor.editing.view.document,o=r.toView(n.getSelectionAsFragment());i.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:o,method:e.name})}}},{key:"_onInsertContent",value:function(e,t,n){var r=this;if(!n||n.is("documentSelection")){var i=this.editor.model,o=this.editor.plugins.get(Ug),a=function(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(1==e.childCount&&e.getChild(0).is("element","table"))return e.getChild(0);var n,r=t.createRangeIn(e),i=l(r.getItems());try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("element","table")){var a=t.createRange(r.start,t.createPositionBefore(o));if(t.hasContent(a,{ignoreWhitespaces:!0}))return null;var s=t.createRange(t.createPositionAfter(o),r.end);return t.hasContent(s,{ignoreWhitespaces:!0})?null:o}}}catch(e){i.e(e)}finally{i.f()}return null}(t,i);if(a){var s=vg(i.document.selection);s.length?(e.stop(),i.change((function(e){var t={width:o.getColumns(a),height:o.getRows(a)},n=function(e,t,n,r){var i=e[0].findAncestor("table"),o=bg(e),a=gg(e),s={firstColumn:o.first,lastColumn:o.last,firstRow:a.first,lastRow:a.last},c=1===e.length;return c&&(s.lastRow+=t.height-1,s.lastColumn+=t.width-1,function(e,t,n,r){var i=r.getColumns(e),o=r.getRows(e);n>i&&r.insertColumns(e,{at:i,columns:n-i}),t>o&&r.insertRows(e,{at:o,rows:t-o})}(i,s.lastRow+1,s.lastColumn+1,r)),c||!yg(e,r)?function(e,t,n){var r=t.firstRow,i=t.lastRow,o=t.firstColumn,a=t.lastColumn,s={first:r,last:i},c={first:o,last:a};vb(e,o,s,n),vb(e,a+1,s,n),mb(e,r,c,n),mb(e,i+1,c,n,r)}(i,s,n):(s.lastRow=Rg(i,s),s.lastColumn=Lg(i,s)),s}(s,t,e,o),i=n.lastRow-n.firstRow+1,c=n.lastColumn-n.firstColumn+1,l={startRow:0,startColumn:0,endRow:Math.min(i,t.height)-1,endColumn:Math.min(c,t.width)-1};a=Mg(a,l,e);var u=s[0].findAncestor("table"),d=r._replaceSelectedCellsWithPasted(a,t,u,n,e);if(r.editor.plugins.get("TableSelection").isEnabled){var f=kg(d.map((function(t){return e.createRangeOn(t)})));e.setSelection(f)}else e.setSelection(d[0],0)}))):Ng(a,o)}}}},{key:"_replaceSelectedCellsWithPasted",value:function(e,t,n,r,i){for(var o,a=t.width,s=t.height,c=function(e,t,n){var r,i=new Array(n).fill(null).map((function(){return new Array(t).fill(null)})),o=l(new eg(e));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.column,c=a.row,u=a.cell;i[c][s]=u}}catch(e){o.e(e)}finally{o.f()}return i}(e,a,s),d=[],f=0,h=u(new eg(n,{startRow:r.firstRow,endRow:r.lastRow,startColumn:r.firstColumn,endColumn:r.lastColumn,includeAllSlots:!0}));f<h.length;f++){var p=h[f],m=p.row,v=p.column;v===r.firstColumn&&(o=p.getPositionBefore());var g=m-r.firstRow,b=v-r.firstColumn,y=c[g%s][b%a],k=y?i.cloneElement(y):null,w=this._replaceTableSlotCell(p,k,o,i);w&&(Pg(w,m,v,r.lastRow,r.lastColumn,i),d.push(w),o=i.createPositionAfter(w))}var _=parseInt(n.getAttribute("headingRows")||0),C=parseInt(n.getAttribute("headingColumns")||0),A=r.firstRow<_&&_<=r.lastRow,x=r.firstColumn<C&&C<=r.lastColumn;if(A){var S=mb(n,_,{first:r.firstColumn,last:r.lastColumn},i,r.firstRow);d.push.apply(d,u(S))}if(x){var M=vb(n,C,{first:r.firstRow,last:r.lastRow},i);d.push.apply(d,u(M))}return d}},{key:"_replaceTableSlotCell",value:function(e,t,n,r){var i=e.cell;return e.isAnchor&&r.remove(i),t?(r.insert(t,n),t):null}}],[{key:"pluginName",get:function(){return"TableClipboard"}},{key:"requires",get:function(){return[hb,Ug]}}]),n}(Ll);function mb(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!(t<1))return Eg(e,t,i).filter((function(e){return gb(e.column,e.cellWidth,n)})).map((function(e){return Tg(e.cell,t,r)}))}function vb(e,t,n,r){if(!(t<1))return Dg(e,t).filter((function(e){return gb(e.row,e.cellHeight,n)})).map((function(e){return Og(e.cell,e.column,t,r)}))}function gb(e,t,n){var r=e+t-1,i=n.first,o=n.last;return e>=i&&e<=o||e<i&&r>=i}var bb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",(function(){return e._handleTabOnSelectedTable.apply(e,arguments)}),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(t,"keydown",(function(){return e._onKeydown.apply(e,arguments)}),{priority:Yt.get("high")-10})}},{key:"_handleTabOnSelectedTable",value:function(e,t){var n=this.editor,r=n.model.document.selection.getSelectedElement();r&&r.is("element","table")&&(t(),n.model.change((function(e){e.setSelection(e.createRangeIn(r.getChild(0).getChild(0)))})))}},{key:"_getTabHandler",value:function(e){var t=this,n=this.editor;return function(r,i){var o=mg(n.model.document.selection)[0];if(o||(o=t.editor.plugins.get("TableSelection").getFocusCell()),o){i();var a=o.parent,s=a.parent,c=s.getChildIndex(a),l=a.getChildIndex(o),u=0===l;if(e||!u||0!==c){var d=l===a.childCount-1,f=c===s.childCount-1;if(e&&f&&d&&(n.execute("insertTableRowBelow"),c===s.childCount-1))n.model.change((function(e){e.setSelection(e.createRangeOn(s))}));else{var h;if(e&&d){var p=s.getChild(c+1);h=p.getChild(0)}else if(!e&&u){var m=s.getChild(c-1);h=m.getChild(m.childCount-1)}else h=a.getChild(l+(e?1:-1));n.model.change((function(e){e.setSelection(e.createRangeIn(h))}))}}else n.model.change((function(e){e.setSelection(e.createRangeOn(s))}))}}}},{key:"_onKeydown",value:function(e,t){var n=this.editor,r=t.keyCode;if(Kr(r)){var i=Gr(r,n.locale.contentLanguageDirection);this._handleArrowKeys(i,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}}},{key:"_handleArrowKeys",value:function(e,t){var n,r=this.editor.model.document.selection,i=["right","down"].includes(e),o=pg(r);if(o.length)return n=t?this.editor.plugins.get("TableSelection").getFocusCell():i?o[o.length-1]:o[0],this._navigateFromCellInDirection(n,e,t),!0;var a=r.focus.findAncestor("tableCell");return!(!a||t&&!r.isCollapsed&&r.isBackward==i||!this._isSelectionAtCellEdge(r,a,i)||(this._navigateFromCellInDirection(a,e,t),0))}},{key:"_isSelectionAtCellEdge",value:function(e,t,n){var r=this.editor.model,i=this.editor.model.schema,o=n?e.getLastPosition():e.getFirstPosition();if(!i.getLimitElement(o).is("element","tableCell"))return r.createPositionAt(t,n?"end":0).isTouching(o);var a=r.createSelection(o);return r.modifySelection(a,{direction:n?"forward":"backward"}),o.isEqual(a.focus)}},{key:"_navigateFromCellInDirection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.model,i=e.findAncestor("table"),o=u(new eg(i,{includeAllSlots:!0})),a=o[o.length-1],s=a.row,c=a.column,l=o.find((function(t){return t.cell==e})),d=l.row,f=l.column;switch(t){case"left":f--;break;case"up":d--;break;case"right":f+=l.cellWidth;break;case"down":d+=l.cellHeight}if(d<0||d>s||f<0&&d<=0||f>c&&d>=s)r.change((function(e){e.setSelection(e.createRangeOn(i))}));else{f<0?(f=n?0:c,d--):f>c&&(f=n?c:0,d++);var h=o.find((function(e){return e.row==d&&e.column==f})).cell,p=["right","down"].includes(t),m=this.editor.plugins.get("TableSelection");if(n&&m.isEnabled){var v=m.getAnchorCell()||e;m.setCellSelection(v,h)}else{var g=r.createPositionAt(h,p?0:"end");r.change((function(e){e.setSelection(g)}))}}}}],[{key:"pluginName",get:function(){return"TableKeyboard"}},{key:"requires",get:function(){return[hb]}}]),n}(Ll),yb=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType=["mousemove","mouseup","mouseleave"],r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo),kb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.editor.editing.view.addObserver(yb),this._enableShiftClickSelection(),this._enableMouseDragSelection()}},{key:"_enableShiftClickSelection",value:function(){var e=this,t=this.editor,n=!1,r=t.plugins.get(hb);this.listenTo(t.editing.view.document,"mousedown",(function(i,o){if(e.isEnabled&&r.isEnabled&&o.domEvent.shiftKey){var a=r.getAnchorCell()||mg(t.model.document.selection)[0];if(a){var s=e._getModelTableCellFromDomEvent(o);s&&wb(a,s)&&(n=!0,r.setCellSelection(a,s),o.preventDefault())}}})),this.listenTo(t.editing.view.document,"mouseup",(function(){n=!1})),this.listenTo(t.editing.view.document,"selectionChange",(function(e){n&&e.stop()}),{priority:"highest"})}},{key:"_enableMouseDragSelection",value:function(){var e,t,n=this,r=this.editor,i=!1,o=!1,a=r.plugins.get(hb);this.listenTo(r.editing.view.document,"mousedown",(function(t,r){n.isEnabled&&a.isEnabled&&(r.domEvent.shiftKey||r.domEvent.ctrlKey||r.domEvent.altKey||(e=n._getModelTableCellFromDomEvent(r)))})),this.listenTo(r.editing.view.document,"mousemove",(function(r,s){if(s.domEvent.buttons&&e){var c=n._getModelTableCellFromDomEvent(s);c&&wb(e,c)&&(t=c,i||t==e||(i=!0)),i&&(o=!0,a.setCellSelection(e,t),s.preventDefault())}})),this.listenTo(r.editing.view.document,"mouseup",(function(){i=!1,o=!1,e=null,t=null})),this.listenTo(r.editing.view.document,"selectionChange",(function(e){o&&e.stop()}),{priority:"highest"})}},{key:"_getModelTableCellFromDomEvent",value:function(e){var t=e.target,n=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}],[{key:"pluginName",get:function(){return"TableMouse"}},{key:"requires",get:function(){return[hb]}}]),n}(Ll);function wb(e,t){return e.parent.parent==t.parent.parent}function _b(e){var t=e.getSelectedElement();return t&&Ab(t)?t:null}function Cb(e){var t=function(e,t){for(var n=t.parent;n;){if("table"===n.name)return n;n=n.parent}}(0,e.getFirstPosition());return t&&Ab(t.parent)?t.parent:null}function Ab(e){return!!e.getCustomProperty("table")&&dh(e)}n(117);var xb=/[\\^$.*+?()[\]{}|]/g,Sb=RegExp(xb.source),Mb={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:"1/2",to:"½"},oneThird:{from:"1/3",to:"⅓"},twoThirds:{from:"2/3",to:"⅔"},oneForth:{from:"1/4",to:"¼"},threeQuarters:{from:"3/4",to:"¾"},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:Ib('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:Ib("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:Ib("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:Ib('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:Ib('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:Ib("'"),to:[null,"‚",null,"’"]}},Eb={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},Tb=["symbols","mathematical","typography","quotes"];function Db(e){return"string"==typeof e?new RegExp("(".concat(function(e){return(e=jn(e))&&Sb.test(e)?e.replace(xb,"\\$&"):e}(e),")$")):e}function Ob(e){return"string"==typeof e?function(){return[e]}:e instanceof Array?function(){return e}:e}function Pb(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function Ib(e){return new RegExp("(^|\\s)(".concat(e,")([^").concat(e,"]*)(").concat(e,")$"))}var jb="underline",Nb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:jb}),e.model.schema.setAttributeProperties(jb,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:jb,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),e.commands.add(jb,new Pu(e,jb)),e.keystrokes.set("CTRL+U","underline")}}],[{key:"pluginName",get:function(){return"UnderlineEditing"}}]),n}(Ll),Rb="underline",Lb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(Rb,(function(r){var i=t.commands.get(Rb),o=new kl(r);return o.set({label:n("Underline"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 18v-1.5h14V18zm2.2-8V3.6c0-.4.4-.6.8-.6.3 0 .7.2.7.6v6.2c0 2 1.3 2.8 3.2 2.8 1.9 0 3.4-.9 3.4-2.9V3.6c0-.3.4-.5.8-.5.3 0 .7.2.7.5V10c0 2.7-2.2 4-4.9 4-2.6 0-4.7-1.2-4.7-4z"/></svg>',keystroke:"CTRL+U",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(Rb),t.editing.view.focus()})),o}))}}]),n}(Ll),Bb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return n}(Rl);Bb.builtinPlugins=[function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Yl,Xl]}},{key:"pluginName",get:function(){return"Alignment"}}]),n}(Ll),Au,function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Du,Ou]}},{key:"pluginName",get:function(){return"BlockQuote"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[ju,Ru]}},{key:"pluginName",get:function(){return"Bold"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Vu,Wu,nd,Qu,gd,Bd]}},{key:"pluginName",get:function(){return"Essentials"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[vf,yf]}},{key:"pluginName",get:function(){return"FontBackgroundColor"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[wf,_f]}},{key:"pluginName",get:function(){return"FontColor"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Mf,Tf]}},{key:"pluginName",get:function(){return"FontFamily"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[jf,Nf]}},{key:"pluginName",get:function(){return"FontSize"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Hf,Uf]}},{key:"pluginName",get:function(){return"Heading"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Wf,Kf]}},{key:"pluginName",get:function(){return"Highlight"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[kh,wh]}},{key:"pluginName",get:function(){return"HorizontalLine"}}]),n}(Ll),ip,function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[sp]}},{key:"pluginName",get:function(){return"ImageCaption"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"pluginName",get:function(){return"ImageInsert"}},{key:"requires",get:function(){return[jp,Bp]}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[zp,Qp,Hp]}},{key:"pluginName",get:function(){return"ImageResize"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[sm,cm]}},{key:"pluginName",get:function(){return"ImageStyle"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"afterInit",value:function(){var e=this.editor,t=e.t;e.plugins.get(lm).register("image",{ariaLabel:t("Image toolbar"),items:e.config.get("image.toolbar")||[],getRelatedElement:Ah})}}],[{key:"requires",get:function(){return[lm]}},{key:"pluginName",get:function(){return"ImageToolbar"}}]),n}(Ll),jp,function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"pluginName",get:function(){return"Indent"}},{key:"requires",get:function(){return[hm,vm]}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[bm,km]}},{key:"pluginName",get:function(){return"Italic"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[jm,$m,Au]}},{key:"pluginName",get:function(){return"Link"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Um,Gm]}},{key:"pluginName",get:function(){return"LinkImage"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[kv,_v]}},{key:"pluginName",get:function(){return"List"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Ov,Nv,Iv,zh]}},{key:"pluginName",get:function(){return"MediaEmbed"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"afterInit",value:function(){var e=this.editor,t=e.t;e.plugins.get(lm).register("mediaEmbed",{ariaLabel:t("Media toolbar"),items:e.config.get("mediaEmbed.toolbar")||[],getRelatedElement:Av})}}],[{key:"requires",get:function(){return[lm]}},{key:"pluginName",get:function(){return"MediaEmbedToolbar"}}]),n}(Ll),Ff,function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document,n=[];n.push(new Uv(t)),n.push(new Fv(t)),e.plugins.get("Clipboard").on("inputTransformation",(function(e,t){if(!t.isTransformedWithPasteFromOffice){var r=t.dataTransfer.getData("text/html"),i=n.find((function(e){return e.isActive(r)}));i&&(i.execute(t),t.isTransformedWithPasteFromOffice=!0)}}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"PasteFromOffice"}},{key:"requires",get:function(){return[Vu]}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Kv,Wv]}},{key:"pluginName",get:function(){return"RemoveFormat"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor.config.get("simpleUpload");e&&(e.uploadUrl?this.editor.plugins.get(kp).createUploadAdapter=function(t){return new Gv(t,e)}:Object(Kt.c)("simple-upload-adapter-missing-uploadurl"))}}],[{key:"requires",get:function(){return[kp]}},{key:"pluginName",get:function(){return"SimpleUploadAdapter"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[cb,db,hb,kb,bb,pb,zh]}},{key:"pluginName",get:function(){return"Table"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"afterInit",value:function(){var e=this.editor,t=e.t,n=e.plugins.get(lm),r=e.config.get("table.contentToolbar"),i=e.config.get("table.tableToolbar");r&&n.register("tableContent",{ariaLabel:t("Table toolbar"),items:r,getRelatedElement:Cb}),i&&n.register("table",{ariaLabel:t("Table toolbar"),items:i,getRelatedElement:_b})}}],[{key:"requires",get:function(){return[lm]}},{key:"pluginName",get:function(){return"TableToolbar"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("typing",{transformations:{include:Tb}}),r}return m(n,null,[{key:"pluginName",get:function(){return"TextTransformation"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}},{key:"_enableTransformationWatchers",value:function(){var e=this.editor,t=e.model,n=e.plugins.get("Input"),r=function(e){var t=e.extra||[],n=e.remove||[],r=function(e){return!n.includes(e)};return function(e){var t,n=new Set,r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(Eb[i]){var o,a=l(Eb[i]);try{for(a.s();!(o=a.n()).done;){var s=o.value;n.add(s)}}catch(e){a.e(e)}finally{a.f()}}else n.add(i)}}catch(e){r.e(e)}finally{r.f()}return Array.from(n)}(e.include.concat(t).filter(r)).filter(r).map((function(e){return Mb[e]||e})).map((function(e){return{from:Db(e.from),to:Ob(e.to)}}))}(e.config.get("typing.transformations")),i=new Zl(e.model,(function(e){var t,n=l(r);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.from.test(e))return{normalizedTransformation:i}}}catch(e){n.e(e)}finally{n.f()}}));i.on("matched:data",(function(e,r){if(n.isInput(r.batch)){var i=r.normalizedTransformation,o=i.from,a=i.to,s=o.exec(r.text),c=a(s.slice(1)),l=r.range,u=s.index;t.enqueueChange((function(e){for(var n=1;n<s.length;n++){var r=s[n],i=c[n-1];if(null!=i){var o=l.start.getShiftedBy(u),a=t.createRange(o,o.getShiftedBy(r.length)),d=Pb(o);t.insertContent(e.createText(i,d),a),u+=i.length}else u+=r.length}}))}})),i.bind("isEnabled").to(this)}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Nb,Lb]}},{key:"pluginName",get:function(){return"Underline"}}]),n}(Ll)],t.default=Bb}]).default}))}).call(this,n(183)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return x()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function f(){}function h(){}var p={};p[i]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(A([])));v&&v!==t&&n.call(v,i)&&(p=v);var g=h.prototype=d.prototype=Object.create(p);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function A(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return f.prototype=g.constructor=h,h.constructor=f,f.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(y.prototype),y.prototype[o]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new y(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,a,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";var r=n(22);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,"div.ck-editor__editable{min-height:500px}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(23);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,".mw-fc[data-v-1526165e]{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(24);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,"div.ck-editor__editable{min-height:500px}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(25);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,".card .card-icon--success[data-v-77d962d2]{background-color:rgba(67,155,115,.03)}.card .card-icon--info[data-v-77d962d2]{background-color:rgba(31,162,255,.03)}.card .card-icon--warn[data-v-77d962d2]{background-color:rgba(255,143,0,.03)}.card .card-icon--danger[data-v-77d962d2]{background-color:rgba(192,36,40,.03)}.card .card-icon[data-v-77d962d2]{text-align:center;height:72px;width:72px;min-width:72px;border-radius:50%;margin-right:20px}.card--shadow[data-v-77d962d2]{box-shadow:0 1px 1px 0 rgba(10,22,70,.1),0 0 1px 0 rgba(10,22,70,.06)}.card[data-v-77d962d2]{padding:24px 36px;width:100%}.bg-white[data-v-77d962d2]{background-color:#fff!important}.d-flex[data-v-77d962d2]{display:flex!important;flex-direction:row}.flex-content-center[data-v-77d962d2]{align-content:center!important}.flex-justify-between[data-v-77d962d2]{justify-content:space-between!important}.card .card-content[data-v-77d962d2]{border-left:1px solid #f7f8f9;padding-left:20px;flex-grow:1;min-height:72px}.flex-justify-center[data-v-77d962d2]{justify-content:center!important}.flex-column[data-v-77d962d2]{flex-direction:column!important}.flex-items-center[data-v-77d962d2]{align-items:center!important}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(26);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,"input[data-v-57f75663]{height:40px;padding:10px 12px;width:100%;color:#32325d;background-color:#fff;border:1px solid transparent;border-radius:4px;box-shadow:0 1px 3px 0 #e6ebf1;transition:box-shadow .15s ease}input[data-v-57f75663]:focus{box-shadow:0 1px 3px 0 #cfd7df}.ElementsModal--modal[data-v-57f75663]{all:initial;box-sizing:border-box;position:fixed;font-family:-apple-system,BlinkMacSystemFont,sans-serif;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);opacity:0;visibility:hidden;transform:scale(1.1);transition:visibility 0s linear .25s,opacity .25s 0s,transform .25s;z-index:100001!important}.ElementsModal--modal-content[data-v-57f75663]{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);border-radius:10px;background:#fff;overflow:hidden;width:385px;border-radius:.5rem}@media screen and (max-width:600px){.ElementsModal--modal-content[data-v-57f75663]{height:100vh;width:100%;border-radius:0}.ElementsModal--close[data-v-57f75663],.ElementsModal--top[data-v-57f75663]{padding-top:4em}}.ElementsModal--top[data-v-57f75663]{display:flex;justify-content:flex-end;position:relative}.ElementsModal--close[data-v-57f75663]{background:none;color:inherit;padding:0;font:inherit;outline:inherit;color:#fff;cursor:pointer;position:absolute;top:0;right:0;border:none}.ElementsModal--show-modal[data-v-57f75663]{opacity:1;visibility:visible;transform:scale(1);transition:visibility 0s linear 0s,opacity .25s 0s,transform .25s}.ElementsModal--details[data-v-57f75663]{margin-bottom:2px}.ElementsModal--price[data-v-57f75663]{color:#fff;font-size:36px;font-weight:600}.ElementsModal--top-banner[data-v-57f75663]{background-color:#044e9c;text-align:center;padding:20px 1em 2em}.ElementsModal--email[data-v-57f75663],.ElementsModal--product[data-v-57f75663]{color:hsla(0,0%,100%,.5);font-size:16px;font-weight:500}.ElementsModal--company[data-v-57f75663]{color:#fff;font-size:18px;font-weight:700;margin:auto auto 32px}.ElementsModal--footer-text[data-v-57f75663]{color:rgba(0,0,0,.4);font-size:12px;font-weight:400;text-align:center;line-height:16px}.ElementsModal--error-message[data-v-57f75663]{margin-top:5px;color:#dc2727;font-size:13px;line-height:17px}.ElementsModal--pay-button-wrapper[data-v-57f75663]{font-family:-apple-system,BlinkMacSystemFont,sans-serif;margin:25px;width:350px;height:40px}.ElementsModal--pay-button[data-v-57f75663]{cursor:pointer;border:0;width:100%;text-align:center;height:40px;box-shadow:inset 0 0 0 1px rgba(50,50,93,.1),0 2px 5px 0 rgba(50,50,93,.1),0 1px 1px 0 rgba(0,0,0,.07);border-radius:6px 6px 6px 6px;font-size:16px;font-weight:600;background-color:#0074d4;color:#fff}.ElementsModal--pay-button[data-v-57f75663]:focus{outline:none;box-shadow:0 0 0 1px rgba(50,151,211,.3),0 1px 1px 0 rgba(0,0,0,.07),0 0 0 4px rgba(50,151,211,.3)}.ElementsModal--dropdowns[data-v-57f75663]{margin:10px;-webkit-appearance:none;background:#fff;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px 0 rgba(0,0,0,.07),0 1px 1.5px 0 rgba(0,0,0,.05);border-radius:4px 4px 4px 4px}.ElementsModal--payment-form[data-v-57f75663]{margin-bottom:0}.ElementsModal--label[data-v-57f75663]{color:rgba(0,0,0,.6);font-size:14px;font-weight:500}.ElementsModal--forms[data-v-57f75663]{padding:5%}.ElementsModal--form[data-v-57f75663]{margin-bottom:14px}.ElementsModal--form-label[data-v-57f75663]{font-size:13px;margin-bottom:4px;display:block;color:rgba(0,0,0,.6)}.ElementsModal--form-select select[data-v-57f75663]{padding:10px 12px;width:100%;border:1px solid transparent;outline:none;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px 0 rgba(0,0,0,.07),0 1px 1.5px 0 rgba(0,0,0,.05);transition:box-shadow .15s ease;border-radius:5px 5px 5px 5px;background-color:#fff;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.193 3.97a.75.75 0 011.062 1.062L6.53 9.756a.75.75 0 01-1.06 0L.745 5.032A.75.75 0 011.807 3.97L6 8.163l4.193-4.193z' fill-rule='evenodd' fill-opacity='.4'/%3E%3C/svg%3E\");background-size:12px;background-position:calc(100% - 16px) 50%;background-repeat:no-repeat;color:#282828;font-size:16px;font-weight:400}.ElementsModal--form-select select[data-v-57f75663]:-moz-focusring{color:transparent;text-shadow:0 0 0 #000}.ElementsModal--form>label[data-v-57f75663]{width:100%}.ElementsModal--form-select select[data-v-57f75663]:focus{box-shadow:0 0 0 1px rgba(50,151,211,.3),0 1px 1px 0 rgba(0,0,0,.07),0 0 0 4px rgba(50,151,211,.3)}.ElementsModal--form-select select[data-v-57f75663]::-ms-expand{display:none}.ElementsModal--form-divider[data-v-57f75663]{margin-top:14px;margin-bottom:25px;text-align:center;border-bottom:1px solid #e7e7e7;height:20px;width:100%}.ElementsModal--form-divider-text[data-v-57f75663]{position:relative;bottom:-10px;padding:0 10px;background:#fff;color:#909090;font-size:14px;font-weight:400}.StripeElement--payment-request[data-v-57f75663]{display:none;margin-bottom:14px}.StripeElement--payment-request-button[data-v-57f75663]{margin-bottom:12px}.StripeElement--card[data-v-57f75663],.stripeElement--input[data-v-57f75663]{box-sizing:border-box;height:40px;padding:10px 12px;border:1px solid transparent;border-radius:5px 5px 5px 5px;background-color:#fff;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px 0 rgba(0,0,0,.07),0 1px 1.5px 0 rgba(0,0,0,.05);transition:box-shadow .15s ease}.StripeElement--card--focus[data-v-57f75663]{box-shadow:0 1px 3px 0 #cfd7df}.StripeElement--card--invalid[data-v-57f75663]{border-color:#ef9896}.StripeElement--card--webkit-autofill[data-v-57f75663]{background-color:#fefde5!important}",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r="https://js.stripe.com/v3",i=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,o="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",a=null,s=function(e){return null!==a?a:a=new Promise((function(t,n){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(o),window.Stripe)t(window.Stripe);else try{var a=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),t=0;t<e.length;t++){var n=e[t];if(i.test(n.src))return n}return null}();a&&e?console.warn(o):a||(a=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(r).concat(t);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(n),n}(e)),a.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),a.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}))},c=function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.9.0",startTime:t})}(r,n),r},l=Promise.resolve().then((function(){return s(null)})),u=!1;l.catch((function(e){u||console.warn(e)}));var d={name:"StripeModal",props:["content"],data:function(){return{stripe:null,amount:"-"}},mounted:function(){location.search.indexOf("?pay=now")>=0&&this.toggleElementsModalVisibility()},methods:{createIntent:function(){var e=this;null===this.stripe&&this.createPaymentIntent(this.content).then((function(t){e.amount=e.calculateDisplayAmountFromCurrency(t),e.getPublicKey().then((function(n){(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];u=!0;var r=Date.now();return l.then((function(e){return c(e,t,r)}))})(n).then((function(t){return e.stripe=t})).then((function(){e.createElements(e.content,t),e.createPaymentRequest(e.content,t)}))}))}))},getPublicKey:function(){return fetch("/pay/public-key",{method:"get",headers:{"Content-Type":"application/json"}}).then((function(e){return e.json()})).then((function(e){return e.publicKey}))},toggleElementsModalVisibility:function(){var e=document.querySelector(".ElementsModal--modal");e&&e.classList&&(e.classList.toggle("ElementsModal--show-modal"),this.createIntent())},createPaymentIntent:function(e){return fetch("/pay/payment-intents",{method:"post",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":document.querySelectorAll('meta[name="csrf-token"]')[0].content},body:JSON.stringify(e)}).then((function(e){return e.json()})).then((function(e){return e}))},createPaymentRequest:function(e,t){var n=this,r=this.stripe.paymentRequest({country:"FR",currency:"eur",total:{label:e.productName,amount:t.amount},requestPayerName:!0,requestPayerEmail:!0}),i=this.stripe.elements().create("paymentRequestButton",{paymentRequest:r});r.canMakePayment().then((function(e){e?(document.getElementById("payment-request-section").style.display="block",i.mount("#payment-request-button")):(document.getElementById("payment-request-button").style.display="none",document.getElementById("payment-request-section").style.display="none")})),r.on("paymentmethod",(function(e){n.stripe.confirmCardPayment(t.client_secret,{payment_method:e.paymentMethod.id},{handleActions:!1}).then((function(t){if(t.error)e.complete("fail");else{if(e.complete("success"),"succeeded"===t.paymentIntent.status)return n.stripePaymentHandler();n.stripe.confirmCardPayment(n.paymentIntent.client_secret).then((function(e){e.error?document.getElementById("paymentRequest-errors").textContent=e.error.message:n.stripePaymentHandler()}))}}))}))},createElements:function(e,t){var n=this,r=this.stripe.elements().create("card",{style:{base:{color:"#32325d",fontFamily:"-apple-system, BlinkMacSystemFont, sans-serif",fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}},hidePostalCode:!0});r.mount("#card-element"),document.getElementById("payment-form").addEventListener("submit",(function(i){i.preventDefault(),n.stripe.confirmCardPayment(t.client_secret,{payment_method:{card:r,billing_details:{name:e.customerName}}}).then((function(e){e.error?document.getElementById("card-errors").textContent=e.error.message:n.stripePaymentHandler()}))}))},stripePaymentHandler:function(){this.toggleElementsModalVisibility(),document.querySelectorAll(".payment-view").forEach((function(e){e.classList.add("hidden")})),document.querySelectorAll(".completed-view").forEach((function(e){e.classList.remove("hidden")})),Vue.toasted.success("Payement accepté, merci !",{duration:3e3,theme:"bubble"}),setTimeout((function(){window.location.href=window.location.pathname+"?"+$.param({stripe_success:"true"})}),3500)},browserLocale:function(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage?navigator.userLanguage:navigator.language},zeroDecimalCurrencies:function(e){return["BIF","CLP","DJF","GNF","JPY","KMF","KRW","XPF","XOF","XAF","VUV","VND","UGX","RWF","PYG","MGA"].indexOf(e)},calculateDisplayAmountFromCurrency:function(e){var t=e.amount;return-1===this.zeroDecimalCurrencies(e.currency)&&(t/=100),t.toLocaleString(this.browserLocale(),{style:"currency",currency:e.currency})}}},f=(n(194),n(1)),h=Object(f.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ElementsModal--modal"},[n("div",{staticClass:"ElementsModal--modal-content"},[n("div",{staticClass:"ElementsModal--top-banner"},[n("div",{staticClass:"ElementsModal--sales-info"},[n("div",{staticClass:"ElementsModal--top"},[n("div",{staticClass:"ElementsModal--company"},[e._v("Prescription Santé - Le Quotidien")]),e._v(" "),n("button",{staticClass:"ElementsModal--close",on:{click:e.toggleElementsModalVisibility}},[n("svg",{attrs:{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs",[n("path",{attrs:{d:"M10,8.8766862 L13.6440403,5.2326459 C13.9542348,4.92245137 14.4571596,4.92245137 14.7673541,5.2326459 C15.0775486,5.54284044 15.0775486,6.04576516 14.7673541,6.3559597 L11.1238333,9.99948051 L14.7673541,13.6430016 C15.0775486,13.9531961 15.0775486,14.4561209 14.7673541,14.7663154 C14.4571596,15.0765099 13.9542348,15.0765099 13.6440403,14.7663154 L10,11.1222751 L6.3559597,14.7663154 C6.04576516,15.0765099 5.54284044,15.0765099 5.2326459,14.7663154 C4.92245137,14.4561209 4.92245137,13.9531961 5.2326459,13.6430016 L8.87616671,9.99948051 L5.2326459,6.3559597 C4.92245137,6.04576516 4.92245137,5.54284044 5.2326459,5.2326459 C5.54284044,4.92245137 6.04576516,4.92245137 6.3559597,5.2326459 L10,8.8766862 Z",id:"path-1"}})]),e._v(" "),n("g",{attrs:{id:"Payment-recipes",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"Elements-Popup",transform:"translate(-816.000000, -97.000000)"}},[n("g",{attrs:{id:"close-btn",transform:"translate(816.000000, 97.000000)"}},[n("circle",{attrs:{id:"Oval","fill-opacity":"0.3",fill:"#AEAEAE",cx:"10",cy:"10",r:"10"}}),e._v(" "),n("mask",{attrs:{id:"mask-2",fill:"white"}},[n("use",{attrs:{"xlink:href":"#path-1"}})]),e._v(" "),n("use",{attrs:{id:"Mask","fill-opacity":"0.5",fill:"#FFFFFF",opacity:"0.5","xlink:href":"#path-1"}})])])])])])]),e._v(" "),n("div",{staticClass:"ElementsModal--product ElementsModal--details"},[e._v(e._s(e.content.productName))]),e._v(" "),n("div",{staticClass:"ElementsModal--price ElementsModal--details"},[e._v(e._s(e.amount))]),e._v(" "),n("div",{staticClass:"ElementsModal--email ElementsModal--details"},[e._v(e._s(e.content.email))])])]),e._v(" "),n("div",{staticClass:"ElementsModal--payment-details"},[n("form",{staticClass:"ElementsModal--payment-form",attrs:{id:"payment-form"}},[n("div",{staticClass:"form-row"},[n("div",{staticClass:"ElementsModal--forms"},[e._m(0),e._v(" "),e._m(1),e._v(" "),e._m(2),e._v(" "),n("div",{staticClass:"ElementsModal--form"},[n("input",{attrs:{type:"hidden",name:"amount"},domProps:{value:e.content.amount}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"currency"},domProps:{value:e.content.currency}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"description"},domProps:{value:e.content.productName}}),e._v(" "),n("button",{staticClass:"ElementsModal--pay-button"},[e._v("Payer "+e._s(e.content.amount))])]),e._v(" "),e._m(3)])])])])])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"StripeElement--payment-request",attrs:{id:"payment-request-section"}},[t("div",{staticClass:"StripeElement--payment-request-button",attrs:{id:"payment-request-button"}}),this._v(" "),t("div",{staticClass:"ElementsModal--error-message",attrs:{id:"paymentRequest-errors",role:"alert"}}),this._v(" "),t("div",{staticClass:"ElementsModal--form-divider"},[t("span",{staticClass:"ElementsModal--form-divider-text"},[this._v("Or pay with card")])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ElementsModal--form"},[t("label",{attrs:{for:"ElementsModal--card-element"}},[t("span",{staticClass:"ElementsModal--form-label spacer"},[this._v("Card details")]),this._v(" "),t("div",{staticClass:"StripeElement--card",attrs:{id:"card-element"}})]),this._v(" "),t("div",{staticClass:"ElementsModal--error-message",attrs:{id:"card-errors",role:"alert"}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ElementsModal--form"},[n("label",{staticClass:"select"},[n("span",{staticClass:"ElementsModal--form-label spacer"},[e._v("Country or region")]),e._v(" "),n("div",{staticClass:"ElementsModal--form-select",attrs:{id:"country"}},[n("select",{attrs:{name:"country",autocomplete:"billing country","aria-label":"Country or region"}},[n("option",{attrs:{value:"AF"}},[e._v("Afghanistan")]),e._v(" "),n("option",{attrs:{value:"AX"}},[e._v("Åland Islands")]),e._v(" "),n("option",{attrs:{value:"AL"}},[e._v("Albania")]),e._v(" "),n("option",{attrs:{value:"DZ"}},[e._v("Algeria")]),e._v(" "),n("option",{attrs:{value:"AD"}},[e._v("Andorra")]),e._v(" "),n("option",{attrs:{value:"AO"}},[e._v("Angola")]),e._v(" "),n("option",{attrs:{value:"AI"}},[e._v("Anguilla")]),e._v(" "),n("option",{attrs:{value:"AQ"}},[e._v("Antarctica")]),e._v(" "),n("option",{attrs:{value:"AG"}},[e._v("Antigua & Barbuda")]),e._v(" "),n("option",{attrs:{value:"AR"}},[e._v("Argentina")]),e._v(" "),n("option",{attrs:{value:"AM"}},[e._v("Armenia")]),e._v(" "),n("option",{attrs:{value:"AW"}},[e._v("Aruba")]),e._v(" "),n("option",{attrs:{value:"AC"}},[e._v("Ascension Island")]),e._v(" "),n("option",{attrs:{value:"AU"}},[e._v("Australia")]),e._v(" "),n("option",{attrs:{value:"AT"}},[e._v("Austria")]),e._v(" "),n("option",{attrs:{value:"AZ"}},[e._v("Azerbaijan")]),e._v(" "),n("option",{attrs:{value:"BS"}},[e._v("Bahamas")]),e._v(" "),n("option",{attrs:{value:"BH"}},[e._v("Bahrain")]),e._v(" "),n("option",{attrs:{value:"BD"}},[e._v("Bangladesh")]),e._v(" "),n("option",{attrs:{value:"BB"}},[e._v("Barbados")]),e._v(" "),n("option",{attrs:{value:"BY"}},[e._v("Belarus")]),e._v(" "),n("option",{attrs:{value:"BE"}},[e._v("Belgium")]),e._v(" "),n("option",{attrs:{value:"BZ"}},[e._v("Belize")]),e._v(" "),n("option",{attrs:{value:"BJ"}},[e._v("Benin")]),e._v(" "),n("option",{attrs:{value:"BM"}},[e._v("Bermuda")]),e._v(" "),n("option",{attrs:{value:"BT"}},[e._v("Bhutan")]),e._v(" "),n("option",{attrs:{value:"BO"}},[e._v("Bolivia")]),e._v(" "),n("option",{attrs:{value:"BA"}},[e._v("Bosnia & Herzegovina")]),e._v(" "),n("option",{attrs:{value:"BW"}},[e._v("Botswana")]),e._v(" "),n("option",{attrs:{value:"BV"}},[e._v("Bouvet Island")]),e._v(" "),n("option",{attrs:{value:"BR"}},[e._v("Brazil")]),e._v(" "),n("option",{attrs:{value:"IO"}},[e._v("British Indian Ocean Territory")]),e._v(" "),n("option",{attrs:{value:"VG"}},[e._v("British Virgin Islands")]),e._v(" "),n("option",{attrs:{value:"BN"}},[e._v("Brunei")]),e._v(" "),n("option",{attrs:{value:"BG"}},[e._v("Bulgaria")]),e._v(" "),n("option",{attrs:{value:"BF"}},[e._v("Burkina Faso")]),e._v(" "),n("option",{attrs:{value:"BI"}},[e._v("Burundi")]),e._v(" "),n("option",{attrs:{value:"KH"}},[e._v("Cambodia")]),e._v(" "),n("option",{attrs:{value:"CM"}},[e._v("Cameroon")]),e._v(" "),n("option",{attrs:{value:"CA"}},[e._v("Canada")]),e._v(" "),n("option",{attrs:{value:"CV"}},[e._v("Cape Verde")]),e._v(" "),n("option",{attrs:{value:"BQ"}},[e._v("Caribbean Netherlands")]),e._v(" "),n("option",{attrs:{value:"KY"}},[e._v("Cayman Islands")]),e._v(" "),n("option",{attrs:{value:"CF"}},[e._v("Central African Republic")]),e._v(" "),n("option",{attrs:{value:"TD"}},[e._v("Chad")]),e._v(" "),n("option",{attrs:{value:"CL"}},[e._v("Chile")]),e._v(" "),n("option",{attrs:{value:"CN"}},[e._v("China")]),e._v(" "),n("option",{attrs:{value:"CO"}},[e._v("Colombia")]),e._v(" "),n("option",{attrs:{value:"KM"}},[e._v("Comoros")]),e._v(" "),n("option",{attrs:{value:"CG"}},[e._v("Congo - Brazzaville")]),e._v(" "),n("option",{attrs:{value:"CD"}},[e._v("Congo - Kinshasa")]),e._v(" "),n("option",{attrs:{value:"CK"}},[e._v("Cook Islands")]),e._v(" "),n("option",{attrs:{value:"CR"}},[e._v("Costa Rica")]),e._v(" "),n("option",{attrs:{value:"CI"}},[e._v("Côte d’Ivoire")]),e._v(" "),n("option",{attrs:{value:"HR"}},[e._v("Croatia")]),e._v(" "),n("option",{attrs:{value:"CW"}},[e._v("Curaçao")]),e._v(" "),n("option",{attrs:{value:"CY"}},[e._v("Cyprus")]),e._v(" "),n("option",{attrs:{value:"CZ"}},[e._v("Czechia")]),e._v(" "),n("option",{attrs:{value:"DK"}},[e._v("Denmark")]),e._v(" "),n("option",{attrs:{value:"DJ"}},[e._v("Djibouti")]),e._v(" "),n("option",{attrs:{value:"DM"}},[e._v("Dominica")]),e._v(" "),n("option",{attrs:{value:"DO"}},[e._v("Dominican Republic")]),e._v(" "),n("option",{attrs:{value:"EC"}},[e._v("Ecuador")]),e._v(" "),n("option",{attrs:{value:"EG"}},[e._v("Egypt")]),e._v(" "),n("option",{attrs:{value:"SV"}},[e._v("El Salvador")]),e._v(" "),n("option",{attrs:{value:"GQ"}},[e._v("Equatorial Guinea")]),e._v(" "),n("option",{attrs:{value:"ER"}},[e._v("Eritrea")]),e._v(" "),n("option",{attrs:{value:"EE"}},[e._v("Estonia")]),e._v(" "),n("option",{attrs:{value:"ET"}},[e._v("Ethiopia")]),e._v(" "),n("option",{attrs:{value:"FK"}},[e._v("Falkland Islands")]),e._v(" "),n("option",{attrs:{value:"FO"}},[e._v("Faroe Islands")]),e._v(" "),n("option",{attrs:{value:"FJ"}},[e._v("Fiji")]),e._v(" "),n("option",{attrs:{value:"FI"}},[e._v("Finland")]),e._v(" "),n("option",{attrs:{value:"FR",selected:"selected"}},[e._v("France")]),e._v(" "),n("option",{attrs:{value:"GF"}},[e._v("French Guiana")]),e._v(" "),n("option",{attrs:{value:"PF"}},[e._v("French Polynesia")]),e._v(" "),n("option",{attrs:{value:"TF"}},[e._v("French Southern Territories")]),e._v(" "),n("option",{attrs:{value:"GA"}},[e._v("Gabon")]),e._v(" "),n("option",{attrs:{value:"GM"}},[e._v("Gambia")]),e._v(" "),n("option",{attrs:{value:"GE"}},[e._v("Georgia")]),e._v(" "),n("option",{attrs:{value:"DE"}},[e._v("Germany")]),e._v(" "),n("option",{attrs:{value:"GH"}},[e._v("Ghana")]),e._v(" "),n("option",{attrs:{value:"GI"}},[e._v("Gibraltar")]),e._v(" "),n("option",{attrs:{value:"GR"}},[e._v("Greece")]),e._v(" "),n("option",{attrs:{value:"GL"}},[e._v("Greenland")]),e._v(" "),n("option",{attrs:{value:"GD"}},[e._v("Grenada")]),e._v(" "),n("option",{attrs:{value:"GP"}},[e._v("Guadeloupe")]),e._v(" "),n("option",{attrs:{value:"GU"}},[e._v("Guam")]),e._v(" "),n("option",{attrs:{value:"GT"}},[e._v("Guatemala")]),e._v(" "),n("option",{attrs:{value:"GG"}},[e._v("Guernsey")]),e._v(" "),n("option",{attrs:{value:"GN"}},[e._v("Guinea")]),e._v(" "),n("option",{attrs:{value:"GW"}},[e._v("Guinea-Bissau")]),e._v(" "),n("option",{attrs:{value:"GY"}},[e._v("Guyana")]),e._v(" "),n("option",{attrs:{value:"HT"}},[e._v("Haiti")]),e._v(" "),n("option",{attrs:{value:"HN"}},[e._v("Honduras")]),e._v(" "),n("option",{attrs:{value:"HK"}},[e._v("Hong Kong SAR China")]),e._v(" "),n("option",{attrs:{value:"HU"}},[e._v("Hungary")]),e._v(" "),n("option",{attrs:{value:"IS"}},[e._v("Iceland")]),e._v(" "),n("option",{attrs:{value:"IN"}},[e._v("India")]),e._v(" "),n("option",{attrs:{value:"ID"}},[e._v("Indonesia")]),e._v(" "),n("option",{attrs:{value:"IR"}},[e._v("Iran")]),e._v(" "),n("option",{attrs:{value:"IQ"}},[e._v("Iraq")]),e._v(" "),n("option",{attrs:{value:"IE"}},[e._v("Ireland")]),e._v(" "),n("option",{attrs:{value:"IM"}},[e._v("Isle of Man")]),e._v(" "),n("option",{attrs:{value:"IL"}},[e._v("Israel")]),e._v(" "),n("option",{attrs:{value:"IT"}},[e._v("Italy")]),e._v(" "),n("option",{attrs:{value:"JM"}},[e._v("Jamaica")]),e._v(" "),n("option",{attrs:{value:"JP"}},[e._v("Japan")]),e._v(" "),n("option",{attrs:{value:"JE"}},[e._v("Jersey")]),e._v(" "),n("option",{attrs:{value:"JO"}},[e._v("Jordan")]),e._v(" "),n("option",{attrs:{value:"KZ"}},[e._v("Kazakhstan")]),e._v(" "),n("option",{attrs:{value:"KE"}},[e._v("Kenya")]),e._v(" "),n("option",{attrs:{value:"KI"}},[e._v("Kiribati")]),e._v(" "),n("option",{attrs:{value:"XK"}},[e._v("Kosovo")]),e._v(" "),n("option",{attrs:{value:"KW"}},[e._v("Kuwait")]),e._v(" "),n("option",{attrs:{value:"KG"}},[e._v("Kyrgyzstan")]),e._v(" "),n("option",{attrs:{value:"LA"}},[e._v("Laos")]),e._v(" "),n("option",{attrs:{value:"LV"}},[e._v("Latvia")]),e._v(" "),n("option",{attrs:{value:"LB"}},[e._v("Lebanon")]),e._v(" "),n("option",{attrs:{value:"LS"}},[e._v("Lesotho")]),e._v(" "),n("option",{attrs:{value:"LR"}},[e._v("Liberia")]),e._v(" "),n("option",{attrs:{value:"LY"}},[e._v("Libya")]),e._v(" "),n("option",{attrs:{value:"LI"}},[e._v("Liechtenstein")]),e._v(" "),n("option",{attrs:{value:"LT"}},[e._v("Lithuania")]),e._v(" "),n("option",{attrs:{value:"LU"}},[e._v("Luxembourg")]),e._v(" "),n("option",{attrs:{value:"MO"}},[e._v("Macau SAR China")]),e._v(" "),n("option",{attrs:{value:"MK"}},[e._v("Macedonia")]),e._v(" "),n("option",{attrs:{value:"MG"}},[e._v("Madagascar")]),e._v(" "),n("option",{attrs:{value:"MW"}},[e._v("Malawi")]),e._v(" "),n("option",{attrs:{value:"MY"}},[e._v("Malaysia")]),e._v(" "),n("option",{attrs:{value:"MV"}},[e._v("Maldives")]),e._v(" "),n("option",{attrs:{value:"ML"}},[e._v("Mali")]),e._v(" "),n("option",{attrs:{value:"MT"}},[e._v("Malta")]),e._v(" "),n("option",{attrs:{value:"MQ"}},[e._v("Martinique")]),e._v(" "),n("option",{attrs:{value:"MR"}},[e._v("Mauritania")]),e._v(" "),n("option",{attrs:{value:"MU"}},[e._v("Mauritius")]),e._v(" "),n("option",{attrs:{value:"YT"}},[e._v("Mayotte")]),e._v(" "),n("option",{attrs:{value:"MX"}},[e._v("Mexico")]),e._v(" "),n("option",{attrs:{value:"MD"}},[e._v("Moldova")]),e._v(" "),n("option",{attrs:{value:"MC"}},[e._v("Monaco")]),e._v(" "),n("option",{attrs:{value:"MN"}},[e._v("Mongolia")]),e._v(" "),n("option",{attrs:{value:"ME"}},[e._v("Montenegro")]),e._v(" "),n("option",{attrs:{value:"MS"}},[e._v("Montserrat")]),e._v(" "),n("option",{attrs:{value:"MA"}},[e._v("Morocco")]),e._v(" "),n("option",{attrs:{value:"MZ"}},[e._v("Mozambique")]),e._v(" "),n("option",{attrs:{value:"MM"}},[e._v("Myanmar (Burma)")]),e._v(" "),n("option",{attrs:{value:"NA"}},[e._v("Namibia")]),e._v(" "),n("option",{attrs:{value:"NR"}},[e._v("Nauru")]),e._v(" "),n("option",{attrs:{value:"NP"}},[e._v("Nepal")]),e._v(" "),n("option",{attrs:{value:"NL"}},[e._v("Netherlands")]),e._v(" "),n("option",{attrs:{value:"NC"}},[e._v("New Caledonia")]),e._v(" "),n("option",{attrs:{value:"NZ"}},[e._v("New Zealand")]),e._v(" "),n("option",{attrs:{value:"NI"}},[e._v("Nicaragua")]),e._v(" "),n("option",{attrs:{value:"NE"}},[e._v("Niger")]),e._v(" "),n("option",{attrs:{value:"NG"}},[e._v("Nigeria")]),e._v(" "),n("option",{attrs:{value:"NU"}},[e._v("Niue")]),e._v(" "),n("option",{attrs:{value:"NO"}},[e._v("Norway")]),e._v(" "),n("option",{attrs:{value:"OM"}},[e._v("Oman")]),e._v(" "),n("option",{attrs:{value:"PK"}},[e._v("Pakistan")]),e._v(" "),n("option",{attrs:{value:"PS"}},[e._v("Palestinian Territories")]),e._v(" "),n("option",{attrs:{value:"PA"}},[e._v("Panama")]),e._v(" "),n("option",{attrs:{value:"PG"}},[e._v("Papua New Guinea")]),e._v(" "),n("option",{attrs:{value:"PY"}},[e._v("Paraguay")]),e._v(" "),n("option",{attrs:{value:"PE"}},[e._v("Peru")]),e._v(" "),n("option",{attrs:{value:"PH"}},[e._v("Philippines")]),e._v(" "),n("option",{attrs:{value:"PN"}},[e._v("Pitcairn Islands")]),e._v(" "),n("option",{attrs:{value:"PL"}},[e._v("Poland")]),e._v(" "),n("option",{attrs:{value:"PT"}},[e._v("Portugal")]),e._v(" "),n("option",{attrs:{value:"PR"}},[e._v("Puerto Rico")]),e._v(" "),n("option",{attrs:{value:"QA"}},[e._v("Qatar")]),e._v(" "),n("option",{attrs:{value:"RE"}},[e._v("Réunion")]),e._v(" "),n("option",{attrs:{value:"RO"}},[e._v("Romania")]),e._v(" "),n("option",{attrs:{value:"RU"}},[e._v("Russia")]),e._v(" "),n("option",{attrs:{value:"RW"}},[e._v("Rwanda")]),e._v(" "),n("option",{attrs:{value:"WS"}},[e._v("Samoa")]),e._v(" "),n("option",{attrs:{value:"SM"}},[e._v("San Marino")]),e._v(" "),n("option",{attrs:{value:"ST"}},[e._v("São Tomé & Príncipe")]),e._v(" "),n("option",{attrs:{value:"SA"}},[e._v("Saudi Arabia")]),e._v(" "),n("option",{attrs:{value:"SN"}},[e._v("Senegal")]),e._v(" "),n("option",{attrs:{value:"RS"}},[e._v("Serbia")]),e._v(" "),n("option",{attrs:{value:"SC"}},[e._v("Seychelles")]),e._v(" "),n("option",{attrs:{value:"SL"}},[e._v("Sierra Leone")]),e._v(" "),n("option",{attrs:{value:"SG"}},[e._v("Singapore")]),e._v(" "),n("option",{attrs:{value:"SX"}},[e._v("Sint Maarten")]),e._v(" "),n("option",{attrs:{value:"SK"}},[e._v("Slovakia")]),e._v(" "),n("option",{attrs:{value:"SI"}},[e._v("Slovenia")]),e._v(" "),n("option",{attrs:{value:"SB"}},[e._v("Solomon Islands")]),e._v(" "),n("option",{attrs:{value:"SO"}},[e._v("Somalia")]),e._v(" "),n("option",{attrs:{value:"ZA"}},[e._v("South Africa")]),e._v(" "),n("option",{attrs:{value:"GS"}},[e._v("South Georgia & South Sandwich Islands")]),e._v(" "),n("option",{attrs:{value:"KR"}},[e._v("South Korea")]),e._v(" "),n("option",{attrs:{value:"SS"}},[e._v("South Sudan")]),e._v(" "),n("option",{attrs:{value:"ES"}},[e._v("Spain")]),e._v(" "),n("option",{attrs:{value:"LK"}},[e._v("Sri Lanka")]),e._v(" "),n("option",{attrs:{value:"BL"}},[e._v("St. Barthélemy")]),e._v(" "),n("option",{attrs:{value:"SH"}},[e._v("St. Helena")]),e._v(" "),n("option",{attrs:{value:"KN"}},[e._v("St. Kitts & Nevis")]),e._v(" "),n("option",{attrs:{value:"LC"}},[e._v("St. Lucia")]),e._v(" "),n("option",{attrs:{value:"MF"}},[e._v("St. Martin")]),e._v(" "),n("option",{attrs:{value:"PM"}},[e._v("St. Pierre & Miquelon")]),e._v(" "),n("option",{attrs:{value:"VC"}},[e._v("St. Vincent & Grenadines")]),e._v(" "),n("option",{attrs:{value:"SR"}},[e._v("Suriname")]),e._v(" "),n("option",{attrs:{value:"SJ"}},[e._v("Svalbard & Jan Mayen")]),e._v(" "),n("option",{attrs:{value:"SZ"}},[e._v("Swaziland")]),e._v(" "),n("option",{attrs:{value:"SE"}},[e._v("Sweden")]),e._v(" "),n("option",{attrs:{value:"CH"}},[e._v("Switzerland")]),e._v(" "),n("option",{attrs:{value:"TW"}},[e._v("Taiwan")]),e._v(" "),n("option",{attrs:{value:"TJ"}},[e._v("Tajikistan")]),e._v(" "),n("option",{attrs:{value:"TZ"}},[e._v("Tanzania")]),e._v(" "),n("option",{attrs:{value:"TH"}},[e._v("Thailand")]),e._v(" "),n("option",{attrs:{value:"TL"}},[e._v("Timor-Leste")]),e._v(" "),n("option",{attrs:{value:"TG"}},[e._v("Togo")]),e._v(" "),n("option",{attrs:{value:"TK"}},[e._v("Tokelau")]),e._v(" "),n("option",{attrs:{value:"TO"}},[e._v("Tonga")]),e._v(" "),n("option",{attrs:{value:"TT"}},[e._v("Trinidad & Tobago")]),e._v(" "),n("option",{attrs:{value:"TA"}},[e._v("Tristan da Cunha")]),e._v(" "),n("option",{attrs:{value:"TN"}},[e._v("Tunisia")]),e._v(" "),n("option",{attrs:{value:"TR"}},[e._v("Turkey")]),e._v(" "),n("option",{attrs:{value:"TM"}},[e._v("Turkmenistan")]),e._v(" "),n("option",{attrs:{value:"TC"}},[e._v("Turks & Caicos Islands")]),e._v(" "),n("option",{attrs:{value:"TV"}},[e._v("Tuvalu")]),e._v(" "),n("option",{attrs:{value:"UG"}},[e._v("Uganda")]),e._v(" "),n("option",{attrs:{value:"UA"}},[e._v("Ukraine")]),e._v(" "),n("option",{attrs:{value:"AE"}},[e._v("United Arab Emirates")]),e._v(" "),n("option",{attrs:{value:"GB"}},[e._v("United Kingdom")]),e._v(" "),n("option",{attrs:{value:"US"}},[e._v("United States")]),e._v(" "),n("option",{attrs:{value:"UY"}},[e._v("Uruguay")]),e._v(" "),n("option",{attrs:{value:"UZ"}},[e._v("Uzbekistan")]),e._v(" "),n("option",{attrs:{value:"VU"}},[e._v("Vanuatu")]),e._v(" "),n("option",{attrs:{value:"VA"}},[e._v("Vatican City")]),e._v(" "),n("option",{attrs:{value:"VE"}},[e._v("Venezuela")]),e._v(" "),n("option",{attrs:{value:"VN"}},[e._v("Vietnam")]),e._v(" "),n("option",{attrs:{value:"WF"}},[e._v("Wallis & Futuna")]),e._v(" "),n("option",{attrs:{value:"EH"}},[e._v("Western Sahara")]),e._v(" "),n("option",{attrs:{value:"YE"}},[e._v("Yemen")]),e._v(" "),n("option",{attrs:{value:"ZM"}},[e._v("Zambia")]),e._v(" "),n("option",{attrs:{alue:"ZW"}},[e._v("Zimbabwe")])])])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"footer ElementsModal--footer-text"},[this._v("\n En cliquant sur Payer vous acceptez les\n "),t("a",{staticClass:"ElementsModal--footer-text",attrs:{href:"stripe.com"}},[this._v("Termes and Conditions.")]),this._v(" de Prescription Santé - Le Quotidien\n ")])}],!1,null,"57f75663",null);t.default=h.exports},function(e,t,n){"use strict";n.r(t);var r={en:{next:"Next",back:"Back",finish:"Finish"},es:{next:"Siguiente",back:"Atrás",finish:"Finalizar"},pt:{next:"Próximo",back:"Voltar",finish:"Finalizar"},ja:{next:"次へ",back:"戻る",finish:"完了"},he:{next:"הבא",back:"חזרה",finish:"סיום"},cn:{next:"下一步",back:"返回",finish:"完成"},ru:{next:"Вперед",back:"Назад",finish:"Готово"},ar:{next:"التالي",back:"السابق",finish:"انهاء"},nl:{next:"Volgende",back:"Vorige",finish:"Klaar"},sv:{next:"Nästa",back:"Tillbaka",finish:"Skicka"}},i={filters:{translate:function(e,t){return r[t][e]}},props:{locale:{type:String,default:"en"},topButtons:{type:Boolean,default:!1},steps:{type:Array,default:function(){return[{icon:"mail",name:"first",title:"Sample title 1",subtitle:"Subtitle sample"},{icon:"report_problem",name:"second",title:"Sample title 2",subtitle:"Subtitle sample"}]}},keepAlive:{type:Boolean,default:!0},reset:{type:Boolean,default:!1}},data(){return{currentStep:{},previousStep:{},nextButton:{},canContinue:!1,finalStep:!1,keepAliveData:this.keepAlive}},computed:{enterAnimation(){return this.currentStep.index<this.previousStep.index?"animated quick fadeInLeft":"animated quick fadeInRight"},leaveAnimation(){return this.currentStep.index>this.previousStep.index?"animated quick fadeOutLeft":"animated quick fadeOutRight"}},methods:{isStepActive(e,t){return this.currentStep.index===e?"activated":"deactivated"},activateStep(e,t=!1){this.steps[e]&&(this.previousStep=this.currentStep,this.currentStep={name:this.steps[e].name,index:e},e+1===this.steps.length?this.finalStep=!0:this.finalStep=!1,t||this.$emit("completed-step",this.previousStep)),this.$emit("active-step",this.currentStep)},nextStepAction(){if(this.nextButton[this.currentStep.name]=!0,this.canContinue){this.finalStep&&this.$emit("stepper-finished",this.currentStep);let e=this.currentStep.index+1;this.activateStep(e)}this.canContinue=!1,this.$forceUpdate()},nextStep(){this.$listeners&&this.$listeners["before-next-step"]||this.nextStepAction(),this.canContinue=!1,this.$emit("before-next-step",{currentStep:this.currentStep},(e=!0)=>{this.canContinue=!0,e&&this.nextStepAction()})},backStep(){this.$emit("clicking-back");let e=this.currentStep.index-1;e>=0&&this.activateStep(e,!0)},proceed(e){this.canContinue=e.value},changeNextBtnValue(e){this.nextButton[this.currentStep.name]=e.nextBtnValue,this.$forceUpdate()},init(){this.activateStep(0),this.steps.forEach(e=>{this.nextButton[e.name]=!1})}},watch:{reset(e){e&&(this.keepAliveData=!1,this.init(),this.previousStep={},this.$nextTick(()=>{this.keepAliveData=this.keepAlive,this.$emit("reset",!0)}))}},created(){this.init()}},o=(n(176),n(178),n(1)),a=Object(o.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-box"},[n("div",{staticClass:"top"},[n("div",{staticClass:"divider-line",style:{width:100/e.steps.length*(e.steps.length-1)-10+"%"}}),e._v(" "),n("div",{staticClass:"steps-wrapper"},[e.topButtons?[e.currentStep.index>0?n("div",{staticClass:"stepper-button-top previous",on:{click:function(t){return e.backStep()}}},[n("i",{staticClass:"material-icons"},[e._v("keyboard_arrow_left")])]):e._e()]:e._e(),e._v(" "),e._l(e.steps,(function(t,r){return[n("div",{key:r,class:["step",e.isStepActive(r,t)],style:{width:100/e.steps.length+"%"}},[n("div",{staticClass:"circle"},[n("i",{staticClass:"material-icons md-18"},[e._v("\n "+e._s(t.completed?"done":t.icon)+"\n ")])]),e._v(" "),n("div",{staticClass:"step-title"},[n("h4",[e._v(e._s(t.title))]),e._v(" "),n("h5",{staticClass:"step-subtitle"},[e._v(e._s(t.subtitle))])])])]})),e._v(" "),e.topButtons?n("div",{class:["stepper-button-top next",e.canContinue?"":"deactivated"],on:{click:function(t){return e.nextStep()}}},[n("i",{staticClass:"material-icons"},[e._v("keyboard_arrow_right")])]):e._e()],2)]),e._v(" "),n("div",{staticClass:"content"},[n("transition",{attrs:{"enter-active-class":e.enterAnimation,"leave-active-class":e.leaveAnimation,mode:"out-in"}},[e.keepAliveData?n("keep-alive",[n(e.steps[e.currentStep.index].component,{tag:"component",attrs:{clickedNext:e.nextButton[e.currentStep.name],"current-step":e.currentStep},on:{"can-continue":e.proceed,"change-next":e.changeNextBtnValue}})],1):n(e.steps[e.currentStep.index].component,{tag:"component",attrs:{clickedNext:e.nextButton[e.currentStep.name],"current-step":e.currentStep},on:{"can-continue":e.proceed,"change-next":e.changeNextBtnValue}})],1)],1),e._v(" "),n("div",{class:["bottom",e.currentStep.index>0?"":"only-next"]},[e.currentStep.index>0?n("div",{staticClass:"stepper-button previous",on:{click:function(t){return e.backStep()}}},[n("i",{staticClass:"material-icons"},[e._v("keyboard_arrow_left")]),e._v(" "),n("span",[e._v(e._s(e._f("translate")("back",e.locale)))])]):e._e(),e._v(" "),n("div",{class:["stepper-button next",e.canContinue?"":"deactivated"],on:{click:function(t){return e.nextStep()}}},[n("span",[e._v(e._s(e._f("translate")(e.finalStep?"finish":"next",e.locale)))]),e._v(" "),n("i",{staticClass:"material-icons"},[e._v("keyboard_arrow_right")])])])])}),[],!1,null,"0cd2e8d8",null);t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r={mixins:[n(9).a],mounted:function(){},computed:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ais-instant-search",{attrs:{"search-client":e.searchClient,"index-name":e.prefix+"searchable_texts"}},[n("ais-configure",{attrs:{hitsPerPage:12}}),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"px-3"},[n("ais-search-box",{staticClass:"searchbox ",attrs:{placeholder:"Rechercher..."}})],1),e._v(" "),n("ais-stats",{staticClass:"mt-2 ml-3"}),e._v(" "),n("div",{staticClass:"my-4"},[n("ais-infinite-hits",{attrs:{"class-names":{"ais-InfiniteHits-list":"row","ais-InfiniteHits-item":"col-sm-3 mb-3"}},scopedSlots:e._u([{key:"item",fn:function(e){var t=e.item,r=e.index;return n("file-hit",{key:r,attrs:{hit:t}})}},{key:"loadMore",fn:function(t){t.page;var r=t.isLastPage,i=t.refineNext;return n("button",{staticClass:"btn btn-big mt-5",attrs:{disabled:r},on:{click:i}},[n("i",{staticClass:"far fa-plus-square mr-1"}),e._v("Voir plus\n ")])}}])})],1)],1)])],1)],1)}),[],!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"ActuLabosHit"},i=n(1),o=Object(i.a)(r,(function(){var e=this.$createElement;return(this._self._c||e)("div")}),[],!1,null,"5bd42f3b",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"CampaignHit",props:["hit","flip"]},i=(n(172),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hit?n("div",{staticClass:"box p-1 article-preview"},[n("div",[n("a",{attrs:{href:e.hit.url}},[n("h3",[void 0===e.hit._highlightResult?n("span",{domProps:{innerHTML:e._s(e.hit.title)}}):e._e(),e._v(" "),n("ais-highlight",{attrs:{attribute:"title",hit:e.hit}})],1)])]),e._v(" "),n("div",[n("img",{class:{"mh-campaign":!0,"article-preview-img":e.hit.hide_text_preview,"float-left mr-3":!e.flip&&!e.hit.hide_text_preview,"float-right ml-3":e.flip&&!e.hit.hide_text_preview},attrs:{src:e.hit.image,alt:""}}),e._v(" "),e.hit.hide_text_preview?e._e():n("div",{staticClass:"pb-2",domProps:{innerHTML:e._s(e.hit.description)}}),e._v(" "),n("a",{class:{"click-here":!0,"bottom-right":!e.flip,"bottom-left":e.flip},attrs:{href:e.hit.url}},[e._v("Lire ici")])])]):e._e()}),[],!1,null,"4c732d9d",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"CampaignInstantSearch",mixins:[n(9).a],mounted:function(){},computed:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ais-instant-search",{attrs:{"search-client":e.searchClient,"index-name":e.prefix+"ad_campaigns"}},[n("ais-configure",{attrs:{hitsPerPage:10}}),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"px-3"},[n("ais-search-box",{staticClass:"searchbox ",attrs:{placeholder:"Rechercher..."}})],1),e._v(" "),n("ais-stats",{staticClass:"mt-2 ml-3"}),e._v(" "),n("div",{staticClass:"my-4"},[n("ais-infinite-hits",{attrs:{"class-names":{"ais-InfiniteHits-list":"row","ais-InfiniteHits-item":"col-sm-12 mb-3"}},scopedSlots:e._u([{key:"item",fn:function(e){var t=e.item,r=e.index;return n("campaign-hit",{key:r,attrs:{hit:t}})}},{key:"loadMore",fn:function(t){t.page;var r=t.isLastPage,i=t.refineNext;return n("button",{staticClass:"ais-InfiniteHits-loadMore",attrs:{disabled:r},on:{click:i}},[e._v("\n Voir plus\n ")])}}])})],1)],1)])],1)],1)}),[],!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"FileHit",props:["hit"],data:function(){return{}},computed:{viewLink:function(){var e="none"===this.hit._highlightResult.content.matchLevel?"1":this.hit.page;return"/view/".concat(this.hit.file.slug,"#page=").concat(e)}}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card w-100"},[n("img",{staticClass:"card-img-top",attrs:{src:e.hit.file.cover,alt:"Cover"}}),e._v(" "),n("div",{staticClass:"card-body"},[n("h5",{staticClass:"card-title text-center",domProps:{textContent:e._s(e.hit.file.title)}}),e._v(" "),n("p",{staticClass:"card-text"},e._l(e.hit.file.tags,(function(t){return n("span",{staticClass:"badge badge-light mr-1"},[n("i",{staticClass:"fas fa-tag"}),e._v(" "+e._s(t)+"\n ")])})),0),e._v(" "),n("p",{staticClass:"card-text"},["none"!==e.hit._highlightResult.content.matchLevel?n("ais-snippet",{attrs:{attribute:"content",hit:e.hit}}):e._e()],1)]),e._v(" "),n("a",{staticClass:"btn btn-big mb-0",attrs:{href:e.viewLink,target:"_blank"}},[n("i",{staticClass:"fas fa-book-open mr-1"}),e._v(" Lire cette édition")])])}),[],!1,null,"fcf1250c",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={mixins:[n(9).a],mounted:function(){},computed:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Les archives de P.S.Q.")]),e._v(" "),n("ais-instant-search",{attrs:{"search-client":e.searchClient,"index-name":e.prefix+"searchable_texts"}},[n("ais-configure",{attrs:{hitsPerPage:12}}),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"px-3"},[n("ais-search-box",{staticClass:"searchbox ",attrs:{placeholder:"Rechercher..."}})],1),e._v(" "),n("ais-stats",{staticClass:"mt-2 ml-3"}),e._v(" "),n("div",{staticClass:"my-4"},[n("ais-infinite-hits",{attrs:{"class-names":{"ais-InfiniteHits-list":"row","ais-InfiniteHits-item":"col-sm-3 mb-3"}},scopedSlots:e._u([{key:"item",fn:function(e){var t=e.item,r=e.index;return n("file-hit",{key:r,attrs:{hit:t}})}},{key:"loadMore",fn:function(t){t.page;var r=t.isLastPage,i=t.refineNext;return n("button",{staticClass:"btn btn-big mt-5",attrs:{disabled:r},on:{click:i}},[n("i",{staticClass:"far fa-plus-square mr-1"}),e._v("Voir plus\n ")])}}])})],1)],1)])],1)],1)}),[],!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"cover",mounted:function(){this.isMounted=!0},props:["dataImage","width","height"],data:function(){return{isMounted:!1,mouseX:0,mouseY:0,mouseLeaveDelay:null}},computed:{dimensions:function(){return{width:this.width,height:Math.round(this.c_height)+"px"}},c_width:function(){return this.isMounted?this.$refs.card.offsetWidth:0},c_height:function(){return this.isMounted?void 0===this.height?1.38*this.c_inner_width:this.height:0},c_inner_width:function(){return this.isMounted?this.$refs.inner.offsetWidth:0},mousePX:function(){return this.mouseX/this.c_width},mousePY:function(){return this.mouseY/this.c_height},cardStyle:function(){var e=20*this.mousePX,t=-20*this.mousePY;return{transform:"rotateY(".concat(e,"deg) rotateX(").concat(t,"deg)")}},cardBgTransform:function(){},cardBgImage:function(){return{backgroundImage:"url(".concat(this.dataImage,")")}}},methods:{handleMouseMove:function(e){this.mouseX=e.pageX-$(this.$refs.card).offset().left-this.c_width/2,this.mouseY=e.pageY-$(this.$refs.card).offset().top-this.c_height/2},handleMouseEnter:function(){clearTimeout(this.mouseLeaveDelay)},handleMouseLeave:function(){var e=this;this.mouseLeaveDelay=setTimeout((function(){e.mouseX=0,e.mouseY=0}),500)}}},i=(n(174),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"card",staticClass:"card-wrap",style:e.dimensions,on:{mousemove:e.handleMouseMove,mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave}},[n("div",{ref:"inner",staticClass:"cover",style:e.cardStyle},[n("div",{staticClass:"card-bg",style:[e.cardBgTransform,e.cardBgImage]}),e._v(" "),n("div",{staticClass:"card-info",style:{width:e.c_inner_width+"px"}},[e._t("header"),e._v(" "),e._t("content")],2)])])}),[],!1,null,"1a8b3214",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={components:{},data:function(){return{}},mounted:function(){},methods:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("h1",{staticClass:"mb-6"},[this._v("Live stats")]),this._v(" "),t("div",{staticClass:"row"},[t("div",{staticClass:"col"},[t("mg-stats",{attrs:{icon:"delivered",current:"20",total:"80",text:"delivered"}})],1),this._v(" "),t("div",{staticClass:"col"},[t("mg-stats",{attrs:{icon:"clicked",current:"20",total:"80",text:"clicked"}})],1),this._v(" "),t("div",{staticClass:"col"},[t("mg-stats",{attrs:{icon:"opened",current:"20",total:"80",text:"opened"}})],1)])])}),[],!1,null,"17570ad5",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"PollAnswers",data:function(){return{polls:[],selected_poll:null,poll_data:null,loaded:!1,selected_question:null}},watch:{selected_poll:function(e){var t=this;axios.get("/otherContent/pollAnswers/"+e.id).then((function(e){return t.poll_data=e.data}))}},mounted:function(){var e=this;axios.get("/otherContent/pollAnswers/list").then((function(t){e.polls=t.data,e.loaded=!0}))}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.polls.length>0?n("div",[n("div",{staticClass:"form-group mb-4"},[n("label",{attrs:{for:"polls"}}),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.selected_poll,expression:"selected_poll"}],staticClass:"form-control",attrs:{name:"polls",id:"polls"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.selected_poll=t.target.multiple?n:n[0]}}},e._l(e.polls,(function(t){return n("option",{domProps:{value:t}},[e._v(e._s(t.title)+" ("+e._s(t.entries_count)+" réponses)")])})),0)]),e._v(" "),e.selected_poll?[null===e.poll_data?n("div",{staticClass:"alert alert-info"},[e._v("\n Chargement en cours...\n ")]):e.poll_data&&0===e.poll_data.entries_count?n("div",{staticClass:"alert alert-warning"},[e._v("\n Aucune réponse pour le moment !\n ")]):n("div",{staticClass:"box p-3"},[n("p",{staticClass:"lead"},[e._v(e._s(e.poll_data.entries_count)+" réponses enregistrées")]),e._v(" "),n("div",{staticClass:"form-group mb-2"},[n("label",{attrs:{for:"question"}},[e._v("Sélectionnez une question pour voir les résultats")]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.selected_question,expression:"selected_question"}],staticClass:"form-control",attrs:{name:"question",id:"question"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.selected_question=t.target.multiple?n:n[0]}}},e._l(e.poll_data.questions,(function(t){return n("option",{domProps:{value:t}},[e._v(e._s(t.question))])})),0)]),e._v(" "),null===e.selected_question?n("div",{staticClass:"alert alert-info"},[e._v("\n Sélectionnez une question pour voir les réponses\n ")]):n("div",["poll_rating"===e.selected_question.type?n("div",{staticClass:"alert alert-info my-2"},[e._v("\n Le score moyen obtenu est de "+e._s(e.selected_question.mean)+"\n ")]):e._e(),e._v(" "),n("table",{staticClass:"table table-hover"},[n("thead",{staticClass:"thead-light"},[n("tr",[n("th",[e._v("Réponse")]),e._v(" "),"poll_text"!==e.selected_question.type?n("th",[e._v("Occurences")]):e._e(),e._v(" "),"poll_text"!==e.selected_question.type?n("th",[e._v("Pourcentage")]):e._e()])]),e._v(" "),n("tbody",e._l(e.selected_question.answers,(function(t){return n("tr",{class:{"table-warning":"[no-answer]"===t.value}},[n("td",{domProps:{textContent:e._s("[no-answer]"===t.value?"[Aucune réponse]":t.value)}}),e._v(" "),"poll_text"!==e.selected_question.type?n("td",[e._v(e._s(t.count))]):e._e(),e._v(" "),"poll_text"!==e.selected_question.type?n("td",[e._v(e._s(t.percentage)+"%")]):e._e()])})),0)])])])]:e._e()],2):e.loaded?n("div",{staticClass:"alert alert-warning"},[e._v("\n Aucun sondage trouvé\n ")]):n("div",{staticClass:"alert alert-info"},[e._v("\n Chargement en cours...\n ")])])}),[],!1,null,"a4451100",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"HeadlineRepeater",props:{value:{required:!0}},data:function(){return{headline:"",content:""}},computed:{val:{get:function(){return{headline:this.headline,content:this.content}},set:function(e){this.$emit("input",e)}}},watch:{val:function(e){this.$emit("input",e)}}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.headline,expression:"headline"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Tapez le titre ici..."},domProps:{value:e.headline},on:{input:function(t){t.target.composing||(e.headline=t.target.value)}}}),e._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"form-control mt-1",attrs:{placeholder:"Description rapide",rows:"4"},domProps:{value:e.content},on:{input:function(t){t.target.composing||(e.content=t.target.value)}}})])}),[],!1,null,"c9f24a5c",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r=n(28),i=n.n(r),o=n(39),a=n(40),s=n(12),c={components:{HorizontalStepper:i.a},data:function(){return{steps:[{icon:"cloud_upload",name:"upload",title:"Mise en ligne du PDF",subtitle:"Création de la liseuse",component:o.default,completed:!1},{icon:"mail",name:"email",title:"Mise en forme du message",subtitle:"",component:a.default,completed:!1},{icon:"send",name:"review",title:"Récapitulatif et envoi",subtitle:"Suivi des envois",component:s.default,completed:!1}]}},mounted:function(){},methods:{completeStep:function(e){this.steps.forEach((function(t){t.name===e.name&&(t.completed=!0)}))},isStepActive:function(e){this.steps.forEach((function(t){t.name===e.name&&!0===t.completed&&(t.completed=!1)}))},alert:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){alert("end")}))}},l=n(1),u=Object(l.a)(c,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("h1",{staticClass:"mb-6"},[this._v("Publier une lettre")]),this._v(" "),t("horizontal-stepper",{attrs:{steps:this.steps},on:{"completed-step":this.completeStep,"active-step":this.isStepActive,"stepper-finished":this.alert}})],1)}),[],!1,null,null,null);t.default=u.exports},function(e,t,n){"use strict";n.r(t);var r=n(28),i=n.n(r),o=n(41),a=n(12),s={components:{HorizontalStepper:i.a},data:function(){return{steps:[{icon:"mail",name:"email",title:"Mise en forme du message",subtitle:"",component:o.default,completed:!1},{icon:"send",name:"review",title:"Récapitulatif et envoi",subtitle:"Suivi des envois",component:a.default,completed:!1}]}},mounted:function(){},methods:{completeStep:function(e){this.steps.forEach((function(t){t.name===e.name&&(t.completed=!0)}))},isStepActive:function(e){this.steps.forEach((function(t){t.name===e.name&&!0===t.completed&&(t.completed=!1)}))},alert:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){alert("end")}))}},c=n(1),l=Object(c.a)(s,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("h1",{staticClass:"mb-6"},[this._v("Envoyer une newsletter")]),this._v(" "),t("horizontal-stepper",{attrs:{steps:this.steps},on:{"completed-step":this.completeStep,"active-step":this.isStepActive,"stepper-finished":this.alert}})],1)}),[],!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";n.r(t);var r={components:{},data:function(){return{batch:1,batches:[]}},mounted:function(){var e=this;axios.get("/statistics/batches").then((function(t){return e.batches=t.data.data}))},methods:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h2",[e._v("Statistiques")]),e._v(" "),n("hr"),e._v(" "),n("div",{staticClass:"form-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.batch,expression:"batch"}],staticClass:"form-control",attrs:{name:"batch",id:"batch"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.batch=t.target.multiple?n:n[0]}}},e._l(e.batches,(function(t){return n("option",{attrs:{value:"bat.id"}},[e._v(e._s(t.file.title))])})),0)])])}),[],!1,null,"e7971362",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={components:{},props:["icon","current","total","text","customMetric","customLabel"],data:function(){return{}},methods:{}},i=(n(192),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card d-flex bg-white flex-items-center flex-content-center flex-justify-between card--shadow"},["delivered"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--success"},[n("svg",{staticClass:"svg-icon",attrs:{height:"24",width:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"delivered"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{"fill-rule":"nonzero",d:"M1 11l4-2.9v5.082zM23 11l-4-2.9v5.082z"}}),e._v(" "),n("path",{attrs:{stroke:"#8BC1A9","stroke-width":"2",d:"M5 8.1L1 11v12h22V11l-4-2.9"}}),e._v(" "),n("path",{attrs:{stroke:"#439B73","stroke-width":"2",d:"M5 13.2V1h14v12.2"}}),e._v(" "),n("path",{attrs:{stroke:"#8BC1A9","stroke-width":"2",d:"M1 11l22 12M23 11l-11 6"}}),e._v(" "),n("path",{attrs:{stroke:"#439B73","stroke-linecap":"square","stroke-width":"2",d:"M9 6h6M9 10h6"}})])])]):e._e(),e._v(" "),"opened"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--info"},[n("svg",{staticClass:"svg-icon",attrs:{height:"23",width:"24",viewBox:"0 0 24 23",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"open-book"}},[n("g",{attrs:{stroke:"#006CE6","stroke-width":"2",fill:"none","fill-rule":"evenodd","stroke-linecap":"square"}},[n("path",{attrs:{opacity:".5",d:"M1 2l11 3 11-3v17l-11 3-11-3z"}}),e._v(" "),n("path",{attrs:{d:"M5 15.9L9 17M9 8.3L5 7.2M9 12.5l-4-1M19 15.9L15 17M15 8.3l4-1.1M15 12.5l4-1"}})])])]):e._e(),e._v(" "),"clicked"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--warn"},[n("svg",{staticClass:"svg-icon",attrs:{height:"30",width:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"click"}},[n("g",{attrs:{"stroke-width":"2",fill:"none","fill-rule":"evenodd","stroke-linecap":"square"}},[n("path",{attrs:{fill:"#FFBA62",d:"M15.0086638 29.1674982L9.5629583 9.5629583l19.6045399 5.4457055-7.1528135 3.0654915 6.3995289 6.3995289-3.9405294 3.9405294-6.3995289-6.3995289-3.0654915 7.1528135zm-2.5716221-16.7304565l2.9753471 10.7112496 1.9871401-4.6366602 7.0741553 7.0741553 1.1121022-1.1121022-7.0741553-7.0741553 4.6366602-1.9871401-10.7112496-2.9753471z"}}),e._v(" "),n("path",{attrs:{fill:"#FF8F00",d:"M3.34314558 4.75735971l1.41421356-1.41421356 2.82842712 2.82842712L6.1715727 7.58578683 3.34314558 4.7573597zM11.53554435.5355302l2.00000001.00000704-.00001414 4.00000209-2.00000005-.00000707.00001418-4.00000206zm8.77816397 2.80761595L21.7279219 4.7573597l-2.82842713 2.82842713-1.41421356-1.41421356 2.82842712-2.82842713zM4.75735914 21.72792244l-1.41421356-1.41421356 2.82842713-2.82842712 1.41421356 1.41421356-2.82842713 2.82842712zM.53554024 13.5355343v-2H4.5355352l3e-8 2.00000003-3.99999498-3e-8z"}})])])]):e._e(),e._v(" "),"failed"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--danger"},[n("svg",{staticClass:"svg-icon",attrs:{height:"23",width:"24",viewBox:"0 0 23 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"suppressed"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd","stroke-width":"2"}},[n("path",{attrs:{stroke:"#E47573",d:"M5 7.1L1 10v12h22V10l-4-2.9M1 10l22 12M23 10l-11 6"}}),e._v(" "),n("path",{attrs:{stroke:"#D41E1B","stroke-linecap":"square",d:"M15 2L9 8M9 2l6 6"}})])])]):e._e(),e._v(" "),"suppressed"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--warn"},[n("svg",{staticClass:"svg-icon",attrs:{height:"23",width:"24",viewBox:"0 0 23 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"suppressed"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd","stroke-width":"2"}},[n("path",{attrs:{stroke:"#FFBA62",d:"M5 7.1L1 10v12h22V10l-4-2.9M1 10l22 12M23 10l-11 6"}}),e._v(" "),n("path",{attrs:{stroke:"#FF8F00","stroke-linecap":"square",d:"M15 2L9 8M9 2l6 6"}})])])]):e._e(),e._v(" "),n("div",{staticClass:"card-content d-flex flex-column flex-justify-center"},[n("div",{staticClass:"card-label text-small text-gray-light"},[e.customLabel?[e._v(e._s(e.customLabel))]:[e._v("\n "+e._s(e.current)+" / "+e._s(e.total)+" "+e._s(e.text)+"\n ")]],2),e._v(" "),n("div",{staticClass:"h3"},[e.customMetric?[e._v(e._s(e.customMetric))]:[e._v("\n "+e._s(0!==e.total?Math.ceil(100*e.current/e.total):0)+"%\n ")]],2)])])}),[],!1,null,"77d962d2",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"UnlockArticle",props:["content"],methods:{toggleElementsModalVisibility:function(){this.$refs.stripeModal.toggleElementsModalVisibility()}}},i=n(1),o=Object(i.a)(r,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("button",{staticClass:"btn click-here highlight-logo-blue m-auto d-block",on:{click:this.toggleElementsModalVisibility}},[this._v("\n Débloquer cet article pour 1€\n ")]),this._v(" "),t("stripe-modal",{ref:"stripeModal",attrs:{content:this.content}})],1)}),[],!1,null,"746c4c57",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);n(96);class r{constructor(e){this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",broadcaster:"pusher",csrfToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(e),this.connect()}setOptions(e){return this.options=Object.assign(this._defaultOptions,e),this.csrfToken()&&(this.options.auth.headers["X-CSRF-TOKEN"]=this.csrfToken()),e}csrfToken(){let e;return"undefined"!=typeof window&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:"undefined"!=typeof document&&"function"==typeof document.querySelector&&(e=document.querySelector('meta[name="csrf-token"]'))?e.getAttribute("content"):null}}class i{listenForWhisper(e,t){return this.listen(".client-"+e,t)}notification(e){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",e)}stopListeningForWhisper(e){return this.stopListening(".client-"+e)}}class o{constructor(e){this.setNamespace(e)}format(e){return"."===e.charAt(0)||"\\"===e.charAt(0)?e.substr(1):(this.namespace&&(e=this.namespace+"."+e),e.replace(/\./g,"\\"))}setNamespace(e){this.namespace=e}}class a extends i{constructor(e,t,n){super(),this.name=t,this.pusher=e,this.options=n,this.eventFormatter=new o(this.options.namespace),this.subscribe()}subscribe(){this.subscription=this.pusher.subscribe(this.name)}unsubscribe(){this.pusher.unsubscribe(this.name)}listen(e,t){return this.on(this.eventFormatter.format(e),t),this}stopListening(e){return this.subscription.unbind(this.eventFormatter.format(e)),this}on(e,t){return this.subscription.bind(e,t),this}}class s extends a{whisper(e,t){return this.pusher.channels.channels[this.name].trigger("client-"+e,t),this}}class c extends a{whisper(e,t){return this.pusher.channels.channels[this.name].trigger("client-"+e,t),this}}class l extends a{here(e){return this.on("pusher:subscription_succeeded",t=>{e(Object.keys(t.members).map(e=>t.members[e]))}),this}joining(e){return this.on("pusher:member_added",t=>{e(t.info)}),this}leaving(e){return this.on("pusher:member_removed",t=>{e(t.info)}),this}whisper(e,t){return this.pusher.channels.channels[this.name].trigger("client-"+e,t),this}}class u extends i{constructor(e,t,n){super(),this.events={},this.name=t,this.socket=e,this.options=n,this.eventFormatter=new o(this.options.namespace),this.subscribe(),this.configureReconnector()}subscribe(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}unsubscribe(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}listen(e,t){return this.on(this.eventFormatter.format(e),t),this}stopListening(e){const t=this.eventFormatter.format(e);return this.socket.removeListener(t),delete this.events[t],this}on(e,t){let n=(e,n)=>{this.name==e&&t(n)};this.socket.on(e,n),this.bind(e,n)}configureReconnector(){const e=()=>{this.subscribe()};this.socket.on("reconnect",e),this.bind("reconnect",e)}bind(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}unbind(){Object.keys(this.events).forEach(e=>{this.events[e].forEach(t=>{this.socket.removeListener(e,t)}),delete this.events[e]})}}class d extends u{whisper(e,t){return this.socket.emit("client event",{channel:this.name,event:"client-"+e,data:t}),this}}class f extends d{here(e){return this.on("presence:subscribed",t=>{e(t.map(e=>e.user_info))}),this}joining(e){return this.on("presence:joining",t=>e(t.user_info)),this}leaving(e){return this.on("presence:leaving",t=>e(t.user_info)),this}}class h extends i{subscribe(){}unsubscribe(){}listen(e,t){return this}stopListening(e){return this}on(e,t){return this}}class p extends h{whisper(e,t){return this}}class m extends h{here(e){return this}joining(e){return this}leaving(e){return this}whisper(e,t){return this}}class v extends r{constructor(){super(...arguments),this.channels={}}connect(){void 0!==this.options.client?this.pusher=this.options.client:this.pusher=new Pusher(this.options.key,this.options)}listen(e,t,n){return this.channel(e).listen(t,n)}channel(e){return this.channels[e]||(this.channels[e]=new a(this.pusher,e,this.options)),this.channels[e]}privateChannel(e){return this.channels["private-"+e]||(this.channels["private-"+e]=new s(this.pusher,"private-"+e,this.options)),this.channels["private-"+e]}encryptedPrivateChannel(e){return this.channels["private-encrypted-"+e]||(this.channels["private-encrypted-"+e]=new c(this.pusher,"private-encrypted-"+e,this.options)),this.channels["private-encrypted-"+e]}presenceChannel(e){return this.channels["presence-"+e]||(this.channels["presence-"+e]=new l(this.pusher,"presence-"+e,this.options)),this.channels["presence-"+e]}leave(e){[e,"private-"+e,"presence-"+e].forEach((e,t)=>{this.leaveChannel(e)})}leaveChannel(e){this.channels[e]&&(this.channels[e].unsubscribe(),delete this.channels[e])}socketId(){return this.pusher.connection.socket_id}disconnect(){this.pusher.disconnect()}}class g extends r{constructor(){super(...arguments),this.channels={}}connect(){let e=this.getSocketIO();return this.socket=e(this.options.host,this.options),this.socket}getSocketIO(){if(void 0!==this.options.client)return this.options.client;if("undefined"!=typeof io)return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}listen(e,t,n){return this.channel(e).listen(t,n)}channel(e){return this.channels[e]||(this.channels[e]=new u(this.socket,e,this.options)),this.channels[e]}privateChannel(e){return this.channels["private-"+e]||(this.channels["private-"+e]=new d(this.socket,"private-"+e,this.options)),this.channels["private-"+e]}presenceChannel(e){return this.channels["presence-"+e]||(this.channels["presence-"+e]=new f(this.socket,"presence-"+e,this.options)),this.channels["presence-"+e]}leave(e){[e,"private-"+e,"presence-"+e].forEach(e=>{this.leaveChannel(e)})}leaveChannel(e){this.channels[e]&&(this.channels[e].unsubscribe(),delete this.channels[e])}socketId(){return this.socket.id}disconnect(){this.socket.disconnect()}}class b extends r{constructor(){super(...arguments),this.channels={}}connect(){}listen(e,t,n){return new h}channel(e){return new h}privateChannel(e){return new p}presenceChannel(e){return new m}leave(e){}leaveChannel(e){}socketId(){return"fake-socket-id"}disconnect(){}}var y=class{constructor(e){this.options=e,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}channel(e){return this.connector.channel(e)}connect(){"pusher"==this.options.broadcaster?this.connector=new v(this.options):"socket.io"==this.options.broadcaster?this.connector=new g(this.options):"null"==this.options.broadcaster?this.connector=new b(this.options):"function"==typeof this.options.broadcaster&&(this.connector=new this.options.broadcaster(this.options))}disconnect(){this.connector.disconnect()}join(e){return this.connector.presenceChannel(e)}leave(e){this.connector.leave(e)}leaveChannel(e){this.connector.leaveChannel(e)}listen(e,t,n){return this.connector.listen(e,t,n)}private(e){return this.connector.privateChannel(e)}encryptedPrivate(e){return this.connector.encryptedPrivateChannel(e)}socketId(){return this.connector.socketId()}registerInterceptors(){"function"==typeof Vue&&Vue.http&&this.registerVueRequestInterceptor(),"function"==typeof axios&&this.registerAxiosRequestInterceptor(),"function"==typeof jQuery&&this.registerjQueryAjaxSetup()}registerVueRequestInterceptor(){Vue.http.interceptors.push((e,t)=>{this.socketId()&&e.headers.set("X-Socket-ID",this.socketId()),t()})}registerAxiosRequestInterceptor(){axios.interceptors.request.use(e=>(this.socketId()&&(e.headers["X-Socket-Id"]=this.socketId()),e))}registerjQueryAjaxSetup(){void 0!==jQuery.ajax&&jQuery.ajaxPrefilter((e,t,n)=>{this.socketId()&&n.setRequestHeader("X-Socket-Id",this.socketId())})}};window._=n(35);try{window.Popper=n(53).default,window.$=window.jQuery=n(36),n(98)}catch(e){}window.axios=n(99),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",window.Pusher=n(116),window.Echo=new y({broadcaster:"pusher",key:"459380cb6d0a29d6861f",cluster:"eu",encrypted:!0})},,function(e,t,n){var r=n(286),i=n(63),o=n(6),a=n(64),s=n(65),c=n(81),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&c(e),h=n||u||d||f,p=h?r(e.length,String):[],m=p.length;for(var v in e)!t&&!l.call(e,v)||h&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||p.push(v);return p}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(7))},function(e,t,n){var r=n(82),i=n(292),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(148),i=n(316),o=n(317);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(67);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(150),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);++a<s;)c[a]=o[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=o[a];return l[t]=n(c),r(e,this,l)}}},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(37),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(16),i=n(10);e.exports=function(e){return i(e)&&r(e)}},function(e,t,n){var r=n(324)();e.exports=r},function(e,t,n){var r=n(38);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t,n){var r=n(219),i=n(335),o=n(223);e.exports=function(e,t,n,a,s,c){var l=1&n,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var f=c.get(e),h=c.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var g=e[p],b=t[p];if(a)var y=l?a(b,g,p,t,e,c):a(g,b,p,e,t,c);if(void 0!==y){if(y)continue;m=!1;break}if(v){if(!i(t,(function(e,t){if(!o(v,t)&&(g===e||s(g,e,n,a,c)))return v.push(t)}))){m=!1;break}}else if(g!==b&&!s(g,b,n,a,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},function(e,t,n){var r=n(8).Uint8Array;e.exports=r},function(e,t,n){var r=n(235),i=n(156),o=n(15);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(155),i=n(6);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(37)(n(8),"WeakMap");e.exports=r},function(e,t,n){var r=n(11);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(70);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(348),i=n(349);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){var r=n(87),i=n(16);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},function(e,t,n){var r=n(32),i=n(355),o=n(371),a=n(48),s=n(50),c=n(373),l=n(250),u=n(162),d=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=a(t,e),l||(l=t.length>1),t})),s(e,u(e),n),l&&(n=i(n,7,c));for(var d=t.length;d--;)o(n,t[d]);return n}));e.exports=d},function(e,t,n){(function(e){var r=n(8),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(42)(e))},function(e,t,n){var r=n(155),i=n(161),o=n(156),a=n(236),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},function(e,t,n){var r=n(163);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(90),i=n(161),o=n(82);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},function(e,t,n){var r=n(251),i=n(224),o=n(151);e.exports=function(e){return o(i(e,void 0,r),e+"")}},function(e,t,n){var r=n(374);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(31),i=n(10);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(222),i=n(13),o=n(74),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:o(n);return c<0&&(c=a(s+c,0)),r(e,i(t,3),c)}},function(e,t,n){var r=n(159),i=n(381),o=n(382),a=n(383),s=n(384),c=n(158),l=/^\s+|\s+$/g;e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=r(t)))return e;var u=s(e),d=s(t),f=a(u,d),h=o(u,d)+1;return i(u,f,h).join("")}},function(e,t,n){var r=n(45),i=n(16),o=n(65),a=n(11);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(73),i=n(45);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){"use strict";var r=n(47),i=n(395),o=n(91),a=n(254),s=n(240),c=n(396),l=n(92),u=n(398),d=n(33),f=n(260),h=n(165),p=n(166),m=n(44),v=n(405),g=n(421),b=n(271),y=n(424);function k(e){var t={};return r(e,(function(e,n){t[e]=n})),t}function w(e,t,n){t&&t[n]&&(e.stats=t[n])}function _(e,t){var n=t[0];this._rawResults=t,this.query=n.query,this.parsedQuery=n.parsedQuery,this.hits=n.hits,this.index=n.index,this.hitsPerPage=n.hitsPerPage,this.nbHits=n.nbHits,this.nbPages=n.nbPages,this.page=n.page,this.processingTimeMS=c(t,"processingTimeMS"),this.aroundLatLng=n.aroundLatLng,this.automaticRadius=n.automaticRadius,this.serverUsed=n.serverUsed,this.timeoutCounts=n.timeoutCounts,this.timeoutHits=n.timeoutHits,this.exhaustiveFacetsCount=n.exhaustiveFacetsCount,this.exhaustiveNbHits=n.exhaustiveNbHits,this.userData=n.userData,this.queryID=n.queryID,this.disjunctiveFacets=[],this.hierarchicalFacets=d(e.hierarchicalFacets,(function(){return[]})),this.facets=[];var s=e.getRefinedDisjunctiveFacets(),f=k(e.facets),m=k(e.disjunctiveFacets),v=1,g=this;r(n.facets,(function(t,r){var i,s,c=(i=e.hierarchicalFacets,s=r,l(i,(function(e){return u(e.attributes,s)})));if(c){var d=c.attributes.indexOf(r),h=a(e.hierarchicalFacets,{name:c.name});g.hierarchicalFacets[h][d]={attribute:r,data:t,exhaustive:n.exhaustiveFacetsCount}}else{var p,v=-1!==o(e.disjunctiveFacets,r),b=-1!==o(e.facets,r);v&&(p=m[r],g.disjunctiveFacets[p]={name:r,data:t,exhaustive:n.exhaustiveFacetsCount},w(g.disjunctiveFacets[p],n.facets_stats,r)),b&&(p=f[r],g.facets[p]={name:r,data:t,exhaustive:n.exhaustiveFacetsCount},w(g.facets[p],n.facets_stats,r))}})),this.hierarchicalFacets=i(this.hierarchicalFacets),r(s,(function(i){var s=t[v],c=e.getHierarchicalFacetByName(i);r(s.facets,(function(t,i){var l;if(c){l=a(e.hierarchicalFacets,{name:c.name});var u=a(g.hierarchicalFacets[l],{attribute:i});if(-1===u)return;g.hierarchicalFacets[l][u].data=p({},g.hierarchicalFacets[l][u].data,t)}else{l=m[i];var d=n.facets&&n.facets[i]||{};g.disjunctiveFacets[l]={name:i,data:h({},t,d),exhaustive:s.exhaustiveFacetsCount},w(g.disjunctiveFacets[l],s.facets_stats,i),e.disjunctiveFacetsRefinements[i]&&r(e.disjunctiveFacetsRefinements[i],(function(t){!g.disjunctiveFacets[l].data[t]&&o(e.disjunctiveFacetsRefinements[i],t)>-1&&(g.disjunctiveFacets[l].data[t]=0)}))}})),v++})),r(e.getRefinedHierarchicalFacets(),(function(n){var i=e.getHierarchicalFacetByName(n),o=e._getHierarchicalFacetSeparator(i),s=e.getHierarchicalRefinement(n);if(!(0===s.length||s[0].split(o).length<2)){var c=t[v];r(c.facets,(function(t,n){var r=a(e.hierarchicalFacets,{name:i.name}),c=a(g.hierarchicalFacets[r],{attribute:n});if(-1!==c){var l={};if(s.length>0){var u=s[0].split(o)[0];l[u]=g.hierarchicalFacets[r][c].data[u]}g.hierarchicalFacets[r][c].data=h(l,t,g.hierarchicalFacets[r][c].data)}})),v++}})),r(e.facetsExcludes,(function(e,t){var i=f[t];g.facets[i]={name:t,data:n.facets[t],exhaustive:n.exhaustiveFacetsCount},r(e,(function(e){g.facets[i]=g.facets[i]||{name:t},g.facets[i].data=g.facets[i].data||{},g.facets[i].data[e]=0}))})),this.hierarchicalFacets=d(this.hierarchicalFacets,y(e)),this.facets=i(this.facets),this.disjunctiveFacets=i(this.disjunctiveFacets),this._state=e}function C(e,t){if(!t.data||0===t.data.length)return t;var n=e(d(t.data,v(C,e)));return p({},t,{data:n})}function A(e,t){return t.sort(e)}function x(e,t){var n=l(e,{name:t});return n&&n.stats}function S(e,t,n,r,i){var o=l(i,{name:n});return{type:t,attributeName:n,name:r,count:s(o,"data["+r+"]")||0,exhaustive:s(o,"exhaustive")||!1}}_.prototype.getFacetByName=function(e){var t={name:e};return l(this.facets,t)||l(this.disjunctiveFacets,t)||l(this.hierarchicalFacets,t)},_.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],_.prototype.getFacetValues=function(e,t){var n=function(e,t){var n={name:t};if(e._state.isConjunctiveFacet(t)){var r=l(e.facets,n);return r?d(r.data,(function(n,r){return{name:r,count:n,isRefined:e._state.isFacetRefined(t,r),isExcluded:e._state.isExcludeRefined(t,r)}})):[]}if(e._state.isDisjunctiveFacet(t)){var i=l(e.disjunctiveFacets,n);return i?d(i.data,(function(n,r){return{name:r,count:n,isRefined:e._state.isDisjunctiveFacetRefined(t,r)}})):[]}if(e._state.isHierarchicalFacet(t))return l(e.hierarchicalFacets,n)}(this,e);if(!n)throw new Error(e+" is not a retrieved facet.");var r=h({},t,{sortBy:_.DEFAULT_SORT});if(Array.isArray(r.sortBy)){var i=b(r.sortBy,_.DEFAULT_SORT);return Array.isArray(n)?f(n,i[0],i[1]):C(g(f,i[0],i[1]),n)}if(m(r.sortBy))return Array.isArray(n)?n.sort(r.sortBy):C(v(A,r.sortBy),n);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},_.prototype.getFacetStats=function(e){if(this._state.isConjunctiveFacet(e))return x(this.facets,e);if(this._state.isDisjunctiveFacet(e))return x(this.disjunctiveFacets,e);throw new Error(e+" is not present in `facets` or `disjunctiveFacets`")},_.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return r(e.facetsRefinements,(function(i,o){r(i,(function(r){n.push(S(e,"facet",o,r,t.facets))}))})),r(e.facetsExcludes,(function(i,o){r(i,(function(r){n.push(S(e,"exclude",o,r,t.facets))}))})),r(e.disjunctiveFacetsRefinements,(function(i,o){r(i,(function(r){n.push(S(e,"disjunctive",o,r,t.disjunctiveFacets))}))})),r(e.hierarchicalFacetsRefinements,(function(i,o){r(i,(function(r){n.push(function(e,t,n,r){for(var i=l(r,{name:t}),o=e.getHierarchicalFacetByName(t),a=n.split(o.separator),c=a[a.length-1],u=0;void 0!==i&&u<a.length;++u)i=l(i.data,{name:a[u]});var d=s(i,"count"),f=s(i,"exhaustive");return{type:"hierarchical",attributeName:t,name:c,count:d||0,exhaustive:f||!1}}(e,o,r,t.hierarchicalFacets))}))})),r(e.numericRefinements,(function(e,t){r(e,(function(e,i){r(e,(function(e){n.push({type:"numeric",attributeName:t,name:e,numericValue:e,operator:i})}))}))})),r(e.tagRefinements,(function(e){n.push({type:"tag",attributeName:"_tags",name:e})})),n},e.exports=_},function(e,t,n){var r=n(401),i=n(6);e.exports=function(e,t,n,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},function(e,t,n){var r=n(38),i=n(262),o=i?function(e,t){return i.set(e,t),e}:r;e.exports=o},function(e,t,n){var r=n(237),i=r&&new r;e.exports=i},function(e,t,n){var r=n(264),i=n(265),o=n(408),a=n(93),s=n(266),c=n(77),l=n(418),u=n(52),d=n(8);e.exports=function e(t,n,f,h,p,m,v,g,b,y){var k=128&n,w=1&n,_=2&n,C=24&n,A=512&n,x=_?void 0:a(t);return function S(){for(var M=arguments.length,E=Array(M),T=M;T--;)E[T]=arguments[T];if(C)var D=c(S),O=o(E,D);if(h&&(E=r(E,h,p,C)),m&&(E=i(E,m,v,C)),M-=O,C&&M<y){var P=u(E,D);return s(t,n,e,S.placeholder,f,E,P,g,b,y-M)}var I=w?f:this,j=_?I[t]:t;return M=E.length,g?E=l(E,g):A&&M>1&&E.reverse(),k&&b<M&&(E.length=b),this&&this!==d&&this instanceof S&&(j=x||a(j)),j.apply(I,E)}}},function(e,t){var n=Math.max;e.exports=function(e,t,r,i){for(var o=-1,a=e.length,s=r.length,c=-1,l=t.length,u=n(a-s,0),d=Array(l+u),f=!i;++c<l;)d[c]=t[c];for(;++o<s;)(f||o<a)&&(d[r[o]]=e[o]);for(;u--;)d[c++]=e[o++];return d}},function(e,t){var n=Math.max;e.exports=function(e,t,r,i){for(var o=-1,a=e.length,s=-1,c=r.length,l=-1,u=t.length,d=n(a-c,0),f=Array(d+u),h=!i;++o<d;)f[o]=e[o];for(var p=o;++l<u;)f[p+l]=t[l];for(;++s<c;)(h||o<a)&&(f[p+r[s]]=e[o++]);return f}},function(e,t,n){var r=n(409),i=n(269),o=n(270);e.exports=function(e,t,n,a,s,c,l,u,d,f){var h=8&t;t|=h?32:64,4&(t&=~(h?64:32))||(t&=-4);var p=[e,t,s,h?c:void 0,h?l:void 0,h?void 0:c,h?void 0:l,u,d,f],m=n.apply(void 0,p);return r(e)&&i(m,p),m.placeholder=a,o(m,e,t)}},function(e,t,n){var r=n(262),i=n(410),o=r?function(e){return r.get(e)}:i;e.exports=o},function(e,t,n){var r=n(90),i=n(169);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(261),i=n(227)(r);e.exports=i},function(e,t,n){var r=n(415),i=n(416),o=n(151),a=n(417);e.exports=function(e,t,n){var s=t+"";return o(e,i(s,a(r(s),n)))}},function(e,t,n){"use strict";var r=n(72),i=n(92),o=n(422);e.exports=function(e,t){return r(e,(function(e,n){var r=n.split(":");if(t&&1===r.length){var a=i(t,(function(e){return o(e,n[0])}));a&&(r=a.split(":"))}return e[0].push(r[0]),e[1].push(r[1]),e}),[[],[]])}},function(e,t,n){var r=n(70),i=n(426),o=n(48);e.exports=function(e,t,n){for(var a=-1,s=t.length,c={};++a<s;){var l=t[a],u=r(e,l);n(u,l)&&i(c,o(l,e),u)}return c}},function(e,t,n){"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},function(e,t,n){"use strict";var r=n(429),i=n(145),o=n(95),a=n(434),s=n(47),c=n(435),l=n(33),u=n(437),d=n(438),f=n(76),h=n(164),p=n(75),m=n(275),v=n(170).encode;function g(e){return h(e)?d(e,g):Array.isArray(e)?l(e,g):f(e)?v(e):e}var b=["dFR","fR","nR","hFR","tR"],y=r.ENCODED_PARAMETERS;function k(e,t,n,r){if(null!==e&&(n=n.replace(e,""),r=r.replace(e,"")),n=t[n]||n,r=t[r]||r,-1!==y.indexOf(n)||-1!==y.indexOf(r)){if("q"===n)return-1;if("q"===r)return 1;var i=-1!==b.indexOf(n),o=-1!==b.indexOf(r);if(i&&!o)return 1;if(o&&!i)return-1}return n.localeCompare(r)}t.getStateFromQueryString=function(e,t){var n=t&&t.prefix||"",a=t&&t.mapping||{},s=m(a),l=o.parse(e),d=new RegExp("^"+n),f=u(l,(function(e,t){var i=n&&d.test(t)?t.replace(d,""):t;return r.decode(s[i]||i)||i})),h=i._parseNumbers(f);return c(h,i.PARAMETERS)},t.getUnrecognizedParametersInQueryString=function(e,t){var n=t&&t.prefix,i=t&&t.mapping||{},a=m(i),c={},l=o.parse(e);if(n){var u=new RegExp("^"+n);s(l,(function(e,t){u.test(t)||(c[t]=e)}))}else s(l,(function(e,t){r.decode(a[t]||t)||(c[t]=e)}));return c},t.getQueryStringFromState=function(e,t){var n=t&&t.moreAttributes,i=t&&t.prefix||"",s=t&&t.mapping||{},c=t&&t.safe||!1,l=m(s),d=c?e:g(e),f=u(d,(function(e,t){var n=r.encode(t);return i+(s[n]||n)})),h=""===i?null:new RegExp("^"+i),v=a(k,null,h,l);if(!p(n)){var b=o.stringify(f,{encode:c,sort:v}),y=o.stringify(n,{encode:c});return b?b+"&"+y:y}return o.stringify(f,{encode:c,sort:v})}},function(e,t,n){var r=n(225),i=n(430),o=n(38),a=Object.prototype.toString,s=i((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=a.call(t)),e[t]=n}),r(o));e.exports=s},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,n){"use strict";e.exports="2.28.1"},function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=6)}([function(e,t,n){"use strict";function r(){c=!1}function i(e){if(e){if(e!==a){if(e.length!==u.length)throw new Error("Custom alphabet for shortid must be "+u.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+u.length+" unique characters. These characters were not unique: "+t.join(", "));a=e,r()}}else a!==u&&(a=u,r())}function o(){return c||(c=function(){a||i(u);for(var e,t=a.split(""),n=[],r=l.nextValue();t.length>0;)r=l.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}var a,s,c,l=n(19),u="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";e.exports={get:function(){return a||u},characters:function(e){return i(e),a},seed:function(e){l.seed(e),s!==e&&(r(),s=e)},lookup:function(e){return o()[e]},shuffled:o}},function(e,t,n){"use strict";var r=n(5),i=n.n(r);t.a={animateIn:function(e){i()({targets:e,translateY:"-35px",opacity:1,duration:300,easing:"easeOutCubic"})},animateOut:function(e,t){i()({targets:e,opacity:0,marginTop:"-40px",duration:300,easing:"easeOutExpo",complete:t})},animateOutBottom:function(e,t){i()({targets:e,opacity:0,marginBottom:"-40px",duration:300,easing:"easeOutExpo",complete:t})},animateReset:function(e){i()({targets:e,left:0,opacity:1,duration:300,easing:"easeOutExpo"})},animatePanning:function(e,t,n){i()({targets:e,duration:10,easing:"easeOutQuad",left:t,opacity:n})},animatePanEnd:function(e,t){i()({targets:e,opacity:0,duration:300,easing:"easeOutExpo",complete:t})},clearAnimation:function(e){var t=i.a.timeline();e.forEach((function(e){t.add({targets:e.el,opacity:0,right:"-40px",duration:300,offset:"-=150",easing:"easeOutExpo",complete:function(){e.remove()}})}))}}},function(e,t,n){"use strict";e.exports=n(16)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(8),i=n(1),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(2);n(11).polyfill();var s=function e(t){var n=this;return this.id=a.generate(),this.options=t,this.cached_options={},this.global={},this.groups=[],this.toasts=[],this.container=null,u(this),l(this),this.group=function(t){t||(t={}),t.globalToasts||(t.globalToasts={}),Object.assign(t.globalToasts,n.global);var r=new e(t);return n.groups.push(r),r},this.register=function(e,t,r){return d(n,e,t,r=r||{})},this.show=function(e,t){return c(n,e,t)},this.success=function(e,t){return(t=t||{}).type="success",c(n,e,t)},this.info=function(e,t){return(t=t||{}).type="info",c(n,e,t)},this.error=function(e,t){return(t=t||{}).type="error",c(n,e,t)},this.remove=function(e){n.toasts=n.toasts.filter((function(t){return t.el.hash!==e.hash})),e.parentNode&&e.parentNode.removeChild(e)},this.clear=function(e){return i.a.clearAnimation(n.toasts,(function(){e&&e()})),n.toasts=[],!0},this},c=function(e,t,i){var a;if("object"!==(void 0===(i=i||{})?"undefined":o(i)))return console.error("Options should be a type of object. given : "+i),null;e.options.singleton&&e.toasts.length>0&&(e.cached_options=i,e.toasts[e.toasts.length-1].goAway(0));var s=Object.assign({},e.options);return Object.assign(s,i),a=n.i(r.a)(e,t,s),e.toasts.push(a),a},l=function(e){var t=e.options.globalToasts,n=function(t,n){return"string"==typeof n&&e[n]?e[n].apply(e,[t,{}]):c(e,t,n)};t&&(e.global={},Object.keys(t).forEach((function(r){e.global[r]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t[r].apply(null,[e,n])}})))},u=function(e){var t=document.createElement("div");t.id=e.id,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","false"),document.body.appendChild(t),e.container=t},d=function(e,t,n,r){e.options.globalToasts||(e.options.globalToasts={}),e.options.globalToasts[t]=function(e,t){var i=null;return"string"==typeof n&&(i=n),"function"==typeof n&&(i=n(e)),t(i,r)},l(e)}},function(e,t,n){n(22);var r=n(21)(null,null,null,null);e.exports=r.exports},function(e,t,n){(function(n){var r,i,o,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},a.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==n&&null!=n?n:e},a.global=a.getGlobal(this),a.SYMBOL_PREFIX="jscomp_symbol_",a.initSymbol=function(){a.initSymbol=function(){},a.global.Symbol||(a.global.Symbol=a.Symbol)},a.symbolCounter_=0,a.Symbol=function(e){return a.SYMBOL_PREFIX+(e||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var e=a.global.Symbol.iterator;e||(e=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&a.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(e){var t=0;return a.iteratorPrototype((function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}))},a.iteratorPrototype=function(e){return a.initSymbolIterator(),(e={next:e})[a.global.Symbol.iterator]=function(){return this},e},a.array=a.array||{},a.iteratorFromArray=function(e,t){a.initSymbolIterator(),e instanceof String&&(e+="");var n=0,r={next:function(){if(n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},a.polyfill=function(e,t,n,r){if(t){for(n=a.global,e=e.split("."),r=0;r<e.length-1;r++){var i=e[r];i in n||(n[i]={}),n=n[i]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&a.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},a.polyfill("Array.prototype.keys",(function(e){return e||function(){return a.iteratorFromArray(this,(function(e){return e}))}}),"es6-impl","es3");var s=this;i=[],r=function(){function e(e){if(!P.col(e))try{return document.querySelectorAll(e)}catch(e){}}function t(e,t){for(var n=e.length,r=2<=arguments.length?arguments[1]:void 0,i=[],o=0;o<n;o++)if(o in e){var a=e[o];t.call(r,a,o,e)&&i.push(a)}return i}function n(e){return e.reduce((function(e,t){return e.concat(P.arr(t)?n(t):t)}),[])}function r(t){return P.arr(t)?t:(P.str(t)&&(t=e(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function i(e,t){return e.some((function(e){return e===t}))}function o(e){var t,n={};for(t in e)n[t]=e[t];return n}function a(e,t){var n,r=o(e);for(n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function c(e,t){var n,r=o(e);for(n in t)r[n]=P.und(e[n])?t[n]:e[n];return r}function l(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e))return e[2]}function u(e,t){return P.fnc(e)?e(t.target,t.id,t.total):e}function d(e,t){if(t in e.style)return getComputedStyle(e).getPropertyValue(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function f(e,t){return P.dom(e)&&i(O,t)?"transform":P.dom(e)&&(e.getAttribute(t)||P.svg(e)&&e[t])?"attribute":P.dom(e)&&"transform"!==t&&d(e,t)?"css":null!=e[t]?"object":void 0}function h(e,n){var r=function(e){return-1<e.indexOf("translate")||"perspective"===e?"px":-1<e.indexOf("rotate")||-1<e.indexOf("skew")?"deg":void 0}(n);if(r=-1<n.indexOf("scale")?1:0+r,!(e=e.style.transform))return r;for(var i=[],o=[],a=[],s=/(\w+)\((.+?)\)/g;i=s.exec(e);)o.push(i[1]),a.push(i[2]);return(e=t(a,(function(e,t){return o[t]===n}))).length?e[0]:r}function p(e,t){switch(f(e,t)){case"transform":return h(e,t);case"css":return d(e,t);case"attribute":return e.getAttribute(t)}return e[t]||0}function m(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=l(e)||0;switch(t=parseFloat(t),e=parseFloat(e.replace(n[0],"")),n[0][0]){case"+":return t+e+r;case"-":return t-e+r;case"*":return t*e+r}}function v(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function g(e){e=e.points;for(var t,n=0,r=0;r<e.numberOfItems;r++){var i=e.getItem(r);0<r&&(n+=v(t,i)),t=i}return n}function b(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*e.getAttribute("r");case"rect":return 2*e.getAttribute("width")+2*e.getAttribute("height");case"line":return v({x:e.getAttribute("x1"),y:e.getAttribute("y1")},{x:e.getAttribute("x2"),y:e.getAttribute("y2")});case"polyline":return g(e);case"polygon":var t=e.points;return g(e)+v(t.getItem(t.numberOfItems-1),t.getItem(0))}}function y(e,t){function n(n){return n=void 0===n?0:n,e.el.getPointAtLength(1<=t+n?t+n:0)}var r=n(),i=n(-1),o=n(1);switch(e.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(o.y-i.y,o.x-i.x)/Math.PI}}function k(e,t){var n,r=/-?\d*\.?\d+/g;if(n=P.pth(e)?e.totalLength:e,P.col(n))if(P.rgb(n)){var i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=i?"rgba("+i[1]+",1)":n}else n=P.hex(n)?function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+(e=parseInt(t[1],16))+","+parseInt(t[2],16)+","+(t=parseInt(t[3],16))+",1)"}(n):P.hsl(n)?function(e){function t(e,t,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:.5>n?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e);e=parseInt(n[1])/360;var r=parseInt(n[2])/100,i=parseInt(n[3])/100;if(n=n[4]||1,0==r)i=r=e=i;else{var o=.5>i?i*(1+r):i+r-i*r,a=2*i-o;i=t(a,o,e+1/3),r=t(a,o,e),e=t(a,o,e-1/3)}return"rgba("+255*i+","+255*r+","+255*e+","+n+")"}(n):void 0;else i=(i=l(n))?n.substr(0,n.length-i.length):n,n=t&&!/\s/g.test(n)?i+t:i;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:P.str(e)||t?n.split(r):[]}}function w(e){return t(e=e?n(P.arr(e)?e.map(r):r(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function _(e,t){var n=o(t);if(P.arr(e)){var i=e.length;2!==i||P.obj(e[0])?P.fnc(t.duration)||(n.duration=t.duration/i):e={value:e}}return r(e).map((function(e,n){return n=n?0:t.delay,e=P.obj(e)&&!P.pth(e)?e:{value:e},P.und(e.delay)&&(e.delay=n),e})).map((function(e){return c(e,n)}))}function C(e,t){var n;return e.tweens.map((function(r){var i=(r=function(e,t){var n,r={};for(n in e){var i=u(e[n],t);P.arr(i)&&1===(i=i.map((function(e){return u(e,t)}))).length&&(i=i[0]),r[n]=i}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}(r,t)).value,o=p(t.target,e.name),a=n?n.to.original:o,s=(a=P.arr(i)?i[0]:a,m(P.arr(i)?i[1]:i,a));return o=l(s)||l(a)||l(o),r.from=k(a,o),r.to=k(s,o),r.start=n?n.end:e.offset,r.end=r.start+r.delay+r.duration,r.easing=function(e){return P.arr(e)?I.apply(this,e):j[e]}(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=P.pth(i),r.isColor=P.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function A(e,r){return t(n(e.map((function(e){return r.map((function(t){var n=f(e.target,t.name);if(n){var r=C(t,e);t={type:n,property:t.name,animatable:e,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else t=void 0;return t}))}))),(function(e){return!P.und(e)}))}function x(e,t,n,r){var i="delay"===e;return t.length?(i?Math.min:Math.max).apply(Math,t.map((function(t){return t[e]}))):i?r.delay:n.offset+r.delay+r.duration}function S(e){var t,n=a(T,e),r=a(D,e),i=function(e){var t=w(e);return t.map((function(e,n){return{target:e,id:n,total:t.length}}))}(e.targets),o=[],s=c(n,r);for(t in e)s.hasOwnProperty(t)||"targets"===t||o.push({name:t,offset:s.offset,tweens:_(e[t],r)});return c(n,{children:[],animatables:i,animations:e=A(i,o),duration:x("duration",e,n,r),delay:x("delay",e,n,r)})}function M(e){function n(){return window.Promise&&new Promise((function(e){return f=e}))}function r(e){return p.reversed?p.duration-e:e}function i(e){for(var n=0,r={},i=p.animations,o=i.length;n<o;){var a=i[n],s=a.animatable,c=(l=a.tweens)[h=l.length-1];h&&(c=t(l,(function(t){return e<t.end}))[0]||c);for(var l=Math.min(Math.max(e-c.start-c.delay,0),c.duration)/c.duration,u=isNaN(l)?1:c.easing(l,c.elasticity),f=(l=c.to.strings,c.round),h=[],m=void 0,v=(m=c.to.numbers.length,0);v<m;v++){var g=void 0,b=(g=c.to.numbers[v],c.from.numbers[v]);g=c.isPath?y(c.value,u*g):b+u*(g-b),f&&(c.isColor&&2<v||(g=Math.round(g*f)/f)),h.push(g)}if(c=l.length)for(m=l[0],u=0;u<c;u++)f=l[u+1],v=h[u],isNaN(v)||(m=f?m+(v+f):m+(v+" "));else m=h[0];N[a.type](s.target,a.property,m,r,s.id),a.currentValue=m,n++}if(n=Object.keys(r).length)for(i=0;i<n;i++)E||(E=d(document.body,"transform")?"transform":"-webkit-transform"),p.animatables[i].target.style[E]=r[i].join(" ");p.currentTime=e,p.progress=e/p.duration*100}function o(e){p[e]&&p[e](p)}function a(){p.remaining&&!0!==p.remaining&&p.remaining--}function s(e){var t=p.duration,s=p.offset,d=s+p.delay,m=p.currentTime,v=p.reversed,g=r(e);if(p.children.length){var b=p.children,y=b.length;if(g>=p.currentTime)for(var k=0;k<y;k++)b[k].seek(g);else for(;y--;)b[y].seek(g)}(g>=d||!t)&&(p.began||(p.began=!0,o("begin")),o("run")),g>s&&g<t?i(g):(g<=s&&0!==m&&(i(0),v&&a()),(g>=t&&m!==t||!t)&&(i(t),v||a())),o("update"),e>=t&&(p.remaining?(l=c,"alternate"===p.direction&&(p.reversed=!p.reversed)):(p.pause(),p.completed||(p.completed=!0,o("complete"),"Promise"in window&&(f(),h=n()))),u=0)}e=void 0===e?{}:e;var c,l,u=0,f=null,h=n(),p=S(e);return p.reset=function(){var e=p.direction,t=p.loop;for(p.currentTime=0,p.progress=0,p.paused=!0,p.began=!1,p.completed=!1,p.reversed="reverse"===e,p.remaining="alternate"===e&&1===t?2:t,i(0),e=p.children.length;e--;)p.children[e].reset()},p.tick=function(e){c=e,l||(l=c),s((u+c-l)*M.speed)},p.seek=function(e){s(r(e))},p.pause=function(){var e=R.indexOf(p);-1<e&&R.splice(e,1),p.paused=!0},p.play=function(){p.paused&&(p.paused=!1,l=0,u=r(p.currentTime),R.push(p),L||B())},p.reverse=function(){p.reversed=!p.reversed,l=0,u=r(p.currentTime)},p.restart=function(){p.pause(),p.reset(),p.play()},p.finished=h,p.reset(),p.autoplay&&p.play(),p}var E,T={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},D={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},O="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),P={arr:function(e){return Array.isArray(e)},obj:function(e){return-1<Object.prototype.toString.call(e).indexOf("Object")},pth:function(e){return P.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},dom:function(e){return e.nodeType||P.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return P.hex(e)||P.rgb(e)||P.hsl(e)}},I=function(){function e(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}return function(t,n,r,i){if(0<=t&&1>=t&&0<=r&&1>=r){var o=new Float32Array(11);if(t!==n||r!==i)for(var a=0;11>a;++a)o[a]=e(.1*a,t,r);return function(a){if(t===n&&r===i)return a;if(0===a)return 0;if(1===a)return 1;for(var s=0,c=1;10!==c&&o[c]<=a;++c)s+=.1;--c,c=s+(a-o[c])/(o[c+1]-o[c])*.1;var l=3*(1-3*r+3*t)*c*c+2*(3*r-6*t)*c+3*t;if(.001<=l){for(s=0;4>s&&0!=(l=3*(1-3*r+3*t)*c*c+2*(3*r-6*t)*c+3*t);++s){var u=e(c,t,r)-a;c-=u/l}a=c}else if(0===l)a=c;else{c=s,s+=.1;var d=0;do{0<(l=e(u=c+(s-c)/2,t,r)-a)?s=u:c=u}while(1e-7<Math.abs(l)&&10>++d);a=u}return e(a,n,i)}}}}(),j=function(){function e(e,t){return 0===e||1===e?e:-Math.pow(2,10*(e-1))*Math.sin(2*(e-1-t/(2*Math.PI)*Math.asin(1))*Math.PI/t)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],e],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,n){return 1-e(1-t,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,n){return.5>t?e(2*t,n)/2:1-e(-2*t+2,n)/2}]},i={linear:I(.25,.25,.75,.75)},o={};for(t in r)o.type=t,r[o.type].forEach(function(e){return function(t,r){i["ease"+e.type+n[r]]=P.fnc(t)?t:I.apply(s,t)}}(o)),o={type:o.type};return i}(),N={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,i){r[i]||(r[i]=[]),r[i].push(t+"("+n+")")}},R=[],L=0,B=function(){function e(){L=requestAnimationFrame(t)}function t(t){var n=R.length;if(n){for(var r=0;r<n;)R[r]&&R[r].tick(t),r++;e()}else cancelAnimationFrame(L),L=0}return e}();return M.version="2.2.0",M.speed=1,M.running=R,M.remove=function(e){e=w(e);for(var t=R.length;t--;)for(var n=R[t],r=n.animations,o=r.length;o--;)i(e,r[o].animatable.target)&&(r.splice(o,1),r.length||n.pause())},M.getValue=p,M.path=function(t,n){var r=P.str(t)?e(t)[0]:t,i=n||100;return function(e){return{el:r,property:e,totalLength:b(r)*(i/100)}}},M.setDashoffset=function(e){var t=b(e);return e.setAttribute("stroke-dasharray",t),t},M.bezier=I,M.easings=j,M.timeline=function(e){var t=M(e);return t.pause(),t.duration=0,t.add=function(n){return t.children.forEach((function(e){e.began=!0,e.completed=!0})),r(n).forEach((function(n){var r=c(n,a(D,e||{}));r.targets=r.targets||e.targets,n=t.duration;var i=r.offset;r.autoplay=!1,r.direction=t.direction,r.offset=P.und(i)?n:m(i,n),t.began=!0,t.completed=!0,t.seek(r.offset),(r=M(r)).began=!0,r.completed=!0,r.duration>n&&(t.duration=r.duration),t.children.push(r)})),t.seek(0),t.reset(),t.autoplay&&t.restart(),t},t},M.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},M},void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}).call(t,n(25))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(4),o=n.n(i),a={install:function(e,t){t||(t={});var n=new r.a(t);e.component("toasted",o.a),e.toasted=e.prototype.$toasted=n}};"undefined"!=typeof window&&window.Vue&&(window.Toasted=a),t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t,n){return setTimeout((function(){n.cached_options.position&&n.cached_options.position.includes("bottom")?r.a.animateOutBottom(e,(function(){n.remove(e)})):r.a.animateOut(e,(function(){n.remove(e)}))}),t),!0},a=function(e,t){var n=!1;return{el:e,text:function(t){return function(e,t){("object"===("undefined"==typeof HTMLElement?"undefined":i(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":i(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)?e.appendChild(t):e.innerHTML=t}(e,t),this},goAway:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:800;return n=!0,o(e,r,t)},remove:function(){t.remove(e)},disposed:function(){return n}}}},function(e,t,n){"use strict";var r=n(12),i=n.n(r),o=n(1),a=n(7),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=n(2);String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}});var l={},u=null,d=function(e){return e.className=e.className||null,e.onComplete=e.onComplete||null,e.position=e.position||"top-right",e.duration=e.duration||null,e.keepOnHover=e.keepOnHover||!1,e.theme=e.theme||"toasted-primary",e.type=e.type||"default",e.containerClass=e.containerClass||null,e.fullWidth=e.fullWidth||!1,e.icon=e.icon||null,e.action=e.action||null,e.fitToScreen=e.fitToScreen||null,e.closeOnSwipe=void 0===e.closeOnSwipe||e.closeOnSwipe,e.iconPack=e.iconPack||"material",e.className&&"string"==typeof e.className&&(e.className=e.className.split(" ")),e.className||(e.className=[]),e.theme&&e.className.push(e.theme.trim()),e.type&&e.className.push(e.type),e.containerClass&&"string"==typeof e.containerClass&&(e.containerClass=e.containerClass.split(" ")),e.containerClass||(e.containerClass=[]),e.position&&e.containerClass.push(e.position.trim()),e.fullWidth&&e.containerClass.push("full-width"),e.fitToScreen&&e.containerClass.push("fit-to-screen"),l=e,e},f=function(e,t){var r=document.createElement("div");if(r.classList.add("toasted"),r.hash=c.generate(),t.className&&t.className.forEach((function(e){r.classList.add(e)})),("object"===("undefined"==typeof HTMLElement?"undefined":s(HTMLElement))?e instanceof HTMLElement:e&&"object"===(void 0===e?"undefined":s(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)?r.appendChild(e):r.innerHTML=e,h(t,r),t.closeOnSwipe){var l=new i.a(r,{prevent_default:!1});l.on("pan",(function(e){var t=e.deltaX;r.classList.contains("panning")||r.classList.add("panning");var n=1-Math.abs(t/80);n<0&&(n=0),o.a.animatePanning(r,t,n)})),l.on("panend",(function(e){var n=e.deltaX;Math.abs(n)>80?o.a.animatePanEnd(r,(function(){"function"==typeof t.onComplete&&t.onComplete(),r.parentNode&&u.remove(r)})):(r.classList.remove("panning"),o.a.animateReset(r))}))}if(Array.isArray(t.action))t.action.forEach((function(e){var t=m(e,n.i(a.a)(r,u));t&&r.appendChild(t)}));else if("object"===s(t.action)){var d=m(t.action,n.i(a.a)(r,u));d&&r.appendChild(d)}return r},h=function(e,t){if(e.icon){var n=document.createElement("i");switch(n.setAttribute("aria-hidden","true"),e.iconPack){case"fontawesome":n.classList.add("fa");var r=e.icon.name?e.icon.name:e.icon;r.includes("fa-")?n.classList.add(r.trim()):n.classList.add("fa-"+r.trim());break;case"mdi":n.classList.add("mdi");var i=e.icon.name?e.icon.name:e.icon;i.includes("mdi-")?n.classList.add(i.trim()):n.classList.add("mdi-"+i.trim());break;case"custom-class":var o=e.icon.name?e.icon.name:e.icon;"string"==typeof o?o.split(" ").forEach((function(e){n.classList.add(e)})):Array.isArray(o)&&o.forEach((function(e){n.classList.add(e.trim())}));break;case"callback":var a=e.icon&&e.icon instanceof Function?e.icon:null;a&&(n=a(n));break;default:n.classList.add("material-icons"),n.textContent=e.icon.name?e.icon.name:e.icon}e.icon.after&&n.classList.add("after"),p(e,n,t)}},p=function(e,t,n){e.icon&&(e.icon.after&&e.icon.name?n.appendChild(t):(e.icon.name,n.insertBefore(t,n.firstChild)))},m=function(e,t){if(!e)return null;var n=document.createElement("a");if(n.classList.add("action"),n.classList.add("ripple"),e.text&&(n.text=e.text),e.href&&(n.href=e.href),e.target&&(n.target=e.target),e.icon){n.classList.add("icon");var r=document.createElement("i");switch(l.iconPack){case"fontawesome":r.classList.add("fa"),e.icon.includes("fa-")?r.classList.add(e.icon.trim()):r.classList.add("fa-"+e.icon.trim());break;case"mdi":r.classList.add("mdi"),e.icon.includes("mdi-")?r.classList.add(e.icon.trim()):r.classList.add("mdi-"+e.icon.trim());break;case"custom-class":"string"==typeof e.icon?e.icon.split(" ").forEach((function(e){n.classList.add(e)})):Array.isArray(e.icon)&&e.icon.forEach((function(e){n.classList.add(e.trim())}));break;default:r.classList.add("material-icons"),r.textContent=e.icon}n.appendChild(r)}return e.class&&("string"==typeof e.class?e.class.split(" ").forEach((function(e){n.classList.add(e)})):Array.isArray(e.class)&&e.class.forEach((function(e){n.classList.add(e.trim())}))),e.push&&n.addEventListener("click",(function(n){n.preventDefault(),l.router?(l.router.push(e.push),e.push.dontClose||t.goAway(0)):console.warn("[vue-toasted] : Vue Router instance is not attached. please check the docs")})),e.onClick&&"function"==typeof e.onClick&&n.addEventListener("click",(function(n){e.onClick&&(n.preventDefault(),e.onClick(n,t))})),n};t.a=function(e,t,r){u=e,r=d(r);var i=u.container;r.containerClass.unshift("toasted-container"),i.className!==r.containerClass.join(" ")&&(i.className="",r.containerClass.forEach((function(e){i.classList.add(e)})));var s=f(t,r);t&&i.appendChild(s),s.style.opacity=0,o.a.animateIn(s);var c=r.duration,l=void 0;if(null!==c){var h=function(){return setInterval((function(){null===s.parentNode&&window.clearInterval(l),s.classList.contains("panning")||(c-=20),c<=0&&(o.a.animateOut(s,(function(){"function"==typeof r.onComplete&&r.onComplete(),s.parentNode&&u.remove(s)})),window.clearInterval(l))}),20)};l=h(),r.keepOnHover&&(s.addEventListener("mouseover",(function(){window.clearInterval(l)})),s.addEventListener("mouseout",(function(){l=h()})))}return n.i(a.a)(s,u)}},function(e,t,n){(e.exports=n(10)()).push([e.i,".toasted{padding:0 20px}.toasted.rounded{border-radius:24px}.toasted .primary,.toasted.toasted-primary{border-radius:2px;min-height:38px;line-height:1.1em;background-color:#353535;padding:6px 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted .primary.success,.toasted.toasted-primary.success{background:#4caf50}.toasted .primary.error,.toasted.toasted-primary.error{background:#f44336}.toasted .primary.info,.toasted.toasted-primary.info{background:#3f51b5}.toasted .primary .action,.toasted.toasted-primary .action{color:#a1c2fa}.toasted.bubble{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#ff7043;padding:0 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted.bubble.success{background:#4caf50}.toasted.bubble.error{background:#f44336}.toasted.bubble.info{background:#3f51b5}.toasted.bubble .action{color:#8e2b0c}.toasted.outline{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#fff;border:1px solid #676767;padding:0 20px;font-size:15px;color:#676767;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);font-weight:700}.toasted.outline.success{color:#4caf50;border-color:#4caf50}.toasted.outline.error{color:#f44336;border-color:#f44336}.toasted.outline.info{color:#3f51b5;border-color:#3f51b5}.toasted.outline .action{color:#607d8b}.toasted-container{position:fixed;z-index:10000}.toasted-container,.toasted-container.full-width{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.toasted-container.full-width{max-width:86%;width:100%}.toasted-container.full-width.fit-to-screen{min-width:100%}.toasted-container.full-width.fit-to-screen .toasted:first-child{margin-top:0}.toasted-container.full-width.fit-to-screen.top-right{top:0;right:0}.toasted-container.full-width.fit-to-screen.top-left{top:0;left:0}.toasted-container.full-width.fit-to-screen.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.full-width.fit-to-screen.bottom-right{right:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-left{left:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.top-right{top:10%;right:7%}.toasted-container.top-left{top:10%;left:7%}.toasted-container.top-center{top:10%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.toasted-container.bottom-right{right:5%;bottom:7%}.toasted-container.bottom-left{left:5%;bottom:7%}.toasted-container.bottom-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:7%}.toasted-container.bottom-left .toasted,.toasted-container.top-left .toasted{float:left}.toasted-container.bottom-right .toasted,.toasted-container.top-right .toasted{float:right}.toasted-container .toasted{top:35px;width:auto;clear:both;margin-top:10px;position:relative;max-width:100%;height:auto;word-break:normal;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;box-sizing:inherit}.toasted-container .toasted .fa,.toasted-container .toasted .fab,.toasted-container .toasted .far,.toasted-container .toasted .fas,.toasted-container .toasted .material-icons,.toasted-container .toasted .mdi{margin-right:.5rem;margin-left:-.4rem}.toasted-container .toasted .fa.after,.toasted-container .toasted .fab.after,.toasted-container .toasted .far.after,.toasted-container .toasted .fas.after,.toasted-container .toasted .material-icons.after,.toasted-container .toasted .mdi.after{margin-left:.5rem;margin-right:-.4rem}.toasted-container .toasted .action{text-decoration:none;font-size:.8rem;padding:8px;margin:5px -7px 5px 7px;border-radius:3px;text-transform:uppercase;letter-spacing:.03em;font-weight:600;cursor:pointer}.toasted-container .toasted .action.icon{padding:4px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.toasted-container .toasted .action.icon .fa,.toasted-container .toasted .action.icon .material-icons,.toasted-container .toasted .action.icon .mdi{margin-right:0;margin-left:4px}.toasted-container .toasted .action.icon:hover{text-decoration:none}.toasted-container .toasted .action:hover{text-decoration:underline}@media only screen and (max-width:600px){.toasted-container{min-width:100%}.toasted-container .toasted:first-child{margin-top:0}.toasted-container.top-right{top:0;right:0}.toasted-container.top-left{top:0;left:0}.toasted-container.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-right{right:0;bottom:0}.toasted-container.bottom-left{left:0;bottom:0}.toasted-container.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-center,.toasted-container.top-center{-ms-flex-align:stretch!important;align-items:stretch!important}.toasted-container.bottom-left .toasted,.toasted-container.bottom-right .toasted,.toasted-container.top-left .toasted,.toasted-container.top-right .toasted{float:none}.toasted-container .toasted{border-radius:0}}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var c=o[a],l=Object.getOwnPropertyDescriptor(i,c);void 0!==l&&l.enumerable&&(n[c]=i[c])}}return n}e.exports={assign:r,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:r})}}},function(e,t,n){var r;!function(i,o,a,s){"use strict";function c(e,t,n){return setTimeout(h(e,n),t)}function l(e,t,n){return!!Array.isArray(e)&&(u(e,n[t],n),!0)}function u(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function d(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}function f(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&ae(r,n)}function h(e,t){return function(){return e.apply(t,arguments)}}function p(e,t){return typeof e==le?e.apply(t&&t[0]||s,t):e}function m(e,t){return e===s?t:e}function v(e,t,n){u(k(t),(function(t){e.addEventListener(t,n,!1)}))}function g(e,t,n){u(k(t),(function(t){e.removeEventListener(t,n,!1)}))}function b(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function y(e,t){return e.indexOf(t)>-1}function k(e){return e.trim().split(/\s+/g)}function w(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function _(e){return Array.prototype.slice.call(e,0)}function C(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];w(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function A(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o<se.length;){if((r=(n=se[o])?n+i:t)in e)return r;o++}return s}function x(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}function S(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){p(e.options.enable,[e])&&n.handler(t)},this.init()}function M(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=t&ke&&r-i==0,a=t&(_e|Ce)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=T(t)),i>1&&!n.firstMultiple?n.firstMultiple=T(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,c=t.center=D(r);t.timeStamp=fe(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=j(s,c),t.distance=I(s,c),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==ke&&o.eventType!==_e||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=P(t.deltaX,t.deltaY);var l=O(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=l.x,t.overallVelocityY=l.y,t.overallVelocity=de(l.x)>de(l.y)?l.x:l.y,t.scale=a?function(e,t){return I(t[0],t[1],Ie)/I(e[0],e[1],Ie)}(a.pointers,r):1,t.rotation=a?function(e,t){return j(t[1],t[0],Ie)+j(e[1],e[0],Ie)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,E(n,t);var u=e.element;b(t.srcEvent.target,u)&&(u=t.srcEvent.target),t.target=u}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function E(e,t){var n,r,i,o,a=e.lastInterval||t,c=t.timeStamp-a.timeStamp;if(t.eventType!=Ce&&(c>ye||a.velocity===s)){var l=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,d=O(c,l,u);r=d.x,i=d.y,n=de(d.x)>de(d.y)?d.x:d.y,o=P(l,u),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}function T(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:ue(e.pointers[n].clientX),clientY:ue(e.pointers[n].clientY)},n++;return{timeStamp:fe(),pointers:t,center:D(t),deltaX:e.deltaX,deltaY:e.deltaY}}function D(e){var t=e.length;if(1===t)return{x:ue(e[0].clientX),y:ue(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:ue(n/t),y:ue(r/t)}}function O(e,t,n){return{x:t/e||0,y:n/e||0}}function P(e,t){return e===t?Ae:de(e)>=de(t)?e<0?xe:Se:t<0?Me:Ee}function I(e,t,n){n||(n=Pe);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function j(e,t,n){n||(n=Pe);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}function N(){this.evEl=Ne,this.evWin=Re,this.pressed=!1,S.apply(this,arguments)}function R(){this.evEl=Fe,this.evWin=ze,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function L(){this.evTarget=$e,this.evWin=He,this.started=!1,S.apply(this,arguments)}function B(e,t){var n=_(e.touches),r=_(e.changedTouches);return t&(_e|Ce)&&(n=C(n.concat(r),"identifier",!0)),[n,r]}function F(){this.evTarget=qe,this.targetIds={},S.apply(this,arguments)}function z(e,t){var n=_(e.touches),r=this.targetIds;if(t&(ke|we)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=_(e.changedTouches),s=[],c=this.target;if(o=n.filter((function(e){return b(e.target,c)})),t===ke)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),t&(_e|Ce)&&delete r[a[i].identifier],i++;return s.length?[C(o.concat(s),"identifier",!0),s]:void 0}function V(){S.apply(this,arguments);var e=h(this.handler,this);this.touch=new F(this.manager,e),this.mouse=new N(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function $(e,t){e&ke?(this.primaryTouch=t.changedPointers[0].identifier,H.call(this,t)):e&(_e|Ce)&&H.call(this,t)}function H(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),We)}}function U(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=Ye&&a<=Ye)return!0}return!1}function q(e,t){this.manager=e,this.set(t)}function W(e){this.options=ae({},this.defaults,e||{}),this.id=me++,this.manager=null,this.options.enable=m(this.options.enable,!0),this.state=nt,this.simultaneous={},this.requireFail=[]}function Y(e){return e&st?"cancel":e&ot?"end":e&it?"move":e&rt?"start":""}function K(e){return e==Ee?"down":e==Me?"up":e==xe?"left":e==Se?"right":""}function G(e,t){var n=t.manager;return n?n.get(e):e}function Q(){W.apply(this,arguments)}function X(){Q.apply(this,arguments),this.pX=null,this.pY=null}function J(){Q.apply(this,arguments)}function Z(){W.apply(this,arguments),this._timer=null,this._input=null}function ee(){Q.apply(this,arguments)}function te(){Q.apply(this,arguments)}function ne(){W.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function re(e,t){return(t=t||{}).recognizers=m(t.recognizers,re.defaults.preset),new ie(e,t)}function ie(e,t){this.options=ae({},re.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=function(e){return new(e.options.inputClass||(ge?R:be?F:ve?V:N))(e,M)}(this),this.touchAction=new q(this,this.options.touchAction),oe(this,!0),u(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function oe(e,t){var n,r=e.element;r.style&&(u(e.options.cssProps,(function(i,o){n=A(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}var ae,se=["","webkit","Moz","MS","ms","o"],ce=o.createElement("div"),le="function",ue=Math.round,de=Math.abs,fe=Date.now;ae="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var he=d((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&e[r[i]]===s)&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),pe=d((function(e,t){return he(e,t,!0)}),"merge","Use `assign`."),me=1,ve="ontouchstart"in i,ge=A(i,"PointerEvent")!==s,be=ve&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ye=25,ke=1,we=2,_e=4,Ce=8,Ae=1,xe=2,Se=4,Me=8,Ee=16,Te=xe|Se,De=Me|Ee,Oe=Te|De,Pe=["x","y"],Ie=["clientX","clientY"];S.prototype={handler:function(){},init:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(x(this.element),this.evWin,this.domHandler)}};var je={mousedown:ke,mousemove:we,mouseup:_e},Ne="mousedown",Re="mousemove mouseup";f(N,S,{handler:function(e){var t=je[e.type];t&ke&&0===e.button&&(this.pressed=!0),t&we&&1!==e.which&&(t=_e),this.pressed&&(t&_e&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var Le={pointerdown:ke,pointermove:we,pointerup:_e,pointercancel:Ce,pointerout:Ce},Be={2:"touch",3:"pen",4:"mouse",5:"kinect"},Fe="pointerdown",ze="pointermove pointerup pointercancel";i.MSPointerEvent&&!i.PointerEvent&&(Fe="MSPointerDown",ze="MSPointerMove MSPointerUp MSPointerCancel"),f(R,S,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=Le[r],o=Be[e.pointerType]||e.pointerType,a="touch"==o,s=w(t,e.pointerId,"pointerId");i&ke&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):i&(_e|Ce)&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var Ve={touchstart:ke,touchmove:we,touchend:_e,touchcancel:Ce},$e="touchstart",He="touchstart touchmove touchend touchcancel";f(L,S,{handler:function(e){var t=Ve[e.type];if(t===ke&&(this.started=!0),this.started){var n=B.call(this,e,t);t&(_e|Ce)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var Ue={touchstart:ke,touchmove:we,touchend:_e,touchcancel:Ce},qe="touchstart touchmove touchend touchcancel";f(F,S,{handler:function(e){var t=Ue[e.type],n=z.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});var We=2500,Ye=25;f(V,S,{handler:function(e,t,n){var r="touch"==n.pointerType,i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)$.call(this,t,n);else if(i&&U.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ke=A(ce.style,"touchAction"),Ge=Ke!==s,Qe="auto",Xe="manipulation",Je="none",Ze="pan-x",et="pan-y",tt=function(){if(!Ge)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||i.CSS.supports("touch-action",n)})),e}();q.prototype={set:function(e){"compute"==e&&(e=this.compute()),Ge&&this.manager.element.style&&tt[e]&&(this.manager.element.style[Ke]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return u(this.manager.recognizers,(function(t){p(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(y(e,Je))return Je;var t=y(e,Ze),n=y(e,et);return t&&n?Je:t||n?t?Ze:et:y(e,Xe)?Xe:Qe}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(!this.manager.session.prevented){var r=this.actions,i=y(r,Je)&&!tt[Je],o=y(r,et)&&!tt[et],a=y(r,Ze)&&!tt[Ze];if(i){var s=1===e.pointers.length,c=e.distance<2,l=e.deltaTime<250;if(s&&c&&l)return}return a&&o?void 0:i||o&&n&Te||a&&n&De?this.preventSrc(t):void 0}t.preventDefault()},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var nt=1,rt=2,it=4,ot=8,at=ot,st=16;W.prototype={defaults:{},set:function(e){return ae(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(l(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=G(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return l(e,"dropRecognizeWith",this)||(e=G(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(l(e,"requireFailure",this))return this;var t=this.requireFail;return-1===w(t,e=G(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(l(e,"dropRequireFailure",this))return this;e=G(e,this);var t=w(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,r=this.state;r<ot&&t(n.options.event+Y(r)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),r>=ot&&t(n.options.event+Y(r))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|nt)))return!1;e++}return!0},recognize:function(e){var t=ae({},e);if(!p(this.options.enable,[this,t]))return this.reset(),void(this.state=32);this.state&(at|st|32)&&(this.state=nt),this.state=this.process(t),this.state&(rt|it|ot|st)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},f(Q,W,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=t&(rt|it),i=this.attrTest(e);return r&&(n&Ce||!i)?t|st:r||i?n&_e?t|ot:t&rt?t|it:rt:32}}),f(X,Q,{defaults:{event:"pan",threshold:10,pointers:1,direction:Oe},getTouchAction:function(){var e=this.options.direction,t=[];return e&Te&&t.push(et),e&De&&t.push(Ze),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(t.direction&Te?(i=0===o?Ae:o<0?xe:Se,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?Ae:a<0?Me:Ee,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Q.prototype.attrTest.call(this,e)&&(this.state&rt||!(this.state&rt)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=K(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),f(J,Q,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Je]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&rt)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),f(Z,W,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Qe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||e.eventType&(_e|Ce)&&!i)this.reset();else if(e.eventType&ke)this.reset(),this._timer=c((function(){this.state=at,this.tryEmit()}),t.time,this);else if(e.eventType&_e)return at;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===at&&(e&&e.eventType&_e?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=fe(),this.manager.emit(this.options.event,this._input)))}}),f(ee,Q,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Je]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&rt)}}),f(te,Q,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Te|De,pointers:1},getTouchAction:function(){return X.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Te|De)?t=e.overallVelocity:n&Te?t=e.overallVelocityX:n&De&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&de(t)>this.options.velocity&&e.eventType&_e},emit:function(e){var t=K(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),f(ne,W,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Xe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),e.eventType&ke&&0===this.count)return this.failTimeout();if(r&&i&&n){if(e.eventType!=_e)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||I(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=c((function(){this.state=at,this.tryEmit()}),t.interval,this),rt):at}return 32},failTimeout:function(){return this._timer=c((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==at&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),re.VERSION="2.0.7",re.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[ee,{enable:!1}],[J,{enable:!1},["rotate"]],[te,{direction:Te}],[X,{direction:Te},["swipe"]],[ne],[ne,{event:"doubletap",taps:2},["tap"]],[Z]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ie.prototype={set:function(e){return ae(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,r=this.recognizers,i=t.curRecognizer;(!i||i&&i.state&at)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&n.state&(rt|it|ot)&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof W)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(l(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(l(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=w(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return u(k(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return u(k(e),(function(e){t?n[e]&&n[e].splice(w(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&oe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},ae(re,{INPUT_START:ke,INPUT_MOVE:we,INPUT_END:_e,INPUT_CANCEL:Ce,STATE_POSSIBLE:nt,STATE_BEGAN:rt,STATE_CHANGED:it,STATE_ENDED:ot,STATE_RECOGNIZED:at,STATE_CANCELLED:st,STATE_FAILED:32,DIRECTION_NONE:Ae,DIRECTION_LEFT:xe,DIRECTION_RIGHT:Se,DIRECTION_UP:Me,DIRECTION_DOWN:Ee,DIRECTION_HORIZONTAL:Te,DIRECTION_VERTICAL:De,DIRECTION_ALL:Oe,Manager:ie,Input:S,TouchAction:q,TouchInput:F,MouseInput:N,PointerEventInput:R,TouchMouseInput:V,SingleTouchInput:L,Recognizer:W,AttrRecognizer:Q,Tap:ne,Pan:X,Swipe:te,Pinch:J,Rotate:ee,Press:Z,on:v,off:g,each:u,merge:pe,extend:he,assign:ae,inherit:f,bindFn:h,prefixed:A}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=re,(r=function(){return re}.call(t,n,t,e))!==s&&(e.exports=r)}(window,document)},function(e,t){e.exports=function(e,t,n){for(var r=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*r*n/t.length),o="";;)for(var a=e(i),s=i;s--;)if((o+=t[a[s]&r]||"").length===+n)return o}},function(e,t,n){"use strict";var r,i,o=n(15),a=(n(0),1567752802062),s=7;e.exports=function(e){var t="",n=Math.floor(.001*(Date.now()-a));return n===i?r++:(r=0,i=n),t+=o(s),t+=o(e),r>0&&(t+=o(r)),t+o(n)}},function(e,t,n){"use strict";var r=n(0),i=n(18),o=n(13);e.exports=function(e){for(var t,n=0,a="";!t;)a+=o(i,r.get(),1),t=e<Math.pow(16,n+1),n++;return a}},function(e,t,n){"use strict";function r(){return o(s)}var i=n(0),o=n(14),a=n(17),s=n(20)||0;e.exports=r,e.exports.generate=r,e.exports.seed=function(t){return i.seed(t),e.exports},e.exports.worker=function(t){return s=t,e.exports},e.exports.characters=function(e){return void 0!==e&&i.characters(e),i.shuffled()},e.exports.isValid=a},function(e,t,n){"use strict";var r=n(0);e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6||new RegExp("[^"+r.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e))}},function(e,t,n){"use strict";var r,i="object"==typeof window&&(window.crypto||window.msCrypto);r=i&&i.getRandomValues?function(e){return i.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t},e.exports=r},function(e,t,n){"use strict";var r=1;e.exports={nextValue:function(){return(r=(9301*r+49297)%233280)/233280},seed:function(e){r=e}}},function(e,t,n){"use strict";e.exports=0},function(e,t){e.exports=function(e,t,n,r){var i,o=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(i=e,o=e.default);var s="function"==typeof o?o.options:o;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var c=Object.create(s.computed||null);Object.keys(r).forEach((function(e){var t=r[e];c[e]=function(){return t}})),s.computed=c}return{esModule:i,exports:o,options:s}}},function(e,t,n){var r=n(9);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(23)("df0682cc",r,!0,{})},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=u[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));u[n.id]={id:n.id,refs:1,parts:a}}}}function i(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function o(e){var t,n,r=document.querySelector("style["+g+'~="'+e.id+'"]');if(r){if(p)return m;r.parentNode.removeChild(r)}if(b){var o=h++;r=f||(f=i()),t=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),t=s.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function a(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function s(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),v.ssrId&&e.setAttribute(g,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(24),u={},d=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,h=0,p=!1,m=function(){},v=null,g="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,i){p=n,v=i||{};var o=l(e,t);return r(o),function(t){for(var n=[],i=0;i<o.length;i++){var a=o[i];(s=u[a.id]).refs--,n.push(s)}for(t?r(o=l(e,t)):o=[],i=0;i<n.length;i++){var s;if(0===(s=n[i]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete u[s.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n}])},,,,function(e,t,n){n(443),n(465),e.exports=n(515)},function(e,t,n){var r=n(2),i=n(284);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(3)(!1)).push([e.i,".ais-Breadcrumb-list,.ais-CurrentRefinements-list,.ais-HierarchicalMenu-list,.ais-Hits-list,.ais-InfiniteHits-list,.ais-InfiniteResults-list,.ais-Menu-list,.ais-NumericMenu-list,.ais-Pagination-list,.ais-RatingMenu-list,.ais-RefinementList-list,.ais-Results-list,.ais-ToggleRefinement-list{margin:0;padding:0;list-style:none}.ais-ClearRefinements-button,.ais-CurrentRefinements-delete,.ais-CurrentRefinements-reset,.ais-GeoSearch-redo,.ais-GeoSearch-reset,.ais-HierarchicalMenu-showMore,.ais-InfiniteHits-loadMore,.ais-InfiniteHits-loadPrevious,.ais-InfiniteResults-loadMore,.ais-Menu-showMore,.ais-RangeInput-submit,.ais-RefinementList-showMore,.ais-SearchBox-reset,.ais-SearchBox-submit,.ais-VoiceSearch-button{padding:0;overflow:visible;font:inherit;line-height:normal;color:inherit;background:none;border:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ais-ClearRefinements-button::-moz-focus-inner,.ais-CurrentRefinements-delete::-moz-focus-inner,.ais-CurrentRefinements-reset::-moz-focus-inner,.ais-GeoSearch-redo::-moz-focus-inner,.ais-GeoSearch-reset::-moz-focus-inner,.ais-HierarchicalMenu-showMore::-moz-focus-inner,.ais-InfiniteHits-loadMore::-moz-focus-inner,.ais-InfiniteHits-loadPrevious::-moz-focus-inner,.ais-InfiniteResults-loadMore::-moz-focus-inner,.ais-Menu-showMore::-moz-focus-inner,.ais-RangeInput-submit::-moz-focus-inner,.ais-RefinementList-showMore::-moz-focus-inner,.ais-SearchBox-reset::-moz-focus-inner,.ais-SearchBox-submit::-moz-focus-inner,.ais-VoiceSearch-button::-moz-focus-inner{padding:0;border:0}.ais-ClearRefinements-button[disabled],.ais-CurrentRefinements-delete[disabled],.ais-CurrentRefinements-reset[disabled],.ais-GeoSearch-redo[disabled],.ais-GeoSearch-reset[disabled],.ais-HierarchicalMenu-showMore[disabled],.ais-InfiniteHits-loadMore[disabled],.ais-InfiniteHits-loadPrevious[disabled],.ais-InfiniteResults-loadMore[disabled],.ais-Menu-showMore[disabled],.ais-RangeInput-submit[disabled],.ais-RefinementList-showMore[disabled],.ais-SearchBox-reset[disabled],.ais-SearchBox-submit[disabled],.ais-VoiceSearch-button[disabled]{cursor:default}.ais-Breadcrumb-item,.ais-Breadcrumb-list,.ais-Pagination-list,.ais-PoweredBy,.ais-RangeInput-form,.ais-RatingMenu-link{display:flex;align-items:center}.ais-GeoSearch,.ais-GeoSearch-map{height:100%}.ais-HierarchicalMenu-list .ais-HierarchicalMenu-list{margin-left:1em}.ais-PoweredBy-logo{display:block;height:1.2em;width:auto}.ais-RatingMenu-starIcon{display:block;width:20px;height:20px}.ais-SearchBox-input::-ms-clear,.ais-SearchBox-input::-ms-reveal{display:none;width:0;height:0}.ais-SearchBox-input::-webkit-search-cancel-button,.ais-SearchBox-input::-webkit-search-decoration,.ais-SearchBox-input::-webkit-search-results-button,.ais-SearchBox-input::-webkit-search-results-decoration{display:none}.ais-RangeSlider .rheostat{overflow:visible;margin-top:40px;margin-bottom:40px}.ais-RangeSlider .rheostat-background{height:6px;top:0;width:100%}.ais-RangeSlider .rheostat-handle{margin-left:-12px;top:-7px}.ais-RangeSlider .rheostat-background{position:relative;background-color:#fff;border:1px solid #aaa}.ais-RangeSlider .rheostat-progress{position:absolute;top:1px;height:4px;background-color:#333}.rheostat-handle{position:relative;z-index:1;width:20px;height:20px;background-color:#fff;border:1px solid #333;border-radius:50%;cursor:-webkit-grab;cursor:grab}.rheostat-marker{margin-left:-1px;position:absolute;width:1px;height:5px;background-color:#aaa}.rheostat-marker--large{height:9px}.rheostat-value{padding-top:15px}.rheostat-tooltip,.rheostat-value{margin-left:50%;position:absolute;text-align:center;transform:translateX(-50%)}.rheostat-tooltip{top:-22px}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(145),i=n(259),o=n(427),a=n(428),s=n(94),c=n(273),l=n(251),u=n(47),d=n(75),f=n(33),h=n(274),p=n(277);function m(e,t,n){e.addAlgoliaAgent&&!b(e)&&e.addAlgoliaAgent("JS Helper ("+p+")"),this.setClient(e);var i=n||{};i.index=t,this.state=r.make(i),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function v(e){if(e<0)throw new Error("Page requested below 0.");return this._change(this.state.setPage(e)),this}function g(){return this.state.page}function b(e){var t=e._ua;return!!t&&-1!==t.indexOf("JS Helper")}c(m,s.EventEmitter),m.prototype.search=function(){return this._search(),this},m.prototype.getQuery=function(){var e=this.state;return a._getHitsSearchParams(e)},m.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=a._getQueries(n.index,n),o=this;if(this._currentNbQueries++,this.emit("searchOnce",n),!t)return this.client.search(r).then((function(e){return o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),{content:new i(n,e.results),state:n,_originalResponse:e}}),(function(e){throw o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),e}));this.client.search(r).then((function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(null,new i(n,e.results),n)})).catch((function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(e,null,n)}))},m.prototype.searchForFacetValues=function(e,t,n,r){var i="function"==typeof this.client.searchForFacetValues;if(!i&&"function"!=typeof this.client.initIndex)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var o=this.state.setQueryParameters(r||{}),s=o.isDisjunctiveFacet(e),c=a.getSearchForFacetQuery(e,t,n,o);this._currentNbQueries++;var l=this;return this.emit("searchForFacetValues",o,e,t),(i?this.client.searchForFacetValues([{indexName:o.index,params:c}]):this.client.initIndex(o.index).searchForFacetValues(c)).then((function(t){return l._currentNbQueries--,0===l._currentNbQueries&&l.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits=u(t.facetHits,(function(t){t.isRefined=s?o.isDisjunctiveFacetRefined(e,t.value):o.isFacetRefined(e,t.value)})),t}),(function(e){throw l._currentNbQueries--,0===l._currentNbQueries&&l.emit("searchQueueEmpty"),e}))},m.prototype.setQuery=function(e){return this._change(this.state.setPage(0).setQuery(e)),this},m.prototype.clearRefinements=function(e){return this._change(this.state.setPage(0).clearRefinements(e)),this},m.prototype.clearTags=function(){return this._change(this.state.setPage(0).clearTags()),this},m.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change(this.state.setPage(0).addDisjunctiveFacetRefinement(e,t)),this},m.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},m.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change(this.state.setPage(0).addHierarchicalFacetRefinement(e,t)),this},m.prototype.addNumericRefinement=function(e,t,n){return this._change(this.state.setPage(0).addNumericRefinement(e,t,n)),this},m.prototype.addFacetRefinement=function(e,t){return this._change(this.state.setPage(0).addFacetRefinement(e,t)),this},m.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},m.prototype.addFacetExclusion=function(e,t){return this._change(this.state.setPage(0).addExcludeRefinement(e,t)),this},m.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},m.prototype.addTag=function(e){return this._change(this.state.setPage(0).addTagRefinement(e)),this},m.prototype.removeNumericRefinement=function(e,t,n){return this._change(this.state.setPage(0).removeNumericRefinement(e,t,n)),this},m.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change(this.state.setPage(0).removeDisjunctiveFacetRefinement(e,t)),this},m.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},m.prototype.removeHierarchicalFacetRefinement=function(e){return this._change(this.state.setPage(0).removeHierarchicalFacetRefinement(e)),this},m.prototype.removeFacetRefinement=function(e,t){return this._change(this.state.setPage(0).removeFacetRefinement(e,t)),this},m.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},m.prototype.removeFacetExclusion=function(e,t){return this._change(this.state.setPage(0).removeExcludeRefinement(e,t)),this},m.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},m.prototype.removeTag=function(e){return this._change(this.state.setPage(0).removeTagRefinement(e)),this},m.prototype.toggleFacetExclusion=function(e,t){return this._change(this.state.setPage(0).toggleExcludeFacetRefinement(e,t)),this},m.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},m.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},m.prototype.toggleFacetRefinement=function(e,t){return this._change(this.state.setPage(0).toggleFacetRefinement(e,t)),this},m.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},m.prototype.toggleTag=function(e){return this._change(this.state.setPage(0).toggleTagRefinement(e)),this},m.prototype.nextPage=function(){return this.setPage(this.state.page+1)},m.prototype.previousPage=function(){return this.setPage(this.state.page-1)},m.prototype.setCurrentPage=v,m.prototype.setPage=v,m.prototype.setIndex=function(e){return this._change(this.state.setPage(0).setIndex(e)),this},m.prototype.setQueryParameter=function(e,t){return this._change(this.state.setPage(0).setQueryParameter(e,t)),this},m.prototype.setState=function(e){return this._change(r.make(e)),this},m.prototype.getState=function(e){return void 0===e?this.state:this.state.filter(e)},m.prototype.getStateAsQueryString=function(e){var t=e&&e.filters||["query","attribute:*"],n=this.getState(t);return h.getQueryStringFromState(n,e)},m.getConfigurationFromQueryString=h.getStateFromQueryString,m.getForeignConfigurationInQueryString=h.getUnrecognizedParametersInQueryString,m.prototype.setStateFromQueryString=function(e,t){var n=t&&t.triggerChange||!1,r=h.getStateFromQueryString(e,t),i=this.state.setQueryParameters(r);n?this.setState(i):this.overrideStateWithoutTriggeringChangeEvent(i)},m.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new r(e),this},m.prototype.isRefined=function(e,t){if(this.state.isConjunctiveFacet(e))return this.state.isFacetRefined(e,t);if(this.state.isDisjunctiveFacet(e))return this.state.isDisjunctiveFacetRefined(e,t);throw new Error(e+" is not properly defined in this helper configuration(use the facets or disjunctiveFacets keys to configure it)")},m.prototype.hasRefinements=function(e){return!d(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},m.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},m.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},m.prototype.hasTag=function(e){return this.state.isTagRefined(e)},m.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},m.prototype.getIndex=function(){return this.state.index},m.prototype.getCurrentPage=g,m.prototype.getPage=g,m.prototype.getTags=function(){return this.state.tagRefinements},m.prototype.getQueryParameter=function(e){return this.state.getQueryParameter(e)},m.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e)){var n=this.state.getConjunctiveRefinements(e);u(n,(function(e){t.push({value:e,type:"conjunctive"})}));var r=this.state.getExcludeRefinements(e);u(r,(function(e){t.push({value:e,type:"exclude"})}))}else if(this.state.isDisjunctiveFacet(e)){var i=this.state.getDisjunctiveRefinements(e);u(i,(function(e){t.push({value:e,type:"disjunctive"})}))}var o=this.state.getNumericRefinements(e);return u(o,(function(e,n){t.push({value:e,operator:n,type:"numeric"})})),t},m.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},m.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},m.prototype._search=function(){var e=this.state,t=a._getQueries(e.index,e),n=[{state:e,queriesCount:t.length,helper:this}];this.emit("search",e,this.lastResults);var r=f(this.derivedHelpers,(function(t){var r=t.getModifiedState(e),i=a._getQueries(r.index,r);return n.push({state:r,queriesCount:i.length,helper:t}),t.emit("search",r,t.lastResults),i})),i=t.concat(l(r)),o=this._queryId++;this._currentNbQueries++;try{this.client.search(i).then(this._dispatchAlgoliaResponse.bind(this,n,o)).catch(this._dispatchAlgoliaError.bind(this,o))}catch(e){this.emit("error",e)}},m.prototype._dispatchAlgoliaResponse=function(e,t,n){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var r=n.results.slice();u(e,(function(e){var t=e.state,n=e.queriesCount,o=e.helper,a=r.splice(0,n),s=o.lastResults=new i(t,a);o.emit("result",s,t)}))}},m.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",t),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},m.prototype.containsRefinement=function(e,t,n,r){return e||0!==t.length||0!==n.length||0!==r.length},m.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},m.prototype._change=function(e){e!==this.state&&(this.state=e,this.emit("change",this.state,this.lastResults))},m.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},m.prototype.setClient=function(e){return this.client===e||(e.addAlgoliaAgent&&!b(e)&&e.addAlgoliaAgent("JS Helper ("+p+")"),this.client=e),this},m.prototype.getClient=function(){return this.client},m.prototype.derive=function(e){var t=new o(this,e);return this.derivedHelpers.push(t),t},m.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},m.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=m},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(31),i=n(10);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(43),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(31),i=n(146),o=n(10),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,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(218)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(32),i=n(294),o=n(46),a=n(322),s=o((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=s},function(e,t,n){var r=n(219),i=n(221),o=n(320),a=n(32),s=n(66),c=n(223),l=Math.min;e.exports=function(e,t,n){for(var u=n?o:i,d=e[0].length,f=e.length,h=f,p=Array(f),m=1/0,v=[];h--;){var g=e[h];h&&t&&(g=a(g,s(t))),m=l(g.length,m),p[h]=!n&&(t||d>=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var b=-1,y=p[0];e:for(;++b<d&&v.length<m;){var k=g[b],w=t?t(k):k;if(k=n||0!==k?k:0,!(y?c(y,w):u(v,w,n))){for(h=f;--h;){var _=p[h];if(!(_?c(_,w):u(e[h],w,n)))continue e}y&&y.push(w),v.push(k)}}return v}},function(e,t,n){var r=n(296),i=n(84),o=n(149);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(297),i=n(302),o=n(303),a=n(304),s=n(305);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(83);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(44),i=n(299),o=n(11),a=n(220),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},function(e,t,n){var r,i=n(300),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(8)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(83),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(83),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(83);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(85),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(85);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(85);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(85);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(86);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(86);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(86);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(86);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(225),i=n(226),o=n(38),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t,n){var r=n(228);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(68),i=n(230);e.exports=function(e,t){return e&&r(e,i(t))}},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}},function(e,t,n){var r=n(16);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(e,t,n){var r=n(87);e.exports=function(e,t){var n=[];return r(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}},function(e,t,n){var r=n(328),i=n(343),o=n(239);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(88),i=n(154);e.exports=function(e,t,n,o){var a=n.length,s=a,c=!o;if(null==e)return!s;for(e=Object(e);a--;){var l=n[a];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var u=(l=n[a])[0],d=e[u],f=l[1];if(c&&l[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(o)var p=o(d,f,u,e,t,h);if(!(void 0===p?i(f,d,3,o,h):p))return!1}}return!0}},function(e,t,n){var r=n(84);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(84),i=n(149),o=n(148);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(88),i=n(232),o=n(336),a=n(339),s=n(69),c=n(6),l=n(64),u=n(81),d="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,p,m){var v=c(e),g=c(t),b=v?"[object Array]":s(e),y=g?"[object Array]":s(t),k=(b="[object Arguments]"==b?d:b)==d,w=(y="[object Arguments]"==y?d:y)==d,_=b==y;if(_&&l(e)){if(!l(t))return!1;v=!0,k=!1}if(_&&!k)return m||(m=new r),v||u(e)?i(e,t,n,h,p,m):o(e,t,b,n,h,p,m);if(!(1&n)){var C=k&&f.call(e,"__wrapped__"),A=w&&f.call(t,"__wrapped__");if(C||A){var x=C?e.value():e,S=A?t.value():t;return m||(m=new r),p(x,S,n,h,m)}}return!!_&&(m||(m=new r),a(e,t,n,h,p,m))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(43),i=n(233),o=n(45),a=n(232),s=n(337),c=n(338),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=c),e.size!=t.size&&!p)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var v=a(h(e),h(t),r,l,d,f);return f.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var c=1&n,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var f=l[d];if(!(c?f in t:i.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=c;++d<u;){var g=e[f=l[d]],b=t[f];if(o)var y=c?o(b,g,f,t,e,s):o(g,b,f,e,t,s);if(!(void 0===y?g===b||a(g,b,n,o,s):y)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var k=e.constructor,w=t.constructor;k==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t,n){var r=n(37)(n(8),"DataView");e.exports=r},function(e,t,n){var r=n(37)(n(8),"Promise");e.exports=r},function(e,t,n){var r=n(37)(n(8),"Set");e.exports=r},function(e,t,n){var r=n(238),i=n(15);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(154),i=n(240),o=n(241),a=n(157),s=n(238),c=n(239),l=n(49);e.exports=function(e,t){return a(e)&&s(t)?c(l(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},function(e,t,n){var r=n(346),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(347);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(148);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(48),i=n(63),o=n(6),a=n(65),s=n(146),c=n(49);e.exports=function(e,t,n){for(var l=-1,u=(t=r(t,e)).length,d=!1;++l<u;){var f=c(t[l]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++l!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(o(e)||i(e))}},function(e,t,n){var r=n(351),i=n(352),o=n(157),a=n(49);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(70);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},function(e,t){e.exports=function(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}},function(e,t,n){var r=n(88),i=n(152),o=n(160),a=n(356),s=n(357),c=n(244),l=n(89),u=n(360),d=n(361),f=n(234),h=n(162),p=n(69),m=n(362),v=n(363),g=n(247),b=n(6),y=n(64),k=n(367),w=n(11),_=n(369),C=n(15),A=n(51),x={};x["[object Arguments]"]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object DataView]"]=x["[object Boolean]"]=x["[object Date]"]=x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Map]"]=x["[object Number]"]=x["[object Object]"]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[object Symbol]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x["[object Error]"]=x["[object Function]"]=x["[object WeakMap]"]=!1,e.exports=function e(t,n,S,M,E,T){var D,O=1&n,P=2&n,I=4&n;if(S&&(D=E?S(t,M,E,T):S(t)),void 0!==D)return D;if(!w(t))return t;var j=b(t);if(j){if(D=m(t),!O)return l(t,D)}else{var N=p(t),R="[object Function]"==N||"[object GeneratorFunction]"==N;if(y(t))return c(t,O);if("[object Object]"==N||"[object Arguments]"==N||R&&!E){if(D=P||R?{}:g(t),!O)return P?d(t,s(D,t)):u(t,a(D,t))}else{if(!x[N])return E?t:{};D=v(t,N,O)}}T||(T=new r);var L=T.get(t);if(L)return L;T.set(t,D),_(t)?t.forEach((function(r){D.add(e(r,n,S,r,t,T))})):k(t)&&t.forEach((function(r,i){D.set(i,e(r,n,S,i,t,T))}));var B=j?void 0:(I?P?h:f:P?A:C)(t);return i(B||t,(function(r,i){B&&(r=t[i=r]),o(D,i,e(r,n,S,i,t,T))})),D}},function(e,t,n){var r=n(50),i=n(15);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(50),i=n(51);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(11),i=n(82),o=n(359),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(50),i=n(156);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(50),i=n(245);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(163),i=n(364),o=n(365),a=n(366),s=n(246);e.exports=function(e,t,n){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return o(e);case"[object Set]":return new c;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(163);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(43),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,n){var r=n(368),i=n(66),o=n(147),a=o&&o.isMap,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(69),i=n(10);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(370),i=n(66),o=n(147),a=o&&o.isSet,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(69),i=n(10);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(48),i=n(248),o=n(372),a=n(49);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},function(e,t,n){var r=n(70),i=n(249);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},function(e,t,n){var r=n(164);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){var r=n(155),i=n(375);e.exports=function e(t,n,o,a,s){var c=-1,l=t.length;for(o||(o=i),s||(s=[]);++c<l;){var u=t[c];n>0&&o(u)?n>1?e(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},function(e,t,n){var r=n(43),i=n(63),o=n(6),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(377);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(11),i=n(71),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(252);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){var r=n(154);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(13),i=n(16),o=n(15);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var c=r(n,3);t=o(t),n=function(e){return c(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[c?t[l]:l]:void 0}}},function(e,t,n){var r=n(249);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},function(e,t,n){var r=n(67);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(67);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(385),i=n(386),o=n(387);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+i+")"+"?",l="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),u="(?:"+[o+r+"?",r,a,s,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+u+l,"g");e.exports=function(e){return e.match(d)||[]}},function(e,t,n){var r=n(88),i=n(257),o=n(229),a=n(389),s=n(11),c=n(51),l=n(258);e.exports=function e(t,n,u,d,f){t!==n&&o(n,(function(o,c){if(f||(f=new r),s(o))a(t,n,c,u,e,d,f);else{var h=d?d(l(t,c),o,c+"",t,n,f):void 0;void 0===h&&(h=o),i(t,c,h)}}),c)}},function(e,t,n){var r=n(257),i=n(244),o=n(246),a=n(89),s=n(247),c=n(63),l=n(6),u=n(228),d=n(64),f=n(44),h=n(11),p=n(164),m=n(81),v=n(258),g=n(390);e.exports=function(e,t,n,b,y,k,w){var _=v(e,n),C=v(t,n),A=w.get(C);if(A)r(e,n,A);else{var x=k?k(_,C,n+"",e,t,w):void 0,S=void 0===x;if(S){var M=l(C),E=!M&&d(C),T=!M&&!E&&m(C);x=C,M||E||T?l(_)?x=_:u(_)?x=a(_):E?(S=!1,x=i(C,!0)):T?(S=!1,x=o(C,!0)):x=[]:p(C)||c(C)?(x=_,c(_)?x=g(_):h(_)&&!f(_)||(x=s(C))):S=!1}S&&(w.set(C,x),y(x,C,b,k,w),w.delete(C)),r(e,n,x)}}},function(e,t,n){var r=n(50),i=n(51);e.exports=function(e){return r(e,i(e))}},function(e,t,n){var r=n(46),i=n(256);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var c=n[r];c&&e(t,c,r,a)}return t}))}},function(e,t,n){"use strict";var r=n(33),i=n(252),o=n(76);e.exports=function e(t){if(i(t))return t;if(o(t))return parseFloat(t);if(Array.isArray(t))return r(t,e);throw new Error("The value should be a number, a parseable string or an array of those.")}},function(e,t,n){"use strict";var r=n(47),i=n(153),o=n(33),a=n(75),s=n(91);e.exports=function(e,t){var n={},c=i(t,(function(e){return-1!==e.indexOf("attribute:")})),l=o(c,(function(e){return e.split(":")[1]}));-1===s(l,"*")?r(l,(function(t){e.isConjunctiveFacet(t)&&e.isFacetRefined(t)&&(n.facetsRefinements||(n.facetsRefinements={}),n.facetsRefinements[t]=e.facetsRefinements[t]),e.isDisjunctiveFacet(t)&&e.isDisjunctiveFacetRefined(t)&&(n.disjunctiveFacetsRefinements||(n.disjunctiveFacetsRefinements={}),n.disjunctiveFacetsRefinements[t]=e.disjunctiveFacetsRefinements[t]),e.isHierarchicalFacet(t)&&e.isHierarchicalFacetRefined(t)&&(n.hierarchicalFacetsRefinements||(n.hierarchicalFacetsRefinements={}),n.hierarchicalFacetsRefinements[t]=e.hierarchicalFacetsRefinements[t]);var r=e.getNumericRefinements(t);a(r)||(n.numericRefinements||(n.numericRefinements={}),n.numericRefinements[t]=e.numericRefinements[t])})):(a(e.numericRefinements)||(n.numericRefinements=e.numericRefinements),a(e.facetsRefinements)||(n.facetsRefinements=e.facetsRefinements),a(e.disjunctiveFacetsRefinements)||(n.disjunctiveFacetsRefinements=e.disjunctiveFacetsRefinements),a(e.hierarchicalFacetsRefinements)||(n.hierarchicalFacetsRefinements=e.hierarchicalFacetsRefinements));var u=i(t,(function(e){return-1===e.indexOf("attribute:")}));return r(u,(function(t){n[t]=e[t]})),n}},function(e,t,n){"use strict";var r=n(253),i=n(76),o=n(44),a=n(75),s=n(165),c=n(72),l=n(153),u=n(243),d={addRefinement:function(e,t,n){if(d.isRefined(e,t,n))return e;var r=""+n,i=e[t]?e[t].concat(r):[r],o={};return o[t]=i,s({},o,e)},removeRefinement:function(e,t,n){if(r(n))return d.clearRefinement(e,t);var i=""+n;return d.clearRefinement(e,(function(e,n){return t===n&&i===e}))},toggleRefinement:function(e,t,n){if(r(n))throw new Error("toggleRefinement should be used with a value");return d.isRefined(e,t,n)?d.removeRefinement(e,t,n):d.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(r(t))return a(e)?e:{};if(i(t))return a(e[t])?e:u(e,t);if(o(t)){var s=!1,d=c(e,(function(e,r,i){var o=l(r,(function(e){return!t(e,i,n)}));return a(o)?s=!0:(o.length!==r.length&&(s=!0),e[i]=o),e}),{});return s?d:e}},isRefined:function(e,t,i){var o=n(91),a=!!e[t]&&e[t].length>0;if(r(i)||!a)return a;var s=""+i;return-1!==o(e[t],s)}};e.exports=d},function(e,t){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}},function(e,t,n){var r=n(13),i=n(397);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):0}},function(e,t){e.exports=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}},function(e,t,n){var r=n(67),i=n(16),o=n(76),a=n(74),s=n(399),c=Math.max;e.exports=function(e,t,n,l){e=i(e)?e:s(e),n=n&&!l?a(n):0;var u=e.length;return n<0&&(n=c(u+n,0)),o(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&r(e,t,n)>-1}},function(e,t,n){var r=n(400),i=n(15);e.exports=function(e){return null==e?[]:r(e,i(e))}},function(e,t,n){var r=n(32);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t,n){var r=n(32),i=n(70),o=n(13),a=n(242),s=n(402),c=n(66),l=n(403),u=n(38),d=n(6);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[u];var f=-1;t=r(t,c(o));var h=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++f,value:e}}));return s(h,(function(e,t){return l(e,t,n)}))}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(404);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,c=n.length;++i<s;){var l=r(o[i],a[i]);if(l)return i>=c?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(71);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,c=null===t,l=t==t,u=r(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!u&&e<t||u&&n&&o&&!i&&!a||c&&n&&o||!s&&o||!l)return-1}return 0}},function(e,t,n){var r=n(46),i=n(167),o=n(77),a=n(52),s=r((function(e,t){var n=a(t,o(s));return i(e,32,void 0,t,n)}));s.placeholder={},e.exports=s},function(e,t,n){var r=n(93),i=n(8);e.exports=function(e,t,n){var o=1&t,a=r(e);return function t(){var r=this&&this!==i&&this instanceof t?a:e;return r.apply(o?n:this,arguments)}}},function(e,t,n){var r=n(150),i=n(93),o=n(263),a=n(266),s=n(77),c=n(52),l=n(8);e.exports=function(e,t,n){var u=i(e);return function i(){for(var d=arguments.length,f=Array(d),h=d,p=s(i);h--;)f[h]=arguments[h];var m=d<3&&f[0]!==p&&f[d-1]!==p?[]:c(f,p);if((d-=m.length)<n)return a(e,t,o,i.placeholder,void 0,f,m,void 0,void 0,n-d);var v=this&&this!==l&&this instanceof i?u:e;return r(v,this,f)}}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},function(e,t,n){var r=n(168),i=n(267),o=n(411),a=n(413);e.exports=function(e){var t=o(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=i(n);return!!s&&e===s[0]}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(412),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],o=i.call(r,t)?n.length:0;o--;){var a=n[o],s=a.func;if(null==s||s==e)return a.name}return t}},function(e,t){e.exports={}},function(e,t,n){var r=n(168),i=n(268),o=n(169),a=n(6),s=n(10),c=n(414),l=Object.prototype.hasOwnProperty;function u(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof i)return e;if(l.call(e,"__wrapped__"))return c(e)}return new i(e)}u.prototype=o.prototype,u.prototype.constructor=u,e.exports=u},function(e,t,n){var r=n(168),i=n(268),o=n(89);e.exports=function(e){if(e instanceof r)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t){var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var t=e.match(n);return t?t[1].split(r):[]}},function(e,t){var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,n){var r=n(152),i=n(221),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(o,(function(n){var r="_."+n[0];t&n[1]&&!i(e,r)&&e.push(r)})),e.sort()}},function(e,t,n){var r=n(89),i=n(65),o=Math.min;e.exports=function(e,t){for(var n=e.length,a=o(t.length,n),s=r(e);a--;){var c=t[a];e[a]=i(c,n)?s[c]:void 0}return e}},function(e,t,n){var r=n(150),i=n(93),o=n(8);e.exports=function(e,t,n,a){var s=1&t,c=i(e);return function t(){for(var i=-1,l=arguments.length,u=-1,d=a.length,f=Array(d+l),h=this&&this!==o&&this instanceof t?c:e;++u<d;)f[u]=a[u];for(;l--;)f[u++]=arguments[++i];return r(h,s?n:this,f)}}},function(e,t,n){var r=n(264),i=n(265),o=n(52),a=Math.min;e.exports=function(e,t){var n=e[1],s=t[1],c=n|s,l=c<131,u=128==s&&8==n||128==s&&256==n&&e[7].length<=t[8]||384==s&&t[7].length<=t[8]&&8==n;if(!l&&!u)return e;1&s&&(e[2]=t[2],c|=1&n?0:4);var d=t[3];if(d){var f=e[3];e[3]=f?r(f,d,t[4]):d,e[4]=f?o(e[3],"__lodash_placeholder__"):t[4]}return(d=t[5])&&(f=e[5],e[5]=f?i(f,d,t[6]):d,e[6]=f?o(e[5],"__lodash_placeholder__"):t[6]),(d=t[7])&&(e[7]=d),128&s&&(e[8]=null==e[8]?t[8]:a(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}},function(e,t,n){var r=n(46),i=n(167),o=n(77),a=n(52),s=r((function(e,t){var n=a(t,o(s));return i(e,64,void 0,t,n)}));s.placeholder={},e.exports=s},function(e,t,n){var r=n(423),i=n(159),o=n(74),a=n(158);e.exports=function(e,t,n){return e=a(e),n=null==n?0:r(o(n),0,e.length),t=i(t),e.slice(n,n+t.length)==t}},function(e,t){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},function(e,t,n){"use strict";e.exports=function(e){return function(t,n){var d=e.hierarchicalFacets[n],f=e.hierarchicalFacetsRefinements[d.name]&&e.hierarchicalFacetsRefinements[d.name][0]||"",h=e._getHierarchicalFacetSeparator(d),p=e._getHierarchicalRootPath(d),m=e._getHierarchicalShowParentLevel(d),v=function(e,t,n,o,u){return function(d,f,h){var p=d;if(h>0){var m=0;for(p=d;m<h;)p=p&&c(p.data,{isRefined:!0}),m++}if(p){var v=function(e,t,n,r,i){return function(o,a){return(!r||0===a.indexOf(r)&&r!==a)&&(!r&&-1===a.indexOf(n)||r&&a.split(n).length-r.split(n).length==1||-1===a.indexOf(n)&&-1===t.indexOf(n)||0===t.indexOf(a)||0===a.indexOf(e+n)&&(i||0===a.indexOf(t)))}}(p.path||n,u,t,n,o);p.data=a(i(l(f.data,v),function(e,t){return function(n,i){return{name:s(r(i.split(e))),path:i,count:n,isRefined:t===i||0===t.indexOf(i+e),data:null}}}(t,u)),e[0],e[1])}return d}}(u(e._getHierarchicalFacetSortBy(d)),h,p,m,f),g=t;return p&&(g=t.slice(p.split(h).length)),o(g,v,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,data:null})}};var r=n(248),i=n(33),o=n(72),a=n(260),s=n(255),c=n(92),l=n(425),u=n(271)},function(e,t,n){var r=n(32),i=n(13),o=n(272),a=n(162);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=i(t),o(e,n,(function(e,n){return t(e,n[0])}))}},function(e,t,n){var r=n(160),i=n(48),o=n(65),a=n(11),s=n(49);e.exports=function(e,t,n,c){if(!a(e))return e;for(var l=-1,u=(t=i(t,e)).length,d=u-1,f=e;null!=f&&++l<u;){var h=s(t[l]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(l!=d){var m=f[h];void 0===(p=c?c(m,h,f):void 0)&&(p=a(m)?m:o(t[l+1])?[]:{})}r(f,h,p),f=f[h]}return e}},function(e,t,n){"use strict";var r=n(94);function i(e,t){this.main=e,this.fn=t,this.lastResults=null}n(273)(i,r.EventEmitter),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=i},function(e,t,n){"use strict";var r=n(47),i=n(33),o=n(72),a=n(166),s={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:s._getHitsSearchParams(t)}),r(t.getRefinedDisjunctiveFacets(),(function(r){n.push({indexName:e,params:s._getDisjunctiveFacetSearchParams(t,r)})})),r(t.getRefinedHierarchicalFacets(),(function(r){var i=t.getHierarchicalFacetByName(r),o=t.getHierarchicalRefinement(r),a=t._getHierarchicalFacetSeparator(i);o.length>0&&o[0].split(a).length>1&&n.push({indexName:e,params:s._getDisjunctiveFacetSearchParams(t,r,!0)})})),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(s._getHitsHierarchicalFacetsAttributes(e)),n=s._getFacetFilters(e),r=s._getNumericFilters(e),i={facets:t,tagFilters:s._getTagFilters(e)};return n.length>0&&(i.facetFilters=n),r.length>0&&(i.numericFilters=r),a(e.getQueryParams(),i)},_getDisjunctiveFacetSearchParams:function(e,t,n){var r=s._getFacetFilters(e,t,n),i=s._getNumericFilters(e,t),o={hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],tagFilters:s._getTagFilters(e),analytics:!1,clickAnalytics:!1},c=e.getHierarchicalFacetByName(t);return o.facets=c?s._getDisjunctiveHierarchicalFacetAttribute(e,c,n):t,i.length>0&&(o.numericFilters=i),r.length>0&&(o.facetFilters=r),a(e.getQueryParams(),o)},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return r(e.numericRefinements,(function(e,o){r(e,(function(e,a){t!==o&&r(e,(function(e){if(Array.isArray(e)){var t=i(e,(function(e){return o+a+e}));n.push(t)}else n.push(o+a+e)}))}))})),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var i=[];return r(e.facetsRefinements,(function(e,t){r(e,(function(e){i.push(t+":"+e)}))})),r(e.facetsExcludes,(function(e,t){r(e,(function(e){i.push(t+":-"+e)}))})),r(e.disjunctiveFacetsRefinements,(function(e,n){if(n!==t&&e&&0!==e.length){var o=[];r(e,(function(e){o.push(n+":"+e)})),i.push(o)}})),r(e.hierarchicalFacetsRefinements,(function(r,o){var a=r[0];if(void 0!==a){var s,c,l=e.getHierarchicalFacetByName(o),u=e._getHierarchicalFacetSeparator(l),d=e._getHierarchicalRootPath(l);if(t===o){if(-1===a.indexOf(u)||!d&&!0===n||d&&d.split(u).length===a.split(u).length)return;d?(c=d.split(u).length-1,a=d):(c=a.split(u).length-2,a=a.slice(0,a.lastIndexOf(u))),s=l.attributes[c]}else c=a.split(u).length-1,s=l.attributes[c];s&&i.push([s+":"+a])}})),i},_getHitsHierarchicalFacetsAttributes:function(e){return o(e.hierarchicalFacets,(function(t,n){var r=e.getHierarchicalRefinement(n.name)[0];if(!r)return t.push(n.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(n),o=r.split(i).length,a=n.attributes.slice(0,o+1);return t.concat(a)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(!0===n){var i=e._getHierarchicalRootPath(t),o=0;return i&&(o=i.split(r).length),[t.attributes[o]]}var a=(e.getHierarchicalRefinement(t.name)[0]||"").split(r).length-1;return t.attributes.slice(0,a+1)},getSearchForFacetQuery:function(e,t,n,r){var i=r.isDisjunctiveFacet(e)?r.clearRefinements(e):r,o={facetQuery:t,facetName:e};return"number"==typeof n&&(o.maxFacetHits=n),a(s._getHitsSearchParams(i),o)}};e.exports=s},function(e,t,n){"use strict";var r=n(275),i=n(15),o={advancedSyntax:"aS",allowTyposOnNumericTokens:"aTONT",analyticsTags:"aT",analytics:"a",aroundLatLngViaIP:"aLLVIP",aroundLatLng:"aLL",aroundPrecision:"aP",aroundRadius:"aR",attributesToHighlight:"aTH",attributesToRetrieve:"aTR",attributesToSnippet:"aTS",disjunctiveFacetsRefinements:"dFR",disjunctiveFacets:"dF",distinct:"d",facetsExcludes:"fE",facetsRefinements:"fR",facets:"f",getRankingInfo:"gRI",hierarchicalFacetsRefinements:"hFR",hierarchicalFacets:"hF",highlightPostTag:"hPoT",highlightPreTag:"hPrT",hitsPerPage:"hPP",ignorePlurals:"iP",index:"idx",insideBoundingBox:"iBB",insidePolygon:"iPg",length:"l",maxValuesPerFacet:"mVPF",minimumAroundRadius:"mAR",minProximity:"mP",minWordSizefor1Typo:"mWS1T",minWordSizefor2Typos:"mWS2T",numericFilters:"nF",numericRefinements:"nR",offset:"o",optionalWords:"oW",page:"p",queryType:"qT",query:"q",removeWordsIfNoResults:"rWINR",replaceSynonymsInHighlight:"rSIH",restrictSearchableAttributes:"rSA",synonyms:"s",tagFilters:"tF",tagRefinements:"tR",typoTolerance:"tT",optionalTagFilters:"oTF",optionalFacetFilters:"oFF",snippetEllipsisText:"sET",disableExactOnAttributes:"dEOA",enableExactOnSingleWordQuery:"eEOSWQ"},a=r(o);e.exports={ENCODED_PARAMETERS:i(a),decode:function(e){return a[e]},encode:function(e){return o[e]}}},function(e,t,n){var r=n(431);e.exports=function(e,t){return function(n,i){return r(n,e,t(i),{})}}},function(e,t,n){var r=n(68);e.exports=function(e,t,n,i){return r(e,(function(e,r,o){t(i,n(e),r,o)})),i}},function(e,t,n){"use strict";var r=n(170),i=n(276),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,formatter:i.formatters[i.default],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,a,c,u,f,h,p,m,v,g){var b=t;if("function"==typeof u?b=u(n,b):b instanceof Date?b=p(b):"comma"===i&&s(b)&&(b=b.join(",")),null===b){if(o)return c&&!v?c(n,d.encoder,g):n;b=""}if("string"==typeof b||"number"==typeof b||"boolean"==typeof b||r.isBuffer(b))return c?[m(v?n:c(n,d.encoder,g))+"="+m(c(b,d.encoder,g))]:[m(n)+"="+m(String(b))];var y,k=[];if(void 0===b)return k;if(s(u))y=u;else{var w=Object.keys(b);y=f?w.sort(f):w}for(var _=0;_<y.length;++_){var C=y[_];a&&null===b[C]||(s(b)?l(k,e(b[C],"function"==typeof i?i(n,C):n,i,o,a,c,u,f,h,p,m,v,g)):l(k,e(b[C],n+(h?"."+C:"["+C+"]"),i,o,a,c,u,f,h,p,m,v,g)))}return k};e.exports=function(e,t){var n,r=e,c=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],a=d.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof c.filter?r=(0,c.filter)("",r):s(c.filter)&&(n=c.filter);var u,h=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[u];n||(n=Object.keys(r)),c.sort&&n.sort(c.sort);for(var m=0;m<n.length;++m){var v=n[m];c.skipNulls&&null===r[v]||l(h,f(r[v],v,p,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var g=h.join(c.delimiter),b=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),g.length>0?b+g:""}},function(e,t,n){"use strict";var r=n(170),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),s=a?r.slice(0,a.index):r,c=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var l=0;null!==(a=o.exec(r))&&l<n.depth;){if(l+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+r.slice(a.index)+"]"),function(e,t,n){for(var r=t,i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&n.parseArrays)o=[].concat(r);else{o=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(s,10);n.parseArrays||""!==s?!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[])[c]=r:o[s]=r:o={0:r}}r=o}return r}(c,t,n)}};e.exports=function(e,t){var n=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth?e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,s={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,u=c.split(t.delimiter,l),d=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n<u.length;++n)0===u[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[n]?f="utf-8":"utf8=%26%2310003%3B"===u[n]&&(f="iso-8859-1"),d=n,n=u.length);for(n=0;n<u.length;++n)if(n!==d){var h,p,m=u[n],v=m.indexOf("]="),g=-1===v?m.indexOf("="):v+1;-1===g?(h=t.decoder(m,o.decoder,f),p=t.strictNullHandling?null:""):(h=t.decoder(m.slice(0,g),o.decoder,f),p=t.decoder(m.slice(g+1),o.decoder,f)),p&&t.interpretNumericEntities&&"iso-8859-1"===f&&(p=a(p)),p&&t.comma&&p.indexOf(",")>-1&&(p=p.split(",")),i.call(s,h)?s[h]=r.combine(s[h],p):s[h]=p}return s}(e,n):e,l=n.plainObjects?Object.create(null):{},u=Object.keys(c),d=0;d<u.length;++d){var f=u[d],h=s(f,c[f],n);l=r.merge(l,h,n)}return r.compact(l)}},function(e,t,n){var r=n(46),i=n(167),o=n(77),a=n(52),s=r((function(e,t,n){var r=1;if(n.length){var c=a(n,o(s));r|=32}return i(e,r,t,n,c)}));s.placeholder={},e.exports=s},function(e,t,n){var r=n(436),i=n(250)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},function(e,t,n){var r=n(272),i=n(241);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},function(e,t,n){var r=n(73),i=n(68),o=n(13);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,t(e,i,o),e)})),n}},function(e,t,n){var r=n(73),i=n(68),o=n(13);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},,,,,function(e,t,n){"use strict";n.r(t);n(124),n(125),n(127);var r=n(27),i=n.n(r),o={"&":"&","<":"<",">":">",'"':""","'":"'"},a=/[&<>"']/g,s=RegExp(a.source);var c=function(e){return e&&s.test(e)?e.replace(a,(function(e){return o[e]})):e};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=function(e){if(!function(e){return"object"===l(e)&&null!==e}(e)||"[object Object]"!==function(e){return null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t};function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},m="<mark>",v="</mark>";function g(e){return c(e).replace(new RegExp(p.highlightPreTag,"g"),m).replace(new RegExp(p.highlightPostTag,"g"),v)}function b(e){return u(e)&&"string"!=typeof e.value?Object.keys(e).reduce((function(t,n){return f({},t,h({},n,b(e[n])))}),{}):Array.isArray(e)?e.map(b):f({},e,{value:g(e.value)})}function y(e){return void 0===e.__escaped&&((e=e.map((function(e){return e._highlightResult&&(e._highlightResult=b(e._highlightResult)),e._snippetResult&&(e._snippetResult=b(e._snippetResult)),e}))).__escaped=!0),e}function k(e){return e.map((function(e){return f({},e,{highlighted:g(e.highlighted)})}))}var w=function(e){var t=e.name,n=e.connector;return["https://www.algolia.com/doc/api-reference/widgets/",t,"/js/",void 0!==n&&n?"#connector":""].join("")},_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.map((function(e){return w(e)})).join(", ");return function(e){return[e,"See documentation: ".concat(r)].filter(Boolean).join("\n\n")}};var C=function(){};function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var x=function(e,t){if(void 0===e||"function"!=typeof e)throw new Error('The render function is not valid (got type "'.concat(A(e),'").\n\n').concat(t))};var S=function(e,t,n){return Array.prototype.find?e.find(t,n):e.filter(t,n)[0]},M=_({name:"autocomplete",connector:!0});var E=C;function T(e){return e!==Object(e)}var D=function e(t,n){if(t===n)return!0;if(T(t)||T(n)||"function"==typeof t||"function"==typeof n)return t===n;if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];if(!(o in n))return!1;if(!e(t[o],n[o]))return!1}return!0};function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var P=_({name:"breadcrumb",connector:!0});function I(e){return e.reduce((function(e,t){return t.isRefined&&(e.push({label:t.name,value:t.path}),Array.isArray(t.data)&&(e=e.concat(I(t.data)))),e}),[])}function j(e){return e.map((function(t,n){return{label:t.label,value:n+1===e.length?null:e[n+1].value}}))}var N=function(e){var t=e.helper,n=e.attributesToClear,r=void 0===n?[]:n,i=t.state.setPage(0);return r.forEach((function(e){i="_tags"===e?i.clearTags():i.clearRefinements(e)})),-1!==r.indexOf("query")&&(i=i.setQuery("")),i};var R=function(e){return String(e).replace(/^\\-/,"-")};function L(e,t,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a={type:t,attributeName:n,name:r},s=S(o,(function(e){return e.name===n}));"hierarchical"===t?function(){for(var t=e.getHierarchicalFacetByName(n),o=r.split(t.separator),a=function(e){var t;s=s&&s.data&&S(Object.keys(s.data).map((t=s.data,function(e){return t[e]})),(function(t){return t.name===o[e]}))},c=0;void 0!==s&&c<o.length;++c)a(c);i=s&&s.count}():i=s&&s.data&&s.data[a.name];var c=s&&s.exhaustive;return void 0!==i&&(a.count=i),void 0!==c&&(a.exhaustive=c),a}var B=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],i=t.facetsRefinements,o=void 0===i?{}:i,a=t.facetsExcludes,s=void 0===a?{}:a,c=t.disjunctiveFacetsRefinements,l=void 0===c?{}:c,u=t.hierarchicalFacetsRefinements,d=void 0===u?{}:u,f=t.numericRefinements,h=void 0===f?{}:f,p=t.tagRefinements,m=void 0===p?[]:p;return Object.keys(o).forEach((function(n){o[n].forEach((function(i){r.push(L(t,"facet",n,i,e.facets))}))})),Object.keys(s).forEach((function(e){s[e].forEach((function(t){r.push({type:"exclude",attributeName:e,name:t,exclude:!0})}))})),Object.keys(l).forEach((function(n){l[n].forEach((function(i){r.push(L(t,"disjunctive",n,R(i),e.disjunctiveFacets))}))})),Object.keys(d).forEach((function(n){d[n].forEach((function(i){r.push(L(t,"hierarchical",n,i,e.hierarchicalFacets))}))})),Object.keys(h).forEach((function(e){var t=h[e];Object.keys(t).forEach((function(n){var i=t[n];(Array.isArray(i)?i:[i]).forEach((function(t){r.push({type:"numeric",attributeName:e,name:"".concat(t),numericValue:t,operator:n})}))}))})),m.forEach((function(e){r.push({type:"tag",attributeName:"_tags",name:e})})),n&&t.query&&t.query.trim()&&r.push({attributeName:"query",type:"query",name:t.query,query:t.query}),r},F=_({name:"clear-refinements",connector:!0});function z(e){var t=e.helper,n=e.includedAttributes,r=e.excludedAttributes,i=e.transformItems,o=-1!==n.indexOf("query")||-1===r.indexOf("query");return i(B(t.lastResults||{},t.state,o).map((function(e){return e.attributeName})).filter((function(e){return 0===n.length||-1!==n.indexOf(e)})).filter((function(e){return"query"===e&&o||-1===r.indexOf(e)})))}var V=n(14),$=n.n(V),H=n(94),U=n.n(H);function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(n,!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=function(){function e(t){var n=t.router,r=t.stateMapping,i=t.instantSearchInstance;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),K(this,"instantSearchInstance",void 0),K(this,"router",void 0),K(this,"stateMapping",void 0),K(this,"isFirstRender",!0),K(this,"currentUiState",void 0),K(this,"initState",void 0),K(this,"renderURLFromState",void 0),this.router=n,this.stateMapping=r,this.instantSearchInstance=i,this.currentUiState=this.stateMapping.routeToState(this.router.read())}var t,n,r;return t=e,(n=[{key:"getAllSearchParameters",value:function(e){var t=e.currentSearchParameters,n=e.uiState;return this.instantSearchInstance.widgets.reduce((function(e,t){return t.getWidgetSearchParameters?t.getWidgetSearchParameters(e,{uiState:n}):e}),t)}},{key:"getAllUiStates",value:function(e){var t=e.searchParameters,n=this.instantSearchInstance.widgets,r=this.instantSearchInstance.helper;return n.reduce((function(e,n){return n.getWidgetState?n.getWidgetState(e,{helper:r,searchParameters:t}):e}),{})}},{key:"setupRouting",value:function(e){var t=this,n=this.instantSearchInstance.helper;this.router.onUpdate((function(r){var i=t.stateMapping.routeToState(r),o=t.getAllUiStates({searchParameters:n.state});if(!D(i,o)){t.currentUiState=i;var a=t.getAllSearchParameters({currentSearchParameters:e,uiState:t.currentUiState});n.overrideStateWithoutTriggeringChangeEvent(a).search()}})),this.renderURLFromState=function(e){t.currentUiState=t.getAllUiStates({searchParameters:e});var n=t.stateMapping.stateToRoute(t.currentUiState);t.router.write(n)},n.on("change",this.renderURLFromState);var r=this.getAllUiStates({searchParameters:e});if(!D(this.initState,r)){this.currentUiState=r;var i=this.stateMapping.stateToRoute(this.currentUiState);this.router.write(i)}}},{key:"getConfiguration",value:function(e){var t=$.a.SearchParameters.make(e);return W({},this.getAllSearchParameters({uiState:this.currentUiState,currentSearchParameters:t}))}},{key:"init",value:function(e){var t=e.state;this.initState=this.getAllUiStates({searchParameters:t})}},{key:"render",value:function(e){var t=e.state;this.isFirstRender&&(this.isFirstRender=!1,this.setupRouting(t))}},{key:"dispose",value:function(e){var t=e.helper,n=e.state;this.renderURLFromState&&this.instantSearchInstance.helper.removeListener("change",this.renderURLFromState),this.router.dispose&&this.router.dispose({helper:t,state:n})}},{key:"createURL",value:function(e){var t=this.getAllUiStates({searchParameters:e}),n=this.stateMapping.stateToRoute(t);return this.router.createURL(n)}},{key:"onHistoryChange",value:function(e){var t=this,n=this.instantSearchInstance.helper;this.router.onUpdate((function(r){var i=t.stateMapping.routeToState(r),o=t.getAllUiStates({searchParameters:n.state});if(!D(i,o)){t.currentUiState=i;var a=t.getAllSearchParameters({currentSearchParameters:n.state,uiState:t.currentUiState});e(W({},a))}}))}}])&&Y(t.prototype,n),r&&Y(t,r),e}();function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var X=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"stateToRoute",value:function(e){return e}},{key:"routeToState",value:function(e){return e}}])&&Q(t.prototype,n),r&&Q(t,r),e}(),J=n(95),Z=n.n(J);function ee(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function te(e,t,n){return(te=ee()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&ne(i,n.prototype),i}).apply(null,arguments)}function ne(e,t){return(ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ae=function(e){var t=e.qsModule,n=e.routeState,r=e.location,i=r.protocol,o=r.hostname,a=r.port,s=void 0===a?"":a,c=r.pathname,l=r.hash,u=t.stringify(n),d=""===s?"":":".concat(s);return n&&0!==Object.keys(n).length?"".concat(i,"//").concat(o).concat(d).concat(c,"?").concat(u).concat(l):"".concat(i,"//").concat(o).concat(d).concat(c).concat(l)},se=function(e){var t=e.qsModule,n=e.location;return t.parse(n.search.slice(1),{arrayLimit:99})},ce=function(e){e&&(window.document.title=e)},le=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.windowTitle,r=t.writeDelay,i=void 0===r?400:r,o=t.createURL,a=void 0===o?ae:o,s=t.parseURL,c=void 0===s?se:s;re(this,e),oe(this,"windowTitle",void 0),oe(this,"writeDelay",void 0),oe(this,"_createURL",void 0),oe(this,"parseURL",void 0),oe(this,"writeTimer",void 0),this.windowTitle=n,this.writeTimer=void 0,this.writeDelay=i,this._createURL=a,this.parseURL=c;var l=this.windowTitle&&this.windowTitle(this.read());ce(l)}var t,n,r;return t=e,(n=[{key:"read",value:function(){return this.parseURL({qsModule:Z.a,location:window.location})}},{key:"write",value:function(e){var t=this,n=this.createURL(e),r=this.windowTitle&&this.windowTitle(e);this.writeTimer&&window.clearTimeout(this.writeTimer),this.writeTimer=window.setTimeout((function(){ce(r),window.history.pushState(e,r||"",n),t.writeTimer=void 0}),this.writeDelay)}},{key:"onUpdate",value:function(e){var t=this;this._onPopState=function(n){t.writeTimer&&(window.clearTimeout(t.writeTimer),t.writeTimer=void 0);var r=n.state;e(r||t.read())},window.addEventListener("popstate",this._onPopState)}},{key:"createURL",value:function(e){return this._createURL({qsModule:Z.a,routeState:e,location:window.location})}},{key:"dispose",value:function(){this._onPopState&&window.removeEventListener("popstate",this._onPopState),this.writeTimer&&window.clearTimeout(this.writeTimer),this.write({})}}])&&ie(t.prototype,n),r&&ie(t,r),e}();var ue=function(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)},de=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.descendantName,r=t.modifierName,i=n?"-".concat(n):"",o=r?"--".concat(r):"";return"".concat("ais","-").concat(e).concat(i).concat(o)}},fe=de("Highlight");function he(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,o=ue(i,"_highlightResult.".concat(t,".value"))||"",a=fe({descendantName:"highlighted"});return o.replace(new RegExp(m,"g"),"<".concat(r,' class="').concat(a,'">')).replace(new RegExp(v,"g"),"</".concat(r,">"))}var pe=de("Snippet");function me(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,o=ue(i,"_snippetResult.".concat(t,".value"))||"",a=pe({descendantName:"highlighted"});return o.replace(new RegExp(m,"g"),"<".concat(r,' class="').concat(a,'">')).replace(new RegExp(v,"g"),"</".concat(r,">"))}function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(n,!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){var t=e.numberLocale;return{formatNumber:function(e,n){return Number(n(e)).toLocaleString(t)},highlight:function(e,t){try{return t(he(ge({},JSON.parse(e),{hit:this})))}catch(e){throw new Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{return t(me(ge({},JSON.parse(e),{hit:this})))}catch(e){throw new Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}}}}var ke=function(e){return e.filter((function(e,t,n){return n.indexOf(e)===t}))};function we(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var _e=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(n).forEach((function(r){var i=t[r],o=n[r];Array.isArray(i)&&Array.isArray(o)?t[r]=ke([].concat(we(i),we(o))):u(i)&&u(o)?t[r]=e(i,o):t[r]=o})),t}),{})};var Ce=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1};function Ae(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xe(e){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(n,!0).forEach((function(t){Ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function De(e,t){return!t||"object"!==xe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pe(e,t){return(Pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ie=_({name:"instantsearch"}),je={stateMapping:new X,router:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return te(le,t)}()};function Ne(){return"#"}function Re(e,t){if(!t.getConfiguration)return e;var n=t.getConfiguration(e);if(!n)return e;if(!n.hierarchicalFacets)return _e(e,n);var r=n.hierarchicalFacets,i=Ae(n,["hierarchicalFacets"]),o=Me({},e,{hierarchicalFacets:r.reduce((function(e,t){var n=Ce(e,(function(e){return e.name===t.name}));if(-1===n)return e.concat(t);var r=e.slice();return r.splice(n,1,t),r}),e.hierarchicalFacets||[])});return _e(o,i)}var Le=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=De(this,Oe(t).call(this));var r=e.indexName,i=void 0===r?null:r,o=e.numberLocale,a=e.searchParameters,s=e.routing,c=void 0===s?null:s,l=e.searchFunction,d=e.stalledSearchDelay,f=void 0===d?200:d,h=e.searchClient,p=void 0===h?null:h,m=e.insightsClient,v=void 0===m?null:m;if(null===i)throw new Error(Ie("The `indexName` option is required."));if(null===p)throw new Error(Ie("The `searchClient` option is required."));if(void 0!==e.urlSync)throw new Error(Ie("The `urlSync` option was removed in InstantSearch.js 3. You may want to use the `routing` option."));if("function"!=typeof p.search)throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof p.addAlgoliaAgent&&p.addAlgoliaAgent("instantsearch.js (".concat("3.7.0",")")),v&&"function"!=typeof v)throw new Error("The provided `insightsClient` must be a function.");return E(!a,"The `searchParameters` option is deprecated and will not be supported in InstantSearch.js 4.x.\n\nYou can replace it with the `configure` widget:\n\n```\nsearch.addWidgets([\n configure(".concat(JSON.stringify(a,null,2),")\n]);\n```\n\nSee ").concat(w({name:"configure"}))),n.client=p,n.insightsClient=v,n.helper=null,n.indexName=i,n.searchParameters=Me({},a,{index:i}),n.widgets=[],n.templatesConfig={helpers:ye({numberLocale:o}),compileOptions:{}},n._stalledSearchDelay=f,l&&(n._searchFunction=l),!0===c?n.routing=je:u(c)&&(n.routing=Me({},je,{},c)),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pe(e,t)}(t,e),n=t,(r=[{key:"addWidget",value:function(e){this.addWidgets([e])}},{key:"addWidgets",value:function(e){var t=this;if(!Array.isArray(e))throw new Error(Ie("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));var n=this.widgets.pop();e.forEach((function(e){if(void 0===e.render&&void 0===e.init)throw new Error("The widget definition expects a `render` and/or an `init` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/widgets/create-your-own-widgets/js/");t.widgets.push(e)})),n&&this.widgets.push(n),this.started&&Boolean(e.length)&&(this.searchParameters=this.widgets.reduce(Re,Me({},this.helper.state)),this.helper.setState(this.searchParameters),e.forEach((function(e){e.init&&e.init({state:t.helper.state,helper:t.helper,templatesConfig:t.templatesConfig,createURL:t._createAbsoluteURL,onHistoryChange:t._onHistoryChange,instantSearchInstance:t})})),this.helper.search())}},{key:"removeWidget",value:function(e){this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){var t=this;if(!Array.isArray(e))throw new Error(Ie("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));e.forEach((function(e){if(!t.widgets.includes(e)||"function"!=typeof e.dispose)throw new Error("The `dispose` method is required to remove the widget.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/widgets/create-your-own-widgets/js/#the-widget-lifecycle-and-api");t.widgets=t.widgets.filter((function(t){return t!==e}));var n=e.dispose({helper:t.helper,state:t.helper.state});n&&(t.searchParameters=t.widgets.reduce(Re,Me({},n)),t.helper.setState(t.searchParameters))})),setTimeout((function(){t.widgets.length>0&&t.helper.search()}),0)}},{key:"refresh",value:function(){this.helper&&this.helper.clearCache().search()}},{key:"start",value:function(){var e=this;if(this.started)throw new Error(Ie("The `start` method has already been called once."));if(this.routing){var t=new G(Me({},this.routing,{instantSearchInstance:this}));this._onHistoryChange=t.onHistoryChange.bind(t),this._createURL=t.createURL.bind(t),this._createAbsoluteURL=this._createURL,this.widgets.push(t)}else this._createURL=Ne,this._createAbsoluteURL=Ne,this._onHistoryChange=C;this.searchParameters=this.widgets.reduce(Re,this.searchParameters);var n=$()(this.client,this.searchParameters.index||this.indexName,this.searchParameters);this._searchFunction&&(this._mainHelperSearch=n.search.bind(n),n.search=function(){var t=$()({search:function(){return new Promise(C)}},n.state.index,n.state);t.once("search",(function(t){n.overrideStateWithoutTriggeringChangeEvent(t),e._mainHelperSearch()})),e._searchFunction(t)}),this.helper=n,this._init(n.state,this.helper),this.helper.on("result",this._render.bind(this,this.helper)),this.helper.on("error",(function(t){e.emit("error",t)})),this._searchStalledTimer=null,this._isSearchStalled=!0,this.helper.search(),this.helper.on("search",(function(){e._isSearchStalled||e._searchStalledTimer||(e._searchStalledTimer=setTimeout((function(){e._isSearchStalled=!0,e._render(e.helper,e.helper.lastResults,e.helper.lastResults._state)}),e._stalledSearchDelay))})),this.started=!0}},{key:"dispose",value:function(){this.removeWidgets(this.widgets),this.started=!1,this.helper.removeAllListeners(),this.helper=null}},{key:"createURL",value:function(e){if(!this._createURL)throw new Error("The `start` method needs to be called before `createURL`.");return this._createURL(this.helper.state.setQueryParameters(e))}},{key:"_render",value:function(e,t,n){var r=this;this.helper.hasPendingRequests()||(clearTimeout(this._searchStalledTimer),this._searchStalledTimer=null,this._isSearchStalled=!1),this.widgets.forEach((function(i){i.render&&i.render({templatesConfig:r.templatesConfig,results:t,state:n,helper:e,createURL:r._createAbsoluteURL,instantSearchInstance:r,searchMetadata:{isSearchStalled:r._isSearchStalled}})})),this.emit("render")}},{key:"_init",value:function(e,t){var n=this;this.widgets.forEach((function(r){r.init&&r.init({state:e,helper:t,templatesConfig:n.templatesConfig,createURL:n._createAbsoluteURL,onHistoryChange:n._onHistoryChange,instantSearchInstance:n})}))}}])&&Te(n.prototype,r),i&&Te(n,i),t}(U.a);function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(n,!0).forEach((function(t){ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ve=_({name:"configure",connector:!0});function $e(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var He=_({name:"current-refinements",connector:!0});function Ue(e){var t=e.results,n=e.state,r=e.helper,i=e.includedAttributes,o=e.excludedAttributes,a=-1!==(i||[]).indexOf("query")||-1===(o||[]).indexOf("query"),s=i?function(e){return-1!==i.indexOf(e.attributeName)}:function(e){return-1===o.indexOf(e.attributeName)};return function(e,t){return e.reduce((function(n,r){return[].concat($e(n.filter((function(e){return e.attribute!==r.attribute}))),[{attribute:r.attribute,label:r.attribute,refinements:e.filter((function(e){return e.attribute===r.attribute})).sort((function(e,t){return"numeric"===e.type?e.value-t.value:0})),refine:function(e){return We(t,e)}}])}),[])}(B(t,n,a).filter(s).map(Ye),r)}function qe(e,t){switch(t.type){case"facet":return e.removeFacetRefinement(t.attribute,t.value);case"disjunctive":return e.removeDisjunctiveFacetRefinement(t.attribute,t.value);case"hierarchical":return e.removeHierarchicalFacetRefinement(t.attribute);case"exclude":return e.removeExcludeRefinement(t.attribute,t.value);case"numeric":return e.removeNumericRefinement(t.attribute,t.operator,t.value);case"tag":return e.removeTagRefinement(t.value);case"query":return e.setQueryParameter("query","");default:throw new Error("clearRefinement: type ".concat(t.type," is not handled"))}}function We(e,t){e.setState(qe(e.state,t)).search()}function Ye(e){var t="numeric"===e.type?Number(e.name):e.name,n=e.operator?"".concat(function(e){switch(e){case">=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,r={attribute:e.attributeName,type:e.type,value:t,label:n};return void 0!==e.operator&&(r.operator=e.operator),void 0!==e.count&&(r.count=e.count),void 0!==e.exhaustive&&(r.exhaustive=e.exhaustive),r}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(n,!0).forEach((function(t){Qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ze=_({name:"hierarchical-menu",connector:!0});function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(n,!0).forEach((function(t){nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rt=function(e){var t=e.method,n=e.results,r=e.hits,i=e.objectIDs,o=n.index,a=function(e,t){return t.map((function(t){var n=S(e,(function(e){return e.objectID===t}));if(void 0===n)throw new Error('Could not find objectID "'.concat(t,'" passed to `clickedObjectIDsAfterSearch` in the returned hits. This is necessary to infer the absolute position and the query ID.'));return n}))}(r,i),s=function(e){var t=ke(e.map((function(e){return e.__queryID})));if(t.length>1)throw new Error("Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.");var n=t[0];if("string"!=typeof n)throw new Error("Could not infer `queryID`. Ensure InstantSearch is configured with `clickAnalytics: true`");return n}(a);switch(t){case"clickedObjectIDsAfterSearch":return{index:o,queryID:s,objectIDs:i,positions:function(e){return e.map((function(e){return e.__position}))}(a)};case"convertedObjectIDsAfterSearch":return{index:o,queryID:s,objectIDs:i};default:throw new Error('Unsupported method passed to insights: "'.concat(t,'".'))}};function it(e){var t=function(e){return function(t,n){var r=t.results,i=t.hits,o=t.instantSearchInstance;if(r&&i&&o&&o.insightsClient){var a=function(e,t,n){return function(r,i){if(!Array.isArray(i.objectIDs))throw new TypeError("Expected `objectIDs` to be an array.");var o=rt({method:r,results:t,hits:n,objectIDs:i.objectIDs});e(r,tt({},o,{},i))}}(o.insightsClient,r,i);return e(tt({},t,{insights:a}),n)}return e(t,n)}};return function(n,r){return e(t(n),r)}}function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st=function(e,t,n){return e.map((function(e,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(n,!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{__position:n*t+r+1})}))};function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ut=function(e,t){return t?e.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(n,!0).forEach((function(t){lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{__queryID:t})})):e},dt=_({name:"hits",connector:!0});var ft=it((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,dt()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.escapeHTML,i=void 0===r||r,o=n.transformItems,a=void 0===o?function(e){return e}:o;return{getConfiguration:function(){return i?p:void 0},init:function(t){var r=t.instantSearchInstance;e({hits:[],results:void 0,instantSearchInstance:r,widgetParams:n},!0)},render:function(t){var r=t.results,o=t.instantSearchInstance;i&&r.hits.length>0&&(r.hits=y(r.hits));var s=r.hits.__escaped;r.hits=st(r.hits,r.page,r.hitsPerPage),r.hits=ut(r.hits,r.queryID),r.hits=a(r.hits),r.hits.__escaped=s,e({hits:r.hits,results:r,instantSearchInstance:o,widgetParams:n},!1)},dispose:function(){t()}}}}));function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(n,!0).forEach((function(t){mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var gt=_({name:"hits-per-page",connector:!0});function bt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function yt(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(n,!0).forEach((function(t){_t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ct=_({name:"infinite-hits",connector:!0}),At=it((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Ct()),function(n){var r,i,o,a=n||{},s=a.escapeHTML,c=void 0===s||s,l=a.transformItems,u=void 0===l?function(e){return e}:l,d=a.showPrevious,f=void 0!==d&&d,h=[],m=1/0,v=-1;return{getConfiguration:function(){return c?p:{}},init:function(t){var r=t.instantSearchInstance,a=t.helper;i=function(e){return function(){e.overrideStateWithoutTriggeringChangeEvent(wt({},e.state,{page:m-1})).search()}}(a),o=function(e){return function(){e.setPage(v+1).search()}}(a),m=a.state.page,v=a.state.page,e({hits:h,results:void 0,showPrevious:i,showMore:o,isFirstPage:0===m,isLastPage:!0,instantSearchInstance:r,widgetParams:n},!0)},render:function(t){var a=t.results,s=t.state,l=t.instantSearchInstance,d=s.page,f=yt(s,["page"]);D(f,r)||(h=[],m=d,v=d,r=f),c&&a.hits.length>0&&(a.hits=y(a.hits));var p=a.hits.__escaped;a.hits=st(a.hits,a.page,a.hitsPerPage),a.hits=ut(a.hits,a.queryID),a.hits=u(a.hits),a.hits.__escaped=p,v<d||!h.length?(h=[].concat(bt(h),bt(a.hits)),v=d):m>d&&(h=[].concat(bt(a.hits),bt(h)),m=d);var g=0===m,b=a.nbPages<=a.page+1;e({hits:h,results:a,showPrevious:i,showMore:o,isFirstPage:g,isLastPage:b,instantSearchInstance:l,widgetParams:n},!1)},dispose:function(){t()},getWidgetState:function(e,t){var n=t.searchParameters.page;return f&&0!==n&&n+1!==e.page?wt({},e,{page:n+1}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState;if(!f)return e;var r=n.page;return r?e.setQueryParameter("page",r-1):e.setQueryParameter("page",0)}}}}));function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(n,!0).forEach((function(t){Mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Tt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Dt=_({name:"menu",connector:!0});function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Dt()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,i=n.limit,o=void 0===i?10:i,a=n.showMore,s=void 0!==a&&a,c=n.showMoreLimit,l=void 0===c?20:c,u=n.sortBy,d=void 0===u?["isRefined","name:asc"]:u,f=n.transformItems,h=void 0===f?function(e){return e}:f;if(!r)throw new Error(Dt("The `attribute` option is required."));if(!0===s&&l<=o)throw new Error(Dt("The `showMoreLimit` option must be greater than `limit`."));return{isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this,n=e.results,r=e.instantSearchInstance;return function(){t.isShowingMore=!t.isShowingMore,t.render({results:n,instantSearchInstance:r})}},getLimit:function(){return this.isShowingMore?l:o},refine:function(e){return function(t){var n=Tt(e.getHierarchicalFacetBreadcrumb(r),1)[0];e.toggleRefinement(r,t||n).search()}},getConfiguration:function(e){var t={hierarchicalFacets:[{name:r,attributes:[r]}]},n=e.maxValuesPerFacet||0;return t.maxValuesPerFacet=Math.max(n,s?l:o),t},init:function(t){var i=t.helper,o=t.createURL,a=t.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),this._createURL=function(e){return o(i.state.toggleRefinement(r,e))},this._refine=this.refine(i),e({items:[],createURL:this._createURL,refine:this._refine,instantSearchInstance:a,canRefine:!1,widgetParams:n,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:!1},!0)},render:function(t){var i=t.results,o=t.instantSearchInstance,a=i.getFacetValues(r,{sortBy:d}).data||[],c=h(a.slice(0,this.getLimit()).map((function(e){var t=e.name,n=e.path;return St({},Et(e,["name","path"]),{label:t,value:n})})));this.toggleShowMore=this.createToggleShowMore({results:i,instantSearchInstance:o}),e({items:c,createURL:this._createURL,refine:this._refine,instantSearchInstance:o,canRefine:c.length>0,widgetParams:n,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:s&&(this.isShowingMore||a.length>this.getLimit())},!1)},dispose:function(e){var n=e.state;t();var i=n;return n.isHierarchicalFacetRefined(r)&&(i=n.removeHierarchicalFacetRefinement(r)),((i=i.removeHierarchicalFacet(r)).maxValuesPerFacet===o||l&&i.maxValuesPerFacet===l)&&i.setQueryParameters("maxValuesPerFacet",void 0),i},getWidgetState:function(e,t){var n=Tt(t.searchParameters.getHierarchicalFacetBreadcrumb(r),1)[0];return!n||e.menu&&e.menu[r]===n?e:St({},e,{menu:St({},e.menu,Mt({},r,n))})},getWidgetSearchParameters:function(e,t){var n=t.uiState;if(n.menu&&n.menu[r]){var i=n.menu[r];return e.isHierarchicalFacetRefined(r,i)?e:e.toggleRefinement(r,i)}if(e.isHierarchicalFacetRefined(r)){var o=Tt(e.getHierarchicalFacetBreadcrumb(r),1)[0];return e.toggleRefinement(r,o)}return e}}}}var Pt=function(e){return"number"==typeof e&&isFinite(e)};function It(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(n,!0).forEach((function(t){Rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lt=_({name:"numeric-menu",connector:!0});function Bt(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end&&n.start===n.end?zt(r,"=",n.start):void 0!==n.start?zt(r,">=",n.start):void 0!==n.end?zt(r,"<=",n.end):void 0===n.start&&void 0===n.end?0===Object.keys(r).length:void 0}function Ft(e,t,n,r){var i=e,o=JSON.parse(window.decodeURI(r)),a=i.getNumericRefinements(t);if(void 0===o.start&&void 0===o.end)return i.clearRefinements(t);if(Bt(i,t,o)||(i=i.clearRefinements(t)),void 0!==o.start&&void 0!==o.end){if(o.start>o.end)throw new Error("option.start should be > to option.end");if(o.start===o.end)return i=zt(a,"=",o.start)?i.removeNumericRefinement(t,"=",o.start):i.addNumericRefinement(t,"=",o.start)}return void 0!==o.start&&(i=zt(a,">=",o.start)?i.removeNumericRefinement(t,">=",o.start):i.addNumericRefinement(t,">=",o.start)),void 0!==o.end&&(i=zt(a,"<=",o.end)?i.removeNumericRefinement(t,"<=",o.end):i.addNumericRefinement(t,"<=",o.end)),i.page=0,i}function zt(e,t,n){return void 0!==e[t]&&e[t].includes(n)}function Vt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var $t=function(e){var t=e.start,n=void 0===t?0:t,r=e.end,i=e.step,o=void 0===i?1:i,a=0===o?1:o,s=Math.round((r-n)/a);return Vt(Array(s)).map((function(e,t){return(n+t)*a}))};function Ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ut=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentPage=t.currentPage,this.total=t.total,this.padding=t.padding}var t,n,r;return t=e,(n=[{key:"pages",value:function(){var e=this.total,t=this.currentPage,n=this.padding;if(0===e)return[0];var r=this.nbPagesDisplayed(n,e);if(r===e)return $t({end:e});var i=this.calculatePaddingLeft(t,n,e,r);return $t({start:t-i,end:t+(r-i)})}},{key:"nbPagesDisplayed",value:function(e,t){return Math.min(2*e+1,t)}},{key:"calculatePaddingLeft",value:function(e,t,n,r){return e<=t?e:e>=n-t?r-(n-e):t}},{key:"isLastPage",value:function(){return this.currentPage===this.total-1}},{key:"isFirstPage",value:function(){return 0===this.currentPage}}])&&Ht(t.prototype,n),r&&Ht(t,r),e}();function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(n,!0).forEach((function(t){Yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kt=_({name:"pagination",connector:!0});function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Jt=_({name:"query-rules",connector:!0});function Zt(e){return[e.disjunctiveFacetsRefinements,e.facetsRefinements,e.hierarchicalFacetsRefinements,e.numericRefinements].some((function(e){return Boolean(e&&Object.keys(e).length>0)}))}function en(e){var t=this.helper,n=this.initialRuleContexts,r=this.trackedFilters,i=this.transformRuleContexts,o=e.ruleContexts||[],a=function(e){var t=e.helper,n=e.sharedHelperState,r=e.trackedFilters;return Object.keys(r).reduce((function(e,i){var o=B(t.lastResults||{},n).filter((function(e){return e.attributeName===i})).map((function(e){return e.numericValue||e.name})),a=(0,r[i])(o);return[].concat(Xt(e),Xt(o.filter((function(e){return a.includes(e)})).map((function(e){return"ais-".concat(i,"-").concat(e).replace(/[^a-z0-9-_]+/gi,"_")}))))}),[])}({helper:t,sharedHelperState:e,trackedFilters:r}),s=[].concat(Xt(n),Xt(a));E(s.length<=10,"\nThe maximum number of `ruleContexts` is 10. They have been sliced to that limit.\nConsider using `transformRuleContexts` to minimize the number of rules sent to Algolia.\n");var c=i(s).slice(0,10);D(o,c)||t.overrideStateWithoutTriggeringChangeEvent(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(n,!0).forEach((function(t){Qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{ruleContexts:c}))}var tn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Jt()),function(n){var r=n||{},i=r.trackedFilters,o=void 0===i?{}:i,a=r.transformRuleContexts,s=void 0===a?function(e){return e}:a,c=r.transformItems,l=void 0===c?function(e){return e}:c;Object.keys(o).forEach((function(e){if("function"!=typeof o[e])throw new Error(Jt("'The \"".concat(e,'" filter value in the `trackedFilters` option expects a function.')))}));var u,d=Object.keys(o).length>0,f=[];return{init:function(t){var r=t.helper,i=t.state,a=t.instantSearchInstance;f=i.ruleContexts||[],u=en.bind({helper:r,initialRuleContexts:f,trackedFilters:o,transformRuleContexts:s}),d&&((Zt(i)||Boolean(n.transformRuleContexts))&&u(i),r.on("change",u)),e({items:[],instantSearchInstance:a,widgetParams:n},!0)},render:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t){var r=t.results,i=t.instantSearchInstance,o=r.userData,a=l(void 0===o?[]:o);e({items:a,instantSearchInstance:i,widgetParams:n},!1)})),dispose:function(e){var n=e.helper,r=e.state;return t(),d?(n.removeListener("change",u),r.setQueryParameter("ruleContexts",f)):r}}}};function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(n,!0).forEach((function(t){on(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function on(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var sn=_({name:"range-input",connector:!0},{name:"range-slider",connector:!0});function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(n,!0).forEach((function(t){un(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dn=_({name:"rating-menu",connector:!0});function fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fn(n,!0).forEach((function(t){pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var vn=_({name:"refinement-list",connector:!0});function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gn(n,!0).forEach((function(t){yn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kn=_({name:"search-box",connector:!0});function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(n,!0).forEach((function(t){Cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var An=_({name:"sort-by",connector:!0});var xn=_({name:"stats",connector:!0});var Sn=function(e){return"number"==typeof e&&e<0&&(e=String(e).replace(/^-/,"\\-")),e};function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(n,!0).forEach((function(t){Tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dn=_({name:"toggle-refinement",connector:!0});function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(n,!0).forEach((function(t){In(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function In(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jn(e){var t,n=e.searchAsYouSpeak,r=e.onQueryChange,i=e.onStateChange,o=window.webkitSpeechRecognition||window.SpeechRecognition,a=function(e){return{status:e,transcript:"",isSpeechFinal:!1,errorCode:void 0}},s=a("initial"),c=function(){return Boolean(o)},l=function(){return"askingPermission"===s.status||"waiting"===s.status||"recognizing"===s.status},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s=Pn({},s,{},e),i()},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";u(a(e))},f=function(){u({status:"waiting"})},h=function(e){u({status:"error",errorCode:e.error})},p=function(e){u({status:"recognizing",transcript:e.results[0]&&e.results[0][0]&&e.results[0][0].transcript||"",isSpeechFinal:e.results[0]&&e.results[0].isFinal}),n&&s.transcript&&r(s.transcript)},m=function(){s.errorCode||!s.transcript||n||r(s.transcript),"error"!==s.status&&u({status:"finished"})},v=function(){t&&(t.stop(),t.removeEventListener("start",f),t.removeEventListener("error",h),t.removeEventListener("result",p),t.removeEventListener("end",m),t=void 0)};return{getState:function(){return s},isBrowserSupported:c,isListening:l,toggleListening:function(){c()&&(l()?(v(),d("finished")):(t=new o)&&(d("askingPermission"),t.interimResults=!0,t.addEventListener("start",f),t.addEventListener("error",h),t.addEventListener("result",p),t.addEventListener("end",m),t.start()))},dispose:v}}function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(n,!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bn=_({name:"voice-search",connector:!0}),Fn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Bn()),function(n){var r=function(t){var r=t.isFirstRendering,i=t.instantSearchInstance,o=t.voiceSearchHelper,a=o.isBrowserSupported,s=o.isListening,c=o.toggleListening,l=o.getState;e({isBrowserSupported:a(),isListening:s(),toggleListening:c,voiceListeningState:l(),widgetParams:n,instantSearchInstance:i},r)},i=n.searchAsYouSpeak,o=void 0!==i&&i;return{init:function(e){var t,n=this,i=e.helper,a=e.instantSearchInstance;this._refine=function(e){e!==i.state.query&&(t=i.state.query,i.setQuery(e)),void 0!==t&&t!==e&&i.search()},this._voiceSearchHelper=jn({searchAsYouSpeak:o,onQueryChange:function(e){return n._refine(e)},onStateChange:function(){r({isFirstRendering:!1,instantSearchInstance:a,voiceSearchHelper:n._voiceSearchHelper})}}),r({isFirstRendering:!0,instantSearchInstance:a,voiceSearchHelper:this._voiceSearchHelper})},render:function(e){var t=e.instantSearchInstance;r({isFirstRendering:!1,instantSearchInstance:t,voiceSearchHelper:this._voiceSearchHelper})},dispose:function(e){var n=e.state;return this._voiceSearchHelper.dispose(),t(),n.setQuery("")},getWidgetState:function(e,t){var n=t.searchParameters.query;return""===n||e&&e.query===n?e:Rn({},e,{query:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQuery(n.query||"")}}}},zn=n(34),Vn=n.n(zn),$n=function(e){return new Le(e)};$n.version="3.7.0",$n.snippet=me,$n.highlight=he,Object.defineProperty($n,"widgets",{get:function(){throw new ReferenceError("\"instantsearch.widgets\" are not available from the ES build.\n\nTo import the widgets:\n\nimport { searchBox } from 'instantsearch.js/es/widgets'")}}),Object.defineProperty($n,"connectors",{get:function(){throw new ReferenceError("\"instantsearch.connectors\" are not available from the ES build.\n\nTo import the connectors:\n\nimport { connectSearchBox } from 'instantsearch.js/es/connectors'")}});var Hn=$n,Un=function(e){var t=e.name;return{props:{classNames:{type:Object,default:void 0}},methods:{suit:function(e,n){var r=function(e,t,n){if(!e)throw new Error("You need to provide `widgetName` in your data");var r=["ais-"+e];return t&&r.push("-"+t),n&&r.push("--"+n),r.join("")}(t,e,n),i=this.classNames&&this.classNames[r];return i?[r,i].join(" "):r}}}},qn=new Set;function Wn(e){qn.has(e)||(qn.add(e),console.warn(e))}var Yn=function(e){void 0===e&&(e={});var t=e.connector;return{inject:{instantSearchInstance:{name:"instantSearchInstance",default:function(){var e=this.$options._componentTag;throw new TypeError('It looks like you forgot to wrap your Algolia search component "<'+e+'>" inside of an "<ais-instant-search>" component.')}}},data:function(){return{state:null}},created:function(){if("function"==typeof t){this.factory=t(this.updateState,(function(){})),this.widget=this.factory(this.widgetParams),this.instantSearchInstance.addWidget(this.widget);var e=this.instantSearchInstance,n=e.hydrated;if(!e.started&&n||this.$isServer){if("function"!=typeof this.instantSearchInstance.__forceRender)throw new Error("You are using server side rendering with <ais-instant-search> instead of <ais-instant-search-ssr>.");this.instantSearchInstance.__forceRender(this.widget)}}else!0!==t&&Wn("You are using the InstantSearch widget mixin, but didn't provide a connector.\nWhile this is technically possible, and will give you access to the Helper,\nit's not the recommended way of making custom components.\n\nIf you want to disable this message, pass { connector: true } to the mixin.\n\nRead more on using connectors: https://alg.li/vue-custom")},beforeDestroy:function(){this.widget&&this.widget.dispose&&this.instantSearchInstance.started&&this.instantSearchInstance.removeWidget(this.widget)},watch:{widgetParams:{handler:function(e){this.state=null,this.widget.dispose&&this.instantSearchInstance.started&&this.instantSearchInstance.removeWidget(this.widget),this.widget=this.factory(e),this.instantSearchInstance.addWidget(this.widget)},deep:!0}},methods:{updateState:function(e,t){void 0===e&&(e={}),t||(this.state=e)}}}},Kn={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("p",[e._v("This widget doesn't render anything without a filled in default slot.")]),e._v(" "),n("p",[e._v("query, function to refine and results are provided.")]),e._v(" "),n("pre",[e._v("refine: Function")]),e._v(" "),n("pre",[e._v('currentRefinement: "'+e._s(e.state.currentRefinement)+'"')]),e._v(" "),n("details",[e._m(0),e._v(" "),n("pre",[e._v(e._s(e.state.indices))])])],{refine:e.state.refine,currentRefinement:e.state.currentRefinement,indices:e.state.indices})],2):e._e()},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("summary",[t("code",[this._v("indices")]),this._v(":")])}],name:"AisAutocomplete",mixins:[Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,M()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.escapeHTML,i=void 0===r||r,o=n.indices,a=void 0===o?[]:o;if(!Array.isArray(a))throw new Error(M("The `indices` option expects an array of objects."));return{getConfiguration:function(){return i?p:void 0},init:function(e){var t=this,n=e.instantSearchInstance,r=e.helper;this._refine=this.refine(r),this.indices=[{helper:r,label:"primary",index:r.getIndex(),results:void 0,hits:[]}],a.forEach((function(e){var n=e.label,i=e.value,o=r.derive((function(e){return e.setIndex(i)}));t.indices.push({label:n,index:i,helper:o,results:void 0,hits:[]}),o.on("result",(function(e){return t.saveResults({results:e,label:n})}))})),this.instantSearchInstance=n,this.renderWithAllIndices({isFirstRendering:!0})},saveResults:function(e){var t=e.results,n=e.label,r=S(this.indices,(function(e){return e.label===n}));i&&t&&t.hits&&t.hits.length>0&&(t.hits=y(t.hits)),r.results=t,r.hits=t&&t.hits&&Array.isArray(t.hits)?t.hits:[],this.renderWithAllIndices()},refine:function(e){return function(t){return e.setQuery(t).search()}},render:function(e){var t=e.results;this.saveResults({results:t,label:this.indices[0].label})},renderWithAllIndices:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.isFirstRendering,i=void 0!==r&&r,o=this.indices[0].helper.state.query;e({widgetParams:n,currentRefinement:o,indices:this.indices.map((function(e){return{index:e.index,label:e.label,hits:e.hits,results:e.results}})),instantSearchInstance:this.instantSearchInstance,refine:this._refine},i)},dispose:function(){this.indices.slice(1).forEach((function(e){return e.helper.detach()})),t()}}}}}),Un({name:"Autocomplete"})],props:{indices:{type:Array,required:!1,default:void 0},escapeHTML:{type:Boolean,required:!1,default:!0}},computed:{widgetParams:function(){return{indices:this.indices,escapeHTML:this.escapeHTML}}}},Gn=function(e){var t=e.mapStateToCanRefine;return{inject:{emitter:{from:"instantSearchPanelEmitter",default:function(){return{$emit:function(){}}}}},data:function(){return{state:null,hasAlreadyEmitted:!1}},watch:{state:function(e,n){if(n&&e){var r=t(n),i=t(e);this.hasAlreadyEmitted&&r===i||(this.emitter.$emit("PANEL_CHANGE_EVENT",i),this.hasAlreadyEmitted=!0)}}}}},Qn={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("ul",{class:e.suit("list")},[n("li",{class:[e.suit("item"),!e.state.items.length&&e.suit("item","selected")]},[Boolean(e.state.items.length)?n("a",{class:e.suit("link"),attrs:{href:e.state.createURL()},on:{click:function(t){t.preventDefault(),e.state.refine()}}},[e._t("rootLabel",[e._v("Home")])],2):n("span",[e._t("rootLabel",[e._v("Home")])],2)]),e._v(" "),e._l(e.state.items,(function(t,r){return n("li",{key:t.label,class:[e.suit("item"),e.isLastItem(r)&&e.suit("item","selected")]},[n("span",{class:e.suit("separator"),attrs:{"aria-hidden":"true"}},[e._t("separator",[e._v(">")])],2),e._v(" "),e.isLastItem(r)?n("span",[e._v(e._s(t.label))]):n("a",{class:e.suit("link"),attrs:{href:e.state.createURL(t.value)},on:{click:function(n){n.preventDefault(),e.state.refine(t.value)}}},[e._v(e._s(t.label))])])}))],2)],{items:e.state.items,canRefine:e.state.canRefine,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisBreadcrumb",mixins:[Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,P()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attributes,i=n.separator,o=void 0===i?" > ":i,a=n.rootPath,s=void 0===a?null:a,c=n.transformItems,l=void 0===c?function(e){return e}:c;if(!r||!Array.isArray(r)||0===r.length)throw new Error(P("The `attributes` option expects an array of strings."));var u=O(r,1),d=u[0];return{getConfiguration:function(e){if(e.hierarchicalFacets){var t=S(e.hierarchicalFacets,(function(e){return e.name===d}));if(t)return E(D(t.attributes,r)&&t.separator===o&&t.rootPath===s,"Using Breadcrumb and HierarchicalMenu on the same facet with different options overrides the configuration of the HierarchicalMenu."),{}}return{hierarchicalFacets:[{attributes:r,name:d,separator:o,rootPath:s}]}},init:function(t){var r=t.createURL,i=t.helper,o=t.instantSearchInstance;this._createURL=function(e){if(!e){var t=i.getHierarchicalFacetBreadcrumb(d);if(t.length>0)return r(i.state.toggleRefinement(d,t[0]))}return r(i.state.toggleRefinement(d,e))},this._refine=function(e){if(e)i.toggleRefinement(d,e).search();else{var t=i.getHierarchicalFacetBreadcrumb(d);t.length>0&&i.toggleRefinement(d,t[0]).search()}},e({createURL:this._createURL,canRefine:!1,instantSearchInstance:o,items:[],refine:this._refine,widgetParams:n},!0)},render:function(t){var r=t.instantSearchInstance,i=t.results,o=O(t.state.hierarchicalFacets,1)[0].name,a=i.getFacetValues(o),s=Array.isArray(a.data)?a.data:[],c=l(j(I(s)));e({canRefine:c.length>0,createURL:this._createURL,instantSearchInstance:r,items:c,refine:this._refine,widgetParams:n},!1)},dispose:function(){t()}}}}}),Gn({mapStateToCanRefine:function(e){return e.canRefine}}),Un({name:"Breadcrumb"})],props:{attributes:{type:Array,required:!0},separator:{type:String,default:" > "},rootPath:{type:String,default:null},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attributes:this.attributes,separator:this.separator,rootPath:this.rootPath,transformItems:this.transformItems}}},methods:{isLastItem:function(e){return this.state.items.length-1===e}}},Xn={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("button",{class:[e.suit("button"),!e.canRefine&&e.suit("button","disabled")],attrs:{type:"reset",disabled:!e.canRefine},on:{click:function(t){return t.preventDefault(),e.state.refine(t)}}},[e._t("resetLabel",[e._v("Clear refinements")])],2)],{canRefine:e.canRefine,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisClearRefinements",mixins:[Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,F()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.includedAttributes&&n.excludedAttributes)throw new Error(F("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var r=n.includedAttributes,i=void 0===r?[]:r,o=n.excludedAttributes,a=void 0===o?["query"]:o,s=n.transformItems,c=void 0===s?function(e){return e}:s;return{init:function(t){var r=t.helper,o=t.instantSearchInstance,s=t.createURL,l=z({helper:r,includedAttributes:i,excludedAttributes:a,transformItems:c}).length>0;this._refine=function(){r.setState(N({helper:r,attributesToClear:z({helper:r,includedAttributes:i,excludedAttributes:a,transformItems:c})})).search()},this._createURL=function(){return s(N({helper:r,attributesToClear:z({helper:r,includedAttributes:i,excludedAttributes:a,transformItems:c})}))},e({hasRefinements:l,refine:this._refine,createURL:this._createURL,instantSearchInstance:o,widgetParams:n},!0)},render:function(t){var r=t.helper,o=t.instantSearchInstance,s=z({helper:r,includedAttributes:i,excludedAttributes:a,transformItems:c}).length>0;e({hasRefinements:s,refine:this._refine,createURL:this._createURL,instantSearchInstance:o,widgetParams:n},!1)},dispose:function(){t()}}}}}),Gn({mapStateToCanRefine:function(e){return e.hasRefinements}}),Un({name:"ClearRefinements"})],props:{excludedAttributes:{type:Array},includedAttributes:{type:Array},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}},canRefine:function(){return this.state.hasRefinements}}},Jn={inheritAttrs:!1,name:"AisConfigure",mixins:[Un({name:"Configure"}),Yn({connector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!u(n.searchParameters))throw new Error(Ve("The `searchParameters` option expects an object."));return{getConfiguration:function(){return n.searchParameters},init:function(t){var r=t.helper;this._refine=this.refine(r),e({refine:this._refine,widgetParams:n},!0)},refine:function(e){var t=this;return function(r){var i=Re(Fe({},t.removeSearchParameters(e.state)),{getConfiguration:function(){return r}});e.setState(i).search(),n.searchParameters=r}},render:function(){e({refine:this._refine,widgetParams:n},!1)},dispose:function(e){var n=e.state;return t(),this.removeSearchParameters(n)},removeSearchParameters:function(e){return e.mutateMe((function(e){Object.keys(n.searchParameters).forEach((function(t){delete e[t]}))}))}}}}})],computed:{widgetParams:function(){return{searchParameters:this.$attrs}}},render:function(e){return this.state&&this.$scopedSlots.default?e("div",{class:this.suit()},[this.$scopedSlots.default({refine:this.state.refine,searchParameters:this.state.widgetParams.searchParameters})]):null}},Zn={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),e.noRefinement&&e.suit("","noRefinement")]},[e._t("default",[n("ul",{class:e.suit("list")},e._l(e.state.items,(function(t){return n("li",{key:t.attribute,class:e.suit("item")},[e._t("item",[n("span",{class:e.suit("label")},[e._v(e._s(e._f("capitalize")(t.label))+": ")]),e._v(" "),e._l(t.refinements,(function(r){return n("span",{key:e.createItemKey(r),class:e.suit("category")},[e._t("refinement",[n("span",{class:e.suit("categoryLabel")},["query"===r.attribute?n("q",[e._v(e._s(r.label))]):[e._v(" "+e._s(r.label)+" ")]],2),e._v(" "),n("button",{class:e.suit("delete"),on:{click:function(e){t.refine(r)}}},[e._v(" ✕ ")])],{refine:t.refine,refinement:r,createURL:e.state.createURL})],2)}))],{refine:t.refine,item:t,createURL:e.state.createURL})],2)})))],{refine:e.state.refine,items:e.state.items,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisCurrentRefinements",mixins:[Un({name:"CurrentRefinements"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,He()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.includedAttributes&&n.excludedAttributes)throw new Error(He("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var r=n.includedAttributes,i=n.excludedAttributes,o=void 0===i?["query"]:i,a=n.transformItems,s=void 0===a?function(e){return e}:a;return{init:function(t){var i=t.helper,a=t.createURL,c=t.instantSearchInstance,l=s(Ue({results:{},state:i.state,helper:i,includedAttributes:r,excludedAttributes:o}));e({items:l,refine:function(e){return We(i,e)},createURL:function(e){return a(qe(i.state,e))},instantSearchInstance:c,widgetParams:n},!0)},render:function(t){var i=t.results,a=t.helper,c=t.state,l=t.createURL,u=t.instantSearchInstance,d=s(Ue({results:i,state:c,helper:a,includedAttributes:r,excludedAttributes:o}));e({items:d,refine:function(e){return We(a,e)},createURL:function(e){return l(qe(a.state,e))},instantSearchInstance:u,widgetParams:n},!1)},dispose:function(){t()}}}}}),Gn({mapStateToCanRefine:function(e){return e.items.length>0}})],props:{includedAttributes:{type:Array},excludedAttributes:{type:Array},transformItems:{type:Function,default:function(e){return e}}},computed:{noRefinement:function(){return this.state&&0===this.state.items.length},widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}}},methods:{createItemKey:function(e){var t=e.attribute,n=e.value;return[t,e.type,n,e.operator].join(":")}},filters:{capitalize:function(e){return e?e.toString().charAt(0).toLocaleUpperCase()+e.toString().slice(1):""}}},er={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{class:[e.suit("list"),e.level>0&&e.suit("list","child"),e.suit("list","lvl"+e.level)]},e._l(e.items,(function(t){return n("li",{key:t.value,class:[e.suit("item"),t.data&&e.suit("item","parent"),t.isRefined&&e.suit("item","selected")]},[n("a",{class:e.suit("link"),attrs:{href:e.createURL(t.value)},on:{click:function(n){n.preventDefault(),e.refine(t.value)}}},[n("span",{class:e.suit("label")},[e._v(e._s(t.label))]),e._v(" "),n("span",{class:e.suit("count")},[e._v(e._s(t.count))])]),e._v(" "),t.data?n("hierarchical-menu-list",{attrs:{items:t.data,level:e.level+1,refine:e.refine,createURL:e.createURL,suit:e.suit}}):e._e()],1)})))},staticRenderFns:[],name:"HierarchicalMenuList",props:{items:{type:Array,required:!0},level:{type:Number,required:!0},refine:{type:Function,required:!0},createURL:{type:Function,required:!0},suit:{type:Function,required:!0}}},tr=function(e){return e.items.length>0},nr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("hierarchical-menu-list",{attrs:{items:e.state.items,level:0,refine:e.state.refine,createURL:e.state.createURL,suit:e.suit}}),e._v(" "),e.showMore?n("button",{class:[e.suit("showMore"),!e.state.canToggleShowMore&&e.suit("showMore","disabled")],attrs:{disabled:!e.state.canToggleShowMore},on:{click:function(t){return t.preventDefault(),e.state.toggleShowMore(t)}}},[e._t("showMoreLabel",[e._v(e._s(e.state.isShowingMore?"Show less":"Show more"))],{isShowingMore:e.state.isShowingMore})],2):e._e()],{items:e.state.items,canRefine:e.canRefine,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,refine:e.state.refine,createURL:e.state.createURL,toggleShowMore:e.state.toggleShowMore})],2):e._e()},staticRenderFns:[],name:"AisHierarchicalMenu",mixins:[Un({name:"HierarchicalMenu"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Ze()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attributes,i=n.separator,o=void 0===i?" > ":i,a=n.rootPath,s=void 0===a?null:a,c=n.showParentLevel,l=void 0===c||c,u=n.limit,d=void 0===u?10:u,f=n.showMore,h=void 0!==f&&f,p=n.showMoreLimit,m=void 0===p?20:p,v=n.sortBy,g=void 0===v?["name:asc"]:v,b=n.transformItems,y=void 0===b?function(e){return e}:b;if(!r||!Array.isArray(r)||0===r.length)throw new Error(Ze("The `attributes` option expects an array of strings."));if(!0===h&&m<=d)throw new Error(Ze("The `showMoreLimit` option must be greater than `limit`."));var k=Je(r,1),w=k[0];return{isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this;return function(){t.isShowingMore=!t.isShowingMore,t.render(e)}},getLimit:function(){return this.isShowingMore?m:d},getConfiguration:function(e){if(e.hierarchicalFacets){var t=S(e.hierarchicalFacets,(function(e){return e.name===w})),n=t&&D(t.attributes,r),i=t&&t.separator===o,a=t&&t.rootPath===s;if(t&&!(n&&i&&a))return E(!1,"Using Breadcrumb and HierarchicalMenu on the same facet with different options overrides the configuration of the HierarchicalMenu."),{}}var c={hierarchicalFacets:[{name:w,attributes:r,separator:o,rootPath:s,showParentLevel:l}]},u=e.maxValuesPerFacet||0;return c.maxValuesPerFacet=Math.max(u,h?m:d),c},init:function(t){var r=t.helper,i=t.createURL,o=t.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),this._refine=function(e){r.toggleRefinement(w,e).search()},e({items:[],createURL:function(e){return i(r.state.toggleRefinement(w,e))},refine:this._refine,instantSearchInstance:o,widgetParams:n,isShowingMore:!1,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:!1},!0)},_prepareFacetValues:function(e,t){var n=this;return e.slice(0,this.getLimit()).map((function(e){var r=e.name,i=e.path,o=Xe(e,["name","path"]);return Array.isArray(o.data)&&(o.data=n._prepareFacetValues(o.data,t)),Ge({},o,{label:r,value:i})}))},render:function(t){var r=t.results,i=t.state,o=t.createURL,a=t.instantSearchInstance,s=r.getFacetValues(w,{sortBy:g}).data||[],c=y(this._prepareFacetValues(s),i);var l=i.getQueryParameter("maxValuesPerFacet"),u=this.getLimit(),d=l>u?s.length<=u:s.length<u;this.toggleShowMore=this.createToggleShowMore(t),e({items:c,refine:this._refine,createURL:function(e){return o(i.toggleRefinement(w,e))},instantSearchInstance:a,widgetParams:n,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:h&&(this.isShowingMore||!d)},!1)},dispose:function(e){var n=e.state;t();var r=n;return n.isHierarchicalFacetRefined(w)&&(r=n.removeHierarchicalFacetRefinement(w)),(r=r.removeHierarchicalFacet(w)).maxValuesPerFacet===d&&r.setQueryParameters("maxValuesPerFacet",void 0),r},getWidgetState:function(e,t){var n=t.searchParameters.getHierarchicalFacetBreadcrumb(w);return n&&0!==n.length?e.hierarchicalMenu&&D(n,e.hierarchicalMenu[w])?e:Ge({},e,{hierarchicalMenu:Ge({},e.hierarchicalMenu,Qe({},w,n))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState;return n.hierarchicalMenu&&n.hierarchicalMenu[w]?e.clearRefinements(w).toggleRefinement(w,n.hierarchicalMenu[w].join(o)):e}}}}}),Gn({mapStateToCanRefine:tr})],components:{HierarchicalMenuList:er},props:{attributes:{type:Array,required:!0},limit:{type:Number,default:10},showMoreLimit:{type:Number,default:20},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:function(){return["name:asc"]}},separator:{type:String,default:" > "},rootPath:{type:String,default:null},showParentLevel:{type:Boolean,default:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attributes:this.attributes,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,separator:this.separator,rootPath:this.rootPath,showParentLevel:this.showParentLevel,sortBy:this.sortBy,transformItems:this.transformItems}},canRefine:function(){return tr(this.state)}}},rr={render:function(){var e=this.$createElement;return(this._self._c||e)("span",{class:this.suit(),domProps:{innerHTML:this._s(this.innerHTML)}})},staticRenderFns:[],name:"AisHighlight",mixins:[Un({name:"Highlight"})],props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}},computed:{innerHTML:function(){return Hn.highlight({attribute:this.attribute,hit:this.hit,highlightedTagName:this.highlightedTagName})}}},ir={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("ol",{class:e.suit("list")},e._l(e.items,(function(t,r){return n("li",{key:t.objectID,class:e.suit("item")},[e._t("item",[e._v("objectID: "+e._s(t.objectID)+", index: "+e._s(r))],{item:t,index:r,insights:e.state.insights})],2)})))],{items:e.items,insights:e.state.insights})],2):e._e()},staticRenderFns:[],name:"AisHits",mixins:[Yn({connector:ft}),Un({name:"Hits"})],props:{escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{items:function(){return this.state.hits},widgetParams:function(){return{escapeHTML:this.escapeHTML,transformItems:this.transformItems}}}},or={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],class:e.suit("select"),on:{change:[function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.selected=t.target.multiple?n:n[0]},e.handleChange]}},e._l(e.state.items,(function(t){return n("option",{key:t.value,class:e.suit("option"),domProps:{value:t.value}},[e._v(e._s(t.label))])})))],{items:e.state.items,refine:e.state.refine,hasNoResults:e.state.hasNoResults})],2):e._e()},staticRenderFns:[],name:"AisHitsPerPage",mixins:[Un({name:"HitsPerPage"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,gt()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.items,i=n.transformItems,o=void 0===i?function(e){return e}:i,a=r;if(!Array.isArray(a))throw new Error(gt("The `items` option expects an array of objects."));var s=a.filter((function(e){return e.default}));if(s.length>1)throw new Error(gt("More than one default value is specified in `items`."));var c=S(r,(function(e){return!0===e.default}));return{getConfiguration:function(){return s.length>0?{hitsPerPage:s[0].value}:{}},init:function(t){var r=t.helper,i=t.createURL,s=t.state,c=t.instantSearchInstance;a.some((function(e){return Number(s.hitsPerPage)===Number(e.value)}))||(E(void 0!==s.hitsPerPage,"\n`hitsPerPage` is not defined.\nThe option `hitsPerPage` needs to be set using the `configure` widget.\n\nLearn more: https://community.algolia.com/instantsearch.js/v2/widgets/configure.html\n "),E(!1,'\nThe `items` option of `hitsPerPage` does not contain the "hits per page" value coming from the state: '.concat(s.hitsPerPage,".\n\nYou may want to add another entry to the `items` option with this value.")),a=[{value:"",label:""}].concat(vt(a))),this.setHitsPerPage=function(e){return e||0===e?r.setQueryParameter("hitsPerPage",e).search():r.setQueryParameter("hitsPerPage",void 0).search()},this.createURL=function(e){return function(t){return i(e.setQueryParameter("hitsPerPage",t||0===t?t:void 0))}},e({items:o(this._normalizeItems(s)),refine:this.setHitsPerPage,createURL:this.createURL(r.state),hasNoResults:!0,widgetParams:n,instantSearchInstance:c},!0)},render:function(t){var r=t.state,i=t.results,a=t.instantSearchInstance,s=0===i.nbHits;e({items:o(this._normalizeItems(r)),refine:this.setHitsPerPage,createURL:this.createURL(r),hasNoResults:s,widgetParams:n,instantSearchInstance:a},!1)},_normalizeItems:function(e){var t=e.hitsPerPage;return a.map((function(e){return pt({},e,{isRefined:Number(e.value)===Number(t)})}))},dispose:function(){t()},getWidgetState:function(e,t){var n=t.searchParameters.hitsPerPage;return c&&n===c.value||void 0===n||e.hitsPerPage===n?e:pt({},e,{hitsPerPage:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return n.hitsPerPage?e.setQueryParameter("hitsPerPage",n.hitsPerPage):c?e.setQueryParameter("hitsPerPage",c.value):e.setQueryParameter("hitsPerPage",void 0)}}}}}),Gn({mapStateToCanRefine:function(e){return!e.hasNoResults}})],props:{items:{type:Array,required:!0,default:function(){return[]}},transformItems:{type:Function,default:function(e){return e}}},data:function(){return{selected:this.items.find((function(e){return!0===e.default})).value}},computed:{widgetParams:function(){return{items:this.items,transformItems:this.transformItems}}},methods:{handleChange:function(){this.state.refine(this.selected)}}};function ar(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),i.forEach((function(t){sr(e,t,r[t])}))}return e}function sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cr=function(e){return ar({mixins:[Un({name:"InstantSearch"})],provide:function(){return{instantSearchInstance:this.instantSearchInstance}},watch:{searchClient:function(e){this.instantSearchInstance.helper.setClient(e).search()},indexName:function(e){this.instantSearchInstance.helper.setIndex(e).search()},stalledSearchDelay:function(e){this.instantSearchInstance._stalledSearchDelay=e},routing:function(){throw new Error("routing configuration can not be changed dynamically at this point.\n\nPlease open a new issue: https://github.com/algolia/vue-instantsearch/issues/new?template=feature.md")},searchFunction:function(e){this.instantSearchInstance._searchFunction=e}},created:function(){var e=this.instantSearchInstance.client;"function"==typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("Vue ("+Vn.a.version+")"),e.addAlgoliaAgent("Vue InstantSearch (2.7.0)"))},mounted:function(){var e=this;this.$nextTick((function(){e.instantSearchInstance.started||e.instantSearchInstance.start()}))},beforeDestroy:function(){this.instantSearchInstance.started&&(this.instantSearchInstance.dispose(),this.instantSearchInstance.started=!1,this.instantSearchInstance.helper=null),this.instantSearchInstance.hydrated=!1}},e)},lr="Vue InstantSearch: You used the prop api-key or app-id.\nThese have been replaced by search-client.\n\nSee more info here: https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-search-client",ur=cr({name:"AisInstantSearch",props:{searchClient:{type:Object,required:!0},insightsClient:{type:Function,required:!1},indexName:{type:String,required:!0},routing:{default:null,validator:function(e){return!("boolean"==typeof e||!e.router||!e.stateMapping)||(Wn("routing should be an object, with `router` and `stateMapping`. See https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-routing"),!1)}},stalledSearchDelay:{type:Number,default:200},searchFunction:{type:Function,default:null},apiKey:{type:String,default:null,validator:function(e){return e&&Wn(lr),!1}},appId:{type:String,default:null,validator:function(e){return e&&Wn(lr),!1}}},data:function(){return{instantSearchInstance:Hn({searchClient:this.searchClient,insightsClient:this.insightsClient,indexName:this.indexName,routing:this.routing,stalledSearchDelay:this.stalledSearchDelay,searchFunction:this.searchFunction})}},render:function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!1,t)},this.$slots.default)}}),dr=cr({name:"AisInstantSearchSsr",inject:{$_ais:{default:function(){throw new Error("`rootMixin` is required when using SSR.")}}},data:function(){return{instantSearchInstance:this.$_ais}},render:function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!0,t)},this.$slots.default)}}),fr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e.showPrevious?e._t("loadPrevious",[n("button",{class:[e.suit("loadPrevious"),e.state.isFirstPage&&e.suit("loadPrevious","disabled")],attrs:{disabled:e.state.isFirstPage},on:{click:function(t){e.refinePrevious()}}},[e._v("Show previous results")])],{refinePrevious:e.refinePrevious,page:e.state.results.page,isFirstPage:e.state.isFirstPage}):e._e(),e._v(" "),e._t("default",[n("ol",{class:e.suit("list")},e._l(e.items,(function(t,r){return n("li",{key:t.objectID,class:e.suit("item")},[e._t("item",[e._v("objectID: "+e._s(t.objectID)+", index: "+e._s(r))],{item:t,index:r,insights:e.state.insights})],2)}))),e._v(" "),e._t("loadMore",[n("button",{class:[e.suit("loadMore"),e.state.isLastPage&&e.suit("loadMore","disabled")],attrs:{disabled:e.state.isLastPage},on:{click:function(t){e.refineNext()}}},[e._v("Show more results")])],{refineNext:e.refineNext,refine:e.refineNext,page:e.state.results.page,isLastPage:e.state.isLastPage})],{items:e.items,results:e.state.results,isLastPage:e.state.isLastPage,refinePrevious:e.refinePrevious,refineNext:e.refineNext,refine:e.refineNext,insights:e.state.insights})],2):e._e()},staticRenderFns:[],name:"AisInfiniteHits",mixins:[Yn({connector:At}),Un({name:"InfiniteHits"})],props:{showPrevious:{type:Boolean,default:!1},escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{showPrevious:this.showPrevious,escapeHTML:this.escapeHTML,transformItems:this.transformItems}},items:function(){return this.state.hits}},methods:{refinePrevious:function(){this.state.showPrevious()},refineNext:function(){this.state.showMore()}}},hr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("ul",{class:e.suit("list")},e._l(e.state.items,(function(t){return n("li",{key:t.value,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[n("a",{class:e.suit("link"),attrs:{href:e.state.createURL(t.value)},on:{click:function(n){n.preventDefault(),e.state.refine(t.value)}}},[n("span",{class:e.suit("label")},[e._v(e._s(t.label))]),e._v(" "),n("span",{class:e.suit("count")},[e._v(e._s(t.count))])])])}))),e._v(" "),e.showShowMoreButton?n("button",{class:[e.suit("showMore"),!e.state.canToggleShowMore&&e.suit("showMore","disabled")],attrs:{disabled:!e.state.canToggleShowMore},on:{click:function(t){t.preventDefault(),e.state.toggleShowMore()}}},[e._t("showMoreLabel",[e._v(e._s(e.state.isShowingMore?"Show less":"Show more"))],{isShowingMore:e.state.isShowingMore})],2):e._e()],{items:e.state.items,canRefine:e.state.canRefine,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,refine:e.state.refine,createURL:e.state.createURL,toggleShowMore:e.state.toggleShowMore})],2):e._e()},staticRenderFns:[],name:"AisMenu",mixins:[Un({name:"Menu"}),Yn({connector:Ot}),Gn({mapStateToCanRefine:function(e){return e.canRefine}})],props:{attribute:{type:String,required:!0},limit:{type:Number,default:10},showMoreLimit:{type:Number,default:20},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:function(){return["count:desc","name:asc"]}},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,transformItems:this.transformItems}},showShowMoreButton:function(){return this.state.canRefine&&this.showMore}}},pr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("select",{class:e.suit("select"),on:{change:function(t){e.refine(t.currentTarget.value)}}},[n("option",{class:e.suit("option"),attrs:{value:""}},[e._t("defaultOption",[e._v("See all")])],2),e._v(" "),e._l(e.state.items,(function(t){return n("option",{key:t.value,class:e.suit("option"),domProps:{value:t.value,selected:t.isRefined}},[e._t("item",[e._v(e._s(t.label)+" ("+e._s(t.count)+")")],{item:t})],2)}))],2)],{items:e.state.items,canRefine:e.state.canRefine,refine:e.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisMenuSelect",mixins:[Un({name:"MenuSelect"}),Yn({connector:Ot}),Gn({mapStateToCanRefine:function(e){return e.canRefine}})],props:{attribute:{type:String,required:!0},limit:{type:Number,default:10},sortBy:{type:[Array,Function],default:function(){return["name:asc"]}},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,sortBy:this.sortBy,transformItems:this.transformItems}}},methods:{refine:function(e){this.state.refine(e)}}},mr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("ul",{class:[e.suit("list")]},e._l(e.state.items,(function(t){return n("li",{key:t.label,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[n("label",{class:e.suit("label")},[n("input",{class:e.suit("radio"),attrs:{type:"radio",name:e.attribute},domProps:{value:t.value,checked:t.isRefined},on:{change:function(t){e.state.refine(t.target.value)}}}),e._v(" "),n("span",{class:e.suit("labelText")},[e._v(e._s(t.label))])])])})))],{items:e.state.items,canRefine:e.canRefine,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisNumericMenu",mixins:[Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Lt()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,i=n.items,o=n.transformItems,a=void 0===o?function(e){return e}:o;if(!r)throw new Error(Lt("The `attribute` option is required."));if(!i)throw new Error(Lt("The `items` option expects an array of objects."));return{init:function(t){var o=t.helper,s=t.createURL,c=t.instantSearchInstance;this._refine=function(e){var t=Ft(o.state,r,i,e);o.setState(t).search()},this._createURL=function(e){return function(t){return s(Ft(e,r,i,t))}},this._prepareItems=function(e){return i.map((function(t){var n=t.start,i=t.end;return{label:t.label,value:window.encodeURI(JSON.stringify({start:n,end:i})),isRefined:Bt(e,r,{start:n,end:i})}}))},e({createURL:this._createURL(o.state),items:a(this._prepareItems(o.state)),hasNoResults:!0,refine:this._refine,instantSearchInstance:c,widgetParams:n},!0)},render:function(t){var r=t.results,i=t.state,o=t.instantSearchInstance;e({createURL:this._createURL(i),items:a(this._prepareItems(i)),hasNoResults:0===r.nbHits,refine:this._refine,instantSearchInstance:o,widgetParams:n},!1)},dispose:function(e){var n=e.state;return t(),n.clearRefinements(r)},getWidgetState:function(e,t){var n=t.searchParameters.getNumericRefinements(r),i=n["="]&&n["="][0];if(i||0===i)return Nt({},e,{numericMenu:Nt({},e.numericMenu,Rt({},r,"".concat(n["="])))});var o=n[">="]&&n[">="][0]||"",a=n["<="]&&n["<="][0]||"";return""!==o||""!==a?e.numericMenu&&e.numericMenu[r]==="".concat(o,":").concat(a)?e:Nt({},e,{numericMenu:Nt({},e.numericMenu,Rt({},r,"".concat(o,":").concat(a)))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,i=e.clearRefinements(r),o=n.numericMenu&&n.numericMenu[r];if(!o)return i;var a=-1===o.indexOf(":")&&o;if(a)return i.addNumericRefinement(r,"=",a);var s=It(o.split(":").map(parseFloat),2),c=s[0],l=s[1];return Pt(c)&&(i=i.addNumericRefinement(r,">=",c)),Pt(l)&&(i=i.addNumericRefinement(r,"<=",l)),i}}}}}),Un({name:"NumericMenu"}),Gn({mapStateToCanRefine:function(e){return!e.hasNoResults}})],props:{attribute:{type:String,required:!0},items:{type:Array,required:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attribute:this.attribute,transformItems:this.transformItems,items:this.items}},canRefine:function(){return!this.state.hasNoResults}}},vr={render:function(){var e,t,n,r,i=this,o=i.$createElement,a=i._self._c||o;return i.state?a("div",{class:i.suit()},[i._t("default",[a("ul",{class:i.suit("list")},[i.showFirst?a("li",{class:(e={},e[i.suit("item")]=!0,e[i.suit("item","firstPage")]=!0,e[i.suit("item","disabled")]=i.state.isFirstPage,e)},[i._t("first",[i.state.isFirstPage?[a("span",{class:i.suit("link"),attrs:{"aria-label":"First"}},[i._v("‹‹")])]:[a("a",{class:i.suit("link"),attrs:{"aria-label":"First",href:i.state.createURL(0)},on:{click:function(e){e.preventDefault(),i.refine(0)}}},[i._v("‹‹")])]],{createURL:function(){return i.state.createURL(0)},isFirstPage:i.state.isFirstPage,refine:function(){return i.refine(0)}})],2):i._e(),i._v(" "),i.showPrevious?a("li",{class:(t={},t[i.suit("item")]=!0,t[i.suit("item","previousPage")]=!0,t[i.suit("item","disabled")]=i.state.isFirstPage,t)},[i._t("previous",[i.state.isFirstPage?[a("span",{class:i.suit("link"),attrs:{"aria-label":"Previous"}},[i._v("‹")])]:[a("a",{class:i.suit("link"),attrs:{"aria-label":"Previous",href:i.state.createURL(i.state.currentRefinement-1)},on:{click:function(e){e.preventDefault(),i.refine(i.state.currentRefinement-1)}}},[i._v("‹")])]],{createURL:function(){return i.state.createURL(i.state.currentRefinement-1)},isFirstPage:i.state.isFirstPage,refine:function(){return i.refine(i.state.currentRefinement-1)}})],2):i._e(),i._v(" "),i._l(i.state.pages,(function(e){var t;return a("li",{key:e,class:(t={},t[i.suit("item")]=!0,t[i.suit("item","selected")]=i.state.currentRefinement===e,t)},[i._t("item",[a("a",{class:i.suit("link"),attrs:{href:i.state.createURL(e)},on:{click:function(t){t.preventDefault(),i.refine(e)}}},[i._v(i._s(e+1))])],{page:e,createURL:function(){return i.state.createURL(e)},isFirstPage:i.state.isFirstPage,isLastPage:i.state.isLastPage,refine:function(){return i.refine(e)}})],2)})),i._v(" "),i.showNext?a("li",{class:(n={},n[i.suit("item")]=!0,n[i.suit("item","nextPage")]=!0,n[i.suit("item","disabled")]=i.state.isLastPage,n)},[i._t("next",[i.state.isLastPage?[a("span",{class:i.suit("link"),attrs:{"aria-label":"Next"}},[i._v("›")])]:[a("a",{class:i.suit("link"),attrs:{"aria-label":"Next",href:i.state.createURL(i.state.currentRefinement+1)},on:{click:function(e){e.preventDefault(),i.refine(i.state.currentRefinement+1)}}},[i._v("›")])]],{createURL:function(){return i.state.createURL(i.state.currentRefinement+1)},isLastPage:i.state.isLastPage,refine:function(){return i.refine(i.state.currentRefinement+1)}})],2):i._e(),i._v(" "),i.showLast?a("li",{class:(r={},r[i.suit("item")]=!0,r[i.suit("item","lastPage")]=!0,r[i.suit("item","disabled")]=i.state.isLastPage,r)},[i._t("last",[i.state.isLastPage?[a("span",{class:i.suit("link"),attrs:{"aria-label":"Last"}},[i._v("››")])]:[a("a",{class:i.suit("link"),attrs:{"aria-label":"Last",href:i.state.createURL(i.state.nbPages-1)},on:{click:function(e){e.preventDefault(),i.refine(i.state.nbPages-1)}}},[i._v("››")])]],{createURL:function(){return i.state.createURL(i.state.nbPages-1)},isLastPage:i.state.isLastPage,refine:function(){return i.refine(i.state.nbPages-1)}})],2):i._e()],2)],{refine:i.refine,createURL:i.state.createURL,currentRefinement:i.state.currentRefinement,nbHits:i.state.nbHits,nbPages:i.state.nbPages,pages:i.state.pages,isFirstPage:i.state.isFirstPage,isLastPage:i.state.isLastPage})],2):i._e()},staticRenderFns:[],name:"AisPagination",mixins:[Un({name:"Pagination"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Kt()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.totalPages,i=n.padding,o=void 0===i?3:i,a=new Ut({currentPage:0,total:0,padding:o});return{init:function(t){var r=t.helper,i=t.createURL,o=t.instantSearchInstance;this.refine=function(e){r.setPage(e),r.search()},this.createURL=function(e){return function(t){return i(e.setPage(t))}},e({createURL:this.createURL(r.state),currentRefinement:r.getPage()||0,nbHits:0,nbPages:0,pages:[],isFirstPage:!0,isLastPage:!0,refine:this.refine,widgetParams:n,instantSearchInstance:o},!0)},getMaxPage:function(e){var t=e.nbPages;return void 0!==r?Math.min(r,t):t},render:function(t){var r=t.results,i=t.state,o=t.instantSearchInstance,s=this.getMaxPage(r);a.currentPage=i.page,a.total=s,e({createURL:this.createURL(i),currentRefinement:i.page,refine:this.refine,nbHits:r.nbHits,nbPages:s,pages:a.pages(),isFirstPage:a.isFirstPage(),isLastPage:a.isLastPage(),widgetParams:n,instantSearchInstance:o},!1)},dispose:function(){t()},getWidgetState:function(e,t){var n=t.searchParameters.page;return 0===n||n+1===e.page?e:Wt({},e,{page:n+1})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return n.page?e.setQueryParameter("page",n.page-1):e.setQueryParameter("page",0)}}}}}),Gn({mapStateToCanRefine:function(e){return e.nbPages>1}})],props:{padding:{type:Number,default:3,validator:function(e){return e>0}},totalPages:{type:Number,default:void 0,validator:function(e){return e>0}},showFirst:{type:Boolean,default:!0},showLast:{type:Boolean,default:!0},showNext:{type:Boolean,default:!0},showPrevious:{type:Boolean,default:!0}},computed:{widgetParams:function(){return{padding:this.padding,totalPages:this.totalPages}}},methods:{refine:function(e){var t=Math.min(Math.max(e,0),this.state.nbPages-1);this.state.refine(t),this.$emit("page-change",t)}}},gr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e.$slots.header||e.$scopedSlots.header?n("div",{class:e.suit("header")},[e._t("header",null,{hasRefinements:e.canRefine})],2):e._e(),e._v(" "),n("div",{class:e.suit("body")},[e._t("default",null,{hasRefinements:e.canRefine})],2),e._v(" "),e.$slots.footer||e.$scopedSlots.footer?n("div",{class:e.suit("footer")},[e._t("footer",null,{hasRefinements:e.canRefine})],2):e._e()])},staticRenderFns:[],name:"AisPanel",mixins:[Un({name:"Panel"}),{props:{emitter:{type:Object,required:!1,default:function(){return new Vn.a({name:"PanelProvider"})}}},provide:function(){var e;return(e={}).instantSearchPanelEmitter=this.emitter,e},data:function(){return{canRefine:!0}},created:function(){var e=this;this.emitter.$on("PANEL_CHANGE_EVENT",(function(t){e.updateCanRefine(t)}))},beforeDestroy:function(){this.emitter.$destroy()},methods:{updateCanRefine:function(e){this.canRefine=e}}}]},br={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.suit()},[n("a",{class:e.suit("link"),attrs:{href:e.algoliaUrl,target:"_blank",rel:"noopener","aria-label":"search by Algolia"}},[n("svg",{class:[e.suit("logo"),e.suit("",e.theme)],staticStyle:{height:"1.2em",width:"auto"},attrs:{viewBox:"0 0 168 24"}},[n("path",{attrs:{fill:"dark"===e.theme?"#FFF":"#5D6494",d:"M6.97 6.68V8.3a4.47 4.47 0 0 0-2.42-.67 2.2 2.2 0 0 0-1.38.4c-.34.26-.5.6-.5 1.02 0 .43.16.77.49 1.03.33.25.83.53 1.51.83a7.04 7.04 0 0 1 1.9 1.08c.34.24.58.54.73.89.15.34.23.74.23 1.18 0 .95-.33 1.7-1 2.24a4 4 0 0 1-2.6.81 5.71 5.71 0 0 1-2.94-.68v-1.71c.84.63 1.81.94 2.92.94.58 0 1.05-.14 1.39-.4.34-.28.5-.65.5-1.13 0-.29-.1-.55-.3-.8a2.2 2.2 0 0 0-.65-.53 23.03 23.03 0 0 0-1.64-.78 13.67 13.67 0 0 1-1.11-.64c-.12-.1-.28-.22-.46-.4a1.72 1.72 0 0 1-.39-.5 4.46 4.46 0 0 1-.22-.6c-.07-.23-.1-.48-.1-.75 0-.91.33-1.63 1-2.17a4 4 0 0 1 2.57-.8c.97 0 1.8.18 2.47.52zm7.47 5.7v-.3a2.26 2.26 0 0 0-.5-1.44c-.3-.35-.74-.53-1.32-.53-.53 0-.99.2-1.37.58-.38.39-.62.95-.72 1.68h3.91zm1 2.79v1.4c-.6.34-1.38.51-2.36.51a4.02 4.02 0 0 1-3-1.13 4.04 4.04 0 0 1-1.11-2.97c0-1.3.34-2.32 1.02-3.06a3.38 3.38 0 0 1 2.6-1.1c1.03 0 1.85.32 2.46.96.6.64.9 1.57.9 2.78 0 .33-.03.68-.09 1.04h-5.31c.1.7.4 1.24.89 1.61.49.38 1.1.56 1.85.56.86 0 1.58-.2 2.15-.6zm6.61-1.78h-1.21c-.6 0-1.05.12-1.35.36-.3.23-.46.53-.46.89 0 .37.12.66.36.88.23.2.57.32 1.02.32.5 0 .9-.15 1.2-.43.3-.28.44-.65.44-1.1v-.92zm-4.07-2.55V9.33a4.96 4.96 0 0 1 2.5-.55c2.1 0 3.17 1.03 3.17 3.08V17H22.1v-.96c-.42.68-1.15 1.02-2.19 1.02-.76 0-1.38-.22-1.84-.66-.46-.44-.7-1-.7-1.68 0-.78.3-1.38.88-1.81.59-.43 1.4-.65 2.46-.65h1.34v-.46c0-.55-.13-.97-.4-1.25-.26-.29-.7-.43-1.32-.43-.86 0-1.65.24-2.35.72zm9.34-1.93v1.42c.39-1 1.1-1.5 2.12-1.5.15 0 .31.02.5.05v1.53c-.23-.1-.48-.14-.76-.14-.54 0-.99.24-1.34.71a2.8 2.8 0 0 0-.52 1.71V17h-1.57V8.91h1.57zm5 4.09a3 3 0 0 0 .76 2.01c.47.53 1.14.8 2 .8.64 0 1.24-.18 1.8-.53v1.4c-.53.32-1.2.48-2 .48a3.98 3.98 0 0 1-4.17-4.18c0-1.16.38-2.15 1.14-2.98a4 4 0 0 1 3.1-1.23c.7 0 1.34.15 1.92.44v1.44a3.24 3.24 0 0 0-1.77-.5A2.65 2.65 0 0 0 32.33 13zm7.92-7.28v4.58c.46-1 1.3-1.5 2.5-1.5.8 0 1.42.24 1.9.73.48.5.72 1.17.72 2.05V17H43.8v-5.1c0-.56-.14-.99-.43-1.29-.28-.3-.65-.45-1.1-.45-.54 0-1 .2-1.42.6-.4.4-.61 1.02-.61 1.85V17h-1.56V5.72h1.56zM55.2 15.74c.6 0 1.1-.25 1.5-.76.4-.5.6-1.16.6-1.95 0-.92-.2-1.62-.6-2.12-.4-.5-.92-.74-1.55-.74-.56 0-1.05.22-1.5.67-.44.45-.66 1.13-.66 2.06 0 .96.22 1.67.64 2.14.43.47.95.7 1.57.7zM53 5.72v4.42a2.74 2.74 0 0 1 2.43-1.34c1.03 0 1.86.38 2.51 1.15.65.76.97 1.78.97 3.05 0 1.13-.3 2.1-.92 2.9-.62.81-1.47 1.21-2.54 1.21s-1.9-.45-2.46-1.34V17h-1.58V5.72H53zm9.9 11.1l-3.22-7.9h1.74l1 2.62 1.26 3.42c.1-.32.48-1.46 1.15-3.42l.91-2.63h1.66l-2.92 7.87c-.78 2.07-1.96 3.1-3.56 3.1-.28 0-.53-.02-.73-.07v-1.34c.17.04.35.06.54.06 1.03 0 1.76-.57 2.17-1.7z"}}),e._v(" "),n("path",{attrs:{fill:"#5468FF",d:"M78.99.94h16.6a2.97 2.97 0 0 1 2.96 2.96v16.6a2.97 2.97 0 0 1-2.97 2.96h-16.6a2.97 2.97 0 0 1-2.96-2.96V3.9A2.96 2.96 0 0 1 79 .94"}}),e._v(" "),n("path",{attrs:{fill:"#FFF",d:"M89.63 5.97v-.78a.98.98 0 0 0-.98-.97h-2.28a.98.98 0 0 0-.97.97V6c0 .09.08.15.17.13a7.13 7.13 0 0 1 3.9-.02c.08.02.16-.04.16-.13m-6.25 1L83 6.6a.98.98 0 0 0-1.38 0l-.46.46a.97.97 0 0 0 0 1.38l.38.39c.06.06.15.04.2-.02a7.49 7.49 0 0 1 1.63-1.62c.07-.04.08-.14.02-.2m4.16 2.45v3.34c0 .1.1.17.2.12l2.97-1.54c.06-.03.08-.12.05-.18a3.7 3.7 0 0 0-3.08-1.87c-.07 0-.14.06-.14.13m0 8.05a4.49 4.49 0 1 1 0-8.98 4.49 4.49 0 0 1 0 8.98m0-10.85a6.37 6.37 0 1 0 0 12.74 6.37 6.37 0 0 0 0-12.74"}}),e._v(" "),n("path",{attrs:{fill:"dark"===e.theme?"#FFF":"#5468FF",d:"M120.92 18.8c-4.38.02-4.38-3.54-4.38-4.1V1.36l2.67-.42v13.25c0 .32 0 2.36 1.71 2.37v2.24zm-10.84-2.18c.82 0 1.43-.04 1.85-.12v-2.72a5.48 5.48 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.11-.44.28-.58.49a.93.93 0 0 0-.22.65c0 .63.22 1 .61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.62.11 2.23.33.6.22 1.09.53 1.44.92.36.4.61.92.76 1.48.16.56.23 1.17.23 1.85v6.87c-.4.1-1.03.2-1.86.32-.84.12-1.78.18-2.82.18-.69 0-1.32-.07-1.9-.2a4 4 0 0 1-1.46-.63c-.4-.3-.72-.67-.96-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.39-1.53.26-.45.6-.82 1.04-1.1.45-.3.95-.5 1.54-.62a8.8 8.8 0 0 1 3.79.05v-.44c0-.3-.04-.6-.11-.87a1.78 1.78 0 0 0-1.1-1.22c-.31-.12-.7-.2-1.15-.2a9.75 9.75 0 0 0-2.95.46l-.33-2.19c.34-.12.84-.23 1.48-.35.65-.12 1.34-.18 2.08-.18zm52.84 9.63c.82 0 1.43-.05 1.85-.13V13.7a5.42 5.42 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.12-.44.28-.58.5a.93.93 0 0 0-.22.65c0 .63.22.99.61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.63.11 2.23.33.6.22 1.1.53 1.45.92.35.39.6.92.76 1.48.15.56.23 1.18.23 1.85v6.88c-.41.08-1.03.19-1.87.31-.83.12-1.77.18-2.81.18-.7 0-1.33-.06-1.9-.2a4 4 0 0 1-1.47-.63c-.4-.3-.72-.67-.95-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.38-1.53.26-.45.61-.82 1.05-1.1.44-.3.95-.5 1.53-.62a8.8 8.8 0 0 1 3.8.05v-.43c0-.31-.04-.6-.12-.88-.07-.28-.2-.52-.38-.73a1.78 1.78 0 0 0-.73-.5c-.3-.1-.68-.2-1.14-.2a9.85 9.85 0 0 0-2.95.47l-.32-2.19a11.63 11.63 0 0 1 3.55-.53zm-8.03-1.27a1.62 1.62 0 0 0 0-3.24 1.62 1.62 0 1 0 0 3.24zm1.35 13.22h-2.7V7.27l2.7-.42V18.8zm-4.72 0c-4.38.02-4.38-3.54-4.38-4.1l-.01-13.34 2.67-.42v13.25c0 .32 0 2.36 1.72 2.37v2.24zm-8.7-5.9a4.7 4.7 0 0 0-.74-2.79 2.4 2.4 0 0 0-2.07-1 2.4 2.4 0 0 0-2.06 1 4.7 4.7 0 0 0-.74 2.8c0 1.16.25 1.94.74 2.62a2.4 2.4 0 0 0 2.07 1.02c.88 0 1.57-.34 2.07-1.02.49-.68.73-1.46.73-2.63zm2.74 0a6.46 6.46 0 0 1-1.52 4.23c-.49.53-1.07.94-1.76 1.22-.68.29-1.73.45-2.26.45-.53 0-1.58-.15-2.25-.45a5.1 5.1 0 0 1-2.88-3.13 7.3 7.3 0 0 1-.01-4.84 5.13 5.13 0 0 1 2.9-3.1 5.67 5.67 0 0 1 2.22-.42c.81 0 1.56.14 2.24.42.69.29 1.28.69 1.75 1.22.49.52.87 1.15 1.14 1.89a7 7 0 0 1 .43 2.5zm-20.14 0c0 1.11.25 2.36.74 2.88.5.52 1.13.78 1.91.78a4.07 4.07 0 0 0 2.12-.6V9.33c-.19-.04-.99-.2-1.76-.23a2.67 2.67 0 0 0-2.23 1 4.73 4.73 0 0 0-.78 2.8zm7.44 5.27c0 1.82-.46 3.16-1.4 4-.94.85-2.37 1.27-4.3 1.27-.7 0-2.17-.13-3.34-.4l.43-2.11c.98.2 2.27.26 2.95.26 1.08 0 1.84-.22 2.3-.66.46-.43.68-1.08.68-1.94v-.44a5.2 5.2 0 0 1-2.54.6 5.6 5.6 0 0 1-2.01-.36 4.2 4.2 0 0 1-2.58-2.71 9.88 9.88 0 0 1 .02-5.35 4.92 4.92 0 0 1 2.93-2.96 6.6 6.6 0 0 1 2.43-.46 19.64 19.64 0 0 1 4.43.66v10.6z"}})])])])},staticRenderFns:[],name:"AisPoweredBy",mixins:[Un({name:"PoweredBy"})],props:{theme:{default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},computed:{algoliaUrl:function(){return"https://www.algolia.com/?utm_source=vue-instantsearch&utm_medium=website&utm_content="+(location?location.hostname:"")+"&utm_campaign=poweredby"}}},yr={name:"AisQueryRuleContext",mixins:[Un({name:"QueryRuleContext"}),Yn({connector:tn})],props:{trackedFilters:{type:Object,required:!0},transformRuleContexts:{type:Function,required:!1,default:function(e){return e}}},computed:{widgetParams:function(){return{trackedFilters:this.trackedFilters,transformRuleContexts:this.transformRuleContexts}}},render:function(){return null}},kr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",e._l(e.state.items,(function(t,r){return n("div",{key:r},[e._t("item",[n("pre",[e._v(e._s(t))])],{item:t})],2)})),{items:e.state.items})],2):e._e()},staticRenderFns:[],name:"AisQueryRuleCustomData",mixins:[Un({name:"QueryRuleCustomData"}),Yn({connector:tn})],props:{transformItems:{type:Function,required:!1,default:function(e){return e}}},computed:{widgetParams:function(){return{transformItems:this.transformItems}}}},wr=function(e){return e&&e.range&&e.range.min!==e.range.max},_r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("form",{class:e.suit("form"),on:{submit:function(t){t.preventDefault(),e.refine({min:e.minInput,max:e.maxInput})}}},[n("label",{class:e.suit("label")},[e._t("minLabel"),e._v(" "),n("input",{class:[e.suit("input"),e.suit("input","min")],attrs:{type:"number",step:e.step,min:e.state.range.min,max:e.state.range.max,placeholder:e.state.range.min},domProps:{value:e.values.min},on:{change:function(t){e.minInput=t.currentTarget.value}}})],2),e._v(" "),n("span",{class:e.suit("separator")},[e._t("separator",[e._v("to")])],2),e._v(" "),n("label",{class:e.suit("label")},[e._t("maxLabel"),e._v(" "),n("input",{class:[e.suit("input"),e.suit("input","max")],attrs:{type:"number",step:e.step,min:e.state.range.min,max:e.state.range.max,placeholder:e.state.range.max},domProps:{value:e.values.max},on:{change:function(t){e.maxInput=t.currentTarget.value}}})],2),e._v(" "),n("button",{class:e.suit("submit"),attrs:{type:"submit"}},[e._t("submitLabel",[e._v("Go")])],2)])],{currentRefinement:e.values,refine:e.refine,canRefine:e.canRefine,range:e.state.range})],2):e._e()},staticRenderFns:[],name:"AisRangeInput",mixins:[Un({name:"RangeInput"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,sn()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,i=n.min,o=n.max,a=n.precision,s=void 0===a?2:a;if(!r)throw new Error(sn("The `attribute` option is required."));var c=Pt(i),l=Pt(o),u=function(e){return Number(Number(e).toFixed(s))},d={from:function(e){return e},to:function(e){return u(e).toLocaleString()}};return{_getCurrentRange:function(e){var t,n,r=Math.pow(10,s);return t=c?i:Pt(e.min)?e.min:0,n=l?o:Pt(e.max)?e.max:0,{min:Math.floor(t*r)/r,max:Math.ceil(n*r)/r}},_getCurrentRefinement:function(e){var t=an(e.getNumericRefinement(r,">=")||[],1)[0],n=an(e.getNumericRefinement(r,"<=")||[],1)[0];return[Pt(t)?t:-1/0,Pt(n)?n:1/0]},_refine:function(e,t){return function(){var n,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],d=an(s,2),f=d[0],h=d[1],p=t.min,m=t.max,v=e.getNumericRefinement(r,">=")||[],g=an(v,1),b=g[0],y=e.getNumericRefinement(r,"<=")||[],k=an(y,1),w=k[0],_=void 0===f||""===f,C=void 0===h||""===h,A=_?void 0:parseFloat(f),x=C?void 0:parseFloat(h);a=l||m!==x?l&&C?o:x:void 0;var S=void 0===(n=c||p!==A?c&&_?i:A:void 0),M=Pt(n),E=Pt(p),T=E&&p<=n,D=S||M&&(!E||T),O=void 0===a,P=Pt(a),I=Pt(m),j=I&&m>=a,N=O||P&&(!I||j),R=b!==n,L=w!==a;(R||L)&&D&&N&&(e.clearRefinements(r),M&&e.addNumericRefinement(r,">=",u(n)),P&&e.addNumericRefinement(r,"<=",u(a)),e.search())}},getConfiguration:function(e){var t={disjunctiveFacets:[r]},n=c||l,a=e&&e.numericRefinements&&void 0!==e.numericRefinements[r],s=Pt(i),u=Pt(o);return n&&!a&&(s&&u?i<o:s||u)&&(t.numericRefinements=on({},r,{}),c&&(t.numericRefinements[r][">="]=[i]),l&&(t.numericRefinements[r]["<="]=[o])),t},init:function(t){var r=t.helper,i=t.instantSearchInstance,o=this._getCurrentRange({}),a=this._getCurrentRefinement(r);e({refine:this._refine(r,{}),format:d,range:o,widgetParams:rn({},n,{precision:s}),start:a,instantSearchInstance:i},!0)},render:function(t){var i=t.results,o=t.helper,a=t.instantSearchInstance,c=i.disjunctiveFacets||[],l=S(c,(function(e){return e.name===r})),u=l&&l.stats||{},f=this._getCurrentRange(u),h=this._getCurrentRefinement(o);e({refine:this._refine(o,f),format:d,range:f,widgetParams:rn({},n,{precision:s}),start:h,instantSearchInstance:a},!1)},dispose:function(e){var n=e.state;return t(),n.removeNumericRefinement(r).removeDisjunctiveFacet(r)},getWidgetState:function(e,t){var n=t.searchParameters.getNumericRefinements(r),i=n[">="],o=void 0===i?"":i,a=n["<="],s=void 0===a?"":a;return""===o&&""===s||e&&e.range&&e.range[r]==="".concat(o,":").concat(s)?e:rn({},e,{range:rn({},e.range,on({},r,"".concat(o,":").concat(s)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,i=n&&n.range&&n.range[r];if(!i||-1===i.indexOf(":"))return e;var o=e.getNumericRefinements(r),a=o[">="],s=void 0===a?[NaN]:a,c=o["<="],l=void 0===c?[NaN]:c,u=e.clearRefinements(r),d=an(i.split(":").map(parseFloat),2),f=d[0],h=d[1];return s.includes(f)&&l.includes(h)?e:(Pt(f)&&(u=u.addNumericRefinement(r,">=",f)),Pt(h)&&(u=u.addNumericRefinement(r,"<=",h)),u)}}}}}),Gn({mapStateToCanRefine:wr})],props:{attribute:{type:String,required:!0},min:{type:Number,required:!1,default:-1/0},max:{type:Number,required:!1,default:1/0},precision:{type:Number,required:!1,default:0}},data:function(){return{minInput:void 0,maxInput:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,min:this.min,max:this.max,precision:this.precision}},canRefine:function(){return wr(this.state)},step:function(){return 1/Math.pow(10,this.precision)},values:function(){var e=this.state.start,t=e[0],n=e[1],r=this.state.range,i=r.min,o=r.max;return{min:t!==-1/0&&t!==i?t:null,max:n!==1/0&&n!==o?n:null}}},methods:{refine:function(e){var t=e.min,n=e.max;this.state.refine([t,n])}}},Cr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("svg",{staticStyle:{display:"none"},attrs:{xmlns:"http://www.w3.org/2000/svg"}},[n("symbol",{attrs:{id:"ais-RatingMenu-starSymbol",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"}})]),e._v(" "),n("symbol",{attrs:{id:"ais-RatingMenu-starEmptySymbol",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"}})])]),e._v(" "),n("ul",{class:e.suit("list")},e._l(e.state.items,(function(t,r){return n("li",{key:r,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[n("a",{class:e.suit("link"),attrs:{href:e.state.createURL(t),"aria-label":t.value+" & Up"},on:{click:function(n){n.preventDefault(),e.state.refine(t.value)}}},[e._l(t.stars,(function(t,r){return[t?n("svg",{key:r,class:[e.suit("starIcon"),e.suit("starIcon--full")],attrs:{"aria-hidden":"true",width:"24",height:"24"}},[n("use",{attrs:{"xlink:href":"#ais-RatingMenu-starSymbol"}})]):n("svg",{key:r,class:[e.suit("starIcon"),e.suit("starIcon--empty")],attrs:{"aria-hidden":"true",width:"24",height:"24"}},[n("use",{attrs:{"xlink:href":"#ais-RatingMenu-starEmptySymbol"}})])]})),e._v(" "),n("span",{class:e.suit("label"),attrs:{"aria-hidden":"true"}},[e._t("andUp",[e._v("& Up")])],2),e._v(" "),n("span",{class:e.suit("count")},[e._v(e._s(t.count))])],2)])})))],{items:e.state.items,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisRatingMenu",mixins:[Un({name:"RatingMenu"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,dn()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,i=n.max,o=void 0===i?5:i;if(!r)throw new Error(dn("The `attribute` option is required."));return{getConfiguration:function(){return{disjunctiveFacets:[r]}},init:function(t){var i=t.helper,o=t.createURL,a=t.instantSearchInstance;this._toggleRefinement=this._toggleRefinement.bind(this,i),this._createURL=function(e){return function(t){return o(e.toggleRefinement(r,t))}},e({instantSearchInstance:a,items:[],hasNoResults:!0,refine:this._toggleRefinement,createURL:this._createURL(i.state),widgetParams:n},!0)},render:function(t){for(var i=t.helper,a=t.results,s=t.state,c=t.instantSearchInstance,l=[],u={},d=o;d>=0;--d)u[d]=0;a.getFacetValues(r).forEach((function(e){var t=Math.round(e.name);if(t&&!(t>o))for(var n=t;n>=1;--n)u[n]+=e.count}));for(var f=this._getRefinedStar(i.state),h=o-1;h>=1;--h){var p=u[h];if(!f||h===f||0!==p){for(var m=[],v=1;v<=o;++v)m.push(v<=h);l.push({stars:m,name:String(h),value:String(h),count:p,isRefined:f===h})}}e({instantSearchInstance:c,items:l,hasNoResults:0===a.nbHits,refine:this._toggleRefinement,createURL:this._createURL(s),widgetParams:n},!1)},dispose:function(e){var n=e.state;return t(),n.removeDisjunctiveFacetRefinement(r).removeDisjunctiveFacet(r)},getWidgetState:function(e,t){var n=t.searchParameters,i=this._getRefinedStar(n);return void 0===i||e&&e.ratingMenu&&e.ratingMenu[r]===i?e:ln({},e,{ratingMenu:ln({},e.ratingMenu,un({},r,i))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,i=n.ratingMenu&&n.ratingMenu[r];if(i===this._getRefinedStar(e))return e;var a=e.clearRefinements(r);if(void 0!==i)for(var s=Number(i);s<=o;++s)a=a.addDisjunctiveFacetRefinement(r,s);return a},_toggleRefinement:function(e,t){var n=this._getRefinedStar(e.state)===Number(t);if(e.clearRefinements(r),!n)for(var i=Number(t);i<=o;++i)e.addDisjunctiveFacetRefinement(r,i);e.search()},_getRefinedStar:function(e){var t=void 0;return e.getDisjunctiveRefinements(r).forEach((function(e){(!t||Number(e)<t)&&(t=Number(e))})),t}}}}}),Gn({mapStateToCanRefine:function(e){return!e.hasNoResults}})],props:{attribute:{type:String,required:!0},max:{type:Number,default:5}},computed:{widgetParams:function(){return{attribute:this.attribute,max:this.max}}}},Ar={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{class:e.suit("form"),attrs:{action:"",role:"search",novalidate:""},on:{submit:function(t){return t.preventDefault(),e.onFormSubmit(t)},reset:function(t){return t.preventDefault(),e.onFormReset(t)}}},[n("input",{ref:"input",class:e.suit("input"),attrs:{type:"search",autocorrect:"off",autocapitalize:"off",autocomplete:"off",spellcheck:"false",required:"",maxlength:"512","aria-label":"Search",placeholder:e.placeholder,autofocus:e.autofocus},domProps:{value:e.value},on:{focus:function(t){e.$emit("focus",t)},blur:function(t){e.$emit("blur",t)},input:function(t){e.$emit("input",t.target.value)}}}),e._v(" "),n("button",{class:e.suit("submit"),attrs:{type:"submit",title:e.submitTitle,hidden:e.showLoadingIndicator&&e.shouldShowLoadingIndicator}},[e._t("submit-icon",[n("svg",{class:e.suit("submitIcon"),attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40"}},[n("path",{attrs:{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z",fillRule:"evenodd"}})])])],2),e._v(" "),n("button",{class:e.suit("reset"),attrs:{type:"reset",title:e.resetTitle,hidden:!e.value||e.showLoadingIndicator&&e.shouldShowLoadingIndicator}},[e._t("reset-icon",[n("svg",{class:e.suit("resetIcon"),attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20"}},[n("path",{attrs:{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z",fillRule:"evenodd"}})])])],2),e._v(" "),e.showLoadingIndicator?n("span",{class:e.suit("loadingIndicator"),attrs:{hidden:!e.shouldShowLoadingIndicator}},[e._t("loading-indicator",[n("svg",{class:e.suit("loadingIcon"),attrs:{role:"img","aria-label":"Results are loading",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",viewBox:"0 0 38 38"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(1 1)","stroke-width":"2"}},[n("circle",{attrs:{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}}),e._v(" "),n("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}})],1)])])])])],2):e._e()])},staticRenderFns:[],name:"SearchInput",mixins:[Un({name:"SearchBox"})],props:{placeholder:{type:String,default:"Search here…"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},shouldShowLoadingIndicator:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,required:!0}},data:function(){return{query:""}},methods:{onFormSubmit:function(){this.$refs.input.blur()},onFormReset:function(){this.$emit("input",""),this.$emit("reset")}}},xr=function(){},Sr={render:function(){var e,t=this,n=t.$createElement,r=t._self._c||n;return t.state?r("div",{class:[t.suit(),!t.state.canRefine&&t.suit("","noRefinement")]},[t._t("default",[t.searchable?r("div",{class:t.suit("searchBox")},[r("search-input",{attrs:{placeholder:t.searchablePlaceholder,"class-names":t.classNames},model:{value:t.searchForFacetValues,callback:function(e){t.searchForFacetValues=e},expression:"searchForFacetValues"}})],1):t._e(),t._v(" "),t.state.isFromSearch&&0===t.items.length?t._t("noResults",[r("div",{class:t.suit("noResults")},[t._v("No results.")])],{query:t.searchForFacetValues}):t._e(),t._v(" "),r("ul",{class:t.suit("list")},t._l(t.items,(function(e){return r("li",{key:e.value,class:[t.suit("item"),e.isRefined&&t.suit("item","selected")]},[t._t("item",[r("label",{class:t.suit("label")},[r("input",{class:t.suit("checkbox"),attrs:{type:"checkbox"},domProps:{value:e.value,checked:e.isRefined},on:{change:function(n){t.refine(e.value)}}}),t._v(" "),t.searchable?r("span",{class:t.suit("labelText")},[r("ais-highlight",{attrs:{attribute:"item",hit:e}})],1):r("span",{class:t.suit("labelText")},[t._v(t._s(e.label))]),t._v(" "),r("span",{class:t.suit("count")},[t._v(t._s(e.count))])])],{item:e,refine:t.refine,createURL:t.state.createURL})],2)}))),t._v(" "),t.showMore?r("button",{class:[t.suit("showMore"),(e={},e[t.suit("showMore","disabled")]=!t.state.canToggleShowMore,e)],attrs:{disabled:!t.state.canToggleShowMore},on:{click:t.toggleShowMore}},[t._t("showMoreLabel",[t._v("Show "+t._s(t.state.isShowingMore?"less":"more"))],{isShowingMore:t.state.isShowingMore})],2):t._e()],{items:t.items,refine:t.refine,searchForItems:t.state.searchForItems,searchForItemsQuery:t.searchForFacetValuesQuery,toggleShowMore:t.toggleShowMore,canToggleShowMore:t.state.canToggleShowMore,isShowingMore:t.state.isShowingMore,createURL:t.state.createURL,isFromSearch:t.state.isFromSearch,canRefine:t.state.canRefine})],2):t._e()},staticRenderFns:[],name:"AisRefinementList",components:{SearchInput:Ar,AisHighlight:rr},mixins:[Un({name:"RefinementList"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,vn()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,i=n.operator,o=void 0===i?"or":i,a=n.limit,s=void 0===a?10:a,c=n.showMore,l=void 0!==c&&c,u=n.showMoreLimit,d=void 0===u?20:u,f=n.sortBy,h=void 0===f?["isRefined","count:desc","name:asc"]:f,g=n.escapeFacetValues,b=void 0===g||g,y=n.transformItems,w=void 0===y?function(e){return e}:y;if(!r)throw new Error(vn("The `attribute` option is required."));if(!/^(and|or)$/.test(o))throw new Error(vn('The `operator` must one of: `"and"`, `"or"` (got "'.concat(o,'").')));if(!0===l&&d<=s)throw new Error(vn("`showMoreLimit` should be greater than `limit`."));var _,C,A=function(e){var t=e.name;return hn({},mn(e,["name"]),{label:t,value:t,highlighted:t})},x=function(e){return e?d:s},S=[],M=!0,E=function(t){var i=t.items,o=t.state,a=t.createURL,c=t.helperSpecializedSearchFacetValues,u=t.refine,d=t.isFromSearch,f=t.isFirstSearch,h=t.isShowingMore,p=t.toggleShowMore,m=t.instantSearchInstance,v=c&&c(o,a,c,u,m,h),g=h&&S.length>s||l&&!d&&!M;e({createURL:function(e){return a(o.toggleRefinement(r,e))},items:i,refine:u,searchForItems:v,instantSearchInstance:m,isFromSearch:d,canRefine:d||i.length>0,widgetParams:n,isShowingMore:h,canToggleShowMore:g,toggleShowMore:p,hasExhaustiveItems:M},f)},T=function(e,t){return function(n,i,o,a,s,c){return function(l){if(""===l&&S)E({items:S,state:n,createURL:i,helperSpecializedSearchFacetValues:o,refine:a,isFromSearch:!1,isFirstSearch:!1,instantSearchInstance:s,toggleShowMore:t,isShowingMore:c});else{var u={highlightPreTag:b?p.highlightPreTag:m,highlightPostTag:b?p.highlightPostTag:v};e.searchForFacetValues(r,l,x(c),u).then((function(e){var t=b?k(e.facetHits):e.facetHits,r=w(t.map((function(e){var t=e.value;return hn({},mn(e,["value"]),{value:t,label:t})})));E({items:r,state:n,createURL:i,helperSpecializedSearchFacetValues:o,refine:a,isFromSearch:!0,isFirstSearch:!1,instantSearchInstance:s,isShowingMore:c})}))}}}};return{isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this;return function(){t.isShowingMore=!t.isShowingMore,t.render(e)}},getLimit:function(){return x(this.isShowingMore)},getConfiguration:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=pn({},"and"===o?"facets":"disjunctiveFacets",[r]),n=e.maxValuesPerFacet||0;return t.maxValuesPerFacet=Math.max(n,l?d:s),t},init:function(e){var t=e.helper,n=e.createURL,i=e.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),C=function(e){return t.toggleRefinement(r,e).search()},_=T(t,this.cachedToggleShowMore),E({items:[],state:t.state,createURL:n,helperSpecializedSearchFacetValues:_,refine:C,isFromSearch:!1,isFirstSearch:!0,instantSearchInstance:i,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore})},render:function(e){var t=e.results,n=e.state,i=e.createURL,o=e.instantSearchInstance,a=t.getFacetValues(r,{sortBy:h}),s=w(a.slice(0,this.getLimit()).map(A)),c=n.getQueryParameter("maxValuesPerFacet"),l=this.getLimit();M=c>l?a.length<=l:a.length<l,S=s,this.toggleShowMore=this.createToggleShowMore(e),E({items:s,state:n,createURL:i,helperSpecializedSearchFacetValues:_,refine:C,isFromSearch:!1,isFirstSearch:!1,instantSearchInstance:o,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore})},dispose:function(e){var n=e.state;return t(),"and"===o?n.removeFacetRefinement(r).removeFacet(r):n.removeDisjunctiveFacetRefinement(r).removeDisjunctiveFacet(r)},getWidgetState:function(e,t){var n=t.searchParameters,i="or"===o?n.getDisjunctiveRefinements(r):n.getConjunctiveRefinements(r);return 0===i.length||e.refinementList&&D(i,e.refinementList[r])?e:hn({},e,{refinementList:hn({},e.refinementList,pn({},r,i))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,i=n.refinementList&&n.refinementList[r];return void 0===i?e:i.reduce((function(e,t){return"or"===o?e.addDisjunctiveFacetRefinement(r,t):e.addFacetRefinement(r,t)}),e.clearRefinements(r))}}}}}),Gn({mapStateToCanRefine:function(e){return e.canRefine}})],props:{attribute:{type:String,required:!0},searchable:{type:Boolean,default:!1},searchablePlaceholder:{default:"Search here…",type:String,required:!1},operator:{default:"or",validator:function(e){return"and"===e||"or"===e},required:!1},limit:{type:Number,default:10,required:!1},showMoreLimit:{type:Number,default:20,required:!1},showMore:{type:Boolean,default:!1,required:!1},sortBy:{type:[Array,Function],default:function(){return["isRefined","count:desc","name:asc"]},required:!1},transformItems:{type:Function,default:function(e){return e},required:!1}},data:function(){return{searchForFacetValuesQuery:""}},computed:{searchForFacetValues:{get:function(){return this.searchForFacetValuesQuery},set:function(e){this.state.searchForItems(e),this.searchForFacetValuesQuery=e}},toggleShowMore:function(){return this.state.toggleShowMore||xr},items:function(){return this.state.items.map((function(e){return Object.assign({},e,{_highlightResult:{item:{value:e.highlighted}}})}))},widgetParams:function(){return{attribute:this.attribute,operator:this.operator,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,escapeFacetValues:!0,transformItems:this.transformItems}}},methods:{refine:function(e){this.state.refine(e),this.searchForFacetValuesQuery=""}}},Mr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state&&e.state.state&&e.state.results?n("div",{class:e.suit()},[e._t("default",[n("p",[e._v(" Use this component to have a different layout based on a certain state. ")]),e._v(" "),e._m(0),e._v(" "),n("pre",[e._v("results: "+e._s(Object.keys(e.state.results)))]),e._v(" "),n("pre",[e._v("state: "+e._s(Object.keys(e.state.state)))])],null,e.stateResults)],2):e._e()},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",[this._v(" Fill in the slot, and get access to the following things on the "),t("code",[this._v("slot-scope")]),this._v(": ")])}],name:"AisStateResults",mixins:[Yn({connector:function(e,t){return void 0===t&&(t=function(){}),function(n){return void 0===n&&(n={}),{init:function(t){var r=t.instantSearchInstance;e({state:void 0,results:void 0,instantSearchInstance:r,widgetParams:n},!0)},render:function(t){var r=t.results,i=t.instantSearchInstance,o=t.state,a=ar({},r),s=ar({},o);e({results:a,state:s,instantSearchInstance:i,widgetParams:n},!1)},dispose:function(){t()}}}}}),Un({name:"StateResults"})],computed:{stateResults:function(){var e=this.state,t=e.state,n=e.results;return ar({},n,{results:n,state:t})}}},Er={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("search-input",{attrs:{placeholder:e.placeholder,autofocus:e.autofocus,"show-loading-indicator":e.showLoadingIndicator,"should-show-loading-indicator":e.state.isSearchStalled,"submit-title":e.submitTitle,"reset-title":e.resetTitle,"class-names":e.classNames},on:{focus:function(t){e.$emit("focus",t)},blur:function(t){e.$emit("blur",t)},reset:function(t){e.$emit("reset")}},model:{value:e.currentRefinement,callback:function(t){e.currentRefinement=t},expression:"currentRefinement"}},[e._t("loading-indicator",null,{slot:"loading-indicator"}),e._v(" "),e._t("submit-icon",null,{slot:"submit-icon"}),e._v(" "),e._t("reset-icon",null,{slot:"reset-icon"})],2)],{currentRefinement:e.currentRefinement,isSearchStalled:e.state.isSearchStalled,refine:e.state.refine})],2):e._e()},staticRenderFns:[],name:"AisSearchBox",mixins:[Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,kn()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.queryHook;function i(e){return function(){e.setQuery(""),e.search()}}return{_clear:function(){},_cachedClear:function(){this._clear()},init:function(t){var o,a,s=t.helper,c=t.instantSearchInstance;this._cachedClear=this._cachedClear.bind(this),this._clear=i(s),this._refine=(a=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e!==s.state.query&&(o=s.state.query,s.setQuery(e)),t&&void 0!==o&&o!==e&&s.search()},r?function(e){return r(e,a)}:a),e({query:s.state.query,refine:this._refine,clear:this._cachedClear,widgetParams:n,instantSearchInstance:c},!0)},render:function(t){var r=t.helper,o=t.instantSearchInstance,a=t.searchMetadata;this._clear=i(r),e({query:r.state.query,refine:this._refine,clear:this._cachedClear,widgetParams:n,instantSearchInstance:o,isSearchStalled:a.isSearchStalled},!1)},dispose:function(e){var n=e.state;return t(),n.setQuery("")},getWidgetState:function(e,t){var n=t.searchParameters.query;return""===n||e&&e.query===n?e:bn({},e,{query:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQuery(n.query||"")}}}}}),Un({name:"SearchBox"})],components:{SearchInput:Ar},props:{placeholder:{type:String,default:"Search here…"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,default:void 0}},data:function(){return{localValue:""}},methods:{onFormSubmit:function(){this.$el.querySelector("input[type=search]").blur()},onFormReset:function(){this.state.refine("")}},computed:{isControlled:function(){return void 0!==this.value},currentRefinement:{get:function(){return this.isControlled&&this.value!==this.localValue&&(this.localValue=this.value,this.$emit("input",this.value),this.state.refine(this.value)),this.value||this.state.query||""},set:function(e){this.localValue=e,this.state.refine(e),this.isControlled&&this.$emit("input",e)}}}},Tr={render:function(){var e=this.$createElement;return(this._self._c||e)("span",{class:this.suit(),domProps:{innerHTML:this._s(this.innerHTML)}})},staticRenderFns:[],name:"AisSnippet",mixins:[Un({name:"Snippet"})],props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}},computed:{innerHTML:function(){return Hn.snippet({attribute:this.attribute,hit:this.hit,highlightedTagName:this.highlightedTagName})}}},Dr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("select",{class:e.suit("select"),on:{change:function(t){e.state.refine(t.currentTarget.value)}}},e._l(e.state.options,(function(t){return n("option",{key:t.value,class:e.suit("option"),domProps:{value:t.value,selected:t.value===e.state.currentRefinement}},[e._v(e._s(t.label))])})))],{items:e.state.options,hasNoResults:e.state.hasNoResults,refine:e.state.refine,currentRefinement:e.state.currentRefinement})],2):e._e()},staticRenderFns:[],name:"AisSortBy",mixins:[Un({name:"SortBy"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,An()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.items,i=n.transformItems,o=void 0===i?function(e){return e}:i;if(!Array.isArray(r))throw new Error(An("The `items` option expects an array of objects."));return{init:function(t){var i=t.helper,a=t.instantSearchInstance,s=i.state.index,c=S(r,(function(e){return e.value===s}));this.initialIndex=a.indexName,this.setIndex=function(e){i.setIndex(e).search()},E(c,'The index named "'.concat(s,'" is not listed in the `items` of `sortBy`.')),e({currentRefinement:s,options:o(r),refine:this.setIndex,hasNoResults:!0,widgetParams:n,instantSearchInstance:a},!0)},render:function(t){var i=t.helper,a=t.results,s=t.instantSearchInstance;e({currentRefinement:i.state.index,options:o(r),refine:this.setIndex,hasNoResults:0===a.nbHits,widgetParams:n,instantSearchInstance:s},!1)},dispose:function(e){var n=e.state;return t(),n.setIndex(this.initialIndex)},getWidgetState:function(e,t){var n=t.searchParameters,r=n.getQueryParameter("index");return r===this.initialIndex||e&&e.sortBy===r?e:_n({},e,{sortBy:n.getQueryParameter("index")})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQueryParameter("index",n.sortBy||this.initialIndex)}}}}}),Gn({mapStateToCanRefine:function(e){return!e.hasNoResults}})],props:{items:{type:Array,required:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{items:this.items,transformItems:this.transformItems}}}},Or={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("span",{class:e.suit("text")},[e._v(e._s(e.state.nbHits.toLocaleString())+" results found in "+e._s(e.state.processingTimeMS.toLocaleString())+"ms")])],{results:e.state.instantSearchInstance.helper.lastResults},e.state)],2):e._e()},staticRenderFns:[],name:"AisStats",mixins:[Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,xn()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{init:function(t){var r=t.helper,i=t.instantSearchInstance;e({instantSearchInstance:i,hitsPerPage:r.state.hitsPerPage,nbHits:0,nbPages:0,page:r.state.page,processingTimeMS:-1,query:r.state.query,widgetParams:n},!0)},render:function(t){var r=t.results,i=t.instantSearchInstance;e({instantSearchInstance:i,hitsPerPage:r.hitsPerPage,nbHits:r.nbHits,nbPages:r.nbPages,page:r.page,processingTimeMS:r.processingTimeMS,query:r.query,widgetParams:n},!1)},dispose:function(){t()}}}}}),Un({name:"Stats"})],computed:{widgetParams:function(){return{}}}},Pr=function(e){return Boolean(e.value.count)},Ir={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("label",{class:e.suit("label")},[n("input",{class:e.suit("checkbox"),attrs:{type:"checkbox",name:e.state.value.name},domProps:{value:e.on,checked:e.state.value.isRefined},on:{change:function(t){e.state.refine(e.state.value)}}}),e._v(" "),n("span",{class:e.suit("labelText")},[e._v(e._s(e.label))]),e._v(" "),null!==e.state.value.count?n("span",{class:e.suit("count")},[e._v(e._s(e.state.value.count.toLocaleString()))]):e._e()])],{value:e.state.value,canRefine:e.canRefine,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisToggleRefinement",mixins:[Un({name:"ToggleRefinement"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Dn()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,i=n.on,o=void 0===i||i,a=n.off;if(!r)throw new Error(Dn("The `attribute` option is required."));var s=void 0!==a,c=void 0!==o,l=c?Sn(o):void 0,u=s?Sn(a):void 0;return{getConfiguration:function(){return{disjunctiveFacets:[r]}},_toggleRefinement:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isRefined;n?(e.removeDisjunctiveFacetRefinement(r,l),s&&e.addDisjunctiveFacetRefinement(r,u)):(s&&e.removeDisjunctiveFacetRefinement(r,u),e.addDisjunctiveFacetRefinement(r,l)),e.search()},init:function(t){var i=this,o=t.state,a=t.helper,c=t.createURL,d=t.instantSearchInstance;this._createURL=function(e){return function(){return c(o.removeDisjunctiveFacetRefinement(r,e?l:u).addDisjunctiveFacetRefinement(r,e?u:l))}},this.toggleRefinement=function(e){i._toggleRefinement(a,e)};var f=o.isDisjunctiveFacetRefined(r,l);if(s&&!f){var h=a.getPage();a.addDisjunctiveFacetRefinement(r,u).setPage(h)}var p={name:r,isRefined:f,count:null,onFacetValue:{isRefined:f,count:0},offFacetValue:{isRefined:s&&!f,count:0}};e({value:p,createURL:this._createURL(p.isRefined),refine:this.toggleRefinement,instantSearchInstance:d,widgetParams:n},!0)},render:function(t){var i=t.helper,o=t.results,a=t.state,c=t.instantSearchInstance,d=i.state.isDisjunctiveFacetRefined(r,l),f=void 0!==u&&u,h=o.getFacetValues(r),p=S(h,(function(e){return e.name===R(l)})),m={isRefined:void 0!==p&&p.isRefined,count:void 0===p?null:p.count},v=s?S(h,(function(e){return e.name===R(f)})):void 0,g={isRefined:void 0!==v&&v.isRefined,count:void 0===v?h.reduce((function(e,t){return e+t.count}),0):v.count},b=d?g:m,y={name:r,isRefined:d,count:void 0===b?null:b.count,onFacetValue:m,offFacetValue:g};e({value:y,state:a,createURL:this._createURL(y.isRefined),refine:this.toggleRefinement,helper:i,instantSearchInstance:c,widgetParams:n},!1)},dispose:function(e){var n=e.state;return t(),n.removeDisjunctiveFacetRefinement(r).removeDisjunctiveFacet(r)},getWidgetState:function(e,t){var n=t.searchParameters.isDisjunctiveFacetRefined(r,l);return!n||e&&e.toggle&&e.toggle[r]===n?e:En({},e,{toggle:En({},e.toggle,Tn({},r,n))})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return Boolean(n.toggle&&n.toggle[r])?s?e.removeDisjunctiveFacetRefinement(r,u).addDisjunctiveFacetRefinement(r,l):e.addDisjunctiveFacetRefinement(r,l):s?e.removeDisjunctiveFacetRefinement(r,l).addDisjunctiveFacetRefinement(r,u):e.removeDisjunctiveFacetRefinement(r,l)}}}}}),Gn({mapStateToCanRefine:Pr})],props:{attribute:{type:String,required:!0},label:{type:String,required:!0},on:{type:[String,Number,Boolean],required:!1,default:!0},off:{type:[String,Number,Boolean],required:!1,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,label:this.label,on:this.on,off:this.off}},canRefine:function(){return Pr(this.state)}}},jr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("button",{class:e.suit("button"),attrs:{type:"button",title:e.state.isBrowserSupported?e.buttonTitle:e.disabledButtonTitle,disabled:!e.state.isBrowserSupported},on:{click:e.handleClick}},[e._t("buttonText",[e.errorNotAllowed?n("svg",e._b({},"svg",e.buttonSvgAttrs,!1),[n("line",{attrs:{x1:"1",y1:"1",x2:"23",y2:"23"}}),e._v(" "),n("path",{attrs:{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}}),e._v(" "),n("path",{attrs:{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}}),e._v(" "),n("line",{attrs:{x1:"12",y1:"19",x2:"12",y2:"23"}}),e._v(" "),n("line",{attrs:{x1:"8",y1:"23",x2:"16",y2:"23"}})]):n("svg",e._b({},"svg",e.buttonSvgAttrs,!1),[n("path",{attrs:{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",fill:e.state.isListening?"currentColor":"none"}}),e._v(" "),n("path",{attrs:{d:"M19 10v2a7 7 0 0 1-14 0v-2"}}),e._v(" "),n("line",{attrs:{x1:"12",y1:"19",x2:"12",y2:"23"}}),e._v(" "),n("line",{attrs:{x1:"8",y1:"23",x2:"16",y2:"23"}})])],null,e.innerSlotProps)],2),e._v(" "),n("div",{class:e.suit("status")},[e._t("status",[n("p",[e._v(e._s(e.state.voiceListeningState.transcript))])],null,e.innerSlotProps)],2)],null,e.rootSlotProps)],2):e._e()},staticRenderFns:[],name:"AisVoiceSearch",mixins:[Yn({connector:Fn}),Un({name:"VoiceSearch"})],props:{searchAsYouSpeak:{type:Boolean,required:!1,default:void 0},buttonTitle:{type:String,required:!1,default:"Search by voice"},disabledButtonTitle:{type:String,required:!1,default:"Search by voice (not supported on this browser)"}},data:function(){return{buttonSvgAttrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}}},computed:{widgetParams:function(){return{searchAsYouSpeak:this.searchAsYouSpeak}},errorNotAllowed:function(){return"error"===this.state.voiceListeningState.status&&"not-allowed"===this.state.voiceListeningState.errorCode},rootSlotProps:function(){return{isBrowserSupported:this.state.isBrowserSupported,isListening:this.state.isListening,toggleListening:this.state.toggleListening,voiceListeningState:this.state.voiceListeningState}},innerSlotProps:function(){return{status:this.state.voiceListeningState.status,errorCode:this.state.voiceListeningState.errorCode,isListening:this.state.isListening,transcript:this.state.voiceListeningState.transcript,isSpeechFinal:this.state.voiceListeningState.isSpeechFinal,isBrowserSupported:this.state.isBrowserSupported}}},methods:{handleClick:function(e){e.currentTarget.blur(),this.state.toggleListening()}}},Nr=Object.freeze({AisAutocomplete:Kn,AisBreadcrumb:Qn,AisClearRefinements:Xn,AisConfigure:Jn,AisCurrentRefinements:Zn,AisHierarchicalMenu:nr,AisHighlight:rr,AisHits:ir,AisHitsPerPage:or,AisInstantSearch:ur,AisInstantSearchSsr:dr,AisInfiniteHits:fr,AisMenu:hr,AisMenuSelect:pr,AisNumericMenu:mr,AisPagination:vr,AisPanel:gr,AisPoweredBy:br,AisQueryRuleContext:yr,AisQueryRuleCustomData:kr,AisRangeInput:_r,AisRatingMenu:Cr,AisRefinementList:Sr,AisStateResults:Mr,AisSearchBox:Er,AisSnippet:Tr,AisSortBy:Dr,AisStats:Or,AisToggleRefinement:Ir,AisVoiceSearch:jr}),Rr={install:function(e){Object.keys(Nr).forEach((function(t){e.component(Nr[t].name,Nr[t])}))}},Lr=($.a.SearchParameters,$.a.SearchResults,Rr),Br=(n(283),n(78)),Fr=n(278),zr=n.n(Fr);n(213),window.Vue=n(34),window.Vue.use(i.a),window.Vue.use(Lr),window.Vue.use(Br.MdProgress),window.Vue.use(zr.a);var Vr=n(171);Vr.keys().map((function(e){return Vue.component(e.split("/").pop().split(".")[0],Vr(e).default)}));new Vue({el:"#app",data:{publishState:{file:{title:"",slug:"",headlines:[]},email:{subject:"",content:"",link:"",type:0}}}})},,,,,,,,,,,,,,,,,,,,,,function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){}]);
\ No newline at end of file
+!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=283)}([function(e,t,n){e.exports=n(184)},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],c=t.base?o[0]+t.base:o[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=s(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:v(f,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,m=0;function v(e,t){var n,r,i;if(t.singleton){var o=m++;n=p||(p=l(t)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=l(t),r=h.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=c(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},,function(e,t,n){"use strict";var r=n(54),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(216),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";var r=n(79),i=n.n(r);t.a={data:function(){return{searchClient:i()(php_vars.algolia_app_id,php_vars.algolia_search_key),prefix:php_vars.algolia_prefix}},props:[]}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.r(t);var r=n(30),i={components:{ProgressBar:n.n(r).a},data:function(){return{email:this.$root.publishState.email,recipients_count:0,status:"En attente",counters:{delivered:0,opened:0,clicked:0},publishing:!1,done:!1,statusData:{status:null,current:0,total:0}}},computed:{progress:function(){return"init"===this.statusData.status||0==this.statusData.total?0:Math.ceil(100*this.statusData.current/this.statusData.total)}},methods:{processMailEvent:function(e){"delivered"===e.data.event&&this.counters.delivered++,"opened"===e.data.event&&this.counters.opened++,"clicked"===e.data.event&&this.counters.clicked++},processProgressEvent:function(e){if(!this.done)switch(this.statusData=e.data,e.data.status){case"init":this.status="Préparation en cours";break;case"processing":this.status="Traitement en cours : (".concat(e.data.current," / ").concat(e.data.total,")");break;case"done":this.status="Terminé, ".concat(e.data.total," emails envoyés"),this.done=!0,this.$emit("can-continue",{value:!0})}},publish:function(){var e=this;axios({method:"post",url:"/publish",data:{data:this.$root.publishState}}).then((function(t){Echo.private("emailBatch.".concat(t.data.data)).listen(".mailgun.event",e.processMailEvent).listen(".batch.status",e.processProgressEvent),e.publishing=!0}))}},mounted:function(){var e=this;void 0===this.$root.publishState.recipient_group?axios.get("publish/recipients").then((function(t){return e.recipients_count=t.data.data})):this.recipients_count=this.$root.publishState.recipient_group.count}},o=(n(188),n(1)),a=Object(o.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-step"},[n("div",{staticClass:"mb-3"},[n("h3",{staticClass:"text-center"},[e._v("\n "+e._s(e.email.subject)+"\n ")])]),e._v(" "),e.publishing?e._e():n("div",{staticClass:"alert alert-info my-2 mx-auto d-block mw-400"},[n("i",{staticClass:"far fa-check-circle"}),e._v("\n Votre message est prêt à être envoyé !\n ")]),e._v(" "),e.publishing?e._e():n("div",{staticClass:"mt-3"},[n("button",{staticClass:"btn btn-success d-block m-auto",on:{click:e.publish}},[n("i",{staticClass:"far fa-paper-plane"}),e._v("\n Envoyer "+e._s(e.recipients_count)+" emails\n ")])]),e._v(" "),e.publishing?n("div",[n("div",{staticClass:"alert alert-success my-3 mx-auto d-block mw-400"},[n("strong",[e._v("Statut : ")]),e._v(e._s(e.status)+"\n ")]),e._v(" "),n("div",[n("progress-bar",{attrs:{size:"medium",val:e.progress,text:e.progress+"%"}})],1),e._v(" "),n("div",{staticClass:"row mt-4",attrs:{id:"counters"}},[e._m(0),e._v(" "),n("div",{staticClass:"col-md-4"},[n("mg-stats",{attrs:{icon:"delivered",current:e.counters.delivered,total:e.statusData.total,text:"reçus"}})],1),e._v(" "),n("div",{staticClass:"col-md-4"},[n("mg-stats",{attrs:{icon:"opened",current:e.counters.opened,total:e.statusData.total,text:"ouverts"}})],1),e._v(" "),n("div",{staticClass:"col-md-4"},[n("mg-stats",{attrs:{icon:"clicked",current:e.counters.clicked,total:e.statusData.total,text:"cliqués"}})],1)])]):e._e()])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"col-12 mb-2"},[t("h4",[this._v("Statistiques\n "),t("span",{staticClass:"badge badge-danger"},[t("span",{staticClass:"blink"},[this._v("•")]),this._v("\n en direct\n ")])])])}],!1,null,"1526165e",null);t.default=a.exports},function(e,t,n){var r=n(328),i=n(345),o=n(38),a=n(6),s=n(351);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){"use strict";var r=n(286),i=n(145),o=n(259);function a(e,t,n){return new r(e,t,n)}a.version=n(277),a.AlgoliaSearchHelper=r,a.SearchParameters=i,a.SearchResults=o,a.url=n(274),e.exports=a},function(e,t,n){var r;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,c=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},l=o.push,u=o.indexOf,d={},f=d.toString,h=d.hasOwnProperty,p=h.toString,m=p.call(Object),v={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},y=n.document,k={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||y).createElement("script");if(o.text=e,t)for(r in k)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var C=function(e,t){return new C.fn.init(e,t)};function A(e){var t=!!e&&"length"in e&&e.length,n=_(e);return!g(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:"3.5.1",constructor:C,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(C.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:o.sort,splice:o.splice},C.extend=C.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(C.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||C.isPlainObject(n)?n:{},i=!1,a[t]=C.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},C.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=a(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&p.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(A(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(A(Object(e))?C.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(A(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return c(a)},guid:1,support:v}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=o[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var x=function(e){var t,n,r,i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k="sizzle"+1*new Date,w=e.document,_=0,C=0,A=ce(),x=ce(),S=ce(),M=ce(),E=function(e,t){return e===t&&(d=!0),0},T={}.hasOwnProperty,D=[],O=D.pop,P=D.push,I=D.push,j=D.slice,N=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\["+L+"*("+B+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+L+"*\\]",z=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",V=new RegExp(L+"+","g"),$=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),H=new RegExp("^"+L+"*,"+L+"*"),U=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),q=new RegExp(L+"|>"),W=new RegExp(z),Y=new RegExp("^"+B+"$"),K={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){f()},ae=ke((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{I.apply(D=j.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(e){I={apply:D.length?function(e,t){P.apply(e,j.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,u,d,p,g,b=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(f(t),t=t||h,m)){if(11!==w&&(d=Z.exec(e)))if(o=d[1]){if(9===w){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(b&&(l=b.getElementById(o))&&y(t,l)&&l.id===o)return r.push(l),r}else{if(d[2])return I.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return I.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!M[e+" "]&&(!v||!v.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(g=e,b=t,1===w&&(q.test(e)||U.test(e))){for((b=ee.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=k)),s=(p=a(e)).length;s--;)p[s]=(u?"#"+u:":scope")+" "+ye(p[s]);g=p.join(",")}try{return I.apply(r,b.querySelectorAll(g)),r}catch(t){M(e,!0)}finally{u===k&&t.removeAttribute("id")}}}return c(e.replace($,"$1"),t,r,i)}function ce(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[k]=!0,e}function ue(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=h&&9===a.nodeType&&a.documentElement?(p=(h=a).documentElement,m=!o(h),w!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ue((function(e){return p.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=k,!h.getElementsByName||!h.getElementsByName(k).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},g=[],v=[],(n.qsa=J.test(h.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+L+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+L+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=J.test(b=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),g.push("!=",z)})),v=v.length&&new RegExp(v.join("|")),g=g.length&&new RegExp(g.join("|")),t=J.test(p.compareDocumentPosition),y=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==w&&y(w,e)?-1:t==h||t.ownerDocument==w&&y(w,t)?1:u?N(u,e)-N(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==h?-1:t==h?1:i?-1:o?1:u?N(u,e)-N(u,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&m&&!M[t+" "]&&(!g||!g.test(t))&&(!v||!v.test(t)))try{var r=b.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){M(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&f(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&f(e);var i=r.attrHandle[t.toLowerCase()],o=i&&T.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(E),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return u=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=A[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&A(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(V," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,f,h,p,m=o!==a?"nextSibling":"previousSibling",v=t.parentNode,g=s&&t.nodeName.toLowerCase(),b=!c&&!s,y=!1;if(v){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===g:1===f.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&b){for(y=(h=(l=(u=(d=(f=v)[k]||(f[k]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===_&&l[1])&&l[2],f=h&&v.childNodes[h];f=++h&&f&&f[m]||(y=h=0)||p.pop();)if(1===f.nodeType&&++y&&f===t){u[e]=[_,h,y];break}}else if(b&&(y=h=(l=(u=(d=(f=t)[k]||(f[k]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===_&&l[1]),!1===y)for(;(f=++h&&f&&f[m]||(y=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++y||(b&&((u=(d=f[k]||(f[k]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[_,y]),f!==t)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[k]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=N(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace($,"$1"));return r[k]?le((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return se(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:le((function(e){return Y.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ve((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function be(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ke(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,c){var l,u,d,f=[_,s];if(c){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(d=t[k]||(t[k]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=u[o])&&l[0]===_&&l[1]===s)return f[2]=l[2];if(u[o]=f,f[2]=e(t,n,c))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function _e(e,t,n,r,i){for(var o,a=[],s=0,c=e.length,l=null!=t;s<c;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(e,t,n,r,i,o){return r&&!r[k]&&(r=Ce(r)),i&&!i[k]&&(i=Ce(i,o)),le((function(o,a,s,c){var l,u,d,f=[],h=[],p=a.length,m=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?m:_e(m,f,e,s,c),g=n?i||(o?e:p||r)?[]:a:v;if(n&&n(v,g,s,c),r)for(l=_e(g,h),r(l,[],s,c),u=l.length;u--;)(d=l[u])&&(g[h[u]]=!(v[h[u]]=d));if(o){if(i||e){if(i){for(l=[],u=g.length;u--;)(d=g[u])&&l.push(v[u]=d);i(null,g=[],l,c)}for(u=g.length;u--;)(d=g[u])&&(l=i?N(o,d):f[u])>-1&&(o[l]=!(a[l]=d))}}else g=_e(g===a?g.splice(p,g.length):g),i?i(null,a,g,c):I.apply(a,g)}))}function Ae(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],c=a?1:0,u=ke((function(e){return e===t}),s,!0),d=ke((function(e){return N(t,e)>-1}),s,!0),f=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,i}];c<o;c++)if(n=r.relative[e[c].type])f=[ke(we(f),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[k]){for(i=++c;i<o&&!r.relative[e[i].type];i++);return Ce(c>1&&we(f),c>1&&ye(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace($,"$1"),n,c<i&&Ae(e.slice(c,i)),i<o&&Ae(e=e.slice(i)),i<o&&ye(e))}f.push(n)}return we(f)}return be.prototype=r.filters=r.pseudos,r.setFilters=new be,a=se.tokenize=function(e,t){var n,i,o,a,s,c,l,u=x[e+" "];if(u)return t?0:u.slice(0);for(s=e,c=[],l=r.preFilter;s;){for(a in n&&!(i=H.exec(s))||(i&&(s=s.slice(i[0].length)||s),c.push(o=[])),n=!1,(i=U.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace($," ")}),s=s.slice(n.length)),r.filter)!(i=K[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):x(e,c).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ae(t[n]))[k]?i.push(s):o.push(s);(s=S(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,c,u){var d,p,v,g=0,b="0",y=o&&[],k=[],w=l,C=o||i&&r.find.TAG("*",u),A=_+=null==w?1:Math.random()||.1,x=C.length;for(u&&(l=a==h||a||u);b!==x&&null!=(d=C[b]);b++){if(i&&d){for(p=0,a||d.ownerDocument==h||(f(d),s=!m);v=e[p++];)if(v(d,a||h,s)){c.push(d);break}u&&(_=A)}n&&((d=!v&&d)&&g--,o&&y.push(d))}if(g+=b,n&&b!==g){for(p=0;v=t[p++];)v(y,k,a,s);if(o){if(g>0)for(;b--;)y[b]||k[b]||(k[b]=O.call(c));k=_e(k)}I.apply(c,k),u&&!o&&k.length>0&&g+t.length>1&&se.uniqueSort(c)}return u&&(_=A,l=w),y};return n?le(o):o}(o,i))).selector=e}return s},c=se.select=function(e,t,n,i){var o,c,l,u,d,f="function"==typeof e&&e,h=!i&&a(e=f.selector||e);if(n=n||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&m&&r.relative[c[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(o=K.needsContext.test(e)?0:c.length;o--&&(l=c[o],!r.relative[u=l.type]);)if((d=r.find[u])&&(i=d(l.matches[0].replace(te,ne),ee.test(c[0].type)&&ge(t.parentNode)||t))){if(c.splice(o,1),!(e=i.length&&ye(c)))return I.apply(n,i),n;break}}return(f||s(e,h))(i,t,!m,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=k.split("").sort(E).join("")===k,n.detectDuplicates=!!d,f(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);C.find=x,C.expr=x.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=x.uniqueSort,C.text=x.getText,C.isXMLDoc=x.isXML,C.contains=x.contains,C.escapeSelector=x.escape;var S=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&C(e).is(n))break;r.push(e)}return r},M=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},E=C.expr.match.needsContext;function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,t,n){return g(t)?C.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?C.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?C.grep(e,(function(e){return u.call(t,e)>-1!==n})):C.filter(t,e,n)}C.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?C.find.matchesSelector(r,e)?[r]:[]:C.find.matches(e,C.grep(t,(function(e){return 1===e.nodeType})))},C.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(C(e).filter((function(){for(t=0;t<r;t++)if(C.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)C.find(e,i[t],n);return r>1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,"string"==typeof e&&E.test(e)?C(e):e||[],!1).length}});var P,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||P,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:I.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),D.test(r[1])&&C.isPlainObject(t))for(r in t)g(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=y.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,P=C(y);var j=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&C(e);if(!E.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?C.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(C(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return M((e.parentNode||{}).firstChild,e)},children:function(e){return M(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(T(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},(function(e,t){C.fn[e]=function(n,r){var i=C.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=C.filter(r,i)),this.length>1&&(N[e]||C.uniqueSort(i),j.test(e)&&i.reverse()),this.pushStack(i)}}));var L=/[^\x20\t\r\n\f]+/g;function B(e){return e}function F(e){throw e}function z(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(L)||[],(function(e,n){t[n]=!0})),t}(e):C.extend({},e);var t,n,r,i,o=[],a=[],s=-1,c=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){C.each(n,(function(n,r){g(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==_(r)&&t(r)}))}(arguments),n&&!t&&c()),this},remove:function(){return C.each(arguments,(function(e,t){for(var n;(n=C.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?C.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return C.Deferred((function(n){C.each(t,(function(t,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var o=0;function a(e,t,r,i){return function(){var s=this,c=arguments,l=function(){var n,l;if(!(e<o)){if((n=r.apply(s,c))===t.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,g(l)?i?l.call(n,a(o,t,B,i),a(o,t,F,i)):(o++,l.call(n,a(o,t,B,i),a(o,t,F,i),a(o,t,B,t.notifyWith))):(r!==B&&(s=void 0,c=[n]),(i||t.resolveWith)(s,c))}},u=i?l:function(){try{l()}catch(n){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(n,u.stackTrace),e+1>=o&&(r!==F&&(s=void 0,c=[n]),t.rejectWith(s,c))}};e?u():(C.Deferred.getStackHook&&(u.stackTrace=C.Deferred.getStackHook()),n.setTimeout(u))}}return C.Deferred((function(n){t[0][3].add(a(0,n,g(i)?i:B,n.notifyWith)),t[1][3].add(a(0,n,g(e)?e:B)),t[2][3].add(a(0,n,g(r)?r:F))})).promise()},promise:function(e){return null!=e?C.extend(e,i):i}},o={};return C.each(t,(function(e,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=C.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(z(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||g(i[n]&&i[n].then)))return o.then();for(;n--;)z(i[n],a(n),o.reject);return o.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&V.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){n.setTimeout((function(){throw e}))};var $=C.Deferred();function H(){y.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),C.ready()}C.fn.ready=function(e){return $.then(e).catch((function(e){C.readyException(e)})),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||$.resolveWith(y,[C]))}}),C.ready.then=$.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(C.ready):(y.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var U=function(e,t,n,r,i,o,a){var s=0,c=e.length,l=null==n;if("object"===_(n))for(s in i=!0,n)U(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(C(e),n)})),t))for(;s<c;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):c?t(e[0],n):o},q=/^-ms-/,W=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function K(e){return e.replace(q,"ms-").replace(W,Y)}var G=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=C.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[K(t)]=n;else for(r in t)i[K(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in r?[t]:t.match(L)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||C.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var X=new Q,J=new Q,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return J.hasData(e)||X.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),C.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=J.get(o),1===o.nodeType&&!X.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=K(r.slice(5)),te(o,r,i[r]));X.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){J.set(this,e)})):U(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=J.get(o,e))||void 0!==(n=te(o,e))?n:void 0;this.each((function(){J.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),C.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=X.get(e,t),n&&(!r||Array.isArray(n)?r=X.access(e,t,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),r=n.length,i=n.shift(),o=C._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){C.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:C.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",n])}))})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?C.queue(this[0],e):void 0===t?this:this.each((function(){var n=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&C.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){C.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=C.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=X.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],oe=y.documentElement,ae=function(e){return C.contains(e.ownerDocument,e)},se={composed:!0};oe.getRootNode&&(ae=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===C.css(e,"display")};function le(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return C.css(e,t,"")},c=s(),l=n&&n[3]||(C.cssNumber[t]?"":"px"),u=e.nodeType&&(C.cssNumber[t]||"px"!==l&&+c)&&re.exec(C.css(e,t));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;a--;)C.style(e,t,u+l),(1-o)*(1-(o=s()/c||.5))<=0&&(a=0),u/=o;u*=2,C.style(e,t,u+l),n=n||[]}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}var ue={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,i=ue[r];return i||(t=n.body.appendChild(n.createElement(r)),i=C.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ue[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=X.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ce(r)&&(i[o]=de(r))):"none"!==n&&(i[o]="none",X.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}C.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?C(this).show():C(this).hide()}))}});var he,pe,me=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;he=y.createDocumentFragment().appendChild(y.createElement("div")),(pe=y.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),he.appendChild(pe),v.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",v.option=!!he.lastChild;var be={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ye(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?C.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n<r;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,v.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);var we=/<|&#?\w+;/;function _e(e,t,n,r,i){for(var o,a,s,c,l,u,d=t.createDocumentFragment(),f=[],h=0,p=e.length;h<p;h++)if((o=e[h])||0===o)if("object"===_(o))C.merge(f,o.nodeType?[o]:o);else if(we.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(ve.exec(o)||["",""])[1].toLowerCase(),c=be[s]||be._default,a.innerHTML=c[1]+C.htmlPrefilter(o)+c[2],u=c[0];u--;)a=a.lastChild;C.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",h=0;o=f[h++];)if(r&&C.inArray(o,r)>-1)i&&i.push(o);else if(l=ae(o),a=ye(d.appendChild(o),"script"),l&&ke(a),n)for(u=0;o=a[u++];)ge.test(o.type||"")&&n.push(o);return d}var Ce=/^key/,Ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xe=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function Me(){return!1}function Ee(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Te(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Me;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return C().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=C.guid++)),e.each((function(){C.event.add(this,t,i,r,n)}))}function De(e,t,n){n?(X.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=X.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),X.set(this,t,o),r=n(this,t),this[t](),o!==(i=X.get(this,t))||r?X.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(X.set(this,t,{value:C.event.trigger(C.extend(o[0],C.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&C.event.add(e,t,Se)}C.event={global:{},add:function(e,t,n,r,i){var o,a,s,c,l,u,d,f,h,p,m,v=X.get(e);if(G(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&C.find.matchesSelector(oe,i),n.guid||(n.guid=C.guid++),(c=v.events)||(c=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(L)||[""]).length;l--;)h=m=(s=xe.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),h&&(d=C.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=C.event.special[h]||{},u=C.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:p.join(".")},o),(f=c[h])||((f=c[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u),C.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,a,s,c,l,u,d,f,h,p,m,v=X.hasData(e)&&X.get(e);if(v&&(c=v.events)){for(l=(t=(t||"").match(L)||[""]).length;l--;)if(h=m=(s=xe.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),h){for(d=C.event.special[h]||{},f=c[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)u=f[o],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(o,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,p,v.handle)||C.removeEvent(e,h,v.handle),delete c[h])}else for(h in c)C.event.remove(e,h+t[l],n,r,!0);C.isEmptyObject(c)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),c=C.event.fix(e),l=(X.get(this,"events")||Object.create(null))[c.type]||[],u=C.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,c)){for(a=C.event.handlers.call(this,c,l),t=0;(i=a[t++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==o.namespace&&!c.rnamespace.test(o.namespace)||(c.handleObj=o,c.data=o.data,void 0!==(r=((C.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,i,o,a,s=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<c;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?C(i,this).index(l)>-1:C.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&T(t,"input")&&De(t,"click",Se),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&T(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&T(t,"input")&&X.get(t,"click")||T(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Se:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Se,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Se,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Se,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ce.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ae.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},(function(e,t){C.event.special[e]={setup:function(){return De(this,e,Ee),!1},trigger:function(){return De(this,e),!0},delegateType:t}})),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||C.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),C.fn.extend({on:function(e,t,n,r){return Te(this,e,t,n,r)},one:function(e,t,n,r){return Te(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,C(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each((function(){C.event.remove(this,e,n,t)}))}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(i in X.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)C.event.add(t,i,s[i][n]);J.hasData(e)&&(o=J.access(e),a=C.extend({},o),J.set(t,a))}}function Be(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Fe(e,t,n,r){t=c(t);var i,o,a,s,l,u,d=0,f=e.length,h=f-1,p=t[0],m=g(p);if(m||f>1&&"string"==typeof p&&!v.checkClone&&Pe.test(p))return e.each((function(i){var o=e.eq(i);m&&(t[0]=p.call(this,i,o.html())),Fe(o,t,n,r)}));if(f&&(o=(i=_e(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=C.map(ye(i,"script"),Ne)).length;d<f;d++)l=i,d!==h&&(l=C.clone(l,!0,!0),s&&C.merge(a,ye(l,"script"))),n.call(e[d],l,d);if(s)for(u=a[a.length-1].ownerDocument,C.map(a,Re),d=0;d<s;d++)l=a[d],ge.test(l.type||"")&&!X.access(l,"globalEval")&&C.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&!l.noModule&&C._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):w(l.textContent.replace(Ie,""),l,u))}return e}function ze(e,t,n){for(var r,i=t?C.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||C.cleanData(ye(r)),r.parentNode&&(n&&ae(r)&&ke(ye(r,"script")),r.parentNode.removeChild(r));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),c=ae(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(a=ye(s),r=0,i=(o=ye(e)).length;r<i;r++)Be(o[r],a[r]);if(t)if(n)for(o=o||ye(e),a=a||ye(s),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,s);return(a=ye(s,"script")).length>0&&ke(a,!c&&ye(e,"script")),s},cleanData:function(e){for(var t,n,r,i=C.event.special,o=0;void 0!==(n=e[o]);o++)if(G(n)){if(t=n[X.expando]){if(t.events)for(r in t.events)i[r]?C.event.remove(n,r):C.removeEvent(n,r,t.handle);n[X.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),C.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return U(this,(function(e){return void 0===e?C.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Fe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return Fe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return C.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!be[(ve.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Fe(this,arguments,(function(t){var n=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(ye(this)),n&&n.replaceChild(t,this))}),e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){C.fn[e]=function(e){for(var n,r=[],i=C(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),C(i[a])[t](n),l.apply(r,n.get());return this.pushStack(r)}}));var Ve=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),$e=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},He=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ue=new RegExp(ie.join("|"),"i");function qe(e,t,n){var r,i,o,a,s=e.style;return(n=n||$e(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ae(e)||(a=C.style(e,t)),!v.pixelBoxStyles()&&Ve.test(a)&&Ue.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(l).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,c=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),i=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),oe.removeChild(l),u=null}}function t(e){return Math.round(parseFloat(e))}var r,i,o,a,s,c,l=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,C.extend(v,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,r,i;return null==s&&(e=y.createElement("table"),t=y.createElement("tr"),r=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",r.style.height="9px",oe.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),s=parseInt(i.height)>3,oe.removeChild(e)),s}}))}();var Ye=["Webkit","Moz","ms"],Ke=y.createElement("div").style,Ge={};function Qe(e){var t=C.cssProps[e]||Ge[e];return t||(e in Ke?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ye.length;n--;)if((e=Ye[n]+t)in Ke)return e}(e)||e)}var Xe=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=C.css(e,n+ie[a],!0,i)),r?("content"===n&&(c-=C.css(e,"padding"+ie[a],!0,i)),"margin"!==n&&(c-=C.css(e,"border"+ie[a]+"Width",!0,i))):(c+=C.css(e,"padding"+ie[a],!0,i),"padding"!==n?c+=C.css(e,"border"+ie[a]+"Width",!0,i):s+=C.css(e,"border"+ie[a]+"Width",!0,i));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-c-s-.5))||0),c}function rt(e,t,n){var r=$e(e),i=(!v.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,r),o=i,a=qe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ve.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&T(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===C.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===C.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+nt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function it(e,t,n,r,i){return new it.prototype.init(e,t,n,r,i)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=K(t),c=Je.test(t),l=e.style;if(c||(t=Qe(s)),a=C.cssHooks[t]||C.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=re.exec(n))&&i[1]&&(n=le(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||c||(n+=i&&i[3]||(C.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=K(t);return Je.test(t)||(t=Qe(s)),(a=C.cssHooks[t]||C.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=qe(e,t,r)),"normal"===i&&t in et&&(i=et[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),C.each(["height","width"],(function(e,t){C.cssHooks[t]={get:function(e,n,r){if(n)return!Xe.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):He(e,Ze,(function(){return rt(e,t,r)}))},set:function(e,n,r){var i,o=$e(e),a=!v.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===C.css(e,"boxSizing",!1,o),c=r?nt(e,t,r,s,o):0;return s&&a&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-nt(e,t,"border",!1,o)-.5)),c&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),tt(0,n,c)}}})),C.cssHooks.marginLeft=We(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-He(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(e,t){C.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(C.cssHooks[e+t].set=tt)})),C.fn.extend({css:function(e,t){return U(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=$e(e),i=t.length;a<i;a++)o[t[a]]=C.css(e,t[a],!1,r);return o}return void 0!==n?C.style(e,t,n):C.css(e,t)}),e,t,arguments.length>1)}}),C.Tween=it,it.prototype={constructor:it,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(C.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=it.prototype.init,C.fx.step={};var ot,at,st=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function lt(){at&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(lt):n.setTimeout(lt,C.fx.interval),C.fx.tick())}function ut(){return n.setTimeout((function(){ot=void 0})),ot=Date.now()}function dt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ht(e,t,n){var r,i,o=0,a=ht.prefilters.length,s=C.Deferred().always((function(){delete c.elem})),c=function(){if(i)return!1;for(var t=ot||ut(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:t,originalOptions:n,startTime:ot||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=C.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=K(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=C.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,l.opts.specialEasing);o<a;o++)if(r=ht.prefilters[o].call(l,e,u,l.opts))return g(r.stop)&&(C._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return C.map(u,ft,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),C.fx.timer(C.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}C.Animation=C.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(L);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,c,l,u,d="width"in t||"height"in t,f=this,h={},p=e.style,m=e.nodeType&&ce(e),v=X.get(e,"fxshow");for(r in n.queue||(null==(a=C._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,C.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],st.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;m=!0}h[r]=v&&v[r]||C.style(e,r)}if((c=!C.isEmptyObject(t))||!C.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=v&&v.display)&&(l=X.get(e,"display")),"none"===(u=C.css(e,"display"))&&(l?u=l:(fe([e],!0),l=e.style.display||l,u=C.css(e,"display"),fe([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===C.css(e,"float")&&(c||(f.done((function(){p.display=l})),null==l&&(u=p.display,l="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),c=!1,h)c||(v?"hidden"in v&&(m=v.hidden):v=X.access(e,"fxshow",{display:l}),o&&(v.hidden=!m),m&&fe([e],!0),f.done((function(){for(r in m||fe([e]),X.remove(e,"fxshow"),h)C.style(e,r,h[r])}))),c=ft(m?v[r]:0,r,f),r in v||(v[r]=c.start,m&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),C.speed=function(e,t,n){var r=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return C.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in C.fx.speeds?r.duration=C.fx.speeds[r.duration]:r.duration=C.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&C.dequeue(this,r.queue)},r},C.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=C.isEmptyObject(e),o=C.speed(t,n,r),a=function(){var t=ht(this,C.extend({},e),o);(i||X.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=C.timers,a=X.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ct.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||C.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=X.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=C.timers,a=r?r.length:0;for(n.finish=!0,C.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),C.each(["toggle","show","hide"],(function(e,t){var n=C.fn[t];C.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,r,i)}})),C.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){C.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(ot=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),ot=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){at||(at=!0,lt())},C.fx.stop=function(){at=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var pt,mt=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return U(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){C.removeAttr(this,e)}))}}),C.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?C.prop(e,t,n):(1===o&&C.isXMLDoc(e)||(i=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=C.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&T(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||C.find.attr;mt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=mt[a],mt[a]=i,i=null!=n(e,t,r)?a:null,mt[a]=o),i}}));var vt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function bt(e){return(e.match(L)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}C.fn.extend({prop:function(e,t){return U(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[C.propFix[e]||e]}))}}),C.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(e)||(t=C.propFix[t]||t,i=C.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,c=0;if(g(e))return this.each((function(t){C(this).addClass(e.call(this,t,yt(this)))}));if((t=kt(e)).length)for(;n=this[c++];)if(i=yt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,c=0;if(g(e))return this.each((function(t){C(this).removeClass(e.call(this,t,yt(this)))}));if(!arguments.length)return this.attr("class","");if((t=kt(e)).length)for(;n=this[c++];)if(i=yt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){C(this).toggleClass(e.call(this,n,yt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=C(this),a=kt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;C.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,C(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=C.map(i,(function(e){return null==e?"":e+""}))),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(wt,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:bt(C.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r<c;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(t=C(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=C.makeArray(t),a=i.length;a--;)((r=i[a]).selected=C.inArray(C.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},v.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),v.focusin="onfocusin"in n;var _t=/^(?:focusinfocus|focusoutblur)$/,Ct=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,r,i){var o,a,s,c,l,u,d,f,p=[r||y],m=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=r=r||y,3!==r.nodeType&&8!==r.nodeType&&!_t.test(m+C.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),l=m.indexOf(":")<0&&"on"+m,(e=e[C.expando]?e:new C.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:C.makeArray(t,[e]),d=C.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(r,t))){if(!i&&!d.noBubble&&!b(r)){for(c=d.delegateType||m,_t.test(c+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?c:d.bindType||m,(u=(X.get(a,"events")||Object.create(null))[e.type]&&X.get(a,"handle"))&&u.apply(a,t),(u=l&&a[l])&&u.apply&&G(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!G(r)||l&&g(r[m])&&!b(r)&&((s=r[l])&&(r[l]=null),C.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,Ct),r[m](),e.isPropagationStopped()&&f.removeEventListener(m,Ct),C.event.triggered=void 0,s&&(r[l]=s)),e.result}},simulate:function(e,t,n){var r=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(r,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each((function(){C.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),v.focusin||C.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,t);i||r.addEventListener(e,n,!0),X.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,t)-1;i?X.access(r,t,i):(r.removeEventListener(e,n,!0),X.remove(r,t))}}}));var At=n.location,xt={guid:Date.now()},St=/\?/;C.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+e),t};var Mt=/\[\]$/,Et=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,r){var i;if(Array.isArray(t))C.each(t,(function(t,i){n||Mt.test(e)?r(e,i):Ot(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==_(t))r(e,t);else for(i in t)Ot(e+"["+i+"]",t[i],n,r)}C.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,(function(){i(this.name,this.value)}));else for(n in e)Ot(n,e[n],t,i);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Dt.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,(function(e){return{name:t.name,value:e.replace(Et,"\r\n")}})):{name:t.name,value:n.replace(Et,"\r\n")}})).get()}});var Pt=/%20/g,It=/#.*$/,jt=/([?&])_=[^&]*/,Nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Bt={},Ft={},zt="*/".concat("*"),Vt=y.createElement("a");function $t(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(L)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ht(e,t,n,r){var i={},o=e===Ft;function a(s){var c;return i[s]=!0,C.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(c=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),c}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Ut(e,t){var n,r,i=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&C.extend(!0,e,r),e}Vt.href=At.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,C.ajaxSettings),t):Ut(C.ajaxSettings,e)},ajaxPrefilter:$t(Bt),ajaxTransport:$t(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,c,l,u,d,f,h=C.ajaxSetup({},t),p=h.context||h,m=h.context&&(p.nodeType||p.jquery)?C(p):C.event,v=C.Deferred(),g=C.Callbacks("once memory"),b=h.statusCode||{},k={},w={},_="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=Nt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,k[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)A.always(e[A.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||_;return r&&r.abort(t),x(0,t),this}};if(v.promise(A),h.url=((e||h.url||At.href)+"").replace(Lt,At.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(L)||[""],null==h.crossDomain){c=y.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Vt.protocol+"//"+Vt.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=C.param(h.data,h.traditional)),Ht(Bt,h,t,A),l)return A;for(d in(u=C.event&&h.global)&&0==C.active++&&C.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Rt.test(h.type),i=h.url.replace(It,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Pt,"+")):(f=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(St.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(jt,"$1"),f=(St.test(i)?"&":"?")+"_="+xt.guid+++f),h.url=i+f),h.ifModified&&(C.lastModified[i]&&A.setRequestHeader("If-Modified-Since",C.lastModified[i]),C.etag[i]&&A.setRequestHeader("If-None-Match",C.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&A.setRequestHeader("Content-Type",h.contentType),A.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+zt+"; q=0.01":""):h.accepts["*"]),h.headers)A.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(p,A,h)||l))return A.abort();if(_="abort",g.add(h.complete),A.done(h.success),A.fail(h.error),r=Ht(Ft,h,t,A)){if(A.readyState=1,u&&m.trigger("ajaxSend",[A,h]),l)return A;h.async&&h.timeout>0&&(s=n.setTimeout((function(){A.abort("timeout")}),h.timeout));try{l=!1,r.send(k,x)}catch(e){if(l)throw e;x(-1,e)}}else x(-1,"No Transport");function x(e,t,a,c){var d,f,y,k,w,_=t;l||(l=!0,s&&n.clearTimeout(s),r=void 0,o=c||"",A.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(k=function(e,t,n){for(var r,i,o,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}if(c[0]in n)o=c[0];else{for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),n[o]}(h,A,a)),!d&&C.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),k=function(e,t,n,r){var i,o,a,s,c,l={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=u.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=l[c+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[c+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}(h,k,A,d),d?(h.ifModified&&((w=A.getResponseHeader("Last-Modified"))&&(C.lastModified[i]=w),(w=A.getResponseHeader("etag"))&&(C.etag[i]=w)),204===e||"HEAD"===h.type?_="nocontent":304===e?_="notmodified":(_=k.state,f=k.data,d=!(y=k.error))):(y=_,!e&&_||(_="error",e<0&&(e=0))),A.status=e,A.statusText=(t||_)+"",d?v.resolveWith(p,[f,_,A]):v.rejectWith(p,[A,_,y]),A.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[A,h,d?f:y]),g.fireWith(p,[A,_]),u&&(m.trigger("ajaxComplete",[A,h]),--C.active||C.event.trigger("ajaxStop")))}return A},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],(function(e,t){C[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:i,data:n,success:r},C.isPlainObject(e)&&e))}})),C.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){C(this).wrapInner(e.call(this,t))})):this.each((function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){C(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var qt={0:200,1223:204},Wt=C.ajaxSettings.xhr();v.cors=!!Wt&&"withCredentials"in Wt,v.ajax=Wt=!!Wt,C.ajaxTransport((function(e){var t,r;if(v.cors||Wt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(qt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),C.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),C.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=C("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Yt,Kt=[],Gt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||C.expando+"_"+xt.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",(function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Gt,"$1"+i):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||C.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always((function(){void 0===o?C(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(i)),a&&g(o)&&o(a[0]),a=o=void 0})),"script"})),v.createHTMLDocument=((Yt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Yt.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(r)):t=y),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=_e([e],t,o),o&&o.length&&C(o).remove(),C.merge([],i.childNodes)));var r,i,o},C.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=bt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&C.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?C("<div>").append(C.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,(function(t){return e===t.elem})).length},C.offset={setOffset:function(e,t,n){var r,i,o,a,s,c,l=C.css(e,"position"),u=C(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),o=C.css(e,"top"),c=C.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+c).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(c)||0),g(t)&&(t=t.call(e,n,C.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){C.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===C.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),i.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-C.css(r,"marginTop",!0),left:t.left-i.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||oe}))}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;C.fn[e]=function(r){return U(this,(function(e,r,i){var o;if(b(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),C.each(["top","left"],(function(e,t){C.cssHooks[t]=We(v.pixelPosition,(function(e,n){if(n)return n=qe(e,t),Ve.test(n)?C(e).position()[t]+"px":n}))})),C.each({Height:"height",Width:"width"},(function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){C.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return U(this,(function(t,n,i){var o;return b(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?C.css(t,n,s):C.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){C.fn[t]=function(e){return this.on(t,e)}})),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;C.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||C.guid++,i},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=T,C.isFunction=g,C.isWindow=b,C.camelCase=K,C.type=_,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(Qt,"")},void 0===(r=function(){return C}.apply(t,[]))||(e.exports=r);var Xt=n.jQuery,Jt=n.$;return C.noConflict=function(e){return n.$===C&&(n.$=Jt),e&&n.jQuery===C&&(n.jQuery=Xt),C},void 0===i&&(n.jQuery=n.$=C),C}))},function(e,t,n){var r=n(215),i=n(217),o=n(17);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(44),i=n(146);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(2),i=n(173);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(175);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(177);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(179);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(181);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(187);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(189);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(191);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(193);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(2),i=n(195);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(1))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},i=n(0),o="object"==typeof self&&self&&self.Object===Object&&self,a=i.a||o||Function("return this")(),s=function(){return a.Date.now()},c=a.Symbol,l=Object.prototype,u=l.hasOwnProperty,d=l.toString,f=c?c.toStringTag:void 0,h=Object.prototype.toString,p=c?c.toStringTag:void 0,m=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":p&&p in Object(e)?function(e){var t=u.call(e,f),n=e[f];try{e[f]=void 0;var r=!0}catch(e){}var i=d.call(e);return r&&(t?e[f]=n:delete e[f]),i}(e):function(e){return h.call(e)}(e)},v=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,y=/^0o[0-7]+$/i,k=parseInt,w=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==m(e)}(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(v,"");var n=b.test(e);return n||y.test(e)?k(e.slice(2),n?2:8):g.test(e)?NaN:+e},_=Math.max,C=Math.min,A={name:"ckeditor",render(e){return e(this.tagName)},props:{editor:{type:Function,default:null},value:{type:String,default:""},config:{type:Object,default:()=>({})},tagName:{type:String,default:"div"},disabled:{type:Boolean,default:!1}},data:()=>({instance:null,$_lastEditorData:{type:String,default:""}}),mounted(){const e=Object.assign({},this.config);this.value&&(e.initialData=this.value),this.editor.create(this.$el,e).then(e=>{this.instance=e,e.isReadOnly=this.disabled,this.$_setUpEditorEvents(),this.$emit("ready",e)}).catch(e=>{console.error(e)})},beforeDestroy(){this.instance&&(this.instance.destroy(),this.instance=null),this.$emit("destroy",this.instance)},watch:{value(e,t){e!==t&&e!==this.$_lastEditorData&&this.instance.setData(e)},disabled(e){this.instance.isReadOnly=e}},methods:{$_setUpEditorEvents(){const e=this.instance,t=function(e,t,n){var i,o,a,c,l,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=i,r=o;return i=o=void 0,d=t,c=e.apply(r,n)}function v(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-d>=a}function g(){var e=s();if(v(e))return b(e);l=setTimeout(g,function(e){var n=t-(e-u);return h?C(n,a-(e-d)):n}(e))}function b(e){return l=void 0,p&&i?m(e):(i=o=void 0,c)}function y(){var e=s(),n=v(e);if(i=arguments,o=this,u=e,n){if(void 0===l)return function(e){return d=e,l=setTimeout(g,t),f?m(e):c}(u);if(h)return clearTimeout(l),l=setTimeout(g,t),m(u)}return void 0===l&&(l=setTimeout(g,t)),c}return t=w(t)||0,r(n)&&(f=!!n.leading,a=(h="maxWait"in n)?_(w(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==l&&clearTimeout(l),d=0,i=u=o=l=void 0},y.flush=function(){return void 0===l?c:b(s())},y}(t=>{const n=this.$_lastEditorData=e.getData();this.$emit("input",n,t,e)},300,{leading:!0});e.model.document.on("change:data",t),e.editing.view.document.on("focus",t=>{this.$emit("focus",t,e)}),e.editing.view.document.on("blur",t=>{this.$emit("blur",t,e)})}}};const x={install(e){e.component("ckeditor",A)},component:A};t.default=x}]).default},function(e,t,n){e.exports=n(197)},function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VueSimpleProgress=void 0;var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r};"undefined"!=typeof window&&window.Vue&&Vue.component("vue-simple-progress",o.default),t.VueSimpleProgress=o.default,t.default=o.default},function(e,t,n){var r=n(2)(n(3),n(4),null,null);e.exports=r.exports},function(e,t){e.exports=function(e,t,n,r){var i,o=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(i=e,o=e.default);var s="function"==typeof o?o.options:o;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var c=Object.create(s.computed||null);Object.keys(r).forEach((function(e){var t=r[e];c[e]=function(){return t}})),s.computed=c}return{esModule:i,exports:o,options:s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};t.default={props:{val:{default:0},max:{default:100},size:{default:3},"bg-color":{type:String,default:"#eee"},"bar-color":{type:String,default:"#2196f3"},"bar-transition":{type:String,default:"all 0.5s ease"},"bar-border-radius":{type:Number,default:0},spacing:{type:Number,default:4},text:{type:String,default:""},"text-align":{type:String,default:"center"},"text-position":{type:String,default:"bottom"},"font-size":{type:Number,default:13},"text-fg-color":{type:String,default:"#222"}},computed:{pct:function(){var e=this.val/this.max*100;return e=e.toFixed(2),Math.min(e,this.max)},size_px:function(){switch(this.size){case"tiny":return 2;case"small":return 4;case"medium":return 8;case"large":return 12;case"big":return 16;case"huge":return 32;case"massive":return 64}return r(this.size)?this.size:32},text_padding:function(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(this.size_px/8),3),12)}return r(this.spacing)?this.spacing:4},text_font_size:function(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(1.4*this.size_px),11),32)}return r(this.fontSize)?this.fontSize:13},progress_style:function(){var e={background:this.bgColor};return"middle"!=this.textPosition&&"inside"!=this.textPosition||(e.position="relative",e["min-height"]=this.size_px+"px",e["z-index"]="-2"),this.barBorderRadius>0&&(e["border-radius"]=this.barBorderRadius+"px"),e},bar_style:function(){var e={background:this.barColor,width:this.pct+"%",height:this.size_px+"px",transition:this.barTransition};return this.barBorderRadius>0&&(e["border-radius"]=this.barBorderRadius+"px"),"middle"!=this.textPosition&&"inside"!=this.textPosition||(e.position="absolute",e.top="0",e.height="100%",e["min-height"]=this.size_px+"px",e["z-index"]="-1"),e},text_style:function(){var e={color:this.textFgColor,"font-size":this.text_font_size+"px","text-align":this.textAlign};return"top"!=this.textPosition&&"middle"!=this.textPosition&&"inside"!=this.textPosition||(e["padding-bottom"]=this.text_padding+"px"),"bottom"!=this.textPosition&&"middle"!=this.textPosition&&"inside"!=this.textPosition||(e["padding-top"]=this.text_padding+"px"),e}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.text.length>0&&"top"==e.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:e.text_style},[e._v(e._s(e.text))]):e._e(),e._v(" "),n("div",{staticClass:"vue-simple-progress",style:e.progress_style},[e.text.length>0&&"middle"==e.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:e.text_style},[e._v(e._s(e.text))]):e._e(),e._v(" "),e.text.length>0&&"inside"==e.textPosition?n("div",{staticStyle:{position:"relative",left:"-9999px"},style:e.text_style},[e._v(e._s(e.text))]):e._e(),e._v(" "),n("div",{staticClass:"vue-simple-progress-bar",style:e.bar_style},[e.text.length>0&&"inside"==e.textPosition?n("div",{style:e.text_style},[e._v(e._s(e.text))]):e._e()])]),e._v(" "),e.text.length>0&&"bottom"==e.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:e.text_style},[e._v(e._s(e.text))]):e._e()])},staticRenderFns:[]}}]).default},e.exports=r()},function(e,t,n){"use strict";var r=n(28),i=n.n(r);n(182);t.a={components:{ckeditor:i.a.component},data:function(){return{editor:ClassicEditor,editorConfig:{toolbar:{items:["heading","|","alignment","fontColor","fontSize","|","bold","italic","|","link","bulletedList","numberedList","|","indent","outdent","|","imageUpload","undo","redo"]},link:{addTargetToExternalLinks:!0,defaultProtocol:"http://"},mediaEmbed:{previewsInData:!0},fontSize:{options:[16,"default",18,22,24,28,34,38],supportAllValues:!0},language:"fr",image:{toolbar:["linkImage"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},fontColor:{colors:[{label:"psq_red",color:"#d04d4a"},{label:"psq_blue",color:"#074e9c"},{label:"psq_light_blue",color:"#cddceb"},{label:"psq_purple",color:"#AD5ED3"},{label:"psq_cyan",color:"#288ed7"},{label:"psq_magenta",color:"#ce317c"},{label:"psq_orange",color:"#e79817"},{label:"psq_grey",color:"#546983"},{label:"psq_denim",color:"#0c2c50"},{label:"psq_green",color:"#41BD53"},{label:"psq_mag_blue",color:"#2a6ba3"}]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Titre 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Titre 2",class:"ck-heading_heading2"}]},simpleUpload:{uploadUrl:"/ckeditor/upload",headers:{"X-CSRF-TOKEN":document.querySelectorAll('meta[name="csrf-token"]')[0].content}}}}}}},function(e,t,n){var r=n(43),i=n(289),o=n(290),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(33),i=n(13),o=n(242),a=n(6);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t,n){e.exports=n(121)},function(e,t,n){(function(e,r){var i;(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]],c="[object Arguments]",l="[object Array]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",g="[object Object]",b="[object RegExp]",y="[object Set]",k="[object String]",w="[object Symbol]",_="[object WeakMap]",C="[object ArrayBuffer]",A="[object DataView]",x="[object Float32Array]",S="[object Float64Array]",M="[object Int8Array]",E="[object Int16Array]",T="[object Int32Array]",D="[object Uint8Array]",O="[object Uint16Array]",P="[object Uint32Array]",I=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,B=RegExp(R.source),F=RegExp(L.source),z=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(W.source),K=/^\s+|\s+$/g,G=/^\s+/,Q=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ce=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",he="\\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",pe="[\\ud800-\\udfff]",me="["+he+"]",ve="["+fe+"]",ge="\\d+",be="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",ke="[^\\ud800-\\udfff"+he+ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",_e="[^\\ud800-\\udfff]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",Ae="[\\ud800-\\udbff][\\udc00-\\udfff]",xe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Se="(?:"+ye+"|"+ke+")",Me="(?:"+xe+"|"+ke+")",Ee="(?:"+ve+"|"+we+")"+"?",Te="[\\ufe0e\\ufe0f]?"+Ee+("(?:\\u200d(?:"+[_e,Ce,Ae].join("|")+")[\\ufe0e\\ufe0f]?"+Ee+")*"),De="(?:"+[be,Ce,Ae].join("|")+")"+Te,Oe="(?:"+[_e+ve+"?",ve,Ce,Ae,pe].join("|")+")",Pe=RegExp("['’]","g"),Ie=RegExp(ve,"g"),je=RegExp(we+"(?="+we+")|"+Oe+Te,"g"),Ne=RegExp([xe+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,xe,"$"].join("|")+")",Me+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,xe+Se,"$"].join("|")+")",xe+"?"+Se+"+(?:['’](?:d|ll|m|re|s|t|ve))?",xe+"+(?:['’](?: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_])",ge,De].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Be=["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"],Fe=-1,ze={};ze[x]=ze[S]=ze[M]=ze[E]=ze[T]=ze[D]=ze["[object Uint8ClampedArray]"]=ze[O]=ze[P]=!0,ze[c]=ze[l]=ze[C]=ze[u]=ze[A]=ze[d]=ze[f]=ze[h]=ze[m]=ze[v]=ze[g]=ze[b]=ze[y]=ze[k]=ze[_]=!1;var Ve={};Ve[c]=Ve[l]=Ve[C]=Ve[A]=Ve[u]=Ve[d]=Ve[x]=Ve[S]=Ve[M]=Ve[E]=Ve[T]=Ve[m]=Ve[v]=Ve[g]=Ve[b]=Ve[y]=Ve[k]=Ve[w]=Ve[D]=Ve["[object Uint8ClampedArray]"]=Ve[O]=Ve[P]=!0,Ve[f]=Ve[h]=Ve[_]=!1;var $e={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,Ue=parseInt,qe="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,Ye=qe||We||Function("return this")(),Ke=t&&!t.nodeType&&t,Ge=Ke&&"object"==typeof r&&r&&!r.nodeType&&r,Qe=Ge&&Ge.exports===Ke,Xe=Qe&&qe.process,Je=function(){try{var e=Ge&&Ge.require&&Ge.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Ze=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,it=Je&&Je.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function dt(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function ft(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ht(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function mt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function vt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var bt=xt("length");function yt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function kt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):kt(e,Ct,n)}function _t(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ct(e){return e!=e}function At(e,t){var n=null==e?0:e.length;return n?Et(e,t)/n:NaN}function xt(e){return function(t){return null==t?void 0:t[e]}}function St(e){return function(t){return null==e?void 0:e[t]}}function Mt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Et(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Tt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Dt(e){return function(t){return e(t)}}function Ot(e,t){return ht(t,(function(t){return e[t]}))}function Pt(e,t){return e.has(t)}function It(e,t){for(var n=-1,r=e.length;++n<r&&wt(t,e[n],0)>-1;);return n}function jt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Rt=St({"À":"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"}),Lt=St({"&":"&","<":"<",">":">",'"':""","'":"'"});function Bt(e){return"\\"+$e[e]}function Ft(e){return Re.test(e)}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Vt(e,t){return function(n){return e(t(n))}}function $t(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function qt(e){return Ft(e)?function(e){var t=je.lastIndex=0;for(;je.test(e);)++t;return t}(e):bt(e)}function Wt(e){return Ft(e)?function(e){return e.match(je)||[]}(e):function(e){return e.split("")}(e)}var Yt=St({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Kt=function e(t){var n,r=(t=null==t?Ye:Kt.defaults(Ye.Object(),t,Kt.pick(Ye,Be))).Array,i=t.Date,fe=t.Error,he=t.Function,pe=t.Math,me=t.Object,ve=t.RegExp,ge=t.String,be=t.TypeError,ye=r.prototype,ke=he.prototype,we=me.prototype,_e=t["__core-js_shared__"],Ce=ke.toString,Ae=we.hasOwnProperty,xe=0,Se=(n=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Me=we.toString,Ee=Ce.call(me),Te=Ye._,De=ve("^"+Ce.call(Ae).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=Qe?t.Buffer:void 0,je=t.Symbol,Re=t.Uint8Array,$e=Oe?Oe.allocUnsafe:void 0,qe=Vt(me.getPrototypeOf,me),We=me.create,Ke=we.propertyIsEnumerable,Ge=ye.splice,Xe=je?je.isConcatSpreadable:void 0,Je=je?je.iterator:void 0,bt=je?je.toStringTag:void 0,St=function(){try{var e=Zi(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Gt=t.clearTimeout!==Ye.clearTimeout&&t.clearTimeout,Qt=i&&i.now!==Ye.Date.now&&i.now,Xt=t.setTimeout!==Ye.setTimeout&&t.setTimeout,Jt=pe.ceil,Zt=pe.floor,en=me.getOwnPropertySymbols,tn=Oe?Oe.isBuffer:void 0,nn=t.isFinite,rn=ye.join,on=Vt(me.keys,me),an=pe.max,sn=pe.min,cn=i.now,ln=t.parseInt,un=pe.random,dn=ye.reverse,fn=Zi(t,"DataView"),hn=Zi(t,"Map"),pn=Zi(t,"Promise"),mn=Zi(t,"Set"),vn=Zi(t,"WeakMap"),gn=Zi(me,"create"),bn=vn&&new vn,yn={},kn=Mo(fn),wn=Mo(hn),_n=Mo(pn),Cn=Mo(mn),An=Mo(vn),xn=je?je.prototype:void 0,Sn=xn?xn.valueOf:void 0,Mn=xn?xn.toString:void 0;function En(e){if(Ua(e)&&!Ia(e)&&!(e instanceof Pn)){if(e instanceof On)return e;if(Ae.call(e,"__wrapped__"))return Eo(e)}return new On(e)}var Tn=function(){function e(){}return function(t){if(!Ha(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Dn(){}function On(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Pn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function In(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Nn;++t<n;)this.add(e[t])}function Ln(e){var t=this.__data__=new jn(e);this.size=t.size}function Bn(e,t){var n=Ia(e),r=!n&&Pa(e),i=!n&&!r&&La(e),o=!n&&!r&&!i&&Ja(e),a=n||r||i||o,s=a?Tt(e.length,ge):[],c=s.length;for(var l in e)!t&&!Ae.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ao(l,c))||s.push(l);return s}function Fn(e){var t=e.length;return t?e[Rr(0,t-1)]:void 0}function zn(e,t){return Ao(gi(e),Gn(t,0,e.length))}function Vn(e){return Ao(gi(e))}function $n(e,t,n){(void 0!==n&&!Ta(e[t],n)||void 0===n&&!(t in e))&&Yn(e,t,n)}function Hn(e,t,n){var r=e[t];Ae.call(e,t)&&Ta(r,n)&&(void 0!==n||t in e)||Yn(e,t,n)}function Un(e,t){for(var n=e.length;n--;)if(Ta(e[n][0],t))return n;return-1}function qn(e,t,n,r){return er(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Wn(e,t){return e&&bi(t,ks(t),e)}function Yn(e,t,n){"__proto__"==t&&St?St(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kn(e,t){for(var n=-1,i=t.length,o=r(i),a=null==e;++n<i;)o[n]=a?void 0:ms(e,t[n]);return o}function Gn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Qn(e,t,n,r,i,o){var a,s=1&t,l=2&t,f=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ha(e))return e;var _=Ia(e);if(_){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ae.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return gi(e,a)}else{var I=no(e),j=I==h||I==p;if(La(e))return di(e,s);if(I==g||I==c||j&&!i){if(a=l||j?{}:io(e),!s)return l?function(e,t){return bi(e,to(e),t)}(e,function(e,t){return e&&bi(t,ws(t),e)}(a,e)):function(e,t){return bi(e,eo(e),t)}(e,Wn(a,e))}else{if(!Ve[I])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case C:return fi(e);case u:case d:return new r(+e);case A:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case x:case S:case M:case E:case T:case D:case"[object Uint8ClampedArray]":case O:case P:return hi(e,n);case m:return new r;case v:case k:return new r(e);case b:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new r;case w:return i=e,Sn?me(Sn.call(i)):{}}var i}(e,I,s)}}o||(o=new Ln);var N=o.get(e);if(N)return N;o.set(e,a),Ga(e)?e.forEach((function(r){a.add(Qn(r,t,n,r,e,o))})):qa(e)&&e.forEach((function(r,i){a.set(i,Qn(r,t,n,i,e,o))}));var R=_?void 0:(f?l?Wi:qi:l?ws:ks)(e);return st(R||e,(function(r,i){R&&(r=e[i=r]),Hn(a,i,Qn(r,t,n,i,e,o))})),a}function Xn(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Jn(e,t,n){if("function"!=typeof e)throw new be(o);return ko((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,r){var i=-1,o=dt,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=ht(t,Dt(n))),r?(o=ft,a=!1):t.length>=200&&(o=Pt,a=!1,t=new Rn(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=l;f--;)if(t[f]===d)continue e;c.push(u)}else o(t,d,r)||c.push(u)}return c}En.templateSettings={escape:z,evaluate:V,interpolate:$,variable:"",imports:{_:En}},En.prototype=Dn.prototype,En.prototype.constructor=En,On.prototype=Tn(Dn.prototype),On.prototype.constructor=On,Pn.prototype=Tn(Dn.prototype),Pn.prototype.constructor=Pn,In.prototype.clear=function(){this.__data__=gn?gn(null):{},this.size=0},In.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},In.prototype.get=function(e){var t=this.__data__;if(gn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ae.call(t,e)?t[e]:void 0},In.prototype.has=function(e){var t=this.__data__;return gn?void 0!==t[e]:Ae.call(t,e)},In.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gn&&void 0===t?"__lodash_hash_undefined__":t,this},jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(e){var t=this.__data__,n=Un(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},jn.prototype.get=function(e){var t=this.__data__,n=Un(t,e);return n<0?void 0:t[n][1]},jn.prototype.has=function(e){return Un(this.__data__,e)>-1},jn.prototype.set=function(e,t){var n=this.__data__,r=Un(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new In,map:new(hn||jn),string:new In}},Nn.prototype.delete=function(e){var t=Xi(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Xi(this,e).get(e)},Nn.prototype.has=function(e){return Xi(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Xi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.clear=function(){this.__data__=new jn,this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ln.prototype.get=function(e){return this.__data__.get(e)},Ln.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.set=function(e,t){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var er=wi(cr),tr=wi(lr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function rr(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!Xa(a):n(a,s)))var s=a,c=o}return c}function ir(e,t){var n=[];return er(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function or(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=oo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?or(s,t-1,n,r,i):pt(i,s):r||(i[i.length]=s)}return i}var ar=_i(),sr=_i(!0);function cr(e,t){return e&&ar(e,t,ks)}function lr(e,t){return e&&sr(e,t,ks)}function ur(e,t){return ut(t,(function(t){return za(e[t])}))}function dr(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&n<r;)e=e[So(t[n++])];return n&&n==r?e:void 0}function fr(e,t,n){var r=t(e);return Ia(e)?r:pt(r,n(e))}function hr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bt&&bt in me(e)?function(e){var t=Ae.call(e,bt),n=e[bt];try{e[bt]=void 0;var r=!0}catch(e){}var i=Me.call(e);r&&(t?e[bt]=n:delete e[bt]);return i}(e):function(e){return Me.call(e)}(e)}function pr(e,t){return e>t}function mr(e,t){return null!=e&&Ae.call(e,t)}function vr(e,t){return null!=e&&t in me(e)}function gr(e,t,n){for(var i=n?ft:dt,o=e[0].length,a=e.length,s=a,c=r(a),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=ht(d,Dt(t))),l=sn(d.length,l),c[s]=!n&&(t||o>=120&&d.length>=120)?new Rn(s&&d):void 0}d=e[0];var f=-1,h=c[0];e:for(;++f<o&&u.length<l;){var p=d[f],m=t?t(p):p;if(p=n||0!==p?p:0,!(h?Pt(h,m):i(u,m,n))){for(s=a;--s;){var v=c[s];if(!(v?Pt(v,m):i(e[s],m,n)))continue e}h&&h.push(m),u.push(p)}}return u}function br(e,t,n){var r=null==(e=vo(e,t=si(t,e)))?e:e[So(Fo(t))];return null==r?void 0:ot(r,e,n)}function yr(e){return Ua(e)&&hr(e)==c}function kr(e,t,n,r,i){return e===t||(null==e||null==t||!Ua(e)&&!Ua(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=Ia(e),s=Ia(t),h=a?l:no(e),p=s?l:no(t),_=(h=h==c?g:h)==g,x=(p=p==c?g:p)==g,S=h==p;if(S&&La(e)){if(!La(t))return!1;a=!0,_=!1}if(S&&!_)return o||(o=new Ln),a||Ja(e)?Hi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!o(new Re(e),new Re(t)));case u:case d:case v:return Ta(+e,+t);case f:return e.name==t.name&&e.message==t.message;case b:case k:return e==t+"";case m:var s=zt;case y:var c=1&r;if(s||(s=Ht),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var h=Hi(s(e),s(t),r,i,o,a);return a.delete(e),h;case w:if(Sn)return Sn.call(e)==Sn.call(t)}return!1}(e,t,h,n,r,i,o);if(!(1&n)){var M=_&&Ae.call(e,"__wrapped__"),E=x&&Ae.call(t,"__wrapped__");if(M||E){var T=M?e.value():e,D=E?t.value():t;return o||(o=new Ln),i(T,D,n,r,o)}}if(!S)return!1;return o||(o=new Ln),function(e,t,n,r,i,o){var a=1&n,s=qi(e),c=s.length,l=qi(t).length;if(c!=l&&!a)return!1;var u=c;for(;u--;){var d=s[u];if(!(a?d in t:Ae.call(t,d)))return!1}var f=o.get(e),h=o.get(t);if(f&&h)return f==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);var m=a;for(;++u<c;){d=s[u];var v=e[d],g=t[d];if(r)var b=a?r(g,v,d,t,e,o):r(v,g,d,e,t,o);if(!(void 0===b?v===g||i(v,g,n,r,o):b)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var y=e.constructor,k=t.constructor;y==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof k&&k instanceof k||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o)}(e,t,n,r,kr,i))}function wr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=me(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var c=(s=n[i])[0],l=e[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in e))return!1}else{var d=new Ln;if(r)var f=r(l,u,c,e,t,d);if(!(void 0===f?kr(u,l,3,r,d):f))return!1}}return!0}function _r(e){return!(!Ha(e)||(t=e,Se&&Se in t))&&(za(e)?De:ae).test(Mo(e));var t}function Cr(e){return"function"==typeof e?e:null==e?Ws:"object"==typeof e?Ia(e)?Tr(e[0],e[1]):Er(e):tc(e)}function Ar(e){if(!fo(e))return on(e);var t=[];for(var n in me(e))Ae.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xr(e){if(!Ha(e))return function(e){var t=[];if(null!=e)for(var n in me(e))t.push(n);return t}(e);var t=fo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ae.call(e,r))&&n.push(r);return n}function Sr(e,t){return e<t}function Mr(e,t){var n=-1,i=Na(e)?r(e.length):[];return er(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Er(e){var t=Ji(e);return 1==t.length&&t[0][2]?po(t[0][0],t[0][1]):function(n){return n===e||wr(n,e,t)}}function Tr(e,t){return co(e)&&ho(t)?po(So(e),t):function(n){var r=ms(n,e);return void 0===r&&r===t?vs(n,e):kr(t,r,3)}}function Dr(e,t,n,r,i){e!==t&&ar(t,(function(o,a){if(i||(i=new Ln),Ha(o))!function(e,t,n,r,i,o,a){var s=bo(e,n),c=bo(t,n),l=a.get(c);if(l)return void $n(e,n,l);var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var f=Ia(c),h=!f&&La(c),p=!f&&!h&&Ja(c);u=c,f||h||p?Ia(s)?u=s:Ra(s)?u=gi(s):h?(d=!1,u=di(c,!0)):p?(d=!1,u=hi(c,!0)):u=[]:Ya(c)||Pa(c)?(u=s,Pa(s)?u=as(s):Ha(s)&&!za(s)||(u=io(c))):d=!1}d&&(a.set(c,u),i(u,c,r,o,a),a.delete(c));$n(e,n,u)}(e,t,a,n,Dr,r,i);else{var s=r?r(bo(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),$n(e,a,s)}}),ws)}function Or(e,t){var n=e.length;if(n)return ao(t+=t<0?n:0,n)?e[t]:void 0}function Pr(e,t,n){t=t.length?ht(t,(function(e){return Ia(e)?function(t){return dr(t,1===e.length?e[0]:e)}:e})):[Ws];var r=-1;return t=ht(t,Dt(Qi())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Mr(e,(function(e,n,i){return{criteria:ht(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var c=pi(i[r],o[r]);if(c){if(r>=s)return c;var l=n[r];return c*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Ir(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=dr(e,a);n(s,a)&&Vr(o,si(a,e),s)}return o}function jr(e,t,n,r){var i=r?_t:wt,o=-1,a=t.length,s=e;for(e===t&&(t=gi(t)),n&&(s=ht(e,Dt(n)));++o<a;)for(var c=0,l=t[o],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Ge.call(s,c,1),Ge.call(e,c,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;ao(i)?Ge.call(e,i,1):Zr(e,i)}}return e}function Rr(e,t){return e+Zt(un()*(t-e+1))}function Lr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function Br(e,t){return wo(mo(e,t,Ws),e+"")}function Fr(e){return Fn(Ts(e))}function zr(e,t){var n=Ts(e);return Ao(n,Gn(t,0,n.length))}function Vr(e,t,n,r){if(!Ha(e))return e;for(var i=-1,o=(t=si(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var c=So(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=a){var u=s[c];void 0===(l=r?r(u,c,s):void 0)&&(l=Ha(u)?u:ao(t[i+1])?[]:{})}Hn(s,c,l),s=s[c]}return e}var $r=bn?function(e,t){return bn.set(e,t),e}:Ws,Hr=St?function(e,t){return St(e,"toString",{configurable:!0,enumerable:!1,value:Hs(t),writable:!0})}:Ws;function Ur(e){return Ao(Ts(e))}function qr(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function Wr(e,t){var n;return er(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Yr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Xa(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Kr(e,t,Ws,n)}function Kr(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,s=null===t,c=Xa(t),l=void 0===t;i<o;){var u=Zt((i+o)/2),d=n(e[u]),f=void 0!==d,h=null===d,p=d==d,m=Xa(d);if(a)var v=r||p;else v=l?p&&(r||f):s?p&&f&&(r||!h):c?p&&f&&!h&&(r||!m):!h&&!m&&(r?d<=t:d<t);v?i=u+1:o=u}return sn(o,4294967294)}function Gr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ta(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function Qr(e){return"number"==typeof e?e:Xa(e)?NaN:+e}function Xr(e){if("string"==typeof e)return e;if(Ia(e))return ht(e,Xr)+"";if(Xa(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Jr(e,t,n){var r=-1,i=dt,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=ft;else if(o>=200){var l=t?null:Li(e);if(l)return Ht(l);a=!1,i=Pt,c=new Rn}else c=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Zr(e,t){return null==(e=vo(e,t=si(t,e)))||delete e[So(Fo(t))]}function ei(e,t,n,r){return Vr(e,t,n(dr(e,t)),r)}function ti(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?qr(e,r?0:o,r?o+1:i):qr(e,r?o+1:0,r?i:o)}function ni(e,t){var n=e;return n instanceof Pn&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,pt([e],t.args))}),n)}function ri(e,t,n){var i=e.length;if(i<2)return i?Jr(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],c=-1;++c<i;)c!=o&&(a[o]=Zn(a[o]||s,e[c],t,n));return Jr(or(a,1),t,n)}function ii(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function oi(e){return Ra(e)?e:[]}function ai(e){return"function"==typeof e?e:Ws}function si(e,t){return Ia(e)?e:co(e,t)?[e]:xo(ss(e))}var ci=Br;function li(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:qr(e,t,n)}var ui=Gt||function(e){return Ye.clearTimeout(e)};function di(e,t){if(t)return e.slice();var n=e.length,r=$e?$e(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Re(t).set(new Re(e)),t}function hi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function pi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Xa(e),a=void 0!==t,s=null===t,c=t==t,l=Xa(t);if(!s&&!l&&!o&&e>t||o&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!c)return-1}return 0}function mi(e,t,n,i){for(var o=-1,a=e.length,s=n.length,c=-1,l=t.length,u=an(a-s,0),d=r(l+u),f=!i;++c<l;)d[c]=t[c];for(;++o<s;)(f||o<a)&&(d[n[o]]=e[o]);for(;u--;)d[c++]=e[o++];return d}function vi(e,t,n,i){for(var o=-1,a=e.length,s=-1,c=n.length,l=-1,u=t.length,d=an(a-c,0),f=r(d+u),h=!i;++o<d;)f[o]=e[o];for(var p=o;++l<u;)f[p+l]=t[l];for(;++s<c;)(h||o<a)&&(f[p+n[s]]=e[o++]);return f}function gi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function bi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?Yn(n,s,c):Hn(n,s,c)}return n}function yi(e,t){return function(n,r){var i=Ia(n)?at:qn,o=t?t():{};return i(n,e,Qi(r,2),o)}}function ki(e){return Br((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=me(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}function wi(e,t){return function(n,r){if(null==n)return n;if(!Na(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=me(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function _i(e){return function(t,n,r){for(var i=-1,o=me(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}function Ci(e){return function(t){var n=Ft(t=ss(t))?Wt(t):void 0,r=n?n[0]:t.charAt(0),i=n?li(n,1).join(""):t.slice(1);return r[e]()+i}}function Ai(e){return function(t){return mt(zs(Ps(t).replace(Pe,"")),e,"")}}function xi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Tn(e.prototype),r=e.apply(n,t);return Ha(r)?r:n}}function Si(e){return function(t,n,r){var i=me(t);if(!Na(t)){var o=Qi(n,3);t=ks(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}function Mi(e){return Ui((function(t){var n=t.length,r=n,i=On.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new be(o);if(i&&!s&&"wrapper"==Ki(a))var s=new On([],!0)}for(r=s?r:n;++r<n;){var c=Ki(a=t[r]),l="wrapper"==c?Yi(a):void 0;s=l&&lo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[Ki(l[0])].apply(s,l[3]):1==a.length&&lo(a)?s[c]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ia(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ei(e,t,n,i,o,a,s,c,l,u){var d=128&t,f=1&t,h=2&t,p=24&t,m=512&t,v=h?void 0:xi(e);return function g(){for(var b=arguments.length,y=r(b),k=b;k--;)y[k]=arguments[k];if(p)var w=Gi(g),_=Nt(y,w);if(i&&(y=mi(y,i,o,p)),a&&(y=vi(y,a,s,p)),b-=_,p&&b<u){var C=$t(y,w);return Ni(e,t,Ei,g.placeholder,n,y,C,c,l,u-b)}var A=f?n:this,x=h?A[e]:e;return b=y.length,c?y=go(y,c):m&&b>1&&y.reverse(),d&&l<b&&(y.length=l),this&&this!==Ye&&this instanceof g&&(x=v||xi(x)),x.apply(A,y)}}function Ti(e,t){return function(n,r){return function(e,t,n,r){return cr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Di(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Xr(n),r=Xr(r)):(n=Qr(n),r=Qr(r)),i=e(n,r)}return i}}function Oi(e){return Ui((function(t){return t=ht(t,Dt(Qi())),Br((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Pi(e,t){var n=(t=void 0===t?" ":Xr(t)).length;if(n<2)return n?Lr(t,e):t;var r=Lr(t,Jt(e/qt(t)));return Ft(t)?li(Wt(r),0,e).join(""):r.slice(0,e)}function Ii(e){return function(t,n,i){return i&&"number"!=typeof i&&so(t,n,i)&&(n=i=void 0),t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n,i){for(var o=-1,a=an(Jt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,i=void 0===i?t<n?1:-1:ns(i),e)}}function ji(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=os(t),n=os(n)),e(t,n)}}function Ni(e,t,n,r,i,o,a,s,c,l){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,i,u?o:void 0,u?a:void 0,u?void 0:o,u?void 0:a,s,c,l],f=n.apply(void 0,d);return lo(e)&&yo(f,d),f.placeholder=r,_o(f,e,t)}function Ri(e){var t=pe[e];return function(e,n){if(e=os(e),(n=null==n?0:sn(rs(n),292))&&nn(e)){var r=(ss(e)+"e").split("e");return+((r=(ss(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Li=mn&&1/Ht(new mn([,-0]))[1]==1/0?function(e){return new mn(e)}:Xs;function Bi(e){return function(t){var n=no(t);return n==m?zt(t):n==y?Ut(t):function(e,t){return ht(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Fi(e,t,n,i,s,c,l,u){var d=2&t;if(!d&&"function"!=typeof e)throw new be(o);var f=i?i.length:0;if(f||(t&=-97,i=s=void 0),l=void 0===l?l:an(rs(l),0),u=void 0===u?u:rs(u),f-=s?s.length:0,64&t){var h=i,p=s;i=s=void 0}var m=d?void 0:Yi(e),v=[e,t,n,i,s,h,p,c,l,u];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?mi(l,c,t[4]):c,e[4]=l?$t(e[3],a):t[4]}(c=t[5])&&(l=e[5],e[5]=l?vi(l,c,t[6]):c,e[6]=l?$t(e[5],a):t[6]);(c=t[7])&&(e[7]=c);128&r&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(v,m),e=v[0],t=v[1],n=v[2],i=v[3],s=v[4],!(u=v[9]=void 0===v[9]?d?0:e.length:an(v[9]-f,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var i=xi(e);return function o(){for(var a=arguments.length,s=r(a),c=a,l=Gi(o);c--;)s[c]=arguments[c];var u=a<3&&s[0]!==l&&s[a-1]!==l?[]:$t(s,l);if((a-=u.length)<n)return Ni(e,t,Ei,o.placeholder,void 0,s,u,void 0,void 0,n-a);var d=this&&this!==Ye&&this instanceof o?i:e;return ot(d,this,s)}}(e,t,u):32!=t&&33!=t||s.length?Ei.apply(void 0,v):function(e,t,n,i){var o=1&t,a=xi(e);return function t(){for(var s=-1,c=arguments.length,l=-1,u=i.length,d=r(u+c),f=this&&this!==Ye&&this instanceof t?a:e;++l<u;)d[l]=i[l];for(;c--;)d[l++]=arguments[++s];return ot(f,o?n:this,d)}}(e,t,n,i);else var g=function(e,t,n){var r=1&t,i=xi(e);return function t(){var o=this&&this!==Ye&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,n);return _o((m?$r:yo)(g,v),e,t)}function zi(e,t,n,r){return void 0===e||Ta(e,we[n])&&!Ae.call(r,n)?t:e}function Vi(e,t,n,r,i,o){return Ha(e)&&Ha(t)&&(o.set(t,e),Dr(e,t,void 0,Vi,o),o.delete(t)),e}function $i(e){return Ya(e)?void 0:e}function Hi(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,h=2&n?new Rn:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var v=a?r(m,p,d,t,e,o):r(p,m,d,e,t,o);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!gt(t,(function(e,t){if(!Pt(h,t)&&(p===e||i(p,e,n,r,o)))return h.push(t)}))){f=!1;break}}else if(p!==m&&!i(p,m,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Ui(e){return wo(mo(e,void 0,jo),e+"")}function qi(e){return fr(e,ks,eo)}function Wi(e){return fr(e,ws,to)}var Yi=bn?function(e){return bn.get(e)}:Xs;function Ki(e){for(var t=e.name+"",n=yn[t],r=Ae.call(yn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Gi(e){return(Ae.call(En,"placeholder")?En:e).placeholder}function Qi(){var e=En.iteratee||Ys;return e=e===Ys?Cr:e,arguments.length?e(arguments[0],arguments[1]):e}function Xi(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ji(e){for(var t=ks(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ho(i)]}return t}function Zi(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return _r(n)?n:void 0}var eo=en?function(e){return null==e?[]:(e=me(e),ut(en(e),(function(t){return Ke.call(e,t)})))}:ic,to=en?function(e){for(var t=[];e;)pt(t,eo(e)),e=qe(e);return t}:ic,no=hr;function ro(e,t,n){for(var r=-1,i=(t=si(t,e)).length,o=!1;++r<i;){var a=So(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&$a(i)&&ao(a,i)&&(Ia(e)||Pa(e))}function io(e){return"function"!=typeof e.constructor||fo(e)?{}:Tn(qe(e))}function oo(e){return Ia(e)||Pa(e)||!!(Xe&&e&&e[Xe])}function ao(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ce.test(e))&&e>-1&&e%1==0&&e<t}function so(e,t,n){if(!Ha(n))return!1;var r=typeof t;return!!("number"==r?Na(n)&&ao(t,n.length):"string"==r&&t in n)&&Ta(n[t],e)}function co(e,t){if(Ia(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xa(e))||(U.test(e)||!H.test(e)||null!=t&&e in me(t))}function lo(e){var t=Ki(e),n=En[t];if("function"!=typeof n||!(t in Pn.prototype))return!1;if(e===n)return!0;var r=Yi(n);return!!r&&e===r[0]}(fn&&no(new fn(new ArrayBuffer(1)))!=A||hn&&no(new hn)!=m||pn&&"[object Promise]"!=no(pn.resolve())||mn&&no(new mn)!=y||vn&&no(new vn)!=_)&&(no=function(e){var t=hr(e),n=t==g?e.constructor:void 0,r=n?Mo(n):"";if(r)switch(r){case kn:return A;case wn:return m;case _n:return"[object Promise]";case Cn:return y;case An:return _}return t});var uo=_e?za:oc;function fo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function ho(e){return e==e&&!Ha(e)}function po(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in me(n)))}}function mo(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=an(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var c=r(t+1);++o<t;)c[o]=i[o];return c[t]=n(s),ot(e,this,c)}}function vo(e,t){return t.length<2?e:dr(e,qr(t,0,-1))}function go(e,t){for(var n=e.length,r=sn(t.length,n),i=gi(e);r--;){var o=t[r];e[r]=ao(o,n)?i[o]:void 0}return e}function bo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var yo=Co($r),ko=Xt||function(e,t){return Ye.setTimeout(e,t)},wo=Co(Hr);function _o(e,t,n){var r=t+"";return wo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(J);return t?t[1].split(Z):[]}(r),n)))}function Co(e){var t=0,n=0;return function(){var r=cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ao(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=Rr(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var xo=function(e){var t=Ca(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(q,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function So(e){if("string"==typeof e||Xa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mo(e){if(null!=e){try{return Ce.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Eo(e){if(e instanceof Pn)return e.clone();var t=new On(e.__wrapped__,e.__chain__);return t.__actions__=gi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var To=Br((function(e,t){return Ra(e)?Zn(e,or(t,1,Ra,!0)):[]})),Do=Br((function(e,t){var n=Fo(t);return Ra(n)&&(n=void 0),Ra(e)?Zn(e,or(t,1,Ra,!0),Qi(n,2)):[]})),Oo=Br((function(e,t){var n=Fo(t);return Ra(n)&&(n=void 0),Ra(e)?Zn(e,or(t,1,Ra,!0),void 0,n):[]}));function Po(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),kt(e,Qi(t,3),i)}function Io(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rs(n),i=n<0?an(r+i,0):sn(i,r-1)),kt(e,Qi(t,3),i,!0)}function jo(e){return(null==e?0:e.length)?or(e,1):[]}function No(e){return e&&e.length?e[0]:void 0}var Ro=Br((function(e){var t=ht(e,oi);return t.length&&t[0]===e[0]?gr(t):[]})),Lo=Br((function(e){var t=Fo(e),n=ht(e,oi);return t===Fo(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?gr(n,Qi(t,2)):[]})),Bo=Br((function(e){var t=Fo(e),n=ht(e,oi);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?gr(n,void 0,t):[]}));function Fo(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var zo=Br(Vo);function Vo(e,t){return e&&e.length&&t&&t.length?jr(e,t):e}var $o=Ui((function(e,t){var n=null==e?0:e.length,r=Kn(e,t);return Nr(e,ht(t,(function(e){return ao(e,n)?+e:e})).sort(pi)),r}));function Ho(e){return null==e?e:dn.call(e)}var Uo=Br((function(e){return Jr(or(e,1,Ra,!0))})),qo=Br((function(e){var t=Fo(e);return Ra(t)&&(t=void 0),Jr(or(e,1,Ra,!0),Qi(t,2))})),Wo=Br((function(e){var t=Fo(e);return t="function"==typeof t?t:void 0,Jr(or(e,1,Ra,!0),void 0,t)}));function Yo(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(Ra(e))return t=an(e.length,t),!0})),Tt(t,(function(t){return ht(e,xt(t))}))}function Ko(e,t){if(!e||!e.length)return[];var n=Yo(e);return null==t?n:ht(n,(function(e){return ot(t,void 0,e)}))}var Go=Br((function(e,t){return Ra(e)?Zn(e,t):[]})),Qo=Br((function(e){return ri(ut(e,Ra))})),Xo=Br((function(e){var t=Fo(e);return Ra(t)&&(t=void 0),ri(ut(e,Ra),Qi(t,2))})),Jo=Br((function(e){var t=Fo(e);return t="function"==typeof t?t:void 0,ri(ut(e,Ra),void 0,t)})),Zo=Br(Yo);var ea=Br((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Ko(e,n)}));function ta(e){var t=En(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=Ui((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Kn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Pn&&ao(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new On(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ia=yi((function(e,t,n){Ae.call(e,n)?++e[n]:Yn(e,n,1)}));var oa=Si(Po),aa=Si(Io);function sa(e,t){return(Ia(e)?st:er)(e,Qi(t,3))}function ca(e,t){return(Ia(e)?ct:tr)(e,Qi(t,3))}var la=yi((function(e,t,n){Ae.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var ua=Br((function(e,t,n){var i=-1,o="function"==typeof t,a=Na(e)?r(e.length):[];return er(e,(function(e){a[++i]=o?ot(t,e,n):br(e,t,n)})),a})),da=yi((function(e,t,n){Yn(e,n,t)}));function fa(e,t){return(Ia(e)?ht:Mr)(e,Qi(t,3))}var ha=yi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var pa=Br((function(e,t){if(null==e)return[];var n=t.length;return n>1&&so(e,t[0],t[1])?t=[]:n>2&&so(t[0],t[1],t[2])&&(t=[t[0]]),Pr(e,or(t,1),[])})),ma=Qt||function(){return Ye.Date.now()};function va(e,t,n){return t=n?void 0:t,Fi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ga(e,t){var n;if("function"!=typeof t)throw new be(o);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Br((function(e,t,n){var r=1;if(n.length){var i=$t(n,Gi(ba));r|=32}return Fi(e,r,t,n,i)})),ya=Br((function(e,t,n){var r=3;if(n.length){var i=$t(n,Gi(ya));r|=32}return Fi(t,r,e,n,i)}));function ka(e,t,n){var r,i,a,s,c,l,u=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw new be(o);function p(t){var n=r,o=i;return r=i=void 0,u=t,s=e.apply(o,n)}function m(e){return u=e,c=ko(g,t),d?p(e):s}function v(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-u>=a}function g(){var e=ma();if(v(e))return b(e);c=ko(g,function(e){var n=t-(e-l);return f?sn(n,a-(e-u)):n}(e))}function b(e){return c=void 0,h&&r?p(e):(r=i=void 0,s)}function y(){var e=ma(),n=v(e);if(r=arguments,i=this,l=e,n){if(void 0===c)return m(l);if(f)return ui(c),c=ko(g,t),p(l)}return void 0===c&&(c=ko(g,t)),s}return t=os(t)||0,Ha(n)&&(d=!!n.leading,a=(f="maxWait"in n)?an(os(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==c&&ui(c),u=0,r=l=i=c=void 0},y.flush=function(){return void 0===c?s:b(ma())},y}var wa=Br((function(e,t){return Jn(e,1,t)})),_a=Br((function(e,t,n){return Jn(e,os(t)||0,n)}));function Ca(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new be(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ca.Cache||Nn),n}function Aa(e){if("function"!=typeof e)throw new be(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ca.Cache=Nn;var xa=ci((function(e,t){var n=(t=1==t.length&&Ia(t[0])?ht(t[0],Dt(Qi())):ht(or(t,1),Dt(Qi()))).length;return Br((function(r){for(var i=-1,o=sn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),Sa=Br((function(e,t){return Fi(e,32,void 0,t,$t(t,Gi(Sa)))})),Ma=Br((function(e,t){return Fi(e,64,void 0,t,$t(t,Gi(Ma)))})),Ea=Ui((function(e,t){return Fi(e,256,void 0,void 0,void 0,t)}));function Ta(e,t){return e===t||e!=e&&t!=t}var Da=ji(pr),Oa=ji((function(e,t){return e>=t})),Pa=yr(function(){return arguments}())?yr:function(e){return Ua(e)&&Ae.call(e,"callee")&&!Ke.call(e,"callee")},Ia=r.isArray,ja=Ze?Dt(Ze):function(e){return Ua(e)&&hr(e)==C};function Na(e){return null!=e&&$a(e.length)&&!za(e)}function Ra(e){return Ua(e)&&Na(e)}var La=tn||oc,Ba=et?Dt(et):function(e){return Ua(e)&&hr(e)==d};function Fa(e){if(!Ua(e))return!1;var t=hr(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ya(e)}function za(e){if(!Ha(e))return!1;var t=hr(e);return t==h||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Va(e){return"number"==typeof e&&e==rs(e)}function $a(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ha(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ua(e){return null!=e&&"object"==typeof e}var qa=tt?Dt(tt):function(e){return Ua(e)&&no(e)==m};function Wa(e){return"number"==typeof e||Ua(e)&&hr(e)==v}function Ya(e){if(!Ua(e)||hr(e)!=g)return!1;var t=qe(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ce.call(n)==Ee}var Ka=nt?Dt(nt):function(e){return Ua(e)&&hr(e)==b};var Ga=rt?Dt(rt):function(e){return Ua(e)&&no(e)==y};function Qa(e){return"string"==typeof e||!Ia(e)&&Ua(e)&&hr(e)==k}function Xa(e){return"symbol"==typeof e||Ua(e)&&hr(e)==w}var Ja=it?Dt(it):function(e){return Ua(e)&&$a(e.length)&&!!ze[hr(e)]};var Za=ji(Sr),es=ji((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Na(e))return Qa(e)?Wt(e):gi(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=no(e);return(t==m?zt:t==y?Ht:Ts)(e)}function ns(e){return e?(e=os(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function is(e){return e?Gn(rs(e),0,4294967295):0}function os(e){if("number"==typeof e)return e;if(Xa(e))return NaN;if(Ha(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ha(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(K,"");var n=oe.test(e);return n||se.test(e)?Ue(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function as(e){return bi(e,ws(e))}function ss(e){return null==e?"":Xr(e)}var cs=ki((function(e,t){if(fo(t)||Na(t))bi(t,ks(t),e);else for(var n in t)Ae.call(t,n)&&Hn(e,n,t[n])})),ls=ki((function(e,t){bi(t,ws(t),e)})),us=ki((function(e,t,n,r){bi(t,ws(t),e,r)})),ds=ki((function(e,t,n,r){bi(t,ks(t),e,r)})),fs=Ui(Kn);var hs=Br((function(e,t){e=me(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&so(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=ws(o),s=-1,c=a.length;++s<c;){var l=a[s],u=e[l];(void 0===u||Ta(u,we[l])&&!Ae.call(e,l))&&(e[l]=o[l])}return e})),ps=Br((function(e){return e.push(void 0,Vi),ot(Cs,void 0,e)}));function ms(e,t,n){var r=null==e?void 0:dr(e,t);return void 0===r?n:r}function vs(e,t){return null!=e&&ro(e,t,vr)}var gs=Ti((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),Hs(Ws)),bs=Ti((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),Ae.call(e,t)?e[t].push(n):e[t]=[n]}),Qi),ys=Br(br);function ks(e){return Na(e)?Bn(e):Ar(e)}function ws(e){return Na(e)?Bn(e,!0):xr(e)}var _s=ki((function(e,t,n){Dr(e,t,n)})),Cs=ki((function(e,t,n,r){Dr(e,t,n,r)})),As=Ui((function(e,t){var n={};if(null==e)return n;var r=!1;t=ht(t,(function(t){return t=si(t,e),r||(r=t.length>1),t})),bi(e,Wi(e),n),r&&(n=Qn(n,7,$i));for(var i=t.length;i--;)Zr(n,t[i]);return n}));var xs=Ui((function(e,t){return null==e?{}:function(e,t){return Ir(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Ss(e,t){if(null==e)return{};var n=ht(Wi(e),(function(e){return[e]}));return t=Qi(t),Ir(e,n,(function(e,n){return t(e,n[0])}))}var Ms=Bi(ks),Es=Bi(ws);function Ts(e){return null==e?[]:Ot(e,ks(e))}var Ds=Ai((function(e,t,n){return t=t.toLowerCase(),e+(n?Os(t):t)}));function Os(e){return Fs(ss(e).toLowerCase())}function Ps(e){return(e=ss(e))&&e.replace(le,Rt).replace(Ie,"")}var Is=Ai((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),js=Ai((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ns=Ci("toLowerCase");var Rs=Ai((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ls=Ai((function(e,t,n){return e+(n?" ":"")+Fs(t)}));var Bs=Ai((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Fs=Ci("toUpperCase");function zs(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Vs=Br((function(e,t){try{return ot(e,void 0,t)}catch(e){return Fa(e)?e:new fe(e)}})),$s=Ui((function(e,t){return st(t,(function(t){t=So(t),Yn(e,t,ba(e[t],e))})),e}));function Hs(e){return function(){return e}}var Us=Mi(),qs=Mi(!0);function Ws(e){return e}function Ys(e){return Cr("function"==typeof e?e:Qn(e,1))}var Ks=Br((function(e,t){return function(n){return br(n,e,t)}})),Gs=Br((function(e,t){return function(n){return br(e,n,t)}}));function Qs(e,t,n){var r=ks(t),i=ur(t,r);null!=n||Ha(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ur(t,ks(t)));var o=!(Ha(n)&&"chain"in n&&!n.chain),a=za(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=gi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Xs(){}var Js=Oi(ht),Zs=Oi(lt),ec=Oi(gt);function tc(e){return co(e)?xt(So(e)):function(e){return function(t){return dr(t,e)}}(e)}var nc=Ii(),rc=Ii(!0);function ic(){return[]}function oc(){return!1}var ac=Di((function(e,t){return e+t}),0),sc=Ri("ceil"),cc=Di((function(e,t){return e/t}),1),lc=Ri("floor");var uc,dc=Di((function(e,t){return e*t}),1),fc=Ri("round"),hc=Di((function(e,t){return e-t}),0);return En.after=function(e,t){if("function"!=typeof t)throw new be(o);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},En.ary=va,En.assign=cs,En.assignIn=ls,En.assignInWith=us,En.assignWith=ds,En.at=fs,En.before=ga,En.bind=ba,En.bindAll=$s,En.bindKey=ya,En.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ia(e)?e:[e]},En.chain=ta,En.chunk=function(e,t,n){t=(n?so(e,t,n):void 0===t)?1:an(rs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Jt(i/t));o<i;)s[a++]=qr(e,o,o+=t);return s},En.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},En.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return pt(Ia(n)?gi(n):[n],or(t,1))},En.cond=function(e){var t=null==e?0:e.length,n=Qi();return e=t?ht(e,(function(e){if("function"!=typeof e[1])throw new be(o);return[n(e[0]),e[1]]})):[],Br((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},En.conforms=function(e){return function(e){var t=ks(e);return function(n){return Xn(n,e,t)}}(Qn(e,1))},En.constant=Hs,En.countBy=ia,En.create=function(e,t){var n=Tn(e);return null==t?n:Wn(n,t)},En.curry=function e(t,n,r){var i=Fi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},En.curryRight=function e(t,n,r){var i=Fi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},En.debounce=ka,En.defaults=hs,En.defaultsDeep=ps,En.defer=wa,En.delay=_a,En.difference=To,En.differenceBy=Do,En.differenceWith=Oo,En.drop=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=n||void 0===t?1:rs(t))<0?0:t,r):[]},En.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,0,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t):[]},En.dropRightWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!0,!0):[]},En.dropWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!0):[]},En.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&so(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=rs(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},En.filter=function(e,t){return(Ia(e)?ut:ir)(e,Qi(t,3))},En.flatMap=function(e,t){return or(fa(e,t),1)},En.flatMapDeep=function(e,t){return or(fa(e,t),1/0)},En.flatMapDepth=function(e,t,n){return n=void 0===n?1:rs(n),or(fa(e,t),n)},En.flatten=jo,En.flattenDeep=function(e){return(null==e?0:e.length)?or(e,1/0):[]},En.flattenDepth=function(e,t){return(null==e?0:e.length)?or(e,t=void 0===t?1:rs(t)):[]},En.flip=function(e){return Fi(e,512)},En.flow=Us,En.flowRight=qs,En.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},En.functions=function(e){return null==e?[]:ur(e,ks(e))},En.functionsIn=function(e){return null==e?[]:ur(e,ws(e))},En.groupBy=la,En.initial=function(e){return(null==e?0:e.length)?qr(e,0,-1):[]},En.intersection=Ro,En.intersectionBy=Lo,En.intersectionWith=Bo,En.invert=gs,En.invertBy=bs,En.invokeMap=ua,En.iteratee=Ys,En.keyBy=da,En.keys=ks,En.keysIn=ws,En.map=fa,En.mapKeys=function(e,t){var n={};return t=Qi(t,3),cr(e,(function(e,r,i){Yn(n,t(e,r,i),e)})),n},En.mapValues=function(e,t){var n={};return t=Qi(t,3),cr(e,(function(e,r,i){Yn(n,r,t(e,r,i))})),n},En.matches=function(e){return Er(Qn(e,1))},En.matchesProperty=function(e,t){return Tr(e,Qn(t,1))},En.memoize=Ca,En.merge=_s,En.mergeWith=Cs,En.method=Ks,En.methodOf=Gs,En.mixin=Qs,En.negate=Aa,En.nthArg=function(e){return e=rs(e),Br((function(t){return Or(t,e)}))},En.omit=As,En.omitBy=function(e,t){return Ss(e,Aa(Qi(t)))},En.once=function(e){return ga(2,e)},En.orderBy=function(e,t,n,r){return null==e?[]:(Ia(t)||(t=null==t?[]:[t]),Ia(n=r?void 0:n)||(n=null==n?[]:[n]),Pr(e,t,n))},En.over=Js,En.overArgs=xa,En.overEvery=Zs,En.overSome=ec,En.partial=Sa,En.partialRight=Ma,En.partition=ha,En.pick=xs,En.pickBy=Ss,En.property=tc,En.propertyOf=function(e){return function(t){return null==e?void 0:dr(e,t)}},En.pull=zo,En.pullAll=Vo,En.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?jr(e,t,Qi(n,2)):e},En.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?jr(e,t,void 0,n):e},En.pullAt=$o,En.range=nc,En.rangeRight=rc,En.rearg=Ea,En.reject=function(e,t){return(Ia(e)?ut:ir)(e,Aa(Qi(t,3)))},En.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Qi(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Nr(e,i),n},En.rest=function(e,t){if("function"!=typeof e)throw new be(o);return Br(e,t=void 0===t?t:rs(t))},En.reverse=Ho,En.sampleSize=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),(Ia(e)?zn:zr)(e,t)},En.set=function(e,t,n){return null==e?e:Vr(e,t,n)},En.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Vr(e,t,n,r)},En.shuffle=function(e){return(Ia(e)?Vn:Ur)(e)},En.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&so(e,t,n)?(t=0,n=r):(t=null==t?0:rs(t),n=void 0===n?r:rs(n)),qr(e,t,n)):[]},En.sortBy=pa,En.sortedUniq=function(e){return e&&e.length?Gr(e):[]},En.sortedUniqBy=function(e,t){return e&&e.length?Gr(e,Qi(t,2)):[]},En.split=function(e,t,n){return n&&"number"!=typeof n&&so(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Ka(t))&&!(t=Xr(t))&&Ft(e)?li(Wt(e),0,n):e.split(t,n):[]},En.spread=function(e,t){if("function"!=typeof e)throw new be(o);return t=null==t?0:an(rs(t),0),Br((function(n){var r=n[t],i=li(n,0,t);return r&&pt(i,r),ot(e,this,i)}))},En.tail=function(e){var t=null==e?0:e.length;return t?qr(e,1,t):[]},En.take=function(e,t,n){return e&&e.length?qr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},En.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},En.takeRightWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!1,!0):[]},En.takeWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3)):[]},En.tap=function(e,t){return t(e),e},En.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new be(o);return Ha(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ka(e,t,{leading:r,maxWait:t,trailing:i})},En.thru=na,En.toArray=ts,En.toPairs=Ms,En.toPairsIn=Es,En.toPath=function(e){return Ia(e)?ht(e,So):Xa(e)?[e]:gi(xo(ss(e)))},En.toPlainObject=as,En.transform=function(e,t,n){var r=Ia(e),i=r||La(e)||Ja(e);if(t=Qi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ha(e)&&za(o)?Tn(qe(e)):{}}return(i?st:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},En.unary=function(e){return va(e,1)},En.union=Uo,En.unionBy=qo,En.unionWith=Wo,En.uniq=function(e){return e&&e.length?Jr(e):[]},En.uniqBy=function(e,t){return e&&e.length?Jr(e,Qi(t,2)):[]},En.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Jr(e,void 0,t):[]},En.unset=function(e,t){return null==e||Zr(e,t)},En.unzip=Yo,En.unzipWith=Ko,En.update=function(e,t,n){return null==e?e:ei(e,t,ai(n))},En.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ei(e,t,ai(n),r)},En.values=Ts,En.valuesIn=function(e){return null==e?[]:Ot(e,ws(e))},En.without=Go,En.words=zs,En.wrap=function(e,t){return Sa(ai(t),e)},En.xor=Qo,En.xorBy=Xo,En.xorWith=Jo,En.zip=Zo,En.zipObject=function(e,t){return ii(e||[],t||[],Hn)},En.zipObjectDeep=function(e,t){return ii(e||[],t||[],Vr)},En.zipWith=ea,En.entries=Ms,En.entriesIn=Es,En.extend=ls,En.extendWith=us,Qs(En,En),En.add=ac,En.attempt=Vs,En.camelCase=Ds,En.capitalize=Os,En.ceil=sc,En.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==t&&(t=(t=os(t))==t?t:0),Gn(os(e),t,n)},En.clone=function(e){return Qn(e,4)},En.cloneDeep=function(e){return Qn(e,5)},En.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},En.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},En.conformsTo=function(e,t){return null==t||Xn(e,t,ks(t))},En.deburr=Ps,En.defaultTo=function(e,t){return null==e||e!=e?t:e},En.divide=cc,En.endsWith=function(e,t,n){e=ss(e),t=Xr(t);var r=e.length,i=n=void 0===n?r:Gn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},En.eq=Ta,En.escape=function(e){return(e=ss(e))&&F.test(e)?e.replace(L,Lt):e},En.escapeRegExp=function(e){return(e=ss(e))&&Y.test(e)?e.replace(W,"\\$&"):e},En.every=function(e,t,n){var r=Ia(e)?lt:nr;return n&&so(e,t,n)&&(t=void 0),r(e,Qi(t,3))},En.find=oa,En.findIndex=Po,En.findKey=function(e,t){return yt(e,Qi(t,3),cr)},En.findLast=aa,En.findLastIndex=Io,En.findLastKey=function(e,t){return yt(e,Qi(t,3),lr)},En.floor=lc,En.forEach=sa,En.forEachRight=ca,En.forIn=function(e,t){return null==e?e:ar(e,Qi(t,3),ws)},En.forInRight=function(e,t){return null==e?e:sr(e,Qi(t,3),ws)},En.forOwn=function(e,t){return e&&cr(e,Qi(t,3))},En.forOwnRight=function(e,t){return e&&lr(e,Qi(t,3))},En.get=ms,En.gt=Da,En.gte=Oa,En.has=function(e,t){return null!=e&&ro(e,t,mr)},En.hasIn=vs,En.head=No,En.identity=Ws,En.includes=function(e,t,n,r){e=Na(e)?e:Ts(e),n=n&&!r?rs(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Qa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},En.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),wt(e,t,i)},En.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<an(t,n)}(e=os(e),t,n)},En.invoke=ys,En.isArguments=Pa,En.isArray=Ia,En.isArrayBuffer=ja,En.isArrayLike=Na,En.isArrayLikeObject=Ra,En.isBoolean=function(e){return!0===e||!1===e||Ua(e)&&hr(e)==u},En.isBuffer=La,En.isDate=Ba,En.isElement=function(e){return Ua(e)&&1===e.nodeType&&!Ya(e)},En.isEmpty=function(e){if(null==e)return!0;if(Na(e)&&(Ia(e)||"string"==typeof e||"function"==typeof e.splice||La(e)||Ja(e)||Pa(e)))return!e.length;var t=no(e);if(t==m||t==y)return!e.size;if(fo(e))return!Ar(e).length;for(var n in e)if(Ae.call(e,n))return!1;return!0},En.isEqual=function(e,t){return kr(e,t)},En.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?kr(e,t,void 0,n):!!r},En.isError=Fa,En.isFinite=function(e){return"number"==typeof e&&nn(e)},En.isFunction=za,En.isInteger=Va,En.isLength=$a,En.isMap=qa,En.isMatch=function(e,t){return e===t||wr(e,t,Ji(t))},En.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,wr(e,t,Ji(t),n)},En.isNaN=function(e){return Wa(e)&&e!=+e},En.isNative=function(e){if(uo(e))throw new fe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return _r(e)},En.isNil=function(e){return null==e},En.isNull=function(e){return null===e},En.isNumber=Wa,En.isObject=Ha,En.isObjectLike=Ua,En.isPlainObject=Ya,En.isRegExp=Ka,En.isSafeInteger=function(e){return Va(e)&&e>=-9007199254740991&&e<=9007199254740991},En.isSet=Ga,En.isString=Qa,En.isSymbol=Xa,En.isTypedArray=Ja,En.isUndefined=function(e){return void 0===e},En.isWeakMap=function(e){return Ua(e)&&no(e)==_},En.isWeakSet=function(e){return Ua(e)&&"[object WeakSet]"==hr(e)},En.join=function(e,t){return null==e?"":rn.call(e,t)},En.kebabCase=Is,En.last=Fo,En.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?an(r+i,0):sn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):kt(e,Ct,i,!0)},En.lowerCase=js,En.lowerFirst=Ns,En.lt=Za,En.lte=es,En.max=function(e){return e&&e.length?rr(e,Ws,pr):void 0},En.maxBy=function(e,t){return e&&e.length?rr(e,Qi(t,2),pr):void 0},En.mean=function(e){return At(e,Ws)},En.meanBy=function(e,t){return At(e,Qi(t,2))},En.min=function(e){return e&&e.length?rr(e,Ws,Sr):void 0},En.minBy=function(e,t){return e&&e.length?rr(e,Qi(t,2),Sr):void 0},En.stubArray=ic,En.stubFalse=oc,En.stubObject=function(){return{}},En.stubString=function(){return""},En.stubTrue=function(){return!0},En.multiply=dc,En.nth=function(e,t){return e&&e.length?Or(e,rs(t)):void 0},En.noConflict=function(){return Ye._===this&&(Ye._=Te),this},En.noop=Xs,En.now=ma,En.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?qt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Pi(Zt(i),n)+e+Pi(Jt(i),n)},En.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?qt(e):0;return t&&r<t?e+Pi(t-r,n):e},En.padStart=function(e,t,n){e=ss(e);var r=(t=rs(t))?qt(e):0;return t&&r<t?Pi(t-r,n)+e:e},En.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ln(ss(e).replace(G,""),t||0)},En.random=function(e,t,n){if(n&&"boolean"!=typeof n&&so(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=un();return sn(e+i*(t-e+He("1e-"+((i+"").length-1))),t)}return Rr(e,t)},En.reduce=function(e,t,n){var r=Ia(e)?mt:Mt,i=arguments.length<3;return r(e,Qi(t,4),n,i,er)},En.reduceRight=function(e,t,n){var r=Ia(e)?vt:Mt,i=arguments.length<3;return r(e,Qi(t,4),n,i,tr)},En.repeat=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),Lr(ss(e),t)},En.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},En.result=function(e,t,n){var r=-1,i=(t=si(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[So(t[r])];void 0===o&&(r=i,o=n),e=za(o)?o.call(e):o}return e},En.round=fc,En.runInContext=e,En.sample=function(e){return(Ia(e)?Fn:Fr)(e)},En.size=function(e){if(null==e)return 0;if(Na(e))return Qa(e)?qt(e):e.length;var t=no(e);return t==m||t==y?e.size:Ar(e).length},En.snakeCase=Rs,En.some=function(e,t,n){var r=Ia(e)?gt:Wr;return n&&so(e,t,n)&&(t=void 0),r(e,Qi(t,3))},En.sortedIndex=function(e,t){return Yr(e,t)},En.sortedIndexBy=function(e,t,n){return Kr(e,t,Qi(n,2))},En.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Yr(e,t);if(r<n&&Ta(e[r],t))return r}return-1},En.sortedLastIndex=function(e,t){return Yr(e,t,!0)},En.sortedLastIndexBy=function(e,t,n){return Kr(e,t,Qi(n,2),!0)},En.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Yr(e,t,!0)-1;if(Ta(e[n],t))return n}return-1},En.startCase=Ls,En.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:Gn(rs(n),0,e.length),t=Xr(t),e.slice(n,n+t.length)==t},En.subtract=hc,En.sum=function(e){return e&&e.length?Et(e,Ws):0},En.sumBy=function(e,t){return e&&e.length?Et(e,Qi(t,2)):0},En.template=function(e,t,n){var r=En.templateSettings;n&&so(e,t,n)&&(t=void 0),e=ss(e),t=us({},t,r,zi);var i,o,a=us({},t.imports,r.imports,zi),s=ks(a),c=Ot(a,s),l=0,u=t.interpolate||ue,d="__p += '",f=ve((t.escape||ue).source+"|"+u.source+"|"+(u===$?ne:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),h="//# sourceURL="+(Ae.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fe+"]")+"\n";e.replace(f,(function(t,n,r,a,s,c){return r||(r=a),d+=e.slice(l,c).replace(de,Bt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),d+="';\n";var p=Ae.call(t,"variable")&&t.variable;p||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(I,""):d).replace(j,"$1").replace(N,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Vs((function(){return he(s,h+"return "+d).apply(void 0,c)}));if(m.source=d,Fa(m))throw m;return m},En.times=function(e,t){if((e=rs(e))<1||e>9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var i=Tt(r,t=Qi(t));++n<e;)t(n);return i},En.toFinite=ns,En.toInteger=rs,En.toLength=is,En.toLower=function(e){return ss(e).toLowerCase()},En.toNumber=os,En.toSafeInteger=function(e){return e?Gn(rs(e),-9007199254740991,9007199254740991):0===e?e:0},En.toString=ss,En.toUpper=function(e){return ss(e).toUpperCase()},En.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(K,"");if(!e||!(t=Xr(t)))return e;var r=Wt(e),i=Wt(t);return li(r,It(r,i),jt(r,i)+1).join("")},En.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(Q,"");if(!e||!(t=Xr(t)))return e;var r=Wt(e);return li(r,0,jt(r,Wt(t))+1).join("")},En.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Xr(t)))return e;var r=Wt(e);return li(r,It(r,Wt(t))).join("")},En.truncate=function(e,t){var n=30,r="...";if(Ha(t)){var i="separator"in t?t.separator:i;n="length"in t?rs(t.length):n,r="omission"in t?Xr(t.omission):r}var o=(e=ss(e)).length;if(Ft(e)){var a=Wt(e);o=a.length}if(n>=o)return e;var s=n-qt(r);if(s<1)return r;var c=a?li(a,0,s).join(""):e.slice(0,s);if(void 0===i)return c+r;if(a&&(s+=c.length-s),Ka(i)){if(e.slice(s).search(i)){var l,u=c;for(i.global||(i=ve(i.source,ss(re.exec(i))+"g")),i.lastIndex=0;l=i.exec(u);)var d=l.index;c=c.slice(0,void 0===d?s:d)}}else if(e.indexOf(Xr(i),s)!=s){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r},En.unescape=function(e){return(e=ss(e))&&B.test(e)?e.replace(R,Yt):e},En.uniqueId=function(e){var t=++xe;return ss(e)+t},En.upperCase=Bs,En.upperFirst=Fs,En.each=sa,En.eachRight=ca,En.first=No,Qs(En,(uc={},cr(En,(function(e,t){Ae.call(En.prototype,t)||(uc[t]=e)})),uc),{chain:!1}),En.VERSION="4.17.20",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){En[e].placeholder=En})),st(["drop","take"],(function(e,t){Pn.prototype[e]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!t?new Pn(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Pn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Pn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Pn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Pn.prototype[e]=function(){return this.__filtered__?new Pn(this):this[n](1)}})),Pn.prototype.compact=function(){return this.filter(Ws)},Pn.prototype.find=function(e){return this.filter(e).head()},Pn.prototype.findLast=function(e){return this.reverse().find(e)},Pn.prototype.invokeMap=Br((function(e,t){return"function"==typeof e?new Pn(this):this.map((function(n){return br(n,e,t)}))})),Pn.prototype.reject=function(e){return this.filter(Aa(Qi(e)))},Pn.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Pn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Pn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pn.prototype.toArray=function(){return this.take(4294967295)},cr(Pn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=En[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(En.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Pn,c=a[0],l=s||Ia(t),u=function(e){var t=i.apply(En,pt([e],a));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var d=this.__chain__,f=!!this.__actions__.length,h=o&&!d,p=s&&!f;if(!o&&l){t=p?t:new Pn(this);var m=e.apply(t,a);return m.__actions__.push({func:na,args:[u],thisArg:void 0}),new On(m,d)}return h&&p?e.apply(this,a):(m=this.thru(u),h?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);En.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ia(i)?i:[],e)}return this[n]((function(n){return t.apply(Ia(n)?n:[],e)}))}})),cr(Pn.prototype,(function(e,t){var n=En[t];if(n){var r=n.name+"";Ae.call(yn,r)||(yn[r]=[]),yn[r].push({name:t,func:n})}})),yn[Ei(void 0,2).name]=[{name:"wrapper",func:void 0}],Pn.prototype.clone=function(){var e=new Pn(this.__wrapped__);return e.__actions__=gi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=gi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=gi(this.__views__),e},Pn.prototype.reverse=function(){if(this.__filtered__){var e=new Pn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Pn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ia(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=sn(t,e+a);break;case"takeRight":e=an(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,c=s-a,l=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,h=sn(c,this.__takeCount__);if(!n||!r&&i==c&&h==c)return ni(e,this.__actions__);var p=[];e:for(;c--&&f<h;){for(var m=-1,v=e[l+=t];++m<d;){var g=u[m],b=g.iteratee,y=g.type,k=b(v);if(2==y)v=k;else if(!k){if(1==y)continue e;break e}}p[f++]=v}return p},En.prototype.at=ra,En.prototype.chain=function(){return ta(this)},En.prototype.commit=function(){return new On(this.value(),this.__chain__)},En.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},En.prototype.plant=function(e){for(var t,n=this;n instanceof Dn;){var r=Eo(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},En.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Pn){var t=e;return this.__actions__.length&&(t=new Pn(this)),(t=t.reverse()).__actions__.push({func:na,args:[Ho],thisArg:void 0}),new On(t,this.__chain__)}return this.thru(Ho)},En.prototype.toJSON=En.prototype.valueOf=En.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},En.prototype.first=En.prototype.head,Je&&(En.prototype[Je]=function(){return this}),En}();Ye._=Kt,void 0===(i=function(){return Kt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(7),n(42)(e))},function(e,t,n){var r=n(299),i=n(302);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";n.r(t);var r=n(80),i=n.n(r),o=n(30),a=n.n(o),s={components:{FileUpload:i.a,ProgressBar:a.a},data:function(){return{files:[],collections:[],tags:[],file_collection:1,file_ref:null,progressMode:"determinate",csrf:document.querySelectorAll('meta[name="csrf-token"]')[0].content,status:"start",error:"",links:[],repeaterFields:[{name:"headline-repeater",value:""}]}},computed:{uploadedFile:function(){return this.files.length>0?this.files[0]:null},nextRef:function(){return this.getNextRef(this.file_collection)},fileValid:function(){if(!(this.files.length<1))return this.checkFileValid(this.files[0])},file_data:function(){return{collection_id:this.file_collection,ref:this.file_ref,tags:this.tags,headlines:JSON.stringify(this.lodash.map(this.repeaterFields,"value"))}}},watch:{file_ref:function(e){e.length>0?(this.status="ready",$("#file_ref").addClass("is-valid").removeClass("is-invalid")):(this.status="start",$("#file_ref").addClass("is-invalid").removeClass("is-valid"))},uploadedFile:function(e){e.success&&(this.progressMode="indeterminate")}},methods:{processStatusUpdate:function(e){var t=this;"done"===(e=e.data).status&&(this.progressMode="determinate",axios.get("/publish/file/"+e.data.file_id).then((function(e){t.$root.publishState.file=e.data.file,t.links=e.data.links,t.status="done",t.$emit("can-continue",{value:!0})}))),"failed"===e.status&&(this.progressMode="determinate",this.status="error",this.error=e.data.error,console.error(e.data.error))},getNextRef:function(e){var t=this.collections.find((function(t){return t.id===e}));return void 0===t?null:t.files[0].ref.replace(/(\d+)+/g,(function(e,t){return parseInt(t)+1}))},checkFileValid:function(e){return"application/pdf"===e.type},inputFile:function(e,t){!e||Boolean(e)===Boolean(t)&&t.error===e.error||this.$refs.upload.active||!this.checkFileValid(e)||(this.$refs.upload.active=!0,this.status="uploading"),e&&!0===e.success&&(this.status="processing")}},mounted:function(){var e=this;Echo.private("fileProcessingStatus").listen(".status.update",this.processStatusUpdate),axios.get("/publish/collections").then((function(t){e.collections=t.data.data,e.file_ref=e.getNextRef(1)})),axios.get("/publish/tags").then((function(t){var n=t.data.data;$("#file_tags").selectize({placeholder:"Mots-clés pour la recherche",persist:!1,createOnBlur:!0,create:!0,options:n,plugins:["remove_button"],onChange:function(t){return e.tags=t}})}))}},c=(n(180),n(1)),l=Object(c.a)(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-step file-upload p-3"},[n("div",{staticClass:"row mx-auto mb-3",staticStyle:{"max-width":"500px"}},[n("div",{staticClass:"col-8"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"file_collection"}},[e._v("Collection *")]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.file_collection,expression:"file_collection"}],staticClass:"form-control",attrs:{id:"file_collection"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.file_collection=t.target.multiple?n:n[0]}}},e._l(e.collections,(function(t){return n("option",{domProps:{value:t.id,textContent:e._s(t.name)}})})),0)])]),e._v(" "),n("div",{staticClass:"col-4"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"file_ref"}},[e._v("Numéro *")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.file_ref,expression:"file_ref"}],staticClass:"form-control is-valid",attrs:{type:"text",id:"file_ref",placeholder:e.nextRef,required:""},domProps:{value:e.file_ref},on:{input:function(t){t.target.composing||(e.file_ref=t.target.value)}}})])]),e._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"file_tags"}},[e._v("Mots-clés")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.tags,expression:"tags"}],attrs:{type:"text",id:"file_tags"},domProps:{value:e.tags},on:{input:function(t){t.target.composing||(e.tags=t.target.value)}}})])]),e._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"headlines"}},[e._v("Gros titres")]),e._v(" "),n("vue-repeater-after",{model:{value:e.repeaterFields,callback:function(t){e.repeaterFields=t},expression:"repeaterFields"}})],1)])]),e._v(" "),n("div",{staticClass:"text-center"},[e._m(0),e._v(" "),n("file-upload",{ref:"upload",staticClass:"btn btn-default btn-primary",attrs:{"post-action":"/publish/upload-file",multiple:!1,drop:!0,"drop-directory":!1,headers:{"X-CSRF-TOKEN":e.csrf},data:e.file_data},on:{"input-file":e.inputFile},model:{value:e.files,callback:function(t){e.files=t},expression:"files"}},[n("i",{staticClass:"fa fa-plus"}),e._v("\n Sélectionnez un fichier\n ")])],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.$refs.upload&&e.$refs.upload.dropActive,expression:"$refs.upload && $refs.upload.dropActive"}],staticClass:"drop-active"},[n("h3",[e._v("Déposez votre fichier")])]),e._v(" "),e.files.length>0?n("div",{staticClass:"my-3 file-selected"},[e.fileValid?n("div",[n("p",{staticClass:"mb-3"},[n("strong",[e._v("Fichier sélectionné : ")]),e._v(" "+e._s(e.files[0].name)+" ")])]):n("div",{staticClass:"alert alert-warning",attrs:{role:"alert"}},[n("span",{staticClass:"font-bold"},[e._v("Fichier incorrect")]),e._v(" "),n("span",[e._v("Le fichier "+e._s(e.uploadedFile.name)+" n'est pas valide, veuillez choisir un fichier .pdf !")])]),e._v(" "),n("div",[n("md-progress-bar",{attrs:{"md-mode":e.progressMode,"md-value":parseFloat(e.uploadedFile.progress)}}),e._v(" "),n("small",{staticClass:"text-center d-block"},[e._v(e._s(e.uploadedFile.progress+"%"))])],1),e._v(" "),""!==e.uploadedFile.error?n("div",{staticClass:"alert alert-danger",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-exclamation-triangle"}),e._v(" "),n("span",[e._v("Une erreur est survenue ("+e._s(e.uploadedFile.error)+")."),n("br"),e._v("Vérifiez que le numéro est entré et qu'il n'existe pas déjà.")])]):e._e(),e._v(" "),"processing"===e.status?n("div",{staticClass:"alert-info alert",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-cogs"}),e._v(" "),e._m(1)]):"error"===e.status?n("div",{staticClass:"alert-danger alert",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-exclamation-triangle"}),e._v(" \n "),n("span",[n("strong",[e._v("Une erreur est survenue lors du traitement du fichier. ")]),e._v(" ("+e._s(e.error)+")")])]):e._e(),e._v(" "),"done"===e.status?n("div",[n("div",{staticClass:"alert-success alert",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-check"}),e._v(" \n "),n("span",[n("strong",[e._v(e._s(e.collections.find((function(t){return t.id===e.file_collection})).name))]),e._v(" "+e._s(e.file_ref)+" enregistré. Vous pouvez passer à l'étape suivante.")])]),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-6"},[n("img",{staticClass:"mx-auto my-3 d-block",staticStyle:{width:"200px"},attrs:{src:e.$root.publishState.file.coverUrl,alt:""}})]),e._v(" "),n("div",{staticClass:"col-6"},[n("h3",[e._v(e._s(e.links.length)+" liens trouvés")]),e._v(" "),n("ul",e._l(e.links,(function(t){return n("li",[e._v(e._s(t))])})),0)])])]):e._e()]):e._e()])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("h3",[this._v("Glissez votre fichier PDF ici"),t("br"),this._v("ou")])},function(){var e=this.$createElement,t=this._self._c||e;return t("span",[this._v("Fichier enregistré, "),t("strong",[this._v("traitement en cours...")])])}],!1,null,"4a9146e1",null);t.default=l.exports},function(e,t,n){"use strict";n.r(t);var r={mixins:[n(31).a],data:function(){return{file:this.$root.publishState.file,csrf:document.querySelectorAll('meta[name="csrf-token"]')[0].content}},computed:{email:function(){var e=this.$root.publishState.file.headlines.reduce((function(e,t){return e+"\n <h3>".concat(t.headline,"</h3>\n <p>").concat(t.content,"</p>\n\n ")}),"");return{content:"\n <p>Bonjour %recipient.name%,</p>\n <p>Voici la nouvelle édition du jour !</p>\n <br>\n <h2>À LA UNE AUJOURD'HUI</h2>\n ".concat(e,"\n\n "),subject:"L'édition du jour [".concat(this.$root.publishState.file.title,"] "),type:1}}},watch:{email:{deep:!0,handler:function(e,t){""!==e.editorData&&""!==e.subject?(this.$root.publishState.email=e,this.$emit("can-continue",{value:!0})):this.$emit("can-continue",{value:!1})},immediate:!0}},methods:{},mounted:function(){this.$emit("can-continue",{value:!0})}},i=(n(186),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-step"},[n("div",{staticClass:"mb-3"},[n("h3",{staticClass:"text-center"},[n("strong",[e._v(e._s(e.file.title))])]),e._v(" "),n("a",{staticClass:"btn btn-primary",attrs:{href:"/preview/"+e.file.slug,target:"_blank"}},[e._v("Prévisualiser le document")])]),e._v(" "),n("div",[n("h4",{staticClass:"text-center"},[e._v("\n Contenu de l'email\n ")]),e._v(" "),n("div",[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"subject"}},[e._v("Sujet")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email.subject,expression:"email.subject"}],staticClass:"form-control",attrs:{type:"text",id:"subject",placeholder:"[PSQ 302] Les dernières nouvelles de Pfizer"},domProps:{value:e.email.subject},on:{input:function(t){t.target.composing||e.$set(e.email,"subject",t.target.value)}}})]),e._v(" "),n("div",{staticClass:"form-group ck-email"},[n("label",{attrs:{for:"content"}},[e._v("Contenu")]),e._v(" "),n("ckeditor",{attrs:{editor:e.editor,config:e.editorConfig,id:"content"},model:{value:e.email.content,callback:function(t){e.$set(e.email,"content",t)},expression:"email.content"}})],1)])]),e._v(" "),n("form",{attrs:{method:"post",action:"/publish/preview",target:"_blank"}},[n("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:e.csrf}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"subject"},domProps:{value:e.email.subject}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"type"},domProps:{value:e.email.type}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"content"},domProps:{value:e.email.content}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"link"},domProps:{value:"/preview/"+e.file.slug}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"image"},domProps:{value:e.file.coverUrl}}),e._v(" "),n("input",{staticClass:"btn btn-primary",attrs:{type:"submit",value:"Prévisualiser l'email"}})])])}),[],!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={mixins:[n(31).a],data:function(){return{file:this.$root.publishState.file,recipient_group:null,recipient_groups:[],email:{content:"\n <p>Bonjour %recipient.name%,</p>\n ",subject:"",type:2,link:""},csrf:document.querySelectorAll('meta[name="csrf-token"]')[0].content}},watch:{email:{deep:!0,handler:function(e,t){""!==e.editorData&&""!==e.subject?(this.$root.publishState.email=e,this.$emit("can-continue",{value:!0})):this.$emit("can-continue",{value:!1})},immediate:!0},recipient_group:function(e,t){this.$root.publishState.recipient_group=e}},methods:{},mounted:function(){var e=this;this.$emit("can-continue",{value:!0}),axios.get("/publish/recipient-groups").then((function(t){return e.recipient_groups=t.data}))}},i=(n(190),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-step"},[n("div",[n("div",[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"recipients"}},[e._v("Destinataires")]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.recipient_group,expression:"recipient_group"}],staticClass:"form-control",attrs:{name:"recipients",id:"recipients"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.recipient_group=t.target.multiple?n:n[0]}}},[0===e.recipient_groups.count?n("option",{attrs:{value:"-1",selected:"seleted"}},[e._v("Chargement en cours...")]):e._e(),e._v(" "),e._l(e.recipient_groups,(function(t){return n("option",{domProps:{value:t}},[e._v(e._s(t.text))])}))],2)]),e._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"subject"}},[e._v("Sujet")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email.subject,expression:"email.subject"}],staticClass:"form-control",attrs:{type:"text",id:"subject",placeholder:"Découvrez notre nouveau podcast !"},domProps:{value:e.email.subject},on:{input:function(t){t.target.composing||e.$set(e.email,"subject",t.target.value)}}})]),e._v(" "),n("div",{staticClass:"form-group ck-email"},[n("label",{attrs:{for:"content"}},[e._v("Contenu")]),e._v(" "),n("ckeditor",{attrs:{editor:e.editor,config:e.editorConfig,id:"content"},model:{value:e.email.content,callback:function(t){e.$set(e.email,"content",t)},expression:"email.content"}})],1),e._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"subject"}},[e._v("Lien principal")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email.link,expression:"email.link"}],staticClass:"form-control",attrs:{type:"text",id:"link",placeholder:"https://exemple.fr"},domProps:{value:e.email.link},on:{input:function(t){t.target.composing||e.$set(e.email,"link",t.target.value)}}})])])]),e._v(" "),n("form",{attrs:{method:"post",action:"/publish/preview",target:"_blank"}},[n("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:e.csrf}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"subject"},domProps:{value:e.email.subject}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"type"},domProps:{value:e.email.type}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"content"},domProps:{value:e.email.content}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"link"},domProps:{value:e.email.link}}),e._v(" "),n("input",{staticClass:"btn btn-primary",attrs:{type:"submit",value:"Prévisualiser l'email"}})])])}),[],!1,null,null,null);t.default=o.exports},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(8).Symbol;e.exports=r},function(e,t,n){var r=n(32),i=n(11);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(38),i=n(224),o=n(151);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t,n){var r=n(152),i=n(87),o=n(230),a=n(6);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},function(e,t,n){var r=n(6),i=n(157),o=n(346),a=n(158);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(71);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(160),i=n(73);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=o?o(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),a?i(n,l,u):r(n,l,u)}return n}},function(e,t,n){var r=n(215),i=n(359),o=n(17);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&"__lodash_placeholder__"!==a||(e[n]="__lodash_placeholder__",o[i++]=n)}return o}},function(e,t,n){"use strict";n.r(t),function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:c(s(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?u:10===e?d:u||d}function h(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,c=o.commonAncestorContainer;if(e!==c&&t!==c||r.contains(i))return"BODY"===(s=(a=c).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(c):c;var l=p(e);return l.host?m(l.host,t):m(e,p(t).host)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(t,"top"),i=v(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function k(e){var t=e.body,n=e.documentElement,r=f(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),C=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function x(e){return A({},e,{right:e.left+e.width,bottom:e.top+e.height})}function S(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=v(e,"top"),r=v(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?k(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,c=o.height||e.clientHeight||i.height,l=e.offsetWidth-s,u=e.offsetHeight-c;if(l||u){var d=a(e);l-=b(d,"x"),u-=b(d,"y"),i.width-=l,i.height-=u}return x(i)}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=f(10),i="HTML"===t.nodeName,o=S(e),s=S(t),l=c(e),u=a(t),d=parseFloat(u.borderTopWidth),h=parseFloat(u.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=x({top:o.top-s.top-d,left:o.left-s.left-h,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var m=parseFloat(u.marginTop),v=parseFloat(u.marginLeft);p.top-=d-m,p.bottom-=d-m,p.left-=h-v,p.right-=h-v,p.marginTop=m,p.marginLeft=v}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=g(p,t)),p}function E(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=M(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:v(n),s=t?0:v(n,"left"),c={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return x(c)}function T(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&T(n)}function D(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function O(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?D(e):m(e,l(t));if("viewport"===r)o=E(a,i);else{var u=void 0;"scrollParent"===r?"BODY"===(u=c(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var d=M(u,a,i);if("HTML"!==u.nodeName||T(a))o=d;else{var f=k(e.ownerDocument),h=f.height,p=f.width;o.top+=d.top-d.marginTop,o.bottom=h+d.top,o.left+=d.left-d.marginLeft,o.right=p+d.left}}var v="number"==typeof(n=n||0);return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function P(e){return e.width*e.height}function I(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=O(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map((function(e){return A({key:e},s[e],{area:P(s[e])})})).sort((function(e,t){return t.area-e.area})),l=c.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=l.length>0?l[0].key:c[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function j(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?D(t):m(t,l(n));return M(n,i,r)}function N(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function R(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function L(e,t,n){n=n.split("-")[0];var r=N(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",c=o?"height":"width",l=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,i[s]=n===s?t[s]-r[l]:t[R(s)],i}function B(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function F(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=B(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=x(t.offsets.popper),t.offsets.reference=x(t.offsets.reference),t=n(t,e))})),t}function z(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=j(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=I(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=L(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=F(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function V(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function $(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function H(){return this.state.isDestroyed=!0,V(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(e){var t=e.ownerDocument;return t?t.defaultView:window}function q(e,t,n,r){n.updateBound=r,U(e).addEventListener("resize",n.updateBound,{passive:!0});var i=c(e);return function e(t,n,r,i){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),o||e(c(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function W(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,U(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function K(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function G(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&K(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Q=n&&/Firefox/i.test(navigator.userAgent);function X(e,t,n){var r=B(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Z=J.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Z.indexOf(e),r=Z.slice(n+1).concat(Z.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function ie(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(B(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return(l=l.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return x(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){K(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var oe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",u={start:C({},c,o[c]),end:C({},c,o[c]+o[l]-a[l])};e.offsets.popper=A({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],c=void 0;return c=K(+n)?[+n,0]:ie(n,o,a,s),"left"===s?(o.top+=c[0],o.left-=c[1]):"right"===s?(o.top+=c[0],o.left+=c[1]):"top"===s?(o.left+=c[0],o.top-=c[1]):"bottom"===s&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=$("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var c=O(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=c;var l=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),C({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),C({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=A({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[l]),n[c]>o(r[s])&&(e.offsets.popper[c]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,c=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",m=N(r)[u];c[p]-m<s[f]&&(e.offsets.popper[f]-=s[f]-(c[p]-m)),c[f]+m>s[p]&&(e.offsets.popper[f]+=c[f]+m-s[p]),e.offsets.popper=x(e.offsets.popper);var v=c[f]+c[u]/2-m/2,g=a(e.instance.popper),b=parseFloat(g["margin"+d]),y=parseFloat(g["border"+d+"Width"]),k=v-e.offsets.popper[f]-b-y;return k=Math.max(Math.min(s[u]-m,k),0),e.arrowElement=r,e.offsets.arrow=(C(n={},f,Math.round(k)),C(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(V(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=O(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=R(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[r,i];break;case ne:a=ee(r);break;case re:a=ee(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],i=R(r);var l=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===r&&d(l.right)>d(u.left)||"right"===r&&d(l.left)<d(u.right)||"top"===r&&d(l.bottom)>d(u.top)||"bottom"===r&&d(l.top)<d(u.bottom),h=d(l.left)<d(n.left),p=d(l.right)>d(n.right),m=d(l.top)<d(n.top),v=d(l.bottom)>d(n.bottom),g="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===o&&h||b&&"end"===o&&p||!b&&"start"===o&&m||!b&&"end"===o&&v),k=!!t.flipVariationsByContent&&(b&&"start"===o&&p||b&&"end"===o&&h||!b&&"start"===o&&v||!b&&"end"===o&&m),w=y||k;(f||g||w)&&(e.flipped=!0,(f||g)&&(r=a[c+1]),w&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=A({},e.offsets.popper,L(e.instance.popper,e.offsets.reference,e.placement)),e=F(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=R(t),e.offsets.popper=x(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=B(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=B(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=h(e.instance.popper),c=S(s),l={position:i.position},u=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},c=o(i.width),l=o(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?u||d||c%2==l%2?o:a:s,h=t?o:s;return{left:f(c%2==1&&l%2==1&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!Q),d="bottom"===n?"top":"bottom",f="right"===r?"left":"right",p=$("transform"),m=void 0,v=void 0;if(v="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-c.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-c.width+u.right:u.left,a&&p)l[p]="translate3d("+m+"px, "+v+"px, 0)",l[d]=0,l[f]=0,l.willChange="transform";else{var g="bottom"===d?-1:1,b="right"===f?-1:1;l[d]=v*g,l[f]=m*b,l.willChange=d+", "+f}var y={"x-placement":e.placement};return e.attributes=A({},y,e.attributes),e.styles=A({},l,e.styles),e.arrowStyles=A({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return G(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&G(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=j(i,t,e,n.positionFixed),a=I(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),G(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ae=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=A({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(A({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=A({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return A({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return _(e,[{key:"update",value:function(){return z.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=J,ae.Defaults=oe,t.default=ae}.call(this,n(7))},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(5);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(5),i=n(105),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(59)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c}).call(this,n(58))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&h())}function h(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(5),i=n(106),o=n(55),a=n(108),s=n(111),c=n(112),l=n(60);e.exports=function(e){return new Promise((function(t,u){var d=e.data,f=e.headers;r.isFormData(d)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",m=e.auth.password||"";f.Authorization="Basic "+btoa(p+":"+m)}var v=a(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),o(v,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,u,r),h=null}},h.onabort=function(){h&&(u(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){u(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(l(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=n(113),b=(e.withCredentials||c(v))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;b&&(f[e.xsrfHeaderName]=b)}if("setRequestHeader"in h&&r.forEach(f,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),u(e),h=null)})),void 0===d&&(d=null),h.send(d)}))}},function(e,t,n){"use strict";var r=n(107);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(o,(function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):void 0!==e[i]&&(n[i]=e[i])})),r.forEach(a,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var s=i.concat(o).concat(a),c=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(c,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){var r=n(288),i=n(10),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(8),i=n(291),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c}).call(this,n(42)(e))},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(222),i=n(319),o=n(320);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},function(e,t,n){var r=n(229),i=n(16);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(341),i=n(149),o=n(342),a=n(343),s=n(237),c=n(32),l=n(220),u=l(r),d=l(i),f=l(o),h=l(a),p=l(s),m=c;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case f:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(48),i=n(49);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(32),i=n(10);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(354),i=n(87),o=n(13),a=n(355),s=n(6);e.exports=function(e,t,n){var c=s(e)?r:a,l=arguments.length<3;return c(e,o(t,4),n,l,i)}},function(e,t,n){var r=n(226);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(377);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(217),i=n(69),o=n(63),a=n(6),s=n(17),c=n(64),l=n(82),u=n(81),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},function(e,t,n){var r=n(32),i=n(6),o=n(10);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},function(e,t){e.exports=function(e){return e.placeholder}},function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(35),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=504)}([function(e,t){e.exports=function(e,t,n,r,i,o){var a,s,c,l,u,d=e=e||{},f=typeof e.default;return"object"!==f&&"function"!==f||(a=e,d=e.default),s="function"==typeof d?d.options:d,t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0),n&&(s.functional=!0),i&&(s._scopeId=i),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},s._ssrRegister=c):r&&(c=r),c&&(l=s.functional,u=l?s.render:s.beforeCreate,l?(s._injectStyles=c,s.render=function(e,t){return c.call(t),u(e,t)}):s.beforeCreate=u?[].concat(u,c):[c]),{esModule:a,exports:d,options:s}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={props:{mdTheme:null},computed:{$mdActiveTheme:function(){var e=o.default.enabled,t=o.default.getThemeName,n=o.default.getAncestorTheme;return e&&!1!==this.mdTheme?t(this.mdTheme||n(this)):null}}};return(0,s.default)(t,e)},i=n(4),o=r(i),a=n(6),s=r(a)},function(e,t){e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),n(7),i=n(5),o=r(i),a=n(4),s=r(a),c=function(){var e=new o.default({ripple:!0,theming:{},locale:{startYear:1900,endYear:2099,dateFormat:"yyyy-MM-dd",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shorterDays:["S","M","T","W","T","F","S"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],shorterMonths:["J","F","M","A","M","Ju","Ju","A","Se","O","N","D"],firstDayOfAWeek:0},router:{linkActiveClass:"router-link-active"}});return Object.defineProperties(e.theming,{metaColors:{get:function(){return s.default.metaColors},set:function(e){s.default.metaColors=e}},theme:{get:function(){return s.default.theme},set:function(e){s.default.theme=e}},enabled:{get:function(){return s.default.enabled},set:function(e){s.default.enabled=e}}}),e},t.default=function(e){e.material||(e.material=c(),e.prototype.$material=e.material)}},function(e,t,n){"use strict";var r,i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),i=null,o=null,a=null,t.default=new r.default({data:function(){return{prefix:"md-theme-",theme:"default",enabled:!0,metaColors:!1}},computed:{themeTarget:function(){return!this.$isServer&&document.documentElement},fullThemeName:function(){return this.getThemeName()}},watch:{enabled:{immediate:!0,handler:function(){var e=this.fullThemeName,t=this.themeTarget,n=this.enabled;t&&(n?(t.classList.add(e),this.metaColors&&this.setHtmlMetaColors(e)):(t.classList.remove(e),this.metaColors&&this.setHtmlMetaColors()))}},theme:function(e,t){var n=this.getThemeName,r=this.themeTarget;e=n(e),r.classList.remove(n(t)),r.classList.add(e),this.metaColors&&this.setHtmlMetaColors(e)},metaColors:function(e){e?this.setHtmlMetaColors(this.fullThemeName):this.setHtmlMetaColors()}},methods:{getAncestorTheme:function(e){var t,n=this;return e?(t=e.mdTheme,function e(r){if(r){var i=r.mdTheme,o=r.$parent;return i&&i!==t?i:e(o)}return n.theme}(e.$parent)):null},getThemeName:function(e){var t=e||this.theme;return this.prefix+t},setMicrosoftColors:function(e){i&&i.setAttribute("content",e)},setThemeColors:function(e){o&&o.setAttribute("content",e)},setMaskColors:function(e){a&&a.setAttribute("color",e)},setHtmlMetaColors:function(e){var t="#fff";e&&(t=window.getComputedStyle(document.documentElement).getPropertyValue("--"+e+"-primary")),t&&(this.setMicrosoftColors(t),this.setThemeColors(t),this.setMaskColors(t))}},mounted:function(){var e=this;i=document.querySelector('[name="msapplication-TileColor"]'),o=document.querySelector('[name="theme-color"]'),a=document.querySelector('[rel="mask-icon"]'),this.enabled&&this.metaColors&&window.addEventListener("load",(function(){e.setHtmlMetaColors(e.fullThemeName)}))}})},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};return i.default.util.defineReactive(t,"reactive",e),t.reactive},r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r)},function(e,t,n){e.exports=function(){"use strict";function e(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===a}(e)}function t(e,t){return!1!==t.clone&&t.isMergeableObject(e)?i(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function n(e,n,r){return e.concat(n).map((function(e){return t(e,r)}))}function r(e,n,r){var o={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(n){o[n]=t(e[n],r)})),Object.keys(n).forEach((function(a){r.isMergeableObject(n[a])&&e[a]?o[a]=function(e,t){if(!t.customMerge)return i;var n=t.customMerge(e);return"function"==typeof n?n:i}(a,r)(e[a],n[a],r):o[a]=t(n[a],r)})),o}function i(e,i,a){var s;return(a=a||{}).arrayMerge=a.arrayMerge||n,a.isMergeableObject=a.isMergeableObject||o,(s=Array.isArray(i))===Array.isArray(e)?s?a.arrayMerge(e,i,a):r(e,i,a):t(i,a)}var o=function(t){return function(e){return!!e&&"object"==typeof e}(t)&&!e(t)},a="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;return i.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce((function(e,n){return i(e,n,t)}),{})},i}()},function(e,t){},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r),t.default=function(e,t){return{validator:function(n){return!!t.includes(n)||(i.default.util.warn("The "+e+" prop is invalid. Given value: "+n+". Available options: "+t.join(", ")+".",void 0),!1)}}}},function(e,t,n){"use strict";t.a=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fpAk2"),console.warn(Error().stack)),new Date(NaN))}},function(e,t,n){(function(t){var r,i,o,a,s=n(14),c="undefined"==typeof window?t:window,l=["moz","webkit"],u="AnimationFrame",d=c["request"+u],f=c["cancel"+u]||c["cancelRequest"+u];for(r=0;!d&&r<l.length;r++)d=c[l[r]+"Request"+u],f=c[l[r]+"Cancel"+u]||c[l[r]+"CancelRequest"+u];d&&f||(i=0,o=0,a=[],d=function(e){if(0===a.length){var t=s(),n=Math.max(0,1e3/60-(t-i));i=n+t,setTimeout((function(){var e,t=a.slice(0);for(a.length=0,e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(i)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return a.push({handle:++o,callback:e,cancelled:!1}),o},f=function(e){for(var t=0;t<a.length;t++)a[t].handle===e&&(a[t].cancelled=!0)}),e.exports=function(e){return d.call(c,e)},e.exports.cancel=function(){f.apply(c,arguments)},e.exports.polyfill=function(e){e||(e=c),e.requestAnimationFrame=d,e.cancelAnimationFrame=f}}).call(t,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return Math.random().toString(36).slice(4)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(20),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(37),s=function(e){n(33)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){(function(t){(function(){var n,r,i,o,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),a=o-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(t,n(15))},function(e,t){function n(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function o(){f&&h&&(f=!1,h.length?d=h.concat(d):p=-1,d.length&&a())}function a(){var e,t;if(!f){for(e=i(o),f=!0,t=d.length;t;){for(h=d,d=[];++p<t;)h&&h[p].run();p=-1,t=d.length}h=null,f=!1,function(e){if(u===clearTimeout)return clearTimeout(e);if((u===r||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function c(){}var l,u,d,f,h,p,m=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{u="function"==typeof clearTimeout?clearTimeout:r}catch(e){u=r}}(),d=[],f=!1,p=-1,m.nextTick=function(e){var t,n=Array(arguments.length-1);if(arguments.length>1)for(t=1;t<arguments.length;t++)n[t-1]=arguments[t];d.push(new s(e,n)),1!==d.length||f||i(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=c,m.addListener=c,m.once=c,m.off=c,m.removeListener=c,m.removeAllListeners=c,m.emit=c,m.prependListener=c,m.prependOnceListener=c,m.listeners=function(e){return[]},m.binding=function(e){throw Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(e){throw Error("process.chdir is not supported")},m.umask=function(){return 0}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(18),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(26),s=function(e){n(23)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";t.a=function(e){if(null===e||!0===e||!1===e)return NaN;var t=+e;return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(10),a=r(o),s=r(n(1)),c=n(11),l=r(c),u=r(n(22)),t.default=new s.default({name:"MdRipple",components:{MdWave:u.default},props:{mdActive:null,mdDisabled:Boolean,mdCentered:Boolean,mdEventTrigger:{type:Boolean,default:!0}},data:function(){return{ripples:[],touchTimeout:null,eventType:null}},computed:{isDisabled:function(){return!this.$material.ripple||this.mdDisabled},rippleClasses:function(){return{"md-disabled":this.isDisabled}},waveClasses:function(){return{"md-centered":this.mdCentered}}},watch:{mdActive:function(e){var t="boolean"==typeof e,n="mouseevent"===(""+e.constructor).match(/function (\w*)/)[1].toLowerCase();t&&this.mdCentered&&e?this.startRipple({type:"mousedown"}):n&&this.startRipple(e),this.$emit("update:mdActive",!1)}},methods:{touchMoveCheck:function(){window.clearTimeout(this.touchTimeout)},touchStartCheck:function(e){var t=this;this.touchTimeout=window.setTimeout((function(){t.startRipple(e)}),100)},startRipple:function(e){var t=this;(0,a.default)((function(){var n,r,i=t.eventType,o=t.isDisabled,a=t.mdCentered;o||i&&i!==e.type||(n=t.getSize(),r=a?t.getCenteredPosition(n):t.getHitPosition(e,n),t.eventType=e.type,t.ripples.push({waveStyles:t.applyStyles(r,n),uuid:(0,l.default)()}))}))},applyStyles:function(e,t){return i({},e,{width:t+="px",height:t})},clearWave:function(e){this.ripples=e?this.ripples.filter((function(t){return t.uuid!==e})):[]},getSize:function(){var e=this.$el,t=e.offsetWidth,n=e.offsetHeight;return Math.round(Math.max(t,n))},getCenteredPosition:function(e){var t=-e/2+"px";return{"margin-top":t,"margin-left":t}},getHitPosition:function(e,t){var n=this.$el.getBoundingClientRect(),r=e.pageY,i=e.pageX;return"touchstart"===e.type&&(r=e.changedTouches[0].pageY,i=e.changedTouches[0].pageX),{top:r-n.top-t/2-document.documentElement.scrollTop+"px",left:i-n.left-t/2-document.documentElement.scrollLeft+"px"}}}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdWave",data:function(){return{animating:!1}},props:{waveClasses:null,waveStyles:null},mounted:function(){this.animating=!0},methods:{end:function(){this.animating=!1,this.$emit("md-end")}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(34)),t.default=new i.default({name:"MdIcon",components:{MdSvgLoader:o.default},props:{mdSrc:String}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};t.default={name:"MdSVGLoader",props:{mdSrc:{type:String,required:!0}},data:function(){return{html:null,error:null}},watch:{mdSrc:function(){this.html=null,this.loadSVG()}},methods:{isSVG:function(e){return"string"==typeof e&&e.indexOf("svg")>=0},setHtml:function(e){var t=this;r[this.mdSrc].then((function(e){return t.html=e,t.$nextTick()})).then((function(){return t.$emit("md-loaded")}))},unexpectedError:function(e){this.error="Something bad happened trying to fetch "+this.mdSrc+".",e(this.error)},loadSVG:function(){var e=this;r.hasOwnProperty(this.mdSrc)?this.setHtml():r[this.mdSrc]=new Promise((function(t,n){var r=new window.XMLHttpRequest;r.open("GET",e.mdSrc,!0),r.onload=function(){var i=r.getResponseHeader("content-type");200===r.status?e.isSVG(i)?(t(r.response),e.setHtml()):(e.error="The file "+e.mdSrc+" is not a valid SVG.",n(e.error)):r.status>=400&&r.status<500?(e.error="The file "+e.mdSrc+" do not exists.",n(e.error)):e.unexpectedError(n)},r.onerror=function(){return e.unexpectedError(n)},r.onabort=function(){return e.unexpectedError(n)},r.send()}))}},mounted:function(){this.loadSVG()}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(19),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(25),s=function(e){n(24)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-ripple",appear:""},on:{"after-enter":e.end}},[e.animating?n("span"):e._e()])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["md-ripple",e.rippleClasses],on:{"&touchstart":function(t){return function(t){return e.mdEventTrigger&&e.touchStartCheck(t)}(t)},"&touchmove":function(t){return function(t){return e.mdEventTrigger&&e.touchMoveCheck(t)}(t)},"&mousedown":function(t){return function(t){return e.mdEventTrigger&&e.startRipple(t)}(t)}}},[e._t("default"),e._v(" "),e._l(e.ripples,(function(t){return e.isDisabled?e._e():n("md-wave",{key:t.uuid,class:["md-ripple-wave",e.waveClasses],style:t.waveStyles,on:{"md-end":function(n){return e.clearWave(t.uuid)}}})}))],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(2),o=r(i),a=n(10),s=r(a),t.default={name:"MdPortal",abstract:!0,props:{mdAttachToParent:Boolean,mdTarget:{type:null,validator:function(e){return!!(HTMLElement&&e&&e instanceof HTMLElement)||(o.default.util.warn("The md-target-el prop is invalid. You should pass a valid HTMLElement.",this),!1)}}},data:function(){return{leaveTimeout:null,originalParentEl:null}},computed:{transitionName:function(){var e,t,n=this._vnode.componentOptions.children[0];if(n){if(e=n.data.transition)return e.name;if(t=n.componentOptions.propsData.name)return t}return"v"},leaveClass:function(){return this.transitionName+"-leave"},leaveActiveClass:function(){return this.transitionName+"-leave-active"},leaveToClass:function(){return this.transitionName+"-leave-to"}},watch:{mdTarget:function(e,t){this.changeParentEl(e),t&&this.$forceUpdate()}},methods:{getTransitionDuration:function(e){var t=window.getComputedStyle(e).transitionDuration,n=parseFloat(t,10),r=t.match(/m?s/);return r&&(r=r[0]),"s"===r?1e3*n:"ms"===r?n:0},killGhostElement:function(e){e.parentNode&&(this.changeParentEl(this.originalParentEl),this.$options._parentElm=this.originalParentEl,e.parentNode.removeChild(e))},initDestroy:function(e){var t=this,n=this.$el;e&&this.$el.nodeType===Node.COMMENT_NODE&&(n=this.$vnode.elm),n.classList.add(this.leaveClass),n.classList.add(this.leaveActiveClass),this.$nextTick().then((function(){n.classList.add(t.leaveToClass),clearTimeout(t.leaveTimeout),t.leaveTimeout=setTimeout((function(){t.destroyElement(n)}),t.getTransitionDuration(n))}))},destroyElement:function(e){var t=this;(0,s.default)((function(){e.classList.remove(t.leaveClass),e.classList.remove(t.leaveActiveClass),e.classList.remove(t.leaveToClass),t.$emit("md-destroy"),t.killGhostElement(e)}))},changeParentEl:function(e){e&&e.appendChild(this.$el)}},mounted:function(){this.originalParentEl||(this.originalParentEl=this.$el.parentNode,this.$emit("md-initial-parent",this.$el.parentNode)),this.mdAttachToParent&&this.$el.parentNode.parentNode?this.changeParentEl(this.$el.parentNode.parentNode):document&&this.changeParentEl(this.mdTarget||document.body)},beforeDestroy:function(){this.$el.classList?this.initDestroy():this.killGhostElement(this.$el)},render:function(e){var t=this.$slots.default;if(t&&t[0])return t[0]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{to:[String,Object],replace:Boolean,append:Boolean,activeClass:String,exact:Boolean,event:[String,Array],exactActiveClass:String}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e};t.default=function(e,t){var n=e.$options.components.RouterLink||e.$options.components["router-link"];return r({},t,n.options.props)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(38)),o=r(n(179)),t.default={mixins:[i.default],components:{MdListItemContent:o.default},props:{disabled:Boolean},computed:{isDisabled:function(){return!this.mdRipple||this.disabled}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(41)),s=r(n(38)),c=r(n(28)),l=n(29),u=r(l),d=r(n(45)),t.default=new o.default({name:"MdButton",data:function(){return{rippleActive:!1}},components:{MdButtonContent:d.default},mixins:[s.default,a.default,c.default],props:{href:String,type:{type:String,default:"button"},disabled:Boolean},computed:{rippleWorks:function(){return this.mdRipple&&!this.disabled},isRouterLink:function(){return this.$router&&this.to}},render:function(e){var t,n,r=this,o=e("md-button-content",{attrs:{mdRipple:this.mdRipple,disabled:this.disabled},props:{mdRippleActive:this.rippleActive},on:{"update:mdRippleActive":function(e){return r.rippleActive=e}}},this.$slots.default),a={staticClass:"md-button",class:[this.$mdActiveTheme,{"md-ripple-off":!this.mdRipple,"md-focused":this.mdHasFocus}],attrs:i({},this.attrs,{href:this.href,disabled:this.disabled,type:!this.href&&(this.type||"button")}),on:i({},this.$listeners,{touchstart:function(e){r.rippleWorks&&(r.rippleActive=e),r.$listeners.touchstart&&r.$listeners.touchstart(e)},touchmove:function(e){r.rippleWorks&&(r.rippleActive=e),r.$listeners.touchmove&&r.$listeners.touchmove(e)},mousedown:function(e){r.rippleWorks&&(r.rippleActive=e),r.$listeners.mousedown&&r.$listeners.mousedown(e)}})},s="button";return this.href?s="a":this.isRouterLink&&(this.$options.props=(0,u.default)(this,this.$options.props),s="router-link",t=this.$props.exactActiveClass,n=(this.$props.activeClass||this.$material.router.linkActiveClass)+" md-active",a.props=i({},this.$props,{exactActiveClass:t,activeClass:n}),delete a.props.type,delete a.attrs.type,delete a.props.href,delete a.attrs.href),e(s,a,[o])}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(16)),t.default={name:"MdButtonContent",components:{MdRipple:r.default},props:{mdRipple:Boolean,mdRippleActive:null,disabled:Boolean}}},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(21),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(36),s=function(e){n(35)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("i",{staticClass:"md-svg-loader",domProps:{innerHTML:e._s(e.html)}})},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.mdSrc?n("md-svg-loader",{staticClass:"md-icon md-icon-image",class:[e.$mdActiveTheme],attrs:{"md-src":e.mdSrc},on:{"md-loaded":function(t){return e.$emit("md-loaded")}}}):n("i",{staticClass:"md-icon md-icon-font",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(16)),t.default={components:{MdRipple:r.default},props:{mdRipple:{type:Boolean,default:!0}}}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(31),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(44)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(67),a=r(o),s=n(6),c=r(s),l=n(27),u=r(l),t.default={name:"MdPopover",abstract:!0,components:{MdPortal:u.default},props:{mdActive:Boolean,mdSettings:{type:Object,default:function(){return{}}}},data:function(){return{popperInstance:null,originalParentEl:null,shouldRender:!1,shouldActivate:!1}},computed:{popoverClasses:function(){return this.shouldActivate?"md-active":this.shouldRender?"md-rendering":void 0}},watch:{mdActive:{immediate:!0,handler:function(e){this.shouldRender=e,e?this.bindPopper():this.shouldActivate=!1}},mdSettings:function(){this.popperInstance&&this.createPopper()}},methods:{getPopperOptions:function(){var e=this;return{placement:"bottom",modifiers:{preventOverflow:{boundariesElement:"viewport",padding:16},computeStyle:{gpuAcceleration:!1}},onCreate:function(){e.shouldActivate=!0,e.$emit("md-active")}}},setOriginalParent:function(e){this.originalParentEl||(this.originalParentEl=e)},killPopper:function(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},bindPopper:function(){var e=this;this.$nextTick().then((function(){e.originalParentEl&&e.createPopper()}))},createPopper:function(){if(this.mdSettings){var e=(0,c.default)(this.getPopperOptions(),this.mdSettings);this.$el.nodeType!==Node.COMMENT_NODE&&(this.popperInstance=new a.default(this.originalParentEl,this.$el,e))}},resetPopper:function(){this.popperInstance&&(this.killPopper(),this.createPopper())}},beforeDestroy:function(){this.killPopper()},mounted:function(){this.resetPopper()},render:function(e){return e(u.default,{props:i({},this.$attrs),on:i({},this.$listeners,{"md-initial-parent":this.setOriginalParent,"md-destroy":this.killPopper})},this.$slots.default)}}},function(e,t,n){"use strict";function r(e){var t=(e.keyCode,e.target);d.currentElement=t}function i(e){d.currentElement=null}function o(){window.PointerEvent?l.addEventListener("pointerup",i):window.MSPointerEvent?l.addEventListener("MSPointerUp",i):(l.addEventListener("mouseup",i),"ontouchend"in window&&l.addEventListener("touchend",i,u)),l.addEventListener("keyup",r)}function a(){c||(l=document.body,function(){try{var e=Object.defineProperty({},"passive",{get:function(){u={passive:!0}}});window.addEventListener("ghost",null,e)}catch(e){}}(),o(),c=!0)}var s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),s=function(e){return e&&e.__esModule?e:{default:e}}(n(5)),c=!1,l=null,u=!1,d=new s.default({currentElement:null}),t.default={data:function(){return{mdHasFocus:!1}},computed:{focusedElement:function(){return d.currentElement}},watch:{focusedElement:function(e){this.mdHasFocus=e===this.$el}},mounted:function(){a()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e};t.default={props:{value:{},placeholder:String,name:String,maxlength:[String,Number],readonly:Boolean,required:Boolean,disabled:Boolean,mdCounter:[String,Number]},data:function(){return{localValue:this.value,textareaHeight:!1}},computed:{model:{get:function(){return this.localValue},set:function(e){var t=this;"inputevent"!==(""+e.constructor).match(/function (\w*)/)[1].toLowerCase()&&this.$nextTick((function(){t.localValue=e}))}},clear:function(){return this.MdField.clear},attributes:function(){return r({},this.$attrs,{type:this.type,id:this.id,name:this.name,disabled:this.disabled,required:this.required,placeholder:this.placeholder,readonly:this.readonly,maxlength:this.maxlength})}},watch:{model:function(){this.setFieldValue()},clear:function(e){e&&this.clearField()},placeholder:function(){this.setPlaceholder()},disabled:function(){this.setDisabled()},required:function(){this.setRequired()},maxlength:function(){this.setMaxlength()},mdCounter:function(){this.setMaxlength()},localValue:function(e){this.$emit("input",e)},value:function(e){this.localValue=e}},methods:{clearField:function(){this.$el.value="",this.model="",this.setFieldValue()},setLabelFor:function(){var e,t;this.$el.parentNode&&(e=this.$el.parentNode.querySelector("label"))&&(!(t=e.getAttribute("for"))||t.indexOf("md-")>=0)&&e.setAttribute("for",this.id)},setFieldValue:function(){this.MdField.value=this.model},setPlaceholder:function(){this.MdField.placeholder=!!this.placeholder},setDisabled:function(){this.MdField.disabled=!!this.disabled},setRequired:function(){this.MdField.required=!!this.required},setMaxlength:function(){this.mdCounter?this.MdField.counter=parseInt(this.mdCounter,10):this.MdField.maxlength=parseInt(this.maxlength,10)},onFocus:function(){this.MdField.focused=!0},onBlur:function(){this.MdField.focused=!1}},created:function(){this.setFieldValue(),this.setPlaceholder(),this.setDisabled(),this.setRequired(),this.setMaxlength()},mounted:function(){this.setLabelFor()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={methods:{isAssetIcon:function(e){return/\w+[\/\\.]\w+/.test(e)}}}},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(32),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(47),s=function(e){n(46)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-ripple",{attrs:{"md-disabled":!e.mdRipple||e.disabled,"md-event-trigger":!1,"md-active":e.mdRippleActive},on:{"update:mdActive":function(t){return e.$emit("update:mdRippleActive",t)}}},[n("div",{staticClass:"md-button-content"},[e._t("default")],2)])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("MutationObserver"in window){var r=new window.MutationObserver(n);return r.observe(e,t),{disconnect:function(){r.disconnect()}}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(63)),a=r(n(87)),s=r(n(89)),t.default=new i.default({name:"MdField",components:{MdClearIcon:o.default,MdPasswordOffIcon:a.default,MdPasswordOnIcon:s.default},props:{mdInline:Boolean,mdClearable:Boolean,mdCounter:{type:Boolean,default:!0},mdTogglePassword:{type:Boolean,default:!0}},data:function(){return{showPassword:!1,MdField:{value:null,focused:!1,highlighted:!1,disabled:!1,required:!1,placeholder:!1,textarea:!1,autogrow:!1,maxlength:null,counter:null,password:null,togglePassword:!1,clear:!1,file:!1}}},provide:function(){return{MdField:this.MdField}},computed:{stringValue:function(){return(this.MdField.value||0===this.MdField.value)&&""+this.MdField.value},hasCounter:function(){return this.mdCounter&&(this.MdField.maxlength||this.MdField.counter)},hasPasswordToggle:function(){return this.mdTogglePassword&&this.MdField.password},hasValue:function(){return this.stringValue&&this.stringValue.length>0},valueLength:function(){return this.stringValue?this.stringValue.length:0},fieldClasses:function(){return{"md-inline":this.mdInline,"md-clearable":this.mdClearable,"md-focused":this.MdField.focused,"md-highlight":this.MdField.highlighted,"md-disabled":this.MdField.disabled,"md-required":this.MdField.required,"md-has-value":this.hasValue,"md-has-placeholder":this.MdField.placeholder,"md-has-textarea":this.MdField.textarea,"md-has-password":this.MdField.password,"md-has-file":this.MdField.file,"md-has-select":this.MdField.select,"md-autogrow":this.MdField.autogrow}}},methods:{clearInput:function(){var e=this;this.MdField.clear=!0,this.$emit("md-clear"),this.$nextTick().then((function(){e.MdField.clear=!1}))},togglePassword:function(){this.MdField.togglePassword=!this.MdField.togglePassword},onBlur:function(){this.MdField.highlighted=!1}}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdClearIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdPasswordOffIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdPasswordOnIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(54),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(92),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=n(11),s=r(a),c=r(n(42)),t.default=new o.default({name:"MdInput",mixins:[c.default],inject:["MdField"],props:{id:{type:String,default:function(){return"md-input-"+(0,s.default)()}},type:{type:String,default:"text"}},computed:{toggleType:function(){return this.MdField.togglePassword},isPassword:function(){return"password"===this.type},listeners:function(){var e=i({},this.$listeners);return delete e.input,e}},watch:{type:function(e){this.setPassword(this.isPassword)},toggleType:function(e){e?this.setTypeText():this.setTypePassword()}},methods:{setPassword:function(e){this.MdField.password=e,this.MdField.togglePassword=!1},setTypePassword:function(){this.$el.type="password"},setTypeText:function(){this.$el.type="text"}},created:function(){this.setPassword(this.isPassword)},beforeDestroy:function(){this.setPassword(!1)}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(27)),t.default={name:"MdOverlay",components:{MdPortal:r.default},props:{mdActive:Boolean,mdAttachToParent:Boolean,mdFixed:Boolean},computed:{overlayClasses:function(){return{"md-fixed":this.mdFixed}}}}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(40),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(66)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdList",data:function(){return{MdList:{expandable:[],expandATab:this.expandATab,pushExpandable:this.pushExpandable,removeExpandable:this.removeExpandable}}},provide:function(){return{MdList:this.MdList}},props:{mdExpandSingle:{default:!1}},methods:{expandATab:function(e){this.mdExpandSingle&&e&&this.MdList.expandable.filter((function(t){return t!==e})).forEach((function(e){return e.close()}))},pushExpandable:function(e){var t=this.MdList.expandable;t.find((function(t){return t===e}))||(this.MdList.expandable=t.concat([e]))},removeExpandable:function(e){var t=this.MdList.expandable;t.find((function(t){return t===e}))&&(this.MdList.expandable=t.filter((function(t){return t!==e})))}}})},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(55),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(95),s=function(e){n(94)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r),t.default={name:"MdFocusTrap",abstract:!0,methods:{setFocus:function(){var e=this;window.setTimeout((function(){e.$el.tagName&&(e.$el.setAttribute("tabindex","-1"),e.$el.focus())}),20)}},mounted:function(){this.setFocus()},render:function(){try{var e=this.$slots.default;if(!e)return null;if(e.length>1)throw Error();return e[0]}catch(e){i.default.util.warn("MdFocusTrap can only render one, and exactly one child component.",this)}return null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){return t&&t.indexOf("click")>=0&&/iP/i.test(navigator.userAgent)&&(e.style.cursor="pointer"),e.addEventListener(t,n,r||!1),{destroy:function(){e.removeEventListener(t,n)}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(10),o=r(i),a=n(60),s=r(a),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=arguments[1];return{destroy:(0,s.default)(e,"resize",(function(){(0,o.default)(t)}),{passive:!0}).destroy}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(49),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(91),s=function(e){n(85)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(50),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(86),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";t.a=function(e){var t,n,i,o;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return t=1,o=((i=(n=Object(r.a)(e)).getUTCDay())<t?7:0)+i-t,n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n};var r=n(9)},function(e,t,n){"use strict";var r,i;t.a=function(e,t){var n,o,a,s,c,l,u,d;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(s=null==(a=(o=(n=t||{}).locale)&&o.options&&o.options.weekStartsOn)?0:Object(r.a)(a),!((c=null==n.weekStartsOn?s:Object(r.a)(n.weekStartsOn))>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");return d=((u=(l=Object(i.a)(e)).getUTCDay())<c?7:0)+u-c,l.setUTCDate(l.getUTCDate()-d),l.setUTCHours(0,0,0,0),l},r=n(17),i=n(9)},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(e){return e&&"[object Function]"==={}.toString.call(e)}function r(e,t){var n;return 1!==e.nodeType?[]:(n=e.ownerDocument.defaultView.getComputedStyle(e,null),t?n[t]:n)}function i(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function o(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=r(e),n=t.overflow,a=t.overflowX;return/(auto|scroll|overlay)/.test(n+t.overflowY+a)?e:o(i(e))}function a(e){return 11===e?W:10===e?Y:W||Y}function s(e){var t,n,i;if(!e)return document.documentElement;for(t=a(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;return(i=n&&n.nodeName)&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===r(n,"position")?s(n):n:e?e.ownerDocument.documentElement:document.documentElement}function c(e){return null!==e.parentNode?c(e.parentNode):e}function l(e,t){var n,r,i,o,a,u;return e&&e.nodeType&&t&&t.nodeType?(r=(n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)?e:t,i=n?t:e,(o=document.createRange()).setStart(r,0),o.setEnd(i,0),e!==(a=o.commonAncestorContainer)&&t!==a||r.contains(i)?function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||s(e.firstElementChild)===e)}(a)?a:s(a):(u=c(e)).host?l(u.host,t):l(e,c(t).host)):document.documentElement}function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r="top"===n?"scrollTop":"scrollLeft",i=e.nodeName;return"BODY"===i||"HTML"===i?(t=e.ownerDocument.documentElement,(e.ownerDocument.scrollingElement||t)[r]):e[r]}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=u(t,"top"),i=u(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function f(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function h(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],a(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function p(e){var t=e.body,n=e.documentElement,r=a(10)&&getComputedStyle(n);return{height:h("Height",t,n,r),width:h("Width",t,n,r)}}function m(e){return X({},e,{right:e.left+e.width,bottom:e.top+e.height})}function v(e){var t,n,i,o,s,c,l,d,h,v={};try{a(10)?(v=e.getBoundingClientRect(),t=u(e,"top"),n=u(e,"left"),v.top+=t,v.left+=n,v.bottom+=t,v.right+=n):v=e.getBoundingClientRect()}catch(e){}return i={left:v.left,top:v.top,width:v.right-v.left,height:v.bottom-v.top},s=(o="HTML"===e.nodeName?p(e.ownerDocument):{}).width||e.clientWidth||i.right-i.left,c=o.height||e.clientHeight||i.bottom-i.top,l=e.offsetWidth-s,d=e.offsetHeight-c,(l||d)&&(l-=f(h=r(e),"x"),d-=f(h,"y"),i.width-=l,i.height-=d),m(i)}function g(e,t){var n,i,s,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=a(10),u="HTML"===t.nodeName,f=v(e),h=v(t),p=o(e),g=r(t),b=parseFloat(g.borderTopWidth,10),y=parseFloat(g.borderLeftWidth,10);return c&&u&&(h.top=Math.max(h.top,0),h.left=Math.max(h.left,0)),(n=m({top:f.top-h.top-b,left:f.left-h.left-y,width:f.width,height:f.height})).marginTop=0,n.marginLeft=0,!l&&u&&(i=parseFloat(g.marginTop,10),s=parseFloat(g.marginLeft,10),n.top-=b-i,n.bottom-=b-i,n.left-=y-s,n.right-=y-s,n.marginTop=i,n.marginLeft=s),(l&&!c?t.contains(p):t===p&&"BODY"!==p.nodeName)&&(n=d(n,t)),n}function b(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=g(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:u(n),s=t?0:u(n,"left");return m({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}function y(e){var t,n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===r(e,"position")||!!(t=i(e))&&y(t))}function k(e){if(!e||!e.parentElement||a())return document.documentElement;for(var t=e.parentElement;t&&"none"===r(t,"transform");)t=t.parentElement;return t||document.documentElement}function w(e,t,n,r){var a,s,c,u,d,f,h=arguments.length>4&&void 0!==arguments[4]&&arguments[4],m={top:0,left:0},v=h?k(e):l(e,t);return"viewport"===r?m=b(v,h):(a=void 0,"scrollParent"===r?"BODY"===(a=o(i(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===r?e.ownerDocument.documentElement:r,s=g(a,v,h),"HTML"!==a.nodeName||y(v)?m=s:(u=(c=p(e.ownerDocument)).height,d=c.width,m.top+=s.top-s.marginTop,m.bottom=u+s.top,m.left+=s.left-s.marginLeft,m.right=d+s.left)),f="number"==typeof(n=n||0),m.left+=f?n:n.left||0,m.top+=f?n:n.top||0,m.right-=f?n:n.right||0,m.bottom-=f?n:n.bottom||0,m}function _(e){return e.width*e.height}function C(e,t,n,r,i){var o,a,s,c,l,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return-1===e.indexOf("auto")?e:(o=w(n,r,u,i),a={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},((c=(s=Object.keys(a).map((function(e){return X({key:e},a[e],{area:_(a[e])})})).sort((function(e,t){return t.area-e.area}))).filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}))).length>0?c[0].key:s[0].key)+((l=e.split("-")[1])?"-"+l:""))}function A(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return g(n,r?k(t):l(t,n),r)}function x(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function S(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function M(e,t,n){var r,i,o,a,s,c,l;return n=n.split("-")[0],i={width:(r=x(e)).width,height:r.height},s=(o=-1!==["right","left"].indexOf(n))?"left":"top",c=o?"height":"width",l=o?"width":"height",i[a=o?"top":"left"]=t[a]+t[c]/2-r[c]/2,i[s]=n===s?t[s]-r[l]:t[S(s)],i}function E(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function T(e,t,r){return(void 0===r?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=E(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",r))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=e.function||e.fn;e.enabled&&n(r)&&(t.offsets.popper=m(t.offsets.popper),t.offsets.reference=m(t.offsets.reference),t=r(t,e))})),t}function D(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=C(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=M(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=T(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function O(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function P(e){var t,n,r,i=[!1,"ms","Webkit","Moz","O"],o=e.charAt(0).toUpperCase()+e.slice(1);for(t=0;t<i.length;t++)if(r=(n=i[t])?""+n+o:e,void 0!==document.body.style[r])return r;return null}function I(){return this.state.isDestroyed=!0,O(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[P("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function j(e){var t=e.ownerDocument;return t?t.defaultView:window}function N(e,t,n,r){n.updateBound=r,j(e).addEventListener("resize",n.updateBound,{passive:!0});var i=o(e);return function e(t,n,r,i){var a="BODY"===t.nodeName,s=a?t.ownerDocument.defaultView:t;s.addEventListener(n,r,{passive:!0}),a||e(o(s.parentNode),n,r,i),i.push(s)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function R(){this.state.eventsEnabled||(this.state=N(this.reference,this.options,this.state,this.scheduleUpdate))}function L(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return j(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function B(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function F(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&B(t[n])&&(r="px"),e.style[n]=t[n]+r}))}function z(e,t,n){var r,i,o=E(e,(function(e){return e.name===t})),a=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));return a||(r="`"+t+"`",i="`"+n+"`",console.warn(i+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),a}function V(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ee.indexOf(e),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}function $(e,t,n,r){var i,o=[0,0],a=-1!==["right","left"].indexOf(r),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),c=s.indexOf(E(s,(function(e){return-1!==e.search(/,|\s/)})));return s[c]&&-1===s[c].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),i=/\s*,\s*|\s+/,(-1!==c?[s.slice(0,c).concat([s[c].split(i)[0]]),[s[c].split(i)[1]].concat(s.slice(c+1))]:[s]).map((function(e,r){var i=(1===r?!a:a)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i,o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],s=o[2];if(!a)return e;if(0===s.indexOf("%")){switch(i=void 0,s){case"%p":i=n;break;case"%":case"%r":default:i=r}return m(i)[t]/100*a}return"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a:a}(e,i,t,n)}))})).forEach((function(e,t){e.forEach((function(n,r){B(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var H,U,q,W,Y,K,G,Q,X,J,Z,ee,te,ne,re,ie="undefined"!=typeof window&&"undefined"!=typeof document,oe=["Edge","Trident","Firefox"],ae=0;for(H=0;H<oe.length;H+=1)if(ie&&navigator.userAgent.indexOf(oe[H])>=0){ae=1;break}U=ie&&window.Promise,q=U?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),ae))}},W=ie&&!(!window.MSInputMethodContext||!document.documentMode),Y=ie&&/MSIE 10/.test(navigator.userAgent),K=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},G=function(){function e(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Q=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},X=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},J=ie&&/Firefox/i.test(navigator.userAgent),ee=(Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"]).slice(3),te={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},ne={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,r,i,o,a,s,c=e.placement,l=c.split("-")[0],u=c.split("-")[1];return u&&(n=(t=e.offsets).reference,r=t.popper,a=(i=-1!==["bottom","top"].indexOf(l))?"width":"height",s={start:Q({},o=i?"left":"top",n[o]),end:Q({},o,n[o]+n[a]-r[a])},e.offsets.popper=X({},r,s[u])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,i=e.placement,o=e.offsets,a=o.popper,s=o.reference,c=i.split("-")[0];return n=B(+r)?[+r,0]:$(r,a,s,c),"left"===c?(a.top+=n[0],a.left-=n[1]):"right"===c?(a.top+=n[0],a.left+=n[1]):"top"===c?(a.left+=n[0],a.top-=n[1]):"bottom"===c&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n,r,i,o,a,c,l,u,d,f=t.boundariesElement||s(e.instance.popper);return e.instance.reference===f&&(f=s(f)),n=P("transform"),i=(r=e.instance.popper.style).top,o=r.left,a=r[n],r.top="",r.left="",r[n]="",c=w(e.instance.popper,e.instance.reference,t.padding,f,e.positionFixed),r.top=i,r.left=o,r[n]=a,t.boundaries=c,l=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),Q({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),Q({},n,r)}},l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=X({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[l]),n[c]>o(r[s])&&(e.offsets.popper[c]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n,i,o,a,s,c,l,u,d,f,h,p,v,g,b,y,k,w;if(!z(e.instance.modifiers,"arrow","keepTogether"))return e;if("string"==typeof(i=t.element)){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;return o=e.placement.split("-")[0],s=(a=e.offsets).popper,c=a.reference,u=(l=-1!==["left","right"].indexOf(o))?"height":"width",f=(d=l?"Top":"Left").toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",v=x(i)[u],c[p]-v<s[f]&&(e.offsets.popper[f]-=s[f]-(c[p]-v)),c[f]+v>s[p]&&(e.offsets.popper[f]+=c[f]+v-s[p]),e.offsets.popper=m(e.offsets.popper),g=c[f]+c[u]/2-v/2,b=r(e.instance.popper),y=parseFloat(b["margin"+d],10),k=parseFloat(b["border"+d+"Width"],10),w=g-e.offsets.popper[f]-y-k,w=Math.max(Math.min(s[u]-v,w),0),e.arrowElement=i,e.offsets.arrow=(Q(n={},f,Math.round(w)),Q(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){var n,r,i,o,a;if(O(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;switch(n=w(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=S(r),o=e.placement.split("-")[1]||"",a=[],t.behavior){case te.FLIP:a=[r,i];break;case te.CLOCKWISE:a=V(r);break;case te.COUNTERCLOCKWISE:a=V(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){var l,u,d,f,h,p,m,v,g,b,y,k,w;if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],i=S(r),l=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===r&&d(l.right)>d(u.left)||"right"===r&&d(l.left)<d(u.right)||"top"===r&&d(l.bottom)>d(u.top)||"bottom"===r&&d(l.top)<d(u.bottom),h=d(l.left)<d(n.left),p=d(l.right)>d(n.right),m=d(l.top)<d(n.top),v=d(l.bottom)>d(n.bottom),g="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===o&&h||b&&"end"===o&&p||!b&&"start"===o&&m||!b&&"end"===o&&v),k=!!t.flipVariationsByContent&&(b&&"start"===o&&p||b&&"end"===o&&h||!b&&"start"===o&&v||!b&&"end"===o&&m),w=y||k,(f||g||w)&&(e.flipped=!0,(f||g)&&(r=a[c+1]),w&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=X({},e.offsets.popper,M(e.instance.popper,e.offsets.reference,e.placement)),e=T(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=S(t),e.offsets.popper=m(i),e}},hide:{order:800,enabled:!0,fn:function(e){var t,n;if(!z(e.instance.modifiers,"hide","preventOverflow"))return e;if(t=e.offsets.reference,n=E(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries,t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n,r,i,o,a,c,l,u,d,f,h,p,m,g=t.x,b=t.y,y=e.offsets.popper,k=E(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;return void 0!==k&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"),n=void 0!==k?k:t.gpuAcceleration,i=v(r=s(e.instance.popper)),o={position:y.position},a=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},c=o(i.width),l=o(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?u||d||c%2==l%2?o:a:s,h=t?o:s;return{left:f(c%2==1&&l%2==1&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!J),c="bottom"===g?"top":"bottom",l="right"===b?"left":"right",u=P("transform"),f="bottom"===c?"HTML"===r.nodeName?-r.clientHeight+a.bottom:-i.height+a.bottom:a.top,d="right"===l?"HTML"===r.nodeName?-r.clientWidth+a.right:-i.width+a.right:a.left,n&&u?(o[u]="translate3d("+d+"px, "+f+"px, 0)",o[c]=0,o[l]=0,o.willChange="transform"):(h="bottom"===c?-1:1,p="right"===l?-1:1,o[c]=f*h,o[l]=d*p,o.willChange=c+", "+l),m={"x-placement":e.placement},e.attributes=X({},m,e.attributes),e.styles=X({},o,e.styles),e.arrowStyles=X({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return F(e.instance.popper,e.styles),function(e,t){Object.keys(t).forEach((function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)}))}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&F(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=A(i,t,e,n.positionFixed),a=C(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),F(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},(re=function(){function e(t,r){var i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};K(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=q(this.update.bind(this)),this.options=X({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(X({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){o.options.modifiers[t]=X({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return X({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&n(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update(),(i=this.options.eventsEnabled)&&this.enableEventListeners(),this.state.eventsEnabled=i}return G(e,[{key:"update",value:function(){return D.call(this)}},{key:"destroy",value:function(){return I.call(this)}},{key:"enableEventListeners",value:function(){return R.call(this)}},{key:"disableEventListeners",value:function(){return L.call(this)}}]),e}()).Utils=("undefined"!=typeof window?window:e).PopperUtils,re.placements=Z,re.Defaults=ne,t.default=re}.call(t,n(12))},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(70),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(155),s=function(e){n(154)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdContent",props:{mdTag:{type:String,default:"div"}},render:function(e){return e(this.mdTag,{staticClass:"md-content",class:[this.$mdActiveTheme],attrs:this.$attrs,on:this.$listeners},this.$slots.default)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(27)),a=r(n(58)),s=r(n(59)),t.default=new i.default({name:"MdDialog",components:{MdPortal:o.default,MdOverlay:a.default,MdFocusTrap:s.default},props:{mdActive:Boolean,mdBackdrop:{type:Boolean,default:!0},mdBackdropClass:{type:String,default:"md-dialog-overlay"},mdCloseOnEsc:{type:Boolean,default:!0},mdClickOutsideToClose:{type:Boolean,default:!0},mdFullscreen:{type:Boolean,default:!0},mdAnimateFromSource:Boolean},computed:{dialogClasses:function(){return{"md-dialog-fullscreen":this.mdFullscreen}}},watch:{mdActive:function(e){var t=this;this.$nextTick().then((function(){e?t.$emit("md-opened"):t.$emit("md-closed")}))}},methods:{closeDialog:function(){this.$emit("update:mdActive",!1)},onClick:function(){this.mdClickOutsideToClose&&this.closeDialog(),this.$emit("md-clicked-outside")},onEsc:function(){this.mdCloseOnEsc&&this.closeDialog()}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(97)),a=r(n(43)),t.default=new i.default({name:"MdEmptyState",mixins:[a.default],props:o.default,computed:{emptyStateClasses:function(){return{"md-rounded":this.mdRounded}},emptyStateStyles:function(){if(this.mdRounded){var e=this.mdSize+"px";return{width:e,height:e}}}}})},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),t.default={name:"MdMenu",props:{mdActive:Boolean,mdAlignTrigger:Boolean,mdOffsetX:Number,mdOffsetY:Number,mdFullWidth:Boolean,mdDense:Boolean,mdDirection:r({type:String,default:"bottom-start"},(0,i.default)("md-direction",["top-end","top-start","bottom-end","bottom-start"])),mdCloseOnSelect:{type:Boolean,default:!0},mdCloseOnClick:{type:Boolean,default:!1},mdSize:r({type:String,default:"small"},(0,i.default)("md-size",["auto","small","medium","big","huge"]))},data:function(){return{triggerEl:null,MdMenu:{instance:this,active:this.mdActive,direction:this.mdDirection,size:this.mdSize,alignTrigger:this.mdAlignTrigger,offsetX:this.mdOffsetX,offsetY:this.mdOffsetY,fullWidth:this.mdFullWidth,dense:this.mdDense,closeOnSelect:this.mdCloseOnSelect,closeOnClick:this.mdCloseOnClick,bodyClickObserver:null,windowResizeObserver:null,$el:this.$el}}},provide:function(){return{MdMenu:this.MdMenu}},computed:{isActive:function(){return this.MdMenu.active}},watch:{mdActive:{immediate:!0,handler:function(e){this.MdMenu.active=e}},mdDirection:function(e){this.MdMenu.direction=e},mdSize:function(e){this.MdMenu.size=e},mdAlignTrigger:function(e){this.MdMenu.alignTrigger=e},mdOffsetX:function(e){this.MdMenu.offsetX=e},mdOffsetY:function(e){this.MdMenu.offsetY=e},isActive:function(e){this.$emit("update:mdActive",e),e?this.$emit("md-opened"):this.$emit("md-closed")},mdCloseOnSelect:function(){this.MdMenu.closeOnSelect=this.mdCloseOnSelect},mdCloseOnClick:function(){this.MdMenu.closeOnClick=this.mdCloseOnClick}},methods:{toggleContent:function(e){this.MdMenu.active=!this.MdMenu.active}},mounted:function(){var e=this;this.MdMenu.$el=this.$el,this.$nextTick().then((function(){e.triggerEl=e.$el.querySelector("[md-menu-trigger]"),e.triggerEl&&e.triggerEl.addEventListener("click",e.toggleContent)}))},beforeDestroy:function(){this.triggerEl&&this.triggerEl.removeEventListener("click",this.toggleContent)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s,c,l,u,d,f,h;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=r(n(1)),r(n(8)),s=n(60),c=r(s),l=n(61),u=r(l),d=r(n(56)),f=r(n(59)),h=r(n(74)),t.default=new a.default({name:"MdMenuContent",components:{MdPopover:d.default,MdFocusTrap:f.default,MdList:h.default},props:{mdListClass:[String,Boolean],mdContentClass:[String,Boolean]},inject:["MdMenu"],data:function(){return{highlightIndex:-1,didMount:!1,highlightItems:[],popperSettings:null,menuStyles:""}},computed:{filteredAttrs:function(){var e=this.$attrs;return delete e.id,e},highlightedItem:function(){return this.highlightItems[this.highlightIndex]},shouldRender:function(){return this.MdMenu.active},menuClasses:function(){var e,t="md-menu-content-";return i(e={},t+this.MdMenu.direction,!0),i(e,t+this.MdMenu.size,!0),i(e,"md-menu-content",this.didMount),i(e,"md-shallow",!this.didMount),e},listClasses:function(){return o({"md-dense":this.MdMenu.dense},this.mdListClass)}},watch:{shouldRender:function(e){var t=this;e&&(this.setPopperSettings(),this.$nextTick().then((function(){t.setInitialHighlightIndex(),t.createClickEventObserver(),t.createResizeObserver(),t.createKeydownListener()})))}},methods:{setPopperSettings:function(){var e=this.MdMenu,t=e.direction,n=(e.alignTrigger,this.getOffsets()),r=n.offsetX,i=n.offsetY;this.hasCustomOffsets()||(this.MdMenu.instance.$el&&this.MdMenu.instance.$el.offsetHeight&&(i=-this.MdMenu.instance.$el.offsetHeight-11),t.includes("start")?r=-8:t.includes("end")&&(r=8)),this.popperSettings={placement:t,modifiers:{keepTogether:{enabled:!0},flip:{enabled:!1},offset:{offset:r+", "+i}}}},setInitialHighlightIndex:function(){var e=this;this.setHighlightItems(),this.highlightItems.forEach((function(t,n){t.classList.contains("md-selected")&&(e.highlightIndex=n-1)}))},setHighlightItems:function(){if(this.$el.querySelectorAll){var e=this.$el.querySelectorAll(".md-list-item-container:not(.md-list-item-default):not([disabled])");this.highlightItems=Array.from(e)}},setHighlight:function(e){this.setHighlightItems(),this.highlightItems.length&&("down"===e?this.highlightIndex===this.highlightItems.length-1?this.highlightIndex=0:this.highlightIndex++:0===this.highlightIndex?this.highlightIndex=this.highlightItems.length-1:this.highlightIndex--,this.clearAllHighlights(),this.setItemHighlight())},clearAllHighlights:function(){this.highlightItems.forEach((function(e){e.parentNode.__vue__.highlighted=!1}))},setItemHighlight:function(){this.highlightedItem&&(this.highlightedItem.parentNode.__vue__.highlighted=!0,this.$parent.$parent.setOffsets&&this.$parent.$parent.setOffsets(this.highlightedItem.parentNode))},setSelection:function(){this.highlightedItem&&this.highlightedItem.parentNode.click()},onEsc:function(){this.MdMenu.active=!1,this.destroyKeyDownListener()},getOffsets:function(){var e=this.getBodyPosition(),t=this.MdMenu.offsetX||0,n=this.MdMenu.offsetY||0;return{offsetX:t-e.x,offsetY:n-e.y}},hasCustomOffsets:function(){var e=this.MdMenu,t=e.offsetX,n=e.offsetY;return!!(e.alignTrigger||n||t)},isMenu:function(e){var t=e.target;return!!this.MdMenu.$el&&this.MdMenu.$el.contains(t)},isMenuContentEl:function(e){var t=e.target;return!!this.$refs.menu&&this.$refs.menu.contains(t)},isBackdropExpectMenu:function(e){return!this.$el.contains(e.target)&&!this.isMenu(e)},createClickEventObserver:function(){var e=this;document&&(this.MdMenu.bodyClickObserver=new c.default(document.body,"click",(function(t){t.stopPropagation(),e.isMenu(t)||!e.MdMenu.closeOnClick&&!e.isBackdropExpectMenu(t)||(e.MdMenu.active=!1,e.MdMenu.bodyClickObserver.destroy(),e.MdMenu.windowResizeObserver.destroy(),e.destroyKeyDownListener())})))},createKeydownListener:function(){window.addEventListener("keydown",this.keyNavigation)},destroyKeyDownListener:function(){window.removeEventListener("keydown",this.keyNavigation)},keyNavigation:function(e){switch(e.key){case"ArrowUp":e.preventDefault(),this.setHighlight("up");break;case"ArrowDown":e.preventDefault(),this.setHighlight("down");break;case"Enter":case"Space":this.setSelection();break;case"Escape":this.onEsc()}},createResizeObserver:function(){this.MdMenu.windowResizeObserver=new u.default(window,this.setStyles)},setupWatchers:function(){this.$watch("MdMenu.direction",this.setPopperSettings),this.$watch("MdMenu.alignTrigger",this.setPopperSettings),this.$watch("MdMenu.offsetX",this.setPopperSettings),this.$watch("MdMenu.offsetY",this.setPopperSettings)},setStyles:function(){this.MdMenu.fullWidth&&(this.menuStyles="\n width: "+this.MdMenu.instance.$el.offsetWidth+"px;\n max-width: "+this.MdMenu.instance.$el.offsetWidth+"px\n ")},getBodyPosition:function(){var e=document.body,t=e.getBoundingClientRect(),n=t.top;return{x:t.left+(void 0!==window.pageXOffset?window.pageXOffset:e.scrollLeft),y:n+(void 0!==window.pageYOffset?window.pageYOffset:e.scrollTop)}}},mounted:function(){var e=this;this.$nextTick().then((function(){e.setHighlightItems(),e.setupWatchers(),e.setStyles(),e.didMount=!0}))},beforeDestroy:function(){this.MdMenu.bodyClickObserver&&this.MdMenu.bodyClickObserver.destroy(),this.MdMenu.windowResizeObserver&&this.MdMenu.windowResizeObserver.destroy(),this.destroyKeyDownListener()}})},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(57),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(99),s=function(e){n(98)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return e.hasOwnProperty("mdExpand")&&!1!==e.mdExpand}function o(e,t){if(i(e))return{"md-expand":function(){return t["md-expand"][0]}}}function a(e,t,n,r){return i(e)?C.default:e.disabled?g.default:function(e,t){return e&&e.$router&&t.to}(t,e)?(w.default.props=(0,d.default)(t,{target:String}),delete w.default.props.href,w.default):e.href?y.default:function(e){var t=Object.keys(e),n=!1;return t.forEach((function(e){l.default.includes(e)&&(n=!0)})),n}(n)?function(e){return function(e){return e.default.some((function(e){return e.componentOptions&&"md-button"===e.componentOptions.tag}))}(e)?m.default:g.default}(r):h.default}var s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_,C,A;Object.defineProperty(t,"__esModule",{value:!0}),s=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},c=n(100),l=r(c),u=n(29),d=r(u),f=n(178),h=r(f),p=n(182),m=r(p),v=n(184),g=r(v),b=n(186),y=r(b),k=n(188),w=r(k),_=n(190),C=r(_),A=r(n(39)),t.default={name:"MdListItem",functional:!0,components:{MdButton:A.default},render:function(e,t){var n=t.parent,r=t.props,i=t.listeners,c=t.data,l=(0,t.slots)(),u=a(r,n,i,l),d="md-list-item";return c.staticClass&&(d+=" "+c.staticClass),e("li",s({},c,{staticClass:d,on:i}),[e(u,{props:r,scopedSlots:o(r,l),staticClass:"md-list-item-container md-button-clean",on:i},l.default)])}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemDefault",mixins:[r.default],methods:{toggleControl:function(){var e=this.$el.querySelector(".md-checkbox-container, .md-switch-container, .md-radio-container");e&&e.click()}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(16)),t.default={name:"MdListItemContent",components:{MdRipple:r.default},props:{mdDisabled:Boolean}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemFakeButton",mixins:[r.default]}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemButton",mixins:[r.default]}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemLink",mixins:[r.default],props:{download:String,href:String,hreflang:String,ping:String,rel:String,target:String,type:String}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemRouter",mixins:[r.default],computed:{routerProps:function(){return this.$props}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(10),o=r(i),a=r(n(192)),s=r(n(30)),t.default={name:"MdListItemExpand",components:{MdArrowDownIcon:a.default},mixins:[s.default],inject:["MdList"],data:function(){return{expandStyles:{},showContent:!1}},props:{mdExpanded:Boolean},computed:{expandClasses:function(){return{"md-active":this.showContent}}},methods:{getChildrenSize:function(){var e=this.$refs.listExpand,t=0;return Array.from(e.children).forEach((function(e){t+=e.offsetHeight})),t},fetchStyle:function(){var e=this;return new Promise((function(t){(0,o.default)((function(){var n=0;e.showContent||(n="auto"),e.expandStyles={height:n},t()}))}))},toggleExpand:function(){var e=this;this.fetchStyle().then((function(){e.showContent=!e.showContent}))},open:function(){var e=this;if(this.showContent)return!1;this.fetchStyle().then((function(){return[e.showContent=!0]}))},close:function(){var e=this;if(!this.showContent)return!1;this.fetchStyle().then((function(){e.showContent=!1}))}},watch:{mdExpanded:function(){this.mdExpanded?this.open():this.close()},showContent:function(){var e=this,t=this.showContent;this.$emit("update:mdExpanded",t),this.$nextTick((function(){return e.$emit(t?"md-expanded":"md-collapsed")})),t&&this.MdList.expandATab(this)}},created:function(){this.MdList.pushExpandable(this)},mounted:function(){this.mdExpanded&&this.open()},beforeDestroy:function(){this.MdList.removeExpandable(this)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdArrowDownIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdToolbar",props:{mdElevation:{type:[String,Number],default:4}}})},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(1)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])},function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-icon",{staticClass:"md-icon-image"},[e._m(0)])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(51),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(88),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(52),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(90),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-field",class:[e.$mdActiveTheme,e.fieldClasses],on:{blur:e.onBlur}},[e._t("default"),e._v(" "),e.hasCounter?n("span",{staticClass:"md-count"},[e._v(e._s(e.valueLength)+" / "+e._s(e.MdField.maxlength||e.MdField.counter))]):e._e(),e._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[e.hasValue&&e.mdClearable?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-clear",attrs:{tabindex:"-1",disabled:e.MdField.disabled},on:{click:e.clearInput}},[n("md-clear-icon")],1):e._e()],1),e._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[e.hasPasswordToggle?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-toggle-password",attrs:{tabindex:"-1"},on:{click:e.togglePassword}},[n(e.MdField.togglePassword?"md-password-on-icon":"md-password-off-icon")],1):e._e()],1)],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return"checkbox"===e.attributes.type?n("input",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e.model},on:{focus:e.onFocus,blur:e.onBlur,change:function(t){var n,r=e.model,i=t.target,o=!!i.checked;Array.isArray(r)?(n=e._i(r,null),i.checked?n<0&&(e.model=r.concat([null])):n>-1&&(e.model=r.slice(0,n).concat(r.slice(n+1)))):e.model=o}}},"input",e.attributes,!1),e.listeners)):"radio"===e.attributes.type?n("input",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{type:"radio"},domProps:{checked:e._q(e.model,null)},on:{focus:e.onFocus,blur:e.onBlur,change:function(t){e.model=null}}},"input",e.attributes,!1),e.listeners)):n("input",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{type:e.attributes.type},domProps:{value:e.model},on:{focus:e.onFocus,blur:e.onBlur,input:function(t){t.target.composing||(e.model=t.target.value)}}},"input",e.attributes,!1),e.listeners))},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o;t.a=function(e,t){var n,a,s,c,l,u,d,f,h,p,m;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(a=(n=Object(i.a)(e,t)).getUTCFullYear(),u=null==(l=(c=(s=t||{}).locale)&&c.options&&c.options.firstWeekContainsDate)?1:Object(r.a)(l),!((d=null==s.firstWeekContainsDate?u:Object(r.a)(s.firstWeekContainsDate))>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");return(f=new Date(0)).setUTCFullYear(a+1,0,d),f.setUTCHours(0,0,0,0),h=Object(o.a)(f,t),(p=new Date(0)).setUTCFullYear(a,0,d),p.setUTCHours(0,0,0,0),m=Object(o.a)(p,t),n.getTime()>=h.getTime()?a+1:n.getTime()>=m.getTime()?a:a-1},r=n(17),i=n(9),o=n(65)},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-portal",{attrs:{"md-attach-to-parent":e.mdAttachToParent}},[n("transition",{attrs:{name:"md-overlay"}},[e.mdActive?n("div",e._g({staticClass:"md-overlay",class:e.overlayClasses},e.$listeners)):e._e()])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,i,o;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=(t=Object(r.a)(e)).getFullYear(),i=t.getMonth(),(o=new Date(0)).setFullYear(n,i+1,0),o.setHours(0,0,0,0),o.getDate()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={mdRounded:Boolean,mdSize:{type:Number,default:420},mdIcon:String,mdLabel:String,mdDescription:String}},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("ul",e._g(e._b({staticClass:"md-list",class:[e.$mdActiveTheme]},"ul",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["click","dblclick","mousedown","mouseup"]},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(216),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(466),s=function(e){n(463)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e){return e&&e.__esModule?e:{default:e}}(n(16)),t.default={components:{MdRipple:i.default},props:{model:[String,Boolean,Object,Number,Array],value:{type:[String,Boolean,Object,Number]},name:[String,Number],required:Boolean,disabled:Boolean,indeterminate:Boolean,trueValue:{default:!0},falseValue:{default:!1}},model:{prop:"model",event:"change"},data:function(){return{rippleActive:!1}},computed:{attrs:function(){var e={id:this.id,name:this.name,disabled:this.disabled,required:this.required,"true-value":this.trueValue,"false-value":this.falseValue};return this.$options.propsData.hasOwnProperty("value")&&(null!==this.value&&"object"===r(this.value)||(e.value=null===this.value||void 0===this.value?"":this.value+"")),e},isSelected:function(){return this.isModelArray?this.model.includes(this.value):this.hasValue?this.model===this.value:this.model===this.trueValue},isModelArray:function(){return Array.isArray(this.model)},checkClasses:function(){return{"md-checked":this.isSelected,"md-disabled":this.disabled,"md-required":this.required,"md-indeterminate":this.indeterminate}},hasValue:function(){return this.$options.propsData.hasOwnProperty("value")}},methods:{removeItemFromModel:function(e){var t=e.indexOf(this.value);-1!==t&&e.splice(t,1)},handleArrayCheckbox:function(){var e=this.model;this.isSelected?this.removeItemFromModel(e):e.push(this.value),this.$emit("change",e)},handleSingleSelectCheckbox:function(){this.$emit("change",this.isSelected?null:this.value)},handleSimpleCheckbox:function(){this.$emit("change",this.isSelected?this.falseValue:this.trueValue)},toggleCheck:function(){this.disabled||(this.rippleActive=!0,this.isModelArray?this.handleArrayCheckbox():this.hasValue?this.handleSingleSelectCheckbox():this.handleSimpleCheckbox())}}}},function(e,t,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(69),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(0)(i.a,null,!1,null,null,null),t.default=a.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{mdSwipeable:Boolean,mdSwipeThreshold:{type:Number,default:150},mdSwipeRestraint:{type:Number,default:100},mdSwipeTime:{type:Number,default:300}},data:function(){return{swipeStart:!1,swipeStartTime:null,swiped:null,touchPosition:{startX:0,startY:0}}},computed:{getSwipeElement:function(){return this.mdSwipeElement||window}},methods:{handleTouchStart:function(e){this.touchPosition.startX=e.touches[0].screenX,this.touchPosition.startY=e.touches[0].screenY,this.swipeStartTime=new Date,this.swipeStart=!0},handleTouchMove:function(e){var t,n,r,i;this.swipeStart&&(t=e.touches[0].screenX,n=e.touches[0].screenY,r=t-this.touchPosition.startX,i=n-this.touchPosition.startY,new Date-this.swipeStartTime<=this.mdSwipeTime&&(Math.abs(r)>=this.mdSwipeThreshold&&Math.abs(i)<=this.mdSwipeRestraint?this.swiped=r<0?"left":"right":Math.abs(i)>=this.mdSwipeThreshold&&Math.abs(r)<=this.mdSwipeRestraint&&(this.swiped=i<0?"up":"down")))},handleTouchEnd:function(){this.touchPosition={startX:0,startY:0},this.swiped=null,this.swipeStart=!1}},mounted:function(){this.mdSwipeable&&(this.getSwipeElement.addEventListener("touchstart",this.handleTouchStart,!1),this.getSwipeElement.addEventListener("touchend",this.handleTouchEnd,!1),this.getSwipeElement.addEventListener("touchmove",this.handleTouchMove,!1))},beforeDestroy:function(){this.mdSwipeable&&(this.getSwipeElement.removeEventListener("touchstart",this.handleTouchStart,!1),this.getSwipeElement.removeEventListener("touchend",this.handleTouchEnd,!1),this.getSwipeElement.removeEventListener("touchmove",this.handleTouchMove,!1))}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(71),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(163),s=function(e){n(162)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(13),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(72),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(167),s=function(e){n(166)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(73),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(169),s=function(e){n(168)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(75),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(177)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return!e||!1!==e[t]};t.default=function(e,t,n){var i=r(n,"leading"),o=(r(n,"trailing"),null);return function(){var t=this,n=arguments,r=function(){return e.apply(t,n)};if(o)return!1;i&&r()}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(84),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(227),s=function(e){n(226)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function o(e,t){return e&&g.includes(e.slot)||function(e){return e&&g.includes(i(e.tag))}(t)}function a(e,t,n,r,a){var s=[],l=!1;return e&&e.forEach((function(e){var d,f,h,p=e.data,m=e.componentOptions;if(o(p,m)){if(d=p.slot||i(m.tag),e.data.slot=d,"md-app-drawer"===d){if(f=function(e){return!(!e||""!==e.mdRight&&!e.mdRight)}(m.propsData),l)return void u.default.util.warn("There shouldn't be more than one drawer in a MdApp at one time.");l=!0,e.data.slot+="-"+(f?"right":"left"),e.key=function(e){return JSON.stringify({persistent:e&&e["md-persistent"],permanent:e&&e["md-permanent"]})}(p.attrs),f&&((h=a(v.default,{props:c({},e.data.attrs)})).data.slot="md-app-drawer-right-previous",s.push(h))}e.data.provide=r.Ctor.options.provide,e.context=t,e.functionalContext=n,s.push(e)}})),s}function s(e){var t=e.filter((function(e){return"md-app-drawer"===(e.data.slot||i(e.componentOptions.tag))}));return t.length?t:[]}var c,l,u,d,f,h,p,m,v,g;Object.defineProperty(t,"__esModule",{value:!0}),c=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},l=n(2),u=r(l),d=n(237),f=r(d),h=n(240),p=r(h),m=n(243),v=r(m),g=["md-app-toolbar","md-app-drawer","md-app-content"],t.default={name:"MdApp",functional:!0,render:function(e,t){var n,r=t.children,i=t.props,o=t.data,l=f.default,u=e(l),d=a(r,u.context,u.functionalContext,u.componentOptions,e);return s(d).forEach((function(e){e&&function(e){var t=e&&e["md-permanent"];return t&&("clipped"===t||"card"===t)}(e.data.attrs)&&(l=p.default)})),n={},o.staticClass&&o.staticClass.split(/\s+/).forEach((function(e){0!==e.length&&(n[e]=!0)})),e(l,{attrs:i,class:c({},n,o.class),style:c({},o.staticStyle,o.style)},d)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(114)),t.default=new i.default({name:"MdAppSideDrawer",mixins:[o.default]})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(10),a=r(o),s=r(n(8)),c=["fixed","fixed-last","reveal","overlap","flexible"],t.default={props:{mdMode:i({type:String},(0,s.default)("md-mode",c)),mdWaterfall:Boolean,mdScrollbar:{type:Boolean,default:!0}},data:function(){return{revealTimer:null,revealLastPos:0,manualTick:!1,MdApp:{options:{mode:null,waterfall:!1,flexible:!1},toolbar:{element:null,titleElement:null,height:"0px",initialHeight:0,top:0,titleSize:20,hasElevation:!0,revealActive:!1,fixedLastActive:!1,fixedLastHeight:!1,overlapOff:!1},drawer:{initialWidth:0,active:!1,mode:"temporary",submode:null,width:0,right:!1}}}},provide:function(){return{MdApp:this.MdApp}},computed:{isFixed:function(){return this.mdMode&&"fixed"!==this.mdMode},isDrawerMini:function(){return"persistent"===this.MdApp.drawer.mode&&"mini"===this.MdApp.drawer.submode},contentPadding:function(){return this.MdApp.drawer,this.MdApp.drawer.active&&"persistent"===this.MdApp.drawer.mode&&"full"===this.MdApp.drawer.submode?this.MdApp.drawer.width:0},contentStyles:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"padding-"+(this.MdApp.drawer.right?"right":"left"),this.contentPadding)},containerStyles:function(){var e={};return this.isFixed&&(e["margin-top"]=this.MdApp.toolbar.initialHeight+"px"),this.isDrawerMini&&(e["padding-"+(this.MdApp.drawer.right?"right":"left")]=this.MdApp.drawer.active?0:this.MdApp.drawer.initialWidth+"px"),e},scrollerClasses:function(){if(this.mdScrollbar)return"md-scrollbar"},appClasses:function(){return{"md-waterfall":this.mdWaterfall,"md-flexible":"flexible"===this.mdMode,"md-fixed":"fixed"===this.mdMode,"md-fixed-last":"fixed-last"===this.mdMode,"md-reveal":"reveal"===this.mdMode,"md-overlap":"overlap"===this.mdMode,"md-drawer-active":this.MdApp.drawer.active}}},watch:{mdMode:function(e){this.MdApp.options.mode=e},mdWaterfall:function(e){this.MdApp.options.waterfall=e,this.setToolbarElevation()}},methods:{setToolbarElevation:function(){this.MdApp.toolbar.hasElevation=!this.mdWaterfall},setToolbarTimer:function(e){var t=this;window.clearTimeout(this.revealTimer),this.revealTimer=window.setTimeout((function(){t.revealLastPos=e}),100)},setToolbarMarginAndHeight:function(e,t){this.MdApp.toolbar.top=e,this.MdApp.toolbar.height=t},getToolbarConstrants:function(e){var t=this.MdApp.toolbar.element.offsetHeight,n=t+10,r=e.target.scrollTop;return this.MdApp.toolbar.initialHeight||(this.MdApp.toolbar.initialHeight=t),{toolbarHeight:t,safeAmount:10,threshold:n,scrollTop:r,initialHeight:this.MdApp.toolbar.initialHeight}},handleWaterfallScroll:function(e){var t=this.getToolbarConstrants(e),n=t.threshold,r=t.scrollTop,i=4;"reveal"===this.mdMode&&(i=n),this.MdApp.toolbar.hasElevation=r>=i},handleFlexibleMode:function(e){var t,n,r,i,o,a,s=this.getToolbarConstrants(e),c=s.scrollTop,l=s.initialHeight,u=this.MdApp.toolbar.element,d=u.querySelector(".md-toolbar-row:first-child").offsetHeight,f=l-c,h=c<l-d;d&&(u.style.height=h?f+"px":d+"px"),(t=this.MdApp.toolbar.titleElement)&&(n=this.MdApp.toolbar.titleSize,h?(r=Math.max(0,1-(c-n)/(f+n+1e-6))*(n-20)+20,t.style.fontSize=r+"px"):t.style.fontSize="20px"),o=(i=this.getToolbarConstrants(e)).threshold,a=i.toolbarHeight,this.setToolbarMarginAndHeight(c-o,a)},handleRevealMode:function(e){var t=this.getToolbarConstrants(e),n=t.toolbarHeight,r=t.safeAmount,i=t.threshold,o=t.scrollTop;this.setToolbarTimer(o),this.setToolbarMarginAndHeight(o-i,n),this.MdApp.toolbar.revealActive=!(o>=i)||this.revealLastPos>o+r},handleFixedLastMode:function(e){var t=this.getToolbarConstrants(e),n=t.scrollTop,r=t.toolbarHeight,i=t.safeAmount,o=this.MdApp.toolbar.element.querySelector(".md-toolbar-row:first-child").offsetHeight;this.setToolbarTimer(n),this.setToolbarMarginAndHeight(n-o,r),this.MdApp.toolbar.fixedLastHeight=o,this.MdApp.toolbar.fixedLastActive=!(n>=o)||this.revealLastPos>n+i},handleOverlapMode:function(e){var t=this.getToolbarConstrants(e),n=t.toolbarHeight,r=t.scrollTop,i=t.initialHeight,o=this.MdApp.toolbar.element,a=o.querySelector(".md-toolbar-row:first-child").offsetHeight,s=i-r-100*r/(i-a-a/1.5);a&&(r<i-a&&s>=a?(this.MdApp.toolbar.overlapOff=!1,o.style.height=s+"px"):(this.MdApp.toolbar.overlapOff=!0,o.style.height=a+"px")),this.setToolbarMarginAndHeight(r,n)},handleModeScroll:function(e){"reveal"===this.mdMode?this.handleRevealMode(e):"fixed-last"===this.mdMode?this.handleFixedLastMode(e):"overlap"===this.mdMode?this.handleOverlapMode(e):"flexible"===this.mdMode&&this.handleFlexibleMode(e)},handleScroll:function(e){var t=this;this.MdApp.toolbar.element&&(0,a.default)((function(){t.mdWaterfall&&t.handleWaterfallScroll(e),t.mdMode&&t.handleModeScroll(e)}))}},created:function(){this.MdApp.options.mode=this.mdMode,this.MdApp.options.waterfall=this.mdWaterfall,this.setToolbarElevation()},mounted:function(){var e={target:{scrollTop:0}};"reveal"===this.mdMode&&(this.MdApp.toolbar.revealActive=!0,this.handleRevealMode(e)),"flexible"===this.mdMode&&(this.MdApp.toolbar.revealActive=!0,this.handleFlexibleMode(e)),"fixed-last"===this.mdMode&&(this.MdApp.toolbar.fixedLastActive=!0,this.handleFixedLastMode(e)),"overlap"===this.mdMode&&this.handleOverlapMode(e)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(114)),t.default=new i.default({name:"MdAppInternalDrawer",mixins:[o.default]})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),t.default=new o.default({name:"MdDrawer",props:{mdPermanent:i({type:String},(0,a.default)("md-permanent",["full","clipped","card"])),mdPersistent:i({type:String},(0,a.default)("md-persistent",["mini","full"])),mdActive:Boolean,mdFixed:Boolean},computed:{drawerClasses:function(){var e={"md-temporary":this.isTemporary,"md-persistent":this.mdPersistent,"md-permanent":this.mdPermanent,"md-active":this.mdActive,"md-fixed":this.mdFixed};return this.mdPermanent&&(e["md-permanent-"+this.mdPermanent]=!0),this.mdPersistent&&(e["md-persistent-"+this.mdPersistent]=!0),e},isTemporary:function(){return!this.mdPermanent&&!this.mdPersistent}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdAppToolbar",inject:["MdApp"],computed:{toolbarClasses:function(){return{"md-no-elevation":!this.MdApp.toolbar.hasElevation,"md-reveal-active":this.MdApp.toolbar.revealActive,"md-fixed-last-active":this.MdApp.toolbar.fixedLastActive,"md-overlap-off":this.MdApp.toolbar.overlapOff}},toolbarStyles:function(){var e={top:this.MdApp.toolbar.top+"px"};return this.MdApp.toolbar.fixedLastActive&&(e.transform="translate3D(0, "+this.MdApp.toolbar.fixedLastHeight+"px, 0)"),e}},mounted:function(){var e=this.$el.querySelector(".md-title, .md-display-1, .md-display-2");this.MdApp.toolbar.element=this.$el,this.MdApp.toolbar.titleElement=e,e&&(this.MdApp.toolbar.titleSize=parseInt(window.getComputedStyle(e).fontSize,10))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdAppContent",inject:["MdApp"],computed:{showCard:function(){return this.MdApp.options&&"overlap"===this.MdApp.options.mode}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdAppDrawer",inject:["MdApp"],data:function(){return{drawerElement:{mdActive:null,mode:null,submode:null},initialized:!1}},props:{mdRight:{type:Boolean,default:!1},mdActive:{type:Boolean,default:!1}},computed:{visible:function(){return this.drawerElement.mdActive},mode:function(){return this.drawerElement.mode},submode:function(){return this.drawerElement.submode}},watch:{visible:function(e){this.MdApp.drawer.width=this.getDrawerWidth(),this.MdApp.drawer.active=e},mode:function(e){this.MdApp.drawer.mode=e},submode:function(e){this.MdApp.drawer.submode=e},mdRight:function(e){this.MdApp.drawer.right=e}},methods:{getDrawerWidth:function(){return this.$el?window.getComputedStyle(this.$el).width:0},updateDrawerData:function(){this.MdApp.drawer.width=this.getDrawerWidth(),this.MdApp.drawer.active=this.visible,this.MdApp.drawer.mode=this.mode,this.MdApp.drawer.submode=this.submode,this.MdApp.drawer.right=this.mdRight},clearDrawerData:function(){this.MdApp.drawer.width=0,this.MdApp.drawer.active=!1,this.MdApp.drawer.mode="temporary",this.MdApp.drawer.submode=null,this.MdApp.drawer.initialWidth=0}},mounted:function(){var e=this;this.$nextTick().then((function(){e.MdApp.drawer.initialWidth=e.$el.offsetWidth,e.drawerElement=e.$refs.drawer,e.updateDrawerData(),e.initialized=!0}))},updated:function(){this.drawerElement=this.$refs.drawer},beforeDestroy:function(){this.clearDrawerData()}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=r(n(1)),s=r(n(8)),c=r(n(256)),t.default=new a.default({name:"MdBadge",components:{MdBadgeStandalone:c.default},props:{mdContent:[String,Number],mdPosition:o({type:String,default:"top"},(0,s.default)("md-position",["top","bottom"])),mdDense:Boolean},computed:{hasDefaultSlot:function(){return!!this.$slots.default},badgeClasses:function(){var e,t=this.getStaticClass(),n=this.$vnode.data.class;return o((i(e={},"md-position-"+this.mdPosition,!0),i(e,"md-dense",this.mdDense),e),t,n)},styles:function(){var e=this.$vnode.data.staticStyle,t=this.$vnode.data.style;return o({},e,t)}},methods:{getStaticClass:function(){var e=this.$vnode.data.staticClass;return e?e.split(" ").filter((function(e){return e})).reduce((function(e,t){return e[t]=!0,e}),{}):{}}}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdBadgeStandalone"})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=n(263),s=r(a),c=n(264),l=r(c),u=r(n(8)),t.default={name:"MdAutocomplete",props:{value:{type:null,required:!0},mdDense:Boolean,mdLayout:o({type:String,default:"floating"},(0,u.default)("md-layout",["floating","box"])),mdOpenOnFocus:{type:Boolean,default:!0},mdFuzzySearch:{type:Boolean,default:!0},mdOptions:{type:[Array,Promise],required:!0},mdInputName:String,mdInputId:String,mdInputMaxlength:[String,Number],mdInputPlaceholder:[String,Number]},data:function(){return{searchTerm:this.value,showMenu:!1,triggerPopover:!1,isPromisePending:!1,filteredAsyncOptions:[]}},computed:{isBoxLayout:function(){return"box"===this.mdLayout},fieldClasses:function(){if(this.isBoxLayout)return"md-autocomplete-box"},contentClasses:function(){if(this.isBoxLayout)return"md-autocomplete-box-content"},shouldFilter:function(){return this.mdOptions[0]&&this.searchTerm},filteredStaticOptions:function(){if(this.isPromise(this.mdOptions))return!1;var e=this.mdOptions[0];if(this.shouldFilter){if("string"==typeof e)return this.filterByString();if("object"===(void 0===e?"undefined":i(e)))return this.filterByObject()}return this.mdOptions},hasFilteredItems:function(){return this.filteredStaticOptions.length>0||this.filteredAsyncOptions.length>0},hasScopedEmptySlot:function(){return this.$scopedSlots["md-autocomplete-empty"]}},watch:{mdOptions:{deep:!0,immediate:!0,handler:function(){var e=this;this.isPromise(this.mdOptions)&&(this.isPromisePending=!0,this.mdOptions.then((function(t){e.filteredAsyncOptions=t,e.isPromisePending=!1})))}},value:function(e){this.searchTerm=e}},methods:{getOptions:function(){return this.isPromise(this.mdOptions)?this.filteredAsyncOptions:this.filteredStaticOptions},isPromise:function(e){return(0,l.default)(e)},matchText:function(e){var t=e.toLowerCase(),n=this.searchTerm.toLowerCase();return this.mdFuzzySearch?(0,s.default)(n,t):t.includes(n)},filterByString:function(){var e=this;return this.mdOptions.filter((function(t){return e.matchText(t)}))},filterByObject:function(){var e=this;return this.mdOptions.filter((function(t){var n,r=Object.values(t),i=r.length;for(n=0;n<=i;n++)if("string"==typeof r[n]&&e.matchText(r[n]))return!0}))},openOnFocus:function(){this.mdOpenOnFocus&&this.showOptions()},onInput:function(e){this.$emit("input",e),this.mdOpenOnFocus||this.showOptions(),"inputevent"!==(""+this.searchTerm.constructor).match(/function (\w*)/)[1].toLowerCase()&&this.$emit("md-changed",this.searchTerm)},showOptions:function(){var e=this;if(this.showMenu)return!1;this.showMenu=!0,this.$nextTick((function(){e.triggerPopover=!0,e.$emit("md-opened")}))},hideOptions:function(){var e=this;this.$nextTick((function(){e.triggerPopover=!1,e.$emit("md-closed")}))},selectItem:function(e,t){var n=t.target.textContent.trim();this.searchTerm=n,this.$emit("input",e),this.$emit("md-selected",e),this.hideOptions()}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdAvatar"})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),s=r(n(16)),t.default=new o.default({name:"MdBottomBar",components:{MdRipple:s.default},props:{mdSyncRoute:Boolean,mdActiveItem:[String,Number],mdType:i({type:String,default:"fixed"},(0,a.default)("md-type",["fixed","shift"]))},data:function(){return{MdBottomBar:{mouseEvent:null,activeItem:null,items:{},syncRoute:this.mdSyncRoute}}},provide:function(){return{MdBottomBar:this.MdBottomBar}},computed:{activeItem:function(){return this.MdBottomBar.activeItem},barClasses:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"md-type-"+this.mdType,!0)}},watch:{activeItem:function(){this.$emit("md-changed",this.activeItem)},mdSyncRoute:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return""+e},t}((function(){this.MdBottomBar.syncRoute=mdSyncRoute}))},methods:{hasActiveItem:function(){return this.MdBottomBar.activeItem||this.mdActiveItem},getItemsAndKeys:function(){var e=this.MdBottomBar.items;return{items:e,keys:Object.keys(e)}},setActiveItemByIndex:function(e){var t=this.getItemsAndKeys().keys;this.mdActiveItem?this.MdBottomBar.activeItem=this.mdActiveItem:this.MdBottomBar.activeItem=t[e]}},created:function(){this.MdBottomBar.type=this.mdType},mounted:function(){var e=this;this.$nextTick().then((function(){e.mdSyncRoute||e.setActiveItemByIndex(0)}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(43)),a=r(n(28)),s=n(11),c=r(s),l=n(29),u=r(l),d=["id","mdLabel","mdIcon","mdDisabled"],t.default={name:"MdBottomBarItem",mixins:[o.default,a.default],props:{id:{type:String,default:function(){return"md-bottom-bar-item-"+(0,c.default)()}},mdLabel:String,mdIcon:String,mdDisabled:Boolean},inject:["MdBottomBar"],watch:{$props:{deep:!0,handler:function(){this.setItemData()}},$attrs:{deep:!0,handler:function(){this.setItemData()}}},computed:{itemClasses:function(){return{"md-active":this.id===this.MdBottomBar.activeItem}},attrs:function(){var e=this,t=i({},this.$attrs);return Object.keys(this.$options.propsData).forEach((function(n){d.includes(n)||(t[n]=e[n])})),t}},methods:{getPropValues:function(){var e=this,t=Object.keys(this.$options.props),n={};return t.forEach((function(t){d.includes(t)||(e[t]?n[t]=e[t]:e.$attrs&&e.$attrs.hasOwnProperty(t)&&(n[t]=!t||e.$attrs[t]))})),n},setItemData:function(){this.$set(this.MdBottomBar.items,this.id,{disabled:this.mdDisabled,options:this.mdTemplateOptions,props:this.getPropValues()})},setActiveItem:function(e){this.MdBottomBar.syncRoute||(this.MdBottomBar.activeItem=this.id),"shift"===this.MdBottomBar.type&&(this.MdBottomBar.mouseEvent=e)}},beforeCreate:function(){if(this.$router&&this.$options.propsData.to){var e=(0,u.default)(this,this.$options.props);this.$options.props=e}},created:function(){this.setItemData()},beforeDestroy:function(){this.$delete(this.MdBottomBar.items,this.id)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdCard",props:{mdWithHover:Boolean},data:function(){return{MdCard:{expand:!1}}},provide:function(){return{MdCard:this.MdCard}},computed:{cardClasses:function(){return{"md-with-hover":this.mdWithHover,"md-expand-active":this.MdCard.expand}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardArea",props:{mdInset:Boolean},computed:{areaClasses:function(){return{"md-inset":this.mdInset}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardHeader"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardHeaderText",data:function(){return{parentClasses:null}},mounted:function(){this.parentClasses=this.$parent.$el.classList,this.parentClasses.contains("md-card-header")&&this.parentClasses.add("md-card-header-flex")},beforeDestroy:function(){this.parentClasses.remove("md-card-header-flex")}}},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n,r,i=[],o=!0,a=!1,s=void 0;try{for(n=e[Symbol.iterator]();!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){a=!0,s=e}finally{try{!o&&n.return&&n.return()}finally{if(a)throw s}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),t.default={name:"MdCardMedia",props:{mdRatio:i({type:String},(0,o.default)("md-ratio",["16-9","16/9","16:9","4-3","4/3","4:3","1-1","1/1","1:1"])),mdMedium:Boolean,mdBig:Boolean},computed:{mediaClasses:function(){var e,t,n={};return this.mdRatio&&(e=this.getAspectRatio())&&(n["md-ratio-"+(t=r(e,2))[0]+"-"+t[1]]=!0),(this.mdMedium||this.mdBig)&&(n={"md-medium":this.mdMedium,"md-big":this.mdBig}),n}},methods:{getAspectRatio:function(){var e=[];return-1!==this.mdRatio.indexOf(":")?e=this.mdRatio.split(":"):-1!==this.mdRatio.indexOf("/")?e=this.mdRatio.split("/"):-1!==this.mdRatio.indexOf("-")&&(e=this.mdRatio.split("-")),2===e.length?e:null}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardMediaActions"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardMediaCover",props:{mdTextScrim:Boolean,mdSolid:Boolean},data:function(){return{backdropBackground:{}}},computed:{coverClasses:function(){return{"md-text-scrim":this.mdTextScrim,"md-solid":this.mdSolid}},coverStyles:function(){return{background:this.backdropBackground}}},methods:{applyScrimColor:function(e){this.$refs.backdrop&&(this.backdropBackground="linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, "+e/2+") 66%, rgba(0, 0, 0, "+e+") 100%)")},applySolidColor:function(e){var t=this.$el.querySelector(".md-card-area");t&&(t.style.background="rgba(0, 0, 0, "+e+")")},getImageLightness:function(e,t,n){var r=document.createElement("canvas");e.crossOrigin="Anonymous",e.onload=function(){var e,n,i,o=0,a=void 0,s=void 0,c=void 0,l=void 0;for(r.width=this.width,r.height=this.height,(a=r.getContext("2d")).drawImage(this,0,0),e=0,n=(i=a.getImageData(0,0,r.width,r.height).data).length;e<n;e+=4)s=i[e],c=i[e+1],l=i[e+2],o+=Math.floor((s+c+l)/3);t(Math.floor(o/(this.width*this.height)))},e.onerror=n}},mounted:function(){var e=this,t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.6;e.mdTextScrim?e.applyScrimColor(t):e.mdSolid&&e.applySolidColor(t)},n=this.$el.querySelector("img");n&&(this.mdTextScrim||this.mdSolid)&&this.getImageLightness(n,(function(e){var n=(100*Math.abs(256-e)/256+15)/100;n>=.7&&(n=.7),t(n)}),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardContent"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardExpand",inject:["MdCard"]}},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n,r,i=[],o=!0,a=!1,s=void 0;try{for(n=e[Symbol.iterator]();!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){a=!0,s=e}finally{try{!o&&n.return&&n.return()}finally{if(a)throw s}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},t.default={name:"MdCardExpandTrigger",inject:["MdCard"],render:function(e){var t=this,n=i(this.$slots.default,1)[0],o=" md-card-expand-trigger",a={click:function(){t.MdCard.expand=!t.MdCard.expand}};return n?(n.componentOptions.listeners=r({},n.componentOptions.listeners,a),n.data.staticClass+=o,n):e("div",{staticClass:o,on:a})}}},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(48),i=function(e){return e&&e.__esModule?e:{default:e}}(r),t.default={name:"MdCardExpandContent",inject:["MdCard"],data:function(){return{marginTop:0,resizeObserver:null,transitionEnabled:!0}},computed:{expand:function(){return this.MdCard.expand},contentStyles:function(){return{"margin-top":"-"+this.marginTop+"px",opacity:0===this.marginTop?1:0,"transition-property":this.transitionEnabled?null:"none"}}},methods:{calculateMarginTop:function(){this.expand?this.marginTop=0:this.marginTop=this.$el.children[0].offsetHeight},calculateMarginTopImmediately:function(){var e=this;this.expand||(this.transitionEnabled=!1,this.$nextTick((function(){e.calculateMarginTop(),e.$nextTick((function(){e.$el.offsetHeight,e.transitionEnabled=!0}))})))}},watch:{expand:function(){this.calculateMarginTop()}},mounted:function(){this.calculateMarginTopImmediately(),this.resizeObserver=(0,i.default)(this.$el,{childList:!0,characterData:!0,subtree:!0},this.calculateMarginTopImmediately)},beforeDestroy:function(){this.resizeObserver.disconnect()}}},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),o=["left","right","space-between"],t.default={name:"MdCardActions",props:{mdAlignment:r({type:String,default:"right"},(0,i.default)("md-alignment",o))}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(102)),a=n(11),s=r(a),t.default=new i.default({name:"MdCheckbox",mixins:[o.default],props:{id:{type:String,default:function(){return"md-checkbox-"+(0,s.default)()}}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(62)),s=r(n(53)),c=n(11),l=r(c),u=r(n(8)),t.default=new o.default({name:"MdChips",components:{MdField:a.default,MdInput:s.default},props:{value:Array,id:{type:[String,Number],default:function(){return"md-chips-"+(0,l.default)()}},mdInputType:i({type:[String,Number]},(0,u.default)("md-input-type",["email","number","password","search","tel","text","url"])),mdPlaceholder:[String,Number],mdStatic:Boolean,mdLimit:Number,mdCheckDuplicated:{type:Boolean,default:!1},mdFormat:{type:Function}},data:function(){return{inputValue:"",duplicatedChip:null}},computed:{chipsClasses:function(){return{"md-has-value":this.value&&this.value.length}},modelRespectLimit:function(){return!this.mdLimit||this.value.length<this.mdLimit},formattedInputValue:function(){return this.mdFormat?this.mdFormat(this.inputValue):this.inputValue}},methods:{insertChip:function(e){var t=this,n=(e.target,this.formattedInputValue);if(n&&this.modelRespectLimit){if(this.value.includes(n))return this.duplicatedChip=null,void this.$nextTick((function(){t.duplicatedChip=n}));this.value.push(n),this.$emit("input",this.value),this.$emit("md-insert",n),this.inputValue=""}},removeChip:function(e){var t=this,n=this.value.indexOf(e);this.value.splice(n,1),this.$emit("input",this.value),this.$emit("md-delete",e,n),this.$nextTick((function(){return t.$refs.input.$el.focus()}))},handleBackRemove:function(){this.inputValue||this.removeChip(this.value[this.value.length-1])},handleInput:function(){this.mdCheckDuplicated?this.checkDuplicated():this.duplicatedChip=null},checkDuplicated:function(){return this.value.includes(this.formattedInputValue)?!!this.mdCheckDuplicated&&void(this.duplicatedChip=this.formattedInputValue):(this.duplicatedChip=null,!1)}},watch:{value:function(){this.checkDuplicated()}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(41)),a=r(n(38)),s=r(n(63)),c=r(n(39)),t.default=new i.default({name:"MdChip",components:{MdButton:c.default,MdClearIcon:s.default},mixins:[o.default,a.default],props:{mdDisabled:Boolean,mdDeletable:Boolean,mdClickable:Boolean,mdDuplicated:{type:Boolean,default:!1}},computed:{chipClasses:function(){return{"md-disabled":this.mdDisabled,"md-deletable":this.mdDeletable,"md-clickable":this.mdClickable,"md-focused":this.mdHasFocus,"md-duplicated":this.mdDuplicated}}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_,C;Object.defineProperty(t,"__esModule",{value:!0}),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=n(2),s=r(a),c=n(327),l=r(c),u=n(328),d=r(u),f=n(329),h=r(f),p=n(143),m=r(p),v=r(n(8)),g=r(n(58)),b=r(n(330)),y=r(n(348)),k=n(350),w=r(k),_=r(n(62)),C=r(n(53)),t.default={name:"MdDatepicker",components:{MdOverlay:g.default,MdDateIcon:y.default,MdField:_.default,MdInput:C.default,MdDatepickerDialog:b.default},props:{value:[String,Number,Date],mdDisabledDates:[Array,Function],mdOpenOnFocus:{type:Boolean,default:!0},mdOverrideNative:{type:Boolean,default:!0},mdImmediately:{type:Boolean,default:!1},mdModelType:o({type:Function,default:Date},(0,v.default)("md-model-type",[Date,String,Number])),MdDebounce:{type:Number,default:1e3}},data:function(){return{showDialog:!1,inputDate:"",localDate:null}},computed:{locale:function(){return this.$material.locale},type:function(){return this.mdOverrideNative?"text":"date"},dateFormat:function(){return this.locale.dateFormat||"yyyy-MM-dd"},modelType:function(){return this.isModelTypeString?String:this.isModelTypeNumber?Number:this.isModelTypeDate?Date:this.mdModelType},isModelNull:function(){return null===this.value||void 0===this.value},isModelTypeString:function(){return"string"==typeof this.value},isModelTypeNumber:function(){return Number.isInteger(this.value)&&this.value>=0},isModelTypeDate:function(){return"object"===i(this.value)&&this.value instanceof Date&&(0,m.default)(this.value)},localString:function(){return this.localDate&&(0,d.default)(this.localDate,this.dateFormat)},localNumber:function(){return this.localDate&&+this.localDate},parsedInputDate:function(){var e=(0,h.default)(this.inputDate,this.dateFormat,new Date);return e&&(0,m.default)(e)?e:null},pattern:function(){return this.dateFormat.replace(/yyyy|MM|dd/g,(function(e){switch(e){case"yyyy":return"[0-9]{4}";case"MM":case"dd":return"[0-9]{2}"}}))}},watch:{inputDate:function(e){this.inputDateToLocalDate()},localDate:function(){this.inputDate=this.localString,this.modelType===Date&&this.$emit("input",this.localDate)},localString:function(){this.modelType===String&&this.$emit("input",this.localString)},localNumber:function(){this.modelType===Number&&this.$emit("input",this.localNumber)},value:{immediate:!0,handler:function(){this.valueDateToLocalDate()}},mdModelType:function(e){switch(e){case Date:this.$emit("input",this.localDate);break;case String:this.$emit("input",this.localString);break;case Number:this.$emit("input",this.localNumber)}},dateFormat:function(){this.localDate&&(this.inputDate=(0,d.default)(this.localDate,this.dateFormat))}},methods:{toggleDialog:function(){!l.default||this.mdOverrideNative?(this.showDialog=!this.showDialog,this.showDialog?this.$emit("md-opened"):this.$emit("md-closed")):this.$refs.input.$el.click()},onFocus:function(){this.mdOpenOnFocus&&this.toggleDialog()},inputDateToLocalDate:function(){this.inputDate?this.parsedInputDate&&(this.localDate=this.parsedInputDate):this.localDate=null},valueDateToLocalDate:function(){if(this.isModelNull)this.localDate=null;else if(this.isModelTypeNumber)this.localDate=new Date(this.value);else if(this.isModelTypeDate)this.localDate=this.value;else if(this.isModelTypeString){var e=(0,h.default)(this.value,this.dateFormat,new Date);(0,m.default)(e)?this.localDate=(0,h.default)(this.value,this.dateFormat,new Date):s.default.util.warn("The datepicker value is not a valid date. Given value: "+this.value+", format: "+this.dateFormat)}else s.default.util.warn("The datepicker value is not a valid date. Given value: "+this.value)}},created:function(){this.inputDateToLocalDate=(0,w.default)(this.inputDateToLocalDate,this.MdDebounce)}}},function(e,t,n){"use strict";t.a=function(e){var t,n=new Date(e.getTime()),i=n.getTimezoneOffset();return n.setSeconds(0,0),t=n.getTime()%r,i*r+t};var r=6e4},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e);return!isNaN(t)};var r=n(9)},function(e,t,n){"use strict";function r(e){return function(t){var n=t||{},r=n.width?n.width+"":e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}function i(e){return function(t,n){var r=n||{},i=r.width?r.width+"":e.defaultWidth;return("formatting"==(r.context?r.context+"":"standalone")&&e.formattingValues?e.formattingValues[i]||e.formattingValues[e.defaultFormattingWidth]:e.values[i]||e.values[e.defaultWidth])[e.argumentCallback?e.argumentCallback(t):t]}}function o(e){return function(t,n){var r,i,o,a=t+"",s=n||{},c=s.width,l=c&&e.matchPatterns[c]||e.matchPatterns[e.defaultMatchWidth],u=a.match(l);return u?(r=u[0],i=c&&e.parsePatterns[c]||e.parsePatterns[e.defaultParseWidth],o="[object Array]"===Object.prototype.toString.call(i)?i.findIndex((function(e){return e.test(a)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(i,(function(e){return e.test(a)})),o=e.valueCallback?e.valueCallback(o):o,{value:o=s.valueCallback?s.valueCallback(o):o,rest:a.slice(r.length)}):null}}var a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},s={date:r({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:r({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:r({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l={formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof a[e]?a[e]:1===t?a[e].one:a[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:s,formatRelative:function(e,t,n,r){return c[e]},localize:{ordinalNumber:function(e,t){var n=+e,r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:i({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:i({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return+e-1}}),month:i({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:i({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:i({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t,n){var r,i,o,a=t+"",s=n||{},c=a.match(e.matchPattern);return c?(r=c[0],(i=a.match(e.parsePattern))?(o=e.valueCallback?e.valueCallback(i[0]):i[0],{value:o=s.valueCallback?s.valueCallback(o):o,rest:a.slice(r.length)}):null):null}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:o({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:o({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:o({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:o({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=l},function(e,t,n){"use strict";function r(e){var t,n;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return t=Object(s.a)(e),(n=new Date(0)).setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Object(a.a)(n)}var i,o=n(9),a=n(64),s=n(146);t.a=function(e){var t,n;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return t=Object(o.a)(e),n=Object(a.a)(t).getTime()-r(t).getTime(),Math.round(n/i)+1},i=6048e5},function(e,t,n){"use strict";var r,i;t.a=function(e){var t,n,o,a,s,c;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=(t=Object(r.a)(e)).getUTCFullYear(),(o=new Date(0)).setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0),a=Object(i.a)(o),(s=new Date(0)).setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),c=Object(i.a)(s),t.getTime()>=a.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1},r=n(9),i=n(64)},function(e,t,n){"use strict";function r(e,t){var n,r,i,o,l,u,d;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return o=null==(i=(r=(n=t||{}).locale)&&r.options&&r.options.firstWeekContainsDate)?1:Object(s.a)(i),l=null==n.firstWeekContainsDate?o:Object(s.a)(n.firstWeekContainsDate),u=Object(c.a)(e,t),(d=new Date(0)).setUTCFullYear(u,0,l),d.setUTCHours(0,0,0,0),Object(a.a)(d,t)}var i,o=n(9),a=n(65),s=n(17),c=n(93);t.a=function(e,t){var n,s;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=Object(o.a)(e),s=Object(a.a)(n,t).getTime()-r(n,t).getTime(),Math.round(s/i)+1},i=6048e5},function(e,t,n){"use strict";function r(e,t){var n,r;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(o.a)(e).getTime(),r=Object(i.a)(t),new Date(n+r)}var i=n(17),o=n(9);t.a=function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return r(e,-Object(i.a)(t))}},function(e,t,n){"use strict";t.a=function(e){return-1!==r.indexOf(e)},t.b=function(e){throw new RangeError("`options.awareOfUnicodeTokens` must be set to `true` to use `"+e+"` token; see: https://git.io/fxCyr")};var r=["D","DD","YY","YYYY"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_,C,A,x,S,M,E,T,D,O,P,I,j,N;Object.defineProperty(t,"__esModule",{value:!0}),i=n(151),o=r(i),a=n(332),s=r(a),c=n(333),l=r(c),u=n(334),d=r(u),f=n(335),h=r(f),p=n(96),m=r(p),v=n(336),g=r(v),b=n(337),y=r(b),k=n(338),w=r(k),_=n(339),C=r(_),A=n(340),x=r(A),S=n(341),M=r(S),E=n(342),T=r(E),D=r(n(1)),O=r(n(56)),P=r(n(343)),I=r(n(345)),j=r(n(68)),N=function(e,t){return!(!e||!e.querySelector)&&e.querySelectorAll(t)},t.default=new D.default({name:"MdDatepickerDialog",components:{MdPopover:O.default,MdArrowRightIcon:P.default,MdArrowLeftIcon:I.default,MdDialog:j.default},props:{mdDate:Date,mdDisabledDates:[Array,Function],mdImmediately:{type:Boolean,default:!1}},data:function(){return{currentDate:null,selectedDate:null,showDialog:!1,monthAction:null,currentView:"day",contentStyles:{},availableYears:null}},computed:{firstDayOfAWeek:function(){var e=+this.locale.firstDayOfAWeek;return Number.isNaN(e)||!Number.isFinite(e)?0:(e=Math.floor(e)%7,e+=e<0?7:0)},locale:function(){return this.$material.locale},popperSettings:function(){return{placement:"bottom-start",modifiers:{keepTogether:{enabled:!0},flip:{enabled:!1}}}},calendarClasses:function(){return"next"===this.monthAction?"md-next":"md-previous"},firstDayOfMonth:function(){return(0,s.default)(this.currentDate).getDay()},prefixEmptyDays:function(){var e=this.firstDayOfMonth-this.firstDayOfAWeek;return e+=e<0?7:0},daysInMonth:function(){return(0,m.default)(this.currentDate)},currentDay:function(){return this.selectedDate?(0,d.default)(this.selectedDate):(0,d.default)(this.currentDate)},currentMonth:function(){return(0,g.default)(this.currentDate)},currentMonthName:function(){return this.locale.months[this.currentMonth]},currentYear:function(){return(0,y.default)(this.currentDate)},selectedYear:function(){return this.selectedDate?(0,y.default)(this.selectedDate):(0,y.default)(this.currentDate)},shortDayName:function(){return this.selectedDate?this.locale.shortDays[(0,h.default)(this.selectedDate)]:this.locale.shortDays[(0,h.default)(this.currentDate)]},shortMonthName:function(){return this.selectedDate?this.locale.shortMonths[(0,g.default)(this.selectedDate)]:this.locale.shortMonths[(0,g.default)(this.currentDate)]}},watch:{mdDate:function(){this.currentDate=this.mdDate||new Date,this.selectedDate=this.mdDate},currentDate:function(e,t){var n=this;this.$nextTick().then((function(){t&&n.setContentStyles()}))},currentView:function(){var e=this;this.$nextTick().then((function(){if("year"===e.currentView){var t=N(e.$el,".md-datepicker-year-button.md-datepicker-selected");t.length&&t[0].scrollIntoView({behavior:"instant",block:"center",inline:"center"})}}))}},methods:{setContentStyles:function(){var e,t=N(this.$el,".md-datepicker-month");t.length&&(e=t[t.length-1],this.contentStyles={height:e.offsetHeight+10+"px"})},setAvailableYears:function(){for(var e=this.locale,t=e.startYear,n=e.endYear,r=t,i=[];r<=n;)i.push(r++);this.availableYears=i},handleDisabledDateByArray:function(e){return this.mdDisabledDates.some((function(t){return(0,C.default)(t,e)}))},isDisabled:function(e){if(this.mdDisabledDates){var t=(0,x.default)(this.currentDate,e);if(Array.isArray(this.mdDisabledDates))return this.handleDisabledDateByArray(t);if("function"==typeof this.mdDisabledDates)return this.mdDisabledDates(t)}},isSelectedDay:function(e){return(0,w.default)(this.selectedDate,(0,x.default)(this.currentDate,e))},isToday:function(e){return(0,C.default)(new Date,(0,x.default)(this.currentDate,e))},previousMonth:function(){this.monthAction="previous",this.currentDate=(0,l.default)(this.currentDate,1)},nextMonth:function(){this.monthAction="next",this.currentDate=(0,o.default)(this.currentDate,1)},switchMonth:function(e){this.currentDate=(0,M.default)(this.currentDate,e),this.currentView="day"},switchYear:function(e){this.currentDate=(0,T.default)(this.currentDate,e),this.currentView="month"},selectDate:function(e){this.currentDate=(0,x.default)(this.currentDate,e),this.selectedDate=this.currentDate,this.mdImmediately&&(this.$emit("update:mdDate",this.selectedDate),this.closeDialog())},closeDialog:function(){this.$emit("md-closed")},onClose:function(){this.closeDialog()},onCancel:function(){this.closeDialog()},onConfirm:function(){this.$emit("update:mdDate",this.selectedDate),this.closeDialog()},resetDate:function(){this.currentDate=this.mdDate||new Date,this.selectedDate=this.mdDate,this.currentView="day"}},created:function(){this.setAvailableYears(),this.resetDate()}})},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,a,s,c,l;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(e),a=Object(r.a)(t),s=n.getMonth()+a,(c=new Date(0)).setFullYear(n.getFullYear(),s,1),c.setHours(0,0,0,0),l=Object(o.default)(c),n.setMonth(s,Math.min(l,n.getDate())),n},r=n(17),i=n(9),o=n(96)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdArrowRightIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdArrowLeftIcon",components:{MdIcon:r.default}}},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-portal",[n("transition",{attrs:{name:"md-dialog"}},[e.mdActive?n("div",e._g({staticClass:"md-dialog",class:[e.dialogClasses,e.$mdActiveTheme],on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.onEsc(t)}}},e.$listeners),[n("md-focus-trap",[n("div",{staticClass:"md-dialog-container"},[e._t("default"),e._v(" "),n("keep-alive",[e.mdBackdrop?n("md-overlay",{class:e.mdBackdropClass,attrs:{"md-fixed":"","md-active":e.mdActive},on:{click:e.onClick}}):e._e()],1)],2)])],1):e._e()])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdDateIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogTitle"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdDialogContent"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogActions"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdDivider",computed:{insideList:function(){return"md-list"===this.$parent.$options._componentTag}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(58)),s=r(n(8)),c=r(n(104)),t.default=new o.default({name:"MdDrawer",mixins:[c.default],components:{MdOverlay:a.default},props:{mdRight:Boolean,mdPermanent:i({type:String},(0,s.default)("md-permanent",["full","clipped","card"])),mdPersistent:i({type:String},(0,s.default)("md-persistent",["mini","full"])),mdActive:Boolean,mdFixed:Boolean},watch:{mdActive:function(e){e?this.$emit("md-opened"):this.$emit("md-closed")},swiped:function(e){"right"!==e&&"left"!==e||this.$emit("update:mdActive","right"===e)}},computed:{drawerClasses:function(){var e={"md-left":!this.mdRight,"md-right":this.mdRight,"md-temporary":this.isTemporary,"md-persistent":this.mdPersistent,"md-permanent":this.mdPermanent,"md-active":this.mdActive,"md-fixed":this.mdFixed};return this.mdPermanent&&(e["md-permanent-"+this.mdPermanent]=!0),this.mdPersistent&&(e["md-persistent-"+this.mdPersistent]=!0),e},isTemporary:function(){return!this.mdPermanent&&!this.mdPersistent},mode:function(){return this.mdPersistent?"persistent":this.mdPermanent?"permanent":"temporary"},submode:function(){return this.mdPersistent?this.mdPersistent:this.mdPermanent?this.mdPermanent:void 0},mdSwipeElement:function(){return this.$el.parentNode}},methods:{closeDrawer:function(){this.$emit("update:mdActive",!1)}}})},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-empty-state",appear:""}},[n("div",{staticClass:"md-empty-state",class:[e.emptyStateClasses,e.$mdActiveTheme],style:e.emptyStateStyles},[n("div",{staticClass:"md-empty-state-container"},[e.mdIcon?[e.isAssetIcon(e.mdIcon)?n("md-icon",{staticClass:"md-empty-state-icon",attrs:{"md-src":e.mdIcon}}):n("md-icon",{staticClass:"md-empty-state-icon"},[e._v(e._s(e.mdIcon))])]:e._e(),e._v(" "),e.mdLabel?n("strong",{staticClass:"md-empty-state-label"},[e._v(e._s(e.mdLabel))]):e._e(),e._v(" "),e.mdDescription?n("p",{staticClass:"md-empty-state-description"},[e._v(e._s(e.mdDescription))]):e._e(),e._v(" "),e._t("default")],2)])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},r(n(10)),r(n(1)),o=r(n(377)),a=r(n(107)),s=r(n(108)),c=r(n(53)),l=r(n(42)),u={x:-15,y:-48},t.default={name:"MdSelect",components:{MdInput:c.default,MdMenu:a.default,MdMenuContent:s.default,MdDropDownIcon:o.default},mixins:[l.default],props:{mdDense:Boolean,mdClass:String,multiple:Boolean,id:String,name:String},inject:["MdField"],data:function(){return{menuStyles:{},offset:{x:u.x,y:0},showSelect:!0,didMount:!1,MdSelect:{items:{},label:null,multiple:!1,modelValue:this.localValue,setValue:this.setValue,setContent:this.setContent,setMultipleValue:this.setMultipleValue,setMultipleContent:this.setMultipleContent}}},provide:function(){return{MdSelect:this.MdSelect}},computed:{attrs:function(){return i({},this.$attrs,{name:this.name,id:void 0})},inputListeners:function(){return i({},this.$listeners,{input:void 0})}},watch:{localValue:{immediate:!0,handler:function(e){this.setFieldContent(),this.MdSelect.modelValue=this.localValue,this.didMount&&this.emitSelected(e)}},multiple:{immediate:!0,handler:function(e){this.MdSelect.multiple=e,this.$nextTick(this.initialLocalValueByDefault)}}},methods:{elHasScroll:function(e){return e.scrollHeight>e.offsetHeight},scrollToSelectedOption:function(e,t){var n=e.offsetTop,r=e.offsetHeight,i=t.offsetHeight;t.scrollTop=n-(i-r)/2},setOffsets:function(e){var t,n;this.$isServer||(t=this.$refs.menu.$refs.container)&&((n=e||t.querySelector(".md-selected"))?(this.scrollToSelectedOption(n,t),this.offset.y=u.y-n.offsetTop+t.scrollTop+8,this.menuStyles={"transform-origin":"0 "+Math.abs(this.offset.y)+"px"}):(this.offset.y=u.y+1,this.menuStyles={}))},onMenuEnter:function(){this.didMount&&(this.setOffsets(),this.MdField.focused=!0,this.$emit("md-opened"))},applyHighlight:function(){this.MdField.focused=!1,this.MdField.highlighted=!0,this.$refs.input.$el.focus()},onClose:function(){this.$emit("md-closed"),this.didMount&&this.applyHighlight()},onFocus:function(){this.didMount&&this.applyHighlight()},removeHighlight:function(){this.MdField.highlighted=!1},openSelect:function(){this.disabled||(this.showSelect=!0)},arrayAccessorRemove:function(e,t){var n=e.slice(0,t),r=e.slice(t+1,e.length);return n.concat(r)},toggleArrayValue:function(e){var t=this.localValue.indexOf(e),n=t>-1;this.localValue=n?this.arrayAccessorRemove(this.localValue,t):this.localValue.concat([e])},setValue:function(e){this.model=e,this.setFieldValue(),this.showSelect=!1},setContent:function(e){this.MdSelect.label=e},setContentByValue:function(){var e=this.MdSelect.items[this.localValue];e?this.setContent(e):this.setContent("")},setMultipleValue:function(e){var t=e;this.toggleArrayValue(t),this.setFieldValue()},setMultipleContentByValue:function(){var e,t=this;this.localValue||this.initialLocalValueByDefault(),e=[],this.localValue.forEach((function(n){var r=t.MdSelect.items[n];r&&e.push(r)})),this.setContent(e.join(", "))},setFieldContent:function(){this.multiple?this.setMultipleContentByValue():this.setContentByValue()},isLocalValueSet:function(){return void 0!==this.localValue&&null!==this.localValue},setLocalValueIfMultiple:function(){this.isLocalValueSet()?this.localValue=[this.localValue]:this.localValue=[]},setLocalValueIfNotMultiple:function(){this.localValue.length>0?this.localValue=this.localValue[0]:this.localValue=null},initialLocalValueByDefault:function(){var e=Array.isArray(this.localValue);this.multiple&&!e?this.setLocalValueIfMultiple():!this.multiple&&e&&this.setLocalValueIfNotMultiple()},emitSelected:function(e){this.$emit("md-selected",e)}},mounted:function(){var e=this;this.showSelect=!1,this.setFieldContent(),this.$nextTick().then((function(){e.didMount=!0}))},updated:function(){this.setFieldContent()}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdDropDownIcon",components:{MdIcon:r.default}}},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",e._g({staticClass:"md-menu"},e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-popover",{attrs:{"md-settings":e.popperSettings,"md-active":e.shouldRender}},[e.shouldRender?n("transition",e._g({attrs:{name:"md-menu-content",css:e.didMount}},e.$listeners),[n("div",{ref:"menu",class:[e.menuClasses,e.mdContentClass,e.$mdActiveTheme],style:e.menuStyles},[n("div",{ref:"container",staticClass:"md-menu-content-container md-scrollbar",class:e.$mdActiveTheme},[n("md-list",e._b({class:e.listClasses},"md-list",e.filteredAttrs,!1),[e._t("default")],2)],1)])]):e._e()],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(11),i=function(e){return e&&e.__esModule?e:{default:e}}(r),t.default={name:"MdOption",props:{value:[String,Number,Boolean],disabled:Boolean},inject:{MdSelect:{},MdOptgroup:{default:{}}},data:function(){return{uniqueId:"md-option-"+(0,i.default)(),isSelected:!1,isChecked:!1}},computed:{selectValue:function(){return this.MdSelect.modelValue},isMultiple:function(){return this.MdSelect.multiple},isDisabled:function(){return this.MdOptgroup.disabled||this.disabled},key:function(){return this.value||0===this.value?this.value:this.uniqueId},inputLabel:function(){return this.MdSelect.label},optionClasses:function(){return{"md-selected":this.isSelected||this.isChecked}}},watch:{selectValue:function(){this.setIsSelected()},isChecked:function(e){e!==this.isSelected&&this.setSelection()},isSelected:function(e){this.isChecked=e}},methods:{getTextContent:function(){if(this.$el)return this.$el.textContent.trim();var e=this.$slots.default;return e?e[0].text.trim():""},setIsSelected:function(){return this.isMultiple?void 0===this.selectValue?void(this.isSelected=!1):void(this.isSelected=this.selectValue.includes(this.value)):void(this.isSelected=this.selectValue===this.value)},setSingleSelection:function(){this.MdSelect.setValue(this.value)},setMultipleSelection:function(){this.MdSelect.setMultipleValue(this.value)},setSelection:function(){this.isDisabled||(this.isMultiple?this.setMultipleSelection():this.setSingleSelection())},setItem:function(){this.$set(this.MdSelect.items,this.key,this.getTextContent())}},updated:function(){this.setItem()},created:function(){this.setItem(),this.setIsSelected()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdOptgroup",props:{label:String,disabled:Boolean},provide:function(){return{MdOptgroup:{disabled:this.disabled}}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(11),o=r(i),a=r(n(388)),s=r(n(42)),t.default={name:"MdFile",components:{MdFileIcon:a.default},props:{id:{type:String,default:function(){return"md-file-"+(0,o.default)()}},name:String},computed:{iconClass:function(){return{"md-disabled":this.disabled}}},mixins:[s.default],inject:["MdField"],methods:{getMultipleName:function(e){var t=[];return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e)).forEach((function(e){var n=e.name;return t.push(n)})),t.join(", ")},getFileName:function(e,t){return e&&0!==e.length?e.length>1?this.getMultipleName(e):1===e.length?e[0].name:null:t.value.split("\\").pop()},openPicker:function(){this.onFocus(),this.$refs.inputFile.click()},onChange:function(e){this.onFileSelected(e)},onFileSelected:function(e){var t=e.target,n=e.dataTransfer,r=t.files||n.files;this.model=this.getFileName(r,t),this.$emit("md-change",r||t.value)}},created:function(){this.MdField.file=!0},beforeDestroy:function(){this.MdField.file=!1}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdFileIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=n(11),s=r(a),c=r(n(42)),t.default=new o.default({name:"MdTextarea",mixins:[c.default],inject:["MdField"],props:{id:{type:String,default:function(){return"md-textarea-"+(0,s.default)()}},mdAutogrow:Boolean},computed:{listeners:function(){return i({},this.$listeners,{input:this.onInput})},textareaStyles:function(){return{height:this.textareaHeight}}},methods:{getTextAreaLineSize:function(){var e=window.getComputedStyle(this.$el);return parseInt(e.lineHeight,10)},setTextAreaSize:function(e){var t,n=e;e||(t=this.getTextAreaLineSize(),n=function(e,t){var n=e.style.height,r=e.offsetHeight,i=e.scrollHeight;return e.style.overflow="hidden",r>=i&&(e.style.height=r+t+"px",i<e.scrollHeight)?(e.style.height=n,r):i}(this.$el,t)),this.textareaHeight=n+"px"},applyStyles:function(){var e=this;this.mdAutogrow&&(this.setTextAreaSize(32),this.$nextTick().then((function(){e.setTextAreaSize(),window.setTimeout((function(){e.$el.style.overflow="auto"}),10)})))},setTextarea:function(){this.MdField.textarea=!0},setAutogrow:function(){this.MdField.autogrow=this.mdAutogrow},onInput:function(){this.setFieldValue()}},watch:{localValue:function(){this.applyStyles()}},created:function(){this.setTextarea(),this.setAutogrow()},mounted:function(){this.$nextTick().then(this.applyStyles)},beforeDestroy:function(){this.setTextarea(!1)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e;return t||(t="$&"),'<span class="md-highlight-text-match">'+t+"</span>"}function o(e,t,n){var r=e.text;return r&&t&&t[0]?n?function e(t,n){var r,o,a;if(0===n.length)return t;if(-1===(r=t.toLowerCase().indexOf(n[0].toLowerCase())))return"";for(o=0,a=1;a<n.length&&t[r+a]===n[a];a++)o=a;return t.slice(0,r)+i(t.slice(r,r+o+1))+e(t.slice(r+o+1),n.slice(o+1))}(r,t)||r:function(e,t){var n=RegExp(t+"(?!([^<]+)?<)","gi");return e.replace(n,i())}(r,t):r}var a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),a=n(2),s=r(a),c=r(n(1)),t.default=new c.default({name:"MdHighlightText",abstract:!0,props:{mdTerm:String,mdFuzzySearch:{type:Boolean,default:!0}},render:function(e){var t,n;try{if(!(t=this.$slots.default))return null;if(t.length>1||t[0].tag)throw Error();return n=o(t[0],this.mdTerm,this.mdFuzzySearch),e("div",{staticClass:"md-highlight-text",class:this.$mdActiveTheme,domProps:{innerHTML:n}})}catch(e){s.default.util.warn("MdHighlightText can only render text nodes.",this)}return null}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdImage",props:{mdSrc:String}})},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(76),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(181),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(77),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(180),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-ripple",{staticClass:"md-list-item-content",attrs:{"md-disabled":e.mdDisabled}},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-list-item-default",on:{click:e.toggleControl}},[n("md-list-item-content",{attrs:{"md-disabled":""}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(78),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(183),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-list-item-fake-button",attrs:{disabled:e.disabled}},[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(79),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(185),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"md-list-item-button",attrs:{type:"button",disabled:e.disabled}},[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(80),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(187),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._b({staticClass:"md-list-item-link"},"a",e.$props,!1),[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(81),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(189),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("router-link",e._b({staticClass:"md-list-item-router"},"router-link",e.routerProps,!1),[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(82),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(194),s=function(e){n(191)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(83),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(193),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}}),e._v(" "),n("path",{attrs:{d:"M0-.75h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-list-item-expand",class:e.expandClasses},[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled},nativeOn:{click:function(t){return e.toggleExpand(t)}}},[e._t("default"),e._v(" "),n("md-arrow-down-icon",{staticClass:"md-list-expand-icon"})],2),e._v(" "),n("div",{ref:"listExpand",staticClass:"md-list-expand",style:e.expandStyles},[e._t("md-expand")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=n(100),a=r(o),r(n(109)),t.default=new i.default({name:"MdMenuItem",props:{disabled:Boolean},inject:["MdMenu"],data:function(){return{highlighted:!1}},computed:{itemClasses:function(){return{"md-highlight":this.highlighted}},listeners:function(){var e,t=this;return this.disabled?{}:this.MdMenu.closeOnSelect?(e={},Object.keys(this.$listeners).forEach((function(n){a.default.includes(n)?e[n]=function(e){t.$listeners[n](e),t.closeMenu()}:e[n]=t.$listeners[n]})),e):this.$listeners}},methods:{closeMenu:function(){this.MdMenu.active=!1,this.MdMenu.eventObserver&&this.MdMenu.eventObserver.destroy()},triggerCloseMenu:function(){this.disabled||this.closeMenu()}},mounted:function(){this.$el.children&&this.$el.children[0]&&"A"===this.$el.children[0].tagName.toUpperCase()&&this.$el.addEventListener("click",this.triggerCloseMenu)},beforeDestroy:function(){this.$el.removeEventListener("click",this.triggerCloseMenu)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),t.default=new o.default({name:"MdProgressBar",props:{mdValue:{type:Number,default:0},mdBuffer:{type:Number,default:0},mdMode:i({type:String,default:"determinate"},(0,a.default)("md-mode",["determinate","indeterminate","query","buffer"]))},computed:{isDeterminate:function(){return"determinate"===this.mdMode},isBuffer:function(){return"buffer"===this.mdMode},hasAmountFill:function(){return this.isBuffer||this.isDeterminate},progressClasses:function(){return"md-"+this.mdMode},progressValueStyle:function(){if(this.hasAmountFill)return"width: "+this.mdValue+"%"},progressTrackStyle:function(){if(this.hasAmountFill)return"width: "+this.mdBuffer+"%"},progressBufferStyle:function(){if(this.hasAmountFill)return"left: calc("+this.mdBuffer+"% + 8px)"}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=r(n(1)),s=r(n(8)),new Set,t.default=new a.default({name:"MdProgressSpinner",props:{mdValue:{type:Number,default:0},mdDiameter:{type:Number,default:60},mdStroke:{type:Number,default:6},mdMode:o({type:String,default:"determinate"},(0,s.default)("md-mode",["determinate","indeterminate"]))},computed:{isDeterminate:function(){return"determinate"===this.mdMode},isIndeterminate:function(){return"indeterminate"===this.mdMode},isIE:function(){return!this.$isServer&&navigator.userAgent.toLowerCase().includes("trident")},progressClasses:function(){var e,t="md-progress-spinner-indeterminate";return this.isIE&&(t+="-fallback"),i(e={},t,!0),i(e,"md-"+this.mdMode,!0),e},circleRadius:function(){return(this.mdDiameter-this.mdStroke)/2},circleStrokeWidth:function(){return this.mdStroke+"px"},circleCircumference:function(){return 2*Math.PI*this.circleRadius},circleStrokeDashArray:function(){return this.circleCircumference+"px"},circleStrokeDashOffset:function(){return this.isDeterminate?this.circleCircumference*(100-this.mdValue)/100+"px":this.isIndeterminate&&this.isIE?.2*this.circleCircumference+"px":null}},watch:{mdValue:function(){this.attachCircleStyle()},mdDiameter:function(){this.attachSvgStyle(),this.attachCircleStyle()},mdStroke:function(){this.attachCircleStyle()}},methods:{attachSvgStyle:function(){var e=this.$refs["md-progress-spinner-draw"],t=this.mdDiameter+"px";e.style.width=t,e.style.height=t},attachCircleStyle:function(){var e=this.$refs["md-progress-spinner-circle"];e.style.strokeDashoffset=this.circleStrokeDashOffset,e.style.strokeDasharray=this.circleStrokeDashArray,e.style.strokeWidth=this.circleStrokeWidth,e.style.setProperty("--md-progress-spinner-start-value",.95*this.circleCircumference),e.style.setProperty("--md-progress-spinner-end-value",.2*this.circleCircumference)}},mounted:function(){this.attachSvgStyle(),this.attachCircleStyle()}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=n(11),a=r(o),s=r(n(16)),t.default=new i.default({name:"MdRadio",components:{MdRipple:s.default},props:{model:[String,Number,Boolean,Object],value:{type:[String,Number,Boolean,Object],default:"on"},id:{type:String,default:function(){return"md-radio-"+(0,a.default)()}},name:[String,Number],required:Boolean,disabled:Boolean},model:{prop:"model",event:"change"},data:function(){return{rippleActive:!1}},computed:{isSelected:function(){return this.model===this.value},radioClasses:function(){return{"md-checked":this.isSelected,"md-disabled":this.disabled,"md-required":this.required}}},methods:{toggleCheck:function(){this.disabled||(this.rippleActive=!0,this.$emit("change",this.value))}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),s=r(n(27)),c=r(n(421)),l=n(423),t.default=new o.default({name:"MdSnackbar",components:{MdPortal:s.default,MdSnackbarContent:c.default},props:{mdActive:Boolean,mdPersistent:Boolean,mdDuration:{type:Number,default:4e3},mdPosition:i({type:String,default:"center"},(0,a.default)("md-position",["center","left"]))},computed:{snackbarClasses:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"md-position-"+this.mdPosition,!0)}},watch:{mdActive:function(e){var t=this;e?(0,l.createSnackbar)(this.mdDuration,this.mdPersistent,this).then((function(){t.$emit("update:mdActive",!1),t.$emit("md-opened")})):((0,l.destroySnackbar)(),this.$emit("md-closed"))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdSnackbarContent",props:{mdClasses:Array}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=r(n(1)),s=r(n(8)),t.default=new a.default({name:"MdSpeedDial",props:{mdEvent:o({type:String,default:"hover"},(0,s.default)("md-event",["click","hover"])),mdDirection:o({type:String,default:"top"},(0,s.default)("md-direction",["top","bottom"])),mdEffect:o({type:String,default:"fling"},(0,s.default)("md-effect",["fling","scale","opacity"]))},data:function(){return{MdSpeedDial:{active:!1,event:this.mdEvent,direction:this.mdDirection}}},provide:function(){return{MdSpeedDial:this.MdSpeedDial}},computed:{speedDialClasses:function(){var e;return i(e={"md-active":this.MdSpeedDial.active,"md-with-hover":"hover"===this.mdEvent},"md-direction-"+this.mdDirection,!0),i(e,"md-effect-"+this.mdEffect,!0),e}}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(39)),t.default={name:"MdSpeedDialTarget",components:{MdButton:r.default},inject:["MdSpeedDial"],methods:{handleClick:function(){"click"===this.MdSpeedDial.event&&(this.MdSpeedDial.active=!this.MdSpeedDial.active)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdSpeedDialContent",inject:["MdSpeedDial"],methods:{setChildrenIndexes:function(){var e=this;this.$nextTick().then((function(){var t=e.$children.length;e.$children.forEach((function(n,r){if("button"===n._vnode.tag){var i=function(e,t,n){return"top"===e?n-t-1:t}(e.MdSpeedDial.direction,r,t);n.$el.setAttribute("md-button-index",i),n.$el.classList.add("md-raised")}}))}))}},mounted:function(){this.setChildrenIndexes()},updated:function(){this.setChildrenIndexes()}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=n(48),a=r(o),s=n(110),c=r(s),l=r(n(205)),t.default=new i.default({name:"MdSteppers",components:{MdStepHeader:l.default},props:{mdSyncRoute:Boolean,mdDynamicHeight:Boolean,mdVertical:Boolean,mdLinear:Boolean,mdAlternative:Boolean,mdActiveStep:[String,Number]},data:function(){return{activeStepIndex:0,noTransition:!0,contentStyles:{},activeButtonEl:null,MdSteppers:{activeStep:0,isLinear:!1,isVertical:!1,items:{},syncRoute:this.mdSyncRoute,getStepperNumber:this.getStepperNumber,setActiveStep:this.setActiveStep,isPreviousStepperDone:this.isPreviousStepperDone}}},provide:function(){return{MdSteppers:this.MdSteppers}},computed:{steppersClasses:function(){return{"md-no-transition":this.noTransition,"md-alternative":this.mdAlternative,"md-horizontal":!this.mdVertical,"md-vertical":this.mdVertical,"md-dynamic-height":this.mdDynamicHeight}},activeIndex:function(){return this.MdSteppers.activeStep},containerStyles:function(){return{transform:!this.mdVertical&&"translate3D("+100*-this.activeStepIndex+"%, 0, 0)"}}},watch:{mdActiveStep:function(e){this.MdSteppers.activeStep=e,this.$emit("md-changed",e)},mdLinear:function(e){this.MdSteppers.isLinear=e},mdVertical:function(e){this.MdSteppers.isVertical=e},activeIndex:function(){this.$nextTick(this.setActiveButtonEl)},activeStepIndex:function(){this.onActiveStepIndex(),this.$nextTick(this.calculateStepperPos)},activeButtonEl:function(e){this.activeStepIndex=e?[].indexOf.call(e.parentNode.childNodes,e):0},$route:function(){this.$nextTick(this.setActiveButtonEl)}},methods:{hasActiveStep:function(){return this.MdSteppers.activeStep||this.mdActiveStep},getItemsAndKeys:function(){var e=this.MdSteppers.items;return{items:e,keys:Object.keys(e)}},getStepperNumber:function(e){return Object.keys(this.MdSteppers.items).indexOf(e)+1},isStepperDone:function(e){return this.MdSteppers.items[e].done},isPreviousStepperDone:function(e){var t=this.MdSteppers.items,n=Object.keys(t)[this.getStepperNumber(e)-2];return!n||t[n].done},isStepperEditable:function(e){return this.MdSteppers.items[e].editable},setStepperAsDone:function(e){this.MdSteppers.items[e].done=!0},setPreviousStepperAsDone:function(e){var t=this.getStepperNumber(this.MdSteppers.activeStep);this.getStepperNumber(e)>t&&this.setStepperAsDone(this.MdSteppers.activeStep)},setActiveStep:function(e){if(this.mdLinear&&!this.isPreviousStepperDone(e))return!1;e===this.MdSteppers.activeStep||!this.isStepperEditable(e)&&this.isStepperDone(e)||(this.setPreviousStepperAsDone(e),this.MdSteppers.activeStep=e,this.$emit("md-changed",e),this.$emit("update:mdActiveStep",e),this.MdSteppers.items[e].error=null)},setActiveButtonEl:function(){this.activeButtonEl=this.$el.querySelector(".md-stepper-header.md-button.md-active")},setActiveStepByIndex:function(e){var t=this.getItemsAndKeys().keys;this.hasActiveStep()||(this.MdSteppers.activeStep=t[e])},setupObservers:function(){var e=this.$el.querySelector(".md-steppers-wrapper");"ResizeObserver"in window?(this.resizeObserver=new window.ResizeObserver(this.calculateStepperPos),this.resizeObserver.observe(this.$el)):window.addEventListener("resize",this.calculateStepperPos),e&&(this.resizeObserver=(0,a.default)(this.$el.querySelector(".md-steppers-wrapper"),{childList:!0,characterData:!0,subtree:!0},this.calculateStepperPos))},calculateStepperPos:function(){if(!this.mdVertical){var e=this.$el.querySelector(".md-stepper:nth-child("+(this.activeStepIndex+1)+")");this.contentStyles={height:e.offsetHeight+"px"}}},onActiveStepIndex:function(){var e,t=this.getItemsAndKeys(),n=(t.items,t.keys);if(this.hasActiveStep()||this.activeStepIndex)for(this.MdSteppers.activeStep=n[this.activeStepIndex],e=0;e<this.activeStepIndex;e++)this.setStepperAsDone(n[e]);else this.MdSteppers.activeStep=n[0]}},created:function(){this.calculateStepperPos=(0,c.default)(this.calculateStepperPos,300),this.MdSteppers.activeStep=this.mdActiveStep,this.MdSteppers.isLinear=this.mdLinear,this.MdSteppers.isVertical=this.mdVertical},mounted:function(){var e=this;this.$nextTick().then((function(){return e.mdSyncRoute?e.onActiveStepIndex():e.setActiveStepByIndex(0),e.$nextTick()})).then((function(){e.setActiveButtonEl(),e.calculateStepperPos(),window.setTimeout((function(){e.noTransition=!1,e.setupObservers()}),100)}))},beforeDestroy:function(){"ResizeObserver"in window||window.removeEventListener("resize",this.calculateStepperPos)}})},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(206),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(444),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(438)),o=r(n(440)),a=r(n(442)),t.default={name:"MdStepperHeader",components:{MdWarningIcon:i.default,MdCheckIcon:o.default,MdEditIcon:a.default},props:{index:{type:String,required:!0}},inject:["MdSteppers"],computed:{data:function(){return this.MdSteppers.items[this.index]},shouldDisable:function(){var e=this.data,t=this.index,n=this.MdSteppers;return!(!e.done||e.editable)||n.isLinear&&!n.isPreviousStepperDone(t)},classes:function(){return{"md-active":!this.MdSteppers.syncRoute&&this.index===this.MdSteppers.activeStep,"md-error":this.data.error,"md-done":this.data.done}}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdWarningIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdCheckIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdEditIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(11),a=r(o),s=r(n(28)),c=r(n(205)),t.default={name:"MdStep",components:{MdStepHeader:c.default},mixins:[s.default],props:{id:{type:String,default:function(){return"md-stepper-"+(0,a.default)()}},href:[String,Number],mdLabel:String,mdDescription:String,mdError:String,mdDone:Boolean,mdEditable:{type:Boolean,default:!0}},inject:["MdSteppers"],watch:{$props:{deep:!0,handler:function(){this.setStepperData()}}},methods:{getPropValues:function(){var e=this,t=Object.keys(this.$options.props),n=["id","mdLabel","mdDescription","mdError","mdEditable"],r={};return t.forEach((function(t){n.includes(t)||(e[t]?r[t]=e[t]:e.$attrs.hasOwnProperty(t)&&(r[t]=!t||e.$attrs[t]))})),r},setStepperData:function(){this.$set(this.MdSteppers.items,this.id,{label:this.mdLabel,description:this.mdDescription,error:this.mdError,done:this.mdDone,editable:this.mdEditable,props:this.getPropValues(),events:this.$listeners})},setupWatchers:function(){var e=this,t=function(t){if(e.MdSteppers.items[e.id])return e.MdSteppers.items[e.id][t]};this.$watch((function(){return t("error")}),(function(){return e.$emit("update:mdError",t("error"))})),this.$watch((function(){return t("done")}),(function(){return e.$emit("update:mdDone",t("done"))}))}},created:function(){this.setStepperData(),this.setupWatchers()},beforeDestroy:function(){this.$delete(this.MdSteppers.items,this.id)},render:function(e){var t={staticClass:"md-stepper",attrs:i({},this.$attrs,{id:this.id}),on:this.$listeners};return this.href?this.buttonProps=this.$options.props:this.$router&&this.to&&(this.$options.props=MdRouterLinkProps(this,this.$options.props),t.props=this.$props),e("div",t,this.$slots.default)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdSubheader",computed:{insideList:function(){return"md-list"===this.$parent.$options._componentTag}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(102)),a=n(11),s=r(a),t.default=new i.default({name:"MdSwitch",mixins:[o.default],props:{id:{type:String,default:function(){return"md-switch-"+(0,s.default)()}}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(10),a=r(o),s=r(n(461)),c=n(11),l=r(c),u=r(n(8)),d=r(n(462)),f=r(n(470)),h=r(n(220)),p=r(n(477)),m=r(n(222)),v=n(61),g=r(v),b=function(e,t){var n,r,i=e,o=!0,a=!1,s=void 0;try{for(n=t.split(".")[Symbol.iterator]();!(o=(r=n.next()).done);o=!0)i=i[r.value]}catch(e){a=!0,s=e}finally{try{!o&&n.return&&n.return()}finally{if(a)throw s}}return i},t.default={name:"MdTable",components:{MdTagSwitcher:s.default,MdTableAlternateHeader:f.default,MdTableThead:d.default,MdTableRow:h.default,MdTableRowGhost:p.default,MdTableCellSelection:m.default},props:{value:[Array,Object],mdModelId:{type:String,default:"id"},mdCard:Boolean,mdFixedHeader:Boolean,mdHeight:{type:[Number,String],default:400},mdSort:String,mdSortOrder:i({type:String,default:"asc"},(0,u.default)("md-sort-order",["asc","desc"])),mdSortFn:{type:Function,default:function(e){var t=this;return e.sort((function(e,n){var r=t.MdTable.sort,i=b(e,r),o=b(n,r),a="asc"===t.MdTable.sortOrder;return i?o?"number"==typeof i?a?i-o:o-i:a?i.localeCompare(o):o.localeCompare(i):-1:1}))}},mdSelectedValue:{type:[Array,Object]}},data:function(){return{windowResizeObserver:null,fixedHeaderTableWidth:0,fixedHeaderPadding:0,hasContentScroll:!1,MdTable:{items:{},sort:null,sortOrder:null,singleSelection:null,selectedItems:[],selectable:[],fixedHeader:null,contentPadding:null,contentEl:null,hasValue:this.hasValue,emitEvent:this.emitEvent,sortTable:this.sortTable,manageItemSelection:this.manageItemSelection,getModel:this.getModel,getModelItem:this.getModelItem,selectingMode:null},itemsUuidMap:new WeakMap}},computed:{contentTag:function(){return this.mdCard?"md-card":"md-content"},headerCount:function(){return Object.keys(this.MdTable.items).length},selectedCount:function(){return this.MdTable.selectedItems.length},headerStyles:function(){if(this.mdFixedHeader)return"padding-right: "+this.fixedHeaderPadding+"px"},hasValue:function(){return this.value&&0!==this.value.length},headerClasses:function(){if(this.mdFixedHeader&&this.hasContentScroll||!this.hasValue)return"md-table-fixed-header-active"},contentStyles:function(){if(this.mdFixedHeader){var e="number"==typeof this.mdHeight?this.mdHeight+"px":this.mdHeight;return"height: "+e+";max-height: "+e}},contentClasses:function(){if(this.mdFixedHeader&&0===this.value.length)return"md-table-empty"},fixedHeaderTableStyles:function(){return{width:this.fixedHeaderTableWidth+"px"}}},provide:function(){return{MdTable:this.MdTable}},watch:{mdSort:{immediate:!0,handler:function(){this.MdTable.sort=this.mdSort}},mdSortOrder:{immediate:!0,handler:function(){this.MdTable.sortOrder=this.mdSortOrder}},mdFixedHeader:{immediate:!0,handler:function(){this.MdTable.fixedHeader=this.mdFixedHeader}},hasValue:{immediate:!0,handler:function(){this.MdTable.hasValue=this.hasValue}},"MdTable.selectedItems":function(e,t){var n=this;(function(){var r=n.isEmpty(e),i=n.isEmpty(t),o=r&&i;return!(o||!o&&e.length===t.length&&e.every((function(e,n){return e==t[n]})))})()&&this.select(e)},"MdTable.singleSelection":function(e,t){e!=t&&this.select(e)},mdSelectedValue:function(){this.syncSelectedValue()},value:function(){this.syncSelectedValue(),this.setWidth()}},methods:{isEmpty:function(e){return!e||0===e.length},emitEvent:function(e,t){this.$emit(e,t)},getRowId:function(e,t){var n=e[t];return n||((n=this.itemsUuidMap.get(e))||(n="md-row-"+(0,l.default)(),this.itemsUuidMap.set(e,n)),n)},setScroll:function(e){var t=this;(0,a.default)((function(){t.mdFixedHeader&&(t.$refs.fixedHeaderContainer.scrollLeft=e.target.scrollLeft),t.hasContentScroll=e.target.scrollTop>0}))},setHeaderScroll:function(e){var t=this;(0,a.default)((function(){t.MdTable.contentEl.scrollLeft=e.target.scrollLeft}))},getContentEl:function(){return this.$el.querySelector(".md-table-content")},setContentEl:function(){this.MdTable.contentEl=this.getContentEl()},setHeaderPadding:function(){var e,t;this.setContentEl(),t=(e=this.MdTable.contentEl).childNodes[0],this.fixedHeaderPadding=e.offsetWidth-t.offsetWidth},getModel:function(){return this.value},getModelItem:function(e){return this.value[e]},manageItemSelection:function(e){this.MdTable.selectedItems.includes(e)?this.MdTable.selectedItems=this.MdTable.selectedItems.filter((function(t){return t!==e})):this.MdTable.selectedItems=this.MdTable.selectedItems.concat([e])},sortTable:function(){Array.isArray(this.value)&&this.$emit("input",this.mdSortFn(this.value))},select:function(e){this.$emit("update:mdSelectedValue",e),this.$emit("md-selected",e)},syncSelectedValue:function(){var e=this;this.$nextTick().then((function(){"single"===e.MdTable.selectingMode?e.MdTable.singleSelection=e.mdSelectedValue:"multiple"===e.MdTable.selectingMode&&(e.MdTable.selectedItems=e.mdSelectedValue||[])}))},setWidth:function(){this.mdFixedHeader&&(this.fixedHeaderTableWidth=this.$refs.contentTable.offsetWidth)}},created:function(){this.mdSort&&this.sortTable(),this.syncSelectedValue()},mounted:function(){this.setContentEl(),this.$nextTick().then(this.setWidth),this.mdFixedHeader&&(this.setHeaderPadding(),this.windowResizeObserver=new g.default(window,this.setWidth))},beforeDestroy:function(){this.windowResizeObserver&&this.windowResizeObserver.destroy()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e};t.default={functional:!0,props:{mdTag:{type:String,default:"div"}},render:function(e,t){var n=t.props,i=t.children,o=t.data,a=t.listeners;return e(n.mdTag,r({},o,{on:a}),i)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(101)),o=r(n(467)),t.default={name:"MdTableThead",inject:["MdTable"],components:{MdTableHead:i.default,MdTableHeadSelection:o.default}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(464)),o=n(61),a=r(o),t.default={name:"MdTableHead",components:{MdUpwardIcon:i.default},props:{mdNumeric:Boolean,numeric:Boolean,id:[String,Number],label:String,tooltip:String,sortBy:String},inject:["MdTable"],data:function(){return{width:null,windowResizeObserver:null}},computed:{hasSort:function(){return this.MdTable.sort&&this.sortBy},isSorted:function(){if(this.MdTable.sort)return this.MdTable.sort===this.sortBy},isDescSorted:function(){return this.isSorted&&"desc"===this.MdTable.sortOrder},isAscSorted:function(){return this.isSorted&&"asc"===this.MdTable.sortOrder},headStyles:function(){return{width:this.width+"px"}},headClasses:function(){return{"md-numeric":this.numeric||this.mdNumeric,"md-sortable":this.hasSort,"md-sorted":this.isSorted,"md-sorted-desc":this.isDescSorted}}},methods:{changeSort:function(){this.hasSort&&(this.isAscSorted?this.MdTable.sortOrder="desc":this.MdTable.sortOrder="asc",this.MdTable.sort=this.sortBy,this.MdTable.emitEvent("md-sorted",this.MdTable.sort),this.MdTable.emitEvent("update:mdSort",this.MdTable.sort),this.MdTable.emitEvent("update:mdSortOrder",this.MdTable.sortOrder),this.MdTable.sortTable())},getChildNodesBySelector:function(e,t){return Array.from(e.childNodes).filter((function(e){var n=e.classList;return n&&n.contains(t)}))},getNodeIndex:function(e,t){return[].indexOf.call(e,t)},setWidth:function(){var e,t,n;this.MdTable.fixedHeader&&(e=this.getChildNodesBySelector(this.$el.parentNode,"md-table-head"),t=this.MdTable.contentEl.querySelectorAll("tr:first-child .md-table-cell"),n=this.getNodeIndex(e,this.$el),this.width=t[n].offsetWidth)}},updated:function(){this.$nextTick().then(this.setWidth)},mounted:function(){this.$nextTick().then(this.setWidth),this.MdTable.fixedHeader&&(this.windowResizeObserver=new a.default(window,this.setWidth))},beforeDestroy:function(){this.windowResizeObserver&&this.windowResizeObserver.destroy()}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdUpwardIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(101)),t.default={name:"MdTableHeadSelection",components:{MdTableHead:r.default},inject:["MdTable"],computed:{selectableCount:function(){return Object.keys(this.selectable).length},isDisabled:function(){return!this.selectableCount},selectable:function(){return this.MdTable.selectable},selectedItems:function(){return this.MdTable.selectedItems},allSelected:function(){var e=this;return 0!==this.selectableCount&&this.selectable.every((function(t){return e.selectedItems.includes(t)}))}},methods:{onChange:function(e){var t=this;this.MdTable.selectedItems=e?this.selectedItems.concat(this.selectable.filter((function(e){return!t.selectedItems.includes(e)}))):this.selectedItems.filter((function(e){return!t.selectable.includes(e)}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTableAlternateHeader"}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(221),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(476),s=function(e){n(473)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(8)),a=r(n(222)),t.default={name:"MdTableRow",components:{MdTableCellSelection:a.default},props:{mdIndex:[Number,String],mdId:[Number,String],mdSelectable:i({type:[String]},(0,o.default)("md-selectable",["multiple","single"])),mdDisabled:Boolean,mdAutoSelect:Boolean,mdItem:[Array,Object]},inject:["MdTable"],data:function(){return{index:null}},computed:{selectableCount:function(){return this.MdTable.selectable.length},isMultipleSelected:function(){return this.MdTable.selectedItems.includes(this.mdItem)},isSingleSelected:function(){return this.MdTable.singleSelection===this.mdItem},hasMultipleSelection:function(){return this.MdTable.hasValue&&"multiple"===this.mdSelectable},hasSingleSelection:function(){return this.MdTable.hasValue&&"single"===this.mdSelectable},rowClasses:function(){if(this.MdTable.hasValue)return{"md-has-selection":!this.mdDisabled&&(this.mdAutoSelect||this.hasSingleSelection),"md-selected":this.isMultipleSelected,"md-selected-single":this.isSingleSelected}},isInSelectedItems:function(){return this.MdTable.selectedItems.includes(this.mdItem)}},watch:{mdDisabled:function(){this.mdDisabled?this.removeSelectableItem():this.addSelectableItem()},mdSelectable:function(){this.MdTable.selectingMode=this.mdSelectable},mdItem:function(e,t){this.removeSelectableItem(t),this.$nextTick(this.addSelectableItem)}},methods:{onClick:function(){this.MdTable.hasValue&&!this.mdDisabled&&(this.hasMultipleSelection?this.selectRowIfMultiple():this.hasSingleSelection&&this.selectRowIfSingle())},toggleSelection:function(){this.MdTable.manageItemSelection(this.mdItem)},addSelection:function(){this.isMultipleSelected||(this.MdTable.selectedItems=this.MdTable.selectedItems.concat([this.mdItem]))},removeSelection:function(){var e=this;this.isMultipleSelected&&(this.MdTable.selectedItems=this.MdTable.selectedItems.filter((function(t){return t!==e.mdItem})))},selectRowIfSingle:function(){this.MdTable.singleSelection===this.mdItem?this.MdTable.singleSelection=null:this.MdTable.singleSelection=this.mdItem},selectRowIfMultiple:function(){this.mdAutoSelect&&this.toggleSelection()},addSelectableItem:function(){return!(!this.hasMultipleSelection||this.mdDisabled)&&!this.MdTable.selectable.includes(this.mdItem)&&void(this.MdTable.selectable=this.MdTable.selectable.concat([this.mdItem]))},removeSelectableItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mdItem;"multiple"===this.mdSelectable&&(this.MdTable.selectable=this.MdTable.selectable.filter((function(t){return t!==e})))}},created:function(){var e=this;this.$nextTick((function(){e.addSelectableItem(),e.MdTable.selectingMode=e.mdSelectable}))},beforeDestroy:function(){this.removeSelectableItem()}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(223),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(475),s=function(e){n(474)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTableCellSelection",props:{value:Boolean,mdRowId:[Number,String],mdSelectable:Boolean,mdDisabled:Boolean},inject:["MdTable"],data:function(){return{isSelected:!1}},watch:{value:{immediate:!0,handler:function(e){this.isSelected=e}}},methods:{onChange:function(){this.$emit("input",this.isSelected)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTableRowGhost",props:{mdIndex:[String,Number],mdId:[String,Number],mdItem:[Array,Object]},render:function(){return this.$slots.default[0].componentOptions.propsData.mdIndex=this.mdIndex,this.$slots.default[0].componentOptions.propsData.mdId=this.mdId,this.$slots.default[0].componentOptions.propsData.mdItem=this.mdItem,this.$slots.default[0]}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(111)),t.default={name:"MdTableToolbar",components:{MdToolbar:r.default},inject:["MdTable"]}},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-toolbar",class:[e.$mdActiveTheme,"md-elevation-"+e.mdElevation]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i;Object.defineProperty(t,"__esModule",{value:!0}),r(n(105)),i=r(n(97)),t.default={name:"MdTableEmptyState",props:i.default,inject:["MdTable"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTableCell",props:{mdId:[String,Number],mdLabel:String,mdNumeric:Boolean,mdTooltip:String,mdSortBy:String},inject:["MdTable"],data:function(){return{index:null,parentNode:null}},computed:{cellClasses:function(){return{"md-numeric":this.mdNumeric}}},watch:{mdSortBy:function(){this.setCellData()},mdNumeric:function(){this.setCellData()},mdLabel:function(){this.setCellData()},mdTooltip:function(){this.setCellData()}},methods:{setCellData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;this.$set(this.MdTable.items,e.index,{id:e.mdId,label:e.mdLabel,numeric:e.mdNumeric,tooltip:e.mdTooltip,sortBy:e.mdSortBy})},updateAllCellData:function(){var e=this;this.MdTable.items={},Array.from(this.parentNode.childNodes).filter((function(e){var t=e.tagName,n=e.classList,r=n&&n.contains("md-table-cell-selection");return t&&"td"===t.toLowerCase()&&!r})).forEach((function(t,n){var r=t.__vue__;r.index=n,e.setCellData(r)}))}},mounted:function(){this.parentNode=this.$el.parentNode,this.updateAllCellData()},destroyed:function(){if(null!==this.$el.parentNode)return!1;this.updateAllCellData()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTablePagination",inject:["MdTable"],props:{mdPageSize:{type:[String,Number],default:10},mdPageOptions:{type:Array,default:function(){return[10,25,50,100]}},mdPage:{type:Number,default:1},mdTotal:{type:[String,Number],default:"Many"},mdLabel:{type:String,default:"Rows per page:"},mdSeparator:{type:String,default:"of"}},data:function(){return{currentPageSize:0}},computed:{currentItemCount:function(){return(this.mdPage-1)*this.mdPageSize+1},currentPageCount:function(){return this.mdPage*this.mdPageSize}},watch:{mdPageSize:{immediate:!0,handler:function(e){this.currentPageSize=this.pageSize}}},methods:{setPageSize:function(){this.$emit("update:mdPageSize",this.currentPageSize)},goToPrevious:function(){},goToNext:function(){}},created:function(){this.currentPageSize=this.mdPageSize}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s,c,l,u,d,f,h,p,m,v;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=n(10),s=r(a),c=r(n(1)),l=r(n(43)),u=r(n(8)),d=n(48),f=r(d),h=n(110),p=r(h),m=r(n(103)),v=r(n(104)),t.default=new c.default({name:"MdTabs",mixins:[l.default,v.default],components:{MdContent:m.default},props:{mdAlignment:o({type:String,default:"left"},(0,u.default)("md-alignment",["left","right","centered","fixed"])),mdElevation:{type:[Number,String],default:0},mdSyncRoute:Boolean,mdDynamicHeight:Boolean,mdActiveTab:[String,Number]},data:function(){return{resizeObserver:null,activeTab:0,activeTabIndex:0,indicatorStyles:{},indicatorClass:null,noTransition:!0,containerStyles:{},contentStyles:{height:"0px"},hasContent:!1,MdTabs:{items:{}},activeButtonEl:null}},provide:function(){return{MdTabs:this.MdTabs}},computed:{tabsClasses:function(){var e;return i(e={},"md-alignment-"+this.mdAlignment,!0),i(e,"md-no-transition",this.noTransition),i(e,"md-dynamic-height",this.mdDynamicHeight),e},navigationClasses:function(){return"md-elevation-"+this.mdElevation},mdSwipeElement:function(){return this.$refs.tabsContent.$el}},watch:{MdTabs:{deep:!0,handler:function(){this.setHasContent()}},activeTab:function(e){var t=this;this.$emit("md-changed",e),this.$nextTick().then((function(){t.setIndicatorStyles(),t.setActiveButtonEl()}))},mdActiveTab:function(e){this.activeTab=e,this.$emit("md-changed",e)},activeButtonEl:function(e){this.activeTabIndex=e?[].indexOf.call(e.parentNode.childNodes,e):-1},activeTabIndex:function(e){this.setIndicatorStyles(),this.calculateTabPos()},$route:function(){this.$nextTick(this.setActiveButtonEl)},swiped:function(e){var t=this.getItemsAndKeys().keys.length||0;this.activeTabIndex<t&&"right"===e?this.setSwipeActiveTabByIndex(this.activeTabIndex+1):this.activeTabIndex>0&&"left"===e&&this.setSwipeActiveTabByIndex(this.activeTabIndex-1)}},methods:{hasActiveTab:function(){return this.activeTab||this.mdActiveTab},getItemsAndKeys:function(){var e=this.MdTabs.items;return{items:e,keys:Object.keys(e)}},setActiveTab:function(e){this.mdSyncRoute||(this.activeTab=e)},setActiveButtonEl:function(){this.activeButtonEl=this.$refs.navigation.querySelector(".md-tab-nav-button.md-active")},setSwipeActiveTabByIndex:function(e){var t=this.getItemsAndKeys().keys;t&&(this.activeTab=t[e])},setActiveTabByIndex:function(e){var t=this.getItemsAndKeys().keys;this.hasActiveTab()||(this.activeTab=t[e])},setHasContent:function(){var e=this.getItemsAndKeys(),t=e.items,n=e.keys;this.hasContent=n.some((function(e){return t[e].hasContent}))},setIndicatorStyles:function(){var e=this;(0,s.default)((function(){e.$nextTick().then((function(){var t,n,r;e.activeButtonEl&&e.$refs.indicator?(t=e.activeButtonEl.offsetWidth,n=e.activeButtonEl.offsetLeft,r=e.$refs.indicator.offsetLeft,e.indicatorClass=r<n?"md-tabs-indicator-right":"md-tabs-indicator-left",e.indicatorStyles={left:n+"px",right:"calc(100% - "+(t+n)+"px)"}):e.indicatorStyles={left:"100%",right:"100%"}}))}))},calculateTabPos:function(){if(this.hasContent){var e=this.$el.querySelector(".md-tab:nth-child("+(this.activeTabIndex+1)+")");this.contentStyles={height:e?e.offsetHeight+"px":0},this.containerStyles={transform:"translate3D("+100*-this.activeTabIndex+"%, 0, 0)"}}},callResizeFunctions:function(){this.setIndicatorStyles(),this.calculateTabPos()},setupObservers:function(){var e=this;this.resizeObserver=(0,f.default)(this.$el.querySelector(".md-tabs-content"),{childList:!0,characterData:!0,subtree:!0},(function(){e.callResizeFunctions()})),window.addEventListener("resize",this.callResizeFunctions)}},created:function(){this.setIndicatorStyles=(0,p.default)(this.setIndicatorStyles,300),this.setHasContent(),this.activeTab=this.mdActiveTab},mounted:function(){var e=this;this.setupObservers(),this.$nextTick().then((function(){return e.mdSyncRoute||e.setActiveTabByIndex(0),e.$nextTick()})).then((function(){e.setActiveButtonEl(),e.calculateTabPos(),window.setTimeout((function(){e.noTransition=!1,e.setupObservers()}),100)})),this.$refs.navigation.addEventListener("transitionend",this.setIndicatorStyles)},beforeDestroy:function(){this.resizeObserver&&this.resizeObserver.disconnect(),window.removeEventListener("resize",this.callResizeFunctions),this.$refs.navigation.removeEventListener("transitionend",this.setIndicatorStyles)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(11),a=r(o),s=r(n(28)),c=n(48),l=r(c),u=n(29),d=r(u),t.default={name:"MdTab",mixins:[s.default],props:{id:{type:String,default:function(){return"md-tab-"+(0,a.default)()}},href:[String,Number],mdDisabled:Boolean,mdLabel:[String,Number],mdIcon:String,mdTemplateData:{type:Object,default:function(){return{}}}},inject:["MdTabs"],data:function(){return{observer:null}},watch:{$props:{deep:!0,handler:function(){this.setTabData()}},$attrs:{deep:!0,handler:function(){this.setTabData()}}},methods:{setTabContent:function(){this.$set(this.MdTabs.items[this.id],"hasContent",!!this.$slots.default)},setupObserver:function(){this.observer=(0,l.default)(this.$el,{childList:!0},this.setTabContent)},setTabData:function(){this.$set(this.MdTabs.items,this.id,{hasContent:!!this.$slots.default,label:this.mdLabel,icon:this.mdIcon,disabled:this.mdDisabled,data:this.mdTemplateData,props:this.getPropValues(),events:this.$listeners})},getPropValues:function(){var e=this,t=Object.keys(this.$options.props),n=["id","mdLabel","mdDisabled","mdTemplateData"],r={};return t.forEach((function(t){n.includes(t)||(e[t]?r[t]=e[t]:e.$attrs.hasOwnProperty(t)&&(r[t]=!t||e.$attrs[t]))})),r}},mounted:function(){this.setupObserver(),this.setTabData()},beforeDestroy:function(){this.observer&&this.observer.disconnect(),this.$delete(this.MdTabs.items,this.id)},render:function(e){var t={staticClass:"md-tab",attrs:i({},this.$attrs,{id:this.id}),on:this.$listeners};return this.href?this.buttonProps=this.$options.props:this.$router&&this.to&&(this.$options.props=(0,d.default)(this,this.$options.props),t.props=this.$props),e("div",t,this.$slots.default)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),s=r(n(56)),t.default=new o.default({name:"MdTooltip",components:{MdPopover:s.default},props:{mdActive:Boolean,mdDelay:{type:[String,Number],default:0},mdDirection:i({type:String,default:"bottom"},(0,a.default)("md-direction",["top","right","bottom","left"]))},data:function(){return{shouldRender:!1,targetEl:null}},computed:{tooltipClasses:function(){return"md-tooltip-"+this.mdDirection},tooltipStyles:function(){return"transition-delay: "+this.mdDelay+"ms"},popperSettings:function(){return{placement:this.mdDirection,modifiers:{offset:{offset:"0, 16"}}}}},watch:{mdActive:function(){this.shouldRender=this.mdActive},shouldRender:function(e){this.$emit("update:mdActive",e)}},methods:{show:function(){this.shouldRender=!0},hide:function(){this.shouldRender=!1}},mounted:function(){var e=this;this.$nextTick().then((function(){e.shouldRender=e.mdActive,e.targetEl=e._vnode.componentInstance.originalParentEl,e.targetEl&&(e.targetEl.addEventListener("mouseenter",e.show,!1),e.targetEl.addEventListener("mouseleave",e.hide,!1))}))},beforeDestroy:function(){this.targetEl&&(this.targetEl.removeEventListener("mouseenter",this.show),this.targetEl.removeEventListener("mouseleave",this.hide))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(235),s=r(a),c=n(245),l=r(c),u=n(248),d=r(u),f=n(251),h=r(f),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(112),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(236)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(113),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(239),s=function(e){n(238)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-app md-app-side-drawer md-layout-row",class:[e.appClasses,e.$mdActiveTheme]},[e._t("md-app-drawer-left"),e._v(" "),e._t("md-app-drawer-right-previous"),e._v(" "),n("main",{staticClass:"md-app-container md-flex md-layout-column",class:[e.$mdActiveTheme,e.scrollerClasses],style:e.contentStyles,on:{"&scroll":function(t){return e.handleScroll(t)}}},[e._t("md-app-toolbar"),e._v(" "),n("div",{staticClass:"md-app-scroller md-layout-column md-flex",class:[e.$mdActiveTheme,e.scrollerClasses],style:e.containerStyles,on:{"&scroll":function(t){return e.handleScroll(t)}}},[e._t("md-app-content")],2)],2),e._v(" "),e._t("md-app-drawer-right")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(115),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(242),s=function(e){n(241)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-app md-app-internal-drawer md-layout-column",class:[e.appClasses,e.$mdActiveTheme]},[e._t("md-app-toolbar"),e._v(" "),n("main",{staticClass:"md-app-container md-flex md-layout-row",class:[e.$mdActiveTheme,e.scrollerClasses],style:[e.containerStyles,e.contentStyles]},[e._t("md-app-drawer-left"),e._v(" "),e._t("md-app-drawer-right-previous"),e._v(" "),n("div",{staticClass:"md-app-scroller md-layout-column md-flex",class:[e.$mdActiveTheme,e.scrollerClasses]},[e._t("md-app-content")],2),e._v(" "),e._t("md-app-drawer-right")],2)],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(116),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(244),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"md-drawer md-right-previous",class:e.drawerClasses})},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(117),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(247),s=function(e){n(246)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-toolbar",e._g(e._b({staticClass:"md-app-toolbar",class:e.toolbarClasses,style:e.toolbarStyles},"md-toolbar",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(118),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(250),s=function(e){n(249)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.showCard?n("md-card",e._g(e._b({staticClass:"md-app-content md-flex"},"md-card",e.$attrs,!1),e.$listeners),[e._t("default")],2):n("md-content",e._g(e._b({staticClass:"md-app-content md-flex"},"md-content",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(119),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(252),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-drawer",e._g(e._b({ref:"drawer",staticClass:"md-app-drawer",attrs:{"md-active":e.mdActive&&e.initialized,"md-right":e.mdRight}},"md-drawer",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(254),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(120),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(259),s=function(e){n(255)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(121),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(258),s=function(e){n(257)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-badge",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hasDefaultSlot?n("div",{staticClass:"md-badge-content"},[e._t("default"),e._v(" "),n("md-badge-standalone",{class:e.badgeClasses,style:e.styles},[n("div",[e._v("\n "+e._s(e.mdContent)+"\n ")])])],2):n("md-badge-standalone",{class:e.badgeClasses,style:e.styles},[e._v("\n "+e._s(e.mdContent)+"\n")])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(261),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(122),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(265),s=function(e){n(262)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o=t.length,a=e.length;if(a>o)return!1;if(a===o)return e===t;e:for(n=0,r=0;n<a;n++){for(i=e.charCodeAt(n);r<o;)if(t.charCodeAt(r++)===i)continue e;return!1}return!0}},function(e,t){e.exports=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-field",{staticClass:"md-autocomplete",class:e.fieldClasses,attrs:{"md-clearable":"","md-inline":e.isBoxLayout}},[n("md-menu",{attrs:{"md-direction":"bottom-start","md-dense":e.mdDense,"md-align-trigger":"","md-full-width":"","md-active":e.showMenu},on:{"update:mdActive":function(t){e.showMenu=t},"update:md-active":function(t){e.showMenu=t}}},[n("md-input",e._b({attrs:{id:e.mdInputId,name:e.mdInputName,maxlength:e.mdInputMaxlength,placeholder:e.mdInputPlaceholder},on:{focus:function(t){return t.stopPropagation(),e.openOnFocus(t)},blur:e.hideOptions,input:e.onInput,click:function(t){return t.stopPropagation(),t.preventDefault(),e.openOnFocus(t)}},model:{value:e.searchTerm,callback:function(t){e.searchTerm=t},expression:"searchTerm"}},"md-input",e.$attrs,!1)),e._v(" "),n("md-menu-content",{directives:[{name:"show",rawName:"v-show",value:e.hasScopedEmptySlot||e.hasFilteredItems,expression:"hasScopedEmptySlot || hasFilteredItems"}],class:e.contentClasses},[e.isPromisePending?n("div",{staticClass:"md-autocomplete-loading"},[n("md-progress-spinner",{attrs:{"md-diameter":40,"md-stroke":4,"md-mode":"indeterminate"}})],1):e._e(),e._v(" "),e.hasFilteredItems?n("div",{staticClass:"md-autocomplete-items"},e._l(e.getOptions(),(function(t,r){return n("md-menu-item",{key:r,on:{click:function(n){return e.selectItem(t,n)}}},[e.$scopedSlots["md-autocomplete-item"]?e._t("md-autocomplete-item",null,{item:t,term:e.searchTerm}):[e._v(e._s(t))]],2)})),1):e.hasScopedEmptySlot?n("md-menu-item",[n("div",{staticClass:"md-autocomplete-empty"},[e._t("md-autocomplete-empty",null,{term:e.searchTerm})],2)]):e._e()],1)],1),e._v(" "),e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(267),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(123),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(269),s=function(e){n(268)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-avatar",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(271),s=r(a),c=n(274),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(124),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(273),s=function(e){n(272)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-bottom-bar",class:[e.$mdActiveTheme,e.barClasses]},[n("md-ripple",{attrs:{"md-disabled":"fixed"===e.mdType,"md-active":e.MdBottomBar.mouseEvent}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(125),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(275),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-button",e._g(e._b({staticClass:"md-bottom-bar-item",class:e.itemClasses,attrs:{id:e.id,disabled:e.mdDisabled,"md-ripple":"fixed"===e.MdBottomBar.type},on:{click:e.setActiveItem}},"md-button",e.attrs,!1),e.$listeners),[e.$slots.default?e._t("default"):[e.isAssetIcon(e.mdIcon)?n("md-icon",{staticClass:"md-bottom-bar-icon",attrs:{"md-src":e.mdIcon}}):n("md-icon",{staticClass:"md-bottom-bar-icon"},[e._v(e._s(e.mdIcon))]),e._v(" "),n("span",{staticClass:"md-bottom-bar-label"},[e._v(e._s(e.mdLabel))])]],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(39),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_,C,A,x,S,M,E,T;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(278),s=r(a),c=n(281),l=r(c),u=n(284),d=r(u),f=n(287),h=r(f),p=n(289),m=r(p),v=n(292),g=r(v),b=n(295),y=r(b),k=n(298),w=r(k),_=n(301),C=r(_),A=n(304),x=r(A),S=n(306),M=r(S),E=n(309),T=r(E),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default),e.component(m.default.name,m.default),e.component(g.default.name,g.default),e.component(y.default.name,y.default),e.component(w.default.name,w.default),e.component(C.default.name,C.default),e.component(x.default.name,x.default),e.component(M.default.name,M.default),e.component(T.default.name,T.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(126),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(280),s=function(e){n(279)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card",class:[e.$mdActiveTheme,e.cardClasses]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(127),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(283),s=function(e){n(282)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-area",class:e.areaClasses},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(128),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(286),s=function(e){n(285)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-header"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(129),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(288),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-header-text"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(130),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(291),s=function(e){n(290)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-media",class:e.mediaClasses},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(131),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(294),s=function(e){n(293)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-media-actions"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(132),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(297),s=function(e){n(296)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-card-media-cover",class:e.coverClasses},[e._t("default"),e._v(" "),e.mdTextScrim?n("div",{ref:"backdrop",staticClass:"md-card-backdrop",style:e.coverStyles}):e._e()],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(133),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(300),s=function(e){n(299)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-content"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(134),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(303),s=function(e){n(302)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-expand"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(135),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(305)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(136),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(308),s=function(e){n(307)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-expand-content",style:e.contentStyles},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(137),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(311),s=function(e){n(310)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-actions",class:"md-alignment-"+e.mdAlignment},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(313),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(138),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(315),s=function(e){n(314)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-checkbox",class:[e.$mdActiveTheme,e.checkClasses]},[n("div",{staticClass:"md-checkbox-container",on:{click:function(t){return t.stopPropagation(),e.toggleCheck(t)}}},[n("md-ripple",{attrs:{"md-centered":"","md-active":e.rippleActive,"md-disabled":e.disabled},on:{"update:mdActive":function(t){e.rippleActive=t},"update:md-active":function(t){e.rippleActive=t}}},[n("input",e._b({attrs:{id:e.id,type:"checkbox"},domProps:{indeterminate:e.indeterminate}},"input",e.attrs,!1))])],1),e._v(" "),e.$slots.default?n("label",{staticClass:"md-checkbox-label",attrs:{for:e.id},on:{click:function(t){return t.preventDefault(),e.toggleCheck(t)}}},[e._t("default")],2):e._e()])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(317),s=r(a),c=n(320),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(139),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(319),s=function(e){n(318)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-field",{staticClass:"md-chips",class:[e.$mdActiveTheme,e.chipsClasses]},[e._t("default"),e._v(" "),e._l(e.value,(function(t,r){return n("md-chip",{key:t,attrs:{"md-deletable":!e.mdStatic,"md-clickable":!e.mdStatic,"md-duplicated":e.duplicatedChip===t},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.$emit("md-click",t,r)},"md-delete":function(n){return n.stopPropagation(),e.removeChip(t)}},nativeOn:{click:function(n){return e.$emit("md-click",t,r)}}},[e.$scopedSlots["md-chip"]?e._t("md-chip",[e._v(e._s(t))],{chip:t}):[e._v(e._s(t))]],2)})),e._v(" "),!e.mdStatic&&e.modelRespectLimit?n("md-input",{ref:"input",attrs:{type:e.mdInputType,id:e.id,placeholder:e.mdPlaceholder},on:{input:e.handleInput,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.insertChip(t)},function(t){return t.type.indexOf("key")||8===t.keyCode?e.handleBackRemove(t):null}]},model:{value:e.inputValue,callback:function(t){e.inputValue="string"==typeof t?t.trim():t},expression:"inputValue"}}):e._e()],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(140),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(322),s=function(e){n(321)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-chip",appear:""}},[n("div",e._g({staticClass:"md-chip",class:[e.$mdActiveTheme,e.chipClasses],attrs:{tabindex:"0"}},e.$listeners),[e.mdClickable||!e.mdRipple?n("md-ripple",{attrs:{"md-disabled":e.mdDisabled}},[e._t("default")],2):e._t("default"),e._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[e.mdDeletable?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-clear",attrs:{tabindex:"-1"},on:{click:function(t){return e.$emit("md-delete",t)}}},[n("md-clear-icon")],1):e._e()],1)],2)])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(103),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(325),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(141),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(351),s=function(e){n(326)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent)},function(e,t,n){"use strict";function r(e,t){for(var n=e<0?"-":"",r=""+Math.abs(e);r.length<t;)r="0"+r;return n+r}function i(e,t){var n=e>0?"-":"+",i=Math.abs(e),o=Math.floor(i/60),a=i%60;return 0===a?n+(o+""):n+(o+"")+(t||"")+r(a,2)}function o(e,t){return e%60==0?(e>0?"-":"+")+r(Math.abs(e)/60,2):a(e,t)}function a(e,t){var n=t||"",i=e>0?"-":"+",o=Math.abs(e);return i+r(Math.floor(o/60),2)+n+r(o%60,2)}function s(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function c(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function l(e){return e.match(E)[1].replace(T,"'")}var u,d,f,h,p,m,v,g,b,y,k,w,_,C,A,x,S,M,E,T;Object.defineProperty(t,"__esModule",{value:!0}),u=n(17),d=n(142),f=n(9),h=n(143),p=n(144),m={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?n+1+"":r(n+1,2)},d:function(e,t){return r(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return r(e.getUTCHours()%12||12,t.length)},H:function(e,t){return r(e.getUTCHours(),t.length)},m:function(e,t){return r(e.getUTCMinutes(),t.length)},s:function(e,t){return r(e.getUTCSeconds(),t.length)}},v=864e5,g=n(145),b=n(146),y=n(147),k=n(93),w={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){var r,i;return"yo"===t?(i=(r=e.getUTCFullYear())>0?r:1-r,n.ordinalNumber(i,{unit:"year"})):m.y(e,t)},Y:function(e,t,n,i){var o=Object(k.a)(e,i),a=o>0?o:1-o;return"YY"===t?r(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):r(a,t.length)},R:function(e,t){return r(Object(b.a)(e),t.length)},u:function(e,t){return r(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return i+"";case"QQ":return r(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return i+"";case"qq":return r(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return m.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return i+1+"";case"LL":return r(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var o=Object(y.a)(e,i);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):r(o,t.length)},I:function(e,t,n){var i=Object(g.a)(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):r(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):m.d(e,t)},D:function(e,t,n){var i=function(e){var t,n,r;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=(t=Object(f.a)(e)).getTime(),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),r=n-t.getTime(),Math.floor(r/v)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):r(i,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var o=e.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(t){case"e":return a+"";case"ee":return r(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var o=e.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(t){case"c":return a+"";case"cc":return r(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),o=0===i?7:i;switch(t){case"i":return o+"";case"ii":return r(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?w.noon:0===i?w.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?w.evening:i>=12?w.afternoon:i>=4?w.morning:w.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return m.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):m.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):r(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):r(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):m.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):m.s(e,t)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds();return r(Math.floor(i*Math.pow(10,n-3)),n)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return o(i);case"XXXX":case"XX":return a(i);case"XXXXX":case"XXX":default:return a(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return o(i);case"xxxx":case"xx":return a(i);case"xxxxx":case"xxx":default:return a(i,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+i(o,":");case"OOOO":default:return"GMT"+a(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+i(o,":");case"zzzz":default:return"GMT"+a(o,":")}},t:function(e,t,n,i){var o=i._originalDate||e;return r(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,i){return r((i._originalDate||e).getTime(),t.length)}},C={p:c,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return s(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",s(i,t)).replace("{{time}}",c(o,t))}},A=n(148),x=n(149),t.default=function(e,t,n){var r,i,o,a,s,c,m,v,g,b,y,k,w;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");if(r=t+"",s=null==(a=(o=(i=n||{}).locale||p.a).options&&o.options.firstWeekContainsDate)?1:Object(u.a)(a),!((c=null==i.firstWeekContainsDate?s:Object(u.a)(i.firstWeekContainsDate))>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");if(v=null==(m=o.options&&o.options.weekStartsOn)?0:Object(u.a)(m),!((g=null==i.weekStartsOn?v:Object(u.a)(i.weekStartsOn))>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");if(b=Object(f.a)(e),!Object(h.default)(b))throw new RangeError("Invalid time value");return y=Object(d.a)(b),k=Object(A.a)(b,y),w={firstWeekContainsDate:c,weekStartsOn:g,locale:o,_originalDate:b},r.match(M).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,C[t])(e,o.formatLong,w):e})).join("").match(S).map((function(e){var t,n;return"''"===e?"'":"'"===(t=e[0])?l(e):(n=_[t])?(!i.awareOfUnicodeTokens&&Object(x.a)(e)&&Object(x.b)(e),n(k,e,o.localize,w)):e})).join("")},S=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,E=/^'(.*?)'?$/,T=/''/g},function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function i(e,t,n){var r,i,o,a,s,c,l,u;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");if(a=null==(o=(i=(r=n||{}).locale)&&i.options&&i.options.weekStartsOn)?0:Object(m.a)(o),!((s=null==r.weekStartsOn?a:Object(m.a)(r.weekStartsOn))>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");return c=Object(g.a)(e),u=(((l=Object(m.a)(t))%7+7)%7<s?7:0)+l-c.getUTCDay(),c.setUTCDate(c.getUTCDate()+u),c}function o(e,t,n){var r,i=t.match(e);return i?(r=parseInt(i[0],10),{value:n?n(r):r,rest:t.slice(i[0].length)}):null}function a(e,t){var n,r,i,o,a=t.match(e);return a?"Z"===a[0]?{value:0,rest:t.slice(1)}:(n="+"===a[1]?1:-1,r=a[2]?parseInt(a[2],10):0,i=a[3]?parseInt(a[3],10):0,o=a[5]?parseInt(a[5],10):0,{value:n*(r*x+i*S+o*M),rest:t.slice(a[0].length)}):null}function s(e,t){return o(E.anyDigitsSigned,e,t)}function c(e,t,n){switch(e){case 1:return o(E.singleDigit,t,n);case 2:return o(E.twoDigits,t,n);case 3:return o(E.threeDigits,t,n);case 4:return o(E.fourDigits,t,n);default:return o(RegExp("^\\d{1,"+e+"}"),t,n)}}function l(e,t,n){switch(e){case 1:return o(E.singleDigitSigned,t,n);case 2:return o(E.twoDigitsSigned,t,n);case 3:return o(E.threeDigitsSigned,t,n);case 4:return o(E.fourDigitsSigned,t,n);default:return o(RegExp("^-?\\d{1,"+e+"}"),t,n)}}function u(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function d(e,t){var n,r,i=t>0,o=i?t:1-t;return o<=50?n=e||100:(r=o+50,n=e+100*Math.floor(r/100)-(e>=r%100?100:0)),i?n:1-n}function f(e){return e%400==0||e%4==0&&e%100!=0}function h(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function p(e){return e.match(R)[1].replace(L,"'")}var m,v,g,b,y,k,w,_,C,A,x,S,M,E,T,D,O,P,I,j,N,R,L,B;Object.defineProperty(t,"__esModule",{value:!0}),m=n(17),v=n(142),g=n(9),b=n(148),y=n(144),k=n(93),w=n(147),_=n(65),C=n(145),A=n(64),x=36e5,S=6e4,M=1e3,E={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},T={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/},D=[31,28,31,30,31,30,31,31,30,31,30,31],O=[31,29,31,30,31,30,31,31,30,31,30,31],P={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return e.setUTCFullYear(1===n?10:-9,0,1),e.setUTCHours(0,0,0,0),e}},y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return c(4,e,i);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return c(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i,o,a=Object(k.a)(e,r);return n.isTwoDigitYear?(i=d(n.year,a),e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e):(o=a>0?n.year:1-n.year,e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e)}},Y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return c(4,e,i);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return c(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i,o,a=e.getUTCFullYear();return n.isTwoDigitYear?(i=d(n.year,a),e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(_.a)(e,r)):(o=a>0?n.year:1-n.year,e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(_.a)(e,r))}},R:{priority:130,parse:function(e,t,n,r){return l("R"===t?4:t.length,e)},set:function(e,t,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Object(A.a)(i)}},u:{priority:130,parse:function(e,t,n,r){return l("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return c(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return c(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},M:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"M":return o(E.month,e,i);case"MM":return c(2,e,i);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},L:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"L":return o(E.month,e,i);case"LL":return c(2,e,i);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return o(E.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Object(_.a)(function(e,t,n){var r,i,o;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return r=Object(g.a)(e),i=Object(m.a)(t),o=Object(w.a)(r,n)-i,r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return o(E.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Object(A.a)(function(e,t){var n,r,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(g.a)(e),r=Object(m.a)(t),i=Object(C.a)(n)-r,n.setUTCDate(n.getUTCDate()-7*i),n}(e,n,r),r)}},d:{priority:90,parse:function(e,t,n,r){switch(t){case"d":return o(E.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return c(t.length,e)}},validate:function(e,t,n){var r=f(e.getUTCFullYear()),i=e.getUTCMonth();return r?t>=1&&t<=O[i]:t>=1&&t<=D[i]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}},D:{priority:90,parse:function(e,t,n,r){switch(t){case"D":case"DD":return o(E.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return c(t.length,e)}},validate:function(e,t,n){return f(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=i(e,n,r)).setUTCHours(0,0,0,0),e}},e:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return c(t.length,e,i);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=i(e,n,r)).setUTCHours(0,0,0,0),e}},c:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return c(t.length,e,i);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=i(e,n,r)).setUTCHours(0,0,0,0),e}},i:{priority:90,parse:function(e,t,n,r){var i=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return c(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:i})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return(e=function(e,t){var n,r,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return(n=Object(m.a)(t))%7==0&&(n-=7),i=((n%7+7)%7<1?7:0)+n-(r=Object(g.a)(e)).getUTCDay(),r.setUTCDate(r.getUTCDate()+i),r}(e,n,r)).setUTCHours(0,0,0,0),e}},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(u(n),0,0,0),e}},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(u(n),0,0,0),e}},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(u(n),0,0,0),e}},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return o(E.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):i||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return o(E.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e}},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return o(E.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return o(E.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e}},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return o(E.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e}},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return o(E.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e}},S:{priority:30,parse:function(e,t,n,r){return c(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e}},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return a(T.basicOptionalMinutes,e);case"XX":return a(T.basic,e);case"XXXX":return a(T.basicOptionalSeconds,e);case"XXXXX":return a(T.extendedOptionalSeconds,e);case"XXX":default:return a(T.extended,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)}},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return a(T.basicOptionalMinutes,e);case"xx":return a(T.basic,e);case"xxxx":return a(T.basicOptionalSeconds,e);case"xxxxx":return a(T.extendedOptionalSeconds,e);case"xxx":default:return a(T.extended,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)}},t:{priority:40,parse:function(e,t,n,r){return s(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]}},T:{priority:20,parse:function(e,t,n,r){return s(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]}}},I=n(149),t.default=function(e,t,n,i){var o,a,s,c,l,u,d,f,k,w,_,C,A,x,S,M,E,T,D,O,R,L,F,z;if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");if(o=e+"",a=t+"",!(c=(s=i||{}).locale||y.a).match)throw new RangeError("locale must contain match property");if(u=null==(l=c.options&&c.options.firstWeekContainsDate)?1:Object(m.a)(l),!((d=null==s.firstWeekContainsDate?u:Object(m.a)(s.firstWeekContainsDate))>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");if(k=null==(f=c.options&&c.options.weekStartsOn)?0:Object(m.a)(f),!((w=null==s.weekStartsOn?k:Object(m.a)(s.weekStartsOn))>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===a)return""===o?Object(g.a)(n):new Date(NaN);for(_={firstWeekContainsDate:d,weekStartsOn:w,locale:c},C=[{priority:j,set:h,index:0}],x=a.match(N),A=0;A<x.length;A++)if(S=x[A],!s.awareOfUnicodeTokens&&Object(I.a)(S)&&Object(I.b)(S),M=S[0],E=P[M]){if(!(T=E.parse(o,S,c.match,_)))return new Date(NaN);C.push({priority:E.priority,set:E.set,validate:E.validate,value:T.value,index:C.length}),o=T.rest}else{if("''"===S?S="'":"'"===M&&(S=p(S)),0!==o.indexOf(S))return new Date(NaN);o=o.slice(S.length)}if(o.length>0&&B.test(o))return new Date(NaN);if(D=C.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return C.filter((function(t){return t.priority===e})).reverse()})).map((function(e){return e[0]})),O=Object(g.a)(n),isNaN(O))return new Date(NaN);for(R=Object(b.a)(O,Object(v.a)(O)),L={},A=0;A<D.length;A++){if((F=D[A]).validate&&!F.validate(R,F.value,_))return new Date(NaN);(z=F.set(R,L,F.value,_))[0]?(R=z[0],r(L,z[1])):R=z}return R},j=10,N=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,R=/^'(.*?)'?$/,L=/''/g,B=/\S/},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(150),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(347),s=function(e){n(331)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e);return t.setDate(1),t.setHours(0,0,0,0),t};var r=n(9)},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(t);return Object(i.default)(e,-n)},r=n(17),i=n(151)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getDate()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getDay()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getMonth()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getFullYear()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(r.a)(e),i=Object(r.a)(t),n.getTime()===i.getTime()};var r=n(9)},function(e,t,n){"use strict";function r(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(i.a)(e);return t.setHours(0,0,0,0),t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(9);t.default=function(e,t){var n,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=r(e),i=r(t),n.getTime()===i.getTime()}},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,o;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(e),o=Object(r.a)(t),n.setDate(o),n},r=n(17),i=n(9)},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,a,s,c,l,u;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(e),a=Object(r.a)(t),s=n.getFullYear(),c=n.getDate(),(l=new Date(0)).setFullYear(s,a,15),l.setHours(0,0,0,0),u=Object(o.default)(l),n.setMonth(a,Math.min(c,u)),n},r=n(17),i=n(9),o=n(96)},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,o;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(e),o=Object(r.a)(t),isNaN(n)?new Date(NaN):(n.setFullYear(o),n)},r=n(17),i=n(9)},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(152),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(344),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}}),e._v(" "),n("path",{attrs:{d:"M0-.25h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(153),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(346),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}}),e._v(" "),n("path",{attrs:{d:"M0-.5h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-popover",{attrs:{"md-settings":e.popperSettings,"md-active":""}},[n("transition",{attrs:{name:"md-datepicker-dialog",appear:""},on:{enter:e.setContentStyles,"after-leave":e.resetDate}},[n("div",{staticClass:"md-datepicker-dialog",class:[e.$mdActiveTheme]},[n("div",{staticClass:"md-datepicker-header"},[n("span",{staticClass:"md-datepicker-year-select",class:{"md-selected":"year"===e.currentView},on:{click:function(t){e.currentView="year"}}},[e._v(e._s(e.selectedYear))]),e._v(" "),n("div",{staticClass:"md-datepicker-date-select",class:{"md-selected":"year"!==e.currentView},on:{click:function(t){e.currentView="day"}}},[n("strong",{staticClass:"md-datepicker-dayname"},[e._v(e._s(e.shortDayName)+", ")]),e._v(" "),n("strong",{staticClass:"md-datepicker-monthname"},[e._v(e._s(e.shortMonthName))]),e._v(" "),n("strong",{staticClass:"md-datepicker-day"},[e._v(e._s(e.currentDay))])])]),e._v(" "),n("div",{staticClass:"md-datepicker-body"},[n("transition",{attrs:{name:"md-datepicker-body-header"}},["day"===e.currentView?n("div",{staticClass:"md-datepicker-body-header"},[n("md-button",{staticClass:"md-dense md-icon-button",on:{click:e.previousMonth}},[n("md-arrow-left-icon")],1),e._v(" "),n("md-button",{staticClass:"md-dense md-icon-button",on:{click:e.nextMonth}},[n("md-arrow-right-icon")],1)],1):e._e()]),e._v(" "),n("div",{staticClass:"md-datepicker-body-content",style:e.contentStyles},[n("transition",{attrs:{name:"md-datepicker-view"}},["day"===e.currentView?n("transition-group",{staticClass:"md-datepicker-panel md-datepicker-calendar",class:e.calendarClasses,attrs:{tag:"div",name:"md-datepicker-month"}},e._l([e.currentDate],(function(t){return n("div",{key:t.getMonth(),staticClass:"md-datepicker-panel md-datepicker-month"},[n("md-button",{staticClass:"md-dense md-datepicker-month-trigger",on:{click:function(t){e.currentView="month"}}},[e._v(e._s(e.currentMonthName)+" "+e._s(e.currentYear))]),e._v(" "),n("div",{staticClass:"md-datepicker-week"},[e._l(e.locale.shorterDays,(function(t,r){return r>=e.firstDayOfAWeek?n("span",{key:r},[e._v(e._s(t))]):e._e()})),e._v(" "),e._l(e.locale.shorterDays,(function(t,r){return r<e.firstDayOfAWeek?n("span",{key:r},[e._v(e._s(t))]):e._e()}))],2),e._v(" "),n("div",{staticClass:"md-datepicker-days"},[e._l(e.prefixEmptyDays,(function(e){return n("span",{key:"day-empty-"+e,staticClass:"md-datepicker-empty"})})),e._v(" "),e._l(e.daysInMonth,(function(t){return n("div",{key:"day-"+t,staticClass:"md-datepicker-day"},[n("span",{staticClass:"md-datepicker-day-button",class:{"md-datepicker-selected":e.isSelectedDay(t),"md-datepicker-today":e.isToday(t),"md-datepicker-disabled":e.isDisabled(t)},on:{click:function(n){return e.selectDate(t)}}},[e._v(e._s(t))])])}))],2)],1)})),0):"month"===e.currentView?n("div",{staticClass:"md-datepicker-panel md-datepicker-month-selector"},[n("md-button",{staticClass:"md-datepicker-year-trigger",on:{click:function(t){e.currentView="year"}}},[e._v(e._s(e.currentYear))]),e._v(" "),e._l(e.locale.months,(function(t,r){return n("span",{key:t,staticClass:"md-datepicker-month-button",class:{"md-datepicker-selected":e.currentMonthName===t},on:{click:function(t){return e.switchMonth(r)}}},[e._v(e._s(t))])}))],2):"year"===e.currentView?n("keep-alive",[n("md-content",{staticClass:"md-datepicker-panel md-datepicker-year-selector md-scrollbar"},e._l(e.availableYears,(function(t){return n("span",{key:t,staticClass:"md-datepicker-year-button",class:{"md-datepicker-selected":e.currentYear===t},on:{click:function(n){return e.switchYear(t)}}},[e._v(e._s(t))])})),0)],1):e._e()],1)],1),e._v(" "),n("md-dialog-actions",{staticClass:"md-datepicker-body-footer"},[n("md-button",{staticClass:"md-primary",on:{click:e.onCancel}},[e._v("Cancel")]),e._v(" "),e.mdImmediately?e._e():n("md-button",{staticClass:"md-primary",on:{click:e.onConfirm}},[e._v("Ok")])],1)],1)])])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(156),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(349),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=void 0;return function(){var r=this,i=arguments,o=function(){return e.apply(r,i)};clearTimeout(n),n=setTimeout(o,t)}}},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-field",{class:["md-datepicker",{"md-native":!this.mdOverrideNative}],attrs:{"md-clearable":""}},[n("md-date-icon",{staticClass:"md-date-icon",nativeOn:{click:function(t){return e.toggleDialog(t)}}}),e._v(" "),n("md-input",{ref:"input",attrs:{type:e.type,pattern:e.pattern},nativeOn:{focus:function(t){return e.onFocus(t)}},model:{value:e.inputDate,callback:function(t){e.inputDate=t},expression:"inputDate"}}),e._v(" "),e._t("default"),e._v(" "),n("keep-alive",[e.showDialog?n("md-datepicker-dialog",{attrs:{"md-date":e.localDate,"md-disabled-dates":e.mdDisabledDates,mdImmediately:e.mdImmediately},on:{"update:mdDate":function(t){e.localDate=t},"update:md-date":function(t){e.localDate=t},"md-closed":e.toggleDialog}}):e._e()],1),e._v(" "),n("md-overlay",{staticClass:"md-datepicker-overlay",attrs:{"md-fixed":"","md-active":e.showDialog},on:{click:e.toggleDialog}})],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),c=n(353),l=r(c),u=n(356),d=r(u),f=n(359),h=r(f),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(157),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(355),s=function(e){n(354)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"md-dialog-title md-title"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(158),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(358),s=function(e){n(357)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:["md-dialog-content",e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(159),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(361),s=function(e){n(360)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-dialog-actions"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(363),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(160),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(365),s=function(e){n(364)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.insideList?n("li",{staticClass:"md-divider",class:[e.$mdActiveTheme]}):n("hr",{staticClass:"md-divider",class:[e.$mdActiveTheme]})},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(367),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(161),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(369),s=function(e){n(368)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-drawer",class:[e.$mdActiveTheme,e.drawerClasses]},[e._t("default"),e._v(" "),e.mdFixed?n("md-overlay",{attrs:{"md-active":e.mdActive},on:{click:e.closeDrawer}}):n("md-overlay",{attrs:{"md-active":e.mdActive,"md-attach-to-parent":""},on:{click:e.closeDrawer}})],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(371),t.default=function(e){}},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(105),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(106),s=r(a),c=n(374),l=r(c),u=n(62),d=r(u),f=n(386),h=r(f),p=n(53),m=r(p),v=n(391),g=r(v),t.default=function(e){(0,o.default)(e),e.use(s.default),e.use(l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default),e.component(m.default.name,m.default),e.component(g.default.name,g.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(375),s=r(a),c=n(380),l=r(c),u=n(383),d=r(u),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(164),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(379),s=function(e){n(376)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(165),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(378),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M7 10l5 5 5-5z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-menu",{staticClass:"md-select",class:{"md-disabled":e.disabled},attrs:{"md-close-on-select":!1,"md-active":e.showSelect,"md-offset-x":e.offset.x,"md-offset-y":e.offset.y,"md-dense":e.mdDense},on:{"update:mdActive":function(t){e.showSelect=t},"update:md-active":function(t){e.showSelect=t},"md-closed":e.onClose}},[n("md-input",e._g(e._b({ref:"input",staticClass:"md-input md-select-value",attrs:{readonly:"",disabled:e.disabled,required:e.required,placeholder:e.placeholder},on:{focus:function(t){return t.preventDefault(),e.onFocus(t)},blur:function(t){return t.preventDefault(),e.removeHighlight(t)},click:e.openSelect,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.openSelect(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.openSelect(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:e.openSelect(t)}]},model:{value:e.MdSelect.label,callback:function(t){e.$set(e.MdSelect,"label",t)},expression:"MdSelect.label"}},"md-input",e.attrs,!1),e.inputListeners)),e._v(" "),n("md-drop-down-icon",{nativeOn:{click:function(t){return e.openSelect(t)}}}),e._v(" "),n("keep-alive",[n("md-menu-content",{ref:"menu",staticClass:"md-select-menu",style:e.menuStyles,attrs:{"md-content-class":e.mdClass},on:{enter:e.onMenuEnter}},[e.showSelect?e._t("default"):e._e()],2)],1),e._v(" "),e.showSelect?e._e():n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[e._t("default")],2),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input-fake",attrs:{disabled:e.disabled,readonly:"",tabindex:"-1"},domProps:{value:e.model},on:{input:function(t){t.target.composing||(e.model=t.target.value)}}}),e._v(" "),n("select",e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],attrs:{readonly:"",tabindex:"-1"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.model=t.target.multiple?n:n[0]}}},"select",e.attributes,!1))],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(170),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(382),s=function(e){n(381)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-menu-item",{class:e.optionClasses,attrs:{disabled:e.isDisabled},on:{click:e.setSelection}},[e.MdSelect.multiple?n("md-checkbox",{staticClass:"md-primary",attrs:{disabled:e.isDisabled},model:{value:e.isChecked,callback:function(t){e.isChecked=t},expression:"isChecked"}}):e._e(),e._v(" "),n("span",{ref:"text",staticClass:"md-list-item-text"},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(171),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(385),s=function(e){n(384)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-optgroup"},[n("md-subheader",[e._v(e._s(e.label))]),e._v(" "),e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(172),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(390),s=function(e){n(387)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(173),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(389),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-file"},[n("md-file-icon",{staticClass:"md-file-icon",class:e.iconClass,nativeOn:{click:function(t){return e.openPicker(t)}}}),e._v(" "),"checkbox"==={disabled:e.disabled,required:e.required,placeholder:e.placeholder}.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{readonly:"",type:"checkbox"},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e.model},on:{click:e.openPicker,blur:e.onBlur,change:function(t){var n,r=e.model,i=t.target,o=!!i.checked;Array.isArray(r)?(n=e._i(r,null),i.checked?n<0&&(e.model=r.concat([null])):n>-1&&(e.model=r.slice(0,n).concat(r.slice(n+1)))):e.model=o}}},"input",{disabled:e.disabled,required:e.required,placeholder:e.placeholder},!1)):"radio"==={disabled:e.disabled,required:e.required,placeholder:e.placeholder}.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{readonly:"",type:"radio"},domProps:{checked:e._q(e.model,null)},on:{click:e.openPicker,blur:e.onBlur,change:function(t){e.model=null}}},"input",{disabled:e.disabled,required:e.required,placeholder:e.placeholder},!1)):n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{readonly:"",type:{disabled:e.disabled,required:e.required,placeholder:e.placeholder}.type},domProps:{value:e.model},on:{click:e.openPicker,blur:e.onBlur,input:function(t){t.target.composing||(e.model=t.target.value)}}},"input",{disabled:e.disabled,required:e.required,placeholder:e.placeholder},!1)),e._v(" "),n("input",e._g(e._b({ref:"inputFile",attrs:{type:"file"},on:{change:e.onChange}},"input",e.attributes,!1),e.$listeners))],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(174),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(392),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("textarea",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-textarea",style:e.textareaStyles,domProps:{value:e.model},on:{focus:e.onFocus,blur:e.onBlur,input:function(t){t.target.composing||(e.model=t.target.value)}}},"textarea",e.attributes,!1),e.listeners))},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(394),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(175),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(395)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(397),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(176),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(399),s=function(e){n(398)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-image",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(401),t.default=function(e){}},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(74),s=r(a),c=n(109),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(107),s=r(a),c=n(108),l=r(c),u=n(404),d=r(u),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(195),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(405),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-list-item",e._g(e._b({staticClass:"md-menu-item",class:[e.itemClasses,e.$mdActiveTheme],attrs:{disabled:e.disabled,tabindex:e.highlighted&&-1}},"md-list-item",e.$attrs,!1),e.listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(407),s=r(a),c=n(410),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(196),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(409),s=function(e){n(408)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-progress-bar",appear:""}},[n("div",{staticClass:"md-progress-bar",class:[e.progressClasses,e.$mdActiveTheme]},[n("div",{staticClass:"md-progress-bar-track",style:e.progressTrackStyle}),e._v(" "),n("div",{staticClass:"md-progress-bar-fill",style:e.progressValueStyle}),e._v(" "),n("div",{staticClass:"md-progress-bar-buffer",attrs:{Style:e.progressBufferStyle}})])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(197),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(412),s=function(e){n(411)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-progress-spinner",appear:""}},[n("div",{staticClass:"md-progress-spinner",class:[e.progressClasses,e.$mdActiveTheme]},[n("svg",{ref:"md-progress-spinner-draw",staticClass:"md-progress-spinner-draw",attrs:{preserveAspectRatio:"xMidYMid meet",focusable:"false",viewBox:"0 0 "+e.mdDiameter+" "+e.mdDiameter}},[n("circle",{ref:"md-progress-spinner-circle",staticClass:"md-progress-spinner-circle",attrs:{cx:"50%",cy:"50%",r:e.circleRadius}})])])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(414),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(198),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(416),s=function(e){n(415)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-radio",class:[e.$mdActiveTheme,e.radioClasses]},[n("div",{staticClass:"md-radio-container",on:{click:function(t){return t.stopPropagation(),e.toggleCheck(t)}}},[n("md-ripple",{attrs:{"md-centered":"","md-active":e.rippleActive,"md-disabled":e.disabled},on:{"update:mdActive":function(t){e.rippleActive=t},"update:md-active":function(t){e.rippleActive=t}}},[n("input",e._b({attrs:{type:"radio"}},"input",{id:e.id,name:e.name,disabled:e.disabled,required:e.required,value:e.value},!1))])],1),e._v(" "),e.$slots.default?n("label",{staticClass:"md-radio-label",attrs:{for:e.id},on:{click:function(t){return t.preventDefault(),e.toggleCheck(t)}}},[e._t("default")],2):e._e()])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(16),s=r(a),c=n(22),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(419),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(199),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(424),s=function(e){n(420)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(200),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(422),s=n(0)(i.a,a.a,!0,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(e,t){var n=t._c;return n("transition",{attrs:{name:"md-snackbar",appear:""}},[n("div",{staticClass:"md-snackbar",class:t.props.mdClasses},[n("div",{staticClass:"md-snackbar-content"},[t._t("default")],2)])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e,t,n){return new Promise((function(r){i={destroy:function(){i=null,r()}},e!==1/0&&(o=window.setTimeout((function(){a(),t||n._vnode.componentInstance.initDestroy(!0)}),e))}))}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=null,o=null,a=t.destroySnackbar=function(){return new Promise((function(e){i?(window.clearTimeout(o),i.destroy(),window.setTimeout(e,400)):e()}))},t.createSnackbar=function(e,t,n){return i?a().then((function(){return r(e,t,n)})):r(e,t,n)}},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.mdPersistent&&e.mdDuration!==1/0?n("md-portal",[n("keep-alive",[e.mdActive?n("md-snackbar-content",{attrs:{"md-classes":[e.snackbarClasses,e.$mdActiveTheme]}},[e._t("default")],2):e._e()],1)],1):n("md-portal",[e.mdActive?n("md-snackbar-content",{attrs:{"md-classes":[e.snackbarClasses,e.$mdActiveTheme]}},[e._t("default")],2):e._e()],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(426),s=r(a),c=n(429),l=r(c),u=n(432),d=r(u),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(201),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(428),s=function(e){n(427)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-speed-dial",class:[e.$mdActiveTheme,e.speedDialClasses]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(202),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(431),s=function(e){n(430)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-button",e._g(e._b({staticClass:"md-speed-dial-target md-fab",on:{click:e.handleClick}},"md-button",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(203),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(434),s=function(e){n(433)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-speed-dial-content"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(436),s=r(a),c=n(446),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(204),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(445),s=function(e){n(437)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(207),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(439),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(208),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(441),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(209),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(443),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-button",e._g(e._b({staticClass:"md-stepper-header",class:e.classes,attrs:{disabled:e.shouldDisable},nativeOn:{click:function(t){!e.MdSteppers.syncRoute&&e.MdSteppers.setActiveStep(e.index)}}},"md-button",e.data.props,!1),e.data.events),[e.data.error?n("md-warning-icon",{staticClass:"md-stepper-icon"}):n("div",{staticClass:"md-stepper-number"},[e.data.done&&e.data.editable?n("md-edit-icon",{staticClass:"md-stepper-editable"}):e.data.done?n("md-check-icon",{staticClass:"md-stepper-done"}):[e._v(e._s(e.MdSteppers.getStepperNumber(e.index)))]],2),e._v(" "),n("div",{staticClass:"md-stepper-text"},[n("span",{staticClass:"md-stepper-label"},[e._v(e._s(e.data.label))]),e._v(" "),e.data.error?n("span",{staticClass:"md-stepper-error"},[e._v(e._s(e.data.error))]):e.data.description?n("span",{staticClass:"md-stepper-description"},[e._v(e._s(e.data.description))]):e._e()])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-steppers",class:[e.steppersClasses,e.$mdActiveTheme]},[e.mdVertical?e._e():n("div",{staticClass:"md-steppers-navigation"},e._l(e.MdSteppers.items,(function(e,t){return n("md-step-header",{key:t,attrs:{index:t}})})),1),e._v(" "),n("div",{staticClass:"md-steppers-wrapper",style:e.contentStyles},[n("div",{staticClass:"md-steppers-container",style:e.containerStyles},[e._t("default")],2)])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(210),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(448),s=function(e){n(447)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-stepper"},[e.MdSteppers.isVertical?n("md-step-header",{attrs:{index:e.id}}):e._e(),e._v(" "),n("div",{staticClass:"md-stepper-content",class:{"md-active":!e.MdSteppers.syncRoute&&e.id===e.MdSteppers.activeStep}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(450),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(211),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(452),s=function(e){n(451)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.insideList?n("li",{staticClass:"md-subheader",class:[e.$mdActiveTheme]},[e._t("default")],2):n("div",{staticClass:"md-subheader",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(454),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(212),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(456),s=function(e){n(455)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-switch",class:[e.$mdActiveTheme,e.checkClasses]},[n("div",{staticClass:"md-switch-container",on:{click:function(t){return t.stopPropagation(),e.toggleCheck(t)}}},[n("div",{staticClass:"md-switch-thumb"},[n("md-ripple",{attrs:{"md-centered":"","md-active":e.rippleActive,"md-disabled":e.disabled},on:{"update:mdActive":function(t){e.rippleActive=t},"update:md-active":function(t){e.rippleActive=t}}},[n("input",e._b({attrs:{id:e.id,type:"checkbox"}},"input",{id:e.id,name:e.name,disabled:e.disabled,required:e.required,value:e.value},!1))])],1)]),e._v(" "),e.$slots.default?n("label",{staticClass:"md-switch-label",attrs:{for:e.id},on:{click:function(t){return t.preventDefault(),e.toggleCheck(t)}}},[e._t("default")],2):e._e()])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(458),s=r(a),c=n(479),l=r(c),u=n(482),d=r(u),f=n(220),h=r(f),p=n(101),m=r(p),v=n(485),g=r(v),b=n(488),y=r(b),t.default=function(e){(0,o.default)(e),e.component("MdTable",s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default),e.component(m.default.name,m.default),e.component(g.default.name,g.default),e.component(y.default.name,y.default)}},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i=n(459),o=function(e){return e&&e.__esModule?e:{default:e}}(i),t.default={name:"MdTableContainer",functional:!0,render:function(e,t){var n,i,a,s=t.data,c=t.props,l=t.children,u=[],d=s.scopedSlots;return l&&(n=function(e,t){var n=["md-table-toolbar","md-table-empty-state","md-table-pagination"],r=Array.from(e),i={};return r.forEach((function(e,t){if(e&&e.tag){var o=function(e){var t=e.componentOptions;return t&&t.tag}(e);o&&n.includes(o)&&(e.data.slot=o,e.data.attrs=e.data.attrs||{},i[o]=function(){return e},r.splice(t,1))}})),{childNodes:r,slots:i}}(l),i=n.childNodes,a=n.slots,u=i,d=r({},d,a)),e(o.default,r({},s,{props:c,scopedSlots:d}),[u])}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(213),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(478),s=function(e){n(460)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(214),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(0)(i.a,null,!1,null,null,null),t.default=a.exports},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(215),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(469),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(217),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(465),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0V0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("th",{staticClass:"md-table-head",class:e.headClasses,style:e.headStyles,attrs:{id:e.id},on:{click:e.changeSort}},[e.$slots.default?n("div",{staticClass:"md-table-head-container"},[n("div",{staticClass:"md-table-head-label"},[e._t("default")],2)]):n("md-ripple",{staticClass:"md-table-head-container",attrs:{"md-disabled":!e.hasSort}},[n("div",{staticClass:"md-table-head-label"},[e.hasSort?n("md-upward-icon",{staticClass:"md-table-sortable-icon"},[e._v("arrow_upward")]):e._e(),e._v("\n\n "+e._s(e.label)+"\n\n "),e.tooltip?n("md-tooltip",[e._v(e._s(e.tooltip))]):e._e()],1)])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(218),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(468),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.selectableCount?n("md-table-head",{staticClass:"md-table-cell-selection"},[n("div",{staticClass:"md-table-cell-container"},[n("md-checkbox",{attrs:{model:e.allSelected,disabled:e.isDisabled},on:{change:e.onChange}})],1)]):e._e()},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("md-table-head-selection"),e._v(" "),e._l(e.MdTable.items,(function(t,r){return n("md-table-head",e._b({key:r},"md-table-head",t,!1))}))],2)])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(219),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(472),s=function(e){n(471)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-table-alternate-header"}},[n("div",{staticClass:"md-table-alternate-header"},[e._t("default")],2)])},staticRenderFns:[]};t.a=r},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.mdSelectable?n("td",{staticClass:"md-table-cell md-table-cell-selection"},[n("div",{staticClass:"md-table-cell-container"},[n("md-checkbox",{attrs:{disabled:!e.mdSelectable||e.mdDisabled},on:{change:e.onChange},model:{value:e.isSelected,callback:function(t){e.isSelected=t},expression:"isSelected"}})],1)]):e._e()},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",e._g({staticClass:"md-table-row",class:e.rowClasses,on:{click:e.onClick}},e.$listeners),[e.selectableCount?n("md-table-cell-selection",{attrs:{value:e.isMultipleSelected,"md-disabled":e.mdDisabled,"md-selectable":"multiple"===e.mdSelectable,"md-row-id":e.mdIndex},on:{input:function(t){return t?e.addSelection():e.removeSelection()}}}):e._e(),e._v(" "),e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(224),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(0)(i.a,null,!1,null,null,null),t.default=a.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-tag-switcher",{staticClass:"md-table",attrs:{"md-tag":e.contentTag}},[e._t("md-table-toolbar"),e._v(" "),n("keep-alive",[e.$scopedSlots["md-table-alternate-header"]&&e.selectedCount?n("md-table-alternate-header",[e._t("md-table-alternate-header",null,{count:e.selectedCount})],2):e._e()],1),e._v(" "),e.mdFixedHeader?n("div",{staticClass:"md-table-fixed-header",class:e.headerClasses,style:e.headerStyles},[n("div",{ref:"fixedHeaderContainer",staticClass:"md-table-fixed-header-container",on:{scroll:e.setHeaderScroll}},[n("table",{style:e.fixedHeaderTableStyles},[n("md-table-thead")],1)])]):e._e(),e._v(" "),n("md-content",{staticClass:"md-table-content md-scrollbar",class:e.contentClasses,style:e.contentStyles,on:{scroll:e.setScroll}},[n("table",{ref:"contentTable"},[!e.mdFixedHeader&&e.$scopedSlots["md-table-row"]?n("md-table-thead",{class:e.headerClasses}):e._e(),e._v(" "),e.$scopedSlots["md-table-row"]?e.value.length?n("tbody",e._l(e.value,(function(t,r){return n("md-table-row-ghost",{key:e.getRowId(t,e.mdModelId),attrs:{"md-id":e.getRowId(t,e.mdModelId),"md-index":r,"md-item":t}},[e._t("md-table-row",null,{item:t,index:r})],2)})),1):e.$scopedSlots["md-table-empty-state"]?n("tbody",[n("tr",[n("td",{attrs:{colspan:e.headerCount}},[e._t("md-table-empty-state")],2)])]):e._e():n("tbody",[e._t("default")],2)],1),e._v(" "),e._t("md-table-pagination")],2),e._v(" "),!e.hasValue&&e.$scopedSlots["md-table-row"]?e._t("default"):e._e()],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(225),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(481),s=function(e){n(480)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-toolbar",{staticClass:"md-table-toolbar md-transparent",attrs:{"md-elevation":0}},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(228),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(484),s=function(e){n(483)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-empty-state",e._b({staticClass:"md-table-empty-state"},"md-empty-state",e.$props,!1),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(229),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(487),s=function(e){n(486)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",{staticClass:"md-table-cell",class:e.cellClasses},[n("div",{staticClass:"md-table-cell-container"},[e._t("default")],2)])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(230),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(490),s=function(e){n(489)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-table-pagination"},[!1!==e.mdPageOptions?[n("span",{staticClass:"md-table-pagination-label"},[e._v(e._s(e.mdLabel))]),e._v(" "),n("md-field",[n("md-select",{attrs:{"md-dense":"","md-class":"md-pagination-select"},on:{changed:e.setPageSize},model:{value:e.currentPageSize,callback:function(t){e.currentPageSize=t},expression:"currentPageSize"}},e._l(e.mdPageOptions,(function(t){return n("md-option",{key:t,attrs:{value:t}},[e._v(e._s(t))])})),1)],1)]:e._e(),e._v(" "),n("span",[e._v(e._s(e.currentItemCount)+"-"+e._s(e.currentPageCount)+" "+e._s(e.mdSeparator)+" "+e._s(e.mdTotal))]),e._v(" "),n("md-button",{staticClass:"md-icon-button md-table-pagination-previous",attrs:{disabled:1===e.mdPage},on:{click:function(t){return e.goToPrevious()}}},[n("md-icon",[e._v("keyboard_arrow_left")])],1),e._v(" "),n("md-button",{staticClass:"md-icon-button md-table-pagination-next",on:{click:function(t){return e.goToNext()}}},[n("md-icon",[e._v("keyboard_arrow_right")])],1)],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(492),s=r(a),c=n(495),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(231),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(494),s=function(e){n(493)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-tabs",class:[e.tabsClasses,e.$mdActiveTheme]},[n("div",{ref:"navigation",staticClass:"md-tabs-navigation",class:e.navigationClasses},[e._l(e.MdTabs.items,(function(t,r){var i=t.label,o=t.props,a=t.icon,s=t.disabled,c=t.data,l=t.events;return n("md-button",e._g(e._b({key:r,staticClass:"md-tab-nav-button",class:{"md-active":!e.mdSyncRoute&&r===e.activeTab,"md-icon-label":a&&i},attrs:{disabled:s},nativeOn:{click:function(t){return e.setActiveTab(r)}}},"md-button",o,!1),l),[e.$scopedSlots["md-tab"]?e._t("md-tab",null,{tab:{label:i,icon:a,data:c}}):[a?[e.isAssetIcon(a)?n("md-icon",{staticClass:"md-tab-icon",attrs:{"md-src":a}}):n("md-icon",{staticClass:"md-tab-icon"},[e._v(e._s(a))]),e._v(" "),n("span",{staticClass:"md-tab-label"},[e._v(e._s(i))])]:[e._v(e._s(i))]]],2)})),e._v(" "),n("span",{ref:"indicator",staticClass:"md-tabs-indicator",class:e.indicatorClass,style:e.indicatorStyles})],2),e._v(" "),n("md-content",{directives:[{name:"show",rawName:"v-show",value:e.hasContent,expression:"hasContent"}],ref:"tabsContent",staticClass:"md-tabs-content",style:e.contentStyles},[n("div",{staticClass:"md-tabs-container",style:e.containerStyles},[e._t("default")],2)])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(232),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(0)(i.a,null,!1,null,null,null),t.default=a.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(111),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(498),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(233),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(500),s=function(e){n(499)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-popover",{attrs:{"md-settings":e.popperSettings,"md-active":e.shouldRender}},[e.shouldRender?n("transition",{attrs:{name:"md-tooltip"}},[n("div",{staticClass:"md-tooltip",class:[e.tooltipClasses,e.$mdActiveTheme],style:e.tooltipStyles},[e._t("default")],2)]):e._e()],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogAlert",props:{mdTitle:String,mdContent:String,mdConfirmText:{type:String,default:"Ok"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogConfirm",props:{mdTitle:String,mdContent:String,mdConfirmText:{type:String,default:"Ok"},mdCancelText:{type:String,default:"Cancel"}},methods:{onCancel:function(){this.$emit("md-cancel"),this.$emit("update:mdActive",!1)},onConfirm:function(){this.$emit("md-confirm"),this.$emit("update:mdActive",!1)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogPrompt",props:{value:{},mdTitle:String,mdInputName:String,mdInputId:String,mdInputMaxlength:[String,Number],mdInputPlaceholder:[String,Number],mdContent:String,mdConfirmText:{type:String,default:"Ok"},mdCancelText:{type:String,default:"Cancel"}},data:function(){return{inputValue:null}},watch:{value:function(){this.inputValue=this.value}},methods:{onCancel:function(){this.$emit("md-cancel"),this.$emit("update:mdActive",!1)},onConfirm:function(){this.$emit("input",this.inputValue),this.$emit("md-confirm",this.inputValue),this.$emit("update:mdActive",!1)},setInputFocus:function(){var e=this;window.setTimeout((function(){e.$refs.input.$el.focus()}),50)}},created:function(){this.inputValue=this.value}}},function(e,t,n){e.exports=n(505)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_,C,A,x,S,M,E,T,D,O,P,I,j,N,R,L,B,F,z,V;Object.defineProperty(t,"__esModule",{value:!0}),t.MdTooltip=t.MdToolbar=t.MdTabs=t.MdTable=t.MdSwitch=t.MdSubheader=t.MdSteppers=t.MdSpeedDial=t.MdSnackbar=t.MdRipple=t.MdRadio=t.MdProgress=t.MdMenu=t.MdList=t.MdLayout=t.MdImage=t.MdIcon=t.MdHighlightText=t.MdField=t.MdEmptyState=t.MdElevation=t.MdDrawer=t.MdDivider=t.MdDialogPrompt=t.MdDialogConfirm=t.MdDialogAlert=t.MdDialog=t.MdDatepicker=t.MdContent=t.MdChips=t.MdCheckbox=t.MdCard=t.MdButton=t.MdBottomBar=t.MdAvatar=t.MdAutocomplete=t.MdApp=t.MdBadge=void 0,i=r(n(234)),o=r(n(253)),a=r(n(260)),s=r(n(266)),c=r(n(270)),l=r(n(276)),u=r(n(277)),d=r(n(312)),f=r(n(316)),h=r(n(323)),p=r(n(324)),m=r(n(352)),v=r(n(506)),g=r(n(509)),b=r(n(512)),y=r(n(362)),k=r(n(366)),w=r(n(370)),_=r(n(372)),C=r(n(373)),A=r(n(393)),x=r(n(106)),S=r(n(396)),M=r(n(400)),E=r(n(402)),T=r(n(403)),D=r(n(406)),O=r(n(413)),P=r(n(417)),I=r(n(418)),j=r(n(425)),N=r(n(435)),R=r(n(449)),L=r(n(453)),B=r(n(457)),F=r(n(491)),z=r(n(496)),V=r(n(497)),t.MdBadge=o.default,t.MdApp=i.default,t.MdAutocomplete=a.default,t.MdAvatar=s.default,t.MdBottomBar=c.default,t.MdButton=l.default,t.MdCard=u.default,t.MdCheckbox=d.default,t.MdChips=f.default,t.MdContent=h.default,t.MdDatepicker=p.default,t.MdDialog=m.default,t.MdDialogAlert=v.default,t.MdDialogConfirm=g.default,t.MdDialogPrompt=b.default,t.MdDivider=y.default,t.MdDrawer=k.default,t.MdElevation=w.default,t.MdEmptyState=_.default,t.MdField=C.default,t.MdHighlightText=A.default,t.MdIcon=x.default,t.MdImage=S.default,t.MdLayout=M.default,t.MdList=E.default,t.MdMenu=T.default,t.MdProgress=D.default,t.MdRadio=O.default,t.MdRipple=P.default,t.MdSnackbar=I.default,t.MdSpeedDial=j.default,t.MdSteppers=N.default,t.MdSubheader=R.default,t.MdSwitch=L.default,t.MdTable=B.default,t.MdTabs=F.default,t.MdToolbar=z.default,t.MdTooltip=V.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),c=n(507),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(501),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(508),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-dialog",e._g(e._b({attrs:{"md-fullscreen":!1}},"md-dialog",e.$attrs,!1),e.$listeners),[e.mdTitle?n("md-dialog-title",[e._v(e._s(e.mdTitle))]):e._e(),e._v(" "),e.mdContent?n("md-dialog-content",{domProps:{innerHTML:e._s(e.mdContent)}}):e._e(),e._v(" "),n("md-dialog-actions",[n("md-button",{staticClass:"md-primary",on:{click:function(t){return e.$emit("update:mdActive",!1)}}},[e._v(e._s(e.mdConfirmText))])],1)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),c=n(510),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(502),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(511),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-dialog",e._g(e._b({attrs:{"md-fullscreen":!1}},"md-dialog",e.$attrs,!1),e.$listeners),[e.mdTitle?n("md-dialog-title",[e._v(e._s(e.mdTitle))]):e._e(),e._v(" "),e.mdContent?n("md-dialog-content",{domProps:{innerHTML:e._s(e.mdContent)}}):e._e(),e._v(" "),n("md-dialog-actions",[n("md-button",{on:{click:e.onCancel}},[e._v(e._s(e.mdCancelText))]),e._v(" "),n("md-button",{staticClass:"md-primary",on:{click:e.onConfirm}},[e._v(e._s(e.mdConfirmText))])],1)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),c=n(513),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(503),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(514),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-dialog",e._b({attrs:{"md-fullscreen":!1},on:{"md-opened":e.setInputFocus}},"md-dialog",e.$attrs,!1),[e.mdTitle?n("md-dialog-title",[e._v(e._s(e.mdTitle))]):e._e(),e._v(" "),e.mdContent?n("md-dialog-content",{domProps:{innerHTML:e._s(e.mdContent)}}):e._e(),e._v(" "),n("md-dialog-content",[n("md-field",[n("md-input",{ref:"input",attrs:{id:e.mdInputId,name:e.mdInputName,maxlength:e.mdInputMaxlength,placeholder:e.mdInputPlaceholder},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onConfirm(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})],1)],1),e._v(" "),n("md-dialog-actions",[n("md-button",{staticClass:"md-primary",on:{click:e.onCancel}},[e._v(e._s(e.mdCancelText))]),e._v(" "),n("md-button",{staticClass:"md-primary",on:{click:e.onConfirm}},[e._v(e._s(e.mdConfirmText))])],1)],1)},staticRenderFns:[]};t.a=r}]))},function(e,t,n){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach((function(t){e(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e){var t,n="algoliasearch-client-js-".concat(e.key),i=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},o=function(){return JSON.parse(i().getItem(n)||"{}")};return{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=o()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=r(e,2),i=t[0],o=t[1];return Promise.all([i,o||n.miss(i)])})).then((function(e){return r(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var r=o();return r[JSON.stringify(e)]=t,i().setItem(n,JSON.stringify(r)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],i().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){i().removeItem(n)}))}}}function a(e){var t=i(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=t();return i.then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return r(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return a({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return a({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return a({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return a({caches:t}).clear()}))}}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var a=r(),s=i&&i.miss||function(){return Promise.resolve()};return a.then((function(e){return s(e)})).then((function(){return a}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function l(e,t){return Object.keys(void 0!==t?t:{}).forEach((function(n){e[n]=t[n](e)})),e}function u(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(n[i++])}))}var d=0,f=1;function h(e,t){var n=e||{},r=n.data||{};return Object.keys(n).forEach((function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(r[e]=n[e])})),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var p={Read:1,Write:2,Any:3};function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n({},e,{status:t,lastUpdate:Date.now()})}function v(e){return{protocol:e.protocol||"https",url:e.url,accept:e.accept||p.Any}}var g="POST";function b(e,t,r,o){var a=[],s=function(e,t){if("GET"!==e.method&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n({},e.data,{},t.data);return JSON.stringify(r)}}(r,o),c=function(e,t){var r=n({},e.headers,{},t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,o),l=r.method,u="GET"!==r.method?{}:n({},r.data,{},o.data),d=n({"x-algolia-agent":e.userAgent.value},e.queryParameters,{},u,{},o.queryParameters),f=0,h=function t(n,i){var u=n.pop();if(void 0===u)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:_(a)};var h={data:s,headers:c,method:l,url:k(u,r.path,d),connectTimeout:i(f,e.timeouts.connect),responseTimeout:i(f,o.timeout)},p=function(e){var t={request:h,response:e,host:u,triesLeft:n.length};return a.push(t),t},v={onSucess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var o=p(r);return r.isTimedOut&&f++,Promise.all([e.logger.info("Retryable failure",C(o)),e.hostsCache.set(u,m(u,r.isTimedOut?3:2))]).then((function(){return t(n,i)}))},onFail:function(e){throw p(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,_(a))}};return e.requester.send(h).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSucess(e):t.onFail(e)}(e,v)}))};return function(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(m(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}(e)})),o=[].concat(i(n),i(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:o.length>0?o.map((function(e){return v(e)})):t}}))}(e.hostsCache,t).then((function(e){return h(i(e.statelessHosts).reverse(),e.getTimeout)}))}function y(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function k(e,t,n){var r=w(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function w(e){return Object.keys(e).map((function(t){return u("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function _(e){return e.map((function(e){return C(e)}))}function C(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n({},e,{request:n({},e.request,{headers:n({},e.request.headers,{},t)})})}var A=function(e){var t=e.appId,i=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===f?r:{}},queryParameters:function(){return e===d?r:{}}}}(void 0!==e.authMode?e.authMode:f,t,e.apiKey),o=function(e){var t=e.hostsCache,n=e.logger,i=e.requester,o=e.requestsCache,a=e.responsesCache,s=e.timeouts,c=e.userAgent,l=e.hosts,u=e.queryParameters,d={hostsCache:t,logger:n,requester:i,requestsCache:o,responsesCache:a,timeouts:s,userAgent:c,headers:e.headers,queryParameters:u,hosts:l.map((function(e){return v(e)})),read:function(e,t){var n=h(t,d.timeouts.read),i=function(){return b(d,d.hosts.filter((function(e){return 0!=(e.accept&p.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return i();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,i()).then((function(e){return Promise.all([d.requestsCache.delete(o),e])}),(function(e){return Promise.all([d.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=r(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(o,e)}})},write:function(e,t){return b(d,d.hosts.filter((function(e){return 0!=(e.accept&p.Write)})),e,h(t,d.timeouts.write))}};return d}(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:p.Read},{url:"".concat(t,".algolia.net"),accept:p.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e,{headers:n({},i.headers(),{},{"content-type":"application/x-www-form-urlencoded"},{},e.headers),queryParameters:n({},i.queryParameters(),{},e.queryParameters)}));return l({transporter:o,appId:t,addAlgoliaAgent:function(e,t){o.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then((function(){}))}},e.methods)},x=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={transporter:e.transporter,appId:e.appId,indexName:t};return l(r,n.methods)}},S=function(e){return function(t,r){var i=t.map((function(e){return n({},e,{params:w(e.params||{})})}));return e.transporter.read({method:g,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},M=function(e){return function(t,r){return Promise.all(t.map((function(t){var i=t.params,o=i.facetName,a=i.facetQuery,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(i,["facetName","facetQuery"]);return x(e)(t.indexName,{methods:{searchForFacetValues:T}}).searchForFacetValues(o,a,n({},r,{},s))})))}},E=function(e){return function(t,n){return e.transporter.read({method:g,path:u("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},T=function(e){return function(t,n,r){return e.transporter.read({method:g,path:u("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}};function D(e,t,r){var i={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,i=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},o=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(o),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:a({caches:[o({key:"".concat("4.1.0","-").concat(e)}),s()]}),userAgent:y("4.1.0").add({segment:"Browser",version:"lite"}),authMode:d};return A(n({},i,{},r,{methods:{search:S,searchForFacetValues:M,multipleQueries:S,multipleSearchForFacetValues:M,initIndex:function(e){return function(t){return x(e)(t,{methods:{search:E,searchForFacetValues:T}})}}}}))}return D.version="4.1.0",D}()},function(e,t,n){e.exports=function(){"use strict";var e=function(e){var t=new XMLHttpRequest;return t.open(e.method||"GET",e.url),t.responseType="json",e.headers&&Object.keys(e.headers).forEach((function(n){t.setRequestHeader(n,e.headers[n])})),t};function t(t){return function(e,t){return new Promise((function(n,r){e.onload=function(){if(e.status>=200&&e.status<300){var t;try{t=JSON.parse(e.response)}catch(n){t=e.response}n(t)}else r(e.response)},e.onerror=function(){return r(e.response)},e.send(JSON.stringify(t))}))}(e(t),t.body)}var n,r,i,o,a,s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.file=e,this.options=t}return s(n,[{key:"createChunks",value:function(){this.chunks=[];for(var e=0,t=this.chunkSize;e<this.fileSize;)this.chunks.push({blob:this.file.file.slice(e,t),startOffset:e,active:!1,retries:this.maxRetries}),t=(e=t)+this.chunkSize}},{key:"updateFileProgress",value:function(){this.file.progress=this.progress}},{key:"pause",value:function(){this.file.active=!1,this.stopChunks()}},{key:"stopChunks",value:function(){this.chunksUploading.forEach((function(e){e.xhr.abort(),e.active=!1}))}},{key:"resume",value:function(){this.file.active=!0,this.startChunking()}},{key:"upload",value:function(){var e=this;return this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),this.start(),this.promise}},{key:"start",value:function(){var e=this;t({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.startBody,{phase:"start",mime_type:this.fileType,size:this.fileSize,name:this.fileName})}).then((function(t){if("success"!==t.status)return e.file.response=t,e.reject("server");e.sessionId=t.data.session_id,e.chunkSize=t.data.end_offset,e.createChunks(),e.startChunking()})).catch((function(t){e.file.response=t,e.reject("server")}))}},{key:"startChunking",value:function(){for(var e=0;e<this.maxActiveChunks;e++)this.uploadNextChunk()}},{key:"uploadNextChunk",value:function(){if(this.file.active){if(this.hasChunksToUpload)return this.uploadChunk(this.chunksToUpload[0]);if(0===this.chunksUploading.length)return this.finish()}}},{key:"uploadChunk",value:function(t){var n=this;t.progress=0,t.active=!0,this.updateFileProgress(),t.xhr=e({method:"POST",headers:this.headers,url:this.action}),t.xhr.upload.addEventListener("progress",(function(e){e.lengthComputable&&(t.progress=Math.round(e.loaded/e.total*100))}),!1),function(e,t){var n=new FormData;for(var r in t)n.append(r,t[r]);return new Promise((function(t,r){e.onload=function(){if(e.status>=200&&e.status<300){var n;try{n=JSON.parse(e.response)}catch(t){n=e.response}t(n)}else r(e.response)},e.onerror=function(){return r(e.response)},e.send(n)}))}(t.xhr,Object.assign(this.uploadBody,{phase:"upload",session_id:this.sessionId,start_offset:t.startOffset,chunk:t.blob})).then((function(e){if(t.active=!1,"success"===e.status)t.uploaded=!0;else if(t.retries--<=0)return n.stopChunks(),n.reject("upload");n.uploadNextChunk()})).catch((function(){if(t.active=!1,t.retries--<=0)return n.stopChunks(),n.reject("upload");n.uploadNextChunk()}))}},{key:"finish",value:function(){var e=this;this.updateFileProgress(),t({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.finishBody,{phase:"finish",session_id:this.sessionId})}).then((function(t){if(e.file.response=t,"success"!==t.status)return e.reject("server");e.resolve(t)})).catch((function(t){e.file.response=t,e.reject("server")}))}},{key:"maxRetries",get:function(){return parseInt(this.options.maxRetries)}},{key:"maxActiveChunks",get:function(){return parseInt(this.options.maxActive)}},{key:"fileType",get:function(){return this.file.type}},{key:"fileSize",get:function(){return this.file.size}},{key:"fileName",get:function(){return this.file.name}},{key:"action",get:function(){return this.options.action||null}},{key:"startBody",get:function(){return this.options.startBody||{}}},{key:"uploadBody",get:function(){return this.options.uploadBody||{}}},{key:"finishBody",get:function(){return this.options.finishBody||{}}},{key:"headers",get:function(){return this.options.headers||{}}},{key:"readyToUpload",get:function(){return!!this.chunks}},{key:"progress",get:function(){var e=this,t=this.chunksUploaded.length/this.chunks.length*100,n=this.chunksUploading.reduce((function(t,n){return t+(0|n.progress)/e.chunks.length}),0);return Math.min(t+n,100)}},{key:"chunksToUpload",get:function(){return this.chunks.filter((function(e){return!e.active&&!e.uploaded}))}},{key:"hasChunksToUpload",get:function(){return this.chunksToUpload.length>0}},{key:"chunksUploading",get:function(){return this.chunks.filter((function(e){return!!e.xhr&&!!e.active}))}},{key:"chunksUploaded",get:function(){return this.chunks.filter((function(e){return!!e.uploaded}))}}]),n}(),l=(n={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{attrs:{type:"file",name:e.$parent.name,id:e.$parent.inputId||e.$parent.name,accept:e.$parent.accept,capture:e.$parent.capture,disabled:e.$parent.disabled,webkitdirectory:e.$parent.directory&&e.$parent.features.directory,directory:e.$parent.directory&&e.$parent.features.directory,multiple:e.$parent.multiple&&e.$parent.features.html5},on:{change:e.change}})},staticRenderFns:[]},i=void 0,o=!1,(a=("function"==typeof(r={methods:{change:function(e){this.$parent.addInputFile(e.target),e.target.files?(e.target.value="",e.target.files.length&&!/safari/i.test(navigator.userAgent)&&(e.target.type="",e.target.type="file")):(this.$destroy(),new this.constructor({parent:this.$parent,el:this.$el}))}}})?r.options:r)||{}).render||(a.render=n.render,a.staticRenderFns=n.staticRenderFns,a._compiled=!0,o&&(a.functional=!0)),a._scopeId=i,a),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function f(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var h={headers:{},action:"",minSize:1048576,maxActive:3,maxRetries:5,handler:c},p={components:{InputFile:l},props:{inputId:{type:String},name:{type:String,default:"file"},accept:{type:String},capture:{},disabled:{},multiple:{type:Boolean},maximum:{type:Number,default:function(){return this.multiple?0:1}},addIndex:{type:[Boolean,Number]},directory:{type:Boolean},postAction:{type:String},putAction:{type:String},customAction:{type:Function},headers:{type:Object,default:Object},data:{type:Object,default:Object},timeout:{type:Number,default:0},drop:{default:!1},dropDirectory:{type:Boolean,default:!0},size:{type:Number,default:0},extensions:{default:Array},value:{type:Array,default:Array},thread:{type:Number,default:1},chunkEnabled:{type:Boolean,default:!1},chunk:{type:Object,default:function(){return h}}},data:function(){return{files:this.value,features:{html5:!0,directory:!1,drag:!1},active:!1,dropActive:!1,uploading:0,destroy:!1}},mounted:function(){var e=document.createElement("input");if(e.type="file",e.multiple=!0,window.FormData&&e.files?("boolean"!=typeof e.webkitdirectory&&"boolean"!=typeof e.directory||(this.features.directory=!0),this.features.html5&&void 0!==e.ondrop&&(this.features.drop=!0)):this.features.html5=!1,this.maps={},this.files)for(var t=0;t<this.files.length;t++){var n=this.files[t];this.maps[n.id]=n}this.$nextTick((function(){this.$parent&&this.$parent.$forceUpdate(),this.watchDrop(this.drop)}))},beforeDestroy:function(){this.destroy=!0,this.active=!1},computed:{uploaded:function(){for(var e=void 0,t=0;t<this.files.length;t++)if((e=this.files[t]).fileObject&&!e.error&&!e.success)return!1;return!0},chunkOptions:function(){return Object.assign(h,this.chunk)},className:function(){return["file-uploads",this.features.html5?"file-uploads-html5":"file-uploads-html4",this.features.directory&&this.directory?"file-uploads-directory":void 0,this.features.drop&&this.drop?"file-uploads-drop":void 0,this.disabled?"file-uploads-disabled":void 0]}},watch:{active:function(e){this.watchActive(e)},dropActive:function(){this.$parent&&this.$parent.$forceUpdate()},drop:function(e){this.watchDrop(e)},value:function(e){if(this.files!==e){this.files=e;var t=this.maps;this.maps={};for(var n=0;n<this.files.length;n++){var r=this.files[n];this.maps[r.id]=r}for(var i in this.maps){var o=this.maps[i],a=t[i];o!==a&&this.emitFile(o,a)}for(var s in t)this.maps[s]||this.emitFile(void 0,t[s])}}},methods:{clear:function(){if(this.files.length){var e=this.files;this.files=[],this.maps={},this.emitInput();for(var t=0;t<e.length;t++)this.emitFile(void 0,e[t])}return!0},get:function(e){return!!e&&("object"===(void 0===e?"undefined":d(e))?this.maps[e.id]||!1:this.maps[e]||!1)},add:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addIndex,n=e,r=n instanceof Array;r||(n=[n]);for(var i=[],o=0;o<n.length;o++){var a=n[o];this.features.html5&&a instanceof Blob&&(a={file:a,size:a.size,name:a.webkitRelativePath||a.relativePath||a.name||"unknown",type:a.type});var s=!1;if(!1===a.fileObject||(a.fileObject||"undefined"!=typeof Element&&a.el instanceof Element||"undefined"!=typeof Blob&&a.file instanceof Blob)&&(s=!0),s&&((a=u({fileObject:!0,size:-1,name:"Filename",type:"",active:!1,error:"",success:!1,putAction:this.putAction,postAction:this.postAction,timeout:this.timeout},a,{response:{},progress:"0.00",speed:0})).data=u({},this.data,a.data?a.data:{}),a.headers=u({},this.headers,a.headers?a.headers:{})),a.id||(a.id=Math.random().toString(36).substr(2)),!this.emitFilter(a,void 0)){if(this.maximum>1&&i.length+this.files.length>=this.maximum)break;if(i.push(a),1===this.maximum)break}}if(!i.length)return!1;1===this.maximum&&this.clear();var c=void 0;if(!0===t||0===t)c=i.concat(this.files);else if(t){var l;(l=c=this.files.concat([])).splice.apply(l,[t,0].concat(i))}else c=this.files.concat(i);this.files=c;for(var d=0;d<i.length;d++){var f=i[d];this.maps[f.id]=f}this.emitInput();for(var h=0;h<i.length;h++)this.emitFile(i[h],void 0);return r?i:i[0]},addInputFile:function(e){var t=[];if(e.files)for(var n=0;n<e.files.length;n++){var r=e.files[n];t.push({size:r.size,name:r.webkitRelativePath||r.relativePath||r.name,type:r.type,file:r})}else{var i=e.value.replace(/\\/g,"/").split("/");delete e.__vuex__,t.push({name:i[i.length-1],el:e})}return this.add(t)},addDataTransfer:function(e){var t=this,n=[];if(e.items&&e.items.length){for(var r=[],i=0;i<e.items.length;i++){var o=e.items[i];(o=o.getAsEntry?o.getAsEntry()||o.getAsFile():o.webkitGetAsEntry&&o.webkitGetAsEntry()||o.getAsFile())&&r.push(o)}return new Promise((function(e,i){!function i(o){var a=r[o];if(!a||t.maximum>0&&n.length>=t.maximum)return e(t.add(n));t.getEntry(a).then((function(e){n.push.apply(n,f(e)),i(o+1)}))}(0)}))}if(e.files.length){for(var a=0;a<e.files.length&&(n.push(e.files[a]),!(this.maximum>0&&n.length>=this.maximum));a++);return Promise.resolve(this.add(n))}return Promise.resolve([])},getEntry:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(r,i){if(e.isFile)e.file((function(e){r([{size:e.size,name:n+e.name,type:e.type,file:e}])}));else if(e.isDirectory&&t.dropDirectory){var o=[],a=e.createReader();!function i(){a.readEntries((function(a){!function s(c){return!a[c]&&0===c||t.maximum>0&&o.length>=t.maximum?r(o):a[c]?void t.getEntry(a[c],n+e.name+"/").then((function(e){o.push.apply(o,f(e)),s(c+1)})):i()}(0)}))}()}else r([])}))},replace:function(e,t){var n=this.get(e),r=this.get(t);if(!n||!r||n===r)return!1;var i=this.files.concat([]),o=i.indexOf(n),a=i.indexOf(r);return-1!==o&&-1!==a&&(i[o]=r,i[a]=n,this.files=i,this.emitInput(),!0)},remove:function(e){var t=this.get(e);if(t){if(this.emitFilter(void 0,t))return!1;var n=this.files.concat([]),r=n.indexOf(t);if(-1===r)return console.error("remove",t),!1;n.splice(r,1),this.files=n,delete this.maps[t.id],this.emitInput(),this.emitFile(void 0,t)}return t},update:function(e,t){var n=this.get(e);if(n){var r=u({},n,t);if(!n.fileObject||!n.active||r.active||r.error||r.success||(r.error="abort"),this.emitFilter(r,n))return!1;var i=this.files.concat([]),o=i.indexOf(n);return-1===o?(console.error("update",n),!1):(i.splice(o,1,r),this.files=i,delete this.maps[n.id],this.maps[r.id]=r,this.emitInput(),this.emitFile(r,n),r)}return!1},emitFilter:function(e,t){var n=!1;return this.$emit("input-filter",e,t,(function(){return n=!0})),n},emitFile:function(e,t){this.$emit("input-file",e,t),!(e&&e.fileObject&&e.active)||t&&t.active?e&&e.fileObject&&e.active||!t||!t.fileObject||!t.active||this.uploading--:(this.uploading++,this.$nextTick((function(){var t=this;setTimeout((function(){t.upload(e).then((function(){(e=t.get(e))&&e.fileObject&&t.update(e,{active:!1,success:!e.error})})).catch((function(n){t.update(e,{active:!1,success:!1,error:n.code||n.error||n.message||n})}))}),parseInt(50*Math.random()+50,10))}))),!this.active||Boolean(e)===Boolean(t)&&e.active===t.active||this.watchActive(!0)},emitInput:function(){this.$emit("input",this.files)},upload:function(e){var t=this.get(e);if(!t)return Promise.reject("not_exists");if(!t.fileObject)return Promise.reject("file_object");if(t.error)return Promise.reject(t.error);if(t.success)return Promise.resolve(t);var n=this.extensions;if(n&&(n.length||void 0===n.length)&&("object"===(void 0===n?"undefined":d(n))&&n instanceof RegExp||("string"==typeof n&&(n=n.split(",").map((function(e){return e.trim()})).filter((function(e){return e}))),n=new RegExp("\\.("+n.join("|").replace(/\./g,"\\.")+")$","i")),-1===t.name.search(n)))return Promise.reject("extension");if(this.size>0&&t.size>=0&&t.size>this.size)return Promise.reject("size");if(this.customAction)return this.customAction(t,this);if(this.features.html5){if(this.shouldUseChunkUpload(t))return this.uploadChunk(t);if(t.putAction)return this.uploadPut(t);if(t.postAction)return this.uploadHtml5(t)}return t.postAction?this.uploadHtml4(t):Promise.reject("No action configured")},shouldUseChunkUpload:function(e){return this.chunkEnabled&&!!this.chunkOptions.handler&&e.size>this.chunkOptions.minSize},uploadChunk:function(e){var t=this.chunkOptions.handler;return e.chunk=new t(e,this.chunkOptions),e.chunk.upload()},uploadPut:function(e){var t=[],n=void 0;for(var r in e.data)null!=(n=e.data[r])&&t.push(encodeURIComponent(r)+"="+encodeURIComponent(n));var i=t.length?(-1===e.putAction.indexOf("?")?"?":"&")+t.join("&"):"",o=new XMLHttpRequest;return o.open("PUT",e.putAction+i),this.uploadXhr(o,e,e.file)},uploadHtml5:function(e){var t=new window.FormData,n=void 0;for(var r in e.data)(n=e.data[r])&&"object"===(void 0===n?"undefined":d(n))&&"function"!=typeof n.toString?n instanceof File?t.append(r,n,n.name):t.append(r,JSON.stringify(n)):null!=n&&t.append(r,n);t.append(this.name,e.file,e.file.filename||e.name);var i=new XMLHttpRequest;return i.open("POST",e.postAction),this.uploadXhr(i,e,t)},uploadXhr:function(e,t,n){var r=this,i=t,o=0,a=0;e.upload.onprogress=function(e){if(i=r.get(i),e.lengthComputable&&i&&i.fileObject&&i.active){var t=Math.round(Date.now()/1e3);t!==o&&(o=t,i=r.update(i,{progress:(e.loaded/e.total*100).toFixed(2),speed:e.loaded-a}),a=e.loaded)}};var s=setInterval((function(){if(!(i=r.get(i))||!i.fileObject||i.success||i.error||!i.active){s&&(clearInterval(s),s=!1);try{e.abort(),e.timeout=1}catch(e){}}}),100);return new Promise((function(t,o){var a=void 0,c=function(n){if(!a){if(a=!0,s&&(clearInterval(s),s=!1),!(i=r.get(i)))return o("not_exists");if(!i.fileObject)return o("file_object");if(i.error)return o(i.error);if(!i.active)return o("abort");if(i.success)return t(i);var c={};switch(n.type){case"timeout":case"abort":c.error=n.type;break;case"error":e.status?e.status>=500?c.error="server":e.status>=400&&(c.error="denied"):c.error="network";break;default:e.status>=500?c.error="server":e.status>=400?c.error="denied":c.progress="100.00"}if(e.responseText){var l=e.getResponseHeader("Content-Type");l&&-1!==l.indexOf("/json")?c.response=JSON.parse(e.responseText):c.response=e.responseText}return(i=r.update(i,c)).error?o(i.error):t(i)}};for(var l in e.onload=c,e.onerror=c,e.onabort=c,e.ontimeout=c,i.timeout&&(e.timeout=i.timeout),i.headers)e.setRequestHeader(l,i.headers[l]);i=r.update(i,{xhr:e}),e.send(n)}))},uploadHtml4:function(e){var t=this,n=e,r=function(e){27===e.keyCode&&e.preventDefault()},i=document.createElement("iframe");i.id="upload-iframe-"+n.id,i.name="upload-iframe-"+n.id,i.src="about:blank",i.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var o=document.createElement("form");o.action=n.postAction,o.name="upload-form-"+n.id,o.setAttribute("method","POST"),o.setAttribute("target","upload-iframe-"+n.id),o.setAttribute("enctype","multipart/form-data");var a=void 0,s=void 0;for(var c in n.data)(a=n.data[c])&&"object"===(void 0===a?"undefined":d(a))&&"function"!=typeof a.toString&&(a=JSON.stringify(a)),null!=a&&((s=document.createElement("input")).type="hidden",s.name=c,s.value=a,o.appendChild(s));return o.appendChild(n.el),document.body.appendChild(i).appendChild(o),new Promise((function(e,a){setTimeout((function(){if(!(n=t.update(n,{iframe:i})))return a("not_exists");var s=setInterval((function(){(n=t.get(n))&&n.fileObject&&!n.success&&!n.error&&n.active||(s&&(clearInterval(s),s=!1),i.onabort({type:n?"abort":"not_exists"}))}),100),c=void 0,l=function(o){if(!c){if(c=!0,s&&(clearInterval(s),s=!1),document.body.removeEventListener("keydown",r),!(n=t.get(n)))return a("not_exists");if(!n.fileObject)return a("file_object");if(n.error)return a(n.error);if(!n.active)return a("abort");if(n.success)return e(n);var l=function(){var e=void 0;try{i.contentWindow&&(e=i.contentWindow.document)}catch(e){}if(!e)try{e=i.contentDocument?i.contentDocument:i.document}catch(t){e=i.document}return e&&e.body?e.body.innerHTML:null}(),u={};switch(o.type){case"abort":u.error="abort";break;case"error":n.error?u.error=n.error:u.error=null===l?"network":"denied";break;default:n.error?u.error=n.error:null===u?u.error="network":u.progress="100.00"}if(null!==l){if(l&&"{"===l.substr(0,1)&&"}"===l.substr(l.length-1,1))try{l=JSON.parse(l)}catch(e){}u.response=l}return(n=t.update(n,u)).error?a(n.error):e(n)}};i.onload=l,i.onerror=l,i.onabort=l,document.body.addEventListener("keydown",r),o.submit()}),50)})).then((function(e){return i.parentNode&&i.parentNode.removeChild(i),e})).catch((function(e){return i.parentNode&&i.parentNode.removeChild(i),e}))},watchActive:function(e){for(var t=void 0,n=0;t=this.files[n];)if(n++,t.fileObject)if(e&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;t.active||t.error||t.success||this.update(t,{active:!0})}else t.active&&this.update(t,{active:!1});0===this.uploading&&(this.active=!1)},watchDrop:function(e){var t=e;if(this.features.drop){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDragenter,!1),document.removeEventListener("dragleave",this.onDragleave,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch(e){}t?"string"==typeof t?t=document.querySelector(t)||this.$root.$el.querySelector(t):!0===t&&(t=this.$parent.$el):t=!1,this.dropElement=t,this.dropElement&&(document.addEventListener("dragenter",this.onDragenter,!1),document.addEventListener("dragleave",this.onDragleave,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},onDragenter:function(e){if(e.preventDefault(),!this.dropActive&&e.dataTransfer){var t=e.dataTransfer;t.files&&t.files.length?this.dropActive=!0:t.types?(t.types.indexOf&&-1!==t.types.indexOf("Files")||t.types.contains&&t.types.contains("Files"))&&(this.dropActive=!0):this.dropActive=!0}},onDragleave:function(e){e.preventDefault(),this.dropActive&&("HTML"===e.target.nodeName||e.target===e.explicitOriginalTarget||!e.fromElement&&(e.clientX<=0||e.clientY<=0||e.clientX>=window.innerWidth||e.clientY>=window.innerHeight))&&(this.dropActive=!1)},onDragover:function(e){e.preventDefault()},onDocumentDrop:function(){this.dropActive=!1},onDrop:function(e){e.preventDefault(),this.addDataTransfer(e.dataTransfer)}}},m=function(e,t,n,r,i,o,a,s){var c=("function"==typeof n?n.options:n)||{};c.render||(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,i&&(c.functional=!0)),c._scopeId=r;var l=void 0;if(t&&(l=function(e){t.call(this,a(e))}),void 0!==l)if(c.functional){var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return c}({render:function(){var e=this.$createElement,t=this._self._c||e;return t("span",{class:this.className},[this._t("default"),this._v(" "),t("label",{attrs:{for:this.inputId||this.name}}),this._v(" "),t("input-file")],2)},staticRenderFns:[]},(function(e){e&&e("data-v-595958af_0",{source:"\n.file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block\n}\n.file-uploads.file-uploads-html4 input,.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%\n}\n.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0\n}",map:void 0,media:void 0})}),p,void 0,!1,0,(function e(){var t=document.head||document.getElementsByTagName("head")[0],n=e.styles||(e.styles={}),r="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(!document.querySelector('style[data-vue-ssr-id~="'+e+'"]')){var o=r?i.media||"default":e,a=n[o]||(n[o]={ids:[],parts:[],element:void 0});if(!a.ids.includes(e)){var s=i.source,c=a.ids.length;if(a.ids.push(e),i.map&&(s+="\n/*# sourceURL="+i.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i.map))))+" */"),r&&(a.element=a.element||document.querySelector("style[data-group="+o+"]")),!a.element){var l=a.element=document.createElement("style");l.type="text/css",i.media&&l.setAttribute("media",i.media),r&&(l.setAttribute("data-group",o),l.setAttribute("data-next-index","0")),t.appendChild(l)}if(r&&(c=parseInt(a.element.getAttribute("data-next-index")),a.element.setAttribute("data-next-index",c+1)),a.element.styleSheet)a.parts.push(s),a.element.styleSheet.cssText=a.parts.filter(Boolean).join("\n");else{var u=document.createTextNode(s),d=a.element.childNodes;d[c]&&a.element.removeChild(d[c]),d.length?a.element.insertBefore(u,d[c]):a.element.appendChild(u)}}}}})),v=Object.freeze({default:m});return v&&m||v}()},function(e,t,n){var r=n(292),i=n(66),o=n(147),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(37)(Object,"create");e.exports=r},function(e,t,n){var r=n(307),i=n(308),o=n(309),a=n(310),s=n(311);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(45);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(313);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(68),i=n(326)(r);e.exports=i},function(e,t,n){var r=n(84),i=n(330),o=n(331),a=n(332),s=n(333),c=n(334);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,e.exports=l},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(11),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(67),i=n(74),o=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var s=null==n?0:i(n);return s<0&&(s=o(a+s,0)),r(e,t,s)}},function(e,t,n){var r=n(381)(n(254));e.exports=r},function(e,t,n){var r=n(90),i=n(11);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),o=e.apply(n,t);return i(o)?o:n}}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,s;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):v(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var l=c.length,u=v(c,l);for(n=0;n<l;++n)o(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";var r=n(433),i=n(434),o=n(276);e.exports={formats:o,parse:i,stringify:r}},function(e,t,n){var r=n(2),i=n(97);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(3)(!1)).push([e.i,":root{--md-theme-default-primary:#448aff;--md-theme-default-accent:#ff5252;--md-theme-default-theme:light}.md-theme-default :not(input):not(textarea)::selection{background-color:#ff5252;background-color:var(--md-theme-default-accent-on-background,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-theme-default a:not(.md-button){color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-theme-default a:not(.md-button):hover{color:rgba(68,138,255,.8);color:var(--md-theme-default-primary-on-background,rgba(68,138,255,.8))}.md-theme-default a:not(.md-button).md-accent{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-theme-default a:not(.md-button).md-accent:hover{color:rgba(255,82,82,.8);color:var(--md-theme-default-accent-on-background,rgba(255,82,82,.8))}html.md-theme-default{background-color:#fafafa;background-color:var(--md-theme-default-background-variant,#fafafa);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-theme-default .md-caption,.md-theme-default .md-display-1,.md-theme-default .md-display-2,.md-theme-default .md-display-3,.md-theme-default .md-display-4{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background-variant,rgba(0,0,0,.54))}.md-scrollbar.md-theme-default::-webkit-scrollbar-corner,.md-scrollbar.md-theme-default::-webkit-scrollbar-track{background:#e1e1e1;background:var(--md-theme-default-scrollbar-background-on-background-variant,#e1e1e1)}.md-scrollbar.md-theme-default::-webkit-scrollbar-thumb{background:#757575;background:var(--md-theme-default-scrollbar-on-background-variant,#757575)}.md-app:not(.md-overlap).md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-list.md-theme-default .md-autocomplete-items .md-highlight-text-match{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-list.md-theme-default .md-autocomplete-loading{background-color:hsla(0,0%,100%,.54);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.54))}.md-autocomplete.md-theme-default.md-autocomplete-box{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-autocomplete.md-theme-default.md-autocomplete-box.md-focused label{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box{background-color:hsla(0,0%,100%,.12);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.12))}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box input,.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box label{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff);-webkit-text-fill-color:#fff;-webkit-text-fill-color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused input,.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused label{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38));-webkit-text-fill-color:rgba(0,0,0,.38);-webkit-text-fill-color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused svg{fill:rgba(0,0,0,.38);fill:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-autocomplete-box-content.md-theme-default:after{background-color:#fff;background-color:var(--md-theme-default-background,#fff);border-bottom-color:rgba(0,0,0,.12);border-bottom-color:var(--md-theme-default-divider,rgba(0,0,0,.12))}.md-avatar.md-theme-default.md-avatar-icon{background-color:rgba(0,0,0,.38);background-color:var(--md-theme-default-icon-disabled,rgba(0,0,0,.38));color:#fff;color:var(--md-theme-default-text-primary-on-icon-disabled,#fff)}.md-avatar.md-theme-default.md-avatar-icon .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-icon-disabled,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-icon-disabled,#fff)}.md-avatar.md-theme-default.md-primary,.md-avatar.md-theme-default.md-primary.md-avatar-icon{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-avatar.md-theme-default.md-primary.md-avatar-icon,.md-avatar.md-theme-default.md-primary.md-avatar-icon .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-avatar.md-theme-default.md-primary.md-avatar-icon .md-icon{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-avatar.md-theme-default.md-accent,.md-avatar.md-theme-default.md-accent.md-avatar-icon{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-avatar.md-theme-default.md-accent.md-avatar-icon,.md-avatar.md-theme-default.md-accent.md-avatar-icon .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-avatar.md-theme-default.md-accent.md-avatar-icon .md-icon{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-type-fixed{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-bottom-bar.md-theme-default.md-type-fixed .md-bottom-bar-item.md-active,.md-bottom-bar.md-theme-default.md-type-fixed .md-bottom-bar-item.md-active .md-icon{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-bottom-bar.md-theme-default.md-type-fixed .md-bottom-bar-item.md-active .md-icon svg{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-bottom-bar.md-theme-default.md-type-shift{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-bottom-bar.md-theme-default.md-type-shift>.md-ripple .md-ripple-wave{background-color:#116aff;background-color:var(--md-theme-default-primary-on-primary,#116aff)}.md-bottom-bar.md-theme-default.md-type-shift .md-icon{color:#fff;color:var(--md-theme-default-icon-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-type-shift .md-icon svg{fill:#fff;fill:var(--md-theme-default-icon-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-type-shift .md-bottom-bar-item,.md-bottom-bar.md-theme-default.md-type-shift .md-bottom-bar-item .md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-type-shift .md-bottom-bar-item .md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-fixed{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-fixed .md-bottom-bar-item.md-active,.md-bottom-bar.md-theme-default.md-accent.md-type-fixed .md-bottom-bar-item.md-active .md-icon{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-bottom-bar.md-theme-default.md-accent.md-type-fixed .md-bottom-bar-item.md-active .md-icon svg{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-bottom-bar.md-theme-default.md-accent.md-type-shift>.md-ripple .md-ripple-wave{background-color:#ff1f1f;background-color:var(--md-theme-default-accent-on-accent,#ff1f1f)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-icon{color:#fff;color:var(--md-theme-default-icon-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-icon svg{fill:#fff;fill:var(--md-theme-default-icon-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-bottom-bar-item,.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-bottom-bar-item .md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-bottom-bar-item .md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-button.md-theme-default.md-primary,.md-button.md-theme-default.md-primary .md-icon-font{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-button.md-theme-default.md-primary .md-icon-image{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-button.md-theme-default.md-accent,.md-button.md-theme-default.md-accent .md-icon-font{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-button.md-theme-default.md-accent .md-icon-image{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-button.md-theme-default.md-raised[disabled]{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-disabled-background-on-background,rgba(0,0,0,.12));color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled,rgba(0,0,0,.26))}.md-button.md-theme-default.md-raised:not([disabled]){background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-button.md-theme-default.md-raised:not([disabled]).md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-button.md-theme-default.md-raised:not([disabled]).md-primary,.md-button.md-theme-default.md-raised:not([disabled]).md-primary .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default.md-raised:not([disabled]).md-primary .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default.md-raised:not([disabled]).md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-button.md-theme-default.md-raised:not([disabled]).md-accent,.md-button.md-theme-default.md-raised:not([disabled]).md-accent .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-raised:not([disabled]).md-accent .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-fab[disabled]{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-disabled-background-on-background,rgba(0,0,0,.12))}.md-button.md-theme-default.md-fab:not([disabled]){background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-button.md-theme-default.md-fab:not([disabled]) .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-fab:not([disabled]) .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-fab:not([disabled]).md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-button.md-theme-default.md-fab:not([disabled]).md-primary .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default.md-fab:not([disabled]).md-primary .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default[disabled]{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-button.md-theme-default[disabled] .md-icon-font{color:rgba(0,0,0,.38);color:var(--md-theme-default-icon-disabled-on-background,rgba(0,0,0,.38))}.md-button.md-theme-default[disabled] .md-icon-image{fill:rgba(0,0,0,.38);fill:var(--md-theme-default-icon-disabled-on-background,rgba(0,0,0,.38))}.md-card.md-theme-default{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-card.md-theme-default,.md-card.md-theme-default .md-card-expand .md-card-actions{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-card.md-theme-default .md-card-actions .md-button:not(.md-primary):not(.md-accent),.md-card.md-theme-default .md-card-header .md-button:not(.md-primary):not(.md-accent){color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-card.md-theme-default .md-card-actions .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon,.md-card.md-theme-default .md-card-header .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.54));fill:rgba(0,0,0,.54);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.54))}.md-card.md-theme-default>.md-card-area:after{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-card.md-theme-default.md-primary{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-card.md-theme-default.md-primary,.md-card.md-theme-default.md-primary .md-card-expand .md-card-actions{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-card.md-theme-default.md-primary .md-card-actions .md-button:not(.md-primary):not(.md-accent),.md-card.md-theme-default.md-primary .md-card-header .md-button:not(.md-primary):not(.md-accent){color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-card.md-theme-default.md-primary .md-card-actions .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon,.md-card.md-theme-default.md-primary .md-card-header .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon{color:hsla(0,0%,100%,.54);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.54));fill:hsla(0,0%,100%,.54);fill:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.54))}.md-card.md-theme-default.md-primary>.md-card-area:after{background-color:hsla(0,0%,100%,.12);background-color:var(--md-theme-default-divider-on-primary,hsla(0,0%,100%,.12))}.md-card.md-theme-default.md-accent{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-card.md-theme-default.md-accent,.md-card.md-theme-default.md-accent .md-card-expand .md-card-actions{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-card.md-theme-default.md-accent .md-card-actions .md-button:not(.md-primary):not(.md-accent),.md-card.md-theme-default.md-accent .md-card-header .md-button:not(.md-primary):not(.md-accent){color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-card.md-theme-default.md-accent .md-card-actions .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon,.md-card.md-theme-default.md-accent .md-card-header .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon{color:hsla(0,0%,100%,.54);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.54));fill:hsla(0,0%,100%,.54);fill:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.54))}.md-card.md-theme-default.md-accent>.md-card-area:after{background-color:hsla(0,0%,100%,.12);background-color:var(--md-theme-default-divider-on-accent,hsla(0,0%,100%,.12))}.md-checkbox.md-theme-default.md-checked .md-checkbox-container{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);border-color:#ff5252;border-color:var(--md-theme-default-accent,#ff5252)}.md-checkbox.md-theme-default.md-checked .md-checkbox-container:after{border-color:#fff;border-color:var(--md-theme-default-background,#fff)}.md-checkbox.md-theme-default.md-checked .md-ripple{color:#ff5252;color:var(--md-theme-default-accent,#ff5252)}.md-checkbox.md-theme-default.md-indeterminate .md-checkbox-container{background-color:hsla(0,0%,100%,.3)}.md-checkbox.md-theme-default.md-checked.md-primary .md-checkbox-container{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-checkbox.md-theme-default.md-checked.md-primary .md-ripple{color:#448aff;color:var(--md-theme-default-primary,#448aff)}.md-checkbox.md-theme-default.md-indeterminate .md-checkbox-container{border-color:rgba(0,0,0,.54);background-color:transparent}.md-checkbox.md-theme-default.md-indeterminate .md-checkbox-container:after{border-color:rgba(0,0,0,.54)}.md-checkbox.md-theme-default.md-indeterminate .md-ripple{color:rgba(0,0,0,.54)}.md-checkbox.md-theme-default .md-checkbox-container{border-color:rgba(0,0,0,.54)}.md-checkbox.md-theme-default.md-disabled .md-checkbox-container{border-color:rgba(0,0,0,.26)}.md-checkbox.md-theme-default.md-disabled.md-checked .md-checkbox-container{border-color:rgba(0,0,0,.26);background-color:rgba(0,0,0,.26)}.md-chip.md-theme-default{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-highlight,rgba(0,0,0,.12));color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary,rgba(0,0,0,.87))}.md-chip.md-theme-default .md-icon.md-icon-image svg{color:#fff;color:var(--md-theme-default-text-primary-on-text-primary,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-text-primary,#fff)}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover{background-color:rgba(0,0,0,.54);background-color:var(--md-theme-default-icon,rgba(0,0,0,.54));color:#fff;color:var(--md-theme-default-text-primary-on-icon,#fff)}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover .md-icon,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover .md-icon{fill:#fff;fill:var(--md-theme-default-text-primary-on-icon,#fff)}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover .md-input-action{background-color:hsla(0,0%,100%,.87);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.87));color:rgba(0,0,0,.54);color:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover .md-input-action .md-icon svg,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover .md-input-action .md-icon svg{fill:rgba(0,0,0,.54);fill:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54));color:rgba(0,0,0,.54);color:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-chip.md-theme-default.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-chip.md-theme-default.md-primary .md-input-action{color:#fff;color:var(--md-theme-default-icon-on-disabled,#fff);background-color:rgba(0,0,0,.26);background-color:var(--md-theme-default-disabled,rgba(0,0,0,.26))}.md-chip.md-theme-default.md-primary.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-primary.md-deletable:not(.md-disabled):hover{color:#fff;color:var(--md-theme-default-text-primary-on-icon,#fff);background-color:rgba(0,0,0,.54);background-color:var(--md-theme-default-icon,rgba(0,0,0,.54))}.md-chip.md-theme-default.md-primary.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-primary.md-deletable:not(.md-disabled):hover .md-input-action{background-color:hsla(0,0%,100%,.87);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.87))}.md-chip.md-theme-default.md-accent,.md-chip.md-theme-default.md-duplicated{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-chip.md-theme-default.md-accent .md-input-action,.md-chip.md-theme-default.md-duplicated .md-input-action{color:#fff;color:var(--md-theme-default-icon-on-disabled,#fff);background-color:rgba(0,0,0,.26);background-color:var(--md-theme-default-disabled,rgba(0,0,0,.26))}.md-chip.md-theme-default.md-accent.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-accent.md-deletable:not(.md-disabled):hover,.md-chip.md-theme-default.md-duplicated.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-duplicated.md-deletable:not(.md-disabled):hover{background-color:rgba(0,0,0,.54);background-color:var(--md-theme-default-icon,rgba(0,0,0,.54));color:#fff;color:var(--md-theme-default-text-primary-on-icon,#fff)}.md-chip.md-theme-default.md-accent.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-accent.md-deletable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-duplicated.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-duplicated.md-deletable:not(.md-disabled):hover .md-input-action{background-color:hsla(0,0%,100%,.87);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.87))}.md-chip.md-theme-default.md-disabled{background-color:rgba(0,0,0,.1);background-color:var(--md-theme-default-highlight,rgba(0,0,0,.1));color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent,rgba(0,0,0,.54))}.md-chips.md-theme-default .md-clear{background-color:rgba(0,0,0,.2)}.md-content.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-content.md-theme-default.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-content.md-theme-default.md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-app .md-content.md-theme-default{border-left-color:rgba(0,0,0,.12);border-left-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12));border-right-color:rgba(0,0,0,.12);border-right-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-datepicker-dialog.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-datepicker-dialog.md-theme-default .md-datepicker-header{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-datepicker-dialog.md-theme-default .md-datepicker-body-footer,.md-datepicker-dialog.md-theme-default .md-datepicker-body-header:after,.md-datepicker-dialog.md-theme-default .md-datepicker-body-header:before{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-datepicker-dialog.md-theme-default .md-datepicker-body-footer{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-datepicker-dialog.md-theme-default .md-datepicker-week{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-datepicker-dialog.md-theme-default .md-datepicker-disabled{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-datepicker-dialog.md-theme-default .md-datepicker-today{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-datepicker-dialog.md-theme-default .md-datepicker-day-button:hover,.md-datepicker-dialog.md-theme-default .md-datepicker-month-button:hover,.md-datepicker-dialog.md-theme-default .md-datepicker-year-button:hover{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider,rgba(0,0,0,.12))}.md-datepicker-dialog.md-theme-default .md-datepicker-day-button.md-datepicker-selected{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-datepicker-dialog.md-theme-default .md-datepicker-month-button.md-datepicker-selected,.md-datepicker-dialog.md-theme-default .md-datepicker-year-button.md-datepicker-selected{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-datepicker-dialog.md-theme-default .md-datepicker-year-selector{border-bottom-color:rgba(0,0,0,.12);border-bottom-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-dialog.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-divider.md-theme-default{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider,rgba(0,0,0,.12))}.md-drawer.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-drawer.md-theme-default.md-persistent-mini.md-left{border-right-color:rgba(0,0,0,.12);border-right-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-drawer.md-theme-default.md-persistent-mini.md-right{border-left-color:rgba(0,0,0,.12);border-left-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-empty-state.md-theme-default .md-empty-state-icon.md-icon-image svg{fill:rgba(0,0,0,.26);fill:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-empty-state.md-theme-default .md-empty-state-icon.md-icon-font{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-empty-state.md-theme-default.md-rounded{background-color:rgba(0,0,0,.06);background-color:var(--md-theme-default-disabled,rgba(0,0,0,.06))}.md-empty-state.md-theme-default.md-primary .md-empty-state-icon.md-icon-image svg{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-empty-state.md-theme-default.md-primary .md-empty-state-icon.md-icon-font{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-empty-state.md-theme-default.md-accent .md-empty-state-icon.md-icon-image svg{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-empty-state.md-theme-default.md-accent .md-empty-state-icon.md-icon-font{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-field.md-theme-default:after{background-color:rgba(0,0,0,.42)}.md-field.md-theme-default:before{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-field.md-theme-default .md-count,.md-field.md-theme-default .md-helper-text,.md-field.md-theme-default .md-prefix,.md-field.md-theme-default .md-suffix,.md-field.md-theme-default label{color:rgba(0,0,0,.54)}.md-field.md-theme-default .md-input::-webkit-input-placeholder,.md-field.md-theme-default .md-textarea::-webkit-input-placeholder{color:rgba(0,0,0,.54)}.md-field.md-theme-default.md-focused .md-input,.md-field.md-theme-default.md-focused .md-textarea,.md-field.md-theme-default.md-has-value .md-input,.md-field.md-theme-default.md-has-value .md-textarea{-webkit-text-fill-color:rgba(0,0,0,.87)}.md-field.md-theme-default.md-has-textarea:not(.md-autogrow):after{border-color:rgba(0,0,0,.42)}.md-field.md-theme-default.md-has-textarea:not(.md-autogrow):before{border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-field.md-theme-default.md-disabled:after{background-image:linear-gradient(90deg,rgba(0,0,0,.38),rgba(0,0,0,.38) 33%,transparent 0)}.md-field.md-theme-default.md-disabled .md-input,.md-field.md-theme-default.md-disabled .md-textarea,.md-field.md-theme-default.md-disabled label{color:rgba(0,0,0,.42)}.md-field.md-theme-default>.md-icon:after{background-color:#fafafa;background-color:var(--md-theme-default-background-variant,#fafafa)}.md-field.md-theme-default.md-invalid:after{background-color:#ff1744;background-color:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-invalid.md-has-textarea:not(.md-autogrow):before{border-color:#ff1744;border-color:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-invalid .md-error,.md-field.md-theme-default.md-invalid label{color:#ff1744;color:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-invalid .md-date-icon,.md-field.md-theme-default.md-invalid .md-date-icon svg{color:#ff1744;color:var(--md-theme-default-fieldvariant,#ff1744);fill:#ff1744;fill:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-focused .md-input,.md-field.md-theme-default.md-focused .md-textarea,.md-field.md-theme-default.md-highlight .md-input,.md-field.md-theme-default.md-highlight .md-textarea{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-field.md-theme-default.md-focused>.md-icon,.md-field.md-theme-default.md-highlight>.md-icon{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff);fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-field.md-theme-default.md-focused label{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-field.md-theme-default.md-disabled .md-icon svg{fill:rgba(0,0,0,.26);fill:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-icon.md-theme-default.md-icon-image svg{fill:rgba(0,0,0,.54);fill:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-icon.md-theme-default.md-icon-image svg.md-primary{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-icon.md-theme-default.md-icon-image svg.md-accent{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-icon.md-theme-default.md-icon-font{color:rgba(0,0,0,.54);color:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-icon.md-theme-default.md-icon-font.md-primary{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-icon.md-theme-default.md-icon-font.md-accent{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-list.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-list.md-theme-default.md-double-line .md-list-item-text :nth-child(2),.md-list.md-theme-default.md-triple-line .md-list-item-text :nth-child(3){color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-list.md-theme-default .md-highlight .md-list-item-container{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-list.md-theme-default .md-list-item-container{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-list.md-theme-default .md-list-item-container:not(.md-list-item-default):not(.md-list-item-expand):not([disabled]):hover{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12));color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-list.md-theme-default [disabled]{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-list.md-theme-default .md-selected .md-list-item-content,.md-list.md-theme-default .router-link-active .md-list-item-content{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-list.md-theme-default .md-list-item-expand.md-active{border-color:rgba(0,0,0,.12);border-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-list.md-theme-default .md-list-item-expand:not(.md-list-item-default):not([disabled])>.md-list-item-content:hover{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12));color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-menu-item.md-theme-default.md-primary .md-list-item-button,.md-menu-item.md-theme-default.md-primary .md-list-item-link,.md-menu-item.md-theme-default.md-primary .md-list-item-router{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-menu-item.md-theme-default.md-accent .md-list-item-button,.md-menu-item.md-theme-default.md-accent .md-list-item-link,.md-menu-item.md-theme-default.md-accent .md-list-item-router{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-progress-bar.md-theme-default.md-indeterminate,.md-progress-bar.md-theme-default.md-query{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-indeterminate .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-indeterminate .md-progress-bar-track:after,.md-progress-bar.md-theme-default.md-query .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-query .md-progress-bar-track:after{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-progress-bar.md-theme-default.md-indeterminate.md-accent,.md-progress-bar.md-theme-default.md-query.md-accent{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-bar.md-theme-default.md-indeterminate.md-accent .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-indeterminate.md-accent .md-progress-bar-track:after,.md-progress-bar.md-theme-default.md-query.md-accent .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-query.md-accent .md-progress-bar-track:after{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-progress-bar.md-theme-default.md-determinate{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-determinate .md-progress-bar-fill{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-progress-bar.md-theme-default.md-determinate.md-accent{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-bar.md-theme-default.md-determinate.md-accent .md-progress-bar-fill{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-progress-bar.md-theme-default.md-buffer .md-progress-bar-fill{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-progress-bar.md-theme-default.md-buffer .md-progress-bar-track{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-buffer .md-progress-bar-buffer{border-color:rgba(68,138,255,.38);border-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-buffer.md-accent .md-progress-bar-fill{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-progress-bar.md-theme-default.md-buffer.md-accent .md-progress-bar-track{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-bar.md-theme-default.md-buffer.md-accent .md-progress-bar-buffer{border-color:rgba(255,82,82,.38);border-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-spinner.md-theme-default .md-progress-spinner-circle{stroke:#448aff;stroke:var(--md-theme-default-primary,#448aff)}.md-progress-spinner.md-theme-default.md-accent .md-progress-spinner-circle{stroke:#ff5252;stroke:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked .md-radio-container{border-color:#ff5252;border-color:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked .md-radio-container:after{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked .md-ripple{color:#ff5252;color:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked.md-primary .md-radio-container{border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-radio.md-theme-default.md-checked.md-primary .md-radio-container:after{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-radio.md-theme-default.md-checked.md-primary .md-ripple{color:#448aff;color:var(--md-theme-default-primary,#448aff)}.md-radio.md-theme-default .md-radio-container{border-color:rgba(0,0,0,.54)}.md-radio.md-theme-default.md-disabled.md-checked .md-radio-container,.md-radio.md-theme-default.md-disabled .md-radio-container{border-color:rgba(0,0,0,.26)}.md-radio.md-theme-default.md-disabled.md-checked .md-radio-container:after{background-color:rgba(0,0,0,.26)}.md-snackbar.md-theme-default{color:#fff;color:var(--md-theme-default-text-primary-on-text-primary,#fff);background-color:#323232}.md-steppers.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-steppers.md-theme-default .md-stepper-icon:after,.md-steppers.md-theme-default .md-stepper-icon:before,.md-steppers.md-theme-default .md-stepper-number:after,.md-steppers.md-theme-default .md-stepper-number:before,.md-steppers.md-theme-default .md-stepper:after,.md-steppers.md-theme-default .md-stepper:before{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-steppers.md-theme-default .md-stepper-number{background-color:rgba(0,0,0,.38);background-color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38));color:#fff;color:var(--md-theme-default-text-primary-on-text-hint,#fff)}.md-steppers.md-theme-default .md-stepper-number svg{color:#fff;color:var(--md-theme-default-text-primary-on-text-hint,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-text-hint,#fff)}.md-steppers.md-theme-default .md-stepper-header .md-button-content{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-steppers.md-theme-default .md-stepper-header .md-button-content:after,.md-steppers.md-theme-default .md-stepper-header .md-button-content:before{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-steppers.md-theme-default .md-stepper-header.md-active .md-button-content,.md-steppers.md-theme-default .md-stepper-header.md-done .md-button-content{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-steppers.md-theme-default .md-stepper-header.md-active .md-stepper-number,.md-steppers.md-theme-default .md-stepper-header.md-done .md-stepper-number{background-color:#448aff;background-color:var(--md-theme-default-primary-on-background,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-steppers.md-theme-default .md-stepper-header.md-active .md-stepper-number svg,.md-steppers.md-theme-default .md-stepper-header.md-done .md-stepper-number svg{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-steppers.md-theme-default .md-stepper-header.md-error .md-button-content{color:#ff1744;color:var(--md-theme-default-steppervariant,#ff1744)}.md-steppers.md-theme-default .md-stepper-header.md-error .md-icon svg{color:#ff1744;color:var(--md-theme-default-steppervariant,#ff1744);fill:#ff1744;fill:var(--md-theme-default-steppervariant,#ff1744)}.md-subheader.md-theme-default{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-subheader.md-theme-default.md-primary{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-switch.md-theme-default.md-checked .md-switch-container{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-switch.md-theme-default.md-checked .md-switch-thumb{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-switch.md-theme-default.md-checked .md-ripple{color:#ff5252;color:var(--md-theme-default-accent,#ff5252)}.md-switch.md-theme-default.md-checked.md-primary .md-switch-container{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-switch.md-theme-default.md-checked.md-primary .md-switch-thumb{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-switch.md-theme-default.md-checked.md-primary .md-ripple{color:#448aff;color:var(--md-theme-default-primary,#448aff)}.md-switch.md-theme-default .md-switch-container{background-color:rgba(0,0,0,.38)}.md-switch.md-theme-default .md-switch-thumb{background-color:#f5f5f5;background-color:var(--md-theme-default-switchvariant,#f5f5f5)}.md-switch.md-theme-default.md-disabled .md-switch-container{background-color:rgba(0,0,0,.12)}.md-switch.md-theme-default.md-disabled .md-switch-thumb{background-color:#bdbdbd;background-color:var(--md-theme-default-switchvariant,#bdbdbd)}.md-table.md-theme-default .md-table-alternate-header,.md-table.md-theme-default .md-table-content{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-table.md-theme-default .md-table-alternate-header .md-table-toolbar{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87));background-color:rgba(255,82,82,.2);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.2))}.md-table.md-theme-default .md-table-row:hover:not(.md-header-row) .md-table-cell{background-color:rgba(0,0,0,.08);background-color:var(--md-theme-default-highlight-on-background,rgba(0,0,0,.08))}.md-table.md-theme-default .md-table-row.md-selected,.md-table.md-theme-default .md-table-row.md-selected-single{background-color:#f5f5f5;background-color:var(--md-theme-default-rowvariant,#f5f5f5)}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary,.md-table.md-theme-default .md-table-row.md-selected.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary-on-background,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary .md-ripple,.md-table.md-theme-default .md-table-row.md-selected.md-primary .md-ripple{color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary .md-checkbox-container,.md-table.md-theme-default .md-table-row.md-selected.md-primary .md-checkbox-container{background-color:#fff;border-color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary .md-checkbox-container:after,.md-table.md-theme-default .md-table-row.md-selected.md-primary .md-checkbox-container:after{border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent,.md-table.md-theme-default .md-table-row.md-selected.md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent-on-background,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent .md-ripple,.md-table.md-theme-default .md-table-row.md-selected.md-accent .md-ripple{color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent .md-checkbox-container,.md-table.md-theme-default .md-table-row.md-selected.md-accent .md-checkbox-container{background-color:#fff;border-color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent .md-checkbox-container:after,.md-table.md-theme-default .md-table-row.md-selected.md-accent .md-checkbox-container:after{border-color:#ff5252;border-color:var(--md-theme-default-accent,#ff5252)}.md-table.md-theme-default .md-table-row td{border-top-color:rgba(0,0,0,.12);border-top-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-table.md-theme-default .md-table-head{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-table.md-theme-default .md-table-fixed-header-active{border-bottom-color:rgba(0,0,0,.12);border-bottom-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-table.md-theme-default .md-sortable.md-sorted,.md-table.md-theme-default .md-sortable:hover{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-table.md-theme-default .md-sortable.md-sorted svg,.md-table.md-theme-default .md-sortable:hover svg{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87));fill:rgba(0,0,0,.87);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-table.md-theme-default .md-table-pagination{border-top-color:rgba(0,0,0,.12);border-top-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-tabs.md-theme-default .md-tabs-navigation{background-color:#fff;background-color:var(--md-theme-default-background-on-background,#fff)}.md-tabs.md-theme-default .md-tabs-navigation .md-button{color:rgba(0,0,0,.7);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.7))}.md-tabs.md-theme-default .md-tabs-navigation .md-button[disabled]{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.38))}.md-tabs.md-theme-default .md-tabs-navigation .md-button .md-icon{color:rgba(0,0,0,.7);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.7))}.md-tabs.md-theme-default .md-tabs-navigation .md-button .md-icon svg{fill:rgba(0,0,0,.7);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.7))}.md-tabs.md-theme-default .md-tabs-navigation .md-button.md-active,.md-tabs.md-theme-default .md-tabs-navigation .md-button.md-active .md-icon{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-tabs.md-theme-default .md-tabs-navigation .md-button.md-active .md-icon svg{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-tabs.md-theme-default.md-primary .md-tabs-navigation,.md-tabs.md-theme-default .md-tabs-indicator{background-color:#448aff;background-color:var(--md-theme-default-primary-on-background,#448aff)}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button[disabled]{color:hsla(0,0%,100%,.38);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.38))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button .md-icon{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button .md-icon svg{fill:hsla(0,0%,100%,.7);fill:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button.md-active,.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button.md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button.md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-tabs.md-theme-default.md-primary .md-tabs-indicator{background-color:#fff;background-color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-tabs.md-theme-default.md-accent .md-tabs-navigation{background-color:#ff5252;background-color:var(--md-theme-default-accent-on-background,#ff5252)}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button[disabled]{color:hsla(0,0%,100%,.38);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.38))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button .md-icon{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button .md-icon svg{fill:hsla(0,0%,100%,.7);fill:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button.md-active,.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button.md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button.md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-tabs.md-theme-default.md-accent .md-tabs-indicator{background-color:#fff;background-color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default{background-color:#f5f5f5;background-color:var(--md-theme-default-toolbarvariant,#f5f5f5)}.md-toolbar.md-theme-default,.md-toolbar.md-theme-default .md-icon{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-toolbar.md-theme-default .md-icon svg{fill:rgba(0,0,0,.87);fill:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-toolbar.md-theme-default .md-display-1,.md-toolbar.md-theme-default .md-display-2,.md-toolbar.md-theme-default .md-title{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-toolbar.md-theme-default.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-toolbar.md-theme-default.md-primary,.md-toolbar.md-theme-default.md-primary .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar.md-theme-default.md-primary .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar.md-theme-default.md-primary .md-button:not([disabled]):not(.md-raised),.md-toolbar.md-theme-default.md-primary .md-display-1,.md-toolbar.md-theme-default.md-primary .md-display-2,.md-toolbar.md-theme-default.md-primary .md-title{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar.md-theme-default.md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-toolbar.md-theme-default.md-accent,.md-toolbar.md-theme-default.md-accent .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default.md-accent .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default.md-accent .md-button:not([disabled]):not(.md-raised),.md-toolbar.md-theme-default.md-accent .md-display-1,.md-toolbar.md-theme-default.md-accent .md-display-2,.md-toolbar.md-theme-default.md-accent .md-title{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default.md-transparent{background-color:transparent}.md-toolbar.md-theme-default.md-transparent,.md-toolbar.md-theme-default.md-transparent .md-icon{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-toolbar.md-theme-default.md-transparent .md-icon svg{fill:rgba(0,0,0,.87);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-toolbar.md-theme-default.md-transparent .md-display-1,.md-toolbar.md-theme-default.md-transparent .md-display-2,.md-toolbar.md-theme-default.md-transparent .md-title{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-tooltip.md-theme-default{color:#fff;color:var(--md-theme-default-text-primary-on-tooltip,#fff);background-color:rgba(97,97,97,.9);background-color:var(--md-theme-default-tooltip-on-background,rgba(97,97,97,.9))}.md-badge.md-theme-default{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff);background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-badge.md-theme-default.md-primary{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff);background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}",""]),e.exports=t},function(e,t,n){!function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e){var n=this,r=!1;return t(this).one(l.TRANSITION_END,(function(){r=!0})),setTimeout((function(){r||l.triggerTransitionEnd(n)}),e),this}t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var l={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var n=t(e).css("transition-duration"),r=t(e).css("transition-delay"),i=parseFloat(n),o=parseFloat(r);return i||o?(n=n.split(",")[0],r=r.split(",")[0],1e3*(parseFloat(n)+parseFloat(r))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){t(e).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r],o=t[r],a=o&&l.isElement(o)?"element":(s=o,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(i).test(a))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+i+'".')}var s},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?l.findShadowRoot(e.parentNode):null},jQueryDetection:function(){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};l.jQueryDetection(),t.fn.emulateTransitionEnd=c,t.event.special[l.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var u="alert",d=t.fn[u],f={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},h="alert",p="fade",m="show",v=function(){function e(e){this._element=e}var n=e.prototype;return n.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(e){var n=l.getSelectorFromElement(e),r=!1;return n&&(r=document.querySelector(n)),r||(r=t(e).closest("."+h)[0]),r},n._triggerCloseEvent=function(e){var n=t.Event(f.CLOSE);return t(e).trigger(n),n},n._removeElement=function(e){var n=this;if(t(e).removeClass(m),t(e).hasClass(p)){var r=l.getTransitionDurationFromElement(e);t(e).one(l.TRANSITION_END,(function(t){return n._destroyElement(e,t)})).emulateTransitionEnd(r)}else this._destroyElement(e)},n._destroyElement=function(e){t(e).detach().trigger(f.CLOSED).remove()},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data("bs.alert");i||(i=new e(this),r.data("bs.alert",i)),"close"===n&&i[n](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(f.CLICK_DATA_API,'[data-dismiss="alert"]',v._handleDismiss(new v)),t.fn[u]=v._jQueryInterface,t.fn[u].Constructor=v,t.fn[u].noConflict=function(){return t.fn[u]=d,v._jQueryInterface};var g=t.fn.button,b="active",y="btn",k="focus",w='[data-toggle^="button"]',_='[data-toggle="buttons"]',C='[data-toggle="button"]',A='[data-toggle="buttons"] .btn',x='input:not([type="hidden"])',S=".active",M=".btn",E={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api",LOAD_DATA_API:"load.bs.button.data-api"},T=function(){function e(e){this._element=e}var n=e.prototype;return n.toggle=function(){var e=!0,n=!0,r=t(this._element).closest(_)[0];if(r){var i=this._element.querySelector(x);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(b))e=!1;else{var o=r.querySelector(S);o&&t(o).removeClass(b)}else"checkbox"===i.type?"LABEL"===this._element.tagName&&i.checked===this._element.classList.contains(b)&&(e=!1):e=!1;e&&(i.checked=!this._element.classList.contains(b),t(i).trigger("change")),i.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(b)),e&&t(this._element).toggleClass(b))},n.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.button");r||(r=new e(this),t(this).data("bs.button",r)),"toggle"===n&&r[n]()}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(E.CLICK_DATA_API,w,(function(e){var n=e.target;if(t(n).hasClass(y)||(n=t(n).closest(M)[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))e.preventDefault();else{var r=n.querySelector(x);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void e.preventDefault();T._jQueryInterface.call(t(n),"toggle")}})).on(E.FOCUS_BLUR_DATA_API,w,(function(e){var n=t(e.target).closest(M)[0];t(n).toggleClass(k,/^focus(in)?$/.test(e.type))})),t(window).on(E.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(A)),t=0,n=e.length;t<n;t++){var r=e[t],i=r.querySelector(x);i.checked||i.hasAttribute("checked")?r.classList.add(b):r.classList.remove(b)}for(var o=0,a=(e=[].slice.call(document.querySelectorAll(C))).length;o<a;o++){var s=e[o];"true"===s.getAttribute("aria-pressed")?s.classList.add(b):s.classList.remove(b)}})),t.fn.button=T._jQueryInterface,t.fn.button.Constructor=T,t.fn.button.noConflict=function(){return t.fn.button=g,T._jQueryInterface};var D="carousel",O=".bs.carousel",P=t.fn[D],I={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},j={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},N="next",R="prev",L="left",B="right",F={SLIDE:"slide"+O,SLID:"slid"+O,KEYDOWN:"keydown"+O,MOUSEENTER:"mouseenter"+O,MOUSELEAVE:"mouseleave"+O,TOUCHSTART:"touchstart"+O,TOUCHMOVE:"touchmove"+O,TOUCHEND:"touchend"+O,POINTERDOWN:"pointerdown"+O,POINTERUP:"pointerup"+O,DRAG_START:"dragstart"+O,LOAD_DATA_API:"load"+O+".data-api",CLICK_DATA_API:"click"+O+".data-api"},z="carousel",V="active",$="slide",H="carousel-item-right",U="carousel-item-left",q="carousel-item-next",W="carousel-item-prev",Y="pointer-event",K=".active",G=".active.carousel-item",Q=".carousel-item",X=".carousel-item img",J=".carousel-item-next, .carousel-item-prev",Z=".carousel-indicators",ee="[data-slide], [data-slide-to]",te='[data-ride="carousel"]',ne={TOUCH:"touch",PEN:"pen"},re=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(Z),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=e.prototype;return n.next=function(){this._isSliding||this._slide(N)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(R)},n.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(J)&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(e){var n=this;this._activeElement=this._element.querySelector(G);var r=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(F.SLID,(function(){return n.to(e)}));else{if(r===e)return this.pause(),void this.cycle();var i=e>r?N:R;this._slide(i,this._items[e])}},n.dispose=function(){t(this._element).off(O),t.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(e){return e=s({},I,{},e),l.typeCheckConfig(D,e,j),e},n._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},n._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(F.KEYDOWN,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&t(this._element).on(F.MOUSEENTER,(function(t){return e.pause(t)})).on(F.MOUSELEAVE,(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var n=function(t){e._pointerEvent&&ne[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){e._pointerEvent&&ne[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};t(this._element.querySelectorAll(X)).on(F.DRAG_START,(function(e){return e.preventDefault()})),this._pointerEvent?(t(this._element).on(F.POINTERDOWN,(function(e){return n(e)})),t(this._element).on(F.POINTERUP,(function(e){return r(e)})),this._element.classList.add(Y)):(t(this._element).on(F.TOUCHSTART,(function(e){return n(e)})),t(this._element).on(F.TOUCHMOVE,(function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)})),t(this._element).on(F.TOUCHEND,(function(e){return r(e)})))}},n._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},n._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Q)):[],this._items.indexOf(e)},n._getItemByDirection=function(e,t){var n=e===N,r=e===R,i=this._getItemIndex(t),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return t;var a=(i+(e===R?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},n._triggerSlideEvent=function(e,n){var r=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(G)),o=t.Event(F.SLIDE,{relatedTarget:e,direction:n,from:i,to:r});return t(this._element).trigger(o),o},n._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(K));t(n).removeClass(V);var r=this._indicatorsElement.children[this._getItemIndex(e)];r&&t(r).addClass(V)}},n._slide=function(e,n){var r,i,o,a=this,s=this._element.querySelector(G),c=this._getItemIndex(s),u=n||s&&this._getItemByDirection(e,s),d=this._getItemIndex(u),f=Boolean(this._interval);if(e===N?(r=U,i=q,o=L):(r=H,i=W,o=B),u&&t(u).hasClass(V))this._isSliding=!1;else if(!this._triggerSlideEvent(u,o).isDefaultPrevented()&&s&&u){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(u);var h=t.Event(F.SLID,{relatedTarget:u,direction:o,from:c,to:d});if(t(this._element).hasClass($)){t(u).addClass(i),l.reflow(u),t(s).addClass(r),t(u).addClass(r);var p=parseInt(u.getAttribute("data-interval"),10);p?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=p):this._config.interval=this._config.defaultInterval||this._config.interval;var m=l.getTransitionDurationFromElement(s);t(s).one(l.TRANSITION_END,(function(){t(u).removeClass(r+" "+i).addClass(V),t(s).removeClass(V+" "+i+" "+r),a._isSliding=!1,setTimeout((function(){return t(a._element).trigger(h)}),0)})).emulateTransitionEnd(m)}else t(s).removeClass(V),t(u).addClass(V),this._isSliding=!1,t(this._element).trigger(h);f&&this.cycle()}},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.carousel"),i=s({},I,{},t(this).data());"object"==typeof n&&(i=s({},i,{},n));var o="string"==typeof n?n:i.slide;if(r||(r=new e(this,i),t(this).data("bs.carousel",r)),"number"==typeof n)r.to(n);else if("string"==typeof o){if(void 0===r[o])throw new TypeError('No method named "'+o+'"');r[o]()}else i.interval&&i.ride&&(r.pause(),r.cycle())}))},e._dataApiClickHandler=function(n){var r=l.getSelectorFromElement(this);if(r){var i=t(r)[0];if(i&&t(i).hasClass(z)){var o=s({},t(i).data(),{},t(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),e._jQueryInterface.call(t(i),o),a&&t(i).data("bs.carousel").to(a),n.preventDefault()}}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return I}}]),e}();t(document).on(F.CLICK_DATA_API,ee,re._dataApiClickHandler),t(window).on(F.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(te)),n=0,r=e.length;n<r;n++){var i=t(e[n]);re._jQueryInterface.call(i,i.data())}})),t.fn[D]=re._jQueryInterface,t.fn[D].Constructor=re,t.fn[D].noConflict=function(){return t.fn[D]=P,re._jQueryInterface};var ie="collapse",oe=t.fn[ie],ae={toggle:!0,parent:""},se={toggle:"boolean",parent:"(string|element)"},ce={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},le="show",ue="collapse",de="collapsing",fe="collapsed",he="width",pe="height",me=".show, .collapsing",ve='[data-toggle="collapse"]',ge=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ve)),r=0,i=n.length;r<i;r++){var o=n[r],a=l.getSelectorFromElement(o),s=[].slice.call(document.querySelectorAll(a)).filter((function(t){return t===e}));null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=e.prototype;return n.toggle=function(){t(this._element).hasClass(le)?this.hide():this.show()},n.show=function(){var n,r,i=this;if(!(this._isTransitioning||t(this._element).hasClass(le)||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(me)).filter((function(e){return"string"==typeof i._config.parent?e.getAttribute("data-parent")===i._config.parent:e.classList.contains(ue)}))).length&&(n=null),n&&(r=t(n).not(this._selector).data("bs.collapse"))&&r._isTransitioning))){var o=t.Event(ce.SHOW);if(t(this._element).trigger(o),!o.isDefaultPrevented()){n&&(e._jQueryInterface.call(t(n).not(this._selector),"hide"),r||t(n).data("bs.collapse",null));var a=this._getDimension();t(this._element).removeClass(ue).addClass(de),this._element.style[a]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(fe).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(a[0].toUpperCase()+a.slice(1)),c=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(){t(i._element).removeClass(de).addClass(ue).addClass(le),i._element.style[a]="",i.setTransitioning(!1),t(i._element).trigger(ce.SHOWN)})).emulateTransitionEnd(c),this._element.style[a]=this._element[s]+"px"}}},n.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(le)){var n=t.Event(ce.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",l.reflow(this._element),t(this._element).addClass(de).removeClass(ue).removeClass(le);var i=this._triggerArray.length;if(i>0)for(var o=0;o<i;o++){var a=this._triggerArray[o],s=l.getSelectorFromElement(a);null!==s&&(t([].slice.call(document.querySelectorAll(s))).hasClass(le)||t(a).addClass(fe).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[r]="";var c=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(){e.setTransitioning(!1),t(e._element).removeClass(de).addClass(ue).trigger(ce.HIDDEN)})).emulateTransitionEnd(c)}}},n.setTransitioning=function(e){this._isTransitioning=e},n.dispose=function(){t.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},n._getConfig=function(e){return(e=s({},ae,{},e)).toggle=Boolean(e.toggle),l.typeCheckConfig(ie,e,se),e},n._getDimension=function(){return t(this._element).hasClass(he)?he:pe},n._getParent=function(){var n,r=this;l.isElement(this._config.parent)?(n=this._config.parent,void 0!==this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(n.querySelectorAll(i));return t(o).each((function(t,n){r._addAriaAndCollapsedClass(e._getTargetFromElement(n),[n])})),n},n._addAriaAndCollapsedClass=function(e,n){var r=t(e).hasClass(le);n.length&&t(n).toggleClass(fe,!r).attr("aria-expanded",r)},e._getTargetFromElement=function(e){var t=l.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data("bs.collapse"),o=s({},ae,{},r.data(),{},"object"==typeof n&&n?n:{});if(!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||(i=new e(this,o),r.data("bs.collapse",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ae}}]),e}();t(document).on(ce.CLICK_DATA_API,ve,(function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=t(this),r=l.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(r));t(i).each((function(){var e=t(this),r=e.data("bs.collapse")?"toggle":n.data();ge._jQueryInterface.call(e,r)}))})),t.fn[ie]=ge._jQueryInterface,t.fn[ie].Constructor=ge,t.fn[ie].noConflict=function(){return t.fn[ie]=oe,ge._jQueryInterface};var be="dropdown",ye=t.fn[be],ke=new RegExp("38|40|27"),we={HIDE:"hide.bs.dropdown",HIDDEN:"hidden.bs.dropdown",SHOW:"show.bs.dropdown",SHOWN:"shown.bs.dropdown",CLICK:"click.bs.dropdown",CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},_e="disabled",Ce="show",Ae="dropup",xe="dropright",Se="dropleft",Me="dropdown-menu-right",Ee="position-static",Te='[data-toggle="dropdown"]',De=".dropdown form",Oe=".dropdown-menu",Pe=".navbar-nav",Ie=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",je="top-start",Ne="top-end",Re="bottom-start",Le="bottom-end",Be="right-start",Fe="left-start",ze={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Ve={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},$e=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var r=e.prototype;return r.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(_e)){var n=t(this._menu).hasClass(Ce);e._clearMenus(),n||this.show(!0)}},r.show=function(r){if(void 0===r&&(r=!1),!(this._element.disabled||t(this._element).hasClass(_e)||t(this._menu).hasClass(Ce))){var i={relatedTarget:this._element},o=t.Event(we.SHOW,i),a=e._getParentFromElement(this._element);if(t(a).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&r){if(void 0===n)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var s=this._element;"parent"===this._config.reference?s=a:l.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t(a).addClass(Ee),this._popper=new n(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(a).closest(Pe).length&&t(document.body).children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(Ce),t(a).toggleClass(Ce).trigger(t.Event(we.SHOWN,i))}}},r.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(_e)&&t(this._menu).hasClass(Ce)){var n={relatedTarget:this._element},r=t.Event(we.HIDE,n),i=e._getParentFromElement(this._element);t(i).trigger(r),r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),t(this._menu).toggleClass(Ce),t(i).toggleClass(Ce).trigger(t.Event(we.HIDDEN,n)))}},r.dispose=function(){t.removeData(this._element,"bs.dropdown"),t(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},r.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},r._addEventListeners=function(){var e=this;t(this._element).on(we.CLICK,(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},r._getConfig=function(e){return e=s({},this.constructor.Default,{},t(this._element).data(),{},e),l.typeCheckConfig(be,e,this.constructor.DefaultType),e},r._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(Oe))}return this._menu},r._getPlacement=function(){var e=t(this._element.parentNode),n=Re;return e.hasClass(Ae)?(n=je,t(this._menu).hasClass(Me)&&(n=Ne)):e.hasClass(xe)?n=Be:e.hasClass(Se)?n=Fe:t(this._menu).hasClass(Me)&&(n=Le),n},r._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},r._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,{},e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},r._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),s({},e,{},this._config.popperConfig)},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.dropdown");if(r||(r=new e(this,"object"==typeof n?n:null),t(this).data("bs.dropdown",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},e._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var r=[].slice.call(document.querySelectorAll(Te)),i=0,o=r.length;i<o;i++){var a=e._getParentFromElement(r[i]),s=t(r[i]).data("bs.dropdown"),c={relatedTarget:r[i]};if(n&&"click"===n.type&&(c.clickEvent=n),s){var l=s._menu;if(t(a).hasClass(Ce)&&!(n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"keyup"===n.type&&9===n.which)&&t.contains(a,n.target))){var u=t.Event(we.HIDE,c);t(a).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),r[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),t(l).removeClass(Ce),t(a).removeClass(Ce).trigger(t.Event(we.HIDDEN,c)))}}}},e._getParentFromElement=function(e){var t,n=l.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},e._dataApiKeydownHandler=function(n){if(!(/input|textarea/i.test(n.target.tagName)?32===n.which||27!==n.which&&(40!==n.which&&38!==n.which||t(n.target).closest(Oe).length):!ke.test(n.which))&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!t(this).hasClass(_e))){var r=e._getParentFromElement(this),i=t(r).hasClass(Ce);if(i||27!==n.which)if(i&&(!i||27!==n.which&&32!==n.which)){var o=[].slice.call(r.querySelectorAll(Ie)).filter((function(e){return t(e).is(":visible")}));if(0!==o.length){var a=o.indexOf(n.target);38===n.which&&a>0&&a--,40===n.which&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}else{if(27===n.which){var s=r.querySelector(Te);t(s).trigger("focus")}t(this).trigger("click")}}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ze}},{key:"DefaultType",get:function(){return Ve}}]),e}();t(document).on(we.KEYDOWN_DATA_API,Te,$e._dataApiKeydownHandler).on(we.KEYDOWN_DATA_API,Oe,$e._dataApiKeydownHandler).on(we.CLICK_DATA_API+" "+we.KEYUP_DATA_API,$e._clearMenus).on(we.CLICK_DATA_API,Te,(function(e){e.preventDefault(),e.stopPropagation(),$e._jQueryInterface.call(t(this),"toggle")})).on(we.CLICK_DATA_API,De,(function(e){e.stopPropagation()})),t.fn[be]=$e._jQueryInterface,t.fn[be].Constructor=$e,t.fn[be].noConflict=function(){return t.fn[be]=ye,$e._jQueryInterface};var He=t.fn.modal,Ue={backdrop:!0,keyboard:!0,focus:!0,show:!0},qe={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},We={HIDE:"hide.bs.modal",HIDE_PREVENTED:"hidePrevented.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},Ye="modal-dialog-scrollable",Ke="modal-scrollbar-measure",Ge="modal-backdrop",Qe="modal-open",Xe="fade",Je="show",Ze="modal-static",et=".modal-dialog",tt=".modal-body",nt='[data-toggle="modal"]',rt='[data-dismiss="modal"]',it=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ot=".sticky-top",at=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(et),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var n=e.prototype;return n.toggle=function(e){return this._isShown?this.hide():this.show(e)},n.show=function(e){var n=this;if(!this._isShown&&!this._isTransitioning){t(this._element).hasClass(Xe)&&(this._isTransitioning=!0);var r=t.Event(We.SHOW,{relatedTarget:e});t(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(We.CLICK_DISMISS,rt,(function(e){return n.hide(e)})),t(this._dialog).on(We.MOUSEDOWN_DISMISS,(function(){t(n._element).one(We.MOUSEUP_DISMISS,(function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return n._showElement(e)})))}},n.hide=function(e){var n=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var r=t.Event(We.HIDE);if(t(this._element).trigger(r),this._isShown&&!r.isDefaultPrevented()){this._isShown=!1;var i=t(this._element).hasClass(Xe);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(We.FOCUSIN),t(this._element).removeClass(Je),t(this._element).off(We.CLICK_DISMISS),t(this._dialog).off(We.MOUSEDOWN_DISMISS),i){var o=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(e){return n._hideModal(e)})).emulateTransitionEnd(o)}else this._hideModal()}}},n.dispose=function(){[window,this._element,this._dialog].forEach((function(e){return t(e).off(".bs.modal")})),t(document).off(We.FOCUSIN),t.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(e){return e=s({},Ue,{},e),l.typeCheckConfig("modal",e,qe),e},n._triggerBackdropTransition=function(){var e=this;if("static"===this._config.backdrop){var n=t.Event(We.HIDE_PREVENTED);if(t(this._element).trigger(n),n.defaultPrevented)return;this._element.classList.add(Ze);var r=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(){e._element.classList.remove(Ze)})).emulateTransitionEnd(r),this._element.focus()}else this.hide()},n._showElement=function(e){var n=this,r=t(this._element).hasClass(Xe),i=this._dialog?this._dialog.querySelector(tt):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),t(this._dialog).hasClass(Ye)&&i?i.scrollTop=0:this._element.scrollTop=0,r&&l.reflow(this._element),t(this._element).addClass(Je),this._config.focus&&this._enforceFocus();var o=t.Event(We.SHOWN,{relatedTarget:e}),a=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,t(n._element).trigger(o)};if(r){var s=l.getTransitionDurationFromElement(this._dialog);t(this._dialog).one(l.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},n._enforceFocus=function(){var e=this;t(document).off(We.FOCUSIN).on(We.FOCUSIN,(function(n){document!==n.target&&e._element!==n.target&&0===t(e._element).has(n.target).length&&e._element.focus()}))},n._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(We.KEYDOWN_DISMISS,(function(t){27===t.which&&e._triggerBackdropTransition()})):this._isShown||t(this._element).off(We.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var e=this;this._isShown?t(window).on(We.RESIZE,(function(t){return e.handleUpdate(t)})):t(window).off(We.RESIZE)},n._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop((function(){t(document.body).removeClass(Qe),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(We.HIDDEN)}))},n._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(e){var n=this,r=t(this._element).hasClass(Xe)?Xe:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Ge,r&&this._backdrop.classList.add(r),t(this._backdrop).appendTo(document.body),t(this._element).on(We.CLICK_DISMISS,(function(e){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:e.target===e.currentTarget&&n._triggerBackdropTransition()})),r&&l.reflow(this._backdrop),t(this._backdrop).addClass(Je),!e)return;if(!r)return void e();var i=l.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(l.TRANSITION_END,e).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(Je);var o=function(){n._removeBackdrop(),e&&e()};if(t(this._element).hasClass(Xe)){var a=l.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(l.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else e&&e()},n._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var n=[].slice.call(document.querySelectorAll(it)),r=[].slice.call(document.querySelectorAll(ot));t(n).each((function(n,r){var i=r.style.paddingRight,o=t(r).css("padding-right");t(r).data("padding-right",i).css("padding-right",parseFloat(o)+e._scrollbarWidth+"px")})),t(r).each((function(n,r){var i=r.style.marginRight,o=t(r).css("margin-right");t(r).data("margin-right",i).css("margin-right",parseFloat(o)-e._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,o=t(document.body).css("padding-right");t(document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}t(document.body).addClass(Qe)},n._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(it));t(e).each((function(e,n){var r=t(n).data("padding-right");t(n).removeData("padding-right"),n.style.paddingRight=r||""}));var n=[].slice.call(document.querySelectorAll(""+ot));t(n).each((function(e,n){var r=t(n).data("margin-right");void 0!==r&&t(n).css("margin-right",r).removeData("margin-right")}));var r=t(document.body).data("padding-right");t(document.body).removeData("padding-right"),document.body.style.paddingRight=r||""},n._getScrollbarWidth=function(){var e=document.createElement("div");e.className=Ke,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(n,r){return this.each((function(){var i=t(this).data("bs.modal"),o=s({},Ue,{},t(this).data(),{},"object"==typeof n&&n?n:{});if(i||(i=new e(this,o),t(this).data("bs.modal",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n](r)}else o.show&&i.show(r)}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Ue}}]),e}();t(document).on(We.CLICK_DATA_API,nt,(function(e){var n,r=this,i=l.getSelectorFromElement(this);i&&(n=document.querySelector(i));var o=t(n).data("bs.modal")?"toggle":s({},t(n).data(),{},t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=t(n).one(We.SHOW,(function(e){e.isDefaultPrevented()||a.one(We.HIDDEN,(function(){t(r).is(":visible")&&r.focus()}))}));at._jQueryInterface.call(t(n),o,this)})),t.fn.modal=at._jQueryInterface,t.fn.modal.Constructor=at,t.fn.modal.noConflict=function(){return t.fn.modal=He,at._jQueryInterface};var st=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],ct={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},lt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ut=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function dt(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);for(var r=(new window.DOMParser).parseFromString(e,"text/html"),i=Object.keys(t),o=[].slice.call(r.body.querySelectorAll("*")),a=function(e,n){var r=o[e],a=r.nodeName.toLowerCase();if(-1===i.indexOf(r.nodeName.toLowerCase()))return r.parentNode.removeChild(r),"continue";var s=[].slice.call(r.attributes),c=[].concat(t["*"]||[],t[a]||[]);s.forEach((function(e){(function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===st.indexOf(n)||Boolean(e.nodeValue.match(lt)||e.nodeValue.match(ut));for(var r=t.filter((function(e){return e instanceof RegExp})),i=0,o=r.length;i<o;i++)if(n.match(r[i]))return!0;return!1})(e,c)||r.removeAttribute(e.nodeName)}))},s=0,c=o.length;s<c;s++)a(s);return r.body.innerHTML}var ft="tooltip",ht=t.fn[ft],pt=new RegExp("(^|\\s)bs-tooltip\\S+","g"),mt=["sanitize","whiteList","sanitizeFn"],vt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},gt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},bt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:ct,popperConfig:null},yt="show",kt="out",wt={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},_t="fade",Ct="show",At=".tooltip-inner",xt=".arrow",St="hover",Mt="focus",Et="click",Tt="manual",Dt=function(){function e(e,t){if(void 0===n)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var r=e.prototype;return r.enable=function(){this._isEnabled=!0},r.disable=function(){this._isEnabled=!1},r.toggleEnabled=function(){this._isEnabled=!this._isEnabled},r.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,r=t(e.currentTarget).data(n);r||(r=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(t(this.getTipElement()).hasClass(Ct))return void this._leave(null,this);this._enter(null,this)}},r.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},r.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var r=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(r);var i=l.findShadowRoot(this.element),o=t.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(r.isDefaultPrevented()||!o)return;var a=this.getTipElement(),s=l.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&t(a).addClass(_t);var c="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,u=this._getAttachment(c);this.addAttachmentClass(u);var d=this._getContainer();t(a).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(a).appendTo(d),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,a,this._getPopperConfig(u)),t(a).addClass(Ct),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var f=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===kt&&e._leave(null,e)};if(t(this.tip).hasClass(_t)){var h=l.getTransitionDurationFromElement(this.tip);t(this.tip).one(l.TRANSITION_END,f).emulateTransitionEnd(h)}else f()}},r.hide=function(e){var n=this,r=this.getTipElement(),i=t.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==yt&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};if(t(this.element).trigger(i),!i.isDefaultPrevented()){if(t(r).removeClass(Ct),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[Et]=!1,this._activeTrigger[Mt]=!1,this._activeTrigger[St]=!1,t(this.tip).hasClass(_t)){var a=l.getTransitionDurationFromElement(r);t(r).one(l.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},r.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},r.isWithContent=function(){return Boolean(this.getTitle())},r.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},r.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},r.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(At)),this.getTitle()),t(e).removeClass(_t+" "+Ct)},r.setElementContent=function(e,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=dt(n,this.config.whiteList,this.config.sanitizeFn)),e.html(n)):e.text(n):this.config.html?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text())},r.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},r._getPopperConfig=function(e){var t=this;return s({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:xt},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},r._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},r._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},r._getAttachment=function(e){return gt[e.toUpperCase()]},r._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if(n!==Tt){var r=n===St?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i=n===St?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(r,e.config.selector,(function(t){return e._enter(t)})).on(i,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},r._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},r._enter=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusin"===e.type?Mt:St]=!0),t(n.getTipElement()).hasClass(Ct)||n._hoverState===yt?n._hoverState=yt:(clearTimeout(n._timeout),n._hoverState=yt,n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){n._hoverState===yt&&n.show()}),n.config.delay.show):n.show())},r._leave=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusout"===e.type?Mt:St]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=kt,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){n._hoverState===kt&&n.hide()}),n.config.delay.hide):n.hide())},r._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},r._getConfig=function(e){var n=t(this.element).data();return Object.keys(n).forEach((function(e){-1!==mt.indexOf(e)&&delete n[e]})),"number"==typeof(e=s({},this.constructor.Default,{},n,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),l.typeCheckConfig(ft,e,this.constructor.DefaultType),e.sanitize&&(e.template=dt(e.template,e.whiteList,e.sanitizeFn)),e},r._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},r._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(pt);null!==n&&n.length&&e.removeClass(n.join(""))},r._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},r._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(_t),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.tooltip"),i="object"==typeof n&&n;if((r||!/dispose|hide/.test(n))&&(r||(r=new e(this,i),t(this).data("bs.tooltip",r)),"string"==typeof n)){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return bt}},{key:"NAME",get:function(){return ft}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return wt}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return vt}}]),e}();t.fn[ft]=Dt._jQueryInterface,t.fn[ft].Constructor=Dt,t.fn[ft].noConflict=function(){return t.fn[ft]=ht,Dt._jQueryInterface};var Ot="popover",Pt=t.fn[Ot],It=new RegExp("(^|\\s)bs-popover\\S+","g"),jt=s({},Dt.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Nt=s({},Dt.DefaultType,{content:"(string|element|function)"}),Rt="fade",Lt="show",Bt=".popover-header",Ft=".popover-body",zt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},Vt=function(e){var n,r;function o(){return e.apply(this,arguments)||this}r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var a=o.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},a.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},a.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(Bt),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(Ft),n),e.removeClass(Rt+" "+Lt)},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(It);null!==n&&n.length>0&&e.removeClass(n.join(""))},o._jQueryInterface=function(e){return this.each((function(){var n=t(this).data("bs.popover"),r="object"==typeof e?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new o(this,r),t(this).data("bs.popover",n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},i(o,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return jt}},{key:"NAME",get:function(){return Ot}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return zt}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Nt}}]),o}(Dt);t.fn[Ot]=Vt._jQueryInterface,t.fn[Ot].Constructor=Vt,t.fn[Ot].noConflict=function(){return t.fn[Ot]=Pt,Vt._jQueryInterface};var $t="scrollspy",Ht=t.fn[$t],Ut={offset:10,method:"auto",target:""},qt={offset:"number",method:"string",target:"(string|element)"},Wt={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},Yt="dropdown-item",Kt="active",Gt='[data-spy="scroll"]',Qt=".nav, .list-group",Xt=".nav-link",Jt=".nav-item",Zt=".list-group-item",en=".dropdown",tn=".dropdown-item",nn=".dropdown-toggle",rn="offset",on="position",an=function(){function e(e,n){var r=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+Xt+","+this._config.target+" "+Zt+","+this._config.target+" "+tn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(Wt.SCROLL,(function(e){return r._process(e)})),this.refresh(),this._process()}var n=e.prototype;return n.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?rn:on,r="auto"===this._config.method?n:this._config.method,i=r===on?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var n,o=l.getSelectorFromElement(e);if(o&&(n=document.querySelector(o)),n){var a=n.getBoundingClientRect();if(a.width||a.height)return[t(n)[r]().top+i,o]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},n.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(e){if("string"!=typeof(e=s({},Ut,{},"object"==typeof e&&e?e:{})).target){var n=t(e.target).attr("id");n||(n=l.getUID($t),t(e.target).attr("id",n)),e.target="#"+n}return l.typeCheckConfig($t,e,qt),e},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e<this._offsets[i+1])&&this._activate(this._targets[i])}},n._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",").map((function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'})),r=t([].slice.call(document.querySelectorAll(n.join(","))));r.hasClass(Yt)?(r.closest(en).find(nn).addClass(Kt),r.addClass(Kt)):(r.addClass(Kt),r.parents(Qt).prev(Xt+", "+Zt).addClass(Kt),r.parents(Qt).prev(Jt).children(Xt).addClass(Kt)),t(this._scrollElement).trigger(Wt.ACTIVATE,{relatedTarget:e})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(e){return e.classList.contains(Kt)})).forEach((function(e){return e.classList.remove(Kt)}))},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.scrollspy");if(r||(r=new e(this,"object"==typeof n&&n),t(this).data("bs.scrollspy",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Ut}}]),e}();t(window).on(Wt.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(Gt)),n=e.length;n--;){var r=t(e[n]);an._jQueryInterface.call(r,r.data())}})),t.fn[$t]=an._jQueryInterface,t.fn[$t].Constructor=an,t.fn[$t].noConflict=function(){return t.fn[$t]=Ht,an._jQueryInterface};var sn=t.fn.tab,cn={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},ln="dropdown-menu",un="active",dn="disabled",fn="fade",hn="show",pn=".dropdown",mn=".nav, .list-group",vn=".active",gn="> li > .active",bn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',yn=".dropdown-toggle",kn="> .dropdown-menu .active",wn=function(){function e(e){this._element=e}var n=e.prototype;return n.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(un)||t(this._element).hasClass(dn))){var n,r,i=t(this._element).closest(mn)[0],o=l.getSelectorFromElement(this._element);if(i){var a="UL"===i.nodeName||"OL"===i.nodeName?gn:vn;r=(r=t.makeArray(t(i).find(a)))[r.length-1]}var s=t.Event(cn.HIDE,{relatedTarget:this._element}),c=t.Event(cn.SHOW,{relatedTarget:r});if(r&&t(r).trigger(s),t(this._element).trigger(c),!c.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(n=document.querySelector(o)),this._activate(this._element,i);var u=function(){var n=t.Event(cn.HIDDEN,{relatedTarget:e._element}),i=t.Event(cn.SHOWN,{relatedTarget:r});t(r).trigger(n),t(e._element).trigger(i)};n?this._activate(n,n.parentNode,u):u()}}},n.dispose=function(){t.removeData(this._element,"bs.tab"),this._element=null},n._activate=function(e,n,r){var i=this,o=(!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?t(n).children(vn):t(n).find(gn))[0],a=r&&o&&t(o).hasClass(fn),s=function(){return i._transitionComplete(e,o,r)};if(o&&a){var c=l.getTransitionDurationFromElement(o);t(o).removeClass(hn).one(l.TRANSITION_END,s).emulateTransitionEnd(c)}else s()},n._transitionComplete=function(e,n,r){if(n){t(n).removeClass(un);var i=t(n.parentNode).find(kn)[0];i&&t(i).removeClass(un),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(t(e).addClass(un),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),l.reflow(e),e.classList.contains(fn)&&e.classList.add(hn),e.parentNode&&t(e.parentNode).hasClass(ln)){var o=t(e).closest(pn)[0];if(o){var a=[].slice.call(o.querySelectorAll(yn));t(a).addClass(un)}e.setAttribute("aria-expanded",!0)}r&&r()},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data("bs.tab");if(i||(i=new e(this),r.data("bs.tab",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(cn.CLICK_DATA_API,bn,(function(e){e.preventDefault(),wn._jQueryInterface.call(t(this),"show")})),t.fn.tab=wn._jQueryInterface,t.fn.tab.Constructor=wn,t.fn.tab.noConflict=function(){return t.fn.tab=sn,wn._jQueryInterface};var _n=t.fn.toast,Cn={CLICK_DISMISS:"click.dismiss.bs.toast",HIDE:"hide.bs.toast",HIDDEN:"hidden.bs.toast",SHOW:"show.bs.toast",SHOWN:"shown.bs.toast"},An="fade",xn="hide",Sn="show",Mn="showing",En={animation:"boolean",autohide:"boolean",delay:"number"},Tn={animation:!0,autohide:!0,delay:500},Dn='[data-dismiss="toast"]',On=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var n=e.prototype;return n.show=function(){var e=this,n=t.Event(Cn.SHOW);if(t(this._element).trigger(n),!n.isDefaultPrevented()){this._config.animation&&this._element.classList.add(An);var r=function(){e._element.classList.remove(Mn),e._element.classList.add(Sn),t(e._element).trigger(Cn.SHOWN),e._config.autohide&&(e._timeout=setTimeout((function(){e.hide()}),e._config.delay))};if(this._element.classList.remove(xn),l.reflow(this._element),this._element.classList.add(Mn),this._config.animation){var i=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,r).emulateTransitionEnd(i)}else r()}},n.hide=function(){if(this._element.classList.contains(Sn)){var e=t.Event(Cn.HIDE);t(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Sn)&&this._element.classList.remove(Sn),t(this._element).off(Cn.CLICK_DISMISS),t.removeData(this._element,"bs.toast"),this._element=null,this._config=null},n._getConfig=function(e){return e=s({},Tn,{},t(this._element).data(),{},"object"==typeof e&&e?e:{}),l.typeCheckConfig("toast",e,this.constructor.DefaultType),e},n._setListeners=function(){var e=this;t(this._element).on(Cn.CLICK_DISMISS,Dn,(function(){return e.hide()}))},n._close=function(){var e=this,n=function(){e._element.classList.add(xn),t(e._element).trigger(Cn.HIDDEN)};if(this._element.classList.remove(Sn),this._config.animation){var r=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,n).emulateTransitionEnd(r)}else n()},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data("bs.toast");if(i||(i=new e(this,"object"==typeof n&&n),r.data("bs.toast",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n](this)}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return En}},{key:"Default",get:function(){return Tn}}]),e}();t.fn.toast=On._jQueryInterface,t.fn.toast.Constructor=On,t.fn.toast.noConflict=function(){return t.fn.toast=_n,On._jQueryInterface},e.Alert=v,e.Button=T,e.Carousel=re,e.Collapse=ge,e.Dropdown=$e,e.Modal=at,e.Popover=Vt,e.Scrollspy=an,e.Tab=wn,e.Toast=On,e.Tooltip=Dt,e.Util=l,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(15),n(53))},function(e,t,n){e.exports=n(100)},function(e,t,n){"use strict";var r=n(5),i=n(54),o=n(101),a=n(61);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(n(57));c.Axios=o,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(62),c.CancelToken=n(114),c.isCancel=n(56),c.all=function(e){return Promise.all(e)},c.spread=n(115),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";var r=n(5),i=n(55),o=n(102),a=n(103),s=n(61);function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(5);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(5),i=n(104),o=n(56),a=n(57);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(60);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(109),i=n(110);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(5),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(5);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(5);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(62);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){(function(t){var n;window,n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){!function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},r=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=t(),s=t([1]),c=t([56129,1]),l=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function m(e,t,n,r,i){var o,a=0;for(o=0;o<i;o++)a|=e[t+o]^n[r+o];return(1&a-1>>>8)-1}function v(e,t,n,r){return m(e,t,n,r,16)}function g(e,t,n,r){return m(e,t,n,r,32)}function b(e,t,n,r){!function(e,t,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,v=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,k=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=o,_=a,C=s,A=c,x=l,S=u,M=d,E=f,T=h,D=p,O=m,P=v,I=g,j=b,N=y,R=k,L=0;L<20;L+=2)w^=(i=(I^=(i=(T^=(i=(x^=(i=w+I|0)<<7|i>>>25)+w|0)<<9|i>>>23)+x|0)<<13|i>>>19)+T|0)<<18|i>>>14,S^=(i=(_^=(i=(j^=(i=(D^=(i=S+_|0)<<7|i>>>25)+S|0)<<9|i>>>23)+D|0)<<13|i>>>19)+j|0)<<18|i>>>14,O^=(i=(M^=(i=(C^=(i=(N^=(i=O+M|0)<<7|i>>>25)+O|0)<<9|i>>>23)+N|0)<<13|i>>>19)+C|0)<<18|i>>>14,R^=(i=(P^=(i=(E^=(i=(A^=(i=R+P|0)<<7|i>>>25)+R|0)<<9|i>>>23)+A|0)<<13|i>>>19)+E|0)<<18|i>>>14,w^=(i=(A^=(i=(C^=(i=(_^=(i=w+A|0)<<7|i>>>25)+w|0)<<9|i>>>23)+_|0)<<13|i>>>19)+C|0)<<18|i>>>14,S^=(i=(x^=(i=(E^=(i=(M^=(i=S+x|0)<<7|i>>>25)+S|0)<<9|i>>>23)+M|0)<<13|i>>>19)+E|0)<<18|i>>>14,O^=(i=(D^=(i=(T^=(i=(P^=(i=O+D|0)<<7|i>>>25)+O|0)<<9|i>>>23)+P|0)<<13|i>>>19)+T|0)<<18|i>>>14,R^=(i=(N^=(i=(j^=(i=(I^=(i=R+N|0)<<7|i>>>25)+R|0)<<9|i>>>23)+I|0)<<13|i>>>19)+j|0)<<18|i>>>14;w=w+o|0,_=_+a|0,C=C+s|0,A=A+c|0,x=x+l|0,S=S+u|0,M=M+d|0,E=E+f|0,T=T+h|0,D=D+p|0,O=O+m|0,P=P+v|0,I=I+g|0,j=j+b|0,N=N+y|0,R=R+k|0,e[0]=w>>>0&255,e[1]=w>>>8&255,e[2]=w>>>16&255,e[3]=w>>>24&255,e[4]=_>>>0&255,e[5]=_>>>8&255,e[6]=_>>>16&255,e[7]=_>>>24&255,e[8]=C>>>0&255,e[9]=C>>>8&255,e[10]=C>>>16&255,e[11]=C>>>24&255,e[12]=A>>>0&255,e[13]=A>>>8&255,e[14]=A>>>16&255,e[15]=A>>>24&255,e[16]=x>>>0&255,e[17]=x>>>8&255,e[18]=x>>>16&255,e[19]=x>>>24&255,e[20]=S>>>0&255,e[21]=S>>>8&255,e[22]=S>>>16&255,e[23]=S>>>24&255,e[24]=M>>>0&255,e[25]=M>>>8&255,e[26]=M>>>16&255,e[27]=M>>>24&255,e[28]=E>>>0&255,e[29]=E>>>8&255,e[30]=E>>>16&255,e[31]=E>>>24&255,e[32]=T>>>0&255,e[33]=T>>>8&255,e[34]=T>>>16&255,e[35]=T>>>24&255,e[36]=D>>>0&255,e[37]=D>>>8&255,e[38]=D>>>16&255,e[39]=D>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=P>>>0&255,e[45]=P>>>8&255,e[46]=P>>>16&255,e[47]=P>>>24&255,e[48]=I>>>0&255,e[49]=I>>>8&255,e[50]=I>>>16&255,e[51]=I>>>24&255,e[52]=j>>>0&255,e[53]=j>>>8&255,e[54]=j>>>16&255,e[55]=j>>>24&255,e[56]=N>>>0&255,e[57]=N>>>8&255,e[58]=N>>>16&255,e[59]=N>>>24&255,e[60]=R>>>0&255,e[61]=R>>>8&255,e[62]=R>>>16&255,e[63]=R>>>24&255}(e,t,n,r)}function y(e,t,n,r){!function(e,t,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,v=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,k=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=0;w<20;w+=2)o^=(i=(g^=(i=(h^=(i=(l^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+l|0)<<13|i>>>19)+h|0)<<18|i>>>14,u^=(i=(a^=(i=(b^=(i=(p^=(i=u+a|0)<<7|i>>>25)+u|0)<<9|i>>>23)+p|0)<<13|i>>>19)+b|0)<<18|i>>>14,m^=(i=(d^=(i=(s^=(i=(y^=(i=m+d|0)<<7|i>>>25)+m|0)<<9|i>>>23)+y|0)<<13|i>>>19)+s|0)<<18|i>>>14,k^=(i=(v^=(i=(f^=(i=(c^=(i=k+v|0)<<7|i>>>25)+k|0)<<9|i>>>23)+c|0)<<13|i>>>19)+f|0)<<18|i>>>14,o^=(i=(c^=(i=(s^=(i=(a^=(i=o+c|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,u^=(i=(l^=(i=(f^=(i=(d^=(i=u+l|0)<<7|i>>>25)+u|0)<<9|i>>>23)+d|0)<<13|i>>>19)+f|0)<<18|i>>>14,m^=(i=(p^=(i=(h^=(i=(v^=(i=m+p|0)<<7|i>>>25)+m|0)<<9|i>>>23)+v|0)<<13|i>>>19)+h|0)<<18|i>>>14,k^=(i=(y^=(i=(b^=(i=(g^=(i=k+y|0)<<7|i>>>25)+k|0)<<9|i>>>23)+g|0)<<13|i>>>19)+b|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=m>>>0&255,e[9]=m>>>8&255,e[10]=m>>>16&255,e[11]=m>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,n,r)}var k=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,i,o,a){var s,c,l=new Uint8Array(16),u=new Uint8Array(64);for(c=0;c<16;c++)l[c]=0;for(c=0;c<8;c++)l[c]=o[c];for(;i>=64;){for(b(u,l,a,k),c=0;c<64;c++)e[t+c]=n[r+c]^u[c];for(s=1,c=8;c<16;c++)s=s+(255&l[c])|0,l[c]=255&s,s>>>=8;i-=64,t+=64,r+=64}if(i>0)for(b(u,l,a,k),c=0;c<i;c++)e[t+c]=n[r+c]^u[c];return 0}function _(e,t,n,r,i){var o,a,s=new Uint8Array(16),c=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(b(c,s,i,k),a=0;a<64;a++)e[t+a]=c[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;n-=64,t+=64}if(n>0)for(b(c,s,i,k),a=0;a<n;a++)e[t+a]=c[a];return 0}function C(e,t,n,r,i){var o=new Uint8Array(32);y(o,r,i,k);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return _(e,t,n,a,o)}function A(e,t,n,r,i,o,a){var s=new Uint8Array(32);y(s,o,a,k);for(var c=new Uint8Array(8),l=0;l<8;l++)c[l]=o[l+16];return w(e,t,n,r,i,c,s)}var x=function(e){var t,n,r,i,o,a,s,c;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function S(e,t,n,r,i,o){var a=new x(o);return a.update(n,r,i),a.finish(e,t),0}function M(e,t,n,r,i,o){var a=new Uint8Array(16);return S(a,0,n,r,i,o),v(e,t,a,0)}function E(e,t,n,r,i){var o;if(n<32)return-1;for(A(e,0,t,0,n,r,i),S(e,16,e,32,n-32,e),o=0;o<16;o++)e[o]=0;return 0}function T(e,t,n,r,i){var o,a=new Uint8Array(32);if(n<32)return-1;if(C(a,0,32,r,i),0!==M(t,16,t,32,n-32,a))return-1;for(A(e,0,t,0,n,r,i),o=0;o<32;o++)e[o]=0;return 0}function D(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function O(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function P(e,t,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(e[o]^t[o]),e[o]^=r,t[o]^=r}function I(e,n){var r,i,o,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(O(s),O(s),O(s),i=0;i<2;i++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,P(s,a,1-o)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function j(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return I(n,e),I(r,t),g(n,0,r,0)}function N(e){var t=new Uint8Array(32);return I(t,e),1&t[0]}function R(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function L(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function B(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function F(e,t,n){var r,i,o=0,a=0,s=0,c=0,l=0,u=0,d=0,f=0,h=0,p=0,m=0,v=0,g=0,b=0,y=0,k=0,w=0,_=0,C=0,A=0,x=0,S=0,M=0,E=0,T=0,D=0,O=0,P=0,I=0,j=0,N=0,R=n[0],L=n[1],B=n[2],F=n[3],z=n[4],V=n[5],$=n[6],H=n[7],U=n[8],q=n[9],W=n[10],Y=n[11],K=n[12],G=n[13],Q=n[14],X=n[15];o+=(r=t[0])*R,a+=r*L,s+=r*B,c+=r*F,l+=r*z,u+=r*V,d+=r*$,f+=r*H,h+=r*U,p+=r*q,m+=r*W,v+=r*Y,g+=r*K,b+=r*G,y+=r*Q,k+=r*X,a+=(r=t[1])*R,s+=r*L,c+=r*B,l+=r*F,u+=r*z,d+=r*V,f+=r*$,h+=r*H,p+=r*U,m+=r*q,v+=r*W,g+=r*Y,b+=r*K,y+=r*G,k+=r*Q,w+=r*X,s+=(r=t[2])*R,c+=r*L,l+=r*B,u+=r*F,d+=r*z,f+=r*V,h+=r*$,p+=r*H,m+=r*U,v+=r*q,g+=r*W,b+=r*Y,y+=r*K,k+=r*G,w+=r*Q,_+=r*X,c+=(r=t[3])*R,l+=r*L,u+=r*B,d+=r*F,f+=r*z,h+=r*V,p+=r*$,m+=r*H,v+=r*U,g+=r*q,b+=r*W,y+=r*Y,k+=r*K,w+=r*G,_+=r*Q,C+=r*X,l+=(r=t[4])*R,u+=r*L,d+=r*B,f+=r*F,h+=r*z,p+=r*V,m+=r*$,v+=r*H,g+=r*U,b+=r*q,y+=r*W,k+=r*Y,w+=r*K,_+=r*G,C+=r*Q,A+=r*X,u+=(r=t[5])*R,d+=r*L,f+=r*B,h+=r*F,p+=r*z,m+=r*V,v+=r*$,g+=r*H,b+=r*U,y+=r*q,k+=r*W,w+=r*Y,_+=r*K,C+=r*G,A+=r*Q,x+=r*X,d+=(r=t[6])*R,f+=r*L,h+=r*B,p+=r*F,m+=r*z,v+=r*V,g+=r*$,b+=r*H,y+=r*U,k+=r*q,w+=r*W,_+=r*Y,C+=r*K,A+=r*G,x+=r*Q,S+=r*X,f+=(r=t[7])*R,h+=r*L,p+=r*B,m+=r*F,v+=r*z,g+=r*V,b+=r*$,y+=r*H,k+=r*U,w+=r*q,_+=r*W,C+=r*Y,A+=r*K,x+=r*G,S+=r*Q,M+=r*X,h+=(r=t[8])*R,p+=r*L,m+=r*B,v+=r*F,g+=r*z,b+=r*V,y+=r*$,k+=r*H,w+=r*U,_+=r*q,C+=r*W,A+=r*Y,x+=r*K,S+=r*G,M+=r*Q,E+=r*X,p+=(r=t[9])*R,m+=r*L,v+=r*B,g+=r*F,b+=r*z,y+=r*V,k+=r*$,w+=r*H,_+=r*U,C+=r*q,A+=r*W,x+=r*Y,S+=r*K,M+=r*G,E+=r*Q,T+=r*X,m+=(r=t[10])*R,v+=r*L,g+=r*B,b+=r*F,y+=r*z,k+=r*V,w+=r*$,_+=r*H,C+=r*U,A+=r*q,x+=r*W,S+=r*Y,M+=r*K,E+=r*G,T+=r*Q,D+=r*X,v+=(r=t[11])*R,g+=r*L,b+=r*B,y+=r*F,k+=r*z,w+=r*V,_+=r*$,C+=r*H,A+=r*U,x+=r*q,S+=r*W,M+=r*Y,E+=r*K,T+=r*G,D+=r*Q,O+=r*X,g+=(r=t[12])*R,b+=r*L,y+=r*B,k+=r*F,w+=r*z,_+=r*V,C+=r*$,A+=r*H,x+=r*U,S+=r*q,M+=r*W,E+=r*Y,T+=r*K,D+=r*G,O+=r*Q,P+=r*X,b+=(r=t[13])*R,y+=r*L,k+=r*B,w+=r*F,_+=r*z,C+=r*V,A+=r*$,x+=r*H,S+=r*U,M+=r*q,E+=r*W,T+=r*Y,D+=r*K,O+=r*G,P+=r*Q,I+=r*X,y+=(r=t[14])*R,k+=r*L,w+=r*B,_+=r*F,C+=r*z,A+=r*V,x+=r*$,S+=r*H,M+=r*U,E+=r*q,T+=r*W,D+=r*Y,O+=r*K,P+=r*G,I+=r*Q,j+=r*X,k+=(r=t[15])*R,a+=38*(_+=r*B),s+=38*(C+=r*F),c+=38*(A+=r*z),l+=38*(x+=r*V),u+=38*(S+=r*$),d+=38*(M+=r*H),f+=38*(E+=r*U),h+=38*(T+=r*q),p+=38*(D+=r*W),m+=38*(O+=r*Y),v+=38*(P+=r*K),g+=38*(I+=r*G),b+=38*(j+=r*Q),y+=38*(N+=r*X),o=(r=(o+=38*(w+=r*L))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),k=(r=k+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),k=(r=k+i+65535)-65536*(i=Math.floor(r/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=m,e[11]=v,e[12]=g,e[13]=b,e[14]=y,e[15]=k}function z(e,t){F(e,t,t)}function V(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)z(i,i),2!==r&&4!==r&&F(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function $(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=250;r>=0;r--)z(i,i),1!==r&&F(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function H(e,n,r){var i,o,a=new Uint8Array(32),s=new Float64Array(80),l=t(),u=t(),d=t(),f=t(),h=t(),p=t();for(o=0;o<31;o++)a[o]=n[o];for(a[31]=127&n[31]|64,a[0]&=248,R(s,r),o=0;o<16;o++)u[o]=s[o],f[o]=l[o]=d[o]=0;for(l[0]=f[0]=1,o=254;o>=0;--o)P(l,u,i=a[o>>>3]>>>(7&o)&1),P(d,f,i),L(h,l,d),B(l,l,d),L(d,u,f),B(u,u,f),z(f,h),z(p,l),F(l,d,l),F(d,u,h),L(h,l,d),B(l,l,d),z(u,l),B(d,f,p),F(l,d,c),L(l,l,f),F(d,d,l),F(l,f,p),F(f,u,s),z(u,h),P(l,u,i),P(d,f,i);for(o=0;o<16;o++)s[o+16]=l[o],s[o+32]=d[o],s[o+48]=u[o],s[o+64]=f[o];var m=s.subarray(32),v=s.subarray(16);return V(m,m),F(v,v,m),I(e,v),0}function U(e,t){return H(e,t,o)}function q(e,t){return r(t,32),U(e,t)}function W(e,t,n){var r=new Uint8Array(32);return H(r,n,t),y(e,i,r,k)}x.prototype.blocks=function(e,t,n){for(var r,i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_=this.fin?0:2048,C=this.h[0],A=this.h[1],x=this.h[2],S=this.h[3],M=this.h[4],E=this.h[5],T=this.h[6],D=this.h[7],O=this.h[8],P=this.h[9],I=this.r[0],j=this.r[1],N=this.r[2],R=this.r[3],L=this.r[4],B=this.r[5],F=this.r[6],z=this.r[7],V=this.r[8],$=this.r[9];n>=16;)f=d=0,f+=(C+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*I,f+=(A+=8191&(r>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*$),f+=(x+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*V),f+=(S+=8191&(o>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*z),d=(f+=(M+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*F))>>>13,f&=8191,f+=(E+=s>>>1&8191)*(5*B),f+=(T+=8191&(s>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*L),f+=(D+=8191&(c>>>11|(l=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*R),f+=(O+=8191&(l>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*N),h=d+=(f+=(P+=u>>>5|_)*(5*j))>>>13,h+=C*j,h+=A*I,h+=x*(5*$),h+=S*(5*V),d=(h+=M*(5*z))>>>13,h&=8191,h+=E*(5*F),h+=T*(5*B),h+=D*(5*L),h+=O*(5*R),d+=(h+=P*(5*N))>>>13,h&=8191,p=d,p+=C*N,p+=A*j,p+=x*I,p+=S*(5*$),d=(p+=M*(5*V))>>>13,p&=8191,p+=E*(5*z),p+=T*(5*F),p+=D*(5*B),p+=O*(5*L),m=d+=(p+=P*(5*R))>>>13,m+=C*R,m+=A*N,m+=x*j,m+=S*I,d=(m+=M*(5*$))>>>13,m&=8191,m+=E*(5*V),m+=T*(5*z),m+=D*(5*F),m+=O*(5*B),v=d+=(m+=P*(5*L))>>>13,v+=C*L,v+=A*R,v+=x*N,v+=S*j,d=(v+=M*I)>>>13,v&=8191,v+=E*(5*$),v+=T*(5*V),v+=D*(5*z),v+=O*(5*F),g=d+=(v+=P*(5*B))>>>13,g+=C*B,g+=A*L,g+=x*R,g+=S*N,d=(g+=M*j)>>>13,g&=8191,g+=E*I,g+=T*(5*$),g+=D*(5*V),g+=O*(5*z),b=d+=(g+=P*(5*F))>>>13,b+=C*F,b+=A*B,b+=x*L,b+=S*R,d=(b+=M*N)>>>13,b&=8191,b+=E*j,b+=T*I,b+=D*(5*$),b+=O*(5*V),y=d+=(b+=P*(5*z))>>>13,y+=C*z,y+=A*F,y+=x*B,y+=S*L,d=(y+=M*R)>>>13,y&=8191,y+=E*N,y+=T*j,y+=D*I,y+=O*(5*$),k=d+=(y+=P*(5*V))>>>13,k+=C*V,k+=A*z,k+=x*F,k+=S*B,d=(k+=M*L)>>>13,k&=8191,k+=E*R,k+=T*N,k+=D*j,k+=O*I,w=d+=(k+=P*(5*$))>>>13,w+=C*$,w+=A*V,w+=x*z,w+=S*F,d=(w+=M*B)>>>13,w&=8191,w+=E*L,w+=T*R,w+=D*N,w+=O*j,C=f=8191&(d=(d=((d+=(w+=P*I)>>>13)<<2)+d|0)+(f&=8191)|0),A=h+=d>>>=13,x=p&=8191,S=m&=8191,M=v&=8191,E=g&=8191,T=b&=8191,D=y&=8191,O=k&=8191,P=w&=8191,t+=16,n-=16;this.h[0]=C,this.h[1]=A,this.h[2]=x,this.h[3]=S,this.h[4]=M,this.h[5]=E,this.h[6]=T,this.h[7]=D,this.h[8]=O,this.h[9]=P},x.prototype.finish=function(e,t){var n,r,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this.h[o]=this.h[o]&r|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},x.prototype.update=function(e,t,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r<i;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(i=n-n%16,this.blocks(e,t,i),t+=i,n-=i),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var Y=E,K=T,G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(e,t,n,r){for(var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,k,w,_,C,A,x,S,M,E,T,D=new Int32Array(16),O=new Int32Array(16),P=e[0],I=e[1],j=e[2],N=e[3],R=e[4],L=e[5],B=e[6],F=e[7],z=t[0],V=t[1],$=t[2],H=t[3],U=t[4],q=t[5],W=t[6],Y=t[7],K=0;r>=128;){for(_=0;_<16;_++)C=8*_+K,D[_]=n[C+0]<<24|n[C+1]<<16|n[C+2]<<8|n[C+3],O[_]=n[C+4]<<24|n[C+5]<<16|n[C+6]<<8|n[C+7];for(_=0;_<80;_++)if(i=P,o=I,a=j,s=N,c=R,l=L,u=B,f=z,h=V,p=$,m=H,v=U,g=q,b=W,S=65535&(x=Y),M=x>>>16,E=65535&(A=F),T=A>>>16,S+=65535&(x=(U>>>14|R<<18)^(U>>>18|R<<14)^(R>>>9|U<<23)),M+=x>>>16,E+=65535&(A=(R>>>14|U<<18)^(R>>>18|U<<14)^(U>>>9|R<<23)),T+=A>>>16,S+=65535&(x=U&q^~U&W),M+=x>>>16,E+=65535&(A=R&L^~R&B),T+=A>>>16,S+=65535&(x=G[2*_+1]),M+=x>>>16,E+=65535&(A=G[2*_]),T+=A>>>16,A=D[_%16],M+=(x=O[_%16])>>>16,E+=65535&A,T+=A>>>16,E+=(M+=(S+=65535&x)>>>16)>>>16,S=65535&(x=w=65535&S|M<<16),M=x>>>16,E=65535&(A=k=65535&E|(T+=E>>>16)<<16),T=A>>>16,S+=65535&(x=(z>>>28|P<<4)^(P>>>2|z<<30)^(P>>>7|z<<25)),M+=x>>>16,E+=65535&(A=(P>>>28|z<<4)^(z>>>2|P<<30)^(z>>>7|P<<25)),T+=A>>>16,M+=(x=z&V^z&$^V&$)>>>16,E+=65535&(A=P&I^P&j^I&j),T+=A>>>16,d=65535&(E+=(M+=(S+=65535&x)>>>16)>>>16)|(T+=E>>>16)<<16,y=65535&S|M<<16,S=65535&(x=m),M=x>>>16,E=65535&(A=s),T=A>>>16,M+=(x=w)>>>16,E+=65535&(A=k),T+=A>>>16,I=i,j=o,N=a,R=s=65535&(E+=(M+=(S+=65535&x)>>>16)>>>16)|(T+=E>>>16)<<16,L=c,B=l,F=u,P=d,V=f,$=h,H=p,U=m=65535&S|M<<16,q=v,W=g,Y=b,z=y,_%16==15)for(C=0;C<16;C++)A=D[C],S=65535&(x=O[C]),M=x>>>16,E=65535&A,T=A>>>16,A=D[(C+9)%16],S+=65535&(x=O[(C+9)%16]),M+=x>>>16,E+=65535&A,T+=A>>>16,k=D[(C+1)%16],S+=65535&(x=((w=O[(C+1)%16])>>>1|k<<31)^(w>>>8|k<<24)^(w>>>7|k<<25)),M+=x>>>16,E+=65535&(A=(k>>>1|w<<31)^(k>>>8|w<<24)^k>>>7),T+=A>>>16,k=D[(C+14)%16],M+=(x=((w=O[(C+14)%16])>>>19|k<<13)^(k>>>29|w<<3)^(w>>>6|k<<26))>>>16,E+=65535&(A=(k>>>19|w<<13)^(w>>>29|k<<3)^k>>>6),T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,D[C]=65535&E|T<<16,O[C]=65535&S|M<<16;S=65535&(x=z),M=x>>>16,E=65535&(A=P),T=A>>>16,A=e[0],M+=(x=t[0])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[0]=P=65535&E|T<<16,t[0]=z=65535&S|M<<16,S=65535&(x=V),M=x>>>16,E=65535&(A=I),T=A>>>16,A=e[1],M+=(x=t[1])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[1]=I=65535&E|T<<16,t[1]=V=65535&S|M<<16,S=65535&(x=$),M=x>>>16,E=65535&(A=j),T=A>>>16,A=e[2],M+=(x=t[2])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[2]=j=65535&E|T<<16,t[2]=$=65535&S|M<<16,S=65535&(x=H),M=x>>>16,E=65535&(A=N),T=A>>>16,A=e[3],M+=(x=t[3])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[3]=N=65535&E|T<<16,t[3]=H=65535&S|M<<16,S=65535&(x=U),M=x>>>16,E=65535&(A=R),T=A>>>16,A=e[4],M+=(x=t[4])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[4]=R=65535&E|T<<16,t[4]=U=65535&S|M<<16,S=65535&(x=q),M=x>>>16,E=65535&(A=L),T=A>>>16,A=e[5],M+=(x=t[5])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[5]=L=65535&E|T<<16,t[5]=q=65535&S|M<<16,S=65535&(x=W),M=x>>>16,E=65535&(A=B),T=A>>>16,A=e[6],M+=(x=t[6])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[6]=B=65535&E|T<<16,t[6]=W=65535&S|M<<16,S=65535&(x=Y),M=x>>>16,E=65535&(A=F),T=A>>>16,A=e[7],M+=(x=t[7])>>>16,E+=65535&A,T+=A>>>16,T+=(E+=(M+=(S+=65535&x)>>>16)>>>16)>>>16,e[7]=F=65535&E|T<<16,t[7]=Y=65535&S|M<<16,K+=128,r-=128}return r}function X(e,t,n){var r,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Q(i,o,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Q(i,o,a,n),r=0;r<8;r++)p(e,8*r,i[r],o[r]);return 0}function J(e,n){var r=t(),i=t(),o=t(),a=t(),s=t(),c=t(),l=t(),d=t(),f=t();B(r,e[1],e[0]),B(f,n[1],n[0]),F(r,r,f),L(i,e[0],e[1]),L(f,n[0],n[1]),F(i,i,f),F(o,e[3],n[3]),F(o,o,u),F(a,e[2],n[2]),L(a,a,a),B(s,i,r),B(c,a,o),L(l,a,o),L(d,i,r),F(e[0],s,c),F(e[1],d,l),F(e[2],l,c),F(e[3],s,d)}function Z(e,t,n){var r;for(r=0;r<4;r++)P(e[r],t[r],n)}function ee(e,n){var r=t(),i=t(),o=t();V(o,n[2]),F(r,n[0],o),F(i,n[1],o),I(e,i),e[31]^=N(r)<<7}function te(e,t,n){var r,i;for(D(e[0],a),D(e[1],s),D(e[2],s),D(e[3],a),i=255;i>=0;--i)Z(e,t,r=n[i/8|0]>>(7&i)&1),J(t,e),J(e,e),Z(e,t,r)}function ne(e,n){var r=[t(),t(),t(),t()];D(r[0],d),D(r[1],f),D(r[2],s),F(r[3],d,f),te(e,r,n)}function re(e,n,i){var o,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(i||r(n,32),X(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,ne(s,a),ee(e,s),o=0;o<32;o++)n[o+32]=e[o];return 0}var ie,oe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ae(e,t){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i<o;++i)t[i]+=n-16*t[r]*oe[i-(r-32)],n=t[i]+128>>8,t[i]-=256*n;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;i++)t[i]+=n-(t[31]>>4)*oe[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*oe[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function se(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ae(e,n)}function ce(e,n,r,i){var o,a,s=new Uint8Array(64),c=new Uint8Array(64),l=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];X(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(o=0;o<r;o++)e[64+o]=n[o];for(o=0;o<32;o++)e[32+o]=s[32+o];for(X(l,e.subarray(32),r+32),se(l),ne(d,l),ee(e,d),o=32;o<64;o++)e[o]=i[o];for(X(c,e,r+64),se(c),o=0;o<64;o++)u[o]=0;for(o=0;o<32;o++)u[o]=l[o];for(o=0;o<32;o++)for(a=0;a<32;a++)u[o+a]+=c[o]*s[a];return ae(e.subarray(32),u),f}function le(e,n,r,i){var o,c=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],f=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),i=t(),o=t(),c=t(),u=t(),d=t(),f=t();return D(e[2],s),R(e[1],n),z(o,e[1]),F(c,o,l),B(o,o,e[2]),L(c,e[2],c),z(u,c),z(d,u),F(f,d,u),F(r,f,o),F(r,r,c),$(r,r),F(r,r,o),F(r,r,c),F(r,r,c),F(e[0],r,c),z(i,e[0]),F(i,i,c),j(i,o)&&F(e[0],e[0],h),z(i,e[0]),F(i,i,c),j(i,o)?-1:(N(e[0])===n[31]>>7&&B(e[0],a,e[0]),F(e[3],e[0],e[1]),0)}(f,i))return-1;for(o=0;o<r;o++)e[o]=n[o];for(o=0;o<32;o++)e[o+32]=i[o];if(X(u,e,r),se(u),te(d,f,u),ne(f,n.subarray(32)),J(d,f),ee(c,d),r-=64,g(n,0,c,0)){for(o=0;o<r;o++)e[o]=0;return-1}for(o=0;o<r;o++)e[o]=n[o+64];return r}function ue(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function de(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function fe(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:y,crypto_stream_xor:A,crypto_stream:C,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:_,crypto_onetimeauth:S,crypto_onetimeauth_verify:M,crypto_verify_16:v,crypto_verify_32:g,crypto_secretbox:E,crypto_secretbox_open:T,crypto_scalarmult:H,crypto_scalarmult_base:U,crypto_box_beforenm:W,crypto_box_afternm:Y,crypto_box:function(e,t,n,r,i,o){var a=new Uint8Array(32);return W(a,i,o),Y(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,i,o){var a=new Uint8Array(32);return W(a,i,o),K(e,t,n,r,a)},crypto_box_keypair:q,crypto_hash:X,crypto_sign:ce,crypto_sign_keypair:re,crypto_sign_open:le,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:64,crypto_sign_PUBLICKEYBYTES:32,crypto_sign_SECRETKEYBYTES:64,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:l,L:oe,pack25519:I,unpack25519:R,M:F,A:L,S:z,Z:B,pow2523:$,add:J,set25519:D,modL:ae,scalarmult:te,scalarbase:ne},e.randomBytes=function(e){var t=new Uint8Array(e);return r(t,e),t},e.secretbox=function(e,t,n){de(e,t,n),ue(n,t);for(var r=new Uint8Array(32+e.length),i=new Uint8Array(r.length),o=0;o<e.length;o++)r[o+32]=e[o];return E(i,r,r.length,t,n),i.subarray(16)},e.secretbox.open=function(e,t,n){de(e,t,n),ue(n,t);for(var r=new Uint8Array(16+e.length),i=new Uint8Array(r.length),o=0;o<e.length;o++)r[o+16]=e[o];return r.length<32||0!==T(i,r,r.length,t,n)?null:i.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=16,e.scalarMult=function(e,t){if(de(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return H(n,e,t),n},e.scalarMult.base=function(e){if(de(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return U(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,i){var o=e.box.before(r,i);return e.secretbox(t,n,o)},e.box.before=function(e,t){de(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return W(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,i){var o=e.box.before(r,i);return e.secretbox.open(t,n,o)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return q(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(de(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return U(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(de(e,t),64!==t.length)throw new Error("bad secret key size");var n=new Uint8Array(64+e.length);return ce(n,e,e.length,t),n},e.sign.open=function(e,t){if(de(e,t),32!==t.length)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=le(n,e,e.length,t);if(r<0)return null;for(var i=new Uint8Array(r),o=0;o<i.length;o++)i[o]=n[o];return i},e.sign.detached=function(t,n){for(var r=e.sign(t,n),i=new Uint8Array(64),o=0;o<i.length;o++)i[o]=r[o];return i},e.sign.detached.verify=function(e,t,n){if(de(e,t,n),64!==t.length)throw new Error("bad signature size");if(32!==n.length)throw new Error("bad public key size");var r,i=new Uint8Array(64+e.length),o=new Uint8Array(64+e.length);for(r=0;r<64;r++)i[r]=t[r];for(r=0;r<e.length;r++)i[r+64]=e[r];return le(o,i,i.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(de(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(de(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(32),n=new Uint8Array(64),r=0;r<32;r++)n[r]=e[r];return re(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=32,e.sign.secretKeyLength=64,e.sign.seedLength=32,e.sign.signatureLength=64,e.hash=function(e){de(e);var t=new Uint8Array(64);return X(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return de(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===m(e,0,t,0,e.length)},e.setPRNG=function(e){r=e},(ie="undefined"!=typeof self?self.crypto||self.msCrypto:null)&&ie.getRandomValues?e.setPRNG((function(e,t){var n,r=new Uint8Array(t);for(n=0;n<t;n+=65536)ie.getRandomValues(r.subarray(n,n+Math.min(t-n,65536)));for(n=0;n<t;n++)e[n]=r[n];fe(r)})):(ie=n(3))&&ie.randomBytes&&e.setPRNG((function(e,t){var n,r=ie.randomBytes(t);for(n=0;n<t;n++)e[n]=r[n];fe(r)}))}(e.exports?e.exports:self.nacl=self.nacl||{})},function(e,n,r){!function(t,n){"use strict";e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(this,(function(){"use strict";var e={};function n(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"==typeof atob?void 0!==t.from?(e.encodeBase64=function(e){return t.from(e).toString("base64")},e.decodeBase64=function(e){return n(e),new Uint8Array(Array.prototype.slice.call(t.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new t(e).toString("base64")},e.decodeBase64=function(e){return n(e),new Uint8Array(Array.prototype.slice.call(new t(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){n(e);var t,r=atob(e),i=new Uint8Array(r.length);for(t=0;t<r.length;t++)i[t]=r.charCodeAt(t);return i}),e}))},function(e,t,n){e.exports=n(4).default},function(e,t){},function(e,t,n){"use strict";n.r(t);for(var r=function(){function e(e,t){this.lastId=0,this.prefix=e,this.name=t}return e.prototype.create=function(e){this.lastId++;var t=this.lastId,n=this.prefix+t,r=this.name+"["+t+"]",i=!1,o=function(){i||(e.apply(null,arguments),i=!0)};return this[t]=o,{number:t,id:n,name:r,callback:o}},e.prototype.remove=function(e){delete this[e.number]},e}(),i=new r("_pusher_script_","Pusher.ScriptReceivers"),o={VERSION:"5.1.1",PROTOCOL:7,host:"ws.pusherapp.com",ws_port:80,wss_port:443,ws_path:"",sockjs_host:"sockjs.pusher.com",sockjs_http_port:80,sockjs_https_port:443,sockjs_path:"/pusher",stats_host:"stats.pusher.com",channel_auth_endpoint:"/pusher/auth",channel_auth_transport:"ajax",activity_timeout:12e4,pong_timeout:3e4,unavailable_timeout:1e4,cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},a=function(){function e(e){this.options=e,this.receivers=e.receivers||i,this.loading={}}return e.prototype.load=function(e,t,n){var r=this;if(r.loading[e]&&r.loading[e].length>0)r.loading[e].push(n);else{r.loading[e]=[n];var i=kt.createScriptRequest(r.getPath(e,t)),o=r.receivers.create((function(t){if(r.receivers.remove(o),r.loading[e]){var n=r.loading[e];delete r.loading[e];for(var a=function(e){e||i.cleanup()},s=0;s<n.length;s++)n[s](t,a)}}));i.send(o)}},e.prototype.getRoot=function(e){var t=kt.getDocument().location.protocol;return(e&&e.useTLS||"https:"===t?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version},e.prototype.getPath=function(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"},e}(),s=new r("_pusher_dependencies","Pusher.DependenciesReceivers"),c=new a({cdn_http:o.cdn_http,cdn_https:o.cdn_https,version:o.VERSION,suffix:o.dependency_suffix,receivers:s}),l=String.fromCharCode,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d={},f=0,h=u.length;f<h;f++)d[u.charAt(f)]=f;var p,m=function(e){var t=e.charCodeAt(0);return t<128?e:t<2048?l(192|t>>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t)},v=function(e){return e.replace(/[^\x00-\x7F]/g,m)},g=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[u.charAt(n>>>18),u.charAt(n>>>12&63),t>=2?"=":u.charAt(n>>>6&63),t>=1?"=":u.charAt(63&n)].join("")},b=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,g)},y=function(){function e(e,t,n,r){var i=this;this.clear=t,this.timer=e((function(){i.timer&&(i.timer=r(i.timer))}),n)}return e.prototype.isRunning=function(){return null!==this.timer},e.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},e}(),k=(p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function w(e){window.clearTimeout(e)}function _(e){window.clearInterval(e)}var C=function(e){function t(t,n){return e.call(this,setTimeout,w,t,(function(e){return n(),null}))||this}return k(t,e),t}(y),A=function(e){function t(t,n){return e.call(this,setInterval,_,t,(function(e){return n(),e}))||this}return k(t,e),t}(y),x={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(e){return new C(0,e)},method:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1);return function(t){return t[e].apply(t,r.concat(arguments))}}};function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var i=t[r];for(var o in i)i[o]&&i[o].constructor&&i[o].constructor===Object?e[o]=S(e[o]||{},i[o]):e[o]=i[o]}return e}function M(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?e.push(arguments[t]):e.push(B(arguments[t]));return e.join(" : ")}function E(e,t){var n=Array.prototype.indexOf;if(null===e)return-1;if(n&&e.indexOf===n)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}function T(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n,e)}function D(e){var t=[];return T(e,(function(e,n){t.push(n)})),t}function O(e,t,n){for(var r=0;r<e.length;r++)t.call(n||window,e[r],r,e)}function P(e,t){for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r,e,n));return n}function I(e,t){t=t||function(e){return!!e};for(var n=[],r=0;r<e.length;r++)t(e[r],r,e,n)&&n.push(e[r]);return n}function j(e,t){var n={};return T(e,(function(r,i){(t&&t(r,i,e,n)||Boolean(r))&&(n[i]=r)})),n}function N(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return!0;return!1}function R(e){return t=function(e){return"object"==typeof e&&(e=B(e)),encodeURIComponent((t=e.toString(),b(v(t))));var t},n={},T(e,(function(e,r){n[r]=t(e)})),n;var t,n}function L(e){var t,n,r=j(e,(function(e){return void 0!==e}));return P((t=R(r),n=[],T(t,(function(e,t){n.push([t,e])})),n),x.method("join","=")).join("&")}function B(e){try{return JSON.stringify(e)}catch(r){return JSON.stringify((t=[],n=[],function e(r,i){var o,a,s;switch(typeof r){case"object":if(!r)return null;for(o=0;o<t.length;o+=1)if(t[o]===r)return{$ref:n[o]};if(t.push(r),n.push(i),"[object Array]"===Object.prototype.toString.apply(r))for(s=[],o=0;o<r.length;o+=1)s[o]=e(r[o],i+"["+o+"]");else for(a in s={},r)Object.prototype.hasOwnProperty.call(r,a)&&(s[a]=e(r[a],i+"["+JSON.stringify(a)+"]"));return s;case"number":case"string":case"boolean":return r}}(e,"$")))}var t,n}var F=new(function(){function e(){this.globalLog=function(e){window.console&&window.console.log&&window.console.log(e)}}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(this.globalLog,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(this.globalLogWarn,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(this.globalLogError,e)},e.prototype.globalLogWarn=function(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)},e.prototype.globalLogError=function(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)},e.prototype.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=M.apply(this,arguments);if(Tt.log)Tt.log(r);else if(Tt.logToConsole){var i=e.bind(this);i(r)}},e}()),z={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/authenticating_users"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"}}},V=function(e){var t,n=z.urls[e];return n?(n.fullUrl?t=n.fullUrl:n.path&&(t=z.baseUrl+n.path),t?"See: "+t:""):""},$=function(e,t,n){var r,i=this;for(var o in(r=kt.createXHR()).open("POST",i.options.authEndpoint,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this.authOptions.headers)r.setRequestHeader(o,this.authOptions.headers[o]);return r.onreadystatechange=function(){if(4===r.readyState)if(200===r.status){var e,t=!1;try{e=JSON.parse(r.responseText),t=!0}catch(e){n(!0,"JSON returned from auth endpoint was invalid, yet status code was 200. Data was: "+r.responseText)}t&&n(!1,e)}else{var o=V("authenticationEndpoint");F.error("Unable to retrieve auth string from auth endpoint - received status "+r.status+" from "+i.options.authEndpoint+". Clients must be authenticated to join private or presence channels. "+o),n(!0,r.status)}},r.send(this.composeQuery(t)),r},H=function(e,t,n){void 0!==this.authOptions.headers&&F.warn("To send headers with the auth request, you must use AJAX, rather than JSONP.");var r=e.nextAuthCallbackID.toString();e.nextAuthCallbackID++;var i=e.getDocument(),o=i.createElement("script");e.auth_callbacks[r]=function(e){n(!1,e)};var a="Pusher.auth_callbacks['"+r+"']";o.src=this.options.authEndpoint+"?callback="+encodeURIComponent(a)+"&"+this.composeQuery(t);var s=i.getElementsByTagName("head")[0]||i.documentElement;s.insertBefore(o,s.firstChild)},U=function(){function e(e){this.src=e}return e.prototype.send=function(e){var t=this,n="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(n)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){"loaded"!==t.script.readyState&&"complete"!==t.script.readyState||e.callback(null)},void 0===t.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+n+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var r=document.getElementsByTagName("head")[0];r.insertBefore(t.script,r.firstChild),t.errorScript&&r.insertBefore(t.errorScript,t.script.nextSibling)},e.prototype.cleanup=function(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null},e}(),q=function(){function e(e,t){this.url=e,this.data=t}return e.prototype.send=function(e){if(!this.request){var t=L(this.data),n=this.url+"/"+e.number+"?"+t;this.request=kt.createScriptRequest(n),this.request.send(e)}},e.prototype.cleanup=function(){this.request&&this.request.cleanup()},e}(),W={name:"jsonp",getAgent:function(e,t){return function(n,r){var o="http"+(t?"s":"")+"://"+(e.host||e.options.host)+e.options.path,a=kt.createJSONPRequest(o,n),s=kt.ScriptReceivers.create((function(t,n){i.remove(s),a.cleanup(),n&&n.host&&(e.host=n.host),r&&r(t,n)}));a.send(s)}}};function Y(e,t,n){return e+(t.useTLS?"s":"")+"://"+(t.useTLS?t.hostTLS:t.hostNonTLS)+n}function K(e,t){return"/app/"+e+"?protocol="+o.PROTOCOL+"&client=js&version="+o.VERSION+(t?"&"+t:"")}var G={getInitial:function(e,t){return Y("ws",t,(t.httpPath||"")+K(e,"flash=false"))}},Q={getInitial:function(e,t){return Y("http",t,(t.httpPath||"/pusher")+K(e))}},X={getInitial:function(e,t){return Y("http",t,t.httpPath||"/pusher")},getPath:function(e,t){return K(e)}},J=function(){function e(){this._callbacks={}}return e.prototype.get=function(e){return this._callbacks[Z(e)]},e.prototype.add=function(e,t,n){var r=Z(e);this._callbacks[r]=this._callbacks[r]||[],this._callbacks[r].push({fn:t,context:n})},e.prototype.remove=function(e,t,n){if(e||t||n){var r=e?[Z(e)]:D(this._callbacks);t||n?this.removeCallback(r,t,n):this.removeAllCallbacks(r)}else this._callbacks={}},e.prototype.removeCallback=function(e,t,n){O(e,(function(e){this._callbacks[e]=I(this._callbacks[e]||[],(function(e){return t&&t!==e.fn||n&&n!==e.context})),0===this._callbacks[e].length&&delete this._callbacks[e]}),this)},e.prototype.removeAllCallbacks=function(e){O(e,(function(e){delete this._callbacks[e]}),this)},e}();function Z(e){return"_"+e}var ee=function(){function e(e){this.callbacks=new J,this.global_callbacks=[],this.failThrough=e}return e.prototype.bind=function(e,t,n){return this.callbacks.add(e,t,n),this},e.prototype.bind_global=function(e){return this.global_callbacks.push(e),this},e.prototype.unbind=function(e,t,n){return this.callbacks.remove(e,t,n),this},e.prototype.unbind_global=function(e){return e?(this.global_callbacks=I(this.global_callbacks||[],(function(t){return t!==e})),this):(this.global_callbacks=[],this)},e.prototype.unbind_all=function(){return this.unbind(),this.unbind_global(),this},e.prototype.emit=function(e,t,n){for(var r=0;r<this.global_callbacks.length;r++)this.global_callbacks[r](e,t);var i=this.callbacks.get(e),o=[];if(n?o.push(t,n):t&&o.push(t),i&&i.length>0)for(r=0;r<i.length;r++)i[r].fn.apply(i[r].context||window,o);else this.failThrough&&this.failThrough(e,t);return this},e}(),te=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ne=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a.initialize=kt.transportConnectionInitializer,a.hooks=t,a.name=n,a.priority=r,a.key=i,a.options=o,a.state="new",a.timeline=o.timeline,a.activityTimeout=o.activityTimeout,a.id=a.timeline.generateUniqueID(),a}return te(t,e),t.prototype.handlesActivityChecks=function(){return Boolean(this.hooks.handlesActivityChecks)},t.prototype.supportsPing=function(){return Boolean(this.hooks.supportsPing)},t.prototype.connect=function(){var e=this;if(this.socket||"initialized"!==this.state)return!1;var t=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(t,this.options)}catch(t){return x.defer((function(){e.onError(t),e.changeState("closed")})),!1}return this.bindListeners(),F.debug("Connecting",{transport:this.name,url:t}),this.changeState("connecting"),!0},t.prototype.close=function(){return!!this.socket&&(this.socket.close(),!0)},t.prototype.send=function(e){var t=this;return"open"===this.state&&(x.defer((function(){t.socket&&t.socket.send(e)})),!0)},t.prototype.ping=function(){"open"===this.state&&this.supportsPing()&&this.socket.ping()},t.prototype.onOpen=function(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0},t.prototype.onError=function(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))},t.prototype.onClose=function(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0},t.prototype.onMessage=function(e){this.emit("message",e)},t.prototype.onActivity=function(){this.emit("activity")},t.prototype.bindListeners=function(){var e=this;this.socket.onopen=function(){e.onOpen()},this.socket.onerror=function(t){e.onError(t)},this.socket.onclose=function(t){e.onClose(t)},this.socket.onmessage=function(t){e.onMessage(t)},this.supportsPing()&&(this.socket.onactivity=function(){e.onActivity()})},t.prototype.unbindListeners=function(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))},t.prototype.changeState=function(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)},t.prototype.buildTimelineMessage=function(e){return S({cid:this.id},e)},t}(ee),re=function(){function e(e){this.hooks=e}return e.prototype.isSupported=function(e){return this.hooks.isSupported(e)},e.prototype.createConnection=function(e,t,n,r){return new ne(this.hooks,e,t,n,r)},e}(),ie=new re({urls:G,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(kt.getWebSocketAPI())},isSupported:function(){return Boolean(kt.getWebSocketAPI())},getSocket:function(e){return kt.createWebSocket(e)}}),oe={urls:Q,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},ae=S({getSocket:function(e){return kt.HTTPFactory.createStreamingSocket(e)}},oe),se=S({getSocket:function(e){return kt.HTTPFactory.createPollingSocket(e)}},oe),ce={isSupported:function(){return kt.isXHRSupported()}},le={ws:ie,xhr_streaming:new re(S({},ae,ce)),xhr_polling:new re(S({},se,ce))},ue=new re({file:"sockjs",urls:X,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(e,t){return new window.SockJS(e,null,{js_path:c.getPath("sockjs",{useTLS:t.useTLS}),ignore_null_origin:t.ignoreNullOrigin})},beforeOpen:function(e,t){e.send(JSON.stringify({path:t}))}}),de={isSupported:function(e){return kt.isXDRSupported(e.useTLS)}},fe=new re(S({},ae,de)),he=new re(S({},se,de));le.xdr_streaming=fe,le.xdr_polling=he,le.sockjs=ue;var pe=le,me=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ve=new(function(e){function t(){var t=e.call(this)||this,n=t;return void 0!==window.addEventListener&&(window.addEventListener("online",(function(){n.emit("online")}),!1),window.addEventListener("offline",(function(){n.emit("offline")}),!1)),t}return me(t,e),t.prototype.isOnline=function(){return void 0===window.navigator.onLine||window.navigator.onLine},t}(ee)),ge=function(){function e(e,t,n){this.manager=e,this.transport=t,this.minPingDelay=n.minPingDelay,this.maxPingDelay=n.maxPingDelay,this.pingDelay=void 0}return e.prototype.createConnection=function(e,t,n,r){var i=this;r=S({},r,{activityTimeout:this.pingDelay});var o=this.transport.createConnection(e,t,n,r),a=null,s=function(){o.unbind("open",s),o.bind("closed",c),a=x.now()},c=function(e){if(o.unbind("closed",c),1002===e.code||1003===e.code)i.manager.reportDeath();else if(!e.wasClean&&a){var t=x.now()-a;t<2*i.maxPingDelay&&(i.manager.reportDeath(),i.pingDelay=Math.max(t/2,i.minPingDelay))}};return o.bind("open",s),o},e.prototype.isSupported=function(e){return this.manager.isAlive()&&this.transport.isSupported(e)},e}(),be={decodeMessage:function(e){try{var t=JSON.parse(e.data),n=t.data;if("string"==typeof n)try{n=JSON.parse(t.data)}catch(e){}var r={event:t.event,channel:t.channel,data:n};return t.user_id&&(r.user_id=t.user_id),r}catch(t){throw{type:"MessageParseError",error:t,data:e.data}}},encodeMessage:function(e){return JSON.stringify(e)},processHandshake:function(e){var t=be.decodeMessage(e);if("pusher:connection_established"===t.event){if(!t.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:t.data.socket_id,activityTimeout:1e3*t.data.activity_timeout}}if("pusher:error"===t.event)return{action:this.getCloseAction(t.data),error:this.getCloseError(t.data)};throw"Invalid handshake"},getCloseAction:function(e){return e.code<4e3?e.code>=1002&&e.code<=1004?"backoff":null:4e3===e.code?"tls_only":e.code<4100?"refused":e.code<4200?"backoff":e.code<4300?"retry":"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}},ye=be,ke=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),we=function(e){function t(t,n){var r=e.call(this)||this;return r.id=t,r.transport=n,r.activityTimeout=n.activityTimeout,r.bindListeners(),r}return ke(t,e),t.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},t.prototype.send=function(e){return this.transport.send(e)},t.prototype.send_event=function(e,t,n){var r={event:e,data:t};return n&&(r.channel=n),F.debug("Event sent",r),this.send(ye.encodeMessage(r))},t.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},t.prototype.close=function(){this.transport.close()},t.prototype.bindListeners=function(){var e=this,t={message:function(t){var n;try{n=ye.decodeMessage(t)}catch(n){e.emit("error",{type:"MessageParseError",error:n,data:t.data})}if(void 0!==n){switch(F.debug("Event recd",n),n.event){case"pusher:error":e.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":e.emit("ping");break;case"pusher:pong":e.emit("pong")}e.emit("message",n)}},activity:function(){e.emit("activity")},error:function(t){e.emit("error",{type:"WebSocketError",error:t})},closed:function(t){n(),t&&t.code&&e.handleCloseEvent(t),e.transport=null,e.emit("closed")}},n=function(){T(t,(function(t,n){e.transport.unbind(n,t)}))};T(t,(function(t,n){e.transport.bind(n,t)}))},t.prototype.handleCloseEvent=function(e){var t=ye.getCloseAction(e),n=ye.getCloseError(e);n&&this.emit("error",n),t&&this.emit(t,{action:t,error:n})},t}(ee),_e=function(){function e(e,t){this.transport=e,this.callback=t,this.bindListeners()}return e.prototype.close=function(){this.unbindListeners(),this.transport.close()},e.prototype.bindListeners=function(){var e=this;this.onMessage=function(t){var n;e.unbindListeners();try{n=ye.processHandshake(t)}catch(t){return e.finish("error",{error:t}),void e.transport.close()}"connected"===n.action?e.finish("connected",{connection:new we(n.id,e.transport),activityTimeout:n.activityTimeout}):(e.finish(n.action,{error:n.error}),e.transport.close())},this.onClosed=function(t){e.unbindListeners();var n=ye.getCloseAction(t)||"backoff",r=ye.getCloseError(t);e.finish(n,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},e.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},e.prototype.finish=function(e,t){this.callback(S({transport:this.transport,action:e},t))},e}(),Ce=function(){function e(e,t){this.channel=e;var n=t.authTransport;if(void 0===kt.getAuthorizers()[n])throw"'"+n+"' is not a recognized auth transport";this.type=n,this.options=t,this.authOptions=(t||{}).auth||{}}return e.prototype.composeQuery=function(e){var t="socket_id="+encodeURIComponent(e)+"&channel_name="+encodeURIComponent(this.channel.name);for(var n in this.authOptions.params)t+="&"+encodeURIComponent(n)+"="+encodeURIComponent(this.authOptions.params[n]);return t},e.prototype.authorize=function(t,n){e.authorizers=e.authorizers||kt.getAuthorizers(),e.authorizers[this.type].call(this,kt,t,n)},e}(),Ae=function(){function e(e,t){this.timeline=e,this.options=t||{}}return e.prototype.send=function(e,t){this.timeline.isEmpty()||this.timeline.send(kt.TimelineTransport.getAgent(this,e),t)},e}(),xe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Se=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),Me=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),Ee=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),Te=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),De=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),Oe=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),Pe=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return xe(t,e),t}(Error),Ie=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),je=function(e){function t(t,n){var r=e.call(this,(function(e,n){F.debug("No callbacks on "+t+" for "+e)}))||this;return r.name=t,r.pusher=n,r.subscribed=!1,r.subscriptionPending=!1,r.subscriptionCancelled=!1,r}return Ie(t,e),t.prototype.authorize=function(e,t){return t(!1,{auth:""})},t.prototype.trigger=function(e,t){if(0!==e.indexOf("client-"))throw new Se("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var n=V("triggeringClientEvents");F.warn("Client event triggered before channel 'subscription_succeeded' event . "+n)}return this.pusher.send_event(e,t,this.name)},t.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},t.prototype.handleEvent=function(e){var t=e.event,n=e.data;"pusher_internal:subscription_succeeded"===t?this.handleSubscriptionSucceededEvent(e):0!==t.indexOf("pusher_internal:")&&this.emit(t,n,{})},t.prototype.handleSubscriptionSucceededEvent=function(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)},t.prototype.subscribe=function(){var e=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(function(t,n){t?(F.error(n),e.emit("pusher:subscription_error",n)):(n=n,e.pusher.send_event("pusher:subscribe",{auth:n.auth,channel_data:n.channel_data,channel:e.name}))})))},t.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},t.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},t.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},t}(ee),Ne=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ne(t,e),t.prototype.authorize=function(e,t){return Ye.createAuthorizer(this,this.pusher.config).authorize(e,t)},t}(je),Le=function(){function e(){this.reset()}return e.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null},e.prototype.each=function(e){var t=this;T(this.members,(function(n,r){e(t.get(r))}))},e.prototype.setMyID=function(e){this.myID=e},e.prototype.onSubscription=function(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)},e.prototype.addMember=function(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)},e.prototype.removeMember=function(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t},e.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},e}(),Be=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.members=new Le,r}return Be(t,e),t.prototype.authorize=function(t,n){var r=this;e.prototype.authorize.call(this,t,(function(e,t){if(!e){if(void 0===(t=t).channel_data){var i=V("authenticationEndpoint");return F.error("Invalid auth response for channel '"+r.name+"',expected 'channel_data' field. "+i),void n("Invalid auth response")}var o=JSON.parse(t.channel_data);r.members.setMyID(o.user_id)}n(e,t)}))},t.prototype.handleEvent=function(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var n=e.data,r={};e.user_id&&(r.user_id=e.user_id),this.emit(t,n,r)}},t.prototype.handleInternalEvent=function(e){var t=e.event,n=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:member_added":var r=this.members.addMember(n);this.emit("pusher:member_added",r);break;case"pusher_internal:member_removed":var i=this.members.removeMember(n);i&&this.emit("pusher:member_removed",i)}},t.prototype.handleSubscriptionSucceededEvent=function(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))},t.prototype.disconnect=function(){this.members.reset(),e.prototype.disconnect.call(this)},t}(Re),ze=n(0),Ve=n(1),$e=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),He=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.key=null,t}return $e(t,e),t.prototype.authorize=function(t,n){var r=this;e.prototype.authorize.call(this,t,(function(e,t){if(e)n(!0,t);else{var i=t.shared_secret;if(i)r.key=Object(Ve.decodeBase64)(i),delete t.shared_secret,n(!1,t);else{var o="No shared_secret key in auth payload for encrypted channel: "+r.name;n(!0,o)}}}))},t.prototype.trigger=function(e,t){throw new De("Client events are not currently supported for encrypted channels")},t.prototype.handleEvent=function(t){var n=t.event,r=t.data;0!==n.indexOf("pusher_internal:")&&0!==n.indexOf("pusher:")?this.handleEncryptedEvent(n,r):e.prototype.handleEvent.call(this,t)},t.prototype.handleEncryptedEvent=function(e,t){var n=this;if(this.key)if(t.ciphertext&&t.nonce){var r=Object(Ve.decodeBase64)(t.ciphertext);if(r.length<ze.secretbox.overheadLength)F.error("Expected encrypted event ciphertext length to be "+ze.secretbox.overheadLength+", got: "+r.length);else{var i=Object(Ve.decodeBase64)(t.nonce);if(i.length<ze.secretbox.nonceLength)F.error("Expected encrypted event nonce length to be "+ze.secretbox.nonceLength+", got: "+i.length);else{var o=ze.secretbox.open(r,i,this.key);if(null===o)return F.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,(function(t,a){t?F.error("Failed to make a request to the authEndpoint: "+a+". Unable to fetch new key, so dropping encrypted event"):null!==(o=ze.secretbox.open(r,i,n.key))?n.emitJSON(e,Object(Ve.encodeUTF8)(o)):F.error("Failed to decrypt event with new key. Dropping encrypted event")}));this.emitJSON(e,Object(Ve.encodeUTF8)(o))}}}else F.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);else F.debug("Received encrypted event before key has been retrieved from the authEndpoint")},t.prototype.emitJSON=function(e,t){try{this.emit(e,JSON.parse(t))}catch(n){this.emit(e,t)}return this},t}(Re),Ue=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qe=function(e){function t(t,n){var r=e.call(this)||this;r.key=t,r.options=n||{},r.state="initialized",r.connection=null,r.usingTLS=!!n.useTLS,r.timeline=r.options.timeline,r.errorCallbacks=r.buildErrorCallbacks(),r.connectionCallbacks=r.buildConnectionCallbacks(r.errorCallbacks),r.handshakeCallbacks=r.buildHandshakeCallbacks(r.errorCallbacks);var i=kt.getNetwork();return i.bind("online",(function(){r.timeline.info({netinfo:"online"}),"connecting"!==r.state&&"unavailable"!==r.state||r.retryIn(0)})),i.bind("offline",(function(){r.timeline.info({netinfo:"offline"}),r.connection&&r.sendActivityCheck()})),r.updateStrategy(),r}return Ue(t,e),t.prototype.connect=function(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))},t.prototype.send=function(e){return!!this.connection&&this.connection.send(e)},t.prototype.send_event=function(e,t,n){return!!this.connection&&this.connection.send_event(e,t,n)},t.prototype.disconnect=function(){this.disconnectInternally(),this.updateState("disconnected")},t.prototype.isUsingTLS=function(){return this.usingTLS},t.prototype.startConnecting=function(){var e=this,t=function(n,r){n?e.runner=e.strategy.connect(0,t):"error"===r.action?(e.emit("error",{type:"HandshakeError",error:r.error}),e.timeline.error({handshakeError:r.error})):(e.abortConnecting(),e.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,t)},t.prototype.abortConnecting=function(){this.runner&&(this.runner.abort(),this.runner=null)},t.prototype.disconnectInternally=function(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()},t.prototype.updateStrategy=function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})},t.prototype.retryIn=function(e){var t=this;this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new C(e||0,(function(){t.disconnectInternally(),t.connect()}))},t.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},t.prototype.setUnavailableTimer=function(){var e=this;this.unavailableTimer=new C(this.options.unavailableTimeout,(function(){e.updateState("unavailable")}))},t.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},t.prototype.sendActivityCheck=function(){var e=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new C(this.options.pongTimeout,(function(){e.timeline.error({pong_timed_out:e.options.pongTimeout}),e.retryIn(0)}))},t.prototype.resetActivityCheck=function(){var e=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new C(this.activityTimeout,(function(){e.sendActivityCheck()})))},t.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},t.prototype.buildConnectionCallbacks=function(e){var t=this;return S({},e,{message:function(e){t.resetActivityCheck(),t.emit("message",e)},ping:function(){t.send_event("pusher:pong",{})},activity:function(){t.resetActivityCheck()},error:function(e){t.emit("error",{type:"WebSocketError",error:e})},closed:function(){t.abandonConnection(),t.shouldRetry()&&t.retryIn(1e3)}})},t.prototype.buildHandshakeCallbacks=function(e){var t=this;return S({},e,{connected:function(e){t.activityTimeout=Math.min(t.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),t.clearUnavailableTimer(),t.setConnection(e.connection),t.socket_id=t.connection.id,t.updateState("connected",{socket_id:t.socket_id})}})},t.prototype.buildErrorCallbacks=function(){var e=this,t=function(t){return function(n){n.error&&e.emit("error",{type:"WebSocketError",error:n.error}),t(n)}};return{tls_only:t((function(){e.usingTLS=!0,e.updateStrategy(),e.retryIn(0)})),refused:t((function(){e.disconnect()})),backoff:t((function(){e.retryIn(1e3)})),retry:t((function(){e.retryIn(0)}))}},t.prototype.setConnection=function(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()},t.prototype.abandonConnection=function(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}},t.prototype.updateState=function(e,t){var n=this.state;if(this.state=e,n!==e){var r=e;"connected"===r&&(r+=" with new socket ID "+t.socket_id),F.debug("State changed",n+" -> "+r),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:n,current:e}),this.emit(e,t)}},t.prototype.shouldRetry=function(){return"connecting"===this.state||"connected"===this.state},t}(ee),We=function(){function e(){this.channels={}}return e.prototype.add=function(e,t){return this.channels[e]||(this.channels[e]=function(e,t){return 0===e.indexOf("private-encrypted-")?Ye.createEncryptedChannel(e,t):0===e.indexOf("private-")?Ye.createPrivateChannel(e,t):0===e.indexOf("presence-")?Ye.createPresenceChannel(e,t):Ye.createChannel(e,t)}(e,t)),this.channels[e]},e.prototype.all=function(){return function(e){var t=[];return T(e,(function(e){t.push(e)})),t}(this.channels)},e.prototype.find=function(e){return this.channels[e]},e.prototype.remove=function(e){var t=this.channels[e];return delete this.channels[e],t},e.prototype.disconnect=function(){T(this.channels,(function(e){e.disconnect()}))},e}(),Ye={createChannels:function(){return new We},createConnectionManager:function(e,t){return new qe(e,t)},createChannel:function(e,t){return new je(e,t)},createPrivateChannel:function(e,t){return new Re(e,t)},createPresenceChannel:function(e,t){return new Fe(e,t)},createEncryptedChannel:function(e,t){return new He(e,t)},createTimelineSender:function(e,t){return new Ae(e,t)},createAuthorizer:function(e,t){return t.authorizer?t.authorizer(e,t):new Ce(e,t)},createHandshake:function(e,t){return new _e(e,t)},createAssistantToTheTransportManager:function(e,t,n){return new ge(e,t,n)}},Ke=function(){function e(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}return e.prototype.getAssistant=function(e){return Ye.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},e.prototype.isAlive=function(){return this.livesLeft>0},e.prototype.reportDeath=function(){this.livesLeft-=1},e}(),Ge=function(){function e(e,t){this.strategies=e,this.loop=Boolean(t.loop),this.failFast=Boolean(t.failFast),this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}return e.prototype.isSupported=function(){return N(this.strategies,x.method("isSupported"))},e.prototype.connect=function(e,t){var n=this,r=this.strategies,i=0,o=this.timeout,a=null,s=function(c,l){l?t(null,l):(i+=1,n.loop&&(i%=r.length),i<r.length?(o&&(o*=2,n.timeoutLimit&&(o=Math.min(o,n.timeoutLimit))),a=n.tryStrategy(r[i],e,{timeout:o,failFast:n.failFast},s)):t(!0))};return a=this.tryStrategy(r[i],e,{timeout:o,failFast:this.failFast},s),{abort:function(){a.abort()},forceMinPriority:function(t){e=t,a&&a.forceMinPriority(t)}}},e.prototype.tryStrategy=function(e,t,n,r){var i=null,o=null;return n.timeout>0&&(i=new C(n.timeout,(function(){o.abort(),r(!0)}))),o=e.connect(t,(function(e,t){e&&i&&i.isRunning()&&!n.failFast||(i&&i.ensureAborted(),r(e,t))})),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(e){o.forceMinPriority(e)}}},e}(),Qe=function(){function e(e){this.strategies=e}return e.prototype.isSupported=function(){return N(this.strategies,x.method("isSupported"))},e.prototype.connect=function(e,t){return function(e,t,n){var r=P(e,(function(e,r,i,o){return e.connect(t,n(r,o))}));return{abort:function(){O(r,Xe)},forceMinPriority:function(e){O(r,(function(t){t.forceMinPriority(e)}))}}}(this.strategies,e,(function(e,n){return function(r,i){n[e].error=r,r?function(e){return function(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n,e))return!1;return!0}(e,(function(e){return Boolean(e.error)}))}(n)&&t(!0):(O(n,(function(e){e.forceMinPriority(i.transport.priority)})),t(null,i))}}))},e}();function Xe(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}var Je=function(){function e(e,t,n){this.strategy=e,this.transports=t,this.ttl=n.ttl||18e5,this.usingTLS=n.useTLS,this.timeline=n.timeline}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var n=this.usingTLS,r=function(e){var t=kt.getLocalStorage();if(t)try{var n=t[Ze(e)];if(n)return JSON.parse(n)}catch(t){et(e)}return null}(n),i=[this.strategy];if(r&&r.timestamp+this.ttl>=x.now()){var o=this.transports[r.transport];o&&(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),i.push(new Ge([o],{timeout:2*r.latency+1e3,failFast:!0})))}var a=x.now(),s=i.pop().connect(e,(function r(o,c){o?(et(n),i.length>0?(a=x.now(),s=i.pop().connect(e,r)):t(o)):(function(e,t,n){var r=kt.getLocalStorage();if(r)try{r[Ze(e)]=B({timestamp:x.now(),transport:t,latency:n})}catch(e){}}(n,c.transport.name,x.now()-a),t(null,c))}));return{abort:function(){s.abort()},forceMinPriority:function(t){e=t,s&&s.forceMinPriority(t)}}},e}();function Ze(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function et(e){var t=kt.getLocalStorage();if(t)try{delete t[Ze(e)]}catch(e){}}var tt=function(){function e(e,t){var n=t.delay;this.strategy=e,this.options={delay:n}}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var n,r=this.strategy,i=new C(this.options.delay,(function(){n=r.connect(e,t)}));return{abort:function(){i.ensureAborted(),n&&n.abort()},forceMinPriority:function(t){e=t,n&&n.forceMinPriority(t)}}},e}(),nt=function(){function e(e,t,n){this.test=e,this.trueBranch=t,this.falseBranch=n}return e.prototype.isSupported=function(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()},e.prototype.connect=function(e,t){return(this.test()?this.trueBranch:this.falseBranch).connect(e,t)},e}(),rt=function(){function e(e){this.strategy=e}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var n=this.strategy.connect(e,(function(e,r){r&&n.abort(),t(e,r)}));return n},e}();function it(e){return function(){return e.isSupported()}}var ot,at=function(e,t){var n={};function r(r,i,o,a,s){var c=t(e,r,i,o,a,s);return n[r]=c,c}var i,o={hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath},a=S({},o,{useTLS:!0}),s={hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath},c={loop:!0,timeout:15e3,timeoutLimit:6e4},l=new Ke({lives:2,minPingDelay:1e4,maxPingDelay:e.activity_timeout}),u=new Ke({lives:2,minPingDelay:1e4,maxPingDelay:e.activity_timeout}),d=r("ws","ws",3,o,l),f=r("wss","ws",3,a,l),h=r("sockjs","sockjs",1,s),p=r("xhr_streaming","xhr_streaming",1,s,u),m=r("xdr_streaming","xdr_streaming",1,s,u),v=r("xhr_polling","xhr_polling",1,s),g=r("xdr_polling","xdr_polling",1,s),b=new Ge([d],c),y=new Ge([f],c),k=new Ge([h],c),w=new Ge([new nt(it(p),p,m)],c),_=new Ge([new nt(it(v),v,g)],c),C=new Ge([new nt(it(w),new Qe([w,new tt(_,{delay:4e3})]),_)],c),A=new nt(it(C),C,k);return i=e.useTLS?new Qe([b,new tt(A,{delay:2e3})]):new Qe([b,new tt(y,{delay:2e3}),new tt(A,{delay:5e3})]),new Je(new rt(new nt(it(d),i,A)),n,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})},st={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new Me),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}},ct=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(e){function t(t,n,r){var i=e.call(this)||this;return i.hooks=t,i.method=n,i.url=r,i}return ct(t,e),t.prototype.start=function(e){var t=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){t.close()},kt.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)},t.prototype.close=function(){this.unloader&&(kt.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},t.prototype.onChunk=function(e,t){for(;;){var n=this.advanceBuffer(t);if(!n)break;this.emit("chunk",{status:e,data:n})}this.isBufferTooLong(t)&&this.emit("buffer_too_long")},t.prototype.advanceBuffer=function(e){var t=e.slice(this.position),n=t.indexOf("\n");return-1!==n?(this.position+=n+1,t.slice(0,n)):null},t.prototype.isBufferTooLong=function(e){return this.position===e.length&&e.length>262144},t}(ee);!function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSED=3]="CLOSED"}(ot||(ot={}));var ut=ot,dt=1;function ft(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+dt++}function ht(e){return Math.floor(Math.random()*e)}var pt,mt=function(){function e(e,t){this.hooks=e,this.session=ht(1e3)+"/"+function(e){for(var t=[],n=0;n<e;n++)t.push(ht(32).toString(32));return t.join("")}(8),this.location=function(e){var t=/([^\?]*)\/*(\??.*)/.exec(e);return{base:t[1],queryString:t[2]}}(t),this.readyState=ut.CONNECTING,this.openStream()}return e.prototype.send=function(e){return this.sendRaw(JSON.stringify([e]))},e.prototype.ping=function(){this.hooks.sendHeartbeat(this)},e.prototype.close=function(e,t){this.onClose(e,t,!0)},e.prototype.sendRaw=function(e){if(this.readyState!==ut.OPEN)return!1;try{return kt.createSocketRequest("POST",ft((t=this.location,n=this.session,t.base+"/"+n+"/xhr_send"))).start(e),!0}catch(e){return!1}var t,n},e.prototype.reconnect=function(){this.closeStream(),this.openStream()},e.prototype.onClose=function(e,t,n){this.closeStream(),this.readyState=ut.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:n})},e.prototype.onChunk=function(e){var t;if(200===e.status)switch(this.readyState===ut.OPEN&&this.onActivity(),e.data.slice(0,1)){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var n=0;n<t.length;n++)this.onEvent(t[n]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0)}},e.prototype.onOpen=function(e){var t,n,r;this.readyState===ut.CONNECTING?(e&&e.hostname&&(this.location.base=(t=this.location.base,n=e.hostname,(r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(t))[1]+n+r[3])),this.readyState=ut.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)},e.prototype.onEvent=function(e){this.readyState===ut.OPEN&&this.onmessage&&this.onmessage({data:e})},e.prototype.onActivity=function(){this.onactivity&&this.onactivity()},e.prototype.onError=function(e){this.onerror&&this.onerror(e)},e.prototype.openStream=function(){var e=this;this.stream=kt.createSocketRequest("POST",ft(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",(function(t){e.onChunk(t)})),this.stream.bind("finished",(function(t){e.hooks.onFinished(e,t)})),this.stream.bind("buffer_too_long",(function(){e.reconnect()}));try{this.stream.start()}catch(t){x.defer((function(){e.onError(t),e.onClose(1006,"Could not start streaming",!1)}))}},e.prototype.closeStream=function(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)},e}(),vt={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr_streaming"+e.queryString},onHeartbeat:function(e){e.sendRaw("[]")},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){e.onClose(1006,"Connection interrupted ("+t+")",!1)}},gt={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr"+e.queryString},onHeartbeat:function(){},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){200===t?e.reconnect():e.onClose(1006,"Connection interrupted ("+t+")",!1)}},bt={getRequest:function(e){var t=new(kt.getXHRAPI());return t.onreadystatechange=t.onprogress=function(){switch(t.readyState){case 3:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText);break;case 4:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText),e.emit("finished",t.status),e.close()}},t},abortRequest:function(e){e.onreadystatechange=null,e.abort()}},yt={createStreamingSocket:function(e){return this.createSocket(vt,e)},createPollingSocket:function(e){return this.createSocket(gt,e)},createSocket:function(e,t){return new mt(e,t)},createXHR:function(e,t){return this.createRequest(bt,e,t)},createRequest:function(e,t,n){return new lt(e,t,n)},createXDR:function(e,t){return this.createRequest(st,e,t)}},kt={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:s,getDefaultStrategy:at,Transports:pe,transportConnectionInitializer:function(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),c.load(e.hooks.file,{useTLS:e.options.useTLS},(function(t,n){e.hooks.isInitialized()?(e.changeState("initialized"),n(!0)):(t&&e.onError(t),e.onClose(),n(!1))}))):e.onClose()},HTTPFactory:yt,TimelineTransport:W,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(e){var t=this;window.Pusher=e;var n=function(){t.onDocumentBody(e.ready)};window.JSON?n():c.load("json2",{},n)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:$,jsonp:H}},onDocumentBody:function(e){var t=this;document.body?e():setTimeout((function(){t.onDocumentBody(e)}),0)},createJSONPRequest:function(e,t){return new q(e,t)},createScriptRequest:function(e){return new U(e)},getLocalStorage:function(){try{return window.localStorage}catch(e){return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){return new(this.getXHRAPI())},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return ve},createWebSocket:function(e){return new(this.getWebSocketAPI())(e)},createSocketRequest:function(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var e=this.getXHRAPI();return Boolean(e)&&void 0!==(new e).withCredentials},isXDRSupported:function(e){var t=e?"https:":"http:",n=this.getProtocol();return Boolean(window.XDomainRequest)&&n===t},addUnloadListener:function(e){void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener:function(e){void 0!==window.addEventListener?window.removeEventListener("unload",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)}};!function(e){e[e.ERROR=3]="ERROR",e[e.INFO=6]="INFO",e[e.DEBUG=7]="DEBUG"}(pt||(pt={}));var wt=pt,_t=function(){function e(e,t,n){this.key=e,this.session=t,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}return e.prototype.log=function(e,t){e<=this.options.level&&(this.events.push(S({},t,{timestamp:x.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},e.prototype.error=function(e){this.log(wt.ERROR,e)},e.prototype.info=function(e){this.log(wt.INFO,e)},e.prototype.debug=function(e){this.log(wt.DEBUG,e)},e.prototype.isEmpty=function(){return 0===this.events.length},e.prototype.send=function(e,t){var n=this,r=S({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(r,(function(e,r){e||n.sent++,t&&t(e,r)})),!0},e.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},e}(),Ct=function(){function e(e,t,n,r){this.name=e,this.priority=t,this.transport=n,this.options=r||{}}return e.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},e.prototype.connect=function(e,t){var n=this;if(!this.isSupported())return At(new Pe,t);if(this.priority<e)return At(new Ee,t);var r=!1,i=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),o=null,a=function(){i.unbind("initialized",a),i.connect()},s=function(){o=Ye.createHandshake(i,(function(e){r=!0,u(),t(null,e)}))},c=function(e){u(),t(e)},l=function(){var e;u(),e=B(i),t(new Te(e))},u=function(){i.unbind("initialized",a),i.unbind("open",s),i.unbind("error",c),i.unbind("closed",l)};return i.bind("initialized",a),i.bind("open",s),i.bind("error",c),i.bind("closed",l),i.initialize(),{abort:function(){r||(u(),o?o.close():i.close())},forceMinPriority:function(e){r||n.priority<e&&(o?o.close():i.close())}}},e}();function At(e,t){return x.defer((function(){t(e)})),{abort:function(){},forceMinPriority:function(){}}}var xt=kt.Transports,St=function(e,t,n,r,i,o){var a=xt[n];if(!a)throw new Oe(n);return e.enabledTransports&&-1===E(e.enabledTransports,t)||e.disabledTransports&&-1!==E(e.disabledTransports,t)?Mt:new Ct(t,r,o?o.getAssistant(a):a,S({key:e.key,useTLS:e.useTLS,timeline:e.timeline,ignoreNullOrigin:e.ignoreNullOrigin},i))},Mt={isSupported:function(){return!1},connect:function(e,t){var n=x.defer((function(){t(new Pe)}));return{abort:function(){n.ensureAborted()},forceMinPriority:function(){}}}},Et=function(){function e(t,n){var r,i=this;if(function(e){if(null==e)throw"You must pass your app key when you instantiate Pusher."}(t),!(n=n||{}).cluster&&!n.wsHost&&!n.httpHost){var a=V("javascriptQuickStart");F.warn("You should always specify a cluster when connecting. "+a)}"disableStats"in n&&(F.warn("The disableStats option is deprecated in favor of enableStats"),"enableStats"in n||(n.enableStats=!n.disableStats)),this.key=t,this.config=S({wsHost:o.host,wsPort:o.ws_port,wssPort:o.wss_port,wsPath:o.ws_path,httpHost:o.sockjs_host,httpPort:o.sockjs_http_port,httpsPort:o.sockjs_https_port,httpPath:o.sockjs_path,statsHost:o.stats_host,authEndpoint:o.channel_auth_endpoint,authTransport:o.channel_auth_transport,activity_timeout:o.activity_timeout,pong_timeout:o.pong_timeout,unavailable_timeout:o.unavailable_timeout},n.cluster?{wsHost:"ws-"+(r=n.cluster)+".pusher.com",httpHost:"sockjs-"+r+".pusher.com"}:{},n),this.channels=Ye.createChannels(),this.global_emitter=new ee,this.sessionID=Math.floor(1e9*Math.random()),this.timeline=new _t(this.key,this.sessionID,{cluster:this.config.cluster,features:e.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:wt.INFO,version:o.VERSION}),this.config.enableStats&&(this.timelineSender=Ye.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+kt.TimelineTransport.name})),this.connection=Ye.createConnectionManager(this.key,S({getStrategy:function(e){var t=S({},i.config,e);return kt.getDefaultStrategy(t,St)},timeline:this.timeline,activityTimeout:this.config.activity_timeout,pongTimeout:this.config.pong_timeout,unavailableTimeout:this.config.unavailable_timeout},this.config,{useTLS:this.shouldUseTLS()})),this.connection.bind("connected",(function(){i.subscribeAll(),i.timelineSender&&i.timelineSender.send(i.connection.isUsingTLS())})),this.connection.bind("message",(function(e){var t=0===e.event.indexOf("pusher_internal:");if(e.channel){var n=i.channel(e.channel);n&&n.handleEvent(e)}t||i.global_emitter.emit(e.event,e.data)})),this.connection.bind("connecting",(function(){i.channels.disconnect()})),this.connection.bind("disconnected",(function(){i.channels.disconnect()})),this.connection.bind("error",(function(e){F.warn(e)})),e.instances.push(this),this.timeline.info({instances:e.instances.length}),e.isReady&&this.connect()}return e.ready=function(){e.isReady=!0;for(var t=0,n=e.instances.length;t<n;t++)e.instances[t].connect()},e.getClientFeatures=function(){return D(j({ws:kt.Transports.ws},(function(e){return e.isSupported({})})))},e.prototype.channel=function(e){return this.channels.find(e)},e.prototype.allChannels=function(){return this.channels.all()},e.prototype.connect=function(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new A(6e4,(function(){t.send(e)}))}},e.prototype.disconnect=function(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)},e.prototype.bind=function(e,t,n){return this.global_emitter.bind(e,t,n),this},e.prototype.unbind=function(e,t,n){return this.global_emitter.unbind(e,t,n),this},e.prototype.bind_global=function(e){return this.global_emitter.bind_global(e),this},e.prototype.unbind_global=function(e){return this.global_emitter.unbind_global(e),this},e.prototype.unbind_all=function(e){return this.global_emitter.unbind_all(),this},e.prototype.subscribeAll=function(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)},e.prototype.subscribe=function(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.connection.state||t.subscribe(),t},e.prototype.unsubscribe=function(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e))&&"connected"===this.connection.state&&t.unsubscribe()},e.prototype.send_event=function(e,t,n){return this.connection.send_event(e,t,n)},e.prototype.shouldUseTLS=function(){return"https:"===kt.getProtocol()||!0===this.config.forceTLS||Boolean(this.config.encrypted)},e.instances=[],e.isReady=!1,e.logToConsole=!1,e.Runtime=kt,e.ScriptReceivers=kt.ScriptReceivers,e.DependenciesReceivers=kt.DependenciesReceivers,e.auth_callbacks=kt.auth_callbacks,e}(),Tt=t.default=Et;kt.setup(Et)}])},e.exports=n()}).call(this,n(117).Buffer)},function(e,t,n){"use strict";(function(e){var r=n(118),i=n(119),o=n(120);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var d=!0,f=0;f<c;f++)if(l(e,o+f)!==l(t,f)){d=!1;break}if(d)return o}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function k(e,t,n,r){return $(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return $(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return w(e,t,n,r)}function C(e,t,n,r){return $(V(t),e,n,r)}function A(e,t,n,r){return $(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,c,l=e[i],u=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){o=l[d],a=u[d];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=F(e[o]);return i}function D(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function N(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return o||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return o||N(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=c.isBuffer(e)?e:z(new c(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(7))},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(u(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,l=8*o-i-1,u=(1<<l)-1,d=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(t,n){var r=Object.freeze({});function i(e){return null==e}function o(e){return null!=e}function a(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function c(e){return null!==e&&"object"==typeof e}var l=Object.prototype.toString;function u(e){return"[object Object]"===l.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var v=m("slot,component",!0),g=m("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function k(e,t){return y.call(e,t)}function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var _=/-(\w)/g,C=w((function(e){return e.replace(_,(function(e,t){return t?t.toUpperCase():""}))})),A=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),x=/\B([A-Z])/g,S=w((function(e){return e.replace(x,"-$1").toLowerCase()})),M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function E(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function T(e,t){for(var n in t)e[n]=t[n];return e}function D(e){for(var t={},n=0;n<e.length;n++)e[n]&&T(t,e[n]);return t}function O(e,t,n){}var P=function(e,t,n){return!1},I=function(e){return e};function j(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return j(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return j(e[n],t[n])}))}catch(e){return!1}}function N(e,t){for(var n=0;n<e.length;n++)if(j(e[n],t))return n;return-1}function R(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var L="data-server-rendered",B=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],z={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:P,isReservedAttr:P,isUnknownElement:P,getTagNamespace:O,parsePlatformTagName:I,mustUseProp:P,async:!0,_lifecycleHooks:F},V=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function $(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var H,U=new RegExp("[^"+V.source+".$_\\d]"),q="__proto__"in{},W="undefined"!=typeof window,Y="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,K=Y&&WXEnvironment.platform.toLowerCase(),G=W&&window.navigator.userAgent.toLowerCase(),Q=G&&/msie|trident/.test(G),X=G&&G.indexOf("msie 9.0")>0,J=G&&G.indexOf("edge/")>0,Z=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===K),ee=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/)),te={}.watch,ne=!1;if(W)try{var re={};Object.defineProperty(re,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,re)}catch(r){}var ie=function(){return void 0===H&&(H=!W&&!Y&&void 0!==t&&t.process&&"server"===t.process.env.VUE_ENV),H},oe=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var se,ce="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);se="undefined"!=typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=O,ue=0,de=function(){this.id=ue++,this.subs=[]};de.prototype.addSub=function(e){this.subs.push(e)},de.prototype.removeSub=function(e){b(this.subs,e)},de.prototype.depend=function(){de.target&&de.target.addDep(this)},de.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},de.target=null;var fe=[];function he(e){fe.push(e),de.target=e}function pe(){fe.pop(),de.target=fe[fe.length-1]}var me=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ve={child:{configurable:!0}};ve.child.get=function(){return this.componentInstance},Object.defineProperties(me.prototype,ve);var ge=function(e){void 0===e&&(e="");var t=new me;return t.text=e,t.isComment=!0,t};function be(e){return new me(void 0,void 0,void 0,String(e))}function ye(e){var t=new me(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var ke=Array.prototype,we=Object.create(ke);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=ke[e];$(we,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o}))}));var _e=Object.getOwnPropertyNames(we),Ce=!0;function Ae(e){Ce=e}var xe=function(e){var t;this.value=e,this.dep=new de,this.vmCount=0,$(e,"__ob__",this),Array.isArray(e)?(q?(t=we,e.__proto__=t):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];$(e,o,t[o])}}(e,we,_e),this.observeArray(e)):this.walk(e)};function Se(e,t){var n;if(c(e)&&!(e instanceof me))return k(e,"__ob__")&&e.__ob__ instanceof xe?n=e.__ob__:Ce&&!ie()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new xe(e)),t&&n&&n.vmCount++,n}function Me(e,t,n,r,i){var o=new de,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var l=!i&&Se(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return de.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(t)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!c||(c?c.call(e,t):n=t,l=!i&&Se(t),o.notify())}})}}function Ee(e,t,n){if(Array.isArray(e)&&d(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Me(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Te(e,t){if(Array.isArray(e)&&d(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||k(e,t)&&(delete e[t],n&&n.dep.notify())}}xe.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Me(e,t[n])},xe.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Se(e[t])};var De=z.optionMergeStrategies;function Oe(e,t){if(!t)return e;for(var n,r,i,o=ce?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],k(e,n)?r!==i&&u(r)&&u(i)&&Oe(r,i):Ee(e,n,i));return e}function Pe(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Oe(r,i):i}:t?e?function(){return Oe("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Ie(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function je(e,t,n,r){var i=Object.create(e||null);return t?T(i,t):i}De.data=function(e,t,n){return n?Pe(e,t,n):t&&"function"!=typeof t?e:Pe(e,t)},F.forEach((function(e){De[e]=Ie})),B.forEach((function(e){De[e+"s"]=je})),De.watch=function(e,t,n,r){if(e===te&&(e=void 0),t===te&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in T(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},De.props=De.methods=De.inject=De.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return T(i,e),t&&T(i,t),i},De.provide=Pe;var Ne=function(e,t){return void 0===t?e:t};function Re(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[C(i)]={type:null});else if(u(n))for(var a in n)i=n[a],o[C(a)]=u(i)?i:{type:i};e.props=o}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?T({from:o},a):{from:a}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Re(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Re(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)k(e,o)||s(o);function s(r){var i=De[r]||Ne;a[r]=i(e[r],t[r],n,r)}return a}function Le(e,t,n,r){if("string"==typeof n){var i=e[t];if(k(i,n))return i[n];var o=C(n);if(k(i,o))return i[o];var a=A(o);return k(i,a)?i[a]:i[n]||i[o]||i[a]}}function Be(e,t,n,r){var i=t[e],o=!k(n,e),a=n[e],s=Ve(Boolean,i.type);if(s>-1)if(o&&!k(i,"default"))a=!1;else if(""===a||a===S(e)){var c=Ve(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(k(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==Fe(t.type)?r.call(e):r}}(r,i,e);var l=Ce;Ae(!0),Se(a),Ae(l)}return a}function Fe(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function ze(e,t){return Fe(e)===Fe(t)}function Ve(e,t){if(!Array.isArray(t))return ze(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(ze(t[n],e))return n;return-1}function $e(e,t,n){he();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){Ue(e,r,"errorCaptured hook")}}Ue(e,t,n)}finally{pe()}}function He(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&f(o)&&!o._handled&&(o.catch((function(e){return $e(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(e){$e(e,r,i)}return o}function Ue(e,t,n){if(z.errorHandler)try{return z.errorHandler.call(null,e,t,n)}catch(t){t!==e&&qe(t,null,"config.errorHandler")}qe(e,t,n)}function qe(e,t,n){if(!W&&!Y||"undefined"==typeof console)throw e;console.error(e)}var We,Ye=!1,Ke=[],Ge=!1;function Qe(){Ge=!1;var e=Ke.slice(0);Ke.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&ae(Promise)){var Xe=Promise.resolve();We=function(){Xe.then(Qe),Z&&setTimeout(O)},Ye=!0}else if(Q||"undefined"==typeof MutationObserver||!ae(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())We=void 0!==n&&ae(n)?function(){n(Qe)}:function(){setTimeout(Qe,0)};else{var Je=1,Ze=new MutationObserver(Qe),et=document.createTextNode(String(Je));Ze.observe(et,{characterData:!0}),We=function(){Je=(Je+1)%2,et.data=String(Je)},Ye=!0}function tt(e,t){var n;if(Ke.push((function(){if(e)try{e.call(t)}catch(e){$e(e,t,"nextTick")}else n&&n(t)})),Ge||(Ge=!0,We()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}var nt=new se;function rt(e){!function e(t,n){var r,i,o=Array.isArray(t);if(!(!o&&!c(t)||Object.isFrozen(t)||t instanceof me)){if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=t.length;r--;)e(t[r],n);else for(r=(i=Object.keys(t)).length;r--;)e(t[i[r]],n)}}(e,nt),nt.clear()}var it=w((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function ot(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return He(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)He(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function at(e,t,n,r,o,s){var c,l,u,d;for(c in e)l=e[c],u=t[c],d=it(c),i(l)||(i(u)?(i(l.fns)&&(l=e[c]=ot(l,s)),a(d.once)&&(l=e[c]=o(d.name,l,d.capture)),n(d.name,l,d.capture,d.passive,d.params)):l!==u&&(u.fns=l,e[c]=u));for(c in t)i(e[c])&&r((d=it(c)).name,t[c],d.capture)}function st(e,t,n){var r;e instanceof me&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){n.apply(this,arguments),b(r.fns,c)}i(s)?r=ot([c]):o(s.fns)&&a(s.merged)?(r=s).fns.push(c):r=ot([s,c]),r.merged=!0,e[t]=r}function ct(e,t,n,r,i){if(o(t)){if(k(t,n))return e[n]=t[n],i||delete t[n],!0;if(k(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function lt(e){return s(e)?[be(e)]:Array.isArray(e)?function e(t,n){var r,c,l,u,d=[];for(r=0;r<t.length;r++)i(c=t[r])||"boolean"==typeof c||(u=d[l=d.length-1],Array.isArray(c)?c.length>0&&(ut((c=e(c,(n||"")+"_"+r))[0])&&ut(u)&&(d[l]=be(u.text+c[0].text),c.shift()),d.push.apply(d,c)):s(c)?ut(u)?d[l]=be(u.text+c):""!==c&&d.push(be(c)):ut(c)&&ut(u)?d[l]=be(u.text+c.text):(a(t._isVList)&&o(c.tag)&&i(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+r+"__"),d.push(c)));return d}(e):void 0}function ut(e){return o(e)&&o(e.text)&&!1===e.isComment}function dt(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&k(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}}}return n}}function ft(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var l in n)n[l].every(ht)&&delete n[l];return n}function ht(e){return e.isComment&&!e.asyncFactory||" "===e.text}function pt(e,t,n){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=mt(t,c,e[c]))}else i={};for(var l in t)l in i||(i[l]=vt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),$(i,"$stable",a),$(i,"$key",s),$(i,"$hasNormal",o),i}function mt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:lt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function vt(e,t){return function(){return e[t]}}function gt(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(c(e))if(ce&&e[Symbol.iterator]){n=[];for(var l=e[Symbol.iterator](),u=l.next();!u.done;)n.push(t(u.value,n.length)),u=l.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],n[r]=t(e[s],s,r);return o(n)||(n=[]),n._isVList=!0,n}function bt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=T(T({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function yt(e){return Le(this.$options,"filters",e)||I}function kt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function wt(e,t,n,r,i){var o=z.keyCodes[t]||n;return i&&r&&!z.keyCodes[t]?kt(i,r):o?kt(o,e):r?S(r)!==t:void 0}function _t(e,t,n,r,i){if(n&&c(n)){var o;Array.isArray(n)&&(n=D(n));var a=function(a){if("class"===a||"style"===a||g(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||z.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=C(a),l=S(a);c in o||l in o||(o[a]=n[a],i&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))};for(var s in n)a(s)}return e}function Ct(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||xt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function At(e,t,n){return xt(e,"__once__"+t+(n?"_"+n:""),!0),e}function xt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&St(e[r],t+"_"+r,n);else St(e,t,n)}function St(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Mt(e,t){if(t&&u(t)){var n=e.on=e.on?T({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}return e}function Et(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?Et(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Tt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Dt(e,t){return"string"==typeof e?t+e:e}function Ot(e){e._o=At,e._n=p,e._s=h,e._l=gt,e._t=bt,e._q=j,e._i=N,e._m=Ct,e._f=yt,e._k=wt,e._b=_t,e._v=be,e._e=ge,e._u=Et,e._g=Mt,e._d=Tt,e._p=Dt}function Pt(e,t,n,i,o){var s,c=this,l=o.options;k(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var u=a(l._compiled),d=!u;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=dt(l.inject,i),this.slots=function(){return c.$slots||pt(e.scopedSlots,c.$slots=ft(n,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pt(e.scopedSlots,this.slots())}}),u&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=pt(e.scopedSlots,this.$slots)),l._scopeId?this._c=function(e,t,n,r){var o=Ft(s,e,t,n,r,d);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return Ft(s,e,t,n,r,d)}}function It(e,t,n,r,i){var o=ye(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function jt(e,t){for(var n in t)e[C(n)]=t[n]}Ot(Pt.prototype);var Nt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Nt.prepatch(n,n)}else(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}(e,Gt)).$mount(t?e.elm:void 0,t)},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),l=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){Ae(!1);for(var u=e._props,d=e.$options._propKeys||[],f=0;f<d.length;f++){var h=d[f],p=e.$options.props;u[h]=Be(h,p,t,e)}Ae(!0),e.$options.propsData=t}n=n||r;var m=e.$options._parentListeners;e.$options._parentListeners=n,Kt(e,n,m),l&&(e.$slots=ft(o,i.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,Zt(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,tn.push(t)):Jt(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(!(n&&(t._directInactive=!0,Xt(t))||t._inactive)){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);Zt(t,"deactivated")}}(t,!0):t.$destroy())}},Rt=Object.keys(Nt);function Lt(e,t,n,s,l){if(!i(e)){var u=n.$options._base;if(c(e)&&(e=u.extend(e)),"function"==typeof e){var d;if(i(e.cid)&&void 0===(e=function(e,t){if(a(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;var n=Vt;if(n&&o(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),a(e.loading)&&o(e.loadingComp))return e.loadingComp;if(n&&!o(e.owners)){var r=e.owners=[n],s=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return b(r,n)}));var d=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},h=R((function(n){e.resolved=$t(n,t),s?r.length=0:d(!0)})),p=R((function(t){o(e.errorComp)&&(e.error=!0,d(!0))})),m=e(h,p);return c(m)&&(f(m)?i(e.resolved)&&m.then(h,p):f(m.component)&&(m.component.then(h,p),o(m.error)&&(e.errorComp=$t(m.error,t)),o(m.loading)&&(e.loadingComp=$t(m.loading,t),0===m.delay?e.loading=!0:l=setTimeout((function(){l=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),m.delay||200)),o(m.timeout)&&(u=setTimeout((function(){u=null,i(e.resolved)&&p(null)}),m.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}(d=e,u)))return function(e,t,n,r,i){var o=ge();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}(d,t,n,s,l);t=t||{},wn(e),o(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),a=i[r],s=t.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[r]=[s].concat(a)):i[r]=s}(e.options,t);var h=function(e,t,n){var r=t.options.props;if(!i(r)){var a={},s=e.attrs,c=e.props;if(o(s)||o(c))for(var l in r){var u=S(l);ct(a,c,l,u,!0)||ct(a,s,l,u,!1)}return a}}(t,e);if(a(e.options.functional))return function(e,t,n,i,a){var s=e.options,c={},l=s.props;if(o(l))for(var u in l)c[u]=Be(u,l,t||r);else o(n.attrs)&&jt(c,n.attrs),o(n.props)&&jt(c,n.props);var d=new Pt(n,c,a,i,e),f=s.render.call(null,d._c,d);if(f instanceof me)return It(f,n,d.parent,s);if(Array.isArray(f)){for(var h=lt(f)||[],p=new Array(h.length),m=0;m<h.length;m++)p[m]=It(h[m],n,d.parent,s);return p}}(e,h,t,n,s);var p=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var m=t.slot;t={},m&&(t.slot=m)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Rt.length;n++){var r=Rt[n],i=t[r],o=Nt[r];i===o||i&&i._merged||(t[r]=i?Bt(o,i):o)}}(t);var v=e.options.name||l;return new me("vue-component-"+e.cid+(v?"-"+v:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:h,listeners:p,tag:l,children:s},d)}}}function Bt(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Ft(e,t,n,r,l,u){return(Array.isArray(n)||s(n))&&(l=r,r=n,n=void 0),a(u)&&(l=2),function(e,t,n,r,s){if(o(n)&&o(n.__ob__))return ge();if(o(n)&&o(n.is)&&(t=n.is),!t)return ge();var l,u,d;(Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0),2===s?r=lt(r):1===s&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r)),"string"==typeof t)?(u=e.$vnode&&e.$vnode.ns||z.getTagNamespace(t),l=z.isReservedTag(t)?new me(z.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!o(d=Le(e.$options,"components",t))?new me(t,n,r,void 0,void 0,e):Lt(d,n,e,r,t)):l=Lt(t,n,e,r);return Array.isArray(l)?l:o(l)?(o(u)&&function e(t,n,r){if(t.ns=n,"foreignObject"===t.tag&&(n=void 0,r=!0),o(t.children))for(var s=0,c=t.children.length;s<c;s++){var l=t.children[s];o(l.tag)&&(i(l.ns)||a(r)&&"svg"!==l.tag)&&e(l,n,r)}}(l,u),o(n)&&function(e){c(e.style)&&rt(e.style),c(e.class)&&rt(e.class)}(n),l):ge()}(e,t,n,r,l)}var zt,Vt=null;function $t(e,t){return(e.__esModule||ce&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function Ht(e){return e.isComment&&e.asyncFactory}function Ut(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(o(n)&&(o(n.componentOptions)||Ht(n)))return n}}function qt(e,t){zt.$on(e,t)}function Wt(e,t){zt.$off(e,t)}function Yt(e,t){var n=zt;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function Kt(e,t,n){zt=e,at(t,n||{},qt,Wt,Yt,e),zt=void 0}var Gt=null;function Qt(e){var t=Gt;return Gt=e,function(){Gt=t}}function Xt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Jt(e,t){if(t){if(e._directInactive=!1,Xt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Jt(e.$children[n]);Zt(e,"activated")}}function Zt(e,t){he();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)He(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),pe()}var en=[],tn=[],nn={},rn=!1,on=!1,an=0,sn=0,cn=Date.now;if(W&&!Q){var ln=window.performance;ln&&"function"==typeof ln.now&&cn()>document.createEvent("Event").timeStamp&&(cn=function(){return ln.now()})}function un(){var e,t;for(sn=cn(),on=!0,en.sort((function(e,t){return e.id-t.id})),an=0;an<en.length;an++)(e=en[an]).before&&e.before(),t=e.id,nn[t]=null,e.run();var n=tn.slice(),r=en.slice();an=en.length=tn.length=0,nn={},rn=on=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Jt(e[t],!0)}(n),function(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Zt(r,"updated")}}(r),oe&&z.devtools&&oe.emit("flush")}var dn=0,fn=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++dn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new se,this.newDepIds=new se,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!U.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=O)),this.value=this.lazy?void 0:this.get()};fn.prototype.get=function(){var e;he(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;$e(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&rt(e),pe(),this.cleanupDeps()}return e},fn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},fn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},fn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==nn[t]){if(nn[t]=!0,on){for(var n=en.length-1;n>an&&en[n].id>e.id;)n--;en.splice(n+1,0,e)}else en.push(e);rn||(rn=!0,tt(un))}}(this)},fn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){$e(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var hn={enumerable:!0,configurable:!0,get:O,set:O};function pn(e,t,n){hn.get=function(){return this[t][n]},hn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,hn)}var mn={lazy:!0};function vn(e,t,n){var r=!ie();"function"==typeof n?(hn.get=r?gn(t):bn(n),hn.set=O):(hn.get=n.get?r&&!1!==n.cache?gn(t):bn(n.get):O,hn.set=n.set||O),Object.defineProperty(e,t,hn)}function gn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),de.target&&t.depend(),t.value}}function bn(e){return function(){return e.call(this,this)}}function yn(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var kn=0;function wn(e){var t=e.options;if(e.super){var n=wn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&T(e.extendOptions,r),(t=e.options=Re(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function _n(e){this._init(e)}function Cn(e){return e&&(e.Ctor.options.name||e.tag)}function An(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===l.call(n)&&e.test(t));var n}function xn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=Cn(a.componentOptions);s&&!t(s)&&Sn(n,o,r,i)}}}function Sn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=kn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(wn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Kt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=ft(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Ft(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ft(e,t,n,r,i,!0)};var o=n&&n.data;Me(e,"$attrs",o&&o.attrs||r,null,!0),Me(e,"$listeners",t._parentListeners||r,null,!0)}(t),Zt(t,"beforeCreate"),function(e){var t=dt(e.$options.inject,e);t&&(Ae(!1),Object.keys(t).forEach((function(n){Me(e,n,t[n])})),Ae(!0))}(t),function(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&Ae(!1);var o=function(o){i.push(o);var a=Be(o,t,n,e);Me(r,o,a),o in e||pn(e,"_props",o)};for(var a in t)o(a);Ae(!0)}(e,t.props),t.methods&&function(e,t){for(var n in e.$options.props,t)e[n]="function"!=typeof t[n]?O:M(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){he();try{return e.call(t,t)}catch(e){return $e(e,t,"data()"),{}}finally{pe()}}(t,e):t||{})||(t={});for(var n,r=Object.keys(t),i=e.$options.props,o=(e.$options.methods,r.length);o--;){var a=r[o];i&&k(i,a)||(void 0,36!==(n=(a+"").charCodeAt(0))&&95!==n&&pn(e,"_data",a))}Se(t,!0)}(e):Se(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ie();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new fn(e,a||O,O,mn)),i in e||vn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)yn(e,n,r[i]);else yn(e,n,r)}}(e,t.watch)}(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Zt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(_n),function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Ee,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,n){if(u(t))return yn(this,e,t,n);(n=n||{}).user=!0;var r=new fn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){$e(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(_n),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((o=a[s])===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this._events[e];if(t){t=t.length>1?E(t):t;for(var n=E(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;i<o;i++)He(t[i],this,n,this,r)}return this}}(_n),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Qt(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Zt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Zt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(_n),function(e){Ot(e.prototype),e.prototype.$nextTick=function(e){return tt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=pt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Vt=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){$e(n,t,"render"),e=t._vnode}finally{Vt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof me||(e=ge()),e.parent=i,e}}(_n);var Mn=[String,RegExp,Array],En={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Mn,exclude:Mn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Sn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){xn(e,(function(e){return An(t,e)}))})),this.$watch("exclude",(function(t){xn(e,(function(e){return!An(t,e)}))}))},render:function(){var e=this.$slots.default,t=Ut(e),n=t&&t.componentOptions;if(n){var r=Cn(n),i=this.include,o=this.exclude;if(i&&(!r||!An(i,r))||o&&r&&An(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,b(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&Sn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return z}};Object.defineProperty(e,"config",t),e.util={warn:le,extend:T,mergeOptions:Re,defineReactive:Me},e.set=Ee,e.delete=Te,e.nextTick=tt,e.observable=function(e){return Se(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,En),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=E(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name,a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=Re(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)pn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)vn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,B.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=T({},a.options),i[r]=a,a}}(e),function(e){B.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(_n),Object.defineProperty(_n.prototype,"$isServer",{get:ie}),Object.defineProperty(_n.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(_n,"FunctionalRenderContext",{value:Pt}),_n.version="2.6.11";var Tn=m("style,class"),Dn=m("input,textarea,option,select,progress"),On=function(e,t,n){return"value"===n&&Dn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Pn=m("contenteditable,draggable,spellcheck"),In=m("events,caret,typing,plaintext-only"),jn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Nn="http://www.w3.org/1999/xlink",Rn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ln=function(e){return Rn(e)?e.slice(6,e.length):""},Bn=function(e){return null==e||!1===e};function Fn(e,t){return{staticClass:zn(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function zn(e,t){return e?t?e+" "+t:e:t||""}function Vn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)o(t=Vn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):c(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var $n={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Hn=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Un=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),qn=function(e){return Hn(e)||Un(e)};function Wn(e){return Un(e)?"svg":"math"===e?"math":void 0}var Yn=Object.create(null),Kn=m("text,number,password,search,email,tel,url");function Gn(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}var Qn=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS($n[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Xn={create:function(e,t){Jn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Jn(e,!0),Jn(t))},destroy:function(e){Jn(e,!0)}};function Jn(e,t){var n=e.data.ref;if(o(n)){var r=e.context,i=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?b(a[n],i):a[n]===i&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var Zn=new me("",{},[]),er=["create","activate","update","remove","destroy"];function tr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&o(e.data)===o(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=o(n=e.data)&&o(n=n.attrs)&&n.type,i=o(n=t.data)&&o(n=n.attrs)&&n.type;return r===i||Kn(r)&&Kn(i)}(e,t)||a(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function nr(e,t,n){var r,i,a={};for(r=t;r<=n;++r)o(i=e[r].key)&&(a[i]=r);return a}var rr={create:ir,update:ir,destroy:function(e){ir(e,Zn)}};function ir(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,o=e===Zn,a=t===Zn,s=ar(e.data.directives,e.context),c=ar(t.data.directives,t.context),l=[],u=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,cr(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(cr(i,"bind",t,e),i.def&&i.def.inserted&&l.push(i));if(l.length){var d=function(){for(var n=0;n<l.length;n++)cr(l[n],"inserted",t,e)};o?st(t,"insert",d):d()}if(u.length&&st(t,"postpatch",(function(){for(var n=0;n<u.length;n++)cr(u[n],"componentUpdated",t,e)})),!o)for(n in s)c[n]||cr(s[n],"unbind",e,e,a)}(e,t)}var or=Object.create(null);function ar(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=or),i[sr(r)]=r,r.def=Le(t.$options,"directives",r.name);return i}function sr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function cr(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(r){$e(r,n.context,"directive "+e.name+" "+t+" hook")}}var lr=[Xn,rr];function ur(e,t){var n=t.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||i(e.data.attrs)&&i(t.data.attrs))){var r,a,s=t.elm,c=e.data.attrs||{},l=t.data.attrs||{};for(r in o(l.__ob__)&&(l=t.data.attrs=T({},l)),l)a=l[r],c[r]!==a&&dr(s,r,a);for(r in(Q||J)&&l.value!==c.value&&dr(s,"value",l.value),c)i(l[r])&&(Rn(r)?s.removeAttributeNS(Nn,Ln(r)):Pn(r)||s.removeAttribute(r))}}function dr(e,t,n){e.tagName.indexOf("-")>-1?fr(e,t,n):jn(t)?Bn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Pn(t)?e.setAttribute(t,function(e,t){return Bn(t)||"false"===t?"false":"contenteditable"===e&&In(t)?t:"true"}(t,n)):Rn(t)?Bn(n)?e.removeAttributeNS(Nn,Ln(t)):e.setAttributeNS(Nn,t,n):fr(e,t,n)}function fr(e,t,n){if(Bn(n))e.removeAttribute(t);else{if(Q&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var hr={create:ur,update:ur};function pr(e,t){var n=t.elm,r=t.data,a=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=function(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Fn(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=Fn(t,n.data));return function(e,t){return o(e)||o(t)?zn(e,Vn(t)):""}(t.staticClass,t.class)}(t),c=n._transitionClasses;o(c)&&(s=zn(s,Vn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var mr,vr,gr,br,yr,kr,wr={create:pr,update:pr},_r=/[\w).+\-_$\]]/;function Cr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,l=!1,u=0,d=0,f=0,h=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(l)47===t&&92!==n&&(l=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||d||f){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:f++;break;case 41:f--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===t){for(var p=r-1,m=void 0;p>=0&&" "===(m=e.charAt(p));p--);m&&_r.test(m)||(l=!0)}}else void 0===i?(h=r+1,i=e.slice(0,r).trim()):v();function v(){(o||(o=[])).push(e.slice(h,r).trim()),h=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==h&&v(),o)for(r=0;r<o.length;r++)i=Ar(i,o[r]);return i}function Ar(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function xr(e,t){console.error("[Vue compiler]: "+e)}function Sr(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function Mr(e,t,n,r,i){(e.props||(e.props=[])).push(Rr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Er(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Rr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Tr(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Rr({name:t,value:n},r))}function Dr(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push(Rr({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function Or(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Pr(e,t,n,i,o,a,s,c){var l;(i=i||r).right?c?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete i.right):i.middle&&(c?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),i.capture&&(delete i.capture,t=Or("!",t,c)),i.once&&(delete i.once,t=Or("~",t,c)),i.passive&&(delete i.passive,t=Or("&",t,c)),i.native?(delete i.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});var u=Rr({value:n.trim(),dynamic:c},s);i!==r&&(u.modifiers=i);var d=l[t];Array.isArray(d)?o?d.unshift(u):d.push(u):l[t]=d?o?[u,d]:[d,u]:u,e.plain=!1}function Ir(e,t,n){var r=jr(e,":"+t)||jr(e,"v-bind:"+t);if(null!=r)return Cr(r);if(!1!==n){var i=jr(e,t);if(null!=i)return JSON.stringify(i)}}function jr(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Nr(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function Rr(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Lr(e,t,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=Br(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+a+"}"}}function Br(e,t){var n=function(e){if(e=e.trim(),mr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<mr-1)return(br=e.lastIndexOf("."))>-1?{exp:e.slice(0,br),key:'"'+e.slice(br+1)+'"'}:{exp:e,key:null};for(vr=e,br=yr=kr=0;!zr();)Vr(gr=Fr())?Hr(gr):91===gr&&$r(gr);return{exp:e.slice(0,yr),key:e.slice(yr+1,kr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Fr(){return vr.charCodeAt(++br)}function zr(){return br>=mr}function Vr(e){return 34===e||39===e}function $r(e){var t=1;for(yr=br;!zr();)if(Vr(e=Fr()))Hr(e);else if(91===e&&t++,93===e&&t--,0===t){kr=br;break}}function Hr(e){for(var t=e;!zr()&&(e=Fr())!==t;);}var Ur,qr="__r";function Wr(e,t,n){var r=Ur;return function i(){null!==t.apply(null,arguments)&&Gr(e,i,n,r)}}var Yr=Ye&&!(ee&&Number(ee[1])<=53);function Kr(e,t,n,r){if(Yr){var i=sn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Ur.addEventListener(e,t,ne?{capture:n,passive:r}:n)}function Gr(e,t,n,r){(r||Ur).removeEventListener(e,t._wrapper||t,n)}function Qr(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Ur=t.elm,function(e){if(o(e.__r)){var t=Q?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}o(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),at(n,r,Kr,Gr,Wr,t.context),Ur=void 0}}var Xr,Jr={create:Qr,update:Qr};function Zr(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in o(c.__ob__)&&(c=t.data.domProps=T({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var l=i(r)?"":String(r);ei(a,l)&&(a.value=l)}else if("innerHTML"===n&&Un(a.tagName)&&i(a.innerHTML)){(Xr=Xr||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var u=Xr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(r!==s[n])try{a[n]=r}catch(e){}}}}function ei(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.number)return p(n)!==p(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ti={create:Zr,update:Zr},ni=w((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function ri(e){var t=ii(e.style);return e.staticStyle?T(e.staticStyle,t):t}function ii(e){return Array.isArray(e)?D(e):"string"==typeof e?ni(e):e}var oi,ai=/^--/,si=/\s*!important$/,ci=function(e,t,n){if(ai.test(t))e.style.setProperty(t,n);else if(si.test(n))e.style.setProperty(S(t),n.replace(si,""),"important");else{var r=ui(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},li=["Webkit","Moz","ms"],ui=w((function(e){if(oi=oi||document.createElement("div").style,"filter"!==(e=C(e))&&e in oi)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<li.length;n++){var r=li[n]+t;if(r in oi)return r}}));function di(e,t){var n=t.data,r=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var a,s,c=t.elm,l=r.staticStyle,u=r.normalizedStyle||r.style||{},d=l||u,f=ii(t.data.style)||{};t.data.normalizedStyle=o(f.__ob__)?T({},f):f;var h=function(e,t){for(var n,r={},i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=ri(i.data))&&T(r,n);(n=ri(e.data))&&T(r,n);for(var o=e;o=o.parent;)o.data&&(n=ri(o.data))&&T(r,n);return r}(t);for(s in d)i(h[s])&&ci(c,s,"");for(s in h)(a=h[s])!==d[s]&&ci(c,s,null==a?"":a)}}var fi={create:di,update:di},hi=/\s+/;function pi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(hi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function mi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(hi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function vi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,gi(e.name||"v")),T(t,e),t}return"string"==typeof e?gi(e):void 0}}var gi=w((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),bi=W&&!X,yi="transition",ki="animation",wi="transition",_i="transitionend",Ci="animation",Ai="animationend";bi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(wi="WebkitTransition",_i="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ci="WebkitAnimation",Ai="webkitAnimationEnd"));var xi=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Si(e){xi((function(){xi(e)}))}function Mi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),pi(e,t))}function Ei(e,t){e._transitionClasses&&b(e._transitionClasses,t),mi(e,t)}function Ti(e,t,n){var r=Oi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===yi?_i:Ai,c=0,l=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++c>=a&&l()};setTimeout((function(){c<a&&l()}),o+1),e.addEventListener(s,u)}var Di=/\b(transform|all)(,|$)/;function Oi(e,t){var n,r=window.getComputedStyle(e),i=(r[wi+"Delay"]||"").split(", "),o=(r[wi+"Duration"]||"").split(", "),a=Pi(i,o),s=(r[Ci+"Delay"]||"").split(", "),c=(r[Ci+"Duration"]||"").split(", "),l=Pi(s,c),u=0,d=0;return t===yi?a>0&&(n=yi,u=a,d=o.length):t===ki?l>0&&(n=ki,u=l,d=c.length):d=(n=(u=Math.max(a,l))>0?a>l?yi:ki:null)?n===yi?o.length:c.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===yi&&Di.test(r[wi+"Property"])}}function Pi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Ii(t)+Ii(e[n])})))}function Ii(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ji(e,t){var n=e.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=vi(e.data.transition);if(!i(r)&&!o(n._enterCb)&&1===n.nodeType){for(var a=r.css,s=r.type,l=r.enterClass,u=r.enterToClass,d=r.enterActiveClass,f=r.appearClass,h=r.appearToClass,m=r.appearActiveClass,v=r.beforeEnter,g=r.enter,b=r.afterEnter,y=r.enterCancelled,k=r.beforeAppear,w=r.appear,_=r.afterAppear,C=r.appearCancelled,A=r.duration,x=Gt,S=Gt.$vnode;S&&S.parent;)x=S.context,S=S.parent;var M=!x._isMounted||!e.isRootInsert;if(!M||w||""===w){var E=M&&f?f:l,T=M&&m?m:d,D=M&&h?h:u,O=M&&k||v,P=M&&"function"==typeof w?w:g,I=M&&_||b,j=M&&C||y,N=p(c(A)?A.enter:A),L=!1!==a&&!X,B=Li(P),F=n._enterCb=R((function(){L&&(Ei(n,D),Ei(n,T)),F.cancelled?(L&&Ei(n,E),j&&j(n)):I&&I(n),n._enterCb=null}));e.data.show||st(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),P&&P(n,F)})),O&&O(n),L&&(Mi(n,E),Mi(n,T),Si((function(){Ei(n,E),F.cancelled||(Mi(n,D),B||(Ri(N)?setTimeout(F,N):Ti(n,s,F)))}))),e.data.show&&(t&&t(),P&&P(n,F)),L||B||F()}}}function Ni(e,t){var n=e.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=vi(e.data.transition);if(i(r)||1!==n.nodeType)return t();if(!o(n._leaveCb)){var a=r.css,s=r.type,l=r.leaveClass,u=r.leaveToClass,d=r.leaveActiveClass,f=r.beforeLeave,h=r.leave,m=r.afterLeave,v=r.leaveCancelled,g=r.delayLeave,b=r.duration,y=!1!==a&&!X,k=Li(h),w=p(c(b)?b.leave:b),_=n._leaveCb=R((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(Ei(n,u),Ei(n,d)),_.cancelled?(y&&Ei(n,l),v&&v(n)):(t(),m&&m(n)),n._leaveCb=null}));g?g(C):C()}function C(){_.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),f&&f(n),y&&(Mi(n,l),Mi(n,d),Si((function(){Ei(n,l),_.cancelled||(Mi(n,u),k||(Ri(w)?setTimeout(_,w):Ti(n,s,_)))}))),h&&h(n,_),y||k||_())}}function Ri(e){return"number"==typeof e&&!isNaN(e)}function Li(e){if(i(e))return!1;var t=e.fns;return o(t)?Li(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Bi(e,t){!0!==t.data.show&&ji(t)}var Fi=function(e){var t,n,r={},c=e.modules,l=e.nodeOps;for(t=0;t<er.length;++t)for(r[er[t]]=[],n=0;n<c.length;++n)o(c[n][er[t]])&&r[er[t]].push(c[n][er[t]]);function u(e){var t=l.parentNode(e);o(t)&&l.removeChild(t,e)}function d(e,t,n,i,s,c,u){if(o(e.elm)&&o(c)&&(e=c[u]=ye(e)),e.isRootInsert=!s,!function(e,t,n,i){var s=e.data;if(o(s)){var c=o(e.componentInstance)&&s.keepAlive;if(o(s=s.hook)&&o(s=s.init)&&s(e,!1),o(e.componentInstance))return f(e,t),h(n,e.elm,i),a(c)&&function(e,t,n,i){for(var a,s=e;s.componentInstance;)if(o(a=(s=s.componentInstance._vnode).data)&&o(a=a.transition)){for(a=0;a<r.activate.length;++a)r.activate[a](Zn,s);t.push(s);break}h(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var d=e.data,m=e.children,v=e.tag;o(v)?(e.elm=e.ns?l.createElementNS(e.ns,v):l.createElement(v,e),b(e),p(e,m,t),o(d)&&g(e,t),h(n,e.elm,i)):a(e.isComment)?(e.elm=l.createComment(e.text),h(n,e.elm,i)):(e.elm=l.createTextNode(e.text),h(n,e.elm,i))}}function f(e,t){o(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,v(e)?(g(e,t),b(e)):(Jn(e),t.push(e))}function h(e,t,n){o(e)&&(o(n)?l.parentNode(n)===e&&l.insertBefore(e,t,n):l.appendChild(e,t))}function p(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)d(t[r],n,e.elm,null,!0,t,r);else s(e.text)&&l.appendChild(e.elm,l.createTextNode(String(e.text)))}function v(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return o(e.tag)}function g(e,n){for(var i=0;i<r.create.length;++i)r.create[i](Zn,e);o(t=e.data.hook)&&(o(t.create)&&t.create(Zn,e),o(t.insert)&&n.push(e))}function b(e){var t;if(o(t=e.fnScopeId))l.setStyleScope(e.elm,t);else for(var n=e;n;)o(t=n.context)&&o(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t),n=n.parent;o(t=Gt)&&t!==e.context&&t!==e.fnContext&&o(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t)}function y(e,t,n,r,i,o){for(;r<=i;++r)d(n[r],o,e,t,!1,n,r)}function k(e){var t,n,i=e.data;if(o(i))for(o(t=i.hook)&&o(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(o(t=e.children))for(n=0;n<e.children.length;++n)k(e.children[n])}function w(e,t,n){for(;t<=n;++t){var r=e[t];o(r)&&(o(r.tag)?(_(r),k(r)):u(r.elm))}}function _(e,t){if(o(t)||o(e.data)){var n,i=r.remove.length+1;for(o(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&u(e)}return n.listeners=t,n}(e.elm,i),o(n=e.componentInstance)&&o(n=n._vnode)&&o(n.data)&&_(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);o(n=e.data.hook)&&o(n=n.remove)?n(e,t):t()}else u(e.elm)}function C(e,t,n,r){for(var i=n;i<r;i++){var a=t[i];if(o(a)&&tr(e,a))return i}}function A(e,t,n,s,c,u){if(e!==t){o(t.elm)&&o(s)&&(t=s[c]=ye(t));var f=t.elm=e.elm;if(a(e.isAsyncPlaceholder))o(t.asyncFactory.resolved)?M(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,p=t.data;o(p)&&o(h=p.hook)&&o(h=h.prepatch)&&h(e,t);var m=e.children,g=t.children;if(o(p)&&v(t)){for(h=0;h<r.update.length;++h)r.update[h](e,t);o(h=p.hook)&&o(h=h.update)&&h(e,t)}i(t.text)?o(m)&&o(g)?m!==g&&function(e,t,n,r,a){for(var s,c,u,f=0,h=0,p=t.length-1,m=t[0],v=t[p],g=n.length-1,b=n[0],k=n[g],_=!a;f<=p&&h<=g;)i(m)?m=t[++f]:i(v)?v=t[--p]:tr(m,b)?(A(m,b,r,n,h),m=t[++f],b=n[++h]):tr(v,k)?(A(v,k,r,n,g),v=t[--p],k=n[--g]):tr(m,k)?(A(m,k,r,n,g),_&&l.insertBefore(e,m.elm,l.nextSibling(v.elm)),m=t[++f],k=n[--g]):tr(v,b)?(A(v,b,r,n,h),_&&l.insertBefore(e,v.elm,m.elm),v=t[--p],b=n[++h]):(i(s)&&(s=nr(t,f,p)),i(c=o(b.key)?s[b.key]:C(b,t,f,p))?d(b,r,e,m.elm,!1,n,h):tr(u=t[c],b)?(A(u,b,r,n,h),t[c]=void 0,_&&l.insertBefore(e,u.elm,m.elm)):d(b,r,e,m.elm,!1,n,h),b=n[++h]);f>p?y(e,i(n[g+1])?null:n[g+1].elm,n,h,g,r):h>g&&w(t,f,p)}(f,m,g,n,u):o(g)?(o(e.text)&&l.setTextContent(f,""),y(f,null,g,0,g.length-1,n)):o(m)?w(m,0,m.length-1):o(e.text)&&l.setTextContent(f,""):e.text!==t.text&&l.setTextContent(f,t.text),o(p)&&o(h=p.hook)&&o(h=h.postpatch)&&h(e,t)}}}function x(e,t,n){if(a(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var S=m("attrs,class,staticClass,staticStyle,key");function M(e,t,n,r){var i,s=t.tag,c=t.data,l=t.children;if(r=r||c&&c.pre,t.elm=e,a(t.isComment)&&o(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(o(c)&&(o(i=c.hook)&&o(i=i.init)&&i(t,!0),o(i=t.componentInstance)))return f(t,n),!0;if(o(s)){if(o(l))if(e.hasChildNodes())if(o(i=c)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,h=0;h<l.length;h++){if(!d||!M(d,l[h],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else p(t,l,n);if(o(c)){var m=!1;for(var v in c)if(!S(v)){m=!0,g(t,n);break}!m&&c.class&&rt(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!i(t)){var c,u=!1,f=[];if(i(e))u=!0,d(t,f);else{var h=o(e.nodeType);if(!h&&tr(e,t))A(e,t,f,null,null,s);else{if(h){if(1===e.nodeType&&e.hasAttribute(L)&&(e.removeAttribute(L),n=!0),a(n)&&M(e,t,f))return x(t,f,!0),e;c=e,e=new me(l.tagName(c).toLowerCase(),{},[],void 0,c)}var p=e.elm,m=l.parentNode(p);if(d(t,f,p._leaveCb?null:m,l.nextSibling(p)),o(t.parent))for(var g=t.parent,b=v(t);g;){for(var y=0;y<r.destroy.length;++y)r.destroy[y](g);if(g.elm=t.elm,b){for(var _=0;_<r.create.length;++_)r.create[_](Zn,g);var C=g.data.hook.insert;if(C.merged)for(var S=1;S<C.fns.length;S++)C.fns[S]()}else Jn(g);g=g.parent}o(m)?w([e],0,0):o(e.tag)&&k(e)}}return x(t,f,u),t.elm}o(e)&&k(e)}}({nodeOps:Qn,modules:[hr,wr,Jr,ti,fi,W?{create:Bi,activate:Bi,remove:function(e,t){!0!==e.data.show?Ni(e,t):t()}}:{}].concat(lr)});X&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Yi(e,"input")}));var zi={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?st(n,"postpatch",(function(){zi.componentUpdated(e,t,n)})):Vi(e,t,n.context),e._vOptions=[].map.call(e.options,Ui)):("textarea"===n.tag||Kn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",qi),e.addEventListener("compositionend",Wi),e.addEventListener("change",Wi),X&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Vi(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Ui);i.some((function(e,t){return!j(e,r[t])}))&&(e.multiple?t.value.some((function(e){return Hi(e,i)})):t.value!==t.oldValue&&Hi(t.value,i))&&Yi(e,"change")}}};function Vi(e,t,n){$i(e,t,n),(Q||J)&&setTimeout((function(){$i(e,t,n)}),0)}function $i(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=N(r,Ui(a))>-1,a.selected!==o&&(a.selected=o);else if(j(Ui(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Hi(e,t){return t.every((function(t){return!j(t,e)}))}function Ui(e){return"_value"in e?e._value:e.value}function qi(e){e.target.composing=!0}function Wi(e){e.target.composing&&(e.target.composing=!1,Yi(e.target,"input"))}function Yi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ki(e){return!e.componentInstance||e.data&&e.data.transition?e:Ki(e.componentInstance._vnode)}var Gi={model:zi,show:{bind:function(e,t,n){var r=t.value,i=(n=Ki(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ji(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Ki(n)).data&&n.data.transition?(n.data.show=!0,r?ji(n,(function(){e.style.display=e.__vOriginalDisplay})):Ni(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Qi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Xi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Xi(Ut(t.children)):e}function Ji(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[C(o)]=i[o];return t}function Zi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var eo=function(e){return e.tag||Ht(e)},to=function(e){return"show"===e.name},no={name:"transition",props:Qi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(eo)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Xi(i);if(!o)return i;if(this._leaving)return Zi(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=Ji(this),l=this._vnode,u=Xi(l);if(o.data.directives&&o.data.directives.some(to)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!Ht(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=T({},c);if("out-in"===r)return this._leaving=!0,st(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Zi(e,i);if("in-out"===r){if(Ht(o))return l;var f,h=function(){f()};st(c,"afterEnter",h),st(c,"enterCancelled",h),st(d,"delayLeave",(function(e){f=e}))}}return i}}},ro=T({tag:String,moveClass:String},Qi);function io(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function oo(e){e.data.newPos=e.elm.getBoundingClientRect()}function ao(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete ro.mode;var so={Transition:no,TransitionGroup:{props:ro,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Qt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ji(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a)}if(r){for(var l=[],u=[],d=0;d<r.length;d++){var f=r[d];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?l.push(f):u.push(f)}this.kept=e(t,null,l),this.removed=u}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(io),e.forEach(oo),e.forEach(ao),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;Mi(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(_i,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(_i,e),n._moveCb=null,Ei(n,t))})}})))},methods:{hasMove:function(e,t){if(!bi)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){mi(n,e)})),pi(n,t),n.style.display="none",this.$el.appendChild(n);var r=Oi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};_n.config.mustUseProp=On,_n.config.isReservedTag=qn,_n.config.isReservedAttr=Tn,_n.config.getTagNamespace=Wn,_n.config.isUnknownElement=function(e){if(!W)return!0;if(qn(e))return!1;if(e=e.toLowerCase(),null!=Yn[e])return Yn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Yn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Yn[e]=/HTMLUnknownElement/.test(t.toString())},T(_n.options.directives,Gi),T(_n.options.components,so),_n.prototype.__patch__=W?Fi:O,_n.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ge),Zt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new fn(e,r,O,{before:function(){e._isMounted&&!e._isDestroyed&&Zt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Zt(e,"mounted")),e}(this,e=e&&W?Gn(e):void 0,t)},W&&setTimeout((function(){z.devtools&&oe&&oe.emit("init",_n)}),0);var co,lo=/\{\{((?:.|\r?\n)+?)\}\}/g,uo=/[-.*+?^${}()|[\]\/\\]/g,fo=w((function(e){var t=e[0].replace(uo,"\\$&"),n=e[1].replace(uo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")})),ho={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=jr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Ir(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},po={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=jr(e,"style");n&&(e.staticStyle=JSON.stringify(ni(n)));var r=Ir(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},mo=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),vo=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),go=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),bo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,yo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ko="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+V.source+"]*",wo="((?:"+ko+"\\:)?"+ko+")",_o=new RegExp("^<"+wo),Co=/^\s*(\/?)>/,Ao=new RegExp("^<\\/"+wo+"[^>]*>"),xo=/^<!DOCTYPE [^>]+>/i,So=/^<!\--/,Mo=/^<!\[/,Eo=m("script,style,textarea",!0),To={},Do={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},Oo=/&(?:lt|gt|quot|amp|#39);/g,Po=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Io=m("pre,textarea",!0),jo=function(e,t){return e&&Io(e)&&"\n"===t[0]};function No(e,t){var n=t?Po:Oo;return e.replace(n,(function(e){return Do[e]}))}var Ro,Lo,Bo,Fo,zo,Vo,$o,Ho,Uo=/^@|^v-on:/,qo=/^v-|^@|^:|^#/,Wo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ko=/^\(|\)$/g,Go=/^\[.*\]$/,Qo=/:(.*)$/,Xo=/^:|^\.|^v-bind:/,Jo=/\.[^.\]]+(?=[^\]]*$)/g,Zo=/^v-slot(:|$)|^#/,ea=/[\r\n]/,ta=/\s+/g,na=w((function(e){return(co=co||document.createElement("div")).innerHTML=e,co.textContent})),ra="_empty_";function ia(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ua(t),rawAttrsMap:{},parent:n,children:[]}}function oa(e,t){var n,r;(r=Ir(n=e,"key"))&&(n.key=r),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Ir(e,"ref");t&&(e.ref=t,e.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=jr(e,"scope"),e.slotScope=t||jr(e,"slot-scope")):(t=jr(e,"slot-scope"))&&(e.slotScope=t);var n=Ir(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Er(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot"))),"template"===e.tag){var r=Nr(e,Zo);if(r){var i=ca(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||ra}}else{var s=Nr(e,Zo);if(s){var c=e.scopedSlots||(e.scopedSlots={}),l=ca(s),u=l.name,d=l.dynamic,f=c[u]=ia("template",[],e);f.slotTarget=u,f.slotTargetDynamic=d,f.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=f,!0})),f.slotScope=s.value||ra,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=Ir(e,"name"))}(e),function(e){var t;(t=Ir(e,"is"))&&(e.component=t),null!=jr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var i=0;i<Bo.length;i++)e=Bo[i](e,t)||e;return function(e){var t,n,r,i,o,a,s,c,l=e.attrsList;for(t=0,n=l.length;t<n;t++)if(r=i=l[t].name,o=l[t].value,qo.test(r))if(e.hasBindings=!0,(a=la(r.replace(qo,"")))&&(r=r.replace(Jo,"")),Xo.test(r))r=r.replace(Xo,""),o=Cr(o),(c=Go.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=C(r))&&(r="innerHTML"),a.camel&&!c&&(r=C(r)),a.sync&&(s=Br(o,"$event"),c?Pr(e,'"update:"+('+r+")",s,null,!1,0,l[t],!0):(Pr(e,"update:"+C(r),s,null,!1,0,l[t]),S(r)!==C(r)&&Pr(e,"update:"+S(r),s,null,!1,0,l[t])))),a&&a.prop||!e.component&&$o(e.tag,e.attrsMap.type,r)?Mr(e,r,o,l[t],c):Er(e,r,o,l[t],c);else if(Uo.test(r))r=r.replace(Uo,""),(c=Go.test(r))&&(r=r.slice(1,-1)),Pr(e,r,o,a,!1,0,l[t],c);else{var u=(r=r.replace(qo,"")).match(Qo),d=u&&u[1];c=!1,d&&(r=r.slice(0,-(d.length+1)),Go.test(d)&&(d=d.slice(1,-1),c=!0)),Dr(e,r,i,o,d,c,a,l[t])}else Er(e,r,JSON.stringify(o),l[t]),!e.component&&"muted"===r&&$o(e.tag,e.attrsMap.type,r)&&Mr(e,r,"true",l[t])}(e),e}function aa(e){var t;if(t=jr(e,"v-for")){var n=function(e){var t=e.match(Wo);if(t){var n={};n.for=t[2].trim();var r=t[1].trim().replace(Ko,""),i=r.match(Yo);return i?(n.alias=r.replace(Yo,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}(t);n&&T(e,n)}}function sa(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function ca(e){var t=e.name.replace(Zo,"");return t||"#"!==e.name[0]&&(t="default"),Go.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function la(e){var t=e.match(Jo);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function ua(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}var da=/^xmlns:NS\d+/,fa=/^NS\d+:/;function ha(e){return ia(e.tag,e.attrsList.slice(),e.parent)}var pa,ma,va=[ho,po,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Ir(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=jr(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=jr(e,"v-else",!0),s=jr(e,"v-else-if",!0),c=ha(e);aa(c),Tr(c,"type","checkbox"),oa(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+o,sa(c,{exp:c.if,block:c});var l=ha(e);jr(l,"v-for",!0),Tr(l,"type","radio"),oa(l,t),sa(c,{exp:"("+n+")==='radio'"+o,block:l});var u=ha(e);return jr(u,"v-for",!0),Tr(u,":type",n),oa(u,t),sa(c,{exp:i,block:u}),a?c.else=!0:s&&(c.elseif=s),c}}}}],ga={expectHTML:!0,modules:va,directives:{model:function(e,t,n){var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Lr(e,r,i),!1;if("select"===o)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";Pr(e,"change",r=r+" "+Br(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}(e,r,i);else if("input"===o&&"checkbox"===a)!function(e,t,n){var r=n&&n.number,i=Ir(e,"value")||"null",o=Ir(e,"true-value")||"true",a=Ir(e,"false-value")||"false";Mr(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Pr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Br(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Br(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Br(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Ir(e,"value")||"null";Mr(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Pr(e,"change",Br(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,l=o?"change":"range"===r?qr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var d=Br(t,u);c&&(d="if($event.target.composing)return;"+d),Mr(e,"value","("+t+")"),Pr(e,l,d,null,!0),(s||a)&&Pr(e,"blur","$forceUpdate()")}(e,r,i);else if(!z.isReservedTag(o))return Lr(e,r,i),!1;return!0},text:function(e,t){t.value&&Mr(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Mr(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:mo,mustUseProp:On,canBeLeftOpenTag:vo,isReservedTag:qn,getTagNamespace:Wn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(va)},ba=w((function(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));var ya=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,ka=/\([^)]*?\);*$/,wa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,_a={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ca={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Aa=function(e){return"if("+e+")return null;"},xa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Aa("$event.target !== $event.currentTarget"),ctrl:Aa("!$event.ctrlKey"),shift:Aa("!$event.shiftKey"),alt:Aa("!$event.altKey"),meta:Aa("!$event.metaKey"),left:Aa("'button' in $event && $event.button !== 0"),middle:Aa("'button' in $event && $event.button !== 1"),right:Aa("'button' in $event && $event.button !== 2")};function Sa(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Ma(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Ma(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Ma(e)})).join(",")+"]";var t=wa.test(e.value),n=ya.test(e.value),r=wa.test(e.value.replace(ka,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(xa[s])o+=xa[s],_a[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=Aa(["ctrl","shift","alt","meta"].filter((function(e){return!c[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ea).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ea(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=_a[e],r=Ca[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ta={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:O},Da=function(e){this.options=e,this.warn=e.warn||xr,this.transforms=Sr(e.modules,"transformCode"),this.dataGenFns=Sr(e.modules,"genData"),this.directives=T(T({},Ta),e.directives);var t=e.isReservedTag||P;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Oa(e,t){var n=new Da(t);return{render:"with(this){return "+(e?Pa(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Pa(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ia(e,t);if(e.once&&!e.onceProcessed)return ja(e,t);if(e.for&&!e.forProcessed)return Ra(e,t);if(e.if&&!e.ifProcessed)return Na(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=za(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Ha((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:C(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:za(t,n,!0);return"_c("+e+","+La(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=La(e,t));var i=e.inlineTemplate?null:za(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return za(e,t)||"void 0"}function Ia(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+Pa(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function ja(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Na(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+Pa(e,t)+","+t.onceId+++","+n+")":Pa(e,t)}return Ia(e,t)}function Na(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,i){if(!t.length)return i||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+e(t,n,r,i):""+a(o.block);function a(e){return r?r(e,n):e.once?ja(e,n):Pa(e,n)}}(e.ifConditions.slice(),t,n,r)}function Ra(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||Pa)(e,t)+"})"}function La(e,t){var n="{",r=function(e,t){var n=e.directives;if(n){var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var l=t.directives[o.name];l&&(a=!!l(e,o,t.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return c?s.slice(0,-1)+"]":void 0}}(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+Ha(e.attrs)+","),e.props&&(n+="domProps:"+Ha(e.props)+","),e.events&&(n+=Sa(e.events,!1)+","),e.nativeEvents&&(n+=Sa(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,t,n){var r=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Ba(n)})),i=!!e.if;if(!r)for(var o=e.parent;o;){if(o.slotScope&&o.slotScope!==ra||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(t).map((function(e){return Fa(t[e],n)})).join(",");return"scopedSlots:_u(["+a+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=Oa(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Ha(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ba(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ba))}function Fa(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Na(e,t,Fa,"null");if(e.for&&!e.forProcessed)return Ra(e,t,Fa);var r=e.slotScope===ra?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(za(e,t)||"undefined")+":undefined":za(e,t)||"undefined":Pa(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function za(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Pa)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(Va(i)||i.ifConditions&&i.ifConditions.some((function(e){return Va(e.block)}))){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}(o,t.maybeComponent):0,l=i||$a;return"["+o.map((function(e){return l(e,t)})).join(",")+"]"+(c?","+c:"")}}function Va(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function $a(e,t){return 1===e.type?Pa(e,t):3===e.type&&e.isComment?(r=e,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=e).type?n.expression:Ua(JSON.stringify(n.text)))+")";var n,r}function Ha(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=Ua(i.value);i.dynamic?n+=i.name+","+o+",":t+='"'+i.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function Ua(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function qa(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),O}}function Wa(e){var t=Object.create(null);return function(n,r,i){(r=T({},r)).warn,delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r),s={},c=[];return s.render=qa(a.render,c),s.staticRenderFns=a.staticRenderFns.map((function(e){return qa(e,c)})),t[o]=s}}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b");var Ya,Ka,Ga=(Ya=function(e,t){var n=function(e,t){Ro=t.warn||xr,Vo=t.isPreTag||P,$o=t.mustUseProp||P,Ho=t.getTagNamespace||P,t.isReservedTag,Bo=Sr(t.modules,"transformNode"),Fo=Sr(t.modules,"preTransformNode"),zo=Sr(t.modules,"postTransformNode"),Lo=t.delimiters;var n,r,i=[],o=!1!==t.preserveWhitespace,a=t.whitespace,s=!1,c=!1;function l(e){if(u(e),s||e.processed||(e=oa(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&sa(n,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)a=e,(l=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children))&&l.if&&sa(l,{exp:a.elseif,block:a});else{if(e.slotScope){var o=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[o]=e}r.children.push(e),e.parent=r}var a,l;e.children=e.children.filter((function(e){return!e.slotScope})),u(e),e.pre&&(s=!1),Vo(e.tag)&&(c=!1);for(var d=0;d<zo.length;d++)zo[d](e,t)}function u(e){if(!c)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||P,s=t.canBeLeftOpenTag||P,c=0;e;){if(n=e,r&&Eo(r)){var l=0,u=r.toLowerCase(),d=To[u]||(To[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),f=e.replace(d,(function(e,n,r){return l=r.length,Eo(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),jo(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));c+=e.length-f.length,e=f,S(u,c-l,c)}else{var h=e.indexOf("<");if(0===h){if(So.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),c,c+p+3),C(p+3);continue}}if(Mo.test(e)){var m=e.indexOf("]>");if(m>=0){C(m+2);continue}}var v=e.match(xo);if(v){C(v[0].length);continue}var g=e.match(Ao);if(g){var b=c;C(g[0].length),S(g[1],b,c);continue}var y=A();if(y){x(y),jo(y.tagName,e)&&C(1);continue}}var k=void 0,w=void 0,_=void 0;if(h>=0){for(w=e.slice(h);!(Ao.test(w)||_o.test(w)||So.test(w)||Mo.test(w)||(_=w.indexOf("<",1))<0);)h+=_,w=e.slice(h);k=e.substring(0,h)}h<0&&(k=e),k&&C(k.length),t.chars&&k&&t.chars(k,c-k.length,c)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function A(){var t=e.match(_o);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(Co))&&(r=e.match(yo)||e.match(bo));)r.start=c,C(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function x(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&go(n)&&S(r),s(n)&&r===n&&S(n));for(var l=a(n)||!!c,u=e.attrs.length,d=new Array(u),f=0;f<u;f++){var h=e.attrs[f],p=h[3]||h[4]||h[5]||"",m="a"===n&&"href"===h[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[f]={name:h[1],value:No(p,m)}}l||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),r=n),t.start&&t.start(n,d,l,e.start,e.end)}function S(e,n,o){var a,s;if(null==n&&(n=c),null==o&&(o=c),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var l=i.length-1;l>=a;l--)t.end&&t.end(i[l].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}S()}(e,{warn:Ro,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,u,d){var f=r&&r.ns||Ho(e);Q&&"svg"===f&&(o=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];da.test(r.name)||(r.name=r.name.replace(fa,""),t.push(r))}return t}(o));var h,p=ia(e,o,r);f&&(p.ns=f),"style"!==(h=p).tag&&("script"!==h.tag||h.attrsMap.type&&"text/javascript"!==h.attrsMap.type)||ie()||(p.forbidden=!0);for(var m=0;m<Fo.length;m++)p=Fo[m](p,t)||p;s||(function(e){null!=jr(e,"v-pre")&&(e.pre=!0)}(p),p.pre&&(s=!0)),Vo(p.tag)&&(c=!0),s?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}(p):p.processed||(aa(p),function(e){var t=jr(e,"v-if");if(t)e.if=t,sa(e,{exp:t,block:e});else{null!=jr(e,"v-else")&&(e.else=!0);var n=jr(e,"v-else-if");n&&(e.elseif=n)}}(p),function(e){null!=jr(e,"v-once")&&(e.once=!0)}(p)),n||(n=p),a?l(p):(r=p,i.push(p))},end:function(e,t,n){var o=i[i.length-1];i.length-=1,r=i[i.length-1],l(o)},chars:function(e,t,n){if(r&&(!Q||"textarea"!==r.tag||r.attrsMap.placeholder!==e)){var i,l,u,d=r.children;(e=c||e.trim()?"script"===(i=r).tag||"style"===i.tag?e:na(e):d.length?a?"condense"===a&&ea.test(e)?"":" ":o?" ":"":"")&&(c||"condense"!==a||(e=e.replace(ta," ")),!s&&" "!==e&&(l=function(e,t){var n=t?fo(t):lo;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(i=r.index)>c&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var l=Cr(r[1].trim());a.push("_s("+l+")"),s.push({"@binding":l}),c=i+r[0].length}return c<e.length&&(s.push(o=e.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(e,Lo))?u={type:2,expression:l.expression,tokens:l.tokens,text:e}:" "===e&&d.length&&" "===d[d.length-1].text||(u={type:3,text:e}),u&&d.push(u))}},comment:function(e,t,n){if(r){var i={type:3,text:e,isComment:!0};r.children.push(i)}}}),n}(e.trim(),t);!1!==t.optimize&&function(e,t){e&&(pa=ba(t.staticKeys||""),ma=t.isReservedTag||P,function e(t){if(t.static=function(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!ma(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(pa))))}(t),1===t.type){if(!ma(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var i=t.children[n];e(i),i.static||(t.static=!1)}if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++){var s=t.ifConditions[o].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,i=t.children.length;r<i;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++)e(t.ifConditions[o].block,n)}}(e,!1))}(n,t);var r=Oa(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),i=[],o=[];if(n)for(var a in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=T(Object.create(e.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(r[a]=n[a]);r.warn=function(e,t,n){(n?o:i).push(e)};var s=Ya(t.trim(),r);return s.errors=i,s.tips=o,s}return{compile:t,compileToFunctions:Wa(t)}})(ga),Qa=(Ga.compile,Ga.compileToFunctions);function Xa(e){return(Ka=Ka||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Ka.innerHTML.indexOf(" ")>0}var Ja=!!W&&Xa(!1),Za=!!W&&Xa(!0),es=w((function(e){var t=Gn(e);return t&&t.innerHTML})),ts=_n.prototype.$mount;_n.prototype.$mount=function(e,t){if((e=e&&Gn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=es(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=Qa(r,{outputSourceRange:!1,shouldDecodeNewlines:Ja,shouldDecodeNewlinesForHref:Za,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return ts.call(this,e,t)},_n.compile=Qa,e.exports=_n}).call(this,n(7),n(122).setImmediate)},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(123),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(7))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,l={},u=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return l[c]=i,r(c),c++},f.clearImmediate=h}function h(e){delete l[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=l[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(7),n(58))},function(e,t,n){var r,i,o,a,s,c,l,u,d;o={id:"sifter",exports:{},loaded:!1},r="function"==typeof(i=function(){var e=function(e,t){this.items=e,this.settings=t||{diacritics:!0}};e.prototype.tokenize=function(e){if(!(e=i(String(e||"").toLowerCase()))||!e.length)return[];var t,n,r,a,c=[],l=e.split(/ +/);for(t=0,n=l.length;t<n;t++){if(r=o(l[t]),this.settings.diacritics)for(a in s)s.hasOwnProperty(a)&&(r=r.replace(new RegExp(a,"g"),s[a]));c.push({string:l[t],regex:new RegExp(r,"i")})}return c},e.prototype.iterator=function(e,t){(a(e)?Array.prototype.forEach||function(e){for(var t=0,n=this.length;t<n;t++)e(this[t],t,this)}:function(e){for(var t in this)this.hasOwnProperty(t)&&e(this[t],t,this)}).apply(e,[t])},e.prototype.getScoreFunction=function(e,t){var n,i,o,a;e=this.prepareSearch(e,t),i=e.tokens,n=e.options.fields,o=i.length,a=e.options.nesting;var s=function(e,t){var n,r;return e?-1===(r=(e=String(e||"")).search(t.regex))?0:(n=t.string.length/e.length,0===r&&(n+=.5),n):0},c=function(){var e=n.length;return e?1===e?function(e,t){return s(r(t,n[0],a),e)}:function(t,i){for(var o=0,c=0;o<e;o++)c+=s(r(i,n[o],a),t);return c/e}:function(){return 0}}();return o?1===o?function(e){return c(i[0],e)}:"and"===e.options.conjunction?function(e){for(var t,n=0,r=0;n<o;n++){if((t=c(i[n],e))<=0)return 0;r+=t}return r/o}:function(e){for(var t=0,n=0;t<o;t++)n+=c(i[t],e);return n/o}:function(){return 0}},e.prototype.getSortFunction=function(e,n){var i,o,a,s,c,l,u,d,f,h,p;if(p=!(e=(a=this).prepareSearch(e,n)).query&&n.sort_empty||n.sort,f=function(e,t){return"$score"===e?t.score:r(a.items[t.id],e,n.nesting)},c=[],p)for(i=0,o=p.length;i<o;i++)(e.query||"$score"!==p[i].field)&&c.push(p[i]);if(e.query){for(h=!0,i=0,o=c.length;i<o;i++)if("$score"===c[i].field){h=!1;break}h&&c.unshift({field:"$score",direction:"desc"})}else for(i=0,o=c.length;i<o;i++)if("$score"===c[i].field){c.splice(i,1);break}for(d=[],i=0,o=c.length;i<o;i++)d.push("desc"===c[i].direction?-1:1);return(l=c.length)?1===l?(s=c[0].field,u=d[0],function(e,n){return u*t(f(s,e),f(s,n))}):function(e,n){var r,i,o;for(r=0;r<l;r++)if(o=c[r].field,i=d[r]*t(f(o,e),f(o,n)))return i;return 0}:null},e.prototype.prepareSearch=function(e,t){if("object"==typeof e)return e;var r=(t=n({},t)).fields,i=t.sort,o=t.sort_empty;return r&&!a(r)&&(t.fields=[r]),i&&!a(i)&&(t.sort=[i]),o&&!a(o)&&(t.sort_empty=[o]),{options:t,query:String(e||"").toLowerCase(),tokens:this.tokenize(e),total:0,items:[]}},e.prototype.search=function(e,t){var n,r,i,o,a=this;return r=this.prepareSearch(e,t),t=r.options,e=r.query,o=t.score||a.getScoreFunction(r),e.length?a.iterator(a.items,(function(e,i){n=o(e),(!1===t.filter||n>0)&&r.items.push({score:n,id:i})})):a.iterator(a.items,(function(e,t){r.items.push({score:1,id:t})})),(i=a.getSortFunction(r,t))&&r.items.sort(i),r.total=r.items.length,"number"==typeof t.limit&&(r.items=r.items.slice(0,t.limit)),r};var t=function(e,t){return"number"==typeof e&&"number"==typeof t?e>t?1:e<t?-1:0:(e=c(String(e||"")))>(t=c(String(t||"")))?1:t>e?-1:0},n=function(e,t){var n,r,i,o;for(n=1,r=arguments.length;n<r;n++)if(o=arguments[n])for(i in o)o.hasOwnProperty(i)&&(e[i]=o[i]);return e},r=function(e,t,n){if(e&&t){if(!n)return e[t];for(var r=t.split(".");r.length&&(e=e[r.shift()]););return e}},i=function(e){return(e+"").replace(/^\s+|\s+$|/g,"")},o=function(e){return(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},a=Array.isArray||"undefined"!=typeof $&&$.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s={a:"[aḀḁĂăÂâǍǎȺⱥȦȧẠạÄäÀàÁáĀāÃãÅåąĄÃąĄ]",b:"[b␢βΒB฿𐌁ᛒ]",c:"[cĆćĈĉČčĊċC̄c̄ÇçḈḉȻȼƇƈɕᴄCc]",d:"[dĎďḊḋḐḑḌḍḒḓḎḏĐđD̦d̦ƉɖƊɗƋƌᵭᶁᶑȡᴅDdð]",e:"[eÉéÈèÊêḘḙĚěĔĕẼẽḚḛẺẻĖėËëĒēȨȩĘęᶒɆɇȄȅẾếỀềỄễỂểḜḝḖḗḔḕȆȇẸẹỆệⱸᴇEeɘǝƏƐε]",f:"[fƑƒḞḟ]",g:"[gɢ₲ǤǥĜĝĞğĢģƓɠĠġ]",h:"[hĤĥĦħḨḩẖẖḤḥḢḣɦʰǶƕ]",i:"[iÍíÌìĬĭÎîǏǐÏïḮḯĨĩĮįĪīỈỉȈȉȊȋỊịḬḭƗɨɨ̆ᵻᶖİiIıɪIi]",j:"[jȷĴĵɈɉʝɟʲ]",k:"[kƘƙꝀꝁḰḱǨǩḲḳḴḵκϰ₭]",l:"[lŁłĽľĻļĹĺḶḷḸḹḼḽḺḻĿŀȽƚⱠⱡⱢɫɬᶅɭȴʟLl]",n:"[nŃńǸǹŇňÑñṄṅŅņṆṇṊṋṈṉN̈n̈ƝɲȠƞᵰᶇɳȵɴNnŊŋ]",o:"[oØøÖöÓóÒòÔôǑǒŐőŎŏȮȯỌọƟɵƠơỎỏŌōÕõǪǫȌȍՕօ]",p:"[pṔṕṖṗⱣᵽƤƥᵱ]",q:"[qꝖꝗʠɊɋꝘꝙq̃]",r:"[rŔŕɌɍŘřŖŗṘṙȐȑȒȓṚṛⱤɽ]",s:"[sŚśṠṡṢṣꞨꞩŜŝŠšŞşȘșS̈s̈]",t:"[tŤťṪṫŢţṬṭƮʈȚțṰṱṮṯƬƭ]",u:"[uŬŭɄʉỤụÜüÚúÙùÛûǓǔŰűŬŭƯưỦủŪūŨũŲųȔȕ∪]",v:"[vṼṽṾṿƲʋꝞꝟⱱʋ]",w:"[wẂẃẀẁŴŵẄẅẆẇẈẉ]",x:"[xẌẍẊẋχ]",y:"[yÝýỲỳŶŷŸÿỸỹẎẏỴỵɎɏƳƴ]",z:"[zŹźẐẑŽžŻżẒẓẔẕƵƶ]"},c=function(){var e,t,n,r,i="",o={};for(n in s)if(s.hasOwnProperty(n))for(i+=r=s[n].substring(2,s[n].length-1),e=0,t=r.length;e<t;e++)o[r.charAt(e)]=n;var a=new RegExp("["+i+"]","g");return function(e){return e.replace(a,(function(e){return o[e]})).toLowerCase()}}();return e})?i.call(o.exports,n,o.exports,o):i,o.loaded=!0,void 0!==r||(r=o.exports),c={id:"microplugin",exports:{},loaded:!1},a="function"==typeof(s=function(){var e={mixin:function(e){e.plugins={},e.prototype.initializePlugins=function(e){var n,r,i,o=this,a=[];if(o.plugins={names:[],settings:{},requested:{},loaded:{}},t.isArray(e))for(n=0,r=e.length;n<r;n++)"string"==typeof e[n]?a.push(e[n]):(o.plugins.settings[e[n].name]=e[n].options,a.push(e[n].name));else if(e)for(i in e)e.hasOwnProperty(i)&&(o.plugins.settings[i]=e[i],a.push(i));for(;a.length;)o.require(a.shift())},e.prototype.loadPlugin=function(t){var n=this,r=n.plugins,i=e.plugins[t];if(!e.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');r.requested[t]=!0,r.loaded[t]=i.fn.apply(n,[n.plugins.settings[t]||{}]),r.names.push(t)},e.prototype.require=function(e){var t=this,n=t.plugins;if(!t.plugins.loaded.hasOwnProperty(e)){if(n.requested[e])throw new Error('Plugin has circular dependency ("'+e+'")');t.loadPlugin(e)}return n.loaded[e]},e.define=function(t,n){e.plugins[t]={name:t,fn:n}}}},t={isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}};return e})?s.call(c.exports,n,c.exports,c):s,c.loaded=!0,void 0!==a||(a=c.exports),u=[n(15),r,a],void 0===(d="function"==typeof(l=function(e,t,n){"use strict";var r=function(e,t){if("string"!=typeof t||t.length){var n="string"==typeof t?new RegExp(t,"i"):t,r=function(e){var t=0;if(3===e.nodeType){var i=e.data.search(n);if(i>=0&&e.data.length>0){var o=e.data.match(n),a=document.createElement("span");a.className="highlight";var s=e.splitText(i),c=(s.splitText(o[0].length),s.cloneNode(!0));a.appendChild(c),s.parentNode.replaceChild(a,s),t=1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&("highlight"!==e.className||"SPAN"!==e.tagName))for(var l=0;l<e.childNodes.length;++l)l+=r(e.childNodes[l]);return t};return e.each((function(){r(this)}))}};e.fn.removeHighlight=function(){return this.find("span.highlight").each((function(){this.parentNode.firstChild.nodeName;var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()})).end()};var i=function(){};i.prototype={on:function(e,t){this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(t)},off:function(e,t){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[e]:(this._events=this._events||{},void(e in this._events!=0&&this._events[e].splice(this._events[e].indexOf(t),1)))},trigger:function(e){if(this._events=this._events||{},e in this._events!=0)for(var t=0;t<this._events[e].length;t++)this._events[e][t].apply(this,Array.prototype.slice.call(arguments,1))}},i.mixin=function(e){for(var t=["on","off","trigger"],n=0;n<t.length;n++)e.prototype[t[n]]=i.prototype[t[n]]};var o=/Mac/.test(navigator.userAgent),a=o?91:17,s=o?18:17,c=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("input").validity,l=function(e){return void 0!==e},u=function(e){return null==e?null:"boolean"==typeof e?e?"1":"0":e+""},d=function(e){return(e+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},f={before:function(e,t,n){var r=e[t];e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)}},after:function(e,t,n){var r=e[t];e[t]=function(){var t=r.apply(e,arguments);return n.apply(e,arguments),t}}},h=function(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}},p=function(e,t){var n;return function(){var r=this,i=arguments;window.clearTimeout(n),n=window.setTimeout((function(){e.apply(r,i)}),t)}},m=function(e,t,n){var r,i=e.trigger,o={};for(r in e.trigger=function(){var n=arguments[0];if(-1===t.indexOf(n))return i.apply(e,arguments);o[n]=arguments},n.apply(e,[]),e.trigger=i,o)o.hasOwnProperty(r)&&i.apply(e,o[r])},v=function(e){var t={};if("selectionStart"in e)t.start=e.selectionStart,t.length=e.selectionEnd-t.start;else if(document.selection){e.focus();var n=document.selection.createRange(),r=document.selection.createRange().text.length;n.moveStart("character",-e.value.length),t.start=n.text.length-r,t.length=r}return t},g=function(t,n){return t?(k.$testInput||(k.$testInput=e("<span />").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).appendTo("body")),k.$testInput.text(t),function(e,t,n){var r,i,o={};if(n)for(r=0,i=n.length;r<i;r++)o[n[r]]=e.css(n[r]);else o=e.css();t.css(o)}(n,k.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),k.$testInput.width()):0},b=function(e){var t=null,n=function(n,r){var i,o,a,s,c,l,u,d;r=r||{},(n=n||window.event||{}).metaKey||n.altKey||(r.force||!1!==e.data("grow"))&&(i=e.val(),n.type&&"keydown"===n.type.toLowerCase()&&(a=(o=n.keyCode)>=48&&o<=57||o>=65&&o<=90||o>=96&&o<=111||o>=186&&o<=222||32===o,46===o||8===o?(d=v(e[0])).length?i=i.substring(0,d.start)+i.substring(d.start+d.length):8===o&&d.start?i=i.substring(0,d.start-1)+i.substring(d.start+1):46===o&&void 0!==d.start&&(i=i.substring(0,d.start)+i.substring(d.start+1)):a&&(l=n.shiftKey,u=String.fromCharCode(n.keyCode),i+=u=l?u.toUpperCase():u.toLowerCase())),s=e.attr("placeholder"),!i&&s&&(i=s),(c=g(i,e)+4)!==t&&(t=c,e.width(c),e.triggerHandler("resize")))};e.on("keydown keyup update blur",n),n()},y=function(e){var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML},k=function(n,r){var i,o,a,s,c=this;(s=n[0]).selectize=c;var l=window.getComputedStyle&&window.getComputedStyle(s,null);if(a=(a=l?l.getPropertyValue("direction"):s.currentStyle&&s.currentStyle.direction)||n.parents("[dir]:first").attr("dir")||"",e.extend(c,{order:0,settings:r,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===s.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(a),eventNS:".selectize"+ ++k.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===r.loadThrottle?c.onSearchChange:p(c.onSearchChange,r.loadThrottle)}),c.sifter=new t(this.options,{diacritics:r.diacritics}),c.settings.options){for(i=0,o=c.settings.options.length;i<o;i++)c.registerOption(c.settings.options[i]);delete c.settings.options}if(c.settings.optgroups){for(i=0,o=c.settings.optgroups.length;i<o;i++)c.registerOptionGroup(c.settings.optgroups[i]);delete c.settings.optgroups}c.settings.mode=c.settings.mode||(1===c.settings.maxItems?"single":"multi"),"boolean"!=typeof c.settings.hideSelected&&(c.settings.hideSelected="multi"===c.settings.mode),c.initializePlugins(c.settings.plugins),c.setupCallbacks(),c.setupTemplates(),c.setup()};return i.mixin(k),void 0!==n?n.mixin(k):function(e,t){t||(t={}),console.error("Selectize: Dependency MicroPlugin is missing"),t.explanation&&(console.group&&console.group(),console.error(t.explanation),console.group&&console.groupEnd())}(0,{explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'}),e.extend(k.prototype,{setup:function(){var t,n,r,i,l,u,d,f,h,p,m=this,v=m.settings,g=m.eventNS,y=e(window),k=e(document),w=m.$input;if(d=m.settings.mode,f=w.attr("class")||"",t=e("<div>").addClass(v.wrapperClass).addClass(f).addClass(d),n=e("<div>").addClass(v.inputClass).addClass("items").appendTo(t),r=e('<input type="text" autocomplete="off" />').appendTo(n).attr("tabindex",w.is(":disabled")?"-1":m.tabIndex),u=e(v.dropdownParent||t),i=e("<div>").addClass(v.dropdownClass).addClass(d).hide().appendTo(u),l=e("<div>").addClass(v.dropdownContentClass).appendTo(i),(p=w.attr("id"))&&(r.attr("id",p+"-selectized"),e("label[for='"+p+"']").attr("for",p+"-selectized")),m.settings.copyClassesToDropdown&&i.addClass(f),t.css({width:w[0].style.width}),m.plugins.names.length&&(h="plugin-"+m.plugins.names.join(" plugin-"),t.addClass(h),i.addClass(h)),(null===v.maxItems||v.maxItems>1)&&1===m.tagType&&w.attr("multiple","multiple"),m.settings.placeholder&&r.attr("placeholder",v.placeholder),!m.settings.splitOn&&m.settings.delimiter){var _=m.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");m.settings.splitOn=new RegExp("\\s*"+_+"+\\s*")}w.attr("autocorrect")&&r.attr("autocorrect",w.attr("autocorrect")),w.attr("autocapitalize")&&r.attr("autocapitalize",w.attr("autocapitalize")),r[0].type=w[0].type,m.$wrapper=t,m.$control=n,m.$control_input=r,m.$dropdown=i,m.$dropdown_content=l,i.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",(function(e){e.stopImmediatePropagation()})),i.on("mouseenter","[data-selectable]",(function(){return m.onOptionHover.apply(m,arguments)})),i.on("mousedown click","[data-selectable]",(function(){return m.onOptionSelect.apply(m,arguments)})),function(e,t,n,r){e.on(t,n,(function(t){for(var n=t.target;n&&n.parentNode!==e[0];)n=n.parentNode;return t.currentTarget=n,r.apply(this,[t])}))}(n,"mousedown","*:not(input)",(function(){return m.onItemSelect.apply(m,arguments)})),b(r),n.on({mousedown:function(){return m.onMouseDown.apply(m,arguments)},click:function(){return m.onClick.apply(m,arguments)}}),r.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return m.onKeyDown.apply(m,arguments)},keyup:function(){return m.onKeyUp.apply(m,arguments)},keypress:function(){return m.onKeyPress.apply(m,arguments)},resize:function(){m.positionDropdown.apply(m,[])},blur:function(){return m.onBlur.apply(m,arguments)},focus:function(){return m.ignoreBlur=!1,m.onFocus.apply(m,arguments)},paste:function(){return m.onPaste.apply(m,arguments)}}),k.on("keydown"+g,(function(e){m.isCmdDown=e[o?"metaKey":"ctrlKey"],m.isCtrlDown=e[o?"altKey":"ctrlKey"],m.isShiftDown=e.shiftKey})),k.on("keyup"+g,(function(e){e.keyCode===s&&(m.isCtrlDown=!1),16===e.keyCode&&(m.isShiftDown=!1),e.keyCode===a&&(m.isCmdDown=!1)})),k.on("mousedown"+g,(function(e){if(m.isFocused){if(e.target===m.$dropdown[0]||e.target.parentNode===m.$dropdown[0])return!1;m.$control.has(e.target).length||e.target===m.$control[0]||m.blur(e.target)}})),y.on(["scroll"+g,"resize"+g].join(" "),(function(){m.isOpen&&m.positionDropdown.apply(m,arguments)})),y.on("mousemove"+g,(function(){m.ignoreHover=!1})),this.revertSettings={$children:w.children().detach(),tabindex:w.attr("tabindex")},w.attr("tabindex",-1).hide().after(m.$wrapper),e.isArray(v.items)&&(m.setValue(v.items),delete v.items),c&&w.on("invalid"+g,(function(e){e.preventDefault(),m.isInvalid=!0,m.refreshState()})),m.updateOriginalInput(),m.refreshItems(),m.refreshState(),m.updatePlaceholder(),m.isSetup=!0,w.is(":disabled")&&m.disable(),m.on("change",this.onChange),w.data("selectize",m),w.addClass("selectized"),m.trigger("initialize"),!0===v.preload&&m.onSearchChange("")},setupTemplates:function(){var t=this,n=t.settings.labelField,r=t.settings.optgroupLabelField,i={optgroup:function(e){return'<div class="optgroup">'+e.html+"</div>"},optgroup_header:function(e,t){return'<div class="optgroup-header">'+t(e[r])+"</div>"},option:function(e,t){return'<div class="option">'+t(e[n])+"</div>"},item:function(e,t){return'<div class="item">'+t(e[n])+"</div>"},option_create:function(e,t){return'<div class="create">Add <strong>'+t(e.input)+"</strong>…</div>"}};t.settings.render=e.extend({},i,t.settings.render)},setupCallbacks:function(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)n.hasOwnProperty(e)&&(t=this.settings[n[e]])&&this.on(e,t)},onClick:function(e){var t=this;t.isFocused&&t.isOpen||(t.focus(),e.preventDefault())},onMouseDown:function(t){var n=this,r=t.isDefaultPrevented();if(e(t.target),n.isFocused){if(t.target!==n.$control_input[0])return"single"===n.settings.mode?n.isOpen?n.close():n.open():r||n.setActiveItem(null),!1}else r||window.setTimeout((function(){n.focus()}),0)},onChange:function(){this.$input.trigger("change")},onPaste:function(t){var n=this;n.isFull()||n.isInputHidden||n.isLocked?t.preventDefault():n.settings.splitOn&&setTimeout((function(){var t=n.$control_input.val();if(t.match(n.settings.splitOn))for(var r=e.trim(t).split(n.settings.splitOn),i=0,o=r.length;i<o;i++)n.createItem(r[i])}),0)},onKeyPress:function(e){if(this.isLocked)return e&&e.preventDefault();var t=String.fromCharCode(e.keyCode||e.which);return this.settings.create&&"multi"===this.settings.mode&&t===this.settings.delimiter?(this.createItem(),e.preventDefault(),!1):void 0},onKeyDown:function(e){var t=(e.target,this.$control_input[0],this);if(!t.isLocked){switch(e.keyCode){case 65:if(t.isCmdDown)return void t.selectAll();break;case 27:return void(t.isOpen&&(e.preventDefault(),e.stopPropagation(),t.close()));case 78:if(!e.ctrlKey||e.altKey)break;case 40:if(!t.isOpen&&t.hasOptions)t.open();else if(t.$activeOption){t.ignoreHover=!0;var n=t.getAdjacentOption(t.$activeOption,1);n.length&&t.setActiveOption(n,!0,!0)}return void e.preventDefault();case 80:if(!e.ctrlKey||e.altKey)break;case 38:if(t.$activeOption){t.ignoreHover=!0;var r=t.getAdjacentOption(t.$activeOption,-1);r.length&&t.setActiveOption(r,!0,!0)}return void e.preventDefault();case 13:return void(t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),e.preventDefault()));case 37:return void t.advanceSelection(-1,e);case 39:return void t.advanceSelection(1,e);case 9:return t.settings.selectOnTab&&t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),t.isFull()||e.preventDefault()),void(t.settings.create&&t.createItem()&&e.preventDefault());case 8:case 46:return void t.deleteSelection(e)}return!t.isFull()&&!t.isInputHidden||(o?e.metaKey:e.ctrlKey)?void 0:void e.preventDefault()}9!==e.keyCode&&e.preventDefault()},onKeyUp:function(e){var t=this;if(t.isLocked)return e&&e.preventDefault();var n=t.$control_input.val()||"";t.lastValue!==n&&(t.lastValue=n,t.onSearchChange(n),t.refreshOptions(),t.trigger("type",n))},onSearchChange:function(e){var t=this,n=t.settings.load;n&&(t.loadedSearches.hasOwnProperty(e)||(t.loadedSearches[e]=!0,t.load((function(r){n.apply(t,[e,r])}))))},onFocus:function(e){var t=this,n=t.isFocused;if(t.isDisabled)return t.blur(),e&&e.preventDefault(),!1;t.ignoreFocus||(t.isFocused=!0,"focus"===t.settings.preload&&t.onSearchChange(""),n||t.trigger("focus"),t.$activeItems.length||(t.showInput(),t.setActiveItem(null),t.refreshOptions(!!t.settings.openOnFocus)),t.refreshState())},onBlur:function(e,t){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus)){if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0])return n.ignoreBlur=!0,void n.onFocus(e);var r=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),t&&t.focus&&t.focus(),n.isBlurring=!1,n.ignoreFocus=!1,n.trigger("blur")};n.isBlurring=!0,n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,r):r()}},onOptionHover:function(e){this.ignoreHover||this.setActiveOption(e.currentTarget,!1)},onOptionSelect:function(t){var n,r,i=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),(r=e(t.currentTarget)).hasClass("create")?i.createItem(null,(function(){i.settings.closeAfterSelect&&i.close()})):void 0!==(n=r.attr("data-value"))&&(i.lastQuery=null,i.setTextboxValue(""),i.addItem(n),i.settings.closeAfterSelect?i.close():!i.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&i.setActiveOption(i.getOption(n)))},onItemSelect:function(e){var t=this;t.isLocked||"multi"===t.settings.mode&&(e.preventDefault(),t.setActiveItem(e.currentTarget,e))},load:function(e){var t=this,n=t.$wrapper.addClass(t.settings.loadingClass);t.loading++,e.apply(t,[function(e){t.loading=Math.max(t.loading-1,0),e&&e.length&&(t.addOption(e),t.refreshOptions(t.isFocused&&!t.isInputHidden)),t.loading||n.removeClass(t.settings.loadingClass),t.trigger("load",e)}])},setTextboxValue:function(e){var t=this.$control_input;t.val()!==e&&(t.val(e).triggerHandler("update"),this.lastValue=e)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(e,t){m(this,t?[]:["change"],(function(){this.clear(t),this.addItems(e,t)}))},setActiveItem:function(t,n){var r,i,o,a,s,c,l,u,d=this;if("single"!==d.settings.mode){if(!(t=e(t)).length)return e(d.$activeItems).removeClass("active"),d.$activeItems=[],void(d.isFocused&&d.showInput());if("mousedown"===(r=n&&n.type.toLowerCase())&&d.isShiftDown&&d.$activeItems.length){for(u=d.$control.children(".active:last"),(a=Array.prototype.indexOf.apply(d.$control[0].childNodes,[u[0]]))>(s=Array.prototype.indexOf.apply(d.$control[0].childNodes,[t[0]]))&&(l=a,a=s,s=l),i=a;i<=s;i++)c=d.$control[0].childNodes[i],-1===d.$activeItems.indexOf(c)&&(e(c).addClass("active"),d.$activeItems.push(c));n.preventDefault()}else"mousedown"===r&&d.isCtrlDown||"keydown"===r&&this.isShiftDown?t.hasClass("active")?(o=d.$activeItems.indexOf(t[0]),d.$activeItems.splice(o,1),t.removeClass("active")):d.$activeItems.push(t.addClass("active")[0]):(e(d.$activeItems).removeClass("active"),d.$activeItems=[t.addClass("active")[0]]);d.hideInput(),this.isFocused||d.focus()}},setActiveOption:function(t,n,r){var i,o,a,s,c,u=this;u.$activeOption&&u.$activeOption.removeClass("active"),u.$activeOption=null,(t=e(t)).length&&(u.$activeOption=t.addClass("active"),!n&&l(n)||(i=u.$dropdown_content.height(),o=u.$activeOption.outerHeight(!0),n=u.$dropdown_content.scrollTop()||0,s=a=u.$activeOption.offset().top-u.$dropdown_content.offset().top+n,c=a-i+o,a+o>i+n?u.$dropdown_content.stop().animate({scrollTop:c},r?u.settings.scrollDuration:0):a<n&&u.$dropdown_content.stop().animate({scrollTop:s},r?u.settings.scrollDuration:0)))},selectAll:function(){var e=this;"single"!==e.settings.mode&&(e.$activeItems=Array.prototype.slice.apply(e.$control.children(":not(input)").addClass("active")),e.$activeItems.length&&(e.hideInput(),e.close()),e.focus())},hideInput:function(){var e=this;e.setTextboxValue(""),e.$control_input.css({opacity:0,position:"absolute",left:e.rtl?1e4:-1e4}),e.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var e=this;e.isDisabled||(e.ignoreFocus=!0,e.$control_input[0].focus(),window.setTimeout((function(){e.ignoreFocus=!1,e.onFocus()}),0))},blur:function(e){this.$control_input[0].blur(),this.onBlur(null,e)},getScoreFunction:function(e){return this.sifter.getScoreFunction(e,this.getSearchOptions())},getSearchOptions:function(){var e=this.settings,t=e.sortField;return"string"==typeof t&&(t=[{field:t}]),{fields:e.searchField,conjunction:e.searchConjunction,sort:t,nesting:e.nesting}},search:function(t){var n,r,i,o=this,a=o.settings,s=this.getSearchOptions();if(a.score&&"function"!=typeof(i=o.settings.score.apply(this,[t])))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==o.lastQuery?(o.lastQuery=t,r=o.sifter.search(t,e.extend(s,{score:i})),o.currentResults=r):r=e.extend(!0,{},o.currentResults),a.hideSelected)for(n=r.items.length-1;n>=0;n--)-1!==o.items.indexOf(u(r.items[n].id))&&r.items.splice(n,1);return r},refreshOptions:function(t){var n,i,o,a,s,c,l,d,f,h,p,m,v,g,b,k;void 0===t&&(t=!0);var w=this,_=e.trim(w.$control_input.val()),C=w.search(_),A=w.$dropdown_content,x=w.$activeOption&&u(w.$activeOption.attr("data-value"));for(a=C.items.length,"number"==typeof w.settings.maxOptions&&(a=Math.min(a,w.settings.maxOptions)),s={},c=[],n=0;n<a;n++)for(l=w.options[C.items[n].id],d=w.render("option",l),f=l[w.settings.optgroupField]||"",i=0,o=(h=e.isArray(f)?f:[f])&&h.length;i<o;i++)f=h[i],w.optgroups.hasOwnProperty(f)||(f=""),s.hasOwnProperty(f)||(s[f]=document.createDocumentFragment(),c.push(f)),s[f].appendChild(d);for(this.settings.lockOptgroupOrder&&c.sort((function(e,t){return(w.optgroups[e].$order||0)-(w.optgroups[t].$order||0)})),p=document.createDocumentFragment(),n=0,a=c.length;n<a;n++)f=c[n],w.optgroups.hasOwnProperty(f)&&s[f].childNodes.length?((m=document.createDocumentFragment()).appendChild(w.render("optgroup_header",w.optgroups[f])),m.appendChild(s[f]),p.appendChild(w.render("optgroup",e.extend({},w.optgroups[f],{html:y(m),dom:m})))):p.appendChild(s[f]);if(A.html(p),w.settings.highlight&&(A.removeHighlight(),C.query.length&&C.tokens.length))for(n=0,a=C.tokens.length;n<a;n++)r(A,C.tokens[n].regex);if(!w.settings.hideSelected)for(n=0,a=w.items.length;n<a;n++)w.getOption(w.items[n]).addClass("selected");(v=w.canCreate(_))&&(A.prepend(w.render("option_create",{input:_})),k=e(A[0].childNodes[0])),w.hasOptions=C.items.length>0||v,w.hasOptions?(C.items.length>0?((b=x&&w.getOption(x))&&b.length?g=b:"single"===w.settings.mode&&w.items.length&&(g=w.getOption(w.items[0])),g&&g.length||(g=k&&!w.settings.addPrecedence?w.getAdjacentOption(k,1):A.find("[data-selectable]:first"))):g=k,w.setActiveOption(g),t&&!w.isOpen&&w.open()):(w.setActiveOption(null),t&&w.isOpen&&w.close())},addOption:function(t){var n,r,i,o=this;if(e.isArray(t))for(n=0,r=t.length;n<r;n++)o.addOption(t[n]);else(i=o.registerOption(t))&&(o.userOptions[i]=!0,o.lastQuery=null,o.trigger("option_add",i,t))},registerOption:function(e){var t=u(e[this.settings.valueField]);return null!=t&&!this.options.hasOwnProperty(t)&&(e.$order=e.$order||++this.order,this.options[t]=e,t)},registerOptionGroup:function(e){var t=u(e[this.settings.optgroupValueField]);return!!t&&(e.$order=e.$order||++this.order,this.optgroups[t]=e,t)},addOptionGroup:function(e,t){t[this.settings.optgroupValueField]=e,(e=this.registerOptionGroup(t))&&this.trigger("optgroup_add",e,t)},removeOptionGroup:function(e){this.optgroups.hasOwnProperty(e)&&(delete this.optgroups[e],this.renderCache={},this.trigger("optgroup_remove",e))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,n){var r,i,o,a,s,c,l,d=this;if(t=u(t),o=u(n[d.settings.valueField]),null!==t&&d.options.hasOwnProperty(t)){if("string"!=typeof o)throw new Error("Value must be set in option data");l=d.options[t].$order,o!==t&&(delete d.options[t],-1!==(a=d.items.indexOf(t))&&d.items.splice(a,1,o)),n.$order=n.$order||l,d.options[o]=n,s=d.renderCache.item,c=d.renderCache.option,s&&(delete s[t],delete s[o]),c&&(delete c[t],delete c[o]),-1!==d.items.indexOf(o)&&(r=d.getItem(t),i=e(d.render("item",n)),r.hasClass("active")&&i.addClass("active"),r.replaceWith(i)),d.lastQuery=null,d.isOpen&&d.refreshOptions(!1)}},removeOption:function(e,t){var n=this;e=u(e);var r=n.renderCache.item,i=n.renderCache.option;r&&delete r[e],i&&delete i[e],delete n.userOptions[e],delete n.options[e],n.lastQuery=null,n.trigger("option_remove",e),n.removeItem(e,t)},clearOptions:function(){var t=this;t.loadedSearches={},t.userOptions={},t.renderCache={};var n=t.options;e.each(t.options,(function(e,r){-1==t.items.indexOf(e)&&delete n[e]})),t.options=t.sifter.items=n,t.lastQuery=null,t.trigger("option_clear")},getOption:function(e){return this.getElementWithValue(e,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(t,n){var r=this.$dropdown.find("[data-selectable]"),i=r.index(t)+n;return i>=0&&i<r.length?r.eq(i):e()},getElementWithValue:function(t,n){if(void 0!==(t=u(t))&&null!==t)for(var r=0,i=n.length;r<i;r++)if(n[r].getAttribute("data-value")===t)return e(n[r]);return e()},getItem:function(e){return this.getElementWithValue(e,this.$control.children())},addItems:function(t,n){this.buffer=document.createDocumentFragment();for(var r=this.$control[0].childNodes,i=0;i<r.length;i++)this.buffer.appendChild(r[i]);for(var o=e.isArray(t)?t:[t],a=(i=0,o.length);i<a;i++)this.isPending=i<a-1,this.addItem(o[i],n);var s=this.$control[0];s.insertBefore(this.buffer,s.firstChild),this.buffer=null},addItem:function(t,n){m(this,n?[]:["change"],(function(){var r,i,o,a,s,c=this,l=c.settings.mode;t=u(t),-1===c.items.indexOf(t)?c.options.hasOwnProperty(t)&&("single"===l&&c.clear(n),"multi"===l&&c.isFull()||(r=e(c.render("item",c.options[t])),s=c.isFull(),c.items.splice(c.caretPos,0,t),c.insertAtCaret(r),(!c.isPending||!s&&c.isFull())&&c.refreshState(),c.isSetup&&(o=c.$dropdown_content.find("[data-selectable]"),c.isPending||(i=c.getOption(t),a=c.getAdjacentOption(i,1).attr("data-value"),c.refreshOptions(c.isFocused&&"single"!==l),a&&c.setActiveOption(c.getOption(a))),!o.length||c.isFull()?c.close():c.isPending||c.positionDropdown(),c.updatePlaceholder(),c.trigger("item_add",t,r),c.isPending||c.updateOriginalInput({silent:n})))):"single"===l&&c.close()}))},removeItem:function(t,n){var r,i,o,a=this;r=t instanceof e?t:a.getItem(t),t=u(r.attr("data-value")),-1!==(i=a.items.indexOf(t))&&(r.remove(),r.hasClass("active")&&(o=a.$activeItems.indexOf(r[0]),a.$activeItems.splice(o,1)),a.items.splice(i,1),a.lastQuery=null,!a.settings.persist&&a.userOptions.hasOwnProperty(t)&&a.removeOption(t,n),i<a.caretPos&&a.setCaret(a.caretPos-1),a.refreshState(),a.updatePlaceholder(),a.updateOriginalInput({silent:n}),a.positionDropdown(),a.trigger("item_remove",t,r))},createItem:function(t,n){var r=this,i=r.caretPos;t=t||e.trim(r.$control_input.val()||"");var o=arguments[arguments.length-1];if("function"!=typeof o&&(o=function(){}),"boolean"!=typeof n&&(n=!0),!r.canCreate(t))return o(),!1;r.lock();var a="function"==typeof r.settings.create?this.settings.create:function(e){var t={};return t[r.settings.labelField]=e,t[r.settings.valueField]=e,t},s=h((function(e){if(r.unlock(),!e||"object"!=typeof e)return o();var t=u(e[r.settings.valueField]);if("string"!=typeof t)return o();r.setTextboxValue(""),r.addOption(e),r.setCaret(i),r.addItem(t),r.refreshOptions(n&&"single"!==r.settings.mode),o(e)})),c=a.apply(this,[t,s]);return void 0!==c&&s(c),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var e=!this.items.length;this.isInvalid=e,this.$control_input.prop("required",e),this.$input.prop("required",!e)},refreshClasses:function(){var t=this,n=t.isFull(),r=t.isLocked;t.$wrapper.toggleClass("rtl",t.rtl),t.$control.toggleClass("focus",t.isFocused).toggleClass("disabled",t.isDisabled).toggleClass("required",t.isRequired).toggleClass("invalid",t.isInvalid).toggleClass("locked",r).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",t.isFocused&&!t.isInputHidden).toggleClass("dropdown-active",t.isOpen).toggleClass("has-options",!e.isEmptyObject(t.options)).toggleClass("has-items",t.items.length>0),t.$control_input.data("grow",!n&&!r)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(e){var t,n,r,i,o=this;if(e=e||{},1===o.tagType){for(r=[],t=0,n=o.items.length;t<n;t++)i=o.options[o.items[t]][o.settings.labelField]||"",r.push('<option value="'+d(o.items[t])+'" selected="selected">'+d(i)+"</option>");r.length||this.$input.attr("multiple")||r.push('<option value="" selected="selected"></option>'),o.$input.html(r.join(""))}else o.$input.val(o.getValue()),o.$input.attr("value",o.$input.val());o.isSetup&&(e.silent||o.trigger("change",o.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var e=this.$control_input;this.items.length?e.removeAttr("placeholder"):e.attr("placeholder",this.settings.placeholder),e.triggerHandler("update",{force:!0})}},open:function(){var e=this;e.isLocked||e.isOpen||"multi"===e.settings.mode&&e.isFull()||(e.focus(),e.isOpen=!0,e.refreshState(),e.$dropdown.css({visibility:"hidden",display:"block"}),e.positionDropdown(),e.$dropdown.css({visibility:"visible"}),e.trigger("dropdown_open",e.$dropdown))},close:function(){var e=this,t=e.isOpen;"single"===e.settings.mode&&e.items.length&&(e.hideInput(),e.isBlurring||e.$control_input.blur()),e.isOpen=!1,e.$dropdown.hide(),e.setActiveOption(null),e.refreshState(),t&&e.trigger("dropdown_close",e.$dropdown)},positionDropdown:function(){var e=this.$control,t="body"===this.settings.dropdownParent?e.offset():e.position();t.top+=e.outerHeight(!0),this.$dropdown.css({width:e[0].getBoundingClientRect().width,top:t.top,left:t.left})},clear:function(e){var t=this;t.items.length&&(t.$control.children(":not(input)").remove(),t.items=[],t.lastQuery=null,t.setCaret(0),t.setActiveItem(null),t.updatePlaceholder(),t.updateOriginalInput({silent:e}),t.refreshState(),t.showInput(),t.trigger("clear"))},insertAtCaret:function(e){var t=Math.min(this.caretPos,this.items.length),n=e[0],r=this.buffer||this.$control[0];0===t?r.insertBefore(n,r.firstChild):r.insertBefore(n,r.childNodes[t]),this.setCaret(t+1)},deleteSelection:function(t){var n,r,i,o,a,s,c,l,u,d=this;if(i=t&&8===t.keyCode?-1:1,o=v(d.$control_input[0]),d.$activeOption&&!d.settings.hideSelected&&(c=d.getAdjacentOption(d.$activeOption,-1).attr("data-value")),a=[],d.$activeItems.length){for(u=d.$control.children(".active:"+(i>0?"last":"first")),s=d.$control.children(":not(input)").index(u),i>0&&s++,n=0,r=d.$activeItems.length;n<r;n++)a.push(e(d.$activeItems[n]).attr("data-value"));t&&(t.preventDefault(),t.stopPropagation())}else(d.isFocused||"single"===d.settings.mode)&&d.items.length&&(i<0&&0===o.start&&0===o.length?a.push(d.items[d.caretPos-1]):i>0&&o.start===d.$control_input.val().length&&a.push(d.items[d.caretPos]));if(!a.length||"function"==typeof d.settings.onDelete&&!1===d.settings.onDelete.apply(d,[a]))return!1;for(void 0!==s&&d.setCaret(s);a.length;)d.removeItem(a.pop());return d.showInput(),d.positionDropdown(),d.refreshOptions(!0),c&&(l=d.getOption(c)).length&&d.setActiveOption(l),!0},advanceSelection:function(e,t){var n,r,i,o,a,s=this;0!==e&&(s.rtl&&(e*=-1),n=e>0?"last":"first",r=v(s.$control_input[0]),s.isFocused&&!s.isInputHidden?(o=s.$control_input.val().length,(e<0?0===r.start&&0===r.length:r.start===o)&&!o&&s.advanceCaret(e,t)):(a=s.$control.children(".active:"+n)).length&&(i=s.$control.children(":not(input)").index(a),s.setActiveItem(null),s.setCaret(e>0?i+1:i)))},advanceCaret:function(e,t){var n,r,i=this;0!==e&&(n=e>0?"next":"prev",i.isShiftDown?(r=i.$control_input[n]()).length&&(i.hideInput(),i.setActiveItem(r),t&&t.preventDefault()):i.setCaret(i.caretPos+e))},setCaret:function(t){var n,r,i,o,a=this;if(t="single"===a.settings.mode?a.items.length:Math.max(0,Math.min(a.items.length,t)),!a.isPending)for(n=0,r=(i=a.$control.children(":not(input)")).length;n<r;n++)o=e(i[n]).detach(),n<t?a.$control_input.before(o):a.$control.append(o);a.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var e=this;e.$input.prop("disabled",!0),e.$control_input.prop("disabled",!0).prop("tabindex",-1),e.isDisabled=!0,e.lock()},enable:function(){var e=this;e.$input.prop("disabled",!1),e.$control_input.prop("disabled",!1).prop("tabindex",e.tabIndex),e.isDisabled=!1,e.unlock()},destroy:function(){var t=this,n=t.eventNS,r=t.revertSettings;t.trigger("destroy"),t.off(),t.$wrapper.remove(),t.$dropdown.remove(),t.$input.html("").append(r.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:r.tabindex}).show(),t.$control_input.removeData("grow"),t.$input.removeData("selectize"),0==--k.count&&k.$testInput&&(k.$testInput.remove(),k.$testInput=void 0),e(window).off(n),e(document).off(n),e(document.body).off(n),delete t.$input[0].selectize},render:function(t,n){var r,i,o="",a=!1,s=this;return"option"!==t&&"item"!==t||(a=!!(r=u(n[s.settings.valueField]))),a&&(l(s.renderCache[t])||(s.renderCache[t]={}),s.renderCache[t].hasOwnProperty(r))?s.renderCache[t][r]:(o=e(s.settings.render[t].apply(this,[n,d])),"option"===t||"option_create"===t?n[s.settings.disabledField]||o.attr("data-selectable",""):"optgroup"===t&&(i=n[s.settings.optgroupValueField]||"",o.attr("data-group",i),n[s.settings.disabledField]&&o.attr("data-disabled","")),"option"!==t&&"item"!==t||o.attr("data-value",r||""),a&&(s.renderCache[t][r]=o[0]),o[0])},clearCache:function(e){void 0===e?this.renderCache={}:delete this.renderCache[e]},canCreate:function(e){var t=this;if(!t.settings.create)return!1;var n=t.settings.createFilter;return e.length&&("function"!=typeof n||n.apply(t,[e]))&&("string"!=typeof n||new RegExp(n).test(e))&&(!(n instanceof RegExp)||n.test(e))}}),k.count=0,k.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},e.fn.selectize=function(t){var n=e.fn.selectize.defaults,r=e.extend({},n,t),i=r.dataAttr,o=r.labelField,a=r.valueField,s=r.disabledField,c=r.optgroupField,l=r.optgroupLabelField,d=r.optgroupValueField,f=function(t,n){var s,c,l,u,d=t.attr(i);if(d)for(n.options=JSON.parse(d),s=0,c=n.options.length;s<c;s++)n.items.push(n.options[s][a]);else{var f=e.trim(t.val()||"");if(!r.allowEmptyOption&&!f.length)return;for(s=0,c=(l=f.split(r.delimiter)).length;s<c;s++)(u={})[o]=l[s],u[a]=l[s],n.options.push(u);n.items=l}},h=function(t,n){var f,h,p,m,v=n.options,g={},b=function(e){var t=i&&e.attr(i);return"string"==typeof t&&t.length?JSON.parse(t):null},y=function(t,i){t=e(t);var l=u(t.val());if(l||r.allowEmptyOption)if(g.hasOwnProperty(l)){if(i){var d=g[l][c];d?e.isArray(d)?d.push(i):g[l][c]=[d,i]:g[l][c]=i}}else{var f=b(t)||{};f[o]=f[o]||t.text(),f[a]=f[a]||l,f[s]=f[s]||t.prop("disabled"),f[c]=f[c]||i,g[l]=f,v.push(f),t.is(":selected")&&n.items.push(l)}};for(n.maxItems=t.attr("multiple")?null:1,f=0,h=(m=t.children()).length;f<h;f++)"optgroup"===(p=m[f].tagName.toLowerCase())?function(t){var r,i,o,a,c;for((o=(t=e(t)).attr("label"))&&((a=b(t)||{})[l]=o,a[d]=o,a[s]=t.prop("disabled"),n.optgroups.push(a)),r=0,i=(c=e("option",t)).length;r<i;r++)y(c[r],o)}(m[f]):"option"===p&&y(m[f])};return this.each((function(){if(!this.selectize){var i=e(this),o=this.tagName.toLowerCase(),a=i.attr("placeholder")||i.attr("data-placeholder");a||r.allowEmptyOption||(a=i.children('option[value=""]').text());var s={placeholder:a,options:[],optgroups:[],items:[]};"select"===o?h(i,s):f(i,s),new k(i,e.extend(!0,{},n,s,t))}}))},e.fn.selectize.defaults=k.defaults,e.fn.selectize.support={validity:c},k.define("drag_drop",(function(t){if(!e.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var n=this;n.lock=function(){var e=n.lock;return function(){var t=n.$control.data("sortable");return t&&t.disable(),e.apply(n,arguments)}}(),n.unlock=function(){var e=n.unlock;return function(){var t=n.$control.data("sortable");return t&&t.enable(),e.apply(n,arguments)}}(),n.setup=function(){var t=n.setup;return function(){t.apply(this,arguments);var r=n.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:n.isLocked,start:function(e,t){t.placeholder.css("width",t.helper.css("width")),r.css({overflow:"visible"})},stop:function(){r.css({overflow:"hidden"});var t=n.$activeItems?n.$activeItems.slice():null,i=[];r.children("[data-value]").each((function(){i.push(e(this).attr("data-value"))})),n.setValue(i),n.setActiveItem(t)}})}}()}})),k.define("dropdown_header",(function(t){var n=this;t=e.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(e){return'<div class="'+e.headerClass+'"><div class="'+e.titleRowClass+'"><span class="'+e.labelClass+'">'+e.title+'</span><a href="javascript:void(0)" class="'+e.closeClass+'">×</a></div></div>'}},t),n.setup=function(){var r=n.setup;return function(){r.apply(n,arguments),n.$dropdown_header=e(t.html(t)),n.$dropdown.prepend(n.$dropdown_header)}}()})),k.define("optgroup_columns",(function(t){var n=this;t=e.extend({equalizeWidth:!0,equalizeHeight:!0},t),this.getAdjacentOption=function(t,n){var r=t.closest("[data-group]").find("[data-selectable]"),i=r.index(t)+n;return i>=0&&i<r.length?r.eq(i):e()},this.onKeyDown=function(){var e=n.onKeyDown;return function(t){var r,i,o,a;return!this.isOpen||37!==t.keyCode&&39!==t.keyCode?e.apply(this,arguments):(n.ignoreHover=!0,r=(a=this.$activeOption.closest("[data-group]")).find("[data-selectable]").index(this.$activeOption),void((i=(o=(a=37===t.keyCode?a.prev("[data-group]"):a.next("[data-group]")).find("[data-selectable]")).eq(Math.min(o.length-1,r))).length&&this.setActiveOption(i)))}}();var r=function(){var e,t=r.width,n=document;return void 0===t&&((e=n.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,n.body.appendChild(e),t=r.width=e.offsetWidth-e.clientWidth,n.body.removeChild(e)),t},i=function(){var i,o,a,s,c,l,u;if((o=(u=e("[data-group]",n.$dropdown_content)).length)&&n.$dropdown_content.width()){if(t.equalizeHeight){for(a=0,i=0;i<o;i++)a=Math.max(a,u.eq(i).height());u.css({height:a})}t.equalizeWidth&&(l=n.$dropdown_content.innerWidth()-r(),s=Math.round(l/o),u.css({width:s}),o>1&&(c=l-s*(o-1),u.eq(o-1).css({width:c})))}};(t.equalizeHeight||t.equalizeWidth)&&(f.after(this,"positionDropdown",i),f.after(this,"refreshOptions",i))})),k.define("remove_button",(function(t){t=e.extend({label:"×",title:"Remove",className:"remove",append:!0},t),"single"!==this.settings.mode?function(t,n){var r=t,i='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+d(n.title)+'">'+n.label+"</a>",o=function(e,t){var n=e.search(/(<\/[^>]+>\s*)$/);return e.substring(0,n)+t+e.substring(n)};t.setup=function(){var a=r.setup;return function(){if(n.append){var s=r.settings.render.item;r.settings.render.item=function(e){return o(s.apply(t,arguments),i)}}a.apply(t,arguments),t.$control.on("click","."+n.className,(function(t){if(t.preventDefault(),!r.isLocked){var n=e(t.currentTarget).parent();r.setActiveItem(n),r.deleteSelection()&&r.setCaret(r.items.length)}}))}}()}(this,t):function(t,n){n.className="remove-single";var r=t,i='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+d(n.title)+'">'+n.label+"</a>",o=function(t,n){return e("<span>").append(t).append(n)};t.setup=function(){var a=r.setup;return function(){if(n.append){var s=e(r.$input.context).attr("id"),c=(e("#"+s),r.settings.render.item);r.settings.render.item=function(e){return o(c.apply(t,arguments),i)}}a.apply(t,arguments),t.$control.on("click","."+n.className,(function(e){e.preventDefault(),r.isLocked||r.clear()}))}}()}(this,t)})),k.define("restore_on_backspace",(function(e){var t=this;e.text=e.text||function(e){return e[this.settings.labelField]},this.onKeyDown=function(){var n=t.onKeyDown;return function(t){var r,i;return 8===t.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(r=this.caretPos-1)>=0&&r<this.items.length?(i=this.options[this.items[r]],this.deleteSelection(t)&&(this.setTextboxValue(e.text.apply(this,[i])),this.refreshOptions(!0)),void t.preventDefault()):n.apply(this,arguments)}}()})),k})?l.apply(t,u):l)||(e.exports=d)},function(e,t,n){var r=n(2),i=n(126);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(3)(!1)).push([e.i,'.selectize-control.plugin-drag_drop.multi>.selectize-input>div.ui-sortable-placeholder{visibility:visible!important;background:#f2f2f2!important;background:rgba(0,0,0,.06)!important;border:0!important;box-shadow:inset 0 0 12px 4px #fff}.selectize-control.plugin-drag_drop .ui-sortable-placeholder:after{content:"!";visibility:hidden}.selectize-control.plugin-drag_drop .ui-sortable-helper{box-shadow:0 2px 5px rgba(0,0,0,.2)}.selectize-dropdown-header{position:relative;padding:5px 8px;border-bottom:1px solid #d0d0d0;background:#f8f8f8;border-radius:3px 3px 0 0}.selectize-dropdown-header-close{position:absolute;right:8px;top:50%;color:#303030;opacity:.4;margin-top:-12px;line-height:20px;font-size:20px!important}.selectize-dropdown-header-close:hover{color:#000}.selectize-dropdown.plugin-optgroup_columns .optgroup{border-right:1px solid #f2f2f2;border-top:0;float:left;box-sizing:border-box}.selectize-dropdown.plugin-optgroup_columns .optgroup:last-child{border-right:0}.selectize-dropdown.plugin-optgroup_columns .optgroup:before{display:none}.selectize-dropdown.plugin-optgroup_columns .optgroup-header{border-top:0}.selectize-control.plugin-remove_button [data-value]{position:relative;padding-right:24px!important}.selectize-control.plugin-remove_button [data-value] .remove{z-index:1;position:absolute;top:0;right:0;bottom:0;width:17px;text-align:center;font-weight:700;font-size:12px;color:inherit;text-decoration:none;vertical-align:middle;display:inline-block;padding:2px 0 0;border-left:1px solid #d0d0d0;border-radius:0 2px 2px 0;box-sizing:border-box}.selectize-control.plugin-remove_button [data-value] .remove:hover{background:rgba(0,0,0,.05)}.selectize-control.plugin-remove_button [data-value].active .remove{border-left-color:#cacaca}.selectize-control.plugin-remove_button .disabled [data-value] .remove:hover{background:none}.selectize-control.plugin-remove_button .disabled [data-value] .remove{border-left-color:#fff}.selectize-control.plugin-remove_button .remove-single{position:absolute;right:0;top:0;font-size:23px}.selectize-control{position:relative}.selectize-dropdown,.selectize-input,.selectize-input input{color:#303030;font-family:inherit;font-size:13px;line-height:18px;-webkit-font-smoothing:inherit}.selectize-control.single .selectize-input.input-active,.selectize-input{background:#fff;cursor:text;display:inline-block}.selectize-input{border:1px solid #d0d0d0;padding:8px;display:inline-block;width:100%;overflow:hidden;position:relative;z-index:1;box-sizing:border-box;box-shadow:inset 0 1px 1px rgba(0,0,0,.1);border-radius:3px}.selectize-control.multi .selectize-input.has-items{padding:6px 8px 3px}.selectize-input.full{background-color:#fff}.selectize-input.disabled,.selectize-input.disabled *{cursor:default!important}.selectize-input.focus{box-shadow:inset 0 1px 2px rgba(0,0,0,.15)}.selectize-input.dropdown-active{border-radius:3px 3px 0 0}.selectize-input>*{vertical-align:baseline;display:-moz-inline-stack;display:inline-block;zoom:1;*display:inline}.selectize-control.multi .selectize-input>div{cursor:pointer;margin:0 3px 3px 0;padding:2px 6px;background:#f2f2f2;color:#303030;border:0 solid #d0d0d0}.selectize-control.multi .selectize-input>div.active{background:#e8e8e8;color:#303030;border:0 solid #cacaca}.selectize-control.multi .selectize-input.disabled>div,.selectize-control.multi .selectize-input.disabled>div.active{color:#7d7d7d;background:#fff;border:0 solid #fff}.selectize-input>input{display:inline-block!important;padding:0!important;min-height:0!important;max-height:none!important;max-width:100%!important;margin:0 2px 0 0!important;text-indent:0!important;border:0!important;background:none!important;line-height:inherit!important;-webkit-user-select:auto!important;box-shadow:none!important}.selectize-input>input::-ms-clear{display:none}.selectize-input>input:focus{outline:none!important}.selectize-input:after{content:" ";display:block;clear:left}.selectize-input.dropdown-active:before{content:" ";display:block;position:absolute;background:#f0f0f0;height:1px;bottom:0;left:0;right:0}.selectize-dropdown{position:absolute;z-index:10;background:#fff;margin:-1px 0 0;border:1px solid #d0d0d0;border-top:0;box-sizing:border-box;box-shadow:0 1px 3px rgba(0,0,0,.1);border-radius:0 0 3px 3px}.selectize-dropdown [data-selectable]{cursor:pointer;overflow:hidden}.selectize-dropdown [data-selectable] .highlight{background:rgba(125,168,208,.2);border-radius:1px}.selectize-dropdown .optgroup-header,.selectize-dropdown .option{padding:5px 8px}.selectize-dropdown .option,.selectize-dropdown [data-disabled],.selectize-dropdown [data-disabled] [data-selectable].option{cursor:inherit;opacity:.5}.selectize-dropdown [data-selectable].option{opacity:1}.selectize-dropdown .optgroup:first-child .optgroup-header{border-top:0}.selectize-dropdown .optgroup-header{color:#303030;background:#fff;cursor:default}.selectize-dropdown .active{background-color:#f5fafd;color:#495c68}.selectize-dropdown .active.create{color:#495c68}.selectize-dropdown .create{color:rgba(48,48,48,.5)}.selectize-dropdown-content{overflow-y:auto;overflow-x:hidden;max-height:200px;-webkit-overflow-scrolling:touch}.selectize-control.single .selectize-input,.selectize-control.single .selectize-input input{cursor:pointer}.selectize-control.single .selectize-input.input-active,.selectize-control.single .selectize-input.input-active input{cursor:text}.selectize-control.single .selectize-input:after{content:" ";display:block;position:absolute;top:50%;right:15px;margin-top:-3px;width:0;height:0;border-color:grey transparent transparent;border-style:solid;border-width:5px 5px 0}.selectize-control.single .selectize-input.dropdown-active:after{margin-top:-4px;border-width:0 5px 5px;border-color:transparent transparent grey}.selectize-control.rtl.single .selectize-input:after{left:15px;right:auto}.selectize-control.rtl .selectize-input>input{margin:0 4px 0 -2px!important}.selectize-control .selectize-input.disabled{opacity:.5;background-color:#fafafa}',""]),e.exports=t},function(e,t,n){var r=n(2),i=n(128);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(3),i=n(129),o=n(130),a=n(131),s=n(132),c=n(133),l=n(134),u=n(135),d=n(136),f=n(137),h=n(138),p=n(139),m=n(140),v=n(141),g=n(142),b=n(143),y=n(144);t=r(!1);var k=i(o),w=i(o,{hash:"?#iefix"}),_=i(a),C=i(s),A=i(c),x=i(l,{hash:"#fontawesome"}),S=i(u),M=i(u,{hash:"?#iefix"}),E=i(d),T=i(f),D=i(h),O=i(p,{hash:"#fontawesome"}),P=i(m),I=i(m,{hash:"?#iefix"}),j=i(v),N=i(g),R=i(b),L=i(y,{hash:"#fontawesome"});t.push([e.i,'/*!\n * Font Awesome Free 5.13.0 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */.fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\\f26e"}.fa-accessible-icon:before{content:"\\f368"}.fa-accusoft:before{content:"\\f369"}.fa-acquisitions-incorporated:before{content:"\\f6af"}.fa-ad:before{content:"\\f641"}.fa-address-book:before{content:"\\f2b9"}.fa-address-card:before{content:"\\f2bb"}.fa-adjust:before{content:"\\f042"}.fa-adn:before{content:"\\f170"}.fa-adobe:before{content:"\\f778"}.fa-adversal:before{content:"\\f36a"}.fa-affiliatetheme:before{content:"\\f36b"}.fa-air-freshener:before{content:"\\f5d0"}.fa-airbnb:before{content:"\\f834"}.fa-algolia:before{content:"\\f36c"}.fa-align-center:before{content:"\\f037"}.fa-align-justify:before{content:"\\f039"}.fa-align-left:before{content:"\\f036"}.fa-align-right:before{content:"\\f038"}.fa-alipay:before{content:"\\f642"}.fa-allergies:before{content:"\\f461"}.fa-amazon:before{content:"\\f270"}.fa-amazon-pay:before{content:"\\f42c"}.fa-ambulance:before{content:"\\f0f9"}.fa-american-sign-language-interpreting:before{content:"\\f2a3"}.fa-amilia:before{content:"\\f36d"}.fa-anchor:before{content:"\\f13d"}.fa-android:before{content:"\\f17b"}.fa-angellist:before{content:"\\f209"}.fa-angle-double-down:before{content:"\\f103"}.fa-angle-double-left:before{content:"\\f100"}.fa-angle-double-right:before{content:"\\f101"}.fa-angle-double-up:before{content:"\\f102"}.fa-angle-down:before{content:"\\f107"}.fa-angle-left:before{content:"\\f104"}.fa-angle-right:before{content:"\\f105"}.fa-angle-up:before{content:"\\f106"}.fa-angry:before{content:"\\f556"}.fa-angrycreative:before{content:"\\f36e"}.fa-angular:before{content:"\\f420"}.fa-ankh:before{content:"\\f644"}.fa-app-store:before{content:"\\f36f"}.fa-app-store-ios:before{content:"\\f370"}.fa-apper:before{content:"\\f371"}.fa-apple:before{content:"\\f179"}.fa-apple-alt:before{content:"\\f5d1"}.fa-apple-pay:before{content:"\\f415"}.fa-archive:before{content:"\\f187"}.fa-archway:before{content:"\\f557"}.fa-arrow-alt-circle-down:before{content:"\\f358"}.fa-arrow-alt-circle-left:before{content:"\\f359"}.fa-arrow-alt-circle-right:before{content:"\\f35a"}.fa-arrow-alt-circle-up:before{content:"\\f35b"}.fa-arrow-circle-down:before{content:"\\f0ab"}.fa-arrow-circle-left:before{content:"\\f0a8"}.fa-arrow-circle-right:before{content:"\\f0a9"}.fa-arrow-circle-up:before{content:"\\f0aa"}.fa-arrow-down:before{content:"\\f063"}.fa-arrow-left:before{content:"\\f060"}.fa-arrow-right:before{content:"\\f061"}.fa-arrow-up:before{content:"\\f062"}.fa-arrows-alt:before{content:"\\f0b2"}.fa-arrows-alt-h:before{content:"\\f337"}.fa-arrows-alt-v:before{content:"\\f338"}.fa-artstation:before{content:"\\f77a"}.fa-assistive-listening-systems:before{content:"\\f2a2"}.fa-asterisk:before{content:"\\f069"}.fa-asymmetrik:before{content:"\\f372"}.fa-at:before{content:"\\f1fa"}.fa-atlas:before{content:"\\f558"}.fa-atlassian:before{content:"\\f77b"}.fa-atom:before{content:"\\f5d2"}.fa-audible:before{content:"\\f373"}.fa-audio-description:before{content:"\\f29e"}.fa-autoprefixer:before{content:"\\f41c"}.fa-avianex:before{content:"\\f374"}.fa-aviato:before{content:"\\f421"}.fa-award:before{content:"\\f559"}.fa-aws:before{content:"\\f375"}.fa-baby:before{content:"\\f77c"}.fa-baby-carriage:before{content:"\\f77d"}.fa-backspace:before{content:"\\f55a"}.fa-backward:before{content:"\\f04a"}.fa-bacon:before{content:"\\f7e5"}.fa-bahai:before{content:"\\f666"}.fa-balance-scale:before{content:"\\f24e"}.fa-balance-scale-left:before{content:"\\f515"}.fa-balance-scale-right:before{content:"\\f516"}.fa-ban:before{content:"\\f05e"}.fa-band-aid:before{content:"\\f462"}.fa-bandcamp:before{content:"\\f2d5"}.fa-barcode:before{content:"\\f02a"}.fa-bars:before{content:"\\f0c9"}.fa-baseball-ball:before{content:"\\f433"}.fa-basketball-ball:before{content:"\\f434"}.fa-bath:before{content:"\\f2cd"}.fa-battery-empty:before{content:"\\f244"}.fa-battery-full:before{content:"\\f240"}.fa-battery-half:before{content:"\\f242"}.fa-battery-quarter:before{content:"\\f243"}.fa-battery-three-quarters:before{content:"\\f241"}.fa-battle-net:before{content:"\\f835"}.fa-bed:before{content:"\\f236"}.fa-beer:before{content:"\\f0fc"}.fa-behance:before{content:"\\f1b4"}.fa-behance-square:before{content:"\\f1b5"}.fa-bell:before{content:"\\f0f3"}.fa-bell-slash:before{content:"\\f1f6"}.fa-bezier-curve:before{content:"\\f55b"}.fa-bible:before{content:"\\f647"}.fa-bicycle:before{content:"\\f206"}.fa-biking:before{content:"\\f84a"}.fa-bimobject:before{content:"\\f378"}.fa-binoculars:before{content:"\\f1e5"}.fa-biohazard:before{content:"\\f780"}.fa-birthday-cake:before{content:"\\f1fd"}.fa-bitbucket:before{content:"\\f171"}.fa-bitcoin:before{content:"\\f379"}.fa-bity:before{content:"\\f37a"}.fa-black-tie:before{content:"\\f27e"}.fa-blackberry:before{content:"\\f37b"}.fa-blender:before{content:"\\f517"}.fa-blender-phone:before{content:"\\f6b6"}.fa-blind:before{content:"\\f29d"}.fa-blog:before{content:"\\f781"}.fa-blogger:before{content:"\\f37c"}.fa-blogger-b:before{content:"\\f37d"}.fa-bluetooth:before{content:"\\f293"}.fa-bluetooth-b:before{content:"\\f294"}.fa-bold:before{content:"\\f032"}.fa-bolt:before{content:"\\f0e7"}.fa-bomb:before{content:"\\f1e2"}.fa-bone:before{content:"\\f5d7"}.fa-bong:before{content:"\\f55c"}.fa-book:before{content:"\\f02d"}.fa-book-dead:before{content:"\\f6b7"}.fa-book-medical:before{content:"\\f7e6"}.fa-book-open:before{content:"\\f518"}.fa-book-reader:before{content:"\\f5da"}.fa-bookmark:before{content:"\\f02e"}.fa-bootstrap:before{content:"\\f836"}.fa-border-all:before{content:"\\f84c"}.fa-border-none:before{content:"\\f850"}.fa-border-style:before{content:"\\f853"}.fa-bowling-ball:before{content:"\\f436"}.fa-box:before{content:"\\f466"}.fa-box-open:before{content:"\\f49e"}.fa-box-tissue:before{content:"\\f95b"}.fa-boxes:before{content:"\\f468"}.fa-braille:before{content:"\\f2a1"}.fa-brain:before{content:"\\f5dc"}.fa-bread-slice:before{content:"\\f7ec"}.fa-briefcase:before{content:"\\f0b1"}.fa-briefcase-medical:before{content:"\\f469"}.fa-broadcast-tower:before{content:"\\f519"}.fa-broom:before{content:"\\f51a"}.fa-brush:before{content:"\\f55d"}.fa-btc:before{content:"\\f15a"}.fa-buffer:before{content:"\\f837"}.fa-bug:before{content:"\\f188"}.fa-building:before{content:"\\f1ad"}.fa-bullhorn:before{content:"\\f0a1"}.fa-bullseye:before{content:"\\f140"}.fa-burn:before{content:"\\f46a"}.fa-buromobelexperte:before{content:"\\f37f"}.fa-bus:before{content:"\\f207"}.fa-bus-alt:before{content:"\\f55e"}.fa-business-time:before{content:"\\f64a"}.fa-buy-n-large:before{content:"\\f8a6"}.fa-buysellads:before{content:"\\f20d"}.fa-calculator:before{content:"\\f1ec"}.fa-calendar:before{content:"\\f133"}.fa-calendar-alt:before{content:"\\f073"}.fa-calendar-check:before{content:"\\f274"}.fa-calendar-day:before{content:"\\f783"}.fa-calendar-minus:before{content:"\\f272"}.fa-calendar-plus:before{content:"\\f271"}.fa-calendar-times:before{content:"\\f273"}.fa-calendar-week:before{content:"\\f784"}.fa-camera:before{content:"\\f030"}.fa-camera-retro:before{content:"\\f083"}.fa-campground:before{content:"\\f6bb"}.fa-canadian-maple-leaf:before{content:"\\f785"}.fa-candy-cane:before{content:"\\f786"}.fa-cannabis:before{content:"\\f55f"}.fa-capsules:before{content:"\\f46b"}.fa-car:before{content:"\\f1b9"}.fa-car-alt:before{content:"\\f5de"}.fa-car-battery:before{content:"\\f5df"}.fa-car-crash:before{content:"\\f5e1"}.fa-car-side:before{content:"\\f5e4"}.fa-caravan:before{content:"\\f8ff"}.fa-caret-down:before{content:"\\f0d7"}.fa-caret-left:before{content:"\\f0d9"}.fa-caret-right:before{content:"\\f0da"}.fa-caret-square-down:before{content:"\\f150"}.fa-caret-square-left:before{content:"\\f191"}.fa-caret-square-right:before{content:"\\f152"}.fa-caret-square-up:before{content:"\\f151"}.fa-caret-up:before{content:"\\f0d8"}.fa-carrot:before{content:"\\f787"}.fa-cart-arrow-down:before{content:"\\f218"}.fa-cart-plus:before{content:"\\f217"}.fa-cash-register:before{content:"\\f788"}.fa-cat:before{content:"\\f6be"}.fa-cc-amazon-pay:before{content:"\\f42d"}.fa-cc-amex:before{content:"\\f1f3"}.fa-cc-apple-pay:before{content:"\\f416"}.fa-cc-diners-club:before{content:"\\f24c"}.fa-cc-discover:before{content:"\\f1f2"}.fa-cc-jcb:before{content:"\\f24b"}.fa-cc-mastercard:before{content:"\\f1f1"}.fa-cc-paypal:before{content:"\\f1f4"}.fa-cc-stripe:before{content:"\\f1f5"}.fa-cc-visa:before{content:"\\f1f0"}.fa-centercode:before{content:"\\f380"}.fa-centos:before{content:"\\f789"}.fa-certificate:before{content:"\\f0a3"}.fa-chair:before{content:"\\f6c0"}.fa-chalkboard:before{content:"\\f51b"}.fa-chalkboard-teacher:before{content:"\\f51c"}.fa-charging-station:before{content:"\\f5e7"}.fa-chart-area:before{content:"\\f1fe"}.fa-chart-bar:before{content:"\\f080"}.fa-chart-line:before{content:"\\f201"}.fa-chart-pie:before{content:"\\f200"}.fa-check:before{content:"\\f00c"}.fa-check-circle:before{content:"\\f058"}.fa-check-double:before{content:"\\f560"}.fa-check-square:before{content:"\\f14a"}.fa-cheese:before{content:"\\f7ef"}.fa-chess:before{content:"\\f439"}.fa-chess-bishop:before{content:"\\f43a"}.fa-chess-board:before{content:"\\f43c"}.fa-chess-king:before{content:"\\f43f"}.fa-chess-knight:before{content:"\\f441"}.fa-chess-pawn:before{content:"\\f443"}.fa-chess-queen:before{content:"\\f445"}.fa-chess-rook:before{content:"\\f447"}.fa-chevron-circle-down:before{content:"\\f13a"}.fa-chevron-circle-left:before{content:"\\f137"}.fa-chevron-circle-right:before{content:"\\f138"}.fa-chevron-circle-up:before{content:"\\f139"}.fa-chevron-down:before{content:"\\f078"}.fa-chevron-left:before{content:"\\f053"}.fa-chevron-right:before{content:"\\f054"}.fa-chevron-up:before{content:"\\f077"}.fa-child:before{content:"\\f1ae"}.fa-chrome:before{content:"\\f268"}.fa-chromecast:before{content:"\\f838"}.fa-church:before{content:"\\f51d"}.fa-circle:before{content:"\\f111"}.fa-circle-notch:before{content:"\\f1ce"}.fa-city:before{content:"\\f64f"}.fa-clinic-medical:before{content:"\\f7f2"}.fa-clipboard:before{content:"\\f328"}.fa-clipboard-check:before{content:"\\f46c"}.fa-clipboard-list:before{content:"\\f46d"}.fa-clock:before{content:"\\f017"}.fa-clone:before{content:"\\f24d"}.fa-closed-captioning:before{content:"\\f20a"}.fa-cloud:before{content:"\\f0c2"}.fa-cloud-download-alt:before{content:"\\f381"}.fa-cloud-meatball:before{content:"\\f73b"}.fa-cloud-moon:before{content:"\\f6c3"}.fa-cloud-moon-rain:before{content:"\\f73c"}.fa-cloud-rain:before{content:"\\f73d"}.fa-cloud-showers-heavy:before{content:"\\f740"}.fa-cloud-sun:before{content:"\\f6c4"}.fa-cloud-sun-rain:before{content:"\\f743"}.fa-cloud-upload-alt:before{content:"\\f382"}.fa-cloudscale:before{content:"\\f383"}.fa-cloudsmith:before{content:"\\f384"}.fa-cloudversify:before{content:"\\f385"}.fa-cocktail:before{content:"\\f561"}.fa-code:before{content:"\\f121"}.fa-code-branch:before{content:"\\f126"}.fa-codepen:before{content:"\\f1cb"}.fa-codiepie:before{content:"\\f284"}.fa-coffee:before{content:"\\f0f4"}.fa-cog:before{content:"\\f013"}.fa-cogs:before{content:"\\f085"}.fa-coins:before{content:"\\f51e"}.fa-columns:before{content:"\\f0db"}.fa-comment:before{content:"\\f075"}.fa-comment-alt:before{content:"\\f27a"}.fa-comment-dollar:before{content:"\\f651"}.fa-comment-dots:before{content:"\\f4ad"}.fa-comment-medical:before{content:"\\f7f5"}.fa-comment-slash:before{content:"\\f4b3"}.fa-comments:before{content:"\\f086"}.fa-comments-dollar:before{content:"\\f653"}.fa-compact-disc:before{content:"\\f51f"}.fa-compass:before{content:"\\f14e"}.fa-compress:before{content:"\\f066"}.fa-compress-alt:before{content:"\\f422"}.fa-compress-arrows-alt:before{content:"\\f78c"}.fa-concierge-bell:before{content:"\\f562"}.fa-confluence:before{content:"\\f78d"}.fa-connectdevelop:before{content:"\\f20e"}.fa-contao:before{content:"\\f26d"}.fa-cookie:before{content:"\\f563"}.fa-cookie-bite:before{content:"\\f564"}.fa-copy:before{content:"\\f0c5"}.fa-copyright:before{content:"\\f1f9"}.fa-cotton-bureau:before{content:"\\f89e"}.fa-couch:before{content:"\\f4b8"}.fa-cpanel:before{content:"\\f388"}.fa-creative-commons:before{content:"\\f25e"}.fa-creative-commons-by:before{content:"\\f4e7"}.fa-creative-commons-nc:before{content:"\\f4e8"}.fa-creative-commons-nc-eu:before{content:"\\f4e9"}.fa-creative-commons-nc-jp:before{content:"\\f4ea"}.fa-creative-commons-nd:before{content:"\\f4eb"}.fa-creative-commons-pd:before{content:"\\f4ec"}.fa-creative-commons-pd-alt:before{content:"\\f4ed"}.fa-creative-commons-remix:before{content:"\\f4ee"}.fa-creative-commons-sa:before{content:"\\f4ef"}.fa-creative-commons-sampling:before{content:"\\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\\f4f1"}.fa-creative-commons-share:before{content:"\\f4f2"}.fa-creative-commons-zero:before{content:"\\f4f3"}.fa-credit-card:before{content:"\\f09d"}.fa-critical-role:before{content:"\\f6c9"}.fa-crop:before{content:"\\f125"}.fa-crop-alt:before{content:"\\f565"}.fa-cross:before{content:"\\f654"}.fa-crosshairs:before{content:"\\f05b"}.fa-crow:before{content:"\\f520"}.fa-crown:before{content:"\\f521"}.fa-crutch:before{content:"\\f7f7"}.fa-css3:before{content:"\\f13c"}.fa-css3-alt:before{content:"\\f38b"}.fa-cube:before{content:"\\f1b2"}.fa-cubes:before{content:"\\f1b3"}.fa-cut:before{content:"\\f0c4"}.fa-cuttlefish:before{content:"\\f38c"}.fa-d-and-d:before{content:"\\f38d"}.fa-d-and-d-beyond:before{content:"\\f6ca"}.fa-dailymotion:before{content:"\\f952"}.fa-dashcube:before{content:"\\f210"}.fa-database:before{content:"\\f1c0"}.fa-deaf:before{content:"\\f2a4"}.fa-delicious:before{content:"\\f1a5"}.fa-democrat:before{content:"\\f747"}.fa-deploydog:before{content:"\\f38e"}.fa-deskpro:before{content:"\\f38f"}.fa-desktop:before{content:"\\f108"}.fa-dev:before{content:"\\f6cc"}.fa-deviantart:before{content:"\\f1bd"}.fa-dharmachakra:before{content:"\\f655"}.fa-dhl:before{content:"\\f790"}.fa-diagnoses:before{content:"\\f470"}.fa-diaspora:before{content:"\\f791"}.fa-dice:before{content:"\\f522"}.fa-dice-d20:before{content:"\\f6cf"}.fa-dice-d6:before{content:"\\f6d1"}.fa-dice-five:before{content:"\\f523"}.fa-dice-four:before{content:"\\f524"}.fa-dice-one:before{content:"\\f525"}.fa-dice-six:before{content:"\\f526"}.fa-dice-three:before{content:"\\f527"}.fa-dice-two:before{content:"\\f528"}.fa-digg:before{content:"\\f1a6"}.fa-digital-ocean:before{content:"\\f391"}.fa-digital-tachograph:before{content:"\\f566"}.fa-directions:before{content:"\\f5eb"}.fa-discord:before{content:"\\f392"}.fa-discourse:before{content:"\\f393"}.fa-disease:before{content:"\\f7fa"}.fa-divide:before{content:"\\f529"}.fa-dizzy:before{content:"\\f567"}.fa-dna:before{content:"\\f471"}.fa-dochub:before{content:"\\f394"}.fa-docker:before{content:"\\f395"}.fa-dog:before{content:"\\f6d3"}.fa-dollar-sign:before{content:"\\f155"}.fa-dolly:before{content:"\\f472"}.fa-dolly-flatbed:before{content:"\\f474"}.fa-donate:before{content:"\\f4b9"}.fa-door-closed:before{content:"\\f52a"}.fa-door-open:before{content:"\\f52b"}.fa-dot-circle:before{content:"\\f192"}.fa-dove:before{content:"\\f4ba"}.fa-download:before{content:"\\f019"}.fa-draft2digital:before{content:"\\f396"}.fa-drafting-compass:before{content:"\\f568"}.fa-dragon:before{content:"\\f6d5"}.fa-draw-polygon:before{content:"\\f5ee"}.fa-dribbble:before{content:"\\f17d"}.fa-dribbble-square:before{content:"\\f397"}.fa-dropbox:before{content:"\\f16b"}.fa-drum:before{content:"\\f569"}.fa-drum-steelpan:before{content:"\\f56a"}.fa-drumstick-bite:before{content:"\\f6d7"}.fa-drupal:before{content:"\\f1a9"}.fa-dumbbell:before{content:"\\f44b"}.fa-dumpster:before{content:"\\f793"}.fa-dumpster-fire:before{content:"\\f794"}.fa-dungeon:before{content:"\\f6d9"}.fa-dyalog:before{content:"\\f399"}.fa-earlybirds:before{content:"\\f39a"}.fa-ebay:before{content:"\\f4f4"}.fa-edge:before{content:"\\f282"}.fa-edit:before{content:"\\f044"}.fa-egg:before{content:"\\f7fb"}.fa-eject:before{content:"\\f052"}.fa-elementor:before{content:"\\f430"}.fa-ellipsis-h:before{content:"\\f141"}.fa-ellipsis-v:before{content:"\\f142"}.fa-ello:before{content:"\\f5f1"}.fa-ember:before{content:"\\f423"}.fa-empire:before{content:"\\f1d1"}.fa-envelope:before{content:"\\f0e0"}.fa-envelope-open:before{content:"\\f2b6"}.fa-envelope-open-text:before{content:"\\f658"}.fa-envelope-square:before{content:"\\f199"}.fa-envira:before{content:"\\f299"}.fa-equals:before{content:"\\f52c"}.fa-eraser:before{content:"\\f12d"}.fa-erlang:before{content:"\\f39d"}.fa-ethereum:before{content:"\\f42e"}.fa-ethernet:before{content:"\\f796"}.fa-etsy:before{content:"\\f2d7"}.fa-euro-sign:before{content:"\\f153"}.fa-evernote:before{content:"\\f839"}.fa-exchange-alt:before{content:"\\f362"}.fa-exclamation:before{content:"\\f12a"}.fa-exclamation-circle:before{content:"\\f06a"}.fa-exclamation-triangle:before{content:"\\f071"}.fa-expand:before{content:"\\f065"}.fa-expand-alt:before{content:"\\f424"}.fa-expand-arrows-alt:before{content:"\\f31e"}.fa-expeditedssl:before{content:"\\f23e"}.fa-external-link-alt:before{content:"\\f35d"}.fa-external-link-square-alt:before{content:"\\f360"}.fa-eye:before{content:"\\f06e"}.fa-eye-dropper:before{content:"\\f1fb"}.fa-eye-slash:before{content:"\\f070"}.fa-facebook:before{content:"\\f09a"}.fa-facebook-f:before{content:"\\f39e"}.fa-facebook-messenger:before{content:"\\f39f"}.fa-facebook-square:before{content:"\\f082"}.fa-fan:before{content:"\\f863"}.fa-fantasy-flight-games:before{content:"\\f6dc"}.fa-fast-backward:before{content:"\\f049"}.fa-fast-forward:before{content:"\\f050"}.fa-faucet:before{content:"\\f905"}.fa-fax:before{content:"\\f1ac"}.fa-feather:before{content:"\\f52d"}.fa-feather-alt:before{content:"\\f56b"}.fa-fedex:before{content:"\\f797"}.fa-fedora:before{content:"\\f798"}.fa-female:before{content:"\\f182"}.fa-fighter-jet:before{content:"\\f0fb"}.fa-figma:before{content:"\\f799"}.fa-file:before{content:"\\f15b"}.fa-file-alt:before{content:"\\f15c"}.fa-file-archive:before{content:"\\f1c6"}.fa-file-audio:before{content:"\\f1c7"}.fa-file-code:before{content:"\\f1c9"}.fa-file-contract:before{content:"\\f56c"}.fa-file-csv:before{content:"\\f6dd"}.fa-file-download:before{content:"\\f56d"}.fa-file-excel:before{content:"\\f1c3"}.fa-file-export:before{content:"\\f56e"}.fa-file-image:before{content:"\\f1c5"}.fa-file-import:before{content:"\\f56f"}.fa-file-invoice:before{content:"\\f570"}.fa-file-invoice-dollar:before{content:"\\f571"}.fa-file-medical:before{content:"\\f477"}.fa-file-medical-alt:before{content:"\\f478"}.fa-file-pdf:before{content:"\\f1c1"}.fa-file-powerpoint:before{content:"\\f1c4"}.fa-file-prescription:before{content:"\\f572"}.fa-file-signature:before{content:"\\f573"}.fa-file-upload:before{content:"\\f574"}.fa-file-video:before{content:"\\f1c8"}.fa-file-word:before{content:"\\f1c2"}.fa-fill:before{content:"\\f575"}.fa-fill-drip:before{content:"\\f576"}.fa-film:before{content:"\\f008"}.fa-filter:before{content:"\\f0b0"}.fa-fingerprint:before{content:"\\f577"}.fa-fire:before{content:"\\f06d"}.fa-fire-alt:before{content:"\\f7e4"}.fa-fire-extinguisher:before{content:"\\f134"}.fa-firefox:before{content:"\\f269"}.fa-firefox-browser:before{content:"\\f907"}.fa-first-aid:before{content:"\\f479"}.fa-first-order:before{content:"\\f2b0"}.fa-first-order-alt:before{content:"\\f50a"}.fa-firstdraft:before{content:"\\f3a1"}.fa-fish:before{content:"\\f578"}.fa-fist-raised:before{content:"\\f6de"}.fa-flag:before{content:"\\f024"}.fa-flag-checkered:before{content:"\\f11e"}.fa-flag-usa:before{content:"\\f74d"}.fa-flask:before{content:"\\f0c3"}.fa-flickr:before{content:"\\f16e"}.fa-flipboard:before{content:"\\f44d"}.fa-flushed:before{content:"\\f579"}.fa-fly:before{content:"\\f417"}.fa-folder:before{content:"\\f07b"}.fa-folder-minus:before{content:"\\f65d"}.fa-folder-open:before{content:"\\f07c"}.fa-folder-plus:before{content:"\\f65e"}.fa-font:before{content:"\\f031"}.fa-font-awesome:before{content:"\\f2b4"}.fa-font-awesome-alt:before{content:"\\f35c"}.fa-font-awesome-flag:before{content:"\\f425"}.fa-font-awesome-logo-full:before{content:"\\f4e6"}.fa-fonticons:before{content:"\\f280"}.fa-fonticons-fi:before{content:"\\f3a2"}.fa-football-ball:before{content:"\\f44e"}.fa-fort-awesome:before{content:"\\f286"}.fa-fort-awesome-alt:before{content:"\\f3a3"}.fa-forumbee:before{content:"\\f211"}.fa-forward:before{content:"\\f04e"}.fa-foursquare:before{content:"\\f180"}.fa-free-code-camp:before{content:"\\f2c5"}.fa-freebsd:before{content:"\\f3a4"}.fa-frog:before{content:"\\f52e"}.fa-frown:before{content:"\\f119"}.fa-frown-open:before{content:"\\f57a"}.fa-fulcrum:before{content:"\\f50b"}.fa-funnel-dollar:before{content:"\\f662"}.fa-futbol:before{content:"\\f1e3"}.fa-galactic-republic:before{content:"\\f50c"}.fa-galactic-senate:before{content:"\\f50d"}.fa-gamepad:before{content:"\\f11b"}.fa-gas-pump:before{content:"\\f52f"}.fa-gavel:before{content:"\\f0e3"}.fa-gem:before{content:"\\f3a5"}.fa-genderless:before{content:"\\f22d"}.fa-get-pocket:before{content:"\\f265"}.fa-gg:before{content:"\\f260"}.fa-gg-circle:before{content:"\\f261"}.fa-ghost:before{content:"\\f6e2"}.fa-gift:before{content:"\\f06b"}.fa-gifts:before{content:"\\f79c"}.fa-git:before{content:"\\f1d3"}.fa-git-alt:before{content:"\\f841"}.fa-git-square:before{content:"\\f1d2"}.fa-github:before{content:"\\f09b"}.fa-github-alt:before{content:"\\f113"}.fa-github-square:before{content:"\\f092"}.fa-gitkraken:before{content:"\\f3a6"}.fa-gitlab:before{content:"\\f296"}.fa-gitter:before{content:"\\f426"}.fa-glass-cheers:before{content:"\\f79f"}.fa-glass-martini:before{content:"\\f000"}.fa-glass-martini-alt:before{content:"\\f57b"}.fa-glass-whiskey:before{content:"\\f7a0"}.fa-glasses:before{content:"\\f530"}.fa-glide:before{content:"\\f2a5"}.fa-glide-g:before{content:"\\f2a6"}.fa-globe:before{content:"\\f0ac"}.fa-globe-africa:before{content:"\\f57c"}.fa-globe-americas:before{content:"\\f57d"}.fa-globe-asia:before{content:"\\f57e"}.fa-globe-europe:before{content:"\\f7a2"}.fa-gofore:before{content:"\\f3a7"}.fa-golf-ball:before{content:"\\f450"}.fa-goodreads:before{content:"\\f3a8"}.fa-goodreads-g:before{content:"\\f3a9"}.fa-google:before{content:"\\f1a0"}.fa-google-drive:before{content:"\\f3aa"}.fa-google-play:before{content:"\\f3ab"}.fa-google-plus:before{content:"\\f2b3"}.fa-google-plus-g:before{content:"\\f0d5"}.fa-google-plus-square:before{content:"\\f0d4"}.fa-google-wallet:before{content:"\\f1ee"}.fa-gopuram:before{content:"\\f664"}.fa-graduation-cap:before{content:"\\f19d"}.fa-gratipay:before{content:"\\f184"}.fa-grav:before{content:"\\f2d6"}.fa-greater-than:before{content:"\\f531"}.fa-greater-than-equal:before{content:"\\f532"}.fa-grimace:before{content:"\\f57f"}.fa-grin:before{content:"\\f580"}.fa-grin-alt:before{content:"\\f581"}.fa-grin-beam:before{content:"\\f582"}.fa-grin-beam-sweat:before{content:"\\f583"}.fa-grin-hearts:before{content:"\\f584"}.fa-grin-squint:before{content:"\\f585"}.fa-grin-squint-tears:before{content:"\\f586"}.fa-grin-stars:before{content:"\\f587"}.fa-grin-tears:before{content:"\\f588"}.fa-grin-tongue:before{content:"\\f589"}.fa-grin-tongue-squint:before{content:"\\f58a"}.fa-grin-tongue-wink:before{content:"\\f58b"}.fa-grin-wink:before{content:"\\f58c"}.fa-grip-horizontal:before{content:"\\f58d"}.fa-grip-lines:before{content:"\\f7a4"}.fa-grip-lines-vertical:before{content:"\\f7a5"}.fa-grip-vertical:before{content:"\\f58e"}.fa-gripfire:before{content:"\\f3ac"}.fa-grunt:before{content:"\\f3ad"}.fa-guitar:before{content:"\\f7a6"}.fa-gulp:before{content:"\\f3ae"}.fa-h-square:before{content:"\\f0fd"}.fa-hacker-news:before{content:"\\f1d4"}.fa-hacker-news-square:before{content:"\\f3af"}.fa-hackerrank:before{content:"\\f5f7"}.fa-hamburger:before{content:"\\f805"}.fa-hammer:before{content:"\\f6e3"}.fa-hamsa:before{content:"\\f665"}.fa-hand-holding:before{content:"\\f4bd"}.fa-hand-holding-heart:before{content:"\\f4be"}.fa-hand-holding-medical:before{content:"\\f95c"}.fa-hand-holding-usd:before{content:"\\f4c0"}.fa-hand-holding-water:before{content:"\\f4c1"}.fa-hand-lizard:before{content:"\\f258"}.fa-hand-middle-finger:before{content:"\\f806"}.fa-hand-paper:before{content:"\\f256"}.fa-hand-peace:before{content:"\\f25b"}.fa-hand-point-down:before{content:"\\f0a7"}.fa-hand-point-left:before{content:"\\f0a5"}.fa-hand-point-right:before{content:"\\f0a4"}.fa-hand-point-up:before{content:"\\f0a6"}.fa-hand-pointer:before{content:"\\f25a"}.fa-hand-rock:before{content:"\\f255"}.fa-hand-scissors:before{content:"\\f257"}.fa-hand-sparkles:before{content:"\\f95d"}.fa-hand-spock:before{content:"\\f259"}.fa-hands:before{content:"\\f4c2"}.fa-hands-helping:before{content:"\\f4c4"}.fa-hands-wash:before{content:"\\f95e"}.fa-handshake:before{content:"\\f2b5"}.fa-handshake-alt-slash:before{content:"\\f95f"}.fa-handshake-slash:before{content:"\\f960"}.fa-hanukiah:before{content:"\\f6e6"}.fa-hard-hat:before{content:"\\f807"}.fa-hashtag:before{content:"\\f292"}.fa-hat-cowboy:before{content:"\\f8c0"}.fa-hat-cowboy-side:before{content:"\\f8c1"}.fa-hat-wizard:before{content:"\\f6e8"}.fa-hdd:before{content:"\\f0a0"}.fa-head-side-cough:before{content:"\\f961"}.fa-head-side-cough-slash:before{content:"\\f962"}.fa-head-side-mask:before{content:"\\f963"}.fa-head-side-virus:before{content:"\\f964"}.fa-heading:before{content:"\\f1dc"}.fa-headphones:before{content:"\\f025"}.fa-headphones-alt:before{content:"\\f58f"}.fa-headset:before{content:"\\f590"}.fa-heart:before{content:"\\f004"}.fa-heart-broken:before{content:"\\f7a9"}.fa-heartbeat:before{content:"\\f21e"}.fa-helicopter:before{content:"\\f533"}.fa-highlighter:before{content:"\\f591"}.fa-hiking:before{content:"\\f6ec"}.fa-hippo:before{content:"\\f6ed"}.fa-hips:before{content:"\\f452"}.fa-hire-a-helper:before{content:"\\f3b0"}.fa-history:before{content:"\\f1da"}.fa-hockey-puck:before{content:"\\f453"}.fa-holly-berry:before{content:"\\f7aa"}.fa-home:before{content:"\\f015"}.fa-hooli:before{content:"\\f427"}.fa-hornbill:before{content:"\\f592"}.fa-horse:before{content:"\\f6f0"}.fa-horse-head:before{content:"\\f7ab"}.fa-hospital:before{content:"\\f0f8"}.fa-hospital-alt:before{content:"\\f47d"}.fa-hospital-symbol:before{content:"\\f47e"}.fa-hospital-user:before{content:"\\f80d"}.fa-hot-tub:before{content:"\\f593"}.fa-hotdog:before{content:"\\f80f"}.fa-hotel:before{content:"\\f594"}.fa-hotjar:before{content:"\\f3b1"}.fa-hourglass:before{content:"\\f254"}.fa-hourglass-end:before{content:"\\f253"}.fa-hourglass-half:before{content:"\\f252"}.fa-hourglass-start:before{content:"\\f251"}.fa-house-damage:before{content:"\\f6f1"}.fa-house-user:before{content:"\\f965"}.fa-houzz:before{content:"\\f27c"}.fa-hryvnia:before{content:"\\f6f2"}.fa-html5:before{content:"\\f13b"}.fa-hubspot:before{content:"\\f3b2"}.fa-i-cursor:before{content:"\\f246"}.fa-ice-cream:before{content:"\\f810"}.fa-icicles:before{content:"\\f7ad"}.fa-icons:before{content:"\\f86d"}.fa-id-badge:before{content:"\\f2c1"}.fa-id-card:before{content:"\\f2c2"}.fa-id-card-alt:before{content:"\\f47f"}.fa-ideal:before{content:"\\f913"}.fa-igloo:before{content:"\\f7ae"}.fa-image:before{content:"\\f03e"}.fa-images:before{content:"\\f302"}.fa-imdb:before{content:"\\f2d8"}.fa-inbox:before{content:"\\f01c"}.fa-indent:before{content:"\\f03c"}.fa-industry:before{content:"\\f275"}.fa-infinity:before{content:"\\f534"}.fa-info:before{content:"\\f129"}.fa-info-circle:before{content:"\\f05a"}.fa-instagram:before{content:"\\f16d"}.fa-instagram-square:before{content:"\\f955"}.fa-intercom:before{content:"\\f7af"}.fa-internet-explorer:before{content:"\\f26b"}.fa-invision:before{content:"\\f7b0"}.fa-ioxhost:before{content:"\\f208"}.fa-italic:before{content:"\\f033"}.fa-itch-io:before{content:"\\f83a"}.fa-itunes:before{content:"\\f3b4"}.fa-itunes-note:before{content:"\\f3b5"}.fa-java:before{content:"\\f4e4"}.fa-jedi:before{content:"\\f669"}.fa-jedi-order:before{content:"\\f50e"}.fa-jenkins:before{content:"\\f3b6"}.fa-jira:before{content:"\\f7b1"}.fa-joget:before{content:"\\f3b7"}.fa-joint:before{content:"\\f595"}.fa-joomla:before{content:"\\f1aa"}.fa-journal-whills:before{content:"\\f66a"}.fa-js:before{content:"\\f3b8"}.fa-js-square:before{content:"\\f3b9"}.fa-jsfiddle:before{content:"\\f1cc"}.fa-kaaba:before{content:"\\f66b"}.fa-kaggle:before{content:"\\f5fa"}.fa-key:before{content:"\\f084"}.fa-keybase:before{content:"\\f4f5"}.fa-keyboard:before{content:"\\f11c"}.fa-keycdn:before{content:"\\f3ba"}.fa-khanda:before{content:"\\f66d"}.fa-kickstarter:before{content:"\\f3bb"}.fa-kickstarter-k:before{content:"\\f3bc"}.fa-kiss:before{content:"\\f596"}.fa-kiss-beam:before{content:"\\f597"}.fa-kiss-wink-heart:before{content:"\\f598"}.fa-kiwi-bird:before{content:"\\f535"}.fa-korvue:before{content:"\\f42f"}.fa-landmark:before{content:"\\f66f"}.fa-language:before{content:"\\f1ab"}.fa-laptop:before{content:"\\f109"}.fa-laptop-code:before{content:"\\f5fc"}.fa-laptop-house:before{content:"\\f966"}.fa-laptop-medical:before{content:"\\f812"}.fa-laravel:before{content:"\\f3bd"}.fa-lastfm:before{content:"\\f202"}.fa-lastfm-square:before{content:"\\f203"}.fa-laugh:before{content:"\\f599"}.fa-laugh-beam:before{content:"\\f59a"}.fa-laugh-squint:before{content:"\\f59b"}.fa-laugh-wink:before{content:"\\f59c"}.fa-layer-group:before{content:"\\f5fd"}.fa-leaf:before{content:"\\f06c"}.fa-leanpub:before{content:"\\f212"}.fa-lemon:before{content:"\\f094"}.fa-less:before{content:"\\f41d"}.fa-less-than:before{content:"\\f536"}.fa-less-than-equal:before{content:"\\f537"}.fa-level-down-alt:before{content:"\\f3be"}.fa-level-up-alt:before{content:"\\f3bf"}.fa-life-ring:before{content:"\\f1cd"}.fa-lightbulb:before{content:"\\f0eb"}.fa-line:before{content:"\\f3c0"}.fa-link:before{content:"\\f0c1"}.fa-linkedin:before{content:"\\f08c"}.fa-linkedin-in:before{content:"\\f0e1"}.fa-linode:before{content:"\\f2b8"}.fa-linux:before{content:"\\f17c"}.fa-lira-sign:before{content:"\\f195"}.fa-list:before{content:"\\f03a"}.fa-list-alt:before{content:"\\f022"}.fa-list-ol:before{content:"\\f0cb"}.fa-list-ul:before{content:"\\f0ca"}.fa-location-arrow:before{content:"\\f124"}.fa-lock:before{content:"\\f023"}.fa-lock-open:before{content:"\\f3c1"}.fa-long-arrow-alt-down:before{content:"\\f309"}.fa-long-arrow-alt-left:before{content:"\\f30a"}.fa-long-arrow-alt-right:before{content:"\\f30b"}.fa-long-arrow-alt-up:before{content:"\\f30c"}.fa-low-vision:before{content:"\\f2a8"}.fa-luggage-cart:before{content:"\\f59d"}.fa-lungs:before{content:"\\f604"}.fa-lungs-virus:before{content:"\\f967"}.fa-lyft:before{content:"\\f3c3"}.fa-magento:before{content:"\\f3c4"}.fa-magic:before{content:"\\f0d0"}.fa-magnet:before{content:"\\f076"}.fa-mail-bulk:before{content:"\\f674"}.fa-mailchimp:before{content:"\\f59e"}.fa-male:before{content:"\\f183"}.fa-mandalorian:before{content:"\\f50f"}.fa-map:before{content:"\\f279"}.fa-map-marked:before{content:"\\f59f"}.fa-map-marked-alt:before{content:"\\f5a0"}.fa-map-marker:before{content:"\\f041"}.fa-map-marker-alt:before{content:"\\f3c5"}.fa-map-pin:before{content:"\\f276"}.fa-map-signs:before{content:"\\f277"}.fa-markdown:before{content:"\\f60f"}.fa-marker:before{content:"\\f5a1"}.fa-mars:before{content:"\\f222"}.fa-mars-double:before{content:"\\f227"}.fa-mars-stroke:before{content:"\\f229"}.fa-mars-stroke-h:before{content:"\\f22b"}.fa-mars-stroke-v:before{content:"\\f22a"}.fa-mask:before{content:"\\f6fa"}.fa-mastodon:before{content:"\\f4f6"}.fa-maxcdn:before{content:"\\f136"}.fa-mdb:before{content:"\\f8ca"}.fa-medal:before{content:"\\f5a2"}.fa-medapps:before{content:"\\f3c6"}.fa-medium:before{content:"\\f23a"}.fa-medium-m:before{content:"\\f3c7"}.fa-medkit:before{content:"\\f0fa"}.fa-medrt:before{content:"\\f3c8"}.fa-meetup:before{content:"\\f2e0"}.fa-megaport:before{content:"\\f5a3"}.fa-meh:before{content:"\\f11a"}.fa-meh-blank:before{content:"\\f5a4"}.fa-meh-rolling-eyes:before{content:"\\f5a5"}.fa-memory:before{content:"\\f538"}.fa-mendeley:before{content:"\\f7b3"}.fa-menorah:before{content:"\\f676"}.fa-mercury:before{content:"\\f223"}.fa-meteor:before{content:"\\f753"}.fa-microblog:before{content:"\\f91a"}.fa-microchip:before{content:"\\f2db"}.fa-microphone:before{content:"\\f130"}.fa-microphone-alt:before{content:"\\f3c9"}.fa-microphone-alt-slash:before{content:"\\f539"}.fa-microphone-slash:before{content:"\\f131"}.fa-microscope:before{content:"\\f610"}.fa-microsoft:before{content:"\\f3ca"}.fa-minus:before{content:"\\f068"}.fa-minus-circle:before{content:"\\f056"}.fa-minus-square:before{content:"\\f146"}.fa-mitten:before{content:"\\f7b5"}.fa-mix:before{content:"\\f3cb"}.fa-mixcloud:before{content:"\\f289"}.fa-mixer:before{content:"\\f956"}.fa-mizuni:before{content:"\\f3cc"}.fa-mobile:before{content:"\\f10b"}.fa-mobile-alt:before{content:"\\f3cd"}.fa-modx:before{content:"\\f285"}.fa-monero:before{content:"\\f3d0"}.fa-money-bill:before{content:"\\f0d6"}.fa-money-bill-alt:before{content:"\\f3d1"}.fa-money-bill-wave:before{content:"\\f53a"}.fa-money-bill-wave-alt:before{content:"\\f53b"}.fa-money-check:before{content:"\\f53c"}.fa-money-check-alt:before{content:"\\f53d"}.fa-monument:before{content:"\\f5a6"}.fa-moon:before{content:"\\f186"}.fa-mortar-pestle:before{content:"\\f5a7"}.fa-mosque:before{content:"\\f678"}.fa-motorcycle:before{content:"\\f21c"}.fa-mountain:before{content:"\\f6fc"}.fa-mouse:before{content:"\\f8cc"}.fa-mouse-pointer:before{content:"\\f245"}.fa-mug-hot:before{content:"\\f7b6"}.fa-music:before{content:"\\f001"}.fa-napster:before{content:"\\f3d2"}.fa-neos:before{content:"\\f612"}.fa-network-wired:before{content:"\\f6ff"}.fa-neuter:before{content:"\\f22c"}.fa-newspaper:before{content:"\\f1ea"}.fa-nimblr:before{content:"\\f5a8"}.fa-node:before{content:"\\f419"}.fa-node-js:before{content:"\\f3d3"}.fa-not-equal:before{content:"\\f53e"}.fa-notes-medical:before{content:"\\f481"}.fa-npm:before{content:"\\f3d4"}.fa-ns8:before{content:"\\f3d5"}.fa-nutritionix:before{content:"\\f3d6"}.fa-object-group:before{content:"\\f247"}.fa-object-ungroup:before{content:"\\f248"}.fa-odnoklassniki:before{content:"\\f263"}.fa-odnoklassniki-square:before{content:"\\f264"}.fa-oil-can:before{content:"\\f613"}.fa-old-republic:before{content:"\\f510"}.fa-om:before{content:"\\f679"}.fa-opencart:before{content:"\\f23d"}.fa-openid:before{content:"\\f19b"}.fa-opera:before{content:"\\f26a"}.fa-optin-monster:before{content:"\\f23c"}.fa-orcid:before{content:"\\f8d2"}.fa-osi:before{content:"\\f41a"}.fa-otter:before{content:"\\f700"}.fa-outdent:before{content:"\\f03b"}.fa-page4:before{content:"\\f3d7"}.fa-pagelines:before{content:"\\f18c"}.fa-pager:before{content:"\\f815"}.fa-paint-brush:before{content:"\\f1fc"}.fa-paint-roller:before{content:"\\f5aa"}.fa-palette:before{content:"\\f53f"}.fa-palfed:before{content:"\\f3d8"}.fa-pallet:before{content:"\\f482"}.fa-paper-plane:before{content:"\\f1d8"}.fa-paperclip:before{content:"\\f0c6"}.fa-parachute-box:before{content:"\\f4cd"}.fa-paragraph:before{content:"\\f1dd"}.fa-parking:before{content:"\\f540"}.fa-passport:before{content:"\\f5ab"}.fa-pastafarianism:before{content:"\\f67b"}.fa-paste:before{content:"\\f0ea"}.fa-patreon:before{content:"\\f3d9"}.fa-pause:before{content:"\\f04c"}.fa-pause-circle:before{content:"\\f28b"}.fa-paw:before{content:"\\f1b0"}.fa-paypal:before{content:"\\f1ed"}.fa-peace:before{content:"\\f67c"}.fa-pen:before{content:"\\f304"}.fa-pen-alt:before{content:"\\f305"}.fa-pen-fancy:before{content:"\\f5ac"}.fa-pen-nib:before{content:"\\f5ad"}.fa-pen-square:before{content:"\\f14b"}.fa-pencil-alt:before{content:"\\f303"}.fa-pencil-ruler:before{content:"\\f5ae"}.fa-penny-arcade:before{content:"\\f704"}.fa-people-arrows:before{content:"\\f968"}.fa-people-carry:before{content:"\\f4ce"}.fa-pepper-hot:before{content:"\\f816"}.fa-percent:before{content:"\\f295"}.fa-percentage:before{content:"\\f541"}.fa-periscope:before{content:"\\f3da"}.fa-person-booth:before{content:"\\f756"}.fa-phabricator:before{content:"\\f3db"}.fa-phoenix-framework:before{content:"\\f3dc"}.fa-phoenix-squadron:before{content:"\\f511"}.fa-phone:before{content:"\\f095"}.fa-phone-alt:before{content:"\\f879"}.fa-phone-slash:before{content:"\\f3dd"}.fa-phone-square:before{content:"\\f098"}.fa-phone-square-alt:before{content:"\\f87b"}.fa-phone-volume:before{content:"\\f2a0"}.fa-photo-video:before{content:"\\f87c"}.fa-php:before{content:"\\f457"}.fa-pied-piper:before{content:"\\f2ae"}.fa-pied-piper-alt:before{content:"\\f1a8"}.fa-pied-piper-hat:before{content:"\\f4e5"}.fa-pied-piper-pp:before{content:"\\f1a7"}.fa-pied-piper-square:before{content:"\\f91e"}.fa-piggy-bank:before{content:"\\f4d3"}.fa-pills:before{content:"\\f484"}.fa-pinterest:before{content:"\\f0d2"}.fa-pinterest-p:before{content:"\\f231"}.fa-pinterest-square:before{content:"\\f0d3"}.fa-pizza-slice:before{content:"\\f818"}.fa-place-of-worship:before{content:"\\f67f"}.fa-plane:before{content:"\\f072"}.fa-plane-arrival:before{content:"\\f5af"}.fa-plane-departure:before{content:"\\f5b0"}.fa-plane-slash:before{content:"\\f969"}.fa-play:before{content:"\\f04b"}.fa-play-circle:before{content:"\\f144"}.fa-playstation:before{content:"\\f3df"}.fa-plug:before{content:"\\f1e6"}.fa-plus:before{content:"\\f067"}.fa-plus-circle:before{content:"\\f055"}.fa-plus-square:before{content:"\\f0fe"}.fa-podcast:before{content:"\\f2ce"}.fa-poll:before{content:"\\f681"}.fa-poll-h:before{content:"\\f682"}.fa-poo:before{content:"\\f2fe"}.fa-poo-storm:before{content:"\\f75a"}.fa-poop:before{content:"\\f619"}.fa-portrait:before{content:"\\f3e0"}.fa-pound-sign:before{content:"\\f154"}.fa-power-off:before{content:"\\f011"}.fa-pray:before{content:"\\f683"}.fa-praying-hands:before{content:"\\f684"}.fa-prescription:before{content:"\\f5b1"}.fa-prescription-bottle:before{content:"\\f485"}.fa-prescription-bottle-alt:before{content:"\\f486"}.fa-print:before{content:"\\f02f"}.fa-procedures:before{content:"\\f487"}.fa-product-hunt:before{content:"\\f288"}.fa-project-diagram:before{content:"\\f542"}.fa-pump-medical:before{content:"\\f96a"}.fa-pump-soap:before{content:"\\f96b"}.fa-pushed:before{content:"\\f3e1"}.fa-puzzle-piece:before{content:"\\f12e"}.fa-python:before{content:"\\f3e2"}.fa-qq:before{content:"\\f1d6"}.fa-qrcode:before{content:"\\f029"}.fa-question:before{content:"\\f128"}.fa-question-circle:before{content:"\\f059"}.fa-quidditch:before{content:"\\f458"}.fa-quinscape:before{content:"\\f459"}.fa-quora:before{content:"\\f2c4"}.fa-quote-left:before{content:"\\f10d"}.fa-quote-right:before{content:"\\f10e"}.fa-quran:before{content:"\\f687"}.fa-r-project:before{content:"\\f4f7"}.fa-radiation:before{content:"\\f7b9"}.fa-radiation-alt:before{content:"\\f7ba"}.fa-rainbow:before{content:"\\f75b"}.fa-random:before{content:"\\f074"}.fa-raspberry-pi:before{content:"\\f7bb"}.fa-ravelry:before{content:"\\f2d9"}.fa-react:before{content:"\\f41b"}.fa-reacteurope:before{content:"\\f75d"}.fa-readme:before{content:"\\f4d5"}.fa-rebel:before{content:"\\f1d0"}.fa-receipt:before{content:"\\f543"}.fa-record-vinyl:before{content:"\\f8d9"}.fa-recycle:before{content:"\\f1b8"}.fa-red-river:before{content:"\\f3e3"}.fa-reddit:before{content:"\\f1a1"}.fa-reddit-alien:before{content:"\\f281"}.fa-reddit-square:before{content:"\\f1a2"}.fa-redhat:before{content:"\\f7bc"}.fa-redo:before{content:"\\f01e"}.fa-redo-alt:before{content:"\\f2f9"}.fa-registered:before{content:"\\f25d"}.fa-remove-format:before{content:"\\f87d"}.fa-renren:before{content:"\\f18b"}.fa-reply:before{content:"\\f3e5"}.fa-reply-all:before{content:"\\f122"}.fa-replyd:before{content:"\\f3e6"}.fa-republican:before{content:"\\f75e"}.fa-researchgate:before{content:"\\f4f8"}.fa-resolving:before{content:"\\f3e7"}.fa-restroom:before{content:"\\f7bd"}.fa-retweet:before{content:"\\f079"}.fa-rev:before{content:"\\f5b2"}.fa-ribbon:before{content:"\\f4d6"}.fa-ring:before{content:"\\f70b"}.fa-road:before{content:"\\f018"}.fa-robot:before{content:"\\f544"}.fa-rocket:before{content:"\\f135"}.fa-rocketchat:before{content:"\\f3e8"}.fa-rockrms:before{content:"\\f3e9"}.fa-route:before{content:"\\f4d7"}.fa-rss:before{content:"\\f09e"}.fa-rss-square:before{content:"\\f143"}.fa-ruble-sign:before{content:"\\f158"}.fa-ruler:before{content:"\\f545"}.fa-ruler-combined:before{content:"\\f546"}.fa-ruler-horizontal:before{content:"\\f547"}.fa-ruler-vertical:before{content:"\\f548"}.fa-running:before{content:"\\f70c"}.fa-rupee-sign:before{content:"\\f156"}.fa-sad-cry:before{content:"\\f5b3"}.fa-sad-tear:before{content:"\\f5b4"}.fa-safari:before{content:"\\f267"}.fa-salesforce:before{content:"\\f83b"}.fa-sass:before{content:"\\f41e"}.fa-satellite:before{content:"\\f7bf"}.fa-satellite-dish:before{content:"\\f7c0"}.fa-save:before{content:"\\f0c7"}.fa-schlix:before{content:"\\f3ea"}.fa-school:before{content:"\\f549"}.fa-screwdriver:before{content:"\\f54a"}.fa-scribd:before{content:"\\f28a"}.fa-scroll:before{content:"\\f70e"}.fa-sd-card:before{content:"\\f7c2"}.fa-search:before{content:"\\f002"}.fa-search-dollar:before{content:"\\f688"}.fa-search-location:before{content:"\\f689"}.fa-search-minus:before{content:"\\f010"}.fa-search-plus:before{content:"\\f00e"}.fa-searchengin:before{content:"\\f3eb"}.fa-seedling:before{content:"\\f4d8"}.fa-sellcast:before{content:"\\f2da"}.fa-sellsy:before{content:"\\f213"}.fa-server:before{content:"\\f233"}.fa-servicestack:before{content:"\\f3ec"}.fa-shapes:before{content:"\\f61f"}.fa-share:before{content:"\\f064"}.fa-share-alt:before{content:"\\f1e0"}.fa-share-alt-square:before{content:"\\f1e1"}.fa-share-square:before{content:"\\f14d"}.fa-shekel-sign:before{content:"\\f20b"}.fa-shield-alt:before{content:"\\f3ed"}.fa-shield-virus:before{content:"\\f96c"}.fa-ship:before{content:"\\f21a"}.fa-shipping-fast:before{content:"\\f48b"}.fa-shirtsinbulk:before{content:"\\f214"}.fa-shoe-prints:before{content:"\\f54b"}.fa-shopify:before{content:"\\f957"}.fa-shopping-bag:before{content:"\\f290"}.fa-shopping-basket:before{content:"\\f291"}.fa-shopping-cart:before{content:"\\f07a"}.fa-shopware:before{content:"\\f5b5"}.fa-shower:before{content:"\\f2cc"}.fa-shuttle-van:before{content:"\\f5b6"}.fa-sign:before{content:"\\f4d9"}.fa-sign-in-alt:before{content:"\\f2f6"}.fa-sign-language:before{content:"\\f2a7"}.fa-sign-out-alt:before{content:"\\f2f5"}.fa-signal:before{content:"\\f012"}.fa-signature:before{content:"\\f5b7"}.fa-sim-card:before{content:"\\f7c4"}.fa-simplybuilt:before{content:"\\f215"}.fa-sistrix:before{content:"\\f3ee"}.fa-sitemap:before{content:"\\f0e8"}.fa-sith:before{content:"\\f512"}.fa-skating:before{content:"\\f7c5"}.fa-sketch:before{content:"\\f7c6"}.fa-skiing:before{content:"\\f7c9"}.fa-skiing-nordic:before{content:"\\f7ca"}.fa-skull:before{content:"\\f54c"}.fa-skull-crossbones:before{content:"\\f714"}.fa-skyatlas:before{content:"\\f216"}.fa-skype:before{content:"\\f17e"}.fa-slack:before{content:"\\f198"}.fa-slack-hash:before{content:"\\f3ef"}.fa-slash:before{content:"\\f715"}.fa-sleigh:before{content:"\\f7cc"}.fa-sliders-h:before{content:"\\f1de"}.fa-slideshare:before{content:"\\f1e7"}.fa-smile:before{content:"\\f118"}.fa-smile-beam:before{content:"\\f5b8"}.fa-smile-wink:before{content:"\\f4da"}.fa-smog:before{content:"\\f75f"}.fa-smoking:before{content:"\\f48d"}.fa-smoking-ban:before{content:"\\f54d"}.fa-sms:before{content:"\\f7cd"}.fa-snapchat:before{content:"\\f2ab"}.fa-snapchat-ghost:before{content:"\\f2ac"}.fa-snapchat-square:before{content:"\\f2ad"}.fa-snowboarding:before{content:"\\f7ce"}.fa-snowflake:before{content:"\\f2dc"}.fa-snowman:before{content:"\\f7d0"}.fa-snowplow:before{content:"\\f7d2"}.fa-soap:before{content:"\\f96e"}.fa-socks:before{content:"\\f696"}.fa-solar-panel:before{content:"\\f5ba"}.fa-sort:before{content:"\\f0dc"}.fa-sort-alpha-down:before{content:"\\f15d"}.fa-sort-alpha-down-alt:before{content:"\\f881"}.fa-sort-alpha-up:before{content:"\\f15e"}.fa-sort-alpha-up-alt:before{content:"\\f882"}.fa-sort-amount-down:before{content:"\\f160"}.fa-sort-amount-down-alt:before{content:"\\f884"}.fa-sort-amount-up:before{content:"\\f161"}.fa-sort-amount-up-alt:before{content:"\\f885"}.fa-sort-down:before{content:"\\f0dd"}.fa-sort-numeric-down:before{content:"\\f162"}.fa-sort-numeric-down-alt:before{content:"\\f886"}.fa-sort-numeric-up:before{content:"\\f163"}.fa-sort-numeric-up-alt:before{content:"\\f887"}.fa-sort-up:before{content:"\\f0de"}.fa-soundcloud:before{content:"\\f1be"}.fa-sourcetree:before{content:"\\f7d3"}.fa-spa:before{content:"\\f5bb"}.fa-space-shuttle:before{content:"\\f197"}.fa-speakap:before{content:"\\f3f3"}.fa-speaker-deck:before{content:"\\f83c"}.fa-spell-check:before{content:"\\f891"}.fa-spider:before{content:"\\f717"}.fa-spinner:before{content:"\\f110"}.fa-splotch:before{content:"\\f5bc"}.fa-spotify:before{content:"\\f1bc"}.fa-spray-can:before{content:"\\f5bd"}.fa-square:before{content:"\\f0c8"}.fa-square-full:before{content:"\\f45c"}.fa-square-root-alt:before{content:"\\f698"}.fa-squarespace:before{content:"\\f5be"}.fa-stack-exchange:before{content:"\\f18d"}.fa-stack-overflow:before{content:"\\f16c"}.fa-stackpath:before{content:"\\f842"}.fa-stamp:before{content:"\\f5bf"}.fa-star:before{content:"\\f005"}.fa-star-and-crescent:before{content:"\\f699"}.fa-star-half:before{content:"\\f089"}.fa-star-half-alt:before{content:"\\f5c0"}.fa-star-of-david:before{content:"\\f69a"}.fa-star-of-life:before{content:"\\f621"}.fa-staylinked:before{content:"\\f3f5"}.fa-steam:before{content:"\\f1b6"}.fa-steam-square:before{content:"\\f1b7"}.fa-steam-symbol:before{content:"\\f3f6"}.fa-step-backward:before{content:"\\f048"}.fa-step-forward:before{content:"\\f051"}.fa-stethoscope:before{content:"\\f0f1"}.fa-sticker-mule:before{content:"\\f3f7"}.fa-sticky-note:before{content:"\\f249"}.fa-stop:before{content:"\\f04d"}.fa-stop-circle:before{content:"\\f28d"}.fa-stopwatch:before{content:"\\f2f2"}.fa-stopwatch-20:before{content:"\\f96f"}.fa-store:before{content:"\\f54e"}.fa-store-alt:before{content:"\\f54f"}.fa-store-alt-slash:before{content:"\\f970"}.fa-store-slash:before{content:"\\f971"}.fa-strava:before{content:"\\f428"}.fa-stream:before{content:"\\f550"}.fa-street-view:before{content:"\\f21d"}.fa-strikethrough:before{content:"\\f0cc"}.fa-stripe:before{content:"\\f429"}.fa-stripe-s:before{content:"\\f42a"}.fa-stroopwafel:before{content:"\\f551"}.fa-studiovinari:before{content:"\\f3f8"}.fa-stumbleupon:before{content:"\\f1a4"}.fa-stumbleupon-circle:before{content:"\\f1a3"}.fa-subscript:before{content:"\\f12c"}.fa-subway:before{content:"\\f239"}.fa-suitcase:before{content:"\\f0f2"}.fa-suitcase-rolling:before{content:"\\f5c1"}.fa-sun:before{content:"\\f185"}.fa-superpowers:before{content:"\\f2dd"}.fa-superscript:before{content:"\\f12b"}.fa-supple:before{content:"\\f3f9"}.fa-surprise:before{content:"\\f5c2"}.fa-suse:before{content:"\\f7d6"}.fa-swatchbook:before{content:"\\f5c3"}.fa-swift:before{content:"\\f8e1"}.fa-swimmer:before{content:"\\f5c4"}.fa-swimming-pool:before{content:"\\f5c5"}.fa-symfony:before{content:"\\f83d"}.fa-synagogue:before{content:"\\f69b"}.fa-sync:before{content:"\\f021"}.fa-sync-alt:before{content:"\\f2f1"}.fa-syringe:before{content:"\\f48e"}.fa-table:before{content:"\\f0ce"}.fa-table-tennis:before{content:"\\f45d"}.fa-tablet:before{content:"\\f10a"}.fa-tablet-alt:before{content:"\\f3fa"}.fa-tablets:before{content:"\\f490"}.fa-tachometer-alt:before{content:"\\f3fd"}.fa-tag:before{content:"\\f02b"}.fa-tags:before{content:"\\f02c"}.fa-tape:before{content:"\\f4db"}.fa-tasks:before{content:"\\f0ae"}.fa-taxi:before{content:"\\f1ba"}.fa-teamspeak:before{content:"\\f4f9"}.fa-teeth:before{content:"\\f62e"}.fa-teeth-open:before{content:"\\f62f"}.fa-telegram:before{content:"\\f2c6"}.fa-telegram-plane:before{content:"\\f3fe"}.fa-temperature-high:before{content:"\\f769"}.fa-temperature-low:before{content:"\\f76b"}.fa-tencent-weibo:before{content:"\\f1d5"}.fa-tenge:before{content:"\\f7d7"}.fa-terminal:before{content:"\\f120"}.fa-text-height:before{content:"\\f034"}.fa-text-width:before{content:"\\f035"}.fa-th:before{content:"\\f00a"}.fa-th-large:before{content:"\\f009"}.fa-th-list:before{content:"\\f00b"}.fa-the-red-yeti:before{content:"\\f69d"}.fa-theater-masks:before{content:"\\f630"}.fa-themeco:before{content:"\\f5c6"}.fa-themeisle:before{content:"\\f2b2"}.fa-thermometer:before{content:"\\f491"}.fa-thermometer-empty:before{content:"\\f2cb"}.fa-thermometer-full:before{content:"\\f2c7"}.fa-thermometer-half:before{content:"\\f2c9"}.fa-thermometer-quarter:before{content:"\\f2ca"}.fa-thermometer-three-quarters:before{content:"\\f2c8"}.fa-think-peaks:before{content:"\\f731"}.fa-thumbs-down:before{content:"\\f165"}.fa-thumbs-up:before{content:"\\f164"}.fa-thumbtack:before{content:"\\f08d"}.fa-ticket-alt:before{content:"\\f3ff"}.fa-times:before{content:"\\f00d"}.fa-times-circle:before{content:"\\f057"}.fa-tint:before{content:"\\f043"}.fa-tint-slash:before{content:"\\f5c7"}.fa-tired:before{content:"\\f5c8"}.fa-toggle-off:before{content:"\\f204"}.fa-toggle-on:before{content:"\\f205"}.fa-toilet:before{content:"\\f7d8"}.fa-toilet-paper:before{content:"\\f71e"}.fa-toilet-paper-slash:before{content:"\\f972"}.fa-toolbox:before{content:"\\f552"}.fa-tools:before{content:"\\f7d9"}.fa-tooth:before{content:"\\f5c9"}.fa-torah:before{content:"\\f6a0"}.fa-torii-gate:before{content:"\\f6a1"}.fa-tractor:before{content:"\\f722"}.fa-trade-federation:before{content:"\\f513"}.fa-trademark:before{content:"\\f25c"}.fa-traffic-light:before{content:"\\f637"}.fa-trailer:before{content:"\\f941"}.fa-train:before{content:"\\f238"}.fa-tram:before{content:"\\f7da"}.fa-transgender:before{content:"\\f224"}.fa-transgender-alt:before{content:"\\f225"}.fa-trash:before{content:"\\f1f8"}.fa-trash-alt:before{content:"\\f2ed"}.fa-trash-restore:before{content:"\\f829"}.fa-trash-restore-alt:before{content:"\\f82a"}.fa-tree:before{content:"\\f1bb"}.fa-trello:before{content:"\\f181"}.fa-tripadvisor:before{content:"\\f262"}.fa-trophy:before{content:"\\f091"}.fa-truck:before{content:"\\f0d1"}.fa-truck-loading:before{content:"\\f4de"}.fa-truck-monster:before{content:"\\f63b"}.fa-truck-moving:before{content:"\\f4df"}.fa-truck-pickup:before{content:"\\f63c"}.fa-tshirt:before{content:"\\f553"}.fa-tty:before{content:"\\f1e4"}.fa-tumblr:before{content:"\\f173"}.fa-tumblr-square:before{content:"\\f174"}.fa-tv:before{content:"\\f26c"}.fa-twitch:before{content:"\\f1e8"}.fa-twitter:before{content:"\\f099"}.fa-twitter-square:before{content:"\\f081"}.fa-typo3:before{content:"\\f42b"}.fa-uber:before{content:"\\f402"}.fa-ubuntu:before{content:"\\f7df"}.fa-uikit:before{content:"\\f403"}.fa-umbraco:before{content:"\\f8e8"}.fa-umbrella:before{content:"\\f0e9"}.fa-umbrella-beach:before{content:"\\f5ca"}.fa-underline:before{content:"\\f0cd"}.fa-undo:before{content:"\\f0e2"}.fa-undo-alt:before{content:"\\f2ea"}.fa-uniregistry:before{content:"\\f404"}.fa-unity:before{content:"\\f949"}.fa-universal-access:before{content:"\\f29a"}.fa-university:before{content:"\\f19c"}.fa-unlink:before{content:"\\f127"}.fa-unlock:before{content:"\\f09c"}.fa-unlock-alt:before{content:"\\f13e"}.fa-untappd:before{content:"\\f405"}.fa-upload:before{content:"\\f093"}.fa-ups:before{content:"\\f7e0"}.fa-usb:before{content:"\\f287"}.fa-user:before{content:"\\f007"}.fa-user-alt:before{content:"\\f406"}.fa-user-alt-slash:before{content:"\\f4fa"}.fa-user-astronaut:before{content:"\\f4fb"}.fa-user-check:before{content:"\\f4fc"}.fa-user-circle:before{content:"\\f2bd"}.fa-user-clock:before{content:"\\f4fd"}.fa-user-cog:before{content:"\\f4fe"}.fa-user-edit:before{content:"\\f4ff"}.fa-user-friends:before{content:"\\f500"}.fa-user-graduate:before{content:"\\f501"}.fa-user-injured:before{content:"\\f728"}.fa-user-lock:before{content:"\\f502"}.fa-user-md:before{content:"\\f0f0"}.fa-user-minus:before{content:"\\f503"}.fa-user-ninja:before{content:"\\f504"}.fa-user-nurse:before{content:"\\f82f"}.fa-user-plus:before{content:"\\f234"}.fa-user-secret:before{content:"\\f21b"}.fa-user-shield:before{content:"\\f505"}.fa-user-slash:before{content:"\\f506"}.fa-user-tag:before{content:"\\f507"}.fa-user-tie:before{content:"\\f508"}.fa-user-times:before{content:"\\f235"}.fa-users:before{content:"\\f0c0"}.fa-users-cog:before{content:"\\f509"}.fa-usps:before{content:"\\f7e1"}.fa-ussunnah:before{content:"\\f407"}.fa-utensil-spoon:before{content:"\\f2e5"}.fa-utensils:before{content:"\\f2e7"}.fa-vaadin:before{content:"\\f408"}.fa-vector-square:before{content:"\\f5cb"}.fa-venus:before{content:"\\f221"}.fa-venus-double:before{content:"\\f226"}.fa-venus-mars:before{content:"\\f228"}.fa-viacoin:before{content:"\\f237"}.fa-viadeo:before{content:"\\f2a9"}.fa-viadeo-square:before{content:"\\f2aa"}.fa-vial:before{content:"\\f492"}.fa-vials:before{content:"\\f493"}.fa-viber:before{content:"\\f409"}.fa-video:before{content:"\\f03d"}.fa-video-slash:before{content:"\\f4e2"}.fa-vihara:before{content:"\\f6a7"}.fa-vimeo:before{content:"\\f40a"}.fa-vimeo-square:before{content:"\\f194"}.fa-vimeo-v:before{content:"\\f27d"}.fa-vine:before{content:"\\f1ca"}.fa-virus:before{content:"\\f974"}.fa-virus-slash:before{content:"\\f975"}.fa-viruses:before{content:"\\f976"}.fa-vk:before{content:"\\f189"}.fa-vnv:before{content:"\\f40b"}.fa-voicemail:before{content:"\\f897"}.fa-volleyball-ball:before{content:"\\f45f"}.fa-volume-down:before{content:"\\f027"}.fa-volume-mute:before{content:"\\f6a9"}.fa-volume-off:before{content:"\\f026"}.fa-volume-up:before{content:"\\f028"}.fa-vote-yea:before{content:"\\f772"}.fa-vr-cardboard:before{content:"\\f729"}.fa-vuejs:before{content:"\\f41f"}.fa-walking:before{content:"\\f554"}.fa-wallet:before{content:"\\f555"}.fa-warehouse:before{content:"\\f494"}.fa-water:before{content:"\\f773"}.fa-wave-square:before{content:"\\f83e"}.fa-waze:before{content:"\\f83f"}.fa-weebly:before{content:"\\f5cc"}.fa-weibo:before{content:"\\f18a"}.fa-weight:before{content:"\\f496"}.fa-weight-hanging:before{content:"\\f5cd"}.fa-weixin:before{content:"\\f1d7"}.fa-whatsapp:before{content:"\\f232"}.fa-whatsapp-square:before{content:"\\f40c"}.fa-wheelchair:before{content:"\\f193"}.fa-whmcs:before{content:"\\f40d"}.fa-wifi:before{content:"\\f1eb"}.fa-wikipedia-w:before{content:"\\f266"}.fa-wind:before{content:"\\f72e"}.fa-window-close:before{content:"\\f410"}.fa-window-maximize:before{content:"\\f2d0"}.fa-window-minimize:before{content:"\\f2d1"}.fa-window-restore:before{content:"\\f2d2"}.fa-windows:before{content:"\\f17a"}.fa-wine-bottle:before{content:"\\f72f"}.fa-wine-glass:before{content:"\\f4e3"}.fa-wine-glass-alt:before{content:"\\f5ce"}.fa-wix:before{content:"\\f5cf"}.fa-wizards-of-the-coast:before{content:"\\f730"}.fa-wolf-pack-battalion:before{content:"\\f514"}.fa-won-sign:before{content:"\\f159"}.fa-wordpress:before{content:"\\f19a"}.fa-wordpress-simple:before{content:"\\f411"}.fa-wpbeginner:before{content:"\\f297"}.fa-wpexplorer:before{content:"\\f2de"}.fa-wpforms:before{content:"\\f298"}.fa-wpressr:before{content:"\\f3e4"}.fa-wrench:before{content:"\\f0ad"}.fa-x-ray:before{content:"\\f497"}.fa-xbox:before{content:"\\f412"}.fa-xing:before{content:"\\f168"}.fa-xing-square:before{content:"\\f169"}.fa-y-combinator:before{content:"\\f23b"}.fa-yahoo:before{content:"\\f19e"}.fa-yammer:before{content:"\\f840"}.fa-yandex:before{content:"\\f413"}.fa-yandex-international:before{content:"\\f414"}.fa-yarn:before{content:"\\f7e3"}.fa-yelp:before{content:"\\f1e9"}.fa-yen-sign:before{content:"\\f157"}.fa-yin-yang:before{content:"\\f6ad"}.fa-yoast:before{content:"\\f2b1"}.fa-youtube:before{content:"\\f167"}.fa-youtube-square:before{content:"\\f431"}.fa-zhihu:before{content:"\\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:Font Awesome\\ 5 Brands;font-style:normal;font-weight:400;font-display:block;src:url('+k+");src:url("+w+') format("embedded-opentype"),url('+_+') format("woff2"),url('+C+') format("woff"),url('+A+') format("truetype"),url('+x+') format("svg")}.fab{font-family:Font Awesome\\ 5 Brands}@font-face{font-family:Font Awesome\\ 5 Free;font-style:normal;font-weight:400;font-display:block;src:url('+S+");src:url("+M+') format("embedded-opentype"),url('+E+') format("woff2"),url('+T+') format("woff"),url('+D+') format("truetype"),url('+O+') format("svg")}.fab,.far{font-weight:400}@font-face{font-family:Font Awesome\\ 5 Free;font-style:normal;font-weight:900;font-display:block;src:url('+P+");src:url("+I+') format("embedded-opentype"),url('+j+') format("woff2"),url('+N+') format("woff"),url('+R+') format("truetype"),url('+L+') format("svg")}.fa,.far,.fas{font-family:Font Awesome\\ 5 Free}.fa,.fas{font-weight:900}',""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot?c1868c9545d2de1cf8488f1dadd8c9d0"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2?a06da7f0950f9dd366fc9db9d56d618a"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff?ec3cfddedb8bebd2d7a3fdf511f7c1cc"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf?13685372945d816a2b474fc082fd9aaa"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.svg?0cb5a5c0d251c109458c85c6afeffbaa"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot?261d666b0147c6c5cda07265f98b8f8c"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2?c20b5b7362d8d7bb7eddf94344ace33e"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff?f89ea91ecd1ca2db7e09baa2c4b156d1"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf?db78b9359171f24936b16d84f63af378"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.svg?89ffa3aba80d30ee0a9371b25c968bbb"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot?a0369ea57eb6d3843d6474c035111f29"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2?b15db15f746f29ffa02638cb455b8ec0"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff?bea989e82b07e9687c26fc58a4805021"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf?1ab236ed440ee51810c56bd16628aef0"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.svg?ec763292e583294612f124c0b0def500"},function(e,t,n){"use strict";var r=n(16),i=n(294),o=n(324),a=n(47),s=n(153),c=n(34),l=n(72),u=n(243),d=n(91),f=n(379),h=n(75),p=n(380),m=n(253),v=n(76),g=n(44),b=n(92),y=n(255),k=n(165),w=n(166),_=n(393),C=n(394),A=n(395);function x(e){var t=e?x._parseNumbers(e):{};this.index=t.index||"",this.query=t.query||"",this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{},this.numericFilters=t.numericFilters,this.tagFilters=t.tagFilters,this.optionalTagFilters=t.optionalTagFilters,this.optionalFacetFilters=t.optionalFacetFilters,this.hitsPerPage=t.hitsPerPage,this.maxValuesPerFacet=t.maxValuesPerFacet,this.page=t.page||0,this.queryType=t.queryType,this.typoTolerance=t.typoTolerance,this.minWordSizefor1Typo=t.minWordSizefor1Typo,this.minWordSizefor2Typos=t.minWordSizefor2Typos,this.minProximity=t.minProximity,this.allowTyposOnNumericTokens=t.allowTyposOnNumericTokens,this.ignorePlurals=t.ignorePlurals,this.restrictSearchableAttributes=t.restrictSearchableAttributes,this.advancedSyntax=t.advancedSyntax,this.analytics=t.analytics,this.analyticsTags=t.analyticsTags,this.synonyms=t.synonyms,this.replaceSynonymsInHighlight=t.replaceSynonymsInHighlight,this.optionalWords=t.optionalWords,this.removeWordsIfNoResults=t.removeWordsIfNoResults,this.attributesToRetrieve=t.attributesToRetrieve,this.attributesToHighlight=t.attributesToHighlight,this.highlightPreTag=t.highlightPreTag,this.highlightPostTag=t.highlightPostTag,this.attributesToSnippet=t.attributesToSnippet,this.getRankingInfo=t.getRankingInfo,this.distinct=t.distinct,this.aroundLatLng=t.aroundLatLng,this.aroundLatLngViaIP=t.aroundLatLngViaIP,this.aroundRadius=t.aroundRadius,this.minimumAroundRadius=t.minimumAroundRadius,this.aroundPrecision=t.aroundPrecision,this.insideBoundingBox=t.insideBoundingBox,this.insidePolygon=t.insidePolygon,this.snippetEllipsisText=t.snippetEllipsisText,this.disableExactOnAttributes=t.disableExactOnAttributes,this.enableExactOnSingleWordQuery=t.enableExactOnSingleWordQuery,this.offset=t.offset,this.length=t.length;var n=this;o(t,(function(e,t){-1===x.PARAMETERS.indexOf(t)&&(n[t]=e)}))}x.PARAMETERS=r(new x),x._parseNumbers=function(e){if(e instanceof x)return e;var t={};if(a(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"],(function(n){var r=e[n];if(v(r)){var i=parseFloat(r);t[n]=f(i)?r:i}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return e.map((function(e){return parseFloat(e)}))}))),e.numericRefinements){var n={};a(e.numericRefinements,(function(e,t){n[t]={},a(e,(function(e,r){var i=c(e,(function(e){return Array.isArray(e)?c(e,(function(e){return v(e)?parseFloat(e):e})):v(e)?parseFloat(e):e}));n[t][r]=i}))})),t.numericRefinements=n}return w({},e,t)},x.make=function(e){var t=new x(e);return a(e.hierarchicalFacets,(function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(n=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},x.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&!h(n.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):!h(e.numericRefinements)&&n.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},x.prototype={constructor:x,clearRefinements:function(e){var t=A.clearRefinement,n={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:t(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:t(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:t(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:t(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return n.numericRefinements===this.numericRefinements&&n.facetsRefinements===this.facetsRefinements&&n.facetsExcludes===this.facetsExcludes&&n.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&n.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(n)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var r=_(n);if(this.isNumericRefined(e,t,r))return this;var i=w({},this.numericRefinements);return i[e]=w({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(r)):i[e][t]=[r],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,n){if(void 0!==n){var r=_(n);return this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,i){return i===e&&n.op===t&&p(n.val,r)}))}):this}return void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,r){return r===e&&n.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,n){return n===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(m(e))return h(this.numericRefinements)?this.numericRefinements:{};if(v(e))return h(this.numericRefinements[e])?this.numericRefinements:u(this.numericRefinements,e);if(g(e)){var t=!1,n=l(this.numericRefinements,(function(n,r,i){var o={};return a(r,(function(n,r){var s=[];a(n,(function(t){e({val:t,op:r},i,"numeric")||s.push(t)})),h(s)?t=!0:(s.length!==n.length&&(t=!0),o[r]=s)})),h(o)||(n[i]=o),n}),{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return A.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:A.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return A.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:A.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return A.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:A.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:s(this.facets,(function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:s(this.disjunctiveFacets,(function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:s(this.hierarchicalFacets,(function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return A.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:A.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return A.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:A.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return A.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:A.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:s(this.tagRefinements,(function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:A.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:A.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:A.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n))?-1===t.indexOf(n)?r[e]=[]:r[e]=[t.slice(0,t.lastIndexOf(n))]:r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:k({},r,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:k({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))throw new Error(e+" is not refined.");var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:k({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return d(this.disjunctiveFacets,e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return d(this.facets,e)>-1},isFacetRefined:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return A.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return A.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return A.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this.getHierarchicalRefinement(e);return t?-1!==d(n,t):n.length>0},isNumericRefined:function(e,t,n){if(m(n)&&m(t))return!!this.numericRefinements[e];var r=this.numericRefinements[e]&&!m(this.numericRefinements[e][t]);if(m(n)||!r)return r;var i,o,a=_(n),s=!m((i=this.numericRefinements[e][t],o=a,b(i,(function(e){return p(e,o)}))));return r&&s},isTagRefined:function(e){return-1!==d(this.tagRefinements,e)},getRefinedDisjunctiveFacets:function(){var e=i(r(this.numericRefinements),this.disjunctiveFacets);return r(this.disjunctiveFacetsRefinements).concat(e).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){return i(c(this.hierarchicalFacets,"name"),r(this.hierarchicalFacetsRefinements))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return s(this.disjunctiveFacets,(function(t){return-1===d(e,t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={};return o(this,(function(n,r){-1===d(e,r)&&void 0!==n&&(t[r]=n)})),t},getQueryParameter:function(e){if(!this.hasOwnProperty(e))throw new Error("Parameter '"+e+"' is not an attribute of SearchParameters (http://algolia.github.io/algoliasearch-helper-js/docs/SearchParameters.html)");return this[e]},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=x.validate(this,e);if(t)throw t;var n=x._parseNumbers(e);return this.mutateMe((function(t){var i=r(e);return a(i,(function(e){t[e]=n[e]})),t}))},filter:function(e){return C(this,e)},mutateMe:function(e){var t=new this.constructor(this);return e(t,this),t},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return b(this.hierarchicalFacets,{name:e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))throw new Error("Cannot get the breadcrumb of an unknown hierarchical facet: `"+e+"`");var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r=t.split(n);return c(r,y)},toString:function(){return JSON.stringify(this,null,2)}},e.exports=x},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(216),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(42)(e))},function(e,t,n){var r=n(296),i=n(312),o=n(314),a=n(315),s=n(316);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(37)(n(8),"Map");e.exports=r},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(322),i=n(227)(r);e.exports=i},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(231),i=n(327),o=n(13),a=n(6);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){var r=n(335),i=n(10);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(231),i=n(236),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},function(e,t,n){var r=n(6),i=n(71),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(159);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(43),i=n(33),o=n(6),a=n(71),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(73),i=n(45),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(218)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(235),i=n(245),o=n(51);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(233);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(32),i=n(161),o=n(10),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},function(e,t,n){var r=n(46),i=n(45),o=n(256),a=n(51),s=Object.prototype,c=s.hasOwnProperty,l=r((function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&o(t[0],t[1],l)&&(r=1);++n<r;)for(var u=t[n],d=a(u),f=-1,h=d.length;++f<h;){var p=d[f],m=e[p];(void 0===m||i(m,s[p])&&!c.call(e,p))&&(e[p]=u[p])}return e}));e.exports=l},function(e,t,n){var r=n(389),i=n(392)((function(e,t,n){r(e,t,n)}));e.exports=i},function(e,t,n){var r=n(261),i=n(407),o=n(408),a=n(263),s=n(420),c=n(267),l=n(421),u=n(269),d=n(270),f=n(74),h=Math.max;e.exports=function(e,t,n,p,m,v,g,b){var y=2&t;if(!y&&"function"!=typeof e)throw new TypeError("Expected a function");var k=p?p.length:0;if(k||(t&=-97,p=m=void 0),g=void 0===g?g:h(f(g),0),b=void 0===b?b:f(b),k-=m?m.length:0,64&t){var w=p,_=m;p=m=void 0}var C=y?void 0:c(e),A=[e,t,n,p,m,w,_,v,g,b];if(C&&l(A,C),e=A[0],t=A[1],n=A[2],p=A[3],m=A[4],!(b=A[9]=void 0===A[9]?y?0:e.length:h(A[9]-k,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||16==t?o(e,t,b):32!=t&&33!=t||m.length?a.apply(void 0,A):s(e,t,n,p);else var x=i(e,t,n);return d((C?r:u)(x,A),e,t)}},function(e,t,n){var r=n(90),i=n(169);function o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r="string"==typeof e?e:String(e);if("iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",a=0;a<r.length;++a){var s=r.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=r.charAt(a):s<128?i+=o[s]:s<2048?i+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?i+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),i+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return i(t)&&!i(n)&&(s=a(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return r.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),s)}}},function(e,t,n){var r={"./components/ActuLabos/ActuLaboInstantSearch.vue":198,"./components/ActuLabos/ActuLabosHit.vue":199,"./components/AdCampaign/CampaignHit.vue":200,"./components/AdCampaign/CampaignInstantSearch.vue":201,"./components/FileSearch/FileHit.vue":202,"./components/FileSearch/FileInstantSearch.vue":203,"./components/Home/cover.vue":204,"./components/LiveStats.vue":205,"./components/PollAnswers/PollAnswers.vue":206,"./components/Publish/HeadlineRepeater.vue":207,"./components/Publish/PublishLetter.vue":208,"./components/Publish/PublishNewsletter.vue":209,"./components/Publish/Step1UploadFile.vue":39,"./components/Publish/Step1WriteNewsletter.vue":41,"./components/Publish/Step2PrepareMail.vue":40,"./components/Publish/Step3Send.vue":12,"./components/Stats/EmailStatistics.vue":210,"./components/Stats/MgStats.vue":211,"./components/Stripe/StripeModal.vue":196,"./components/Stripe/UnlockArticle.vue":212};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=171},function(e,t,n){"use strict";var r=n(18);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,"h4[data-v-4c732d9d]{font-variant:small-caps}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(19);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,'.title[data-v-1a8b3214]{font-family:Raleway;font-size:24px;font-weight:700;color:#5d4037;text-align:center}*[data-v-1a8b3214]{-webkit-font-smoothing:antialiased}p[data-v-1a8b3214]{line-height:1.5em}h1+p[data-v-1a8b3214],p+p[data-v-1a8b3214]{margin-top:10px}.card-wrap[data-v-1a8b3214]{transform:perspective(800px);transform-style:preserve-3d;cursor:pointer}.card-wrap:hover .card-info[data-v-1a8b3214]{transform:translateY(0)}.card-wrap:hover .card-info p[data-v-1a8b3214]{opacity:1}.card-wrap:hover .card-info[data-v-1a8b3214],.card-wrap:hover .card-info p[data-v-1a8b3214]{transition:.6s cubic-bezier(.23,1,.32,1)}.card-wrap:hover .card-info[data-v-1a8b3214]:after{transition:5s cubic-bezier(.23,1,.32,1);opacity:1;transform:translateY(0)}.card-wrap:hover .card-bg[data-v-1a8b3214]{transition:.6s cubic-bezier(.23,1,.32,1),opacity 5s cubic-bezier(.23,1,.32,1);opacity:.8}.card-wrap:hover .cover[data-v-1a8b3214]{transition:.6s cubic-bezier(.23,1,.32,1),box-shadow 2s cubic-bezier(.23,1,.32,1);box-shadow:0 0 40px 5px hsla(0,0%,100%,.2),0 30px 60px 0 rgba(0,0,0,.3),inset 0 0 0 5px #333}.cover[data-v-1a8b3214]{position:relative;flex:0 0 100%;background-color:#333;overflow:hidden;box-shadow:0 30px 60px 0 rgba(0,0,0,.3),inset 0 0 0 5px #333;transition:.5s cubic-bezier(.445,.05,.55,.95)}.card-bg[data-v-1a8b3214],.cover[data-v-1a8b3214]{width:100%;height:100%}.card-bg[data-v-1a8b3214]{opacity:.8;position:absolute;background-repeat:no-repeat;background-position:50%;background-size:cover;transition:1s cubic-bezier(.445,.05,.55,.95),opacity 5s cubic-bezier(.445,.05,.55,.95) 1s;pointer-events:none}.card-bg[data-v-1a8b3214] :hover{opacity:.5}.card-info[data-v-1a8b3214]{padding:10px;position:absolute;bottom:0;color:#fff;transform:translateY(40%);box-sizing:border-box!important}.card-info[data-v-1a8b3214],.card-info p[data-v-1a8b3214]{transition:.6s cubic-bezier(.215,.61,.355,1) 1.6s}.card-info p[data-v-1a8b3214]{opacity:0;text-shadow:#000 0 2px 3px}.card-info *[data-v-1a8b3214]{position:relative;z-index:1}.card-info[data-v-1a8b3214]:after{content:"";position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.6));background-blend-mode:overlay;opacity:0;transform:translateY(100%);transition:5s cubic-bezier(.445,.05,.55,.95) 1s}.card-info h1[data-v-1a8b3214]{font-family:Playfair Display;font-size:36px;font-weight:700;text-shadow:rgba(0,0,0,.5) 0 10px 10px}',""]),e.exports=t},function(e,t,n){"use strict";var r=n(20);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,".stepper-box[data-v-0cd2e8d8]{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);min-height:200px}.stepper-box .top[data-v-0cd2e8d8]{display:flex;align-items:center;position:relative;justify-content:center}.stepper-box .top .stepper-button-top[data-v-0cd2e8d8]{z-index:20;padding:.4rem;border-radius:100rem;cursor:pointer;position:absolute;display:flex;align-items:center;justify-content:space-between}.stepper-box .top .stepper-button-top.next[data-v-0cd2e8d8]{border:2px solid #3383c8;color:#3383c8;right:1%}.stepper-box .top .stepper-button-top.next.deactivated[data-v-0cd2e8d8]{border:2px solid #ccc!important;color:#ccc;cursor:not-allowed!important}.stepper-box .top .stepper-button-top.previous[data-v-0cd2e8d8]{color:#333;left:1%}.stepper-box .top .divider-line[data-v-0cd2e8d8]{border-bottom:1px solid #ccc;height:2px;position:absolute}@media (max-width:767px){.stepper-box .top .divider-line[data-v-0cd2e8d8]{width:90%}}.stepper-box .top .steps-wrapper[data-v-0cd2e8d8]{display:flex;align-items:center;justify-content:space-between;position:relative;width:95%;left:0;padding:2% 4%}@media (max-width:767px){.stepper-box .top .steps-wrapper[data-v-0cd2e8d8]{width:90%;justify-content:center}}.stepper-box .top .steps-wrapper .step[data-v-0cd2e8d8]{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}@media (max-width:767px){.stepper-box .top .steps-wrapper .step[data-v-0cd2e8d8]{width:100%!important}}@media (max-width:767px){.stepper-box .top .steps-wrapper .step.deactivated[data-v-0cd2e8d8]{display:none}}.stepper-box .top .steps-wrapper .step.deactivated .circle i[data-v-0cd2e8d8]{background-color:#bbb!important}.stepper-box .top .steps-wrapper .step.deactivated .step-title[data-v-0cd2e8d8]{opacity:.35}.stepper-box .top .steps-wrapper .step .circle[data-v-0cd2e8d8]{margin-bottom:1rem;padding:0 1rem;background-color:#fff}.stepper-box .top .steps-wrapper .step .circle i[data-v-0cd2e8d8]{background-color:#3383c8;color:#fff;border-radius:100rem;padding:1rem}.stepper-box .top .steps-wrapper .step .step-title[data-v-0cd2e8d8]{position:absolute;top:90%;width:100%}.stepper-box .top .steps-wrapper .step .step-title h1[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h2[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h3[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h4[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h5[data-v-0cd2e8d8]{margin:0 0 .2rem;color:#333;font-weight:700}.stepper-box .top .steps-wrapper .step .step-title .step-subtitle[data-v-0cd2e8d8]{font-weight:lighter;margin:0;color:#555}.stepper-box .content[data-v-0cd2e8d8]{overflow:hidden;margin:1.5rem 0}.stepper-box .bottom[data-v-0cd2e8d8]{position:relative;display:flex;justify-content:space-between;align-items:center;padding:2rem;border-top:1px solid #ccc}.stepper-box .bottom.only-next[data-v-0cd2e8d8]{justify-content:flex-end}.stepper-box .bottom .stepper-button[data-v-0cd2e8d8]{padding:.5rem 1rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between}.stepper-box .bottom .stepper-button.next[data-v-0cd2e8d8]{background-color:#3383c8;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.stepper-box .bottom .stepper-button.next.deactivated[data-v-0cd2e8d8]{background-color:#ccc!important;cursor:not-allowed!important}.stepper-box .bottom .stepper-button.previous[data-v-0cd2e8d8]{color:#333}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(21);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,'@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v17/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format("woff2")}.material-icons[data-v-0cd2e8d8]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}',""]),e.exports=t},function(e,t,n){"use strict";var r=n(22);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,".repeater[data-v-4a9146e1]{margin-left:-18px;margin-right:-16px;margin-top:-20px}a[data-v-4a9146e1]{color:inherit!important}a.btn[data-v-4a9146e1]{color:#fff!important}.file-selected>div[data-v-4a9146e1]{margin-bottom:2rem}.file-upload label.btn[data-v-4a9146e1]{margin-bottom:0;margin-right:1rem}.file-upload .drop-active[data-v-4a9146e1]{top:0;bottom:0;right:0;left:0;position:fixed;z-index:9999;opacity:.6;text-align:center;background:#000}.file-upload .drop-active h3[data-v-4a9146e1]{margin:-.5em 0 0;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);font-size:40px;color:#fff;padding:0}",""]),e.exports=t},function(e,t,n){"use strict";(function(e){var t,r,i=n(0),o=n.n(i);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=A(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||d(e)||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 d(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}function g(e){var t=_();return function(){var n,r=A(e);if(t){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){var t="function"==typeof Map?new Map:void 0;return(k=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return w(e,arguments,A(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),C(r,e)})(e)}function w(e,t,n){return(w=_()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&C(i,n.prototype),i}).apply(null,arguments)}function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t=window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}),(r=t.fr=t.fr||{}).dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 sur %1","Align center":"Centrer","Align left":"Aligner à gauche","Align right":"Aligner à droite",Aquamarine:"Bleu vert",Big:"Grand",Black:"Noir","Block quote":"Citation",Blue:"Bleu","Blue marker":"Marqueur bleu",Bold:"Gras","Bulleted List":"Liste à puces",Cancel:"Annuler","Centered image":"Image centrée","Change image text alternative":"Changer le texte alternatif à l’image","Choose heading":"Choisir l'en-tête",Column:"Colonne","Decrease indent":"Diminuer le retrait",Default:"Par défaut","Delete column":"Supprimer la colonne","Delete row":"Supprimer la ligne","Dim grey":"Gris pâle","Document colors":"Couleurs du document",Downloadable:"Fichier téléchargeable","Dropdown toolbar":"Barre d'outils dans un menu déroulant","Edit link":"Modifier le lien","Editor toolbar":"Barre d'outils de l'éditeur","Enter image caption":"Saisir la légende de l’image","Font Background Color":"Couleur d'arrière-plan","Font Color":"Couleur de police","Font Family":"Police","Font Size":"Taille de police","Full size image":"Image taille réelle",Green:"Vert","Green marker":"Marqueur vert","Green pen":"Crayon vert",Grey:"Gris","Header column":"Colonne d'entête","Header row":"Ligne d'entête",Heading:"En-tête","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4","Heading 5":"Titre 5","Heading 6":"Titre 6",Highlight:"Surlignage","Horizontal line":"Ligne horizontale",Huge:"Enorme","Image resize list":"Liste des tailles d'images","Image toolbar":"Barre d'outils des images","image widget":"Objet image","Increase indent":"Augmenter le retrait",Insert:"Insérer","Insert column left":"Insérer une colonne à gauche","Insert column right":"Insérer une colonne à droite","Insert image":"Insérer une image","Insert image via URL":"Insérer une image à partir d'une URL","Insert media":"Insérer un média","Insert paragraph after block":"Insérer du texte après ce bloc","Insert paragraph before block":"Insérer du texte avant ce bloc","Insert row above":"Insérer une ligne au-dessus","Insert row below":"Insérer une ligne en-dessous","Insert table":"Insérer un tableau",Italic:"Italique",Justify:"Justifier","Left aligned image":"Image alignée à gauche","Light blue":"Bleu clair","Light green":"Vert clair","Light grey":"Gris clair",Link:"Lien","Link image":"Lien d'image","Link URL":"URL du lien","Media toolbar":"Barre d'outils des médias","Media URL":"URL de média","media widget":"widget média","Merge cell down":"Fusionner la cellule en-dessous","Merge cell left":"Fusionner la cellule à gauche","Merge cell right":"Fusionner la cellule à droite","Merge cell up":"Fusionner la cellule au-dessus","Merge cells":"Fusionner les cellules",Next:"Suivant","Numbered List":"Liste numérotée","Open in a new tab":"Ouvrir dans un nouvel onglet","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Orange:"Orange",Original:"Taille originale",Paragraph:"Paragraphe","Paste the image source URL.":"Collez l'URL de l'image à insérer","Paste the media URL in the input.":"Coller l'URL du média","Pink marker":"Marqueur rose",Previous:"Précedent",Purple:"Violet",Red:"Rouge","Red pen":"Crayon rouge",Redo:"Restaurer","Remove color":"Enlever la couleur","Remove Format":"Enlever le format","Remove highlight":"Enlever le surlignage","Resize image":"Redimensionner l'image","Resize image to %0":"Redimensionner à %0","Resize image to the original size":"Appliquer les dimensions d'origine","Rich Text Editor":"Éditeur de texte enrichi","Rich Text Editor, %0":"Éditeur de texte enrichi, %0","Right aligned image":"Image alignée à droite",Row:"Ligne",Save:"Enregistrer","Select all":"Sélectionner tout","Select column":"Sélectionner la colonne","Select row":"Sélectionner la ligne","Show more items":"Montrer plus d'éléments","Side image":"Image latérale",Small:"Petit","Split cell horizontally":"Scinder la cellule horizontalement","Split cell vertically":"Scinder la cellule verticalement","Table toolbar":"Barre d'outils des tableaux","Text alignment":"Alignement du texte","Text alignment toolbar":"Barre d'outils d'alignement du texte","Text alternative":"Texte alternatif","Text highlight toolbar":"Barre d'outils du surlignage","The URL must not be empty.":"L'URL ne doit pas être vide.","This link has no URL":"Ce lien n'a pas d'URL","This media URL is not supported.":"Cette URL de média n'est pas supportée.",Tiny:"Minuscule","Tip: Paste the URL into the content to embed faster.":"Astuce : Copier l'URL du média dans le contenu pour l'insérer plus rapidement",Turquoise:"Turquoise",Underline:"Souligné",Undo:"Annuler",Unlink:"Supprimer le lien",Update:"Modifier","Update image URL":"Modifier l'URL de l'image","Upload failed":"Échec de l'envoi","Upload in progress":"Téléchargement en cours",White:"Blanc","Widget toolbar":"Barre d'outils du widget",Yellow:"Jaune","Yellow marker":"Marqueur jaune"}),r.getPluralForm=function(e){return e>1},function(t,r){"object"==("undefined"==typeof exports?"undefined":x(exports))&&"object"==x(e)?e.exports=r():"function"==typeof define&&n(185)?define([],r):"object"==("undefined"==typeof exports?"undefined":x(exports))?exports.ClassicEditor=r():t.ClassicEditor=r()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==x(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=119)}([function(e,t,n){n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}));var r=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,"".concat(e).concat(i?" "+JSON.stringify(i):"").concat(a(e)))).name="CKEditorError",o.context=r,o.data=i,o}return m(n,[{key:"is",value:function(e){return"CKEditorError"===e}}],[{key:"rethrowUnexpectedError",value:function(e,t){if(e.is&&e.is("CKEditorError"))throw e;var r=new n(e.message,t);throw r.stack=e.stack,r}}]),n}(k(Error));function i(e,t){var n;(n=console).warn.apply(n,u(s(e,t)))}function o(e,t){var n;(n=console).error.apply(n,u(s(e,t)))}function a(e){return"\nRead more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-"+e}function s(e,t){var n=a(e);return t?[e,t,n]:[e,n]}},function(e,t,n){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),c=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(c).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],c=t.base?s[0]+t.base:s[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=a(u),f={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(o[d].references++,o[d].updater(f)):o.push({identifier:u,updater:m(f,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function f(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,p=0;function m(e,t){var n,r,i;if(t.singleton){var o=p++;n=h||(h=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var c=s(e,t),l=0;l<n.length;l++){var u=a(n[l]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=c}}}},,function(e,t,n){var r=n(9),i="object"==("undefined"==typeof self?"undefined":x(self))&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();t.a=o},function(e,t,n){(function(e){var r=n(4),i=n(14),o="object"==("undefined"==typeof exports?"undefined":x(exports))&&exports&&!exports.nodeType&&exports,a=o&&"object"==x(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.a.Buffer:void 0,c=(s?s.isBuffer:void 0)||i.a;t.a=c}).call(this,n(11)(e))},function(e,t,n){(function(e){var r=n(9),i="object"==("undefined"==typeof exports?"undefined":x(exports))&&exports&&!exports.nodeType&&exports,o=i&&"object"==x(e)&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.a.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();t.a=s}).call(this,n(11)(e))},function(e,t,n){(function(e){var t=n(0),r="object"==("undefined"==typeof window?"undefined":x(window))?window:e;if(r.CKEDITOR_VERSION)throw new t.a("ckeditor-duplicated-modules",null);r.CKEDITOR_VERSION="23.1.0"}).call(this,n(12))},function(e,t,n){var r=n(2),i=n(72);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){(function(e){var n="object"==x(e)&&e&&e.Object===Object&&e;t.a=n}).call(this,n(12))},function(e,t,n){(function(e){var r=n(4),i="object"==("undefined"==typeof exports?"undefined":x(exports))&&exports&&!exports.nodeType&&exports,o=i&&"object"==x(e)&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.a.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(11)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==("undefined"==typeof window?"undefined":x(window))&&(n=window)}e.exports=n},function(e,t,n){var r=n(2),i=n(53);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){t.a=function(){return!1}},function(e,t,n){var r=n(2),i=n(16);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-placeholder:before,.ck .ck-placeholder:before{content:attr(data-placeholder);pointer-events:none}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-placeholder:before,.ck .ck-placeholder:before{cursor:text;color:var(--ck-color-engine-placeholder-text)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-engine/theme/placeholder.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAQC,qDACC,8BAA+B,CAG/B,mBACD,CAKA,wCACC,YACD,CCbA,qDACC,WAAY,CACZ,6CACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\t&::before {\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(18);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999);--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#5c5c5c;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-color-link-fake-selection:rgba(31,177,255,0.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,iDAGC,qBAAsB,CACtB,UAAW,CACX,WAAY,CACZ,eACD,CCPA,MACC,gBAAiB,CACjB,4CAA+C,CCD/C,kCAAmD,CACnD,+BAAoD,CACpD,8BAAgD,CAChD,8BAAmD,CACnD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAmD,CACnD,oCAAuD,CACvD,6BAAkD,CAIlD,+CAAwD,CACxD,qEAA+E,CAC/E,qCAAwD,CACxD,sDAA8D,CAC9D,iDAAyD,CACzD,yCAAqD,CACrD,uCAAsD,CACtD,6CAA0D,CAC1D,uCAAsD,CAItD,gDAAuD,CACvD,kDAA+D,CAC/D,mDAAgE,CAChE,+CAA6D,CAC7D,yDAA8D,CAE9D,uCAAuD,CACvD,6CAA4D,CAC5D,8CAA4D,CAC5D,0CAAyD,CACzD,gDAA8D,CAE9D,+DAAsE,CACtE,iDAAkE,CAClE,kDAAkE,CAClE,8CAA+D,CAC/D,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA4D,CAC5D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAmE,CACnE,yEAA8E,CAC9E,qDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,+BAAiD,CACjD,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,wCAAwD,CACxD,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,gEAAuE,CACvE,4EAAiF,CACjF,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,wDAAmE,CACnE,mDAAgE,CCpGhE,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCLFD,CKQA,iDAIC,QAAS,CACT,SAAU,CACV,QAAS,CACT,sBAAuB,CACvB,oBAAqB,CACrB,qBAAsB,CACtB,eAAgB,CAGhB,oBACD,CAKA,oCAGC,wBAAyB,CACzB,iGAAkG,CAClG,0BAA2B,CAC3B,eAAgB,CAChB,kBAAmB,CACnB,WAAY,CACZ,UACD,CAGC,2BACC,gBACD,CAEA,wBAEC,sBACD,CAEA,0BACC,oBACD,CAEA,kGAGC,WACD,CAEA,gIAGC,cACD,CAEA,0BACC,YAAa,CACb,yBACD,CAEA,0CAEC,SAAU,CACV,QACD,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(0, 0%, 77%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 44%, 48%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(208, 88%, 52%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(208, 88%, 47%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t208, 79%, 51%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(207, 89%, 86%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 90%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 85%);\n\t--ck-color-button-default-active-shadow: \t\t\t\t\thsl(0, 0%, 75%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(0, 0%, 87%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(0, 0%, 77%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(0, 0%, 73%);\n\t--ck-color-button-on-active-shadow: \t\t\t\t\t\thsl(0, 0%, 63%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(0, 0%, 87%);\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 44%, 43%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 44%, 41%);\n\t--ck-color-button-action-active-shadow: \t\t\t\t\thsl(104, 44%, 36%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 69%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 64%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 44%, 43%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\thsl(0, 0%, 78%);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\thsl(0, 0%, 78%);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 36%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-base-active);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-base-active-focus);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-foreground);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck.ck-reset_all {\n\t& .ck-rtl * {\n\t\ttext-align: right;\n\t}\n\n\t& iframe {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea,\n\t& input[type="text"],\n\t& input[type="password"] {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled],\n\t& input[type="text"][disabled],\n\t& input[type="password"][disabled] {\n\t\tcursor: default;\n\t}\n\n\t& fieldset {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(20);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEERA,YAAa,CACb,2BAA2B,CCF3B,qCHYA,CAGD,+BACC,aAAc,CACd,oCAAqC,CACrC,4BAwBD,CAtBC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CACC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,mDACD,CAIA,gEACC,gDACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-base-foreground);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-base-foreground);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(22);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(24);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDACC,yBAA0B,CAC1B,cAAe,CACf,KACD,CAEA,kEACC,QAAS,CACT,iBACD,CCPA,qDCCA,oCAA8B,CDE7B,sBAAuB,CACvB,wBAAyB,CACzB,yBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(26);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAOA,gBACC,oBAAqB,CACrB,iBAyDD,CAvDC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UAOD,CCcA,iEACC,YACD,CDdA,oCAGC,kCAAmC,CAEnC,YAAa,CACb,yBAA0B,CAE1B,iBA8BD,CA5BC,+DACC,oBACD,CAEA,oHAEC,WACD,CAEA,oHAMC,QAAS,CACT,WACD,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAQF,mCACC,mCACD,CEhEA,MACC,sDACD,CAEA,gBAEC,iBAiED,CA/DC,oCACC,mCACD,CAGC,8CACC,gCAAiC,CAGjC,sCACD,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEACC,SAAU,CACV,eAAgB,CAChB,sBACD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAIF,uBExEC,eFoGD,CA5BA,qFEpEE,qCFgGF,CA5BA,uBG1EC,oCAA8B,CH8E9B,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CAGT,cAmBD,CAfC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"../tooltip/mixins/_tooltip.css\";\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\n\t\t/* Disable main button's tooltip when the dropdown is open. Otherwise the panel may\n\t\tpartially cover the tooltip */\n\t\t&.ck-on {\n\t\t\t@mixin ck-tooltip_disabled;\n\t\t}\n\t}\n\n\t& .ck-dropdown__panel {\n\t\t/* This is to get rid of flickering when the tooltip is shown under the panel,\n\t\twhich looks like the panel moves vertically a pixel down and up. */\n\t\t-webkit-backface-visibility: hidden;\n\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(28);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YACC,yBAA0B,CAC1B,0BAA2B,CAG3B,uBAAwB,CAQxB,qBAcD,CAZC,0BARA,aAAc,CAGd,cAgBA,CAJC,yBAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\tcolor: inherit;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\n\t\t/* Allows dynamic coloring of the icons. */\n\t\tcolor: inherit;\n\n\t\t&:not([fill]) {\n\t\t\t/* Needed by FF. */\n\t\t\tfill: currentColor;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(30);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,'.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s,.ck.ck-tooltip.ck-tooltip_sw{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{top:calc(var(--ck-tooltip-arrow-size)*-1 + 1px);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_sw{right:50%;left:auto}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text{left:auto;right:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{left:auto;right:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,sDAEC,iBAAkB,CAGlB,mBAAoB,CAIpB,kCACD,CAEA,eAEC,iBAAkB,CAClB,SAAU,CACV,YAAa,CACb,yBAWD,CATC,iCACC,oBAOD,CALC,uCACC,UAAW,CACX,OAAQ,CACR,QACD,CCxBF,MACC,2BACD,CAEA,eACC,QAAS,CAMT,KAAM,CAON,sCA6FD,CA3FC,iCChBA,eDqCA,CArBA,yGCZC,qCDiCD,CArBA,iCAGC,cAAe,CACf,eAAgB,CAChB,kCAAmC,CACnC,wDAAyD,CACzD,6CAA8C,CAC9C,iBAAkB,CAClB,SAYD,CAVC,uCAMC,sCAAuC,CACvC,kBAAmB,CACnB,QACD,CAYD,yDAEC,4CAA+C,CAC/C,0BASD,CAPC,yGAEC,+CAAkD,CAClD,0BAA6B,CAC7B,6BAAoF,CAApF,sDAAoF,CAApF,8BAAoF,CAApF,4BAAoF,CACpF,8CAAsG,CAAtG,gDAAsG,CAAtG,+CAAsG,CAAtG,kBACD,CAaD,6BACC,SAAU,CACV,SAWD,CATC,+CACC,SAAU,CACV,2CACD,CAEA,qDACC,SAAU,CACV,OACD,CAYD,4BACC,yCAA4C,CAC5C,2BAQD,CANC,oDACC,4CAA+C,CAC/C,0BAA6B,CAC7B,6BAAoF,CAApF,+BAAoF,CAApF,8BAAoF,CAApF,mDAAoF,CACpF,8CAAsG,CAAtG,qBAAsG,CAAtG,+CAAsG,CAAtG,6CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-tooltip,\n.ck.ck-tooltip .ck-tooltip__text::after {\n\tposition: absolute;\n\n\t/* Without this, hovering the tooltip could keep it visible. */\n\tpointer-events: none;\n\n\t/* This is to get rid of flickering when transitioning opacity in Chrome.\n\tIt\'s weird but it works. */\n\t-webkit-backface-visibility: hidden;\n}\n\n.ck.ck-tooltip {\n\t/* Tooltip is hidden by default. */\n\tvisibility: hidden;\n\topacity: 0;\n\tdisplay: none;\n\tz-index: var(--ck-z-modal);\n\n\t& .ck-tooltip__text {\n\t\tdisplay: inline-block;\n\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-tooltip-arrow-size: 5px;\n}\n\n.ck.ck-tooltip {\n\tleft: 50%;\n\n\t/*\n\t * Prevent blurry tooltips in LoDPI environments.\n\t * See https://github.com/ckeditor/ckeditor5/issues/1802.\n\t */\n\ttop: 0;\n\n\t/*\n\t * For the transition to work, the tooltip must be controlled\n\t * using visibility+opacity. A delay prevents a "tooltip avalanche"\n\t * i.e. when scanning the toolbar with mouse cursor.\n\t */\n\ttransition: opacity .2s ease-in-out .2s;\n\n\t& .ck-tooltip__text {\n\t\t@mixin ck-rounded-corners;\n\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\tbackground: var(--ck-color-tooltip-background);\n\t\tposition: relative;\n\t\tleft: -50%;\n\n\t\t&::after {\n\t\t\t/*\n\t\t\t * For the transition to work, the tooltip must be controlled\n\t\t\t * using visibility+opacity. A delay prevents a "tooltip avalanche"\n\t\t\t * i.e. when scanning the toolbar with mouse cursor.\n\t\t\t */\n\t\t\ttransition: opacity .2s ease-in-out .2s;\n\t\t\tborder-style: solid;\n\t\t\tleft: 50%;\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip south of the element.\n\t *\n\t * [element]\n\t * ^\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t */\n\t&.ck-tooltip_s,\n\t&.ck-tooltip_sw {\n\t\tbottom: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\ttransform: translateY( 100% );\n\n\t\t& .ck-tooltip__text::after {\n\t\t\t/* 1px addresses gliches in rendering causing gap between the triangle and the text */\n\t\t\ttop: calc(-1 * var(--ck-tooltip-arrow-size) + 1px);\n\t\t\ttransform: translateX( -50% );\n\t\t\tborder-color: transparent transparent var(--ck-color-tooltip-background) transparent;\n\t\t\tborder-width: 0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip south-west of the element.\n\t *\n\t * [element]\n\t * ^\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t */\n\n\t&.ck-tooltip_sw {\n\t\tright: 50%;\n\t\tleft: auto;\n\n\t\t& .ck-tooltip__text {\n\t\t\tleft: auto;\n\t\t\tright: calc( -2 * var(--ck-tooltip-arrow-size));\n\t\t}\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tleft: auto;\n\t\t\tright: 0;\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip north of the element.\n\t *\n\t * +-----------+\n\t * | Tooltip |\n\t * +-----------+\n\t * V\n\t * [element]\n\t */\n\t&.ck-tooltip_n {\n\t\ttop: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\ttransform: translateY( -100% );\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tbottom: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\t\ttransform: translateX( -50% );\n\t\t\tborder-color: var(--ck-color-tooltip-background) transparent transparent transparent;\n\t\t\tborder-width: var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(32);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(var(--ck-spacing-small)*-1);margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BCCC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6BD,CE/BC,qDACC,aAqBD,CAHC,oBAnBD,qDAoBE,YAEF,CADC,CFvBF,6BAKC,iBAAkB,CAClB,mBAAoB,CACpB,kBAAmB,CACnB,oBAyBD,CAvBC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEkBA,iEACC,kBAAmB,CACnB,SACD,CAbA,yFACC,YACD,CC7BD,6BCAC,oDD0ID,CCvIE,6EACC,0DACD,CAEA,+EACC,2DAA4C,CAC5C,uEACD,CAID,qDACC,6DACD,CDhBD,6BEDC,eF2ID,CA1IA,wIEGE,qCFuIF,CA1IA,6BAKC,kBAAmB,CACnB,cAAe,CACf,qBAAsB,CACtB,8BAA+B,CAC/B,iBAAkB,CAGlB,2CAA4C,CAC5C,4CAA6C,CAI7C,aAAc,CAGd,iBAAkB,CAGlB,4BAA6B,CAG7B,4DAA8D,CAG9D,uBA6GD,CA3GC,oFGjCA,YAAa,CACb,2BAA2B,CCF3B,2CJsCA,CAIC,kJAEC,aACD,CAGD,iEAEC,iBAAkB,CAClB,mBAAoB,CACpB,aAAc,CACd,cAAe,CAIf,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAEA,uFK3FD,kCL6FC,CAGA,yFKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAOE,6CAAgD,CAChD,mCAEF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDiIA,CC9HC,yFACC,qDACD,CAEA,2FACC,sDAA4C,CAC5C,kEACD,CAID,iEACC,wDACD,CDmHA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC7IC,mDDkJD,CC/IE,2FACC,yDACD,CAEA,6FACC,0DAA4C,CAC5C,sEACD,CAID,mEACC,4DACD,CD6HD,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n@import "../tooltip/mixins/_tooltip.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\t@mixin ck-tooltip_enabled;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n\n\t&:hover {\n\t\t@mixin ck-tooltip_visible;\n\t}\n\n\t/* Get rid of the native focus outline around the tooltip when focused (but not :hover). */\n\t&:focus:not(:hover) {\n\t\t@mixin ck-tooltip_disabled;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t\tbox-shadow: inset 0 2px 2px var($(prefix)-active-shadow);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(34);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YCEC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAgB,CDFhB,YAAa,CACb,qBAcD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAGC,oBAAqB,CACrB,0CACD,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BACC,gBAAiB,CACjB,UAAW,CACX,eAAgB,CAChB,eAAgB,CAKhB,mIAiCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,2DACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,uBACC,UAAW,CACX,UAAW,CACX,sCACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(36);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - var(--ck-switch-button-toggle-spacing)*2)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*0.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var(--ck-switch-button-translation)*-1))}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,mDAAoD,CACpD,qCAAsC,CACtC,gKAKD,CAGC,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDC3BA,eDoEA,CAzCA,yICvBC,qCDgED,CAzCA,2DAKE,gBAoCF,CAzCA,2DAUE,iBA+BF,CAzCA,iDAcC,8BAAiC,CAEjC,0CAA2C,CAC3C,uDAwBD,CAtBC,2EC9CD,eD2DC,CAbA,6LC1CA,qCAAsC,CD4CpC,+CAWF,CAbA,2EAMC,6CAA8C,CAC9C,+CAAgD,CAChD,gDAAiD,CACjD,yDAA0D,CAG1D,uBACD,CAEA,uDACC,6DAKD,CAHC,iFACC,+DACD,CAIF,6DExEA,kCF0EA,CAEA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,yDAMF,CAXA,2FASE,kEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating–point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: 1.0769230769em;\n\t--ck-switch-button-toggle-spacing: 1px;\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2 * var(--ck-switch-button-toggle-spacing)\n\t);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease;\n\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\t/* Leave some tiny bit of space around the inner part of the switch */\n\t\t\tmargin: var(--ck-switch-button-toggle-spacing);\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t&.ck-on .ck-button__toggle {\n\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t}\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t/*\n\t\t\t * Move the toggle switch to the right. It will be animated.\n\t\t\t */\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(38);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-toolbar-dropdown .ck.ck-toolbar .ck.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAMC,6DACC,gBACD,CAGC,6DACC,qCACD,CCRF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown {\n\t& .ck.ck-toolbar .ck.ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& .ck-dropdown__panel .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(40);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDIpC,wBAAyB,CACzB,2BAA4B,CAC5B,4BAEF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(42);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items>*{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>*,.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eCEC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAgB,CDFhB,YAAa,CACb,oBAAqB,CACrB,kBAyCD,CAvCC,kCACC,YAAa,CACb,kBAAmB,CACnB,kBAAmB,CACnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE3CF,eCGC,eD0FD,CA7FA,qECOE,qCDsFF,CA7FA,eAGC,6CAA8C,CAC9C,iCAAkC,CAClC,+CAwFD,CAtFC,yCACC,kBAAmB,CACnB,SAAU,CACV,aAAc,CACd,yCAA0C,CAM1C,kCAAmC,CACnC,qCACD,CAGC,oCAEC,kCAAmC,CACnC,qCAAsC,CAGtC,oCACD,CAIA,kEACC,YACD,CAGD,oFAGC,kCAAmC,CACnC,qCACD,CAEA,mCAEC,SAgBD,CAbC,0DAEC,UAAW,CAGX,QAAS,CAGT,eAAgB,CAGhB,QACD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAvFF,qCA2FE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JACC,wBAAyB,CACzB,2BACD,CAGA,2JACC,yBAA0B,CAC1B,4BACD,CAID,qGACC,mCACD,CAGA,yLACC,mCACD,CAWA,qHACC,cACD,CAIC,6JACC,yBAA0B,CAC1B,4BACD,CAGA,2JACC,wBAAyB,CACzB,2BACD,CAID,qGACC,oCACD,CAGA,yLACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > * {\n\t\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\t\tmargin-top: var(--ck-spacing-small);\n\t\t\tmargin-bottom: var(--ck-spacing-small);\n\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *,\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so any border is pointless. */\n\t\t\tborder: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(44);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the <body>, etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(46);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAEC,eAAgB,CAGhB,mBAAoB,CACpB,kBAAmB,CAEnB,aAAc,CACd,cAAe,CACf,iBAAkB,CAClB,0BACD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/**\n * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(48);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#000}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{width:var(--ck-color-grid-tile-size);height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;border:0}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{display:none;color:var(--ck-color-color-grid-check-icon)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,qCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBACC,oCAAqC,CACrC,qCAAsC,CACtC,wCAAyC,CACzC,yCAA0C,CAC1C,SAAU,CACV,8BAA+B,CAC/B,QAmCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,4DACC,gDACD,CAEA,oCACC,YAAa,CACb,2CACD,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(0, 0%, 0%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-table__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(50);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck .ck-button.ck-color-table__remove-color{display:flex;align-items:center;width:100%}label.ck.ck-color-grid__label{font-weight:unset}.ck .ck-button.ck-color-table__remove-color{padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck .ck-button.ck-color-table__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-base-border)}[dir=ltr] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-font/theme/fontcolor.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-font/fontcolor.css"],names:[],mappings:"AAKA,4CACC,YAAa,CACb,kBAAmB,CACnB,UACD,CAEA,8BACC,iBACD,CCNA,4CACC,qEAAyE,CACzE,2BAA4B,CAC5B,4BAeD,CAbC,wDACC,mDACD,CAEA,kEAEE,uCAMF,CARA,kEAME,sCAEF",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-button.ck-color-table__remove-color {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 100%;\n}\n\nlabel.ck.ck-color-grid__label {\n\tfont-weight: unset;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck .ck-button.ck-color-table__remove-color {\n\tpadding: calc(var(--ck-spacing-standard) / 2 ) var(--ck-spacing-standard);\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n\n\t&:not(:focus) {\n\t\tborder-bottom: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(52);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-font/theme/fontsize.css"],names:[],mappings:"AAUC,uBACC,cACD,CAEA,wBACC,eACD,CAEA,sBACC,eACD,CAEA,uBACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */\n\n/* Styles should be prefixed with the `.ck-content` class.\nSee https://github.com/ckeditor/ckeditor5/issues/6636 */\n.ck-content {\n\t& .text-tiny {\n\t\tfont-size: .7em;\n\t}\n\n\t& .text-small {\n\t\tfont-size: .85em;\n\t}\n\n\t& .text-big {\n\t\tfont-size: 1.4em;\n\t}\n\n\t& .text-huge {\n\t\tfont-size: 1.8em;\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-heading/theme/heading.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(55);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,mBAEC,iBAUD,CARC,iDACC,qCACD,CC0BA,8DACC,YACD,CClCD,MACC,gDAAyD,CACzD,4CACD,CAMC,qDAGE,6BAA8B,CAC9B,gCAQF,CAZA,qDASE,4BAA6B,CAC7B,+BAEF,CAEA,0CAGC,eAmBD,CAtBA,oDCnBA,eDyCA,CAtBA,+ICfC,qCAAsC,CDuBpC,4BAA6B,CAC7B,+BAaH,CAtBA,oDAeE,6BAA8B,CAC9B,gCAMF,CAHC,8CACC,mCACD,CASA,0KACC,wDACD,CAGC,sKACC,2DACD,CAIA,sKACC,4DACD,CAMF,uCCpEA,eD8EA,CAVA,qHChEC,qCD0ED,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../tooltip/mixins/_tooltip.css";\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n\n\t/* Disable tooltips for the buttons when the button is "open" */\n\t&.ck-splitbutton_open > .ck-button {\n\t\t@mixin ck-tooltip_disabled;\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t& > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: unset;\n\t\t\t\tborder-bottom-left-radius: unset;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled) {\n\t\t\t\tborder-left-color: var(--ck-color-split-button-hover-border);\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled) {\n\t\t\t\tborder-right-color: var(--ck-color-split-button-hover-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(57);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,":root{--ck-highlight-marker-yellow:#fdfd77;--ck-highlight-marker-green:#62f962;--ck-highlight-marker-pink:#fc7899;--ck-highlight-marker-blue:#72ccfd;--ck-highlight-pen-red:#e71313;--ck-highlight-pen-green:#128a00}.ck-content .marker-yellow{background-color:var(--ck-highlight-marker-yellow)}.ck-content .marker-green{background-color:var(--ck-highlight-marker-green)}.ck-content .marker-pink{background-color:var(--ck-highlight-marker-pink)}.ck-content .marker-blue{background-color:var(--ck-highlight-marker-blue)}.ck-content .pen-red{color:var(--ck-highlight-pen-red);background-color:transparent}.ck-content .pen-green{color:var(--ck-highlight-pen-green);background-color:transparent}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-highlight/theme/highlight.css"],names:[],mappings:"AAKA,MACC,oCAA+C,CAC/C,mCAA+C,CAC/C,kCAA8C,CAC9C,kCAA8C,CAC9C,8BAAwC,CACxC,gCACD,CAGC,2BACC,kDACD,CAFA,0BACC,iDACD,CAFA,yBACC,gDACD,CAFA,yBACC,gDACD,CAIA,qBACC,iCAAqC,CAGrC,4BACD,CALA,uBACC,mCAAqC,CAGrC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n@define-mixin highlight-marker-color $color {\n\t.ck-content .marker-$color {\n\t\tbackground-color: var(--ck-highlight-marker-$color);\n\t}\n}\n\n@define-mixin highlight-pen-color $color {\n\t.ck-content .pen-$color {\n\t\tcolor: var(--ck-highlight-pen-$color);\n\n\t\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\t\tbackground-color: transparent;\n\t}\n}\n\n@mixin highlight-marker-color yellow;\n@mixin highlight-marker-color green;\n@mixin highlight-marker-color pink;\n@mixin highlight-marker-color blue;\n\n@mixin highlight-pen-color red;\n@mixin highlight-pen-color green;\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(59);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border);filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCJC,eD4ID,CAxIA,iFCAE,qCDwIF,CAxIA,qBENC,oCAA8B,CFU9B,eAAgB,CAEhB,2CAA4C,CAC5C,6CAiID,CA9HE,+GAEC,OAAQ,CACR,QAAS,CACT,kBACD,CAIA,uFAEC,oDAAoH,CAApH,kDAAoH,CAApH,qDAAoH,CAApH,kBACD,CAEA,4CACC,gDACD,CAEA,uFAHC,6BAA8E,CAA9E,8BAA8E,CAA9E,4BAMD,CAHA,2CACC,oDAAkF,CAClF,yCACD,CAIA,uFAEC,oDAAoH,CAApH,qBAAoH,CAApH,qDAAoH,CAApH,+CACD,CAEA,4CACC,6CAAkE,CAClE,uDACD,CAEA,uFAJC,6BAAkE,CAAlE,+BAAkE,CAAlE,8BAOD,CAHA,2CACC,iDAAkF,CAClF,4CACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,8CACD,CAIA,2GAEC,+CAAkD,CAClD,8CACD,CAIA,2GAEC,gDAAmD,CACnD,8CACD,CAIA,6GAEC,SAAU,CACV,uDAA0D,CAC1D,8CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,8CACD,CAIA,6GAEC,SAAU,CACV,uDAA0D,CAC1D,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: var(--ck-balloon-arrow-offset);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: var(--ck-balloon-arrow-offset);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(61);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{margin:15px 0;height:4px;background:#dedede;border:0}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-horizontal-line/theme/horizontalline.css"],names:[],mappings:"AAMA,yCAEC,iBACD,CAEA,eACC,aAAc,CACd,UAAW,CACX,kBAA2B,CAC3B,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n\n.ck-editor__editable .ck-horizontal-line {\n\t/* Necessary to render properly next to floated objects, e.g. side image case. */\n\tdisplay: flow-root;\n}\n\n.ck-content hr {\n\tmargin: 15px 0;\n\theight: 4px;\n\tbackground: hsl(0, 0%, 87%);\n\tborder: 0;\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(63);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,'.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(var(--ck-widget-outline-thickness)*-0.5);left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-0.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-widget/theme/widgettypearound.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CACd,iBAAkB,CAClB,eAAgB,CAChB,2BAwBD,CAtBC,mDACC,iBAAkB,CAClB,OAAQ,CACR,QAAS,CACT,qCACD,CAEA,qFAEC,iDAAoD,CACpD,kBAAoB,CAEpB,0BACD,CAEA,oFAEC,oDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CACd,iBAAkB,CAClB,OAAQ,CACR,QAAS,CACT,qCACD,CAMD,2EACC,YAAa,CACb,iBAAkB,CAClB,MAAO,CACP,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHACC,qDAA0D,CAC1D,aACD,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CACC,8CAA+C,CAC/C,+CAAgD,CAChD,oDAAqD,CACrD,mBAAoB,CACpB,uMAAyM,CAb1M,SAAU,CACV,mBA0DA,CA1CC,mDACC,UAAW,CACX,UAAW,CACX,8BAA+B,CAC/B,6BAA8B,CAC9B,cAgBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLACC,0DAA2D,CAC3D,2DAA4D,CAC5D,mBAAoB,CACpB,uEACD,CAOD,8GACC,gBACD,CAKA,mDACC,mBAAoB,CACpB,UAAW,CACX,mFAAoF,CAMpF,oCAAwC,CACxC,oCACD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CASE,0jBACC,SACD,CASF,mPACC,SACD,CAcC,iRAxLF,SAAU,CACV,mBAyLE,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(65);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-widget/theme/widget.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,sBAAuB,CACvB,6BAA8B,CAC9B,8BAA+B,CAG/B,yDAAiE,CAEjE,gCAAiC,CACjC,6CAAsD,CACtD,uCACD,CAOA,8DAEC,iBAuBD,CArBC,4EACC,iBAOD,CALC,qFAGC,aACD,CAWD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CACtD,0CAA2C,CAC3C,qDAAsD,CACtD,6CAA8C,CAC9C,kCAAmC,CACnC,aAAc,CACd,+BA4BD,CA1BC,gLAIC,iBACD,CAEA,0CACC,oCAAuC,CACvC,qCACD,CAEA,2CACC,oCAAuC,CACvC,sCACD,CAEA,8CACC,uCAA0C,CAC1C,sCACD,CAEA,6CACC,uCAA0C,CAC1C,qCACD,CC7ED,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eACC,gDAAiD,CACjD,mBAAoB,CACpB,yBAA0B,CAC1B,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGC/BA,YAAa,CACb,2BAA2B,CCF3B,qCAA8B,CFqC7B,iEACD,CAIA,4EACC,WAAY,CACZ,qBAAsB,CAGtB,4BAA6B,CAC7B,SAAU,CAMV,6SAG6F,CAG7F,iEAAkE,CAGlE,2BAA4B,CAC5B,mDAqBD,CAnBC,qFAEC,wCAAyC,CACzC,yCAA0C,CAC1C,oDASD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFACC,SAAU,CACV,oDACD,CAKC,oMACC,SAAU,CACV,6CAMD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-resizer-size: 10px;\n\t--ck-resizer-border-width: 1px;\n\t--ck-resizer-border-radius: 2px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget. */\n\t&:hover {\n\t\t& .ck-widget__selection-handle {\n\t\t\tvisibility: visible;\n\t\t}\n\t}\n\n\t/* Show the selection handle when the widget is selected. */\n\t&.ck-widget_selected .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: var(--ck-spacing-small);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var( --ck-resizer-tooltip-offset );\n\t\tleft: var( --ck-resizer-tooltip-offset );\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var( --ck-resizer-tooltip-offset );\n\t\tright: var( --ck-resizer-tooltip-offset );\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var( --ck-resizer-tooltip-offset );\n\t\tright: var( --ck-resizer-tooltip-offset );\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var( --ck-resizer-tooltip-offset );\n\t\tleft: var( --ck-resizer-tooltip-offset );\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget. */\n\t&:hover .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& .ck-widget__selection-handle,\n\t\t\t& .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(67);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view>.ck.ck-label{width:100%;text-overflow:ellipsis;overflow:hidden}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css"],names:[],mappings:"AAKA,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBACD,CAEA,+DACC,gCACD,CAEA,uCACC,UAAW,CACX,sBAAuB,CACvB,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view .ck-labeled-field-view__status {\n\tfont-size: var(--ck-font-size-small);\n\tmargin-top: var(--ck-spacing-small);\n\n\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\tThe status could be very long. */\n\twhite-space: normal;\n}\n\n.ck.ck-labeled-field-view .ck-labeled-field-view__status_error {\n\tcolor: var(--ck-color-base-error);\n}\n\n.ck.ck-labeled-field-view > .ck.ck-label {\n\twidth: 100%;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(69);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .2s ease-in-out,border .2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/inputtext/inputtext.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css"],names:[],mappings:"AASA,MACC,0BACD,CAEA,kBCFC,eDyCD,CAvCA,2ECEE,qCDqCF,CAvCA,kBEJC,qCAA8B,CFQ9B,2CAA4C,CAC5C,6CAA8C,CAC9C,6DAA8D,CAC9D,oCAAqC,CAGrC,4CAA6C,CAG7C,4DA0BD,CAxBC,wBGlBA,YAAa,CACb,2BAA2B,CDF3B,8DFsBA,CAEA,4BACC,sDAAuD,CACvD,oDAAqD,CACrD,yCAMD,CAJC,kCE7BD,uEFgCC,CAGD,2BACC,+CAAgD,CAChD,2CAKD,CAHC,iCEvCD,oEFyCC,CAIF,+BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-text-width: 18em;\n}\n\n.ck.ck-input-text {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-text-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow), var(--ck-inner-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow), var(--ck-inner-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-text-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow), var(--ck-inner-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-text-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(71);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/textalternativeform.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,'.ck-vertical-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-standard)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-text-width)*0.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after,[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAOA,mCACC,UAAW,CACX,OAAQ,CACR,iBAAkB,CAClB,UAAW,CACX,2BAA4B,CAC5B,8BAA+B,CAC/B,SACD,CCTC,oCDaC,wCACC,UAAW,CACX,OAAQ,CACR,iBAAkB,CAClB,UAAW,CACX,2BAA4B,CAC5B,8BAA+B,CAC/B,SACD,CCnBD,CCAD,qDACC,kDACD,CAEA,uBACC,kCAkED,CAhEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,0CA6CF,CA3CE,8CACC,8DAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAID,iGAEC,kCAAmC,CACnC,qCAAsC,CAEtC,eAAgB,CAChB,QAAS,CACT,gDAaD,CApBA,0OAcE,aAMF,CAGC,yMACC,kDACD,CDpEF",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button::after {\n\tcontent: "";\n\twidth: 0;\n\tposition: absolute;\n\tright: -1px;\n\ttop: var(--ck-spacing-small);\n\tbottom: var(--ck-spacing-small);\n\tz-index: 1;\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button::after {\n\t\t\tcontent: "";\n\t\t\twidth: 0;\n\t\t\tposition: absolute;\n\t\t\tright: -1px;\n\t\t\ttop: var(--ck-spacing-small);\n\t\t\tbottom: var(--ck-spacing-small);\n\t\t\tz-index: 1;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-standard);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-text-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\tborder-radius: 0;\n\t\t\tborder: 0;\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(74);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCACC,oCAAqC,CACrC,kCAAmC,CACnC,qCACD,CAGA,iEACC,uCAAwC,CAGxC,mCACD,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(76);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBCJC,oCAA8B,CDO9B,eAAgB,CAEhB,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CAEtC,UAAW,CACX,WACD,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(78);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:50px}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/image.css"],names:[],mappings:"AAKA,mBACC,aAAc,CACd,UAAW,CACX,iBAAkB,CAGlB,eAeD,CAbC,uBAEC,aAAc,CAGd,aAAc,CAGd,cAAe,CAGf,cACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .image {\n\tdisplay: table;\n\tclear: both;\n\ttext-align: center;\n\n\t/* Make sure there is some space between the content and the image. Center image by default. */\n\tmargin: 1em auto;\n\n\t& img {\n\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\tdisplay: block;\n\n\t\t/* Center the image if its width is smaller than the content's width. */\n\t\tmargin: 0 auto;\n\n\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\tmax-width: 100%;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(80);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,8BACC,qBAAsB,CACtB,mBAAoB,CACpB,qBAAsB,CACtB,UAAsB,CACtB,wBAAiC,CACjC,YAAa,CACb,eAAgB,CAChB,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: hsl(0, 0%, 20%);\n\tbackground-color: hsl(0, 0%, 97%);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(82);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageuploadprogress.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAKA,+BACC,iBACD,CAGA,gDACC,iBAAkB,CAClB,KAAM,CACN,MACD,CCPC,yCACC,oBACD,CAID,gDACC,UAAW,CACX,OAAQ,CACR,gDAAiD,CACjD,oBACD,CAEA,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable .image {\n\tposition: relative;\n}\n\n/* Upload progress bar. */\n.ck.ck-editor__editable .image .ck-progress-bar {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable .image {\n\t/* Showing animation. */\n\t&.ck-appear {\n\t\tanimation: fadeIn 700ms;\n\t}\n}\n\n/* Upload progress bar. */\n.ck.ck-editor__editable .image .ck-progress-bar {\n\theight: 2px;\n\twidth: 0;\n\tbackground: var(--ck-color-upload-bar-background);\n\ttransition: width 100ms;\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(84);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,'.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageuploadicon.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BACC,aAAc,CACd,iBAAkB,CAClB,QAAS,CACT,UAAW,CACX,iBAMD,CAJC,qCACC,UAAW,CACX,iBACD,CCVD,MACC,iCAA8C,CAC9C,+CAA4D,CAE5D,gCAAiC,CACjC,gCACD,CAEA,+BACC,sCAAuC,CACvC,uCAAwC,CACxC,SAAU,CACV,uDAAwD,CACxD,wEAA0E,CAC1E,qCAAuC,CACvC,0BAAgC,CAGhC,0CAA2C,CAG3C,sBAyBD,CAtBC,qCAEC,QAAS,CAET,OAAQ,CACR,SAAU,CACV,QAAS,CACT,OAAQ,CAER,mCAAoC,CACpC,yBAA0B,CAC1B,oFAAqF,CACrF,sFAAuF,CAEvF,4CAA6C,CAC7C,sBAAyB,CACzB,mBAAsB,CACtB,4BAA6B,CAG7B,qBACD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GACC,SAAU,CACV,OAAQ,CACR,QACD,CACA,IACC,UAAY,CACZ,QACD,CACA,GACC,SAAU,CACV,UAAY,CACZ,YACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\ttop: 10px;\n\tright: 10px;\n\tborder-radius: 50%;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t--ck-image-upload-icon-size: 20px;\n\t--ck-image-upload-icon-width: 2px;\n}\n\n.ck-image-upload-complete-icon {\n\twidth: var(--ck-image-upload-icon-size);\n\theight: var(--ck-image-upload-icon-size);\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: var(--ck-image-upload-icon-size);\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(86);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,'.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageuploadloader.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCACC,iBAAkB,CAClB,YAAa,CACb,kBAAmB,CACnB,sBAAuB,CACvB,KAAM,CACN,MAMD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCACD,CAEA,iCAEC,UAAW,CACX,QACD,CAEA,kCACC,UAAW,CACX,WAUD,CARC,yCACC,8CAA+C,CAC/C,+CAAgD,CAChD,iBAAkB,CAClB,8DAA+D,CAC/D,kCAAmC,CACnC,yDACD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(88);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-image-insert-form:focus{outline:none}.ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageinsertformrowview.css"],names:[],mappings:"AAMC,+BAEC,YACD,CAGD,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAmBD,CAhBC,iCACC,WACD,CAEA,kDACC,qCAUD,CARC,sIAEC,sBACD,CAEA,+EACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-form {\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n}\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-image-insert-form__action-row {\n\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(90);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-image-insert__panel{padding:var(--ck-spacing-standard)}.ck.ck-image-insert__ck-finder-button{display:block;width:100%;margin:var(--ck-spacing-standard) auto;border:1px solid #ccc;border-radius:var(--ck-border-radius)}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{padding:0;margin:0;border:none}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageinsert.css"],names:[],mappings:"AAKA,2BACC,kCACD,CAEA,sCACC,aAAc,CACd,UAAW,CACX,sCAAuC,CACvC,qBAAiC,CACjC,qCACD,CAGA,oDACC,SAAU,CACV,QAAS,CACT,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert__panel {\n\tpadding: var(--ck-spacing-standard);\n}\n\n.ck.ck-image-insert__ck-finder-button {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin: var(--ck-spacing-standard) auto;\n\tborder: 1px solid hsl(0, 0%, 80%);\n\tborder-radius: var(--ck-border-radius);\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/7986 */\n.ck.ck-splitbutton > .ck-file-dialog-button.ck-button {\n\tpadding: 0;\n\tmargin: 0;\n\tborder: none;\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(92);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;position:absolute;pointer-events:none;left:0;top:0;outline:1px solid var(--ck-color-resizer)}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{position:absolute;pointer-events:all;width:var(--ck-resizer-size);height:var(--ck-resizer-size);background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{top:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nesw-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nesw-resize}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-widget/theme/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CACb,iBAAkB,CAGlB,mBAAoB,CAEpB,MAAO,CACP,KAAM,CAEN,yCACD,CAGC,2EACC,aACD,CAGD,gCACC,iBAAkB,CAGlB,kBAAmB,CAEnB,4BAA6B,CAC7B,6BAA8B,CAC9B,uCAAwC,CACxC,gDAA6D,CAC7D,6CAyBD,CAvBC,oEACC,4BAA+B,CAC/B,6BAAgC,CAChC,kBACD,CAEA,qEACC,4BAA+B,CAC/B,8BAAiC,CACjC,kBACD,CAEA,wEACC,+BAAkC,CAClC,8BAAiC,CACjC,kBACD,CAEA,uEACC,+BAAkC,CAClC,6BAAgC,CAChC,kBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var( --ck-resizer-offset );\n\t\tleft: var( --ck-resizer-offset );\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var( --ck-resizer-offset );\n\t\tright: var( --ck-resizer-offset );\n\t\tcursor: nesw-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var( --ck-resizer-offset );\n\t\tright: var( --ck-resizer-offset );\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var( --ck-resizer-offset );\n\t\tleft: var( --ck-resizer-offset );\n\t\tcursor: nesw-resize;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(94);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content .image.image_resized{max-width:100%;display:block;box-sizing:border-box}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAKA,iCACC,cAAe,CAMf,aAAc,CACd,qBAWD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAGD,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `<figure>` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `<figure>` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(96);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BACD,CAGC,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n}\n\n.ck-content {\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(98);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDACD,CAMA,4BACC,8CACD,CAGA,sCACC,WAAY,CACZ,gDAAiD,CACjD,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(100);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block;padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-link/theme/linkform.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAAc,CEpBd,SAAU,CACV,oCFoBD,CElBC,wDACC,oFAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CACC,kCAAmC,CACnC,QAAS,CACT,eAAgB,CAChB,QAAS,CACT,gDAAiD,CACjD,SAaD,CAnBA,4GAaE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,aAUD,CARC,wEACC,QAAS,CACT,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-text-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tborder: 0;\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\twidth: 50%;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin-left: 0;\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tborder: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(102);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-link/theme/linkactions.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCKA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EACC,kCAAmC,CACnC,kCAAmC,CACnC,sBAAuB,CACvB,cAAe,CAIf,oCAAqC,CACrC,aAAc,CACd,iBAKD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDvDD,oCC2DC,wDACC,8DAMD,CAJC,0EACC,WAAY,CACZ,cACD,CAGD,gJAME,aAEF,CD1ED",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-text-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(104);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-link-image_icon{position:absolute;top:var(--ck-spacing-medium);right:var(--ck-spacing-medium);width:28px;height:28px;padding:4px;box-sizing:border-box;border-radius:var(--ck-border-radius)}.ck.ck-link-image_icon svg{fill:currentColor}.ck.ck-link-image_icon{color:#fff;background:rgba(0,0,0,.4)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-link/theme/linkimage.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AAKA,uBACC,iBAAkB,CAClB,4BAA6B,CAC7B,8BAA+B,CAC/B,UAAW,CACX,WAAY,CACZ,WAAY,CACZ,qBAAsB,CACtB,qCAKD,CAHC,2BACC,iBACD,CCZD,uBACC,UAAuB,CACvB,yBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-link-image_icon {\n\tposition: absolute;\n\ttop: var(--ck-spacing-medium);\n\tright: var(--ck-spacing-medium);\n\twidth: 28px;\n\theight: 28px;\n\tpadding: 4px;\n\tbox-sizing: border-box;\n\tborder-radius: var(--ck-border-radius);\n\n\t& svg {\n\t\tfill: currentColor;\n\t}\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-link-image_icon {\n\tcolor: hsl(0, 0%, 100%);\n\tbackground: hsla(0, 0%, 0%, .4);\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(106);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,'.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(var(--ck-spacing-standard)*3);background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAQC,0CACC,YAAa,CACb,qBAAsB,CACtB,kBAmBD,CCpBA,kFACC,aAqBD,CAHC,oBAnBD,kFAoBE,YAEF,CADC,CDlBA,sEAIC,cAAe,CAEf,iBAUD,CCoBD,wFACC,kBAAmB,CACnB,SACD,CD3BE,wGACC,eAAgB,CAChB,aACD,CAQD,+UACC,YACD,CAYF,2LACC,mBACD,CE/CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA4FD,CA1FC,0CACC,0CAA+C,CAC/C,0CA4BD,CA1BC,uEACC,qDAAsD,CACtD,kDAAmD,CACnD,qCAAsC,CACtC,uBAA2B,CAC3B,qBAMD,CAJC,gFACC,UAAW,CACX,WACD,CAGD,4EACC,sDAAuD,CACvD,kBAAmB,CACnB,iBAAkB,CAClB,iBAAkB,CAClB,sBAOD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDACC,eAAgB,CAChB,gBACD,CAEA,oFACC,gvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,48BACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css";\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t@mixin ck-tooltip_enabled;\n\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t&:hover {\n\t\t\t\t@mixin ck-tooltip_visible;\n\t\t\t}\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read–only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t * @media (hover) {\n\t\t * display: block;\n\t\t * }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(108);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css","webpack://node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBACC,YAAa,CACb,sBAAuB,CACvB,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(110);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CAGX,YAAa,CAIb,aAAc,CAId,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\tmargin: 1em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(112);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,8DACD,CAKE,8QAGC,wDAAyD,CAKzD,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-table-focused-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-table-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(114);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-table/theme/inserttable.css","webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAEC,oJAA2J,CAC3J,yFACD,CAEA,qCACC,iBACD,CAEA,uCACC,+CAAgD,CAChD,iDAAkD,CAClD,iDAAkD,CAClD,4CAA6C,CAC7C,iBAMD,CAJC,6CACC,yCAA0C,CAC1C,6CACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\twidth: var(--ck-insert-table-dropdown-box-width);\n\theight: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(116);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}',"",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,yDACD,CAGC,0IAEC,iBAAkB,CAClB,uBAAwB,CACxB,aAAc,CACd,gBAsBD,CAnBC,sJACC,UAAW,CACX,mBAAoB,CACpB,yDAA0D,CAC1D,iBAAkB,CAClB,KAAM,CACN,MAAO,CACP,OAAQ,CACR,QACD,CAEA,wTAEC,4BACD,CAEA,kLACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t& .ck-widget_selected {\n\t\t\toutline: unset;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.default=i},function(e,t,n){var r=n(2),i=n(118);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){n.r(t);var r=n(1),i=n.n(r)()(!0);i.push([e.i,".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}","",{version:3,sources:["webpack://node_modules/@ckeditor/ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAEC,eAAgB,CAChB,aAgCD,CA9BC,yBAEC,wBAAyB,CACzB,gBAAiB,CAIjB,UAAW,CACX,WAAY,CAIZ,yBAiBD,CAfC,wDAEC,aAAc,CACd,YAAa,CAKb,wBACD,CAEA,4BACC,eAAiB,CACjB,2BACD,CAMF,+BACC,gBACD,CAEA,+BACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\tmargin: 1em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent <figure>. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the ediitor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n'],sourceRoot:""}]),t.default=i},function(e,t,n){var r=o.a.mark(ss),i=o.a.mark(cs),d=o.a.mark($u);n.r(t);var f=n(4),p=f.a.Symbol,k=Object.prototype,_=k.hasOwnProperty,C=k.toString,S=p?p.toStringTag:void 0,M=Object.prototype.toString,E=p?p.toStringTag:void 0,T=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?function(e){var t=_.call(e,S),n=e[S];try{e[S]=void 0;var r=!0}catch(e){}var i=C.call(e);return r&&(t?e[S]=n:delete e[S]),i}(e):function(e){return M.call(e)}(e)},D=function(e,t){return function(n){return e(t(n))}},O=D(Object.getPrototypeOf,Object),P=function(e){return null!=e&&"object"==x(e)},I=Function.prototype,j=Object.prototype,N=I.toString,R=j.hasOwnProperty,L=N.call(Object),B=function(e){if(!P(e)||"[object Object]"!=T(e))return!1;var t=O(e);if(null===t)return!0;var n=R.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&N.call(n)==L},F=function(e,t){return e===t||e!=e&&t!=t},z=function(e,t){for(var n=e.length;n--;)if(F(e[n][0],t))return n;return-1},V=Array.prototype.splice;function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$.prototype.clear=function(){this.__data__=[],this.size=0},$.prototype.delete=function(e){var t=this.__data__,n=z(t,e);return!(n<0||(n==t.length-1?t.pop():V.call(t,n,1),--this.size,0))},$.prototype.get=function(e){var t=this.__data__,n=z(t,e);return n<0?void 0:t[n][1]},$.prototype.has=function(e){return z(this.__data__,e)>-1},$.prototype.set=function(e,t){var n=this.__data__,r=z(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var H,U=$,q=function(e){var t=x(e);return null!=e&&("object"==t||"function"==t)},W=function(e){if(!q(e))return!1;var t=T(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Y=f.a["__core-js_shared__"],K=(H=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",G=Function.prototype.toString,Q=function(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""},X=/^\[object .+?Constructor\]$/,J=Function.prototype,Z=Object.prototype,ee=J.toString,te=Z.hasOwnProperty,ne=RegExp("^"+ee.call(te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=function(e){return!(!q(e)||function(e){return!!K&&K in e}(e))&&(W(e)?ne:X).test(Q(e))},ie=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return re(n)?n:void 0},oe=ie(f.a,"Map"),ae=ie(Object,"create"),se=Object.prototype.hasOwnProperty,ce=Object.prototype.hasOwnProperty;function le(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}le.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},le.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},le.prototype.get=function(e){var t=this.__data__;if(ae){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return se.call(t,e)?t[e]:void 0},le.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:ce.call(t,e)},le.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ae&&void 0===t?"__lodash_hash_undefined__":t,this};var ue=le,de=function(e,t){var n=e.__data__;return function(e){var t=x(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fe.prototype.clear=function(){this.size=0,this.__data__={hash:new ue,map:new(oe||U),string:new ue}},fe.prototype.delete=function(e){var t=de(this,e).delete(e);return this.size-=t?1:0,t},fe.prototype.get=function(e){return de(this,e).get(e)},fe.prototype.has=function(e){return de(this,e).has(e)},fe.prototype.set=function(e,t){var n=de(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var he=fe;function pe(e){var t=this.__data__=new U(e);this.size=t.size}pe.prototype.clear=function(){this.__data__=new U,this.size=0},pe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},pe.prototype.get=function(e){return this.__data__.get(e)},pe.prototype.has=function(e){return this.__data__.has(e)},pe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof U){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new he(r)}return n.set(e,t),this.size=n.size,this};var me=pe,ve=function(){try{var e=ie(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ge=function(e,t,n){"__proto__"==t&&ve?ve(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},be=Object.prototype.hasOwnProperty,ye=function(e,t,n){var r=e[t];be.call(e,t)&&F(r,n)&&(void 0!==n||t in e)||ge(e,t,n)},ke=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?ge(n,s,c):ye(n,s,c)}return n},we=function(e){return P(e)&&"[object Arguments]"==T(e)},_e=Object.prototype,Ce=_e.hasOwnProperty,Ae=_e.propertyIsEnumerable,xe=we(function(){return arguments}())?we:function(e){return P(e)&&Ce.call(e,"callee")&&!Ae.call(e,"callee")},Se=Array.isArray,Me=n(5),Ee=/^(?:0|[1-9]\d*)$/,Te=function(e,t){var n=x(e);return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ee.test(e))&&e>-1&&e%1==0&&e<t},De=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Oe={};Oe["[object Float32Array]"]=Oe["[object Float64Array]"]=Oe["[object Int8Array]"]=Oe["[object Int16Array]"]=Oe["[object Int32Array]"]=Oe["[object Uint8Array]"]=Oe["[object Uint8ClampedArray]"]=Oe["[object Uint16Array]"]=Oe["[object Uint32Array]"]=!0,Oe["[object Arguments]"]=Oe["[object Array]"]=Oe["[object ArrayBuffer]"]=Oe["[object Boolean]"]=Oe["[object DataView]"]=Oe["[object Date]"]=Oe["[object Error]"]=Oe["[object Function]"]=Oe["[object Map]"]=Oe["[object Number]"]=Oe["[object Object]"]=Oe["[object RegExp]"]=Oe["[object Set]"]=Oe["[object String]"]=Oe["[object WeakMap]"]=!1;var Pe=function(e){return function(t){return e(t)}},Ie=n(6),je=Ie.a&&Ie.a.isTypedArray,Ne=je?Pe(je):function(e){return P(e)&&De(e.length)&&!!Oe[T(e)]},Re=Object.prototype.hasOwnProperty,Le=function(e,t){var n=Se(e),r=!n&&xe(e),i=!n&&!r&&Object(Me.a)(e),o=!n&&!r&&!i&&Ne(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!Re.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Te(l,c))||s.push(l);return s},Be=Object.prototype,Fe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Be)},ze=D(Object.keys,Object),Ve=Object.prototype.hasOwnProperty,$e=function(e){return null!=e&&De(e.length)&&!W(e)},He=function(e){return $e(e)?Le(e):function(e){if(!Fe(e))return ze(e);var t=[];for(var n in Object(e))Ve.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},Ue=Object.prototype.hasOwnProperty,qe=function(e){if(!q(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Fe(e),n=[];for(var r in e)("constructor"!=r||!t&&Ue.call(e,r))&&n.push(r);return n},We=function(e){return $e(e)?Le(e,!0):qe(e)},Ye=n(10),Ke=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Ge=function(){return[]},Qe=Object.prototype.propertyIsEnumerable,Xe=Object.getOwnPropertySymbols,Je=Xe?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Xe(e),(function(t){return Qe.call(e,t)})))}:Ge,Ze=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},et=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ze(t,Je(e)),e=O(e);return t}:Ge,tt=function(e,t,n){var r=t(e);return Se(e)?r:Ze(r,n(e))},nt=function(e){return tt(e,He,Je)},rt=function(e){return tt(e,We,et)},it=ie(f.a,"DataView"),ot=ie(f.a,"Promise"),at=ie(f.a,"Set"),st=ie(f.a,"WeakMap"),ct="[object Map]",lt="[object Promise]",ut="[object Set]",dt="[object WeakMap]",ft="[object DataView]",ht=Q(it),pt=Q(oe),mt=Q(ot),vt=Q(at),gt=Q(st),bt=T;(it&&bt(new it(new ArrayBuffer(1)))!=ft||oe&&bt(new oe)!=ct||ot&&bt(ot.resolve())!=lt||at&&bt(new at)!=ut||st&&bt(new st)!=dt)&&(bt=function(e){var t=T(e),n="[object Object]"==t?e.constructor:void 0,r=n?Q(n):"";if(r)switch(r){case ht:return ft;case pt:return ct;case mt:return lt;case vt:return ut;case gt:return dt}return t});var yt=bt,kt=Object.prototype.hasOwnProperty,wt=f.a.Uint8Array,_t=function(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t},Ct=/\w*$/,At=p?p.prototype:void 0,xt=At?At.valueOf:void 0,St=function(e,t){var n=t?_t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Mt=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return _t(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var n=t?_t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return St(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,Ct.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Set]":return new r;case"[object Symbol]":return function(e){return xt?Object(xt.call(e)):{}}(e)}},Et=Object.create,Tt=function(){function e(){}return function(t){if(!q(t))return{};if(Et)return Et(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Dt=function(e){return"function"!=typeof e.constructor||Fe(e)?{}:Tt(O(e))},Ot=Ie.a&&Ie.a.isMap,Pt=Ot?Pe(Ot):function(e){return P(e)&&"[object Map]"==yt(e)},It=Ie.a&&Ie.a.isSet,jt=It?Pe(It):function(e){return P(e)&&"[object Set]"==yt(e)},Nt="[object Arguments]",Rt="[object Function]",Lt={};Lt[Nt]=Lt["[object Array]"]=Lt["[object ArrayBuffer]"]=Lt["[object DataView]"]=Lt["[object Boolean]"]=Lt["[object Date]"]=Lt["[object Float32Array]"]=Lt["[object Float64Array]"]=Lt["[object Int8Array]"]=Lt["[object Int16Array]"]=Lt["[object Int32Array]"]=Lt["[object Map]"]=Lt["[object Number]"]=Lt["[object Object]"]=Lt["[object RegExp]"]=Lt["[object Set]"]=Lt["[object String]"]=Lt["[object Symbol]"]=Lt["[object Uint8Array]"]=Lt["[object Uint8ClampedArray]"]=Lt["[object Uint16Array]"]=Lt["[object Uint32Array]"]=!0,Lt["[object Error]"]=Lt[Rt]=Lt["[object WeakMap]"]=!1;var Bt=function e(t,n,r,i,o,a){var s,c=1&n,l=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!q(t))return t;var d=Se(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&kt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!c)return Ke(t,s)}else{var f=yt(t),h=f==Rt||"[object GeneratorFunction]"==f;if(Object(Me.a)(t))return Object(Ye.a)(t,c);if("[object Object]"==f||f==Nt||h&&!o){if(s=l||h?{}:Dt(t),!c)return l?function(e,t){return ke(e,et(e),t)}(t,function(e,t){return e&&ke(t,We(t),e)}(s,t)):function(e,t){return ke(e,Je(e),t)}(t,function(e,t){return e&&ke(t,He(t),e)}(s,t))}else{if(!Lt[f])return o?t:{};s=Mt(t,f,c)}}a||(a=new me);var p=a.get(t);if(p)return p;a.set(t,s),jt(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):Pt(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var m=u?l?rt:nt:l?keysIn:He,v=d?void 0:m(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(v||t,(function(i,o){v&&(i=t[o=i]),ye(s,o,e(i,n,r,o,t,a))})),s},Ft=function(e,t){return Bt(e,5,t="function"==typeof t?t:void 0)},zt=function(e){return P(e)&&1===e.nodeType&&!B(e)},Vt=function(){function e(t,n){h(this,e),this._config={},n&&this.define($t(n)),t&&this._setObjectToTarget(this._config,t)}return m(e,[{key:"set",value:function(e,t){this._setToTarget(this._config,e,t)}},{key:"define",value:function(e,t){this._setToTarget(this._config,e,t,!0)}},{key:"get",value:function(e){return this._getFromSource(this._config,e)}},{key:"names",value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,n=Object.keys(this._config);case 1:if(!(t<n.length)){e.next=8;break}return r=n[t],e.next=5,r;case 5:t++,e.next=1;break;case 8:case"end":return e.stop()}}),e,this)}))},{key:"_setToTarget",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(B(t))this._setObjectToTarget(e,t,r);else{var i=t.split(".");t=i.pop();var o,a=l(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;B(e[s])||(e[s]={}),e=e[s]}}catch(e){a.e(e)}finally{a.f()}if(B(n))return B(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,n,r);r&&void 0!==e[t]||(e[t]=n)}}},{key:"_getFromSource",value:function(e,t){var n=t.split(".");t=n.pop();var r,i=l(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!B(e[o])){e=null;break}e=e[o]}}catch(e){i.e(e)}finally{i.f()}return e?$t(e[t]):void 0}},{key:"_setObjectToTarget",value:function(e,t,n){var r=this;Object.keys(t).forEach((function(i){r._setToTarget(e,i,t[i],n)}))}}]),e}();function $t(e){return Ft(e,Ht)}function Ht(e){return zt(e)?e:void 0}var Ut=function e(t,n){h(this,e),this.source=t,this.name=n,this.path=[],this.stop=function e(){e.called=!0},this.off=function e(){e.called=!0}},qt=new Array(256).fill().map((function(e,t){return("0"+t.toString(16)).slice(-2)}));function Wt(){var e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0;return"e"+qt[e>>0&255]+qt[e>>8&255]+qt[e>>16&255]+qt[e>>24&255]+qt[t>>0&255]+qt[t>>8&255]+qt[t>>16&255]+qt[t>>24&255]+qt[n>>0&255]+qt[n>>8&255]+qt[n>>16&255]+qt[n>>24&255]+qt[r>>0&255]+qt[r>>8&255]+qt[r>>16&255]+qt[r>>24&255]}var Yt={get:function(e){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},Kt=(n(7),n(0)),Gt=Symbol("listeningTo"),Qt=Symbol("emitterId"),Xt={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,e,t,n)},once:function(e,t,n){var r=!1;this.listenTo(this,e,(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=!0,e.off(),t.call.apply(t,[this,e].concat(i)))}),n)},off:function(e,t){this.stopListening(this,e,t)},listenTo:function(e,t,n){var r,i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this[Gt]||(this[Gt]={});var a=this[Gt];Zt(e)||Jt(e);var s=Zt(e);(r=a[s])||(r=a[s]={emitter:e,callbacks:{}}),(i=r.callbacks[t])||(i=r.callbacks[t]=[]),i.push(n),function(e,t){var n=en(e);if(!n[t]){for(var r=t,i=null,o=[];""!==r&&!n[r];)n[r]={callbacks:[],childEvents:[]},o.push(n[r]),i&&n[r].childEvents.push(i),i=r,r=r.substr(0,r.lastIndexOf(":"));if(""!==r){var a,s=l(o);try{for(s.s();!(a=s.n()).done;){a.value.callbacks=n[r].callbacks.slice()}}catch(e){s.e(e)}finally{s.f()}n[r].childEvents.push(i)}}}(e,t);var c,u=tn(e,t),d=Yt.get(o.priority),f={callback:n,priority:d},h=l(u);try{for(h.s();!(c=h.n()).done;){for(var p=c.value,m=!1,v=0;v<p.length;v++)if(p[v].priority<d){p.splice(v,0,f),m=!0;break}m||p.push(f)}}catch(e){h.e(e)}finally{h.f()}},stopListening:function(e,t,n){var r=this[Gt],i=e&&Zt(e),o=r&&i&&r[i],a=o&&t&&o.callbacks[t];if(!(!r||e&&!o||t&&!a))if(n)on(e,t,n);else if(a){for(;n=a.pop();)on(e,t,n);delete o.callbacks[t]}else if(o){for(t in o.callbacks)this.stopListening(e,t);delete r[i]}else{for(i in r)this.stopListening(r[i].emitter);delete this[Gt]}},fire:function(e){try{for(var t=e instanceof Ut?e:new Ut(this,e),n=t.name,r=nn(this,n),i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(t.path.push(this),r){var s=[t].concat(o);r=Array.from(r);for(var c=0;c<r.length&&(r[c].callback.apply(this,s),t.off.called&&(delete t.off.called,on(this,n,r[c].callback)),!t.stop.called);c++);}if(this._delegations){var l=this._delegations.get(n),u=this._delegations.get("*");l&&rn(l,t,o),u&&rn(u,t,o)}return t.return}catch(e){Kt.a.rethrowUnexpectedError(e,this)}},delegate:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{to:function(t,r){e._delegations||(e._delegations=new Map),n.forEach((function(n){var i=e._delegations.get(n);i?i.set(t,r):e._delegations.set(n,new Map([[t,r]]))}))}}},stopDelegating:function(e,t){if(this._delegations)if(e)if(t){var n=this._delegations.get(e);n&&n.delete(t)}else this._delegations.delete(e);else this._delegations.clear()}};function Jt(e,t){e[Qt]||(e[Qt]=t||Wt())}function Zt(e){return e[Qt]}function en(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function tn(e,t){var n=en(e)[t];if(!n)return[];for(var r=[n.callbacks],i=0;i<n.childEvents.length;i++){var o=tn(e,n.childEvents[i]);r=r.concat(o)}return r}function nn(e,t){var n;return e._events&&(n=e._events[t])&&n.callbacks.length?n.callbacks:t.indexOf(":")>-1?nn(e,t.substr(0,t.lastIndexOf(":"))):null}function rn(e,t,n){var r,i=l(e);try{for(i.s();!(r=i.n()).done;){var o=c(r.value,2),a=o[0],s=o[1];s?"function"==typeof s&&(s=s(t.name)):s=t.name;var d=new Ut(t.source,s);d.path=u(t.path),a.fire.apply(a,[d].concat(u(n)))}}catch(e){i.e(e)}finally{i.f()}}function on(e,t,n){var r,i=l(tn(e,t));try{for(i.s();!(r=i.n()).done;)for(var o=r.value,a=0;a<o.length;a++)o[a].callback==n&&(o.splice(a,1),a--)}catch(e){i.e(e)}finally{i.f()}}function an(e){return!(!e||!e[Symbol.iterator])}function sn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach((function(t){Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)).forEach((function(n){if(!(n in e.prototype)){var r=Object.getOwnPropertyDescriptor(t,n);r.enumerable=!1,Object.defineProperty(e.prototype,n,r)}}))}))}var cn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e);var r=an(t);if(r||(n=t),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],r){var i,o=l(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._items.push(a),this._itemMap.set(this._getItemIdBeforeAdding(a),a)}}catch(e){o.e(e)}finally{o.f()}}}return m(e,[{key:"add",value:function(e,t){return this.addMany([e],t)}},{key:"addMany",value:function(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new Kt.a("collection-add-item-invalid-index",this);for(var n=0;n<e.length;n++){var r=e[n],i=this._getItemIdBeforeAdding(r),o=t+n;this._items.splice(o,0,r),this._itemMap.set(i,r),this.fire("add",r,o)}return this.fire("change",{added:e,removed:[],index:t}),this}},{key:"get",value:function(e){var t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new Kt.a("collection-get-invalid-arg",this);t=this._items[e]}return t||null}},{key:"has",value:function(e){if("string"==typeof e)return this._itemMap.has(e);var t=e[this._idProperty];return this._itemMap.has(t)}},{key:"getIndex",value:function(e){var t;return t="string"==typeof e?this._itemMap.get(e):e,this._items.indexOf(t)}},{key:"remove",value:function(e){var t=c(this._remove(e),2),n=t[0],r=t[1];return this.fire("change",{added:[],removed:[n],index:r}),n}},{key:"map",value:function(e,t){return this._items.map(e,t)}},{key:"find",value:function(e,t){return this._items.find(e,t)}},{key:"filter",value:function(e,t){return this._items.filter(e,t)}},{key:"clear",value:function(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);for(var e=Array.from(this._items);this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}},{key:"bindTo",value:function(e){var t=this;if(this._bindToCollection)throw new Kt.a("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:function(e){t._setUpBindToBinding((function(t){return new e(t)}))},using:function(e){"function"==typeof e?t._setUpBindToBinding((function(t){return e(t)})):t._setUpBindToBinding((function(t){return t[e]}))}}}},{key:"_setUpBindToBinding",value:function(e){var t,n=this,r=this._bindToCollection,i=function(t,i,o){var a=r._bindToCollection==n,s=r._bindToInternalToExternalMap.get(i);if(a&&s)n._bindToExternalToInternalMap.set(i,s),n._bindToInternalToExternalMap.set(s,i);else{var c=e(i);if(!c)return void n._skippedIndexesFromExternal.push(o);var u,d=o,f=l(n._skippedIndexesFromExternal);try{for(f.s();!(u=f.n()).done;){o>u.value&&d--}}catch(e){f.e(e)}finally{f.f()}var h,p=l(r._skippedIndexesFromExternal);try{for(p.s();!(h=p.n()).done;){d>=h.value&&d++}}catch(e){p.e(e)}finally{p.f()}n._bindToExternalToInternalMap.set(i,c),n._bindToInternalToExternalMap.set(c,i),n.add(c,d);for(var m=0;m<r._skippedIndexesFromExternal.length;m++)d<=r._skippedIndexesFromExternal[m]&&r._skippedIndexesFromExternal[m]++}},o=l(r);try{for(o.s();!(t=o.n()).done;){var a=t.value;i(0,a,r.getIndex(a))}}catch(e){o.e(e)}finally{o.f()}this.listenTo(r,"add",i),this.listenTo(r,"remove",(function(e,t,r){var i=n._bindToExternalToInternalMap.get(t);i&&n.remove(i),n._skippedIndexesFromExternal=n._skippedIndexesFromExternal.reduce((function(e,t){return r<t&&e.push(t-1),r>t&&e.push(t),e}),[])}))}},{key:"_getItemIdBeforeAdding",value:function(e){var t,n=this._idProperty;if(n in e){if("string"!=typeof(t=e[n]))throw new Kt.a("collection-add-invalid-id",this);if(this.get(t))throw new Kt.a("collection-add-item-already-exists",this)}else e[n]=t=Wt();return t}},{key:"_remove",value:function(e){var t,n,r,i=!1,o=this._idProperty;if("string"==typeof e?(n=e,i=!(r=this._itemMap.get(n)),r&&(t=this._items.indexOf(r))):"number"==typeof e?(t=e,i=!(r=this._items[t]),r&&(n=r[o])):(n=(r=e)[o],i=-1==(t=this._items.indexOf(r))||!this._itemMap.get(n)),i)throw new Kt.a("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(n);var a=this._bindToInternalToExternalMap.get(r);return this._bindToInternalToExternalMap.delete(r),this._bindToExternalToInternalMap.delete(a),this.fire("remove",r,t),[r,t]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"length",get:function(){return this._items.length}},{key:"first",get:function(){return this._items[0]||null}},{key:"last",get:function(){return this._items[this.length-1]||null}}]),e}();sn(cn,Xt);var ln=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];h(this,e),this._context=t,this._plugins=new Map,this._availablePlugins=new Map;var i,o=l(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;a.pluginName&&this._availablePlugins.set(a.pluginName,a)}}catch(e){o.e(e)}finally{o.f()}this._contextPlugins=new Map;var s,u=l(r);try{for(u.s();!(s=u.n()).done;){var d=c(s.value,2),f=d[0],p=d[1];this._contextPlugins.set(f,p),this._contextPlugins.set(p,f),f.pluginName&&this._availablePlugins.set(f.pluginName,f)}}catch(e){u.e(e)}finally{u.f()}}return m(e,[{key:Symbol.iterator,value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l(this._plugins),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=11;break}if(r=n.value,e.t0="function"==typeof r[0],!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"get",value:function(e){var t=this._plugins.get(e);if(!t){var n=e;throw"function"==typeof e&&(n=e.pluginName||e.name),new Kt.a("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return t}},{key:"has",value:function(e){return this._plugins.has(e)}},{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this,r=this._context,i=new Set,o=[],a=p(e),s=p(t),c=function(e){var t,n=[],r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;h(i)||n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n.length?n:null}(e);if(c){var u="plugincollection-plugin-not-found";return Object(Kt.b)(u,{plugins:c}),Promise.reject(new Kt.a(u,r,{plugins:c}))}return Promise.all(a.map(d)).then((function(){return f(o,"init")})).then((function(){return f(o,"afterInit")})).then((function(){return o}));function d(e){if(!s.includes(e)&&!n._plugins.has(e)&&!i.has(e))return function(e){return new Promise((function(a){i.add(e),e.requires&&e.requires.forEach((function(n){var i=h(n);if(e.isContextPlugin&&!i.isContextPlugin)throw new Kt.a("plugincollection-context-required",null,{plugin:i.name,requiredBy:e.name});if(t.includes(i))throw new Kt.a("plugincollection-required",r,{plugin:i.name,requiredBy:e.name});d(i)}));var s=n._contextPlugins.get(e)||new e(r);n._add(e,s),o.push(s),a()}))}(e).catch((function(t){throw Object(Kt.b)("plugincollection-load",{plugin:e}),t}))}function f(e,t){return e.reduce((function(e,r){return r[t]?n._contextPlugins.has(r)?e:e.then(r[t].bind(r)):e}),Promise.resolve())}function h(e){return"function"==typeof e?e:n._availablePlugins.get(e)}function p(e){return e.map((function(e){return h(e)})).filter((function(e){return!!e}))}}},{key:"destroy",value:function(){var e,t=[],n=l(this);try{for(n.s();!(e=n.n()).done;){var r=c(e.value,2)[1];"function"!=typeof r.destroy||this._contextPlugins.has(r)||t.push(r.destroy())}}catch(e){n.e(e)}finally{n.f()}return Promise.all(t)}},{key:"_add",value:function(e,t){this._plugins.set(e,t);var n=e.pluginName;if(n){if(this._plugins.has(n))throw new Kt.a("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}]),e}();function un(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof n)throw new Kt.a("translation-service-quantity-not-a-number",null,{quantity:n});var r=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===r&&(e=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);var i=t.id||t.string;if(0===r||!function(e,t){return!!window.CKEDITOR_TRANSLATIONS[e]&&!!window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,i))return 1!==n?t.plural:t.string;var o=window.CKEDITOR_TRANSLATIONS[e].dictionary,a=window.CKEDITOR_TRANSLATIONS[e].getPluralForm||function(e){return 1===e?0:1};if("string"==typeof o[i])return o[i];var s=Number(a(n));return o[i][s]}sn(ln,Xt),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});var dn=["ar","fa","he","ku","ug"],fn=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,e),this.uiLanguage=n.uiLanguage||"en",this.contentLanguage=n.contentLanguage||this.uiLanguage,this.uiLanguageDirection=hn(this.uiLanguage),this.contentLanguageDirection=hn(this.contentLanguage),this.t=function(e,n){return t._t(e,n)}}return m(e,[{key:"_t",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(t)||(t=[t]),"string"==typeof e&&(e={string:e});var n=e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,(function(e,n){return n<t.length?t[n]:e}))}(un(this.uiLanguage,e,n),t)}},{key:"language",get:function(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}}]),e}();function hn(e){return dn.includes(e)?"rtl":"ltr"}var pn=function(){function e(t){h(this,e),this.config=new Vt(t,this.constructor.defaultConfig);var n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new ln(this,n);var r=this.config.get("language")||{};this.locale=new fn({uiLanguage:"string"==typeof r?r:r.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new cn,this._contextOwner=null}return m(e,[{key:"initPlugins",value:function(){var e,t=this.config.get("plugins")||[],n=l(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if("function"!=typeof r)throw new Kt.a("context-initplugins-constructor-only",null,{Plugin:r});if(!0!==r.isContextPlugin)throw new Kt.a("context-initplugins-invalid-plugin",null,{Plugin:r})}}catch(e){n.e(e)}finally{n.f()}return this.plugins.init(t)}},{key:"destroy",value:function(){var e=this;return Promise.all(Array.from(this.editors,(function(e){return e.destroy()}))).then((function(){return e.plugins.destroy()}))}},{key:"_addEditor",value:function(e,t){if(this._contextOwner)throw new Kt.a("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}},{key:"_removeEditor",value:function(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}},{key:"_getEditorConfig",value:function(){var e,t={},n=l(this.config.names());try{for(n.s();!(e=n.n()).done;){var r=e.value;["plugins","removePlugins","extraPlugins"].includes(r)||(t[r]=this.config.get(r))}}catch(e){n.e(e)}finally{n.f()}return t}}],[{key:"create",value:function(e){var t=this;return new Promise((function(n){var r=new t(e);n(r.initPlugins().then((function(){return r})))}))}}]),e}();function mn(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e[r]!=t[r])return r;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}var vn=function(e){return Bt(e,4)},gn=function(){function e(t){h(this,e),this.document=t,this.parent=null}return m(e,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.index),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),r=e.getAncestors(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),r=mn(t,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return t[r]<n[r]}}},{key:"isAfter",value:function(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_fireChange",value:function(e,t){this.fire("change:"+e,t),this.parent&&this.parent._fireChange(e,t)}},{key:"toJSON",value:function(){var e=vn(this);return delete e.parent,e}},{key:"is",value:function(e){return"node"===e||"view:node"===e}},{key:"index",get:function(){var e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new Kt.a("view-node-not-found-in-parent",this);return e}},{key:"nextSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e+1)||null}},{key:"previousSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e-1)||null}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}}]),e}();sn(gn,Xt);var bn=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e))._textData=r,i}return m(n,[{key:"is",value:function(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e}},{key:"isSimilar",value:function(e){return e instanceof n&&(this===e||this.data===e.data)}},{key:"_clone",value:function(){return new n(this.document,this.data)}},{key:"data",get:function(){return this._textData}},{key:"_data",get:function(){return this.data},set:function(e){this._fireChange("text",this),this._textData=e}}]),n}(gn),yn=function(){function e(t,n,r){if(h(this,e),this.textNode=t,n<0||n>t.data.length)throw new Kt.a("view-textproxy-wrong-offsetintext",this);if(r<0||n+r>t.data.length)throw new Kt.a("view-textproxy-wrong-length",this);this.data=t.data.substring(n,n+r),this.offsetInText=n}return m(e,[{key:"is",value:function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this.textNode:this.parent;null!==n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"offsetSize",get:function(){return this.data.length}},{key:"isPartial",get:function(){return this.data.length!==this.textNode.data.length}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"document",get:function(){return this.textNode.document}}]),e}();function kn(e){return an(e)?new Map(e):function(e){var t=new Map;for(var n in e)t.set(n,e[n]);return t}(e)}var wn=function(){function e(){h(this,e),this._patterns=[],this.add.apply(this,arguments)}return m(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];("string"==typeof o||o instanceof RegExp)&&(o={name:o}),o.classes&&("string"==typeof o.classes||o.classes instanceof RegExp)&&(o.classes=[o.classes]),this._patterns.push(o)}}},{key:"match",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o,a=i[r],s=l(this._patterns);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=_n(a,c);if(u)return{element:a,pattern:c,match:u}}}catch(e){s.e(e)}finally{s.f()}}return null}},{key:"matchAll",value:function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a,s=o[i],c=l(this._patterns);try{for(c.s();!(a=c.n()).done;){var u=a.value,d=_n(s,u);d&&e.push({element:s,pattern:u,match:d})}}catch(e){c.e(e)}finally{c.f()}}return e.length>0?e:null}},{key:"getElementName",value:function(){if(1!==this._patterns.length)return null;var e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}]),e}();function _n(e,t){if("function"==typeof t)return t(e);var n={};return t.name&&(n.name=function(e,t){return e instanceof RegExp?e.test(t):e===t}(t.name,e.name),!n.name)||t.attributes&&(n.attributes=function(e,t){var n=[];for(var r in e){var i=e[r];if(!t.hasAttribute(r))return null;var o=t.getAttribute(r);if(!0===i)n.push(r);else if(i instanceof RegExp){if(!i.test(o))return null;n.push(r)}else{if(o!==i)return null;n.push(r)}}return n}(t.attributes,e),!n.attributes)?null:!(t.classes&&(n.classes=function(e,t){var n,r=[],i=l(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o instanceof RegExp){var a,s=l(t.getClassNames());try{for(s.s();!(a=s.n()).done;){var c=a.value;o.test(c)&&r.push(c)}}catch(e){s.e(e)}finally{s.f()}if(0===r.length)return null}else{if(!t.hasClass(o))return null;r.push(o)}}}catch(e){i.e(e)}finally{i.f()}return r}(t.classes,e),!n.classes))&&!(t.styles&&(n.styles=function(e,t){var n=[];for(var r in e){var i=e[r];if(!t.hasStyle(r))return null;var o=t.getStyle(r);if(i instanceof RegExp){if(!i.test(o))return null;n.push(r)}else{if(o!==i)return null;n.push(r)}}return n}(t.styles,e),!n.styles))&&n}var Cn=function(e){return"symbol"==x(e)||P(e)&&"[object Symbol]"==T(e)},An=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xn=/^\w*$/;function Sn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Sn.Cache||he),n}Sn.Cache=he;var Mn=Sn,En=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tn=/\\(\\)?/g,Dn=function(e){var t=Mn((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(En,(function(e,n,r,i){t.push(r?i.replace(Tn,"$1"):n||e)})),t}),(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}(),On=p?p.prototype:void 0,Pn=On?On.toString:void 0,In=function e(t){if("string"==typeof t)return t;if(Se(t))return function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,e)+"";if(Cn(t))return Pn?Pn.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},jn=function(e){return null==e?"":In(e)},Nn=function(e,t){return Se(e)?e:function(e,t){if(Se(e))return!1;var n=x(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Cn(e))||xn.test(e)||!An.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:Dn(jn(e))},Rn=function(e){if("string"==typeof e||Cn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Ln=function(e,t){for(var n=0,r=(t=Nn(t,e)).length;null!=e&&n<r;)e=e[Rn(t[n++])];return n&&n==r?e:void 0},Bn=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},Fn=function(e,t){return null==(e=function(e,t){return t.length<2?e:Ln(e,Bn(t,0,-1))}(e,t=Nn(t,e)))||delete e[Rn(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]},zn=function(e,t,n){var r=null==e?void 0:Ln(e,t);return void 0===r?n:r},Vn=function(e,t,n){(void 0!==n&&!F(e[t],n)||void 0===n&&!(t in e))&&ge(e,t,n)},$n=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e},Hn=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Un=function(e,t,n,r,i,o,a){var s=Hn(e,n),c=Hn(t,n),l=a.get(c);if(l)Vn(e,n,l);else{var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var f=Se(c),h=!f&&Object(Me.a)(c),p=!f&&!h&&Ne(c);u=c,f||h||p?Se(s)?u=s:function(e){return P(e)&&$e(e)}(s)?u=Ke(s):h?(d=!1,u=Object(Ye.a)(c,!0)):p?(d=!1,u=St(c,!0)):u=[]:B(c)||xe(c)?(u=s,xe(s)?u=function(e){return ke(e,We(e))}(s):q(s)&&!W(s)||(u=Dt(c))):d=!1}d&&(a.set(c,u),i(u,c,r,o,a),a.delete(c)),Vn(e,n,u)}},qn=function(e){return e},Wn=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Yn=Math.max,Kn=function(e){return function(){return e}},Gn=ve?function(e,t){return ve(e,"toString",{configurable:!0,enumerable:!1,value:Kn(t),writable:!0})}:qn,Qn=Date.now,Xn=function(e){var t=0,n=0;return function(){var r=Qn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Gn),Jn=function(e,t){return Xn(function(e,t,n){return t=Yn(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Yn(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Wn(e,this,s)}}(e,t,qn),e+"")},Zn=function(e){return Jn((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!q(n))return!1;var r=x(t);return!!("number"==r?$e(n)&&Te(t,n.length):"string"==r&&t in n)&&F(n[t],e)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))},er=Zn((function(e,t,n){!function e(t,n,r,i,o){t!==n&&$n(n,(function(a,s){if(o||(o=new me),q(a))Un(t,n,s,r,e,i,o);else{var c=i?i(Hn(t,s),a,s+"",t,n,o):void 0;void 0===c&&(c=a),Vn(t,s,c)}}),We)}(e,t,n)})),tr=function(e,t,n){return null==e?e:function(e,t,n,r){if(!q(e))return e;for(var i=-1,o=(t=Nn(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var c=Rn(t[i]),l=n;if(i!=a){var u=s[c];void 0===(l=r?r(u,c,s):void 0)&&(l=q(u)?u:Te(t[i+1])?[]:{})}ye(s,c,l),s=s[c]}return e}(e,t,n)},nr=function(){function e(t){h(this,e),this._styles={},this._styleProcessor=t}return m(e,[{key:"setTo",value:function(e){this.clear();for(var t=0,n=Array.from(function(e){var t=null,n=0,r=0,i=null,o=new Map;if(""===e)return o;";"!=e.charAt(e.length-1)&&(e+=";");for(var a=0;a<e.length;a++){var s=e.charAt(a);if(null===t)switch(s){case":":i||(i=e.substr(n,a-n),r=a+1);break;case'"':case"'":t=s;break;case";":var c=e.substr(r,a-r);i&&o.set(i.trim(),c.trim()),i=null,n=a+1}else s===t&&(t=null)}return o}(e).entries());t<n.length;t++){var r=c(n[t],2),i=r[0],o=r[1];this._styleProcessor.toNormalizedForm(i,o,this._styles)}}},{key:"has",value:function(e){if(this.isEmpty)return!1;var t=this._styleProcessor.getReducedForm(e,this._styles).find((function(t){return c(t,1)[0]===e}));return Array.isArray(t)}},{key:"set",value:function(e,t){if(q(e))for(var n=0,r=Object.entries(e);n<r.length;n++){var i=c(r[n],2),o=i[0],a=i[1];this._styleProcessor.toNormalizedForm(o,a,this._styles)}else this._styleProcessor.toNormalizedForm(e,t,this._styles)}},{key:"remove",value:function(e){var t=ir(e);(function(e,t){null==e||Fn(e,t)})(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}},{key:"getNormalized",value:function(e){return this._styleProcessor.getNormalized(e,this._styles)}},{key:"toString",value:function(){return this.isEmpty?"":this._getStylesEntries().map((function(e){return e.join(":")})).sort().join(";")+";"}},{key:"getAsString",value:function(e){if(!this.isEmpty){if(this._styles[e]&&!q(this._styles[e]))return this._styles[e];var t=this._styleProcessor.getReducedForm(e,this._styles).find((function(t){return c(t,1)[0]===e}));return Array.isArray(t)?t[1]:void 0}}},{key:"getStyleNames",value:function(){return this.isEmpty?[]:this._getStylesEntries().map((function(e){return c(e,1)[0]}))}},{key:"clear",value:function(){this._styles={}}},{key:"_getStylesEntries",value:function(){for(var e=[],t=0,n=Object.keys(this._styles);t<n.length;t++){var r=n[t];e.push.apply(e,u(this._styleProcessor.getReducedForm(r,this._styles)))}return e}},{key:"_cleanEmptyObjectsOnPath",value:function(e){var t=e.split(".");if(t.length>1){var n=t.splice(0,t.length-1).join("."),r=zn(this._styles,n);r&&!Array.from(Object.keys(r)).length&&this.remove(n)}}},{key:"isEmpty",get:function(){var e=Object.entries(this._styles);return!Array.from(e).length}},{key:"size",get:function(){return this.isEmpty?0:this.getStyleNames().length}}]),e}(),rr=function(){function e(){h(this,e),this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}return m(e,[{key:"toNormalizedForm",value:function(e,t,n){if(q(t))or(n,ir(e),t);else if(this._normalizers.has(e)){var r=this._normalizers.get(e)(t);or(n,r.path,r.value)}else or(n,e,t)}},{key:"getNormalized",value:function(e,t){if(!e)return er({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){var n=this._extractors.get(e);if("string"==typeof n)return zn(t,n);var r=n(e,t);if(r)return r}return zn(t,ir(e))}},{key:"getReducedForm",value:function(e,t){var n=this.getNormalized(e,t);return void 0===n?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}},{key:"getRelatedStyles",value:function(e){return this._consumables.get(e)||[]}},{key:"setNormalizer",value:function(e,t){this._normalizers.set(e,t)}},{key:"setExtractor",value:function(e,t){this._extractors.set(e,t)}},{key:"setReducer",value:function(e,t){this._reducers.set(e,t)}},{key:"setStyleRelation",value:function(e,t){this._mapStyleNames(e,t);var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._mapStyleNames(i,[e])}}catch(e){r.e(e)}finally{r.f()}}},{key:"_mapStyleNames",value:function(e,t){var n;this._consumables.has(e)||this._consumables.set(e,[]),(n=this._consumables.get(e)).push.apply(n,u(t))}}]),e}();function ir(e){return e.replace("-",".")}function or(e,t,n){var r=n;q(n)&&(r=er({},zn(e,t),n)),tr(e,t,r)}var ar=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;if(h(this,n),(a=t.call(this,e)).name=r,a._attrs=function(e){var t,n=l(e=kn(e));try{for(n.s();!(t=n.n()).done;){var r=c(t.value,2),i=r[0],o=r[1];null===o?e.delete(i):"string"!=typeof o&&e.set(i,String(o))}}catch(e){n.e(e)}finally{n.f()}return e}(i),a._children=[],o&&a._insertChild(0,o),a._classes=new Set,a._attrs.has("class")){var s=a._attrs.get("class");sr(a._classes,s),a._attrs.delete("class")}return a._styles=new nr(a.document.stylesProcessor),a._attrs.has("style")&&(a._styles.setTo(a._attrs.get("style")),a._attrs.delete("style")),a._customProperties=new Map,b(a)}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getAttributeKeys",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this._classes.size>0,!e.t0){e.next=4;break}return e.next=4,"class";case 4:if(e.t1=this._styles.isEmpty,e.t1){e.next=8;break}return e.next=8,"style";case 8:return e.delegateYield(this._attrs.keys(),"t2",9);case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttributes",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._attrs.entries(),"t0",1);case 1:if(e.t1=this._classes.size>0,!e.t1){e.next=5;break}return e.next=5,["class",this.getAttribute("class")];case 5:if(e.t2=this._styles.isEmpty,e.t2){e.next=9;break}return e.next=9,["style",this.getAttribute("style")];case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttribute",value:function(e){if("class"==e)return this._classes.size>0?u(this._classes).join(" "):void 0;if("style"==e){var t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(e)}},{key:"hasAttribute",value:function(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}},{key:"isSimilar",value:function(e){if(!(e instanceof n))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;var t,r=l(this._attrs);try{for(r.s();!(t=r.n()).done;){var i=c(t.value,2),o=i[0],a=i[1];if(!e._attrs.has(o)||e._attrs.get(o)!==a)return!1}}catch(e){r.e(e)}finally{r.f()}var s,u=l(this._classes);try{for(u.s();!(s=u.n()).done;){var d=s.value;if(!e._classes.has(d))return!1}}catch(e){u.e(e)}finally{u.f()}var f,h=l(this._styles.getStyleNames());try{for(h.s();!(f=h.n()).done;){var p=f.value;if(!e._styles.has(p)||e._styles.getAsString(p)!==this._styles.getAsString(p))return!1}}catch(e){h.e(e)}finally{h.f()}return!0}},{key:"hasClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];if(!this._classes.has(o))return!1}return!0}},{key:"getClassNames",value:function(){return this._classes.keys()}},{key:"getStyle",value:function(e){return this._styles.getAsString(e)}},{key:"getNormalizedStyle",value:function(e){return this._styles.getNormalized(e)}},{key:"getStyleNames",value:function(){return this._styles.getStyleNames()}},{key:"hasStyle",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];if(!this._styles.has(o))return!1}return!0}},{key:"findAncestor",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=w(wn,t),i=this.parent;i;){if(r.match(i))return i;i=i.parent}return null}},{key:"getCustomProperty",value:function(e){return this._customProperties.get(e)}},{key:"getCustomProperties",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._customProperties.entries(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getIdentity",value:function(){var e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),n=Array.from(this._attrs).map((function(e){return"".concat(e[0],'="').concat(e[1],'"')})).sort().join(" ");return this.name+(""==e?"":' class="'.concat(e,'"'))+(t?' style="'.concat(t,'"'):"")+(""==n?"":" "+n)}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[];if(e){var n,r=l(this.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;t.push(i._clone(e))}}catch(e){r.e(e)}finally{r.f()}}var o=new this.constructor(this.document,this.name,this._attrs,t);return o._classes=new Set(this._classes),o._styles.set(this._styles.getNormalized()),o._customProperties=new Map(this._customProperties),o.getFillerOffset=this.getFillerOffset,o}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,r=0,i=l(function(e,t){return"string"==typeof t?[new bn(e,t)]:(an(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new bn(e,t):t instanceof yn?new bn(e,t.data):t})))}(this.document,t));try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this,o.document=this.document,this._children.splice(e,0,o),e++,r++}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}},{key:"_setAttribute",value:function(e,t){t=String(t),this._fireChange("attributes",this),"class"==e?sr(this._classes,t):"style"==e?this._styles.setTo(t):this._attrs.set(e,t)}},{key:"_removeAttribute",value:function(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}},{key:"_addClass",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._classes.add(e)}))}},{key:"_removeClass",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._classes.delete(e)}))}},{key:"_setStyle",value:function(e,t){this._fireChange("attributes",this),this._styles.set(e,t)}},{key:"_removeStyle",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._styles.remove(e)}))}},{key:"_setCustomProperty",value:function(e,t){this._customProperties.set(e,t)}},{key:"_removeCustomProperty",value:function(e){return this._customProperties.delete(e)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this._children.length}}]),n}(gn);function sr(e,t){var n=t.split(/\s+/);e.clear(),n.forEach((function(t){return e.add(t)}))}var cr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=lr,a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}}]),n}(ar);function lr(){var e=u(this.getChildren()),t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;var n,r=l(e);try{for(r.s();!(n=r.n()).done;){if(!n.value.is("uiElement"))return null}}catch(e){r.e(e)}finally{r.f()}return this.childCount}var ur=Zn((function(e,t){ke(t,We(t),e)})),dr=Symbol("observableProperties"),fr=Symbol("boundObservables"),hr=Symbol("boundProperties"),pr={set:function(e,t){var n=this;if(q(e))Object.keys(e).forEach((function(t){n.set(t,e[t])}),this);else{vr(this);var r=this[dr];if(e in this&&!r.has(e))throw new Kt.a("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:function(){return r.get(e)},set:function(t){var n=r.get(e),i=this.fire("set:"+e,e,t,n);void 0===i&&(i=t),n===i&&r.has(e)||(r.set(e,i),this.fire("change:"+e,e,i,n))}}),this[e]=t}},bind:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length||!yr(n))throw new Kt.a("observable-bind-wrong-properties",this);if(new Set(n).size!==n.length)throw new Kt.a("observable-bind-duplicate-properties",this);vr(this);var i=this[hr];n.forEach((function(t){if(i.has(t))throw new Kt.a("observable-bind-rebind",e)}));var o=new Map;return n.forEach((function(e){var t={property:e,to:[]};i.set(e,t),o.set(e,t)})),{to:gr,toMany:br,_observable:this,_bindProperties:n,_to:[],_bindings:o}},unbind:function(){var e=this;if(this[dr]){for(var t=this[hr],n=this[fr],r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(i.length){if(!yr(i))throw new Kt.a("observable-unbind-wrong-properties",this);i.forEach((function(r){var i,o,a,s,c=t.get(r);c&&(c.to.forEach((function(t){i=t[0],o=t[1],a=n.get(i),(s=a[o]).delete(c),s.size||delete a[o],Object.keys(a).length||(n.delete(i),e.stopListening(i,"change"))})),t.delete(r))}))}else n.forEach((function(t,n){e.stopListening(n,"change")})),n.clear(),t.clear()}},decorate:function(e){var t=this,n=this[e];if(!n)throw new Kt.a("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,(function(e,r){e.return=n.apply(t,r)})),this[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.fire(e,n)}}};ur(pr,Xt);var mr=pr;function vr(e){e[dr]||(Object.defineProperty(e,dr,{value:new Map}),Object.defineProperty(e,fr,{value:new Map}),Object.defineProperty(e,hr,{value:new Map}))}function gr(){var e,t=this,n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)throw new Kt.a("observable-bind-to-parse-error",null);var r,i={to:[]};return"function"==typeof t[t.length-1]&&(i.callback=t.pop()),t.forEach((function(e){if("string"==typeof e)r.properties.push(e);else{if("object"!=x(e))throw new Kt.a("observable-bind-to-parse-error",null);r={observable:e,properties:[]},i.to.push(r)}})),i}.apply(void 0,arguments),r=Array.from(this._bindings.keys()),i=r.length;if(!n.callback&&n.to.length>1)throw new Kt.a("observable-bind-to-no-callback",this);if(i>1&&n.callback)throw new Kt.a("observable-bind-to-extra-callback",this);n.to.forEach((function(e){if(e.properties.length&&e.properties.length!==i)throw new Kt.a("observable-bind-to-properties-length",t);e.properties.length||(e.properties=t._bindProperties)})),this._to=n.to,n.callback&&(this._bindings.get(r[0]).callback=n.callback),e=this._observable,this._to.forEach((function(t){var n,r=e[fr];r.get(t.observable)||e.listenTo(t.observable,"change",(function(i,o){(n=r.get(t.observable)[o])&&n.forEach((function(t){kr(e,t.property)}))}))})),function(e){var t;e._bindings.forEach((function(n,r){e._to.forEach((function(i){t=i.properties[n.callback?0:e._bindProperties.indexOf(r)],n.to.push([i.observable,t]),function(e,t,n,r){var i=e[fr],o=i.get(n),a=o||{};a[r]||(a[r]=new Set),a[r].add(t),o||i.set(n,a)}(e._observable,n,i.observable,t)}))}))}(this),this._bindProperties.forEach((function(e){kr(t._observable,e)}))}function br(e,t,n){if(this._bindings.size>1)throw new Kt.a("observable-bind-to-many-not-one-binding",this);this.to.apply(this,u(function(e,t){var n=e.map((function(e){return[e,t]}));return Array.prototype.concat.apply([],n)}(e,t)).concat([n]))}function yr(e){return e.every((function(e){return"string"==typeof e}))}function kr(e,t){var n,r=e[hr].get(t);r.callback?n=r.callback.apply(e,r.to.map((function(e){return e[0][e[1]]}))):n=(n=r.to[0])[0][n[1]],Object.prototype.hasOwnProperty.call(e,t)?e[t]=n:e.set(t,n)}var wr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).set("isReadOnly",!1),a.set("isFocused",!1),a.bind("isReadOnly").to(e),a.bind("isFocused").to(e,"isFocused",(function(t){return t&&e.selection.editableElement==y(a)})),a.listenTo(e.selection,"change",(function(){a.isFocused=e.isFocused&&e.selection.editableElement==y(a)})),a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"destroy",value:function(){this.stopListening()}}]),n}(cr);sn(wr,mr);var _r=Symbol("rootName"),Cr=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e,r)).rootName="main",i}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"rootName",get:function(){return this.getCustomProperty(_r)},set:function(e){this._setCustomProperty(_r,e)}},{key:"_name",set:function(e){this.name=e}}]),n}(wr),Ar=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(h(this,e),!t.boundaries&&!t.startPosition)throw new Kt.a("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new Kt.a("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this.position=xr._createAt(t.startPosition):this.position=xr._createAt(t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",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}return m(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,r;do{var i;r=this.position,t=(i=this.next()).done,n=i.value}while(!t&&e(n));t||(this.position=r)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e,t=this.position.clone(),n=this.position,r=t.parent;if(null===r.parent&&t.offset===r.childCount)return{done:!0};if(r===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};if(r instanceof bn){if(t.isAtEnd)return this.position=xr._createAfter(r),this._next();e=r.data[t.offset]}else e=r.getChild(t.offset);if(e instanceof ar)return this.shallow?t.offset++:t=new xr(e,0),this.position=t,this._formatReturnValue("elementStart",e,n,t,1);if(e instanceof bn){if(this.singleCharacters)return t=new xr(e,0),this.position=t,this._next();var i,o=e.data.length;return e==this._boundaryEndParent?(o=this.boundaries.end.offset,i=new yn(e,0,o),t=xr._createAfter(i)):(i=new yn(e,0,e.data.length),t.offset++),this.position=t,this._formatReturnValue("text",i,n,t,o)}if("string"==typeof e){var a;a=this.singleCharacters?1:(r===this._boundaryEndParent?this.boundaries.end.offset:r.data.length)-t.offset;var s=new yn(r,t.offset,a);return t.offset+=a,this.position=t,this._formatReturnValue("text",s,n,t,a)}return t=xr._createAfter(r),this.position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",r,n,t)}},{key:"_previous",value:function(){var e,t=this.position.clone(),n=this.position,r=t.parent;if(null===r.parent&&0===t.offset)return{done:!0};if(r==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};if(r instanceof bn){if(t.isAtStart)return this.position=xr._createBefore(r),this._previous();e=r.data[t.offset-1]}else e=r.getChild(t.offset-1);if(e instanceof ar)return this.shallow?(t.offset--,this.position=t,this._formatReturnValue("elementStart",e,n,t,1)):(t=new xr(e,e.childCount),this.position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",e,n,t));if(e instanceof bn){if(this.singleCharacters)return t=new xr(e,e.data.length),this.position=t,this._previous();var i,o=e.data.length;if(e==this._boundaryStartParent){var a=this.boundaries.start.offset;o=(i=new yn(e,a,e.data.length-a)).data.length,t=xr._createBefore(i)}else i=new yn(e,0,e.data.length),t.offset--;return this.position=t,this._formatReturnValue("text",i,n,t,o)}if("string"==typeof e){var s;if(this.singleCharacters)s=1;else{var c=r===this._boundaryStartParent?this.boundaries.start.offset:0;s=t.offset-c}t.offset-=s;var l=new yn(r,t.offset,s);return this.position=t,this._formatReturnValue("text",l,n,t,s)}return t=xr._createBefore(r),this.position=t,this._formatReturnValue("elementStart",r,n,t,1)}},{key:"_formatReturnValue",value:function(e,t,n,r,i){return t instanceof yn&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=xr._createAfter(t.textNode):(r=xr._createAfter(t.textNode),this.position=r)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=xr._createBefore(t.textNode):(r=xr._createBefore(t.textNode),this.position=r))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:i}}}}]),e}(),xr=function(){function e(t,n){h(this,e),this.parent=t,this.offset=n}return m(e,[{key:"getShiftedBy",value:function(t){var n=e._createAt(this),r=n.offset+t;return n.offset=r<0?0:r,n}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new Ar(t);return n.skip(e),n.position}},{key:"getAncestors",value:function(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),r=0;t[r]==n[r]&&t[r];)r++;return 0===r?null:t[r-1]}},{key:"is",value:function(e){return"position"===e||"view:position"===e}},{key:"isEqual",value:function(e){return this.parent==e.parent&&this.offset==e.offset}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"compareWith",value:function(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";var t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);var r=mn(t,n);switch(r){case"prefix":return"before";case"extension":return"after";default:return t[r]<n[r]?"before":"after"}}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.startPosition=this,new Ar(e)}},{key:"clone",value:function(){return new e(this.parent,this.offset)}},{key:"nodeAfter",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}},{key:"nodeBefore",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){var e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}},{key:"root",get:function(){return this.parent.root}},{key:"editableElement",get:function(){for(var e=this.parent;!(e instanceof wr);){if(!e.parent)return null;e=e.parent}return e}}],[{key:"_createAt",value:function(t,n){if(t instanceof e)return new this(t.parent,t.offset);var r=t;if("end"==n)n=r.is("$text")?r.data.length:r.childCount;else{if("before"==n)return this._createBefore(r);if("after"==n)return this._createAfter(r);if(0!==n&&!n)throw new Kt.a("view-createpositionat-offset-required",r)}return new e(r,n)}},{key:"_createAfter",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new Kt.a("view-position-after-root",t,{root:t});return new e(t.parent,t.index+1)}},{key:"_createBefore",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText);if(!t.parent)throw new Kt.a("view-position-before-root",t,{root:t});return new e(t.parent,t.index)}}]),e}(),Sr=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;h(this,e),this.start=t.clone(),this.end=n?n.clone():t.clone()}return m(e,[{key:Symbol.iterator,value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(new Ar({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getEnlarged",value:function(){var t=this.start.getLastMatchingPosition(Mr,{direction:"backward"}),n=this.end.getLastMatchingPosition(Mr);return t.parent.is("$text")&&t.isAtStart&&(t=xr._createBefore(t.parent)),n.parent.is("$text")&&n.isAtEnd&&(n=xr._createAfter(n.parent)),new e(t,n)}},{key:"getTrimmed",value:function(){var t=this.start.getLastMatchingPosition(Mr);if(t.isAfter(this.end)||t.isEqual(this.end))return new e(t,t);var n=this.end.getLastMatchingPosition(Mr,{direction:"backward"}),r=t.nodeAfter,i=n.nodeBefore;return r&&r.is("$text")&&(t=new xr(r,0)),i&&i.is("$text")&&(n=new xr(i,i.data.length)),new e(t,n)}},{key:"isEqual",value:function(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}},{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(this.clone()),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,r=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(r=t.end),new e(n,r)}return null}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new Ar(e)}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}},{key:"clone",value:function(){return new e(this.start,this.end)}},{key:"getItems",value:o.a.mark((function e(){var t,n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,t.ignoreElementEnd=!0,n=new Ar(t),r=l(n),e.prev=4,r.s();case 6:if((i=r.n()).done){e.next=12;break}return a=i.value,e.next=10,a.item;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),r.e(e.t0);case 17:return e.prev=17,r.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"getPositions",value:o.a.mark((function e(){var t,n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,n=new Ar(t),e.next=5,n.position;case 5:r=l(n),e.prev=6,r.s();case 8:if((i=r.n()).done){e.next=14;break}return a=i.value,e.next=12,a.nextPosition;case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])}))},{key:"is",value:function(e){return"range"===e||"view:range"===e}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return this.start.parent===this.end.parent}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromParentsAndOffsets",value:function(e,t,n,r){return new this(new xr(e,t),new xr(n,r))}},{key:"_createFromPositionAndShift",value:function(e,t){var n=e,r=e.getShiftedBy(t);return t>0?new this(n,r):new this(r,n)}},{key:"_createIn",value:function(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}},{key:"_createOn",value:function(e){var t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(xr._createBefore(e),t)}}]),e}();function Mr(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}function Er(e){var t,n=0,r=l(e);try{for(r.s();!(t=r.n()).done;){t.value;n++}}catch(e){r.e(e)}finally{r.f()}return n}var Tr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;h(this,e),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(t,n,r)}return m(e,[{key:"getRanges",value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,r.clone();case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=l(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.start.isBefore(t.start)||(t=r)}}catch(e){n.e(e)}finally{n.f()}return t?t.clone():null}},{key:"getLastRange",value:function(){var e,t=null,n=l(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.end.isAfter(t.end)||(t=r)}}catch(e){n.e(e)}finally{n.f()}return t?t.clone():null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"isEqual",value:function(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=l(this._ranges);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=!1,a=l(e._ranges);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(i.isEqual(s)){o=!0;break}}}catch(e){a.e(e)}finally{a.f()}if(!o)return!1}}catch(e){n.e(e)}finally{n.f()}return!0}},{key:"isSimilar",value:function(e){if(this.isBackward!=e.isBackward)return!1;var t=Er(this.getRanges());if(t!=Er(e.getRanges()))return!1;if(0==t)return!0;var n,r=l(this.getRanges());try{for(r.s();!(n=r.n()).done;){var i=n.value;i=i.getTrimmed();var o,a=!1,s=l(e.getRanges());try{for(s.s();!(o=s.n()).done;){var c=o.value;if(c=c.getTrimmed(),i.start.isEqual(c.start)&&i.end.isEqual(c.end)){a=!0;break}}}catch(e){s.e(e)}finally{s.f()}if(!a)return!1}}catch(e){r.e(e)}finally{r.f()}return!0}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"setTo",value:function(t,n,r){if(null===t)this._setRanges([]),this._setFakeOptions(n);else if(t instanceof e||t instanceof Dr)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof Sr)this._setRanges([t],n&&n.backward),this._setFakeOptions(n);else if(t instanceof xr)this._setRanges([new Sr(t)]),this._setFakeOptions(n);else if(t instanceof gn){var i,o=!!r&&!!r.backward;if(void 0===n)throw new Kt.a("view-selection-setto-required-second-parameter",this);i="in"==n?Sr._createIn(t):"on"==n?Sr._createOn(t):new Sr(xr._createAt(t,n)),this._setRanges([i],o),this._setFakeOptions(r)}else{if(!an(t))throw new Kt.a("view-selection-setto-not-selectable",this);this._setRanges(t,n&&n.backward),this._setFakeOptions(n)}this.fire("change")}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new Kt.a("view-selection-setfocus-no-ranges",this);var n=xr._createAt(e,t);if("same"!=n.compareWith(this.focus)){var r=this.anchor;this._ranges.pop(),"before"==n.compareWith(r)?this._addRange(new Sr(n,r),!0):this._addRange(new Sr(r,n)),this.fire("change")}}},{key:"is",value:function(e){return"selection"===e||"view:selection"===e}},{key:"_setRanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e),this._ranges=[];var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._addRange(i)}}catch(e){r.e(e)}finally{r.f()}this._lastRangeBackward=!!t}},{key:"_setFakeOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}},{key:"_addRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof Sr))throw new Kt.a("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}},{key:"_pushRange",value:function(e){var t,n=l(this._ranges);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e.isIntersecting(r))throw new Kt.a("view-selection-range-intersects",this,{addedRange:e,intersectingRange:r})}}catch(e){n.e(e)}finally{n.f()}this._ranges.push(new Sr(e.start,e.end))}},{key:"isFake",get:function(){return this._isFake}},{key:"fakeSelectionLabel",get:function(){return this._fakeSelectionLabel}},{key:"anchor",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}},{key:"focus",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}},{key:"isCollapsed",get:function(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"editableElement",get:function(){return this.anchor?this.anchor.editableElement:null}}]),e}();sn(Tr,Xt);var Dr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;h(this,e),this._selection=new Tr,this._selection.delegate("change").to(this),this._selection.setTo(t,n,r)}return m(e,[{key:"getRanges",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._selection.getRanges(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"isEqual",value:function(e){return this._selection.isEqual(e)}},{key:"isSimilar",value:function(e){return this._selection.isSimilar(e)}},{key:"is",value:function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"isFake",get:function(){return this._selection.isFake}},{key:"fakeSelectionLabel",get:function(){return this._selection.fakeSelectionLabel}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"editableElement",get:function(){return this._selection.editableElement}},{key:"_ranges",get:function(){return this._selection._ranges}}]),e}();sn(Dr,Xt);var Or=function(){function e(t){h(this,e),this.selection=new Dr,this.roots=new cn({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}return m(e,[{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"destroy",value:function(){this.roots.map((function(e){return e.destroy()})),this.stopListening()}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,r=l(this._postFixers);try{for(r.s();!(n=r.n()).done;){if(t=(0,n.value)(e))break}}catch(e){r.e(e)}finally{r.f()}}while(t)}}]),e}();sn(Or,mr);var Pr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=Ir,a._priority=10,a._id=null,a._clonesGroup=null,a}return m(n,[{key:"getElementsWithSameId",value:function(){if(null===this.id)throw new Kt.a("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}},{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"isSimilar",value:function(e){return null!==this.id||null!==e.id?this.id===e.id:s(A(n.prototype),"isSimilar",this).call(this,e)&&this.priority==e.priority}},{key:"_clone",value:function(e){var t=s(A(n.prototype),"_clone",this).call(this,e);return t._priority=this._priority,t._id=this._id,t}},{key:"priority",get:function(){return this._priority}},{key:"id",get:function(){return this._id}}]),n}(ar);function Ir(){if(jr(this))return null;for(var e=this.parent;e&&e.is("attributeElement");){if(jr(e)>1)return null;e=e.parent}return!e||jr(e)>1?null:this.childCount}function jr(e){return Array.from(e.getChildren()).filter((function(e){return!e.is("uiElement")})).length}Pr.DEFAULT_PRIORITY=10;var Nr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=Rr,a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof gn||Array.from(t).length>0))throw new Kt.a("view-emptyelement-cannot-add",[this,t])}}]),n}(ar);function Rr(){return null}var Lr=navigator.userAgent.toLowerCase(),Br=function(e){return e.indexOf("macintosh")>-1}(Lr),Fr=function(e){return!!e.match(/gecko\/\d+/)}(Lr),zr=function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(Lr),Vr=function(e){return e.indexOf("android")>-1}(Lr),$r=(function(e){e.indexOf("chrome/")>-1&&e.indexOf("edge/")}(Lr),function(){var e=!1;try{e=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(e){}}(),{"⌘":"ctrl","⇧":"shift","⌥":"alt"}),Hr={ctrl:"⌘",shift:"⇧",alt:"⌥"},Ur=function(){for(var e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448},t=65;t<=90;t++){e[String.fromCharCode(t).toLowerCase()]=t}for(var n=48;n<=57;n++)e[n-48]=n;for(var r=112;r<=123;r++)e["f"+(r-111)]=r;return e}();function qr(e){var t;if("string"==typeof e){if(!(t=Ur[e.toLowerCase()]))throw new Kt.a("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?Ur.alt:0)+(e.ctrlKey?Ur.ctrl:0)+(e.shiftKey?Ur.shift:0);return t}function Wr(e){return"string"==typeof e&&(e=Xr(e)),e.map((function(e){return"string"==typeof e?qr(e):e})).reduce((function(e,t){return t+e}),0)}function Yr(e){return Br?Xr(e).map((function(e){return Hr[e.toLowerCase()]||e})).reduce((function(e,t){return e.slice(-1)in $r?e+t:e+"+"+t})):e}function Kr(e){return e==Ur.arrowright||e==Ur.arrowleft||e==Ur.arrowup||e==Ur.arrowdown}function Gr(e,t){var n="ltr"===t;switch(e){case Ur.arrowleft:return n?"left":"right";case Ur.arrowright:return n?"right":"left";case Ur.arrowup:return"up";case Ur.arrowdown:return"down"}}function Qr(e,t){var n=Gr(e,t);return"down"===n||"right"===n}function Xr(e){return e.split(/\s*\+\s*/)}var Jr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=Zr,a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof gn||Array.from(t).length>0))throw new Kt.a("view-uielement-cannot-add",this)}},{key:"render",value:function(e){return this.toDomElement(e)}},{key:"toDomElement",value:function(e){var t,n=e.createElement(this.name),r=l(this.getAttributeKeys());try{for(r.s();!(t=r.n()).done;){var i=t.value;n.setAttribute(i,this.getAttribute(i))}}catch(e){r.e(e)}finally{r.f()}return n}}]),n}(ar);function Zr(){return null}var ei=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=ti,a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof gn||Array.from(t).length>0))throw new Kt.a("view-rawelement-cannot-add",[this,t])}}]),n}(ar);function ti(){return null}var ni=function(){function e(t,n){h(this,e),this.document=t,this._children=[],n&&this._insertChild(0,n)}return m(e,[{key:Symbol.iterator,value:function(){return this._children[Symbol.iterator]()}},{key:"is",value:function(e){return"documentFragment"===e||"view:documentFragment"===e}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,r=0,i=l(function(e,t){return"string"==typeof t?[new bn(e,t)]:(an(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new bn(e,t):t instanceof yn?new bn(e,t.data):t})))}(this.document,t));try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this,this._children.splice(e,0,o),e++,r++}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}},{key:"_fireChange",value:function(e,t){this.fire("change:"+e,t)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}]),e}();sn(ni,Xt);var ri=function(){function e(t){h(this,e),this.document=t,this._cloneGroups=new Map}return m(e,[{key:"setSelection",value:function(e,t,n){this.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this.document.selection._setFocus(e,t)}},{key:"createText",value:function(e){return new bn(this.document,e)}},{key:"createAttributeElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Pr(this.document,e,t);return n.priority&&(r._priority=n.priority),n.id&&(r._id=n.id),r}},{key:"createContainerElement",value:function(e,t){return new cr(this.document,e,t)}},{key:"createEditableElement",value:function(e,t){var n=new wr(this.document,e,t);return n._document=this.document,n}},{key:"createEmptyElement",value:function(e,t){return new Nr(this.document,e,t)}},{key:"createUIElement",value:function(e,t,n){var r=new Jr(this.document,e,t);return n&&(r.render=n),r}},{key:"createRawElement",value:function(e,t,n){var r=new ei(this.document,e,t);return r.render=n||function(){},r}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){B(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"breakAttributes",value:function(e){return e instanceof xr?this._breakAttributes(e):this._breakAttributesRange(e)}},{key:"breakContainer",value:function(e){var t=e.parent;if(!t.is("containerElement"))throw new Kt.a("view-writer-break-non-container-element",this.document);if(!t.parent)throw new Kt.a("view-writer-break-root",this.document);if(e.isAtStart)return xr._createBefore(t);if(!e.isAtEnd){var n=t._clone(!1);this.insert(xr._createAfter(t),n);var r=new Sr(e,xr._createAt(t,"end")),i=new xr(n,0);this.move(r,i)}return xr._createAfter(t)}},{key:"mergeAttributes",value:function(e){var t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&0===n.childCount){var r=n.parent,i=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new xr(r,i))}var o=n.getChild(t-1),a=n.getChild(t);if(!o||!a)return e;if(o.is("$text")&&a.is("$text"))return ci(o,a);if(o.is("attributeElement")&&a.is("attributeElement")&&o.isSimilar(a)){var s=o.childCount;return o._appendChild(a.getChildren()),a._remove(),this._removeFromClonedElementsGroup(a),this.mergeAttributes(new xr(o,s))}return e}},{key:"mergeContainers",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new Kt.a("view-writer-merge-containers-invalid-position",this.document);var r=t.getChild(t.childCount-1),i=r instanceof bn?xr._createAt(r,"end"):xr._createAt(t,"end");return this.move(Sr._createIn(n),xr._createAt(t,"end")),this.remove(Sr._createOn(n)),i}},{key:"insert",value:function(e,t){!function e(t,n){var r,i=l(t);try{var o=function(){var t=r.value;if(!li.some((function(e){return t instanceof e})))throw new Kt.a("view-writer-insert-invalid-node-type",n);t.is("$text")||e(t.getChildren(),n)};for(i.s();!(r=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}}(t=an(t)?u(t):[t],this.document);var n=ii(e);if(!n)throw new Kt.a("view-writer-invalid-position-container",this.document);var r,i=this._breakAttributes(e,!0),o=n._insertChild(i.offset,t),a=l(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;this._addToClonedElementsGroup(s)}}catch(e){a.e(e)}finally{a.f()}var c=i.getShiftedBy(o),d=this.mergeAttributes(i);if(0===o)return new Sr(d,d);d.isEqual(i)||c.offset--;var f=this.mergeAttributes(c);return new Sr(d,f)}},{key:"remove",value:function(e){var t=e instanceof Sr?e:Sr._createOn(e);if(di(t,this.document),t.isCollapsed)return new ni(this.document);var n,r=this._breakAttributesRange(t,!0),i=r.start,o=r.end,a=i.parent,s=o.offset-i.offset,c=a._removeChildren(i.offset,s),u=l(c);try{for(u.s();!(n=u.n()).done;){var d=n.value;this._removeFromClonedElementsGroup(d)}}catch(e){u.e(e)}finally{u.f()}var f=this.mergeAttributes(i);return t.start=f,t.end=f.clone(),new ni(this.document,c)}},{key:"clear",value:function(e,t){di(e,this.document);var n,r=l(e.getWalker({direction:"backward",ignoreElementEnd:!0}));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.item,a=void 0;if(o.is("element")&&t.isSimilar(o))a=Sr._createOn(o);else if(!i.nextPosition.isAfter(e.start)&&o.is("$textProxy")){var s=o.getAncestors().find((function(e){return e.is("element")&&t.isSimilar(e)}));s&&(a=Sr._createIn(s))}a&&(a.end.isAfter(e.end)&&(a.end=e.end),a.start.isBefore(e.start)&&(a.start=e.start),this.remove(a))}}catch(e){r.e(e)}finally{r.f()}}},{key:"move",value:function(e,t){var n;if(t.isAfter(e.end)){var r=(t=this._breakAttributes(t,!0)).parent,i=r.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=r.childCount-i}else n=this.remove(e);return this.insert(t,n)}},{key:"wrap",value:function(e,t){if(!(t instanceof Pr))throw new Kt.a("view-writer-wrap-invalid-attribute",this.document);if(di(e,this.document),e.isCollapsed){var n=e.start;n.parent.is("element")&&(i=n.parent,!Array.from(i.getChildren()).some((function(e){return!e.is("uiElement")})))&&(n=n.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))),n=this._wrapPosition(n,t);var r=this.document.selection;return r.isCollapsed&&r.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new Sr(n)}return this._wrapRange(e,t);var i}},{key:"unwrap",value:function(e,t){if(!(t instanceof Pr))throw new Kt.a("view-writer-unwrap-invalid-attribute",this.document);if(di(e,this.document),e.isCollapsed)return e;var n=this._breakAttributesRange(e,!0),r=n.start,i=n.end,o=r.parent,a=this._unwrapChildren(o,r.offset,i.offset,t),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var c=this.mergeAttributes(a.end);return new Sr(s,c)}},{key:"rename",value:function(e,t){var n=new cr(this.document,e,t.getAttributes());return this.insert(xr._createAfter(t),n),this.move(Sr._createIn(t),xr._createAt(n,0)),this.remove(Sr._createOn(t)),n}},{key:"clearClonedElementsGroup",value:function(e){this._cloneGroups.delete(e)}},{key:"createPositionAt",value:function(e,t){return xr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return xr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return xr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Sr(e,t)}},{key:"createRangeOn",value:function(e){return Sr._createOn(e)}},{key:"createRangeIn",value:function(e){return Sr._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Tr(e,t,n)}},{key:"_wrapChildren",value:function(e,t,n,r){for(var i=t,o=[];i<n;){var a=e.getChild(i),s=a.is("$text"),c=a.is("attributeElement"),l=a.is("emptyElement"),u=a.is("uiElement"),d=a.is("rawElement");if(c&&this._wrapAttributeElement(r,a))o.push(new xr(e,i));else if(s||l||u||d||c&&oi(r,a)){var f=r._clone();a._remove(),f._appendChild(a),e._insertChild(i,f),this._addToClonedElementsGroup(f),o.push(new xr(e,i))}else c&&this._wrapChildren(a,0,a.childCount,r);i++}for(var h=0,p=0,m=o;p<m.length;p++){var v=m[p];(v.offset-=h,v.offset!=t)&&(this.mergeAttributes(v).isEqual(v)||(h++,n--))}return Sr._createFromParentsAndOffsets(e,t,e,n)}},{key:"_unwrapChildren",value:function(e,t,n,r){for(var i=t,o=[];i<n;){var a=e.getChild(i);if(a.is("attributeElement"))if(a.isSimilar(r)){var s=a.getChildren(),c=a.childCount;a._remove(),e._insertChild(i,s),this._removeFromClonedElementsGroup(a),o.push(new xr(e,i),new xr(e,i+c)),i+=c,n+=c-1}else this._unwrapAttributeElement(r,a)?(o.push(new xr(e,i),new xr(e,i+1)),i++):(this._unwrapChildren(a,0,a.childCount,r),i++);else i++}for(var l=0,u=0,d=o;u<d.length;u++){var f=d[u];(f.offset-=l,f.offset!=t&&f.offset!=n)&&(this.mergeAttributes(f).isEqual(f)||(l++,n--))}return Sr._createFromParentsAndOffsets(e,t,e,n)}},{key:"_wrapRange",value:function(e,t){var n=this._breakAttributesRange(e,!0),r=n.start,i=n.end,o=r.parent,a=this._wrapChildren(o,r.offset,i.offset,t),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var c=this.mergeAttributes(a.end);return new Sr(s,c)}},{key:"_wrapPosition",value:function(e,t){if(t.isSimilar(e.parent))return ai(e.clone());e.parent.is("$text")&&(e=si(e));var n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=function(){return!1},e.parent._insertChild(e.offset,n);var r=new Sr(e,e.getShiftedBy(1));this.wrap(r,t);var i=new xr(n.parent,n.index);n._remove();var o=i.nodeBefore,a=i.nodeAfter;return o instanceof bn&&a instanceof bn?ci(o,a):ai(i)}},{key:"_wrapAttributeElement",value:function(e,t){if(!fi(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;var n,r=l(e.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;if("class"!==i&&"style"!==i&&t.hasAttribute(i)&&t.getAttribute(i)!==e.getAttribute(i))return!1}}catch(e){r.e(e)}finally{r.f()}var o,a=l(e.getStyleNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(t.hasStyle(s)&&t.getStyle(s)!==e.getStyle(s))return!1}}catch(e){a.e(e)}finally{a.f()}var c,u=l(e.getAttributeKeys());try{for(u.s();!(c=u.n()).done;){var d=c.value;"class"!==d&&"style"!==d&&(t.hasAttribute(d)||this.setAttribute(d,e.getAttribute(d),t))}}catch(e){u.e(e)}finally{u.f()}var f,h=l(e.getStyleNames());try{for(h.s();!(f=h.n()).done;){var p=f.value;t.hasStyle(p)||this.setStyle(p,e.getStyle(p),t)}}catch(e){h.e(e)}finally{h.f()}var m,v=l(e.getClassNames());try{for(v.s();!(m=v.n()).done;){var g=m.value;t.hasClass(g)||this.addClass(g,t)}}catch(e){v.e(e)}finally{v.f()}return!0}},{key:"_unwrapAttributeElement",value:function(e,t){if(!fi(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;var n,r=l(e.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;if("class"!==i&&"style"!==i&&(!t.hasAttribute(i)||t.getAttribute(i)!==e.getAttribute(i)))return!1}}catch(e){r.e(e)}finally{r.f()}if(!t.hasClass.apply(t,u(e.getClassNames())))return!1;var o,a=l(e.getStyleNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!t.hasStyle(s)||t.getStyle(s)!==e.getStyle(s))return!1}}catch(e){a.e(e)}finally{a.f()}var c,d=l(e.getAttributeKeys());try{for(d.s();!(c=d.n()).done;){var f=c.value;"class"!==f&&"style"!==f&&this.removeAttribute(f,t)}}catch(e){d.e(e)}finally{d.f()}return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}},{key:"_breakAttributesRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.start,r=e.end;if(di(e,this.document),e.isCollapsed){var i=this._breakAttributes(e.start,t);return new Sr(i,i)}var o=this._breakAttributes(r,t),a=o.parent.childCount,s=this._breakAttributes(n,t);return o.offset+=o.parent.childCount-a,new Sr(s,o)}},{key:"_breakAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.offset,r=e.parent;if(e.parent.is("emptyElement"))throw new Kt.a("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new Kt.a("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new Kt.a("view-writer-cannot-break-raw-element",this.document);if(!t&&r.is("$text")&&ui(r.parent))return e.clone();if(ui(r))return e.clone();if(r.is("$text"))return this._breakAttributes(si(e),t);if(n==r.childCount){var i=new xr(r.parent,r.index+1);return this._breakAttributes(i,t)}if(0===n){var o=new xr(r.parent,r.index);return this._breakAttributes(o,t)}var a=r.index+1,s=r._clone();r.parent._insertChild(a,s),this._addToClonedElementsGroup(s);var c=r.childCount-n,l=r._removeChildren(n,c);s._appendChild(l);var u=new xr(r.parent,a);return this._breakAttributes(u,t)}},{key:"_addToClonedElementsGroup",value:function(e){if(e.root.is("rootElement")){if(e.is("element")){var t,n=l(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._addToClonedElementsGroup(r)}}catch(e){n.e(e)}finally{n.f()}}var i=e.id;if(i){var o=this._cloneGroups.get(i);o||(o=new Set,this._cloneGroups.set(i,o)),o.add(e),e._clonesGroup=o}}}},{key:"_removeFromClonedElementsGroup",value:function(e){if(e.is("element")){var t,n=l(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._removeFromClonedElementsGroup(r)}}catch(e){n.e(e)}finally{n.f()}}var i=e.id;if(i){var o=this._cloneGroups.get(i);o&&o.delete(e)}}}]),e}();function ii(e){for(var t=e.parent;!ui(t);){if(!t)return;t=t.parent}return t}function oi(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function ai(e){var t=e.nodeBefore;if(t&&t.is("$text"))return new xr(t,t.data.length);var n=e.nodeAfter;return n&&n.is("$text")?new xr(n,0):e}function si(e){if(e.offset==e.parent.data.length)return new xr(e.parent.parent,e.parent.index+1);if(0===e.offset)return new xr(e.parent.parent,e.parent.index);var t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new bn(e.root.document,t)),new xr(e.parent.parent,e.parent.index+1)}function ci(e,t){var n=e.data.length;return e._data+=t.data,t._remove(),new xr(e,n)}var li=[bn,Pr,cr,Nr,ei,Jr];function ui(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function di(e,t){var n=ii(e.start),r=ii(e.end);if(!n||!r||n!==r)throw new Kt.a("view-writer-invalid-range-container",t)}function fi(e,t){return null===e.id&&null===t.id}function hi(e){return"[object Text]"==Object.prototype.toString.call(e)}var pi=function(e){return e.createTextNode(" ")},mi=function(e){var t=e.createElement("br");return t.dataset.ckeFiller=!0,t},vi=function(){for(var e="",t=0;t<7;t++)e+="";return e}();function gi(e){return hi(e)&&e.data.substr(0,7)===vi}function bi(e){return 7==e.data.length&&gi(e)}function yi(e){return gi(e)?e.data.slice(7):e.data}function ki(e,t){if(t.keyCode==Ur.arrowleft){var n=t.domTarget.ownerDocument.defaultView.getSelection();if(1==n.rangeCount&&n.getRangeAt(0).collapsed){var r=n.getRangeAt(0).startContainer,i=n.getRangeAt(0).startOffset;gi(r)&&i<=7&&n.collapse(r,0)}}}function wi(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=n||function(e,t){return e===t},Array.isArray(e)||(e=Array.prototype.slice.call(e)),Array.isArray(t)||(t=Array.prototype.slice.call(t));var i=function(e,t,n){var r=_i(e,t,n);if(-1===r)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};var i=_i(Ci(e,r),Ci(t,r),n);return{firstIndex:r,lastIndexOld:e.length-i,lastIndexNew:t.length-i}}(e,t,n);return r?function(e,t){var n=e.firstIndex,r=e.lastIndexOld,i=e.lastIndexNew;if(-1===n)return Array(t).fill("equal");var o=[];return n>0&&(o=o.concat(Array(n).fill("equal"))),i-n>0&&(o=o.concat(Array(i-n).fill("insert"))),r-n>0&&(o=o.concat(Array(r-n).fill("delete"))),i<t&&(o=o.concat(Array(t-i).fill("equal"))),o}(i,t.length):function(e,t){var n=[],r=t.firstIndex,i=t.lastIndexOld,o=t.lastIndexNew;return o-r>0&&n.push({index:r,type:"insert",values:e.slice(r,o)}),i-r>0&&n.push({index:r+(o-r),type:"delete",howMany:i-r}),n}(t,i)}function _i(e,t,n){for(var r=0;r<Math.max(e.length,t.length);r++)if(void 0===e[r]||void 0===t[r]||!n(e[r],t[r]))return r;return-1}function Ci(e,t){return e.slice(t).reverse()}function Ai(e,t,n){n=n||function(e,t){return e===t};var r,i,o=e.length,a=t.length;if(o>200||a>200||o+a>300)return Ai.fastDiff(e,t,n,!0);if(a<o){var s=e;e=t,t=s,r="delete",i="insert"}else r="insert",i="delete";var c=e.length,l=t.length,u=l-c,d={},f={};function h(o){var a=(void 0!==f[o-1]?f[o-1]:-1)+1,s=void 0!==f[o+1]?f[o+1]:-1,u=a>s?-1:1;d[o+u]&&(d[o]=d[o+u].slice(0)),d[o]||(d[o]=[]),d[o].push(a>s?r:i);for(var h=Math.max(a,s),p=h-o;p<c&&h<l&&n(e[p],t[h]);)p++,h++,d[o].push("equal");return h}var p,m=0;do{for(p=-m;p<u;p++)f[p]=h(p);for(p=u+m;p>u;p--)f[p]=h(p);f[u]=h(u),m++}while(f[u]!==l);return d[u].slice(1)}function xi(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function Si(e){var t=e.parentNode;t&&t.removeChild(e)}function Mi(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}Ai.fastDiff=wi;var Ei=function(){function e(t,n){h(this,e),this.domDocuments=new Set,this.domConverter=t,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=n,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}return m(e,[{key:"markToSync",value:function(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new Kt.a("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}},{key:"render",value:function(){var e,t,n=l(this.markedChildren);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._updateChildrenMappings(r)}}catch(e){n.e(e)}finally{n.f()}this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent));var i,o=l(this.markedAttributes);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._updateAttrs(a)}}catch(e){o.e(e)}finally{o.f()}var s,c=l(this.markedChildren);try{for(c.s();!(s=c.n()).done;){var u=s.value;this._updateChildren(u,{inlineFillerPosition:e})}}catch(e){c.e(e)}finally{c.f()}var d,f=l(this.markedTexts);try{for(f.s();!(d=f.n()).done;){var h=d.value;!this.markedChildren.has(h.parent)&&this.domConverter.mapViewToDom(h.parent)&&this._updateText(h,{inlineFillerPosition:e})}}catch(e){f.e(e)}finally{f.f()}if(e){var p=this.domConverter.viewPositionToDom(e),m=p.parent.ownerDocument;gi(p.parent)?this._inlineFiller=p.parent:this._inlineFiller=Ti(m,p.parent,p.offset)}else this._inlineFiller=null;this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}},{key:"_updateChildrenMappings",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n=this.domConverter.mapViewToDom(e).childNodes,r=Array.from(this.domConverter.viewChildrenToDom(e,t.ownerDocument,{withChildren:!1})),i=this._diffNodeLists(n,r),o=this._findReplaceActions(i,n,r);if(-1!==o.indexOf("replace")){var a,s={equal:0,insert:0,delete:0},c=l(o);try{for(c.s();!(a=c.n()).done;){var u=a.value;if("replace"===u){var d=s.equal+s.insert,f=s.equal+s.delete,h=e.getChild(d);!h||h.is("uiElement")||h.is("rawElement")||this._updateElementMappings(h,n[f]),Si(r[d]),s.equal++}else s[u]++}}catch(e){c.e(e)}finally{c.f()}}}}},{key:"_updateElementMappings",value:function(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}},{key:"_getInlineFillerPosition",value:function(){var e=this.selection.getFirstPosition();return e.parent.is("$text")?xr._createBefore(this.selection.getFirstPosition().parent):e}},{key:"_isSelectionInInlineFiller",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&hi(t.parent)&&gi(t.parent))}},{key:"_removeInlineFiller",value:function(){var e=this._inlineFiller;if(!gi(e))throw new Kt.a("view-renderer-filler-was-lost",this);bi(e)?e.parentNode.removeChild(e):e.data=e.data.substr(7),this._inlineFiller=null}},{key:"_needsInlineFillerAtSelection",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;if(!this.domConverter.mapViewToDom(t.root))return!1;if(!t.is("element"))return!1;if(!function(e){if("false"==e.getAttribute("contenteditable"))return!1;var t=e.findAncestor((function(e){return e.hasAttribute("contenteditable")}));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;if(n===t.getFillerOffset())return!1;var r=e.nodeBefore,i=e.nodeAfter;return!(r instanceof bn||i instanceof bn)}},{key:"_updateText",value:function(e,t){var n=this.domConverter.findCorrespondingDomText(e),r=this.domConverter.viewToDom(e,n.ownerDocument),i=n.data,o=r.data,a=t.inlineFillerPosition;if(a&&a.parent==e.parent&&a.offset==e.index&&(o=vi+o),i!=o){var s,c=l(wi(i,o));try{for(c.s();!(s=c.n()).done;){var u=s.value;"insert"===u.type?n.insertData(u.index,u.values.join("")):n.deleteData(u.index,u.howMany)}}catch(e){c.e(e)}finally{c.f()}}}},{key:"_updateAttrs",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n,r=Array.from(t.attributes).map((function(e){return e.name})),i=l(e.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var o=n.value;t.setAttribute(o,e.getAttribute(o))}}catch(e){i.e(e)}finally{i.f()}var a,s=l(r);try{for(s.s();!(a=s.n()).done;){var c=a.value;e.hasAttribute(c)||t.removeAttribute(c)}}catch(e){s.e(e)}finally{s.f()}}}},{key:"_updateChildren",value:function(e,t){var n=this.domConverter.mapViewToDom(e);if(n){var r=t.inlineFillerPosition,i=this.domConverter.mapViewToDom(e).childNodes,o=Array.from(this.domConverter.viewChildrenToDom(e,n.ownerDocument,{bind:!0,inlineFillerPosition:r}));r&&r.parent===e&&Ti(n.ownerDocument,o,r.offset);var a,s=this._diffNodeLists(i,o),c=0,u=new Set,d=l(s);try{for(d.s();!(a=d.n()).done;){var f=a.value;"delete"===f?(u.add(i[c]),Si(i[c])):"equal"===f&&c++}}catch(e){d.e(e)}finally{d.f()}c=0;var h,p=l(s);try{for(p.s();!(h=p.n()).done;){var m=h.value;"insert"===m?(xi(n,c,o[c]),c++):"equal"===m&&(this._markDescendantTextToSync(this.domConverter.domToView(o[c])),c++)}}catch(e){p.e(e)}finally{p.f()}var v,g=l(u);try{for(g.s();!(v=g.n()).done;){var b=v.value;b.parentNode||this.domConverter.unbindDomElement(b)}}catch(e){g.e(e)}finally{g.f()}}}},{key:"_diffNodeLists",value:function(e,t){return Ai(e=function(e,t){var n=Array.from(e);return 0!=n.length&&t?(n[n.length-1]==t&&n.pop(),n):n}(e,this._fakeSelectionContainer),t,Oi.bind(null,this.domConverter))}},{key:"_findReplaceActions",value:function(e,t,n){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;var r,i=[],o=[],a=[],s={equal:0,insert:0,delete:0},c=l(e);try{for(c.s();!(r=c.n()).done;){var u=r.value;"insert"===u?a.push(n[s.equal+s.insert]):"delete"===u?o.push(t[s.equal+s.delete]):((i=i.concat(Ai(o,a,Di).map((function(e){return"equal"===e?"replace":e})))).push("equal"),o=[],a=[]),s[u]++}}catch(e){c.e(e)}finally{c.f()}return i.concat(Ai(o,a,Di).map((function(e){return"equal"===e?"replace":e})))}},{key:"_markDescendantTextToSync",value:function(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element")){var t,n=l(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._markDescendantTextToSync(r)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"_updateSelection",value:function(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();var e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):(this._removeFakeSelection(),this._updateDomSelection(e)))}},{key:"_updateFakeSelection",value:function(e){var t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){var t=e.createElement("div");return Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t}(t));var n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),this._fakeSelectionNeedsUpdate(e)){n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";var r=t.getSelection(),i=t.createRange();r.removeAllRanges(),i.selectNodeContents(n),r.addRange(i)}}},{key:"_updateDomSelection",value:function(e){var t=e.ownerDocument.defaultView.getSelection();if(this._domSelectionNeedsUpdate(t)){var n=this.domConverter.viewPositionToDom(this.selection.anchor),r=this.domConverter.viewPositionToDom(this.selection.focus);e.focus(),t.collapse(n.parent,n.offset),t.extend(r.parent,r.offset),Fr&&function(e,t){var n=e.parent;if(n.nodeType==Node.ELEMENT_NODE&&e.offset==n.childNodes.length-1){var r=n.childNodes[e.offset];r&&"BR"==r.tagName&&t.addRange(t.getRangeAt(0))}}(r,t)}}},{key:"_domSelectionNeedsUpdate",value:function(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;var t=e&&this.domConverter.domSelectionToView(e);return!(t&&this.selection.isEqual(t)||!this.selection.isCollapsed&&this.selection.isSimilar(t))}},{key:"_fakeSelectionNeedsUpdate",value:function(e){var t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}},{key:"_removeDomSelection",value:function(){var e,t=l(this.domDocuments);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.getSelection().rangeCount){var r=n.activeElement,i=this.domConverter.mapDomToView(r);r&&i&&n.getSelection().removeAllRanges()}}}catch(e){t.e(e)}finally{t.f()}}},{key:"_removeFakeSelection",value:function(){var e=this._fakeSelectionContainer;e&&e.remove()}},{key:"_updateFocus",value:function(){if(this.isFocused){var e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}]),e}();function Ti(e,t,n){var r=t instanceof Array?t:t.childNodes,i=r[n];if(hi(i))return i.data=vi+i.data,i;var o=e.createTextNode(vi);return Array.isArray(t)?r.splice(n,0,o):xi(t,n,o),o}function Di(e,t){return Mi(e)&&Mi(t)&&!hi(e)&&!hi(t)&&e.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.COMMENT_NODE&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function Oi(e,t,n){return t===n||(hi(t)&&hi(n)?t.data===n.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(n)))}sn(Ei,mr);var Pi={window:window,document:document};function Ii(e){for(var t=0;e.previousSibling;)e=e.previousSibling,t++;return t}function ji(e){for(var t=[];e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}var Ni=mi(document),Ri=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e),this.document=t,this.blockFillerMode=n.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._blockFiller="br"==this.blockFillerMode?mi:pi,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}return m(e,[{key:"bindFakeSelection",value:function(e,t){this._fakeSelectionMapping.set(e,new Tr(t))}},{key:"fakeSelectionToView",value:function(e){return this._fakeSelectionMapping.get(e)}},{key:"bindElements",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"unbindDomElement",value:function(e){var t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);var n,r=l(e.childNodes);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.unbindDomElement(i)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"bindDocumentFragments",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"viewToDom",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.is("$text")){var i=this._processDataFromViewText(e);return t.createTextNode(i)}if(this.mapViewToDom(e))return this.mapViewToDom(e);if(e.is("documentFragment"))n=t.createDocumentFragment(),r.bind&&this.bindDocumentFragments(n,e);else{if(e.is("uiElement"))return n=e.render(t),r.bind&&this.bindElements(n,e),n;n=e.hasAttribute("xmlns")?t.createElementNS(e.getAttribute("xmlns"),e.name):t.createElement(e.name),e.is("rawElement")&&e.render(n),r.bind&&this.bindElements(n,e);var o,a=l(e.getAttributeKeys());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.setAttribute(s,e.getAttribute(s))}}catch(e){a.e(e)}finally{a.f()}}if(r.withChildren||void 0===r.withChildren){var c,u=l(this.viewChildrenToDom(e,t,r));try{for(u.s();!(c=u.n()).done;){var d=c.value;n.appendChild(d)}}catch(e){u.e(e)}finally{u.f()}}return n}},{key:"viewChildrenToDom",value:o.a.mark((function e(t,n){var r,i,a,s,c,u,d=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=d.length>2&&void 0!==d[2]?d[2]:{},i=t.getFillerOffset&&t.getFillerOffset(),a=0,s=l(t.getChildren()),e.prev=4,s.s();case 6:if((c=s.n()).done){e.next=17;break}if(u=c.value,e.t0=i===a,!e.t0){e.next=12;break}return e.next=12,this._blockFiller(n);case 12:return e.next=14,this.viewToDom(u,n,r);case 14:a++;case 15:e.next=6;break;case 17:e.next=22;break;case 19:e.prev=19,e.t1=e.catch(4),s.e(e.t1);case 22:return e.prev=22,s.f(),e.finish(22);case 25:if(e.t2=i===a,!e.t2){e.next=29;break}return e.next=29,this._blockFiller(n);case 29:case"end":return e.stop()}}),e,this,[[4,19,22,25]])}))},{key:"viewRangeToDom",value:function(e){var t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),r=document.createRange();return r.setStart(t.parent,t.offset),r.setEnd(n.parent,n.offset),r}},{key:"viewPositionToDom",value:function(e){var t,n,r,i=e.parent;if(i.is("$text")){var o=this.findCorrespondingDomText(i);if(!o)return null;var a=e.offset;return gi(o)&&(a+=7),{parent:o,offset:a}}if(0===e.offset){if(!(t=this.mapViewToDom(i)))return null;r=t.childNodes[0]}else{var s=e.nodeBefore;if(!(n=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(e.nodeBefore)))return null;t=n.parentNode,r=n.nextSibling}return hi(r)&&gi(r)?{parent:r,offset:7}:{parent:t,offset:n?Ii(n)+1:0}}},{key:"domToView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(e,this.blockFillerMode))return null;var n,r=this.getHostViewElement(e,this._domToViewMapping);if(r)return r;if(hi(e)){if(bi(e))return null;var i=this._processDataFromDomText(e);return""===i?null:new bn(this.document,i)}if(this.isComment(e))return null;if(this.mapDomToView(e))return this.mapDomToView(e);if(this.isDocumentFragment(e))n=new ni(this.document),t.bind&&this.bindDocumentFragments(e,n);else{var o=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();n=new ar(this.document,o),t.bind&&this.bindElements(e,n);for(var a=e.attributes,s=a.length-1;s>=0;s--)n._setAttribute(a[s].name,a[s].value)}if(t.withChildren||void 0===t.withChildren){var c,u=l(this.domChildrenToView(e,t));try{for(u.s();!(c=u.n()).done;){var d=c.value;n._appendChild(d)}}catch(e){u.e(e)}finally{u.f()}}return n}},{key:"domChildrenToView",value:o.a.mark((function e(t){var n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=s.length>1&&void 0!==s[1]?s[1]:{},r=0;case 2:if(!(r<t.childNodes.length)){e.next=11;break}if(i=t.childNodes[r],a=this.domToView(i,n),e.t0=null!==a,!e.t0){e.next=8;break}return e.next=8,a;case 8:r++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)}))},{key:"domSelectionToView",value:function(e){if(1===e.rangeCount){var t=e.getRangeAt(0).startContainer;hi(t)&&(t=t.parentNode);var n=this.fakeSelectionToView(t);if(n)return n}for(var r=this.isDomSelectionBackward(e),i=[],o=0;o<e.rangeCount;o++){var a=e.getRangeAt(o),s=this.domRangeToView(a);s&&i.push(s)}return new Tr(i,{backward:r})}},{key:"domRangeToView",value:function(e){var t=this.domPositionToView(e.startContainer,e.startOffset),n=this.domPositionToView(e.endContainer,e.endOffset);return t&&n?new Sr(t,n):null}},{key:"domPositionToView",value:function(e,t){if(this.isBlockFiller(e,this.blockFillerMode))return this.domPositionToView(e.parentNode,Ii(e));var n=this.mapDomToView(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return xr._createBefore(n);if(hi(e)){if(bi(e))return this.domPositionToView(e.parentNode,Ii(e));var r=this.findCorrespondingViewText(e),i=t;return r?(gi(e)&&(i=(i-=7)<0?0:i),new xr(r,i)):null}if(0===t){var o=this.mapDomToView(e);if(o)return new xr(o,0)}else{var a=e.childNodes[t-1],s=hi(a)?this.findCorrespondingViewText(a):this.mapDomToView(a);if(s&&s.parent)return new xr(s.parent,s.index+1)}return null}},{key:"mapDomToView",value:function(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}},{key:"findCorrespondingViewText",value:function(e){if(bi(e))return null;var t=this.getHostViewElement(e);if(t)return t;var n=e.previousSibling;if(n){if(!this.isElement(n))return null;var r=this.mapDomToView(n);if(r)return r.nextSibling instanceof bn?r.nextSibling:null}else{var i=this.mapDomToView(e.parentNode);if(i){var o=i.getChild(0);return o instanceof bn?o:null}}return null}},{key:"mapViewToDom",value:function(e){return this._viewToDomMapping.get(e)}},{key:"findCorrespondingDomText",value:function(e){var t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}},{key:"focus",value:function(e){var t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){var n=Pi.window,r=n.scrollX,i=n.scrollY,o=[];Bi(t,(function(e){var t=e.scrollLeft,n=e.scrollTop;o.push([t,n])})),t.focus(),Bi(t,(function(e){var t=c(o.shift(),2),n=t[0],r=t[1];e.scrollLeft=n,e.scrollTop=r})),Pi.window.scrollTo(r,i)}}},{key:"isElement",value:function(e){return e&&e.nodeType==Node.ELEMENT_NODE}},{key:"isDocumentFragment",value:function(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}},{key:"isComment",value:function(e){return e&&e.nodeType==Node.COMMENT_NODE}},{key:"isBlockFiller",value:function(e){return"br"==this.blockFillerMode?e.isEqualNode(Ni):!("BR"!==e.tagName||!Fi(e,this.blockElements)||1!==e.parentNode.childNodes.length)||function(e,t){return hi(e)&&" "==e.data&&Fi(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements)}},{key:"isDomSelectionBackward",value:function(e){if(e.isCollapsed)return!1;var t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);var n=t.collapsed;return t.detach(),n}},{key:"getHostViewElement",value:function(e){var t=ji(e);for(t.pop();t.length;){var n=t.pop(),r=this._domToViewMapping.get(n);if(r&&(r.is("uiElement")||r.is("rawElement")))return r}return null}},{key:"isDomSelectionCorrect",value:function(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}},{key:"_isDomSelectionPositionCorrect",value:function(e,t){if(hi(e)&&gi(e)&&t<7)return!1;if(this.isElement(e)&&gi(e.childNodes[t]))return!1;var n=this.mapDomToView(e);return!n||!n.is("uiElement")&&!n.is("rawElement")}},{key:"_processDataFromViewText",value:function(e){var t=this,n=e.data;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return n;if(" "==n.charAt(0)){var r=this._getTouchingViewTextNode(e,!1);(!r||!this._nodeEndsWithSpace(r))&&r||(n=" "+n.substr(1))}if(" "==n.charAt(n.length-1)){var i=this._getTouchingViewTextNode(e,!0);" "!=n.charAt(n.length-2)&&i&&" "!=i.data.charAt(0)||(n=n.substr(0,n.length-1)+" ")}return n.replace(/ {2}/g," ")}},{key:"_nodeEndsWithSpace",value:function(e){var t=this;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return!1;var n=this._processDataFromViewText(e);return" "==n.charAt(n.length-1)}},{key:"_processDataFromDomText",value:function(e){var t=e.data;if(Li(e,this.preElements))return yi(e);t=t.replace(/[ \n\t\r]{1,}/g," ");var n=this._getTouchingInlineDomNode(e,!1),r=this._getTouchingInlineDomNode(e,!0),i=this._checkShouldLeftTrimDomText(n),o=this._checkShouldRightTrimDomText(e,r);return i&&(t=t.replace(/^ /,"")),o&&(t=t.replace(/ $/,"")),t=(t=yi(new Text(t))).replace(/ \u00A0/g," "),(/( |\u00A0)\u00A0$/.test(t)||!r||r.data&&" "==r.data.charAt(0))&&(t=t.replace(/\u00A0$/," ")),i&&(t=t.replace(/^\u00A0/," ")),t}},{key:"_checkShouldLeftTrimDomText",value:function(e){return!e||!!zt(e)||/[^\S\u00A0]/.test(e.data.charAt(e.data.length-1))}},{key:"_checkShouldRightTrimDomText",value:function(e,t){return!t&&!gi(e)}},{key:"_getTouchingViewTextNode",value:function(e,t){var n,r=l(new Ar({startPosition:t?xr._createAfter(e):xr._createBefore(e),direction:t?"forward":"backward"}));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.item.is("containerElement"))return null;if(i.item.is("element","br"))return null;if(i.item.is("$textProxy"))return i.item}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"_getTouchingInlineDomNode",value:function(e,t){if(!e.parentNode)return null;var n=t?"nextNode":"previousNode",r=e.ownerDocument,i=ji(e)[0],o=r.createTreeWalker(i,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){return hi(e)||"BR"==e.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});o.currentNode=e;var a=o[n]();if(null!==a){var s=function(e,t){for(var n=ji(e),r=ji(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}(e,a);if(s&&!Li(e,this.blockElements,s)&&!Li(a,this.blockElements,s))return a}return null}}]),e}();function Li(e,t,n){var r=ji(e);return n&&(r=r.slice(r.indexOf(n)+1)),r.some((function(e){return e.tagName&&t.includes(e.tagName.toLowerCase())}))}function Bi(e,t){for(;e&&e!=Pi.document;)t(e),e=e.parentNode}function Fi(e,t){var n=e.parentNode;return n&&n.tagName&&t.includes(n.tagName.toLowerCase())}function zi(e){var t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}var Vi=ur({},Xt,{listenTo:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(Mi(e)||zi(e)){var o=this._getProxyEmitter(e)||new $i(e);o.attach.apply(o,r),e=o}(t=Xt.listenTo).call.apply(t,[this,e].concat(r))},stopListening:function(e,t,n){if(Mi(e)||zi(e)){var r=this._getProxyEmitter(e);if(!r)return;e=r}Xt.stopListening.call(this,e,t,n),e instanceof $i&&e.detach(t)},_getProxyEmitter:function(e){return t=this,n=Hi(e),t[Gt]&&t[Gt][n]?t[Gt][n].emitter:null;var t,n}}),$i=function e(t){h(this,e),Jt(this,Hi(t)),this._domNode=t};function Hi(e){return e["data-ck-expando"]||(e["data-ck-expando"]=Wt())}ur($i.prototype,Xt,{attach:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._domListeners||!this._domListeners[e]){var r={capture:!!n.useCapture,passive:!!n.usePassive},i=this._createDomListener(e,r);this._domNode.addEventListener(e,i,r),this._domListeners||(this._domListeners={}),this._domListeners[e]=i}},detach:function(e){var t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()},_createDomListener:function(e,t){var n=this,r=function(t){n.fire(e,t)};return r.removeListener=function(){n._domNode.removeEventListener(e,r,t),delete n._domListeners[e]},r}});var Ui=function(){function e(t){h(this,e),this.view=t,this.document=t.document,this.isEnabled=!1}return m(e,[{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"destroy",value:function(){this.disable(),this.stopListening()}},{key:"checkShouldIgnoreEventFromTarget",value:function(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}]),e}();sn(Ui,Vi);function qi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new he;++t<n;)this.add(e[t])}qi.prototype.add=qi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},qi.prototype.has=function(e){return this.__data__.has(e)};var Wi=qi,Yi=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Ki=function(e,t){return e.has(t)},Gi=function(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var u=-1,d=!0,f=2&n?new Wi:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var h=e[u],p=t[u];if(r)var m=a?r(p,h,u,t,e,o):r(h,p,u,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!Yi(t,(function(e,t){if(!Ki(f,t)&&(h===e||i(h,e,n,r,o)))return f.push(t)}))){d=!1;break}}else if(h!==p&&!i(h,p,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d},Qi=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Xi=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Ji=p?p.prototype:void 0,Zi=Ji?Ji.valueOf:void 0,eo=Object.prototype.hasOwnProperty,to="[object Arguments]",no="[object Array]",ro="[object Object]",io=Object.prototype.hasOwnProperty,oo=function(e,t,n,r,i,o){var a=Se(e),s=Se(t),c=a?no:yt(e),l=s?no:yt(t),u=(c=c==to?ro:c)==ro,d=(l=l==to?ro:l)==ro,f=c==l;if(f&&Object(Me.a)(e)){if(!Object(Me.a)(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new me),a||Ne(e)?Gi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new wt(e),new wt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return F(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Qi;case"[object Set]":var c=1&r;if(s||(s=Xi),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=Gi(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(Zi)return Zi.call(e)==Zi.call(t)}return!1}(e,t,c,n,r,i,o);if(!(1&n)){var h=u&&io.call(e,"__wrapped__"),p=d&&io.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,v=p?t.value():t;return o||(o=new me),i(m,v,n,r,o)}}return!!f&&(o||(o=new me),function(e,t,n,r,i,o){var a=1&n,s=nt(e),c=s.length;if(c!=nt(t).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in t:eo.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var h=a;++l<c;){var p=e[u=s[l]],m=t[u];if(r)var v=a?r(m,p,u,t,e,o):r(p,m,u,e,t,o);if(!(void 0===v?p===m||i(p,m,n,r,o):v)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o))},ao=function e(t,n,r,i,o){return t===n||(null==t||null==n||!P(t)&&!P(n)?t!=t&&n!=n:oo(t,n,r,i,e,o))},so=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?ao(e,t,void 0,n):!!r},co=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},r.domConverter=e.domConverter,r.renderer=e._renderer,r._domElements=[],r._mutationObserver=new window.MutationObserver(r._onMutations.bind(y(r))),r}return m(n,[{key:"flush",value:function(){this._onMutations(this._mutationObserver.takeRecords())}},{key:"observe",value:function(e){this._domElements.push(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}},{key:"enable",value:function(){s(A(n.prototype),"enable",this).call(this);var e,t=l(this._domElements);try{for(t.s();!(e=t.n()).done;){var r=e.value;this._mutationObserver.observe(r,this._config)}}catch(e){t.e(e)}finally{t.f()}}},{key:"disable",value:function(){s(A(n.prototype),"disable",this).call(this),this._mutationObserver.disconnect()}},{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this),this._mutationObserver.disconnect()}},{key:"_onMutations",value:function(e){if(0!==e.length){var t,n=this.domConverter,r=new Map,i=new Set,o=l(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;if("childList"===a.type){var s=n.mapDomToView(a.target);if(s&&(s.is("uiElement")||s.is("rawElement")))continue;s&&!this._isBogusBrMutation(a)&&i.add(s)}}}catch(e){o.e(e)}finally{o.f()}var c,u=l(e);try{for(u.s();!(c=u.n()).done;){var d=c.value,f=n.mapDomToView(d.target);if((!f||!f.is("uiElement")&&!f.is("rawElement"))&&"characterData"===d.type){var h=n.findCorrespondingViewText(d.target);h&&!i.has(h.parent)?r.set(h,{type:"text",oldText:h.data,newText:yi(d.target),node:h}):!h&&gi(d.target)&&i.add(n.mapDomToView(d.target.parentNode))}}}catch(e){u.e(e)}finally{u.f()}var p,m=[],v=l(r.values());try{for(v.s();!(p=v.n()).done;){var g=p.value;this.renderer.markToSync("text",g.node),m.push(g)}}catch(e){v.e(e)}finally{v.f()}var b,y=l(i);try{for(y.s();!(b=y.n()).done;){var k=b.value,w=n.mapViewToDom(k),_=Array.from(k.getChildren()),C=Array.from(n.domChildrenToView(w,{withChildren:!1}));so(_,C,E)||(this.renderer.markToSync("children",k),m.push({type:"children",oldChildren:_,newChildren:C,node:k}))}}catch(e){y.e(e)}finally{y.f()}var A=e[0].target.ownerDocument.getSelection(),x=null;if(A&&A.anchorNode){var S=n.domPositionToView(A.anchorNode,A.anchorOffset),M=n.domPositionToView(A.focusNode,A.focusOffset);S&&M&&(x=new Tr(S)).setFocus(M)}m.length&&(this.document.fire("mutations",m,x),this.view.forceRender())}function E(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}}},{key:"_isBogusBrMutation",value:function(e){var t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}]),n}(Ui),lo=function(){function e(t,n,r){h(this,e),this.view=t,this.document=t.document,this.domEvent=n,this.domTarget=n.target,ur(this,r)}return m(e,[{key:"preventDefault",value:function(){this.domEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.domEvent.stopPropagation()}},{key:"target",get:function(){return this.view.domConverter.mapDomToView(this.domTarget)}}]),e}(),uo=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).useCapture=!1,r}return m(n,[{key:"observe",value:function(e){var t=this;("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((function(n){t.listenTo(e,n,(function(e,n){t.isEnabled&&!t.checkShouldIgnoreEventFromTarget(n.target)&&t.onDomEvent(n)}),{useCapture:t.useCapture})}))}},{key:"fire",value:function(e,t,n){this.isEnabled&&this.document.fire(e,new lo(this.view,t,n))}}]),n}(Ui),fo=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType=["keydown","keyup"],r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e,{keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey||e.metaKey,shiftKey:e.shiftKey,get keystroke(){return qr(this)}})}}]),n}(uo),ho=function(){return f.a.Date.now()},po=/^\s+|\s+$/g,mo=/^[-+]0x[0-9a-f]+$/i,vo=/^0b[01]+$/i,go=/^0o[0-7]+$/i,bo=parseInt,yo=function(e){if("number"==typeof e)return e;if(Cn(e))return NaN;if(q(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=q(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(po,"");var n=vo.test(e);return n||go.test(e)?bo(e.slice(2),n?2:8):mo.test(e)?NaN:+e},ko=Math.max,wo=Math.min,_o=function(e,t,n){var r,i,o,a,s,c,l=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function p(e){return l=e,s=setTimeout(v,t),u?h(e):a}function m(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=o}function v(){var e=ho();if(m(e))return g(e);s=setTimeout(v,function(e){var n=t-(e-c);return d?wo(n,o-(e-l)):n}(e))}function g(e){return s=void 0,f&&r?h(e):(r=i=void 0,a)}function b(){var e=ho(),n=m(e);if(r=arguments,i=this,c=e,n){if(void 0===s)return p(c);if(d)return clearTimeout(s),s=setTimeout(v,t),h(c)}return void 0===s&&(s=setTimeout(v,t)),a}return t=yo(t)||0,q(n)&&(u=!!n.leading,o=(d="maxWait"in n)?ko(yo(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0},b.flush=function(){return void 0===s?a:g(ho())},b},Co=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._fireSelectionChangeDoneDebounced=_o((function(e){return r.document.fire("selectionChangeDone",e)}),200),r}return m(n,[{key:"observe",value:function(){var e=this,t=this.document;t.on("keydown",(function(n,r){t.selection.isFake&&Kr(r.keyCode)&&e.isEnabled&&(r.preventDefault(),e._handleSelectionMove(r.keyCode))}),{priority:"lowest"})}},{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionMove",value:function(e){var t=this.document.selection,n=new Tr(t.getRanges(),{backward:t.isBackward,fake:!1});e!=Ur.arrowleft&&e!=Ur.arrowup||n.setTo(n.getFirstPosition()),e!=Ur.arrowright&&e!=Ur.arrowdown||n.setTo(n.getLastPosition());var r={oldSelection:t,newSelection:n,domSelection:null};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}]),n}(Ui),Ao=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).mutationObserver=e.getObserver(co),r.selection=r.document.selection,r.domConverter=e.domConverter,r._documents=new WeakSet,r._fireSelectionChangeDoneDebounced=_o((function(e){return r.document.fire("selectionChangeDone",e)}),200),r._clearInfiniteLoopInterval=setInterval((function(){return r._clearInfiniteLoop()}),1e3),r._loopbackCounter=0,r}return m(n,[{key:"observe",value:function(e){var t=this,n=e.ownerDocument;this._documents.has(n)||(this.listenTo(n,"selectionchange",(function(e,r){t._handleSelectionChange(r,n)})),this._documents.add(n))}},{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionChange",value:function(e,t){if(this.isEnabled){var n=t.defaultView.getSelection();if(!this.checkShouldIgnoreEventFromTarget(n.anchorNode)){this.mutationObserver.flush();var r=this.domConverter.domSelectionToView(n);if(0!=r.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(r)&&this.domConverter.isDomSelectionCorrect(n)||++this._loopbackCounter>60))if(this.selection.isSimilar(r))this.view.forceRender();else{var i={oldSelection:this.selection,newSelection:r,domSelection:n};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}else this.view.hasDomSelection=!1}}}},{key:"_clearInfiniteLoop",value:function(){this._loopbackCounter=0}}]),n}(Ui),xo=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).domEventType=["focus","blur"],r.useCapture=!0;var i=r.document;return i.on("focus",(function(){i.isFocused=!0,r._renderTimeoutId=setTimeout((function(){return e.forceRender()}),50)})),i.on("blur",(function(t,n){var r=i.selection.editableElement;null!==r&&r!==n.target||(i.isFocused=!1,e.forceRender())})),r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}},{key:"destroy",value:function(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),s(A(n.prototype),"destroy",this).call(this)}}]),n}(uo),So=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).domEventType=["compositionstart","compositionupdate","compositionend"];var i=r.document;return i.on("compositionstart",(function(){i.isComposing=!0})),i.on("compositionend",(function(){i.isComposing=!1})),r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo),Mo=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType=["beforeinput"],r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo);function Eo(e){return"[object Range]"==Object.prototype.toString.apply(e)}function To(e){var t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}var Do=["top","right","bottom","left","width","height"],Oo=function(){function e(t){h(this,e);var n=Eo(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),zt(t)||n)if(n){var r=e.getDomRangeRects(t);Po(this,e.getBoundingRect(r))}else Po(this,t.getBoundingClientRect());else if(zi(t)){var i=t.innerWidth,o=t.innerHeight;Po(this,{top:0,right:i,bottom:o,left:0,width:i,height:o})}else Po(this,t)}return m(e,[{key:"clone",value:function(){return new e(this)}},{key:"moveTo",value:function(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}},{key:"moveBy",value:function(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}},{key:"getIntersection",value:function(t){var n={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 n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new e(n)}},{key:"getIntersectionArea",value:function(e){var t=this.getIntersection(e);return t?t.getArea():0}},{key:"getArea",value:function(){return this.width*this.height}},{key:"getVisible",value:function(){var t=this._source,n=this.clone();if(!Io(t))for(var r=t.parentNode||t.commonAncestorContainer;r&&!Io(r);){var i=new e(r),o=n.getIntersection(i);if(!o)return null;o.getArea()<n.getArea()&&(n=o),r=r.parentNode}return n}},{key:"isEqual",value:function(e){var t,n=l(Do);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(this[r]!==e[r])return!1}}catch(e){n.e(e)}finally{n.f()}return!0}},{key:"contains",value:function(e){var t=this.getIntersection(e);return!(!t||!t.isEqual(e))}},{key:"excludeScrollbarsAndBorders",value:function(){var e,t,n,r=this._source;if(zi(r))e=r.innerWidth-r.document.documentElement.clientWidth,t=r.innerHeight-r.document.documentElement.clientHeight,n=r.getComputedStyle(r.document.documentElement).direction;else{var i=To(this._source);e=r.offsetWidth-r.clientWidth-i.left-i.right,t=r.offsetHeight-r.clientHeight-i.top-i.bottom,n=r.ownerDocument.defaultView.getComputedStyle(r).direction,this.left+=i.left,this.top+=i.top,this.right-=i.right,this.bottom-=i.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===n?this.right-=e:this.left+=e,this.height-=t,this.bottom-=t,this}}],[{key:"getDomRangeRects",value:function(t){var n=[],r=Array.from(t.getClientRects());if(r.length){var i,o=l(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;n.push(new e(a))}}catch(e){o.e(e)}finally{o.f()}}else{var s=t.startContainer;hi(s)&&(s=s.parentNode);var c=new e(s.getBoundingClientRect());c.right=c.left,c.width=0,n.push(c)}return n}},{key:"getBoundingRect",value:function(t){var n,r={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY},i=0,o=l(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;i++,r.left=Math.min(r.left,a.left),r.top=Math.min(r.top,a.top),r.right=Math.max(r.right,a.right),r.bottom=Math.max(r.bottom,a.bottom)}}catch(e){o.e(e)}finally{o.f()}return 0==i?null:(r.width=r.right-r.left,r.height=r.bottom-r.top,new e(r))}}]),e}();function Po(e,t){var n,r=l(Do);try{for(r.s();!(n=r.n()).done;){var i=n.value;e[i]=t[i]}}catch(e){r.e(e)}finally{r.f()}}function Io(e){return!!zt(e)&&e===e.ownerDocument.body}function jo(e){for(var t=e.target,n=e.viewportOffset,r=void 0===n?0:n,i=Vo(t),o=i,a=null;o;){Ro($o(o==i?t:a),(function(){return Ho(t,o)}));var s=Ho(t,o);if(No(o,s,r),o.parent!=o){if(a=o.frameElement,o=o.parent,!a)return}else o=null}}function No(e,t,n){var r=t.clone().moveBy(0,n),i=t.clone().moveBy(0,-n),o=new Oo(e).excludeScrollbarsAndBorders();if(![i,r].every((function(e){return o.contains(e)}))){var a=e.scrollX,s=e.scrollY;Bo(i,o)?s-=o.top-t.top+n:Lo(r,o)&&(s+=t.bottom-o.bottom+n),Fo(t,o)?a-=o.left-t.left+n:zo(t,o)&&(a+=t.right-o.right+n),e.scrollTo(a,s)}}function Ro(e,t){for(var n,r,i=Vo(e);e!=i.document.body;)r=t(),(n=new Oo(e).excludeScrollbarsAndBorders()).contains(r)||(Bo(r,n)?e.scrollTop-=n.top-r.top:Lo(r,n)&&(e.scrollTop+=r.bottom-n.bottom),Fo(r,n)?e.scrollLeft-=n.left-r.left:zo(r,n)&&(e.scrollLeft+=r.right-n.right)),e=e.parentNode}function Lo(e,t){return e.bottom>t.bottom}function Bo(e,t){return e.top<t.top}function Fo(e,t){return e.left<t.left}function zo(e,t){return e.right>t.right}function Vo(e){return Eo(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function $o(e){if(Eo(e)){var t=e.commonAncestorContainer;return hi(t)&&(t=t.parentNode),t}return e.parentNode}function Ho(e,t){var n=Vo(e),r=new Oo(e);if(n===t)return r;for(var i=n;i!=t;){var o=i.frameElement,a=new Oo(o).excludeScrollbarsAndBorders();r.moveBy(a.left,a.top),i=i.parent}return r}Object.assign({},{scrollViewportToShowTarget:jo,scrollAncestorsToShowTarget:function(e){Ro($o(e),(function(){return new Oo(e)}))}});var Uo=function(){function e(t){var n=this;h(this,e),this.document=new Or(t),this.domConverter=new Ri(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Ei(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new ri(this.document),this.addObserver(co),this.addObserver(Ao),this.addObserver(xo),this.addObserver(fo),this.addObserver(Co),this.addObserver(So),Vr&&this.addObserver(Mo),this.document.on("keydown",ki),function(e){e.document.on("keydown",(function(t,n){return function(e,t,n){if(t.keyCode==Ur.arrowright){var r=t.domTarget.ownerDocument.defaultView.getSelection(),i=1==r.rangeCount&&r.getRangeAt(0).collapsed;if(i||t.shiftKey){var o=r.focusNode,a=r.focusOffset,s=n.domPositionToView(o,a);if(null===s)return;var c=!1,l=s.getLastMatchingPosition((function(e){return e.item.is("uiElement")&&(c=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))}));if(c){var u=n.viewPositionToDom(l);i?r.collapse(u.parent,u.offset):r.extend(u.parent,u.offset)}}}}(0,n,e.domConverter)}))}(this),this.on("render",(function(){n._render(),n.document.fire("layoutChanged"),n._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(function(){n._hasChangedSinceTheLastRendering=!0}))}return m(e,[{key:"attachDomRoot",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",r=this.document.getRoot(n);r._name=e.tagName.toLowerCase();for(var i={},o=0,a=Array.from(e.attributes);o<a.length;o++){var s=a[o],c=s.name,u=s.value;i[c]=u,"class"===c?this._writer.addClass(u.split(" "),r):this._writer.setAttribute(c,u,r)}this._initialDomRootAttributes.set(e,i);var d=function(){t._writer.setAttribute("contenteditable",!r.isReadOnly,r),r.isReadOnly?t._writer.addClass("ck-read-only",r):t._writer.removeClass("ck-read-only",r)};d(),this.domRoots.set(n,e),this.domConverter.bindElements(e,r),this._renderer.markToSync("children",r),this._renderer.markToSync("attributes",r),this._renderer.domDocuments.add(e.ownerDocument),r.on("change:children",(function(e,n){return t._renderer.markToSync("children",n)})),r.on("change:attributes",(function(e,n){return t._renderer.markToSync("attributes",n)})),r.on("change:text",(function(e,n){return t._renderer.markToSync("text",n)})),r.on("change:isReadOnly",(function(){return t.change(d)})),r.on("change",(function(){t._hasChangedSinceTheLastRendering=!0}));var f,h=l(this._observers.values());try{for(h.s();!(f=h.n()).done;){var p=f.value;p.observe(e,n)}}catch(e){h.e(e)}finally{h.f()}}},{key:"detachDomRoot",value:function(e){var t=this.domRoots.get(e);Array.from(t.attributes).forEach((function(e){var n=e.name;return t.removeAttribute(n)}));var n=this._initialDomRootAttributes.get(t);for(var r in n)t.setAttribute(r,n[r]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t)}},{key:"getDomRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(e)}},{key:"addObserver",value:function(e){var t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);var n,r=l(this.domRoots);try{for(r.s();!(n=r.n()).done;){var i=c(n.value,2),o=i[0],a=i[1];t.observe(a,o)}}catch(e){r.e(e)}finally{r.f()}return t.enable(),t}},{key:"getObserver",value:function(e){return this._observers.get(e)}},{key:"disableObservers",value:function(){var e,t=l(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.disable()}}catch(e){t.e(e)}finally{t.f()}}},{key:"enableObservers",value:function(){var e,t=l(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.enable()}}catch(e){t.e(e)}finally{t.f()}}},{key:"scrollToTheSelection",value:function(){var e=this.document.selection.getFirstRange();e&&jo({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}},{key:"focus",value:function(){if(!this.document.isFocused){var e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}},{key:"change",value:function(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new Kt.a("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;var t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){Kt.a.rethrowUnexpectedError(e,this)}}},{key:"forceRender",value:function(){this._hasChangedSinceTheLastRendering=!0,this.change((function(){}))}},{key:"destroy",value:function(){var e,t=l(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}this.document.destroy(),this.stopListening()}},{key:"createPositionAt",value:function(e,t){return xr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return xr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return xr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Sr(e,t)}},{key:"createRangeOn",value:function(e){return Sr._createOn(e)}},{key:"createRangeIn",value:function(e){return Sr._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Tr(e,t,n)}},{key:"_disableRendering",value:function(e){this._renderingDisabled=e,0==e&&this.change((function(){}))}},{key:"_render",value:function(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}]),e}();sn(Uo,mr);var qo=function(){function e(t){h(this,e),this.parent=null,this._attrs=kn(t)}return m(e,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),r=e.getAncestors(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),r=mn(t,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return t[r]<n[r]}}},{key:"isAfter",value:function(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"toJSON",value:function(){var e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce((function(e,t){return e[t[0]]=t[1],e}),{})),e}},{key:"is",value:function(e){return"node"===e||"model:node"===e}},{key:"_clone",value:function(){return new e(this._attrs)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_setAttribute",value:function(e,t){this._attrs.set(e,t)}},{key:"_setAttributesTo",value:function(e){this._attrs=kn(e)}},{key:"_removeAttribute",value:function(e){return this._attrs.delete(e)}},{key:"_clearAttributes",value:function(){this._attrs.clear()}},{key:"index",get:function(){var e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new Kt.a("model-node-not-found-in-parent",this);return e}},{key:"startOffset",get:function(){var e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new Kt.a("model-node-not-found-in-parent",this);return e}},{key:"offsetSize",get:function(){return 1}},{key:"endOffset",get:function(){return this.parent?this.startOffset+this.offsetSize:null}},{key:"nextSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e+1)||null}},{key:"previousSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e-1)||null}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}}]),e}(),Wo=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,r))._data=e||"",i}return m(n,[{key:"is",value:function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.data=this.data,e}},{key:"_clone",value:function(){return new n(this.data,this.getAttributes())}},{key:"offsetSize",get:function(){return this.data.length}},{key:"data",get:function(){return this._data}}],[{key:"fromJSON",value:function(e){return new n(e.data,e.attributes)}}]),n}(qo),Yo=function(){function e(t,n,r){if(h(this,e),this.textNode=t,n<0||n>t.offsetSize)throw new Kt.a("model-textproxy-wrong-offsetintext",this);if(r<0||n+r>t.offsetSize)throw new Kt.a("model-textproxy-wrong-length",this);this.data=t.data.substring(n,n+r),this.offsetInText=n}return m(e,[{key:"is",value:function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e}},{key:"getPath",value:function(){var e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"hasAttribute",value:function(e){return this.textNode.hasAttribute(e)}},{key:"getAttribute",value:function(e){return this.textNode.getAttribute(e)}},{key:"getAttributes",value:function(){return this.textNode.getAttributes()}},{key:"getAttributeKeys",value:function(){return this.textNode.getAttributeKeys()}},{key:"startOffset",get:function(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}},{key:"offsetSize",get:function(){return this.data.length}},{key:"endOffset",get:function(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}},{key:"isPartial",get:function(){return this.offsetSize!==this.textNode.offsetSize}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}}]),e}(),Ko=function(){function e(t){h(this,e),this._nodes=[],t&&this._insertNodes(0,t)}return m(e,[{key:Symbol.iterator,value:function(){return this._nodes[Symbol.iterator]()}},{key:"getNode",value:function(e){return this._nodes[e]||null}},{key:"getNodeIndex",value:function(e){var t=this._nodes.indexOf(e);return-1==t?null:t}},{key:"getNodeStartOffset",value:function(e){var t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce((function(e,t){return e+t.offsetSize}),0)}},{key:"indexToOffset",value:function(e){if(e==this._nodes.length)return this.maxOffset;var t=this._nodes[e];if(!t)throw new Kt.a("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}},{key:"offsetToIndex",value:function(e){var t,n=0,r=l(this._nodes);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(e>=n&&e<n+i.offsetSize)return this.getNodeIndex(i);n+=i.offsetSize}}catch(e){r.e(e)}finally{r.f()}if(n!=e)throw new Kt.a("model-nodelist-offset-out-of-bounds",this,{offset:e,nodeList:this});return this.length}},{key:"_insertNodes",value:function(e,t){var n,r,i=l(t);try{for(i.s();!(r=i.n()).done;){if(!(r.value instanceof qo))throw new Kt.a("model-nodelist-insertnodes-not-node",this)}}catch(e){i.e(e)}finally{i.f()}(n=this._nodes).splice.apply(n,[e,0].concat(u(t)))}},{key:"_removeNodes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(e,t)}},{key:"toJSON",value:function(){return this._nodes.map((function(e){return e.toJSON()}))}},{key:"length",get:function(){return this._nodes.length}},{key:"maxOffset",get:function(){return this._nodes.reduce((function(e,t){return e+t.offsetSize}),0)}}]),e}(),Go=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,r)).name=e,o._children=new Ko,i&&o._insertChild(0,i),o}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"getNodeByPath",value:function(e){var t,n=this,r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n=n.getChild(n.offsetToIndex(i))}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"findAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1},n=t.includeSelf?this:this.parent;n;){if(n.name===e)return n;n=n.parent}return null}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);if(e.name=this.name,this._children.length>0){e.children=[];var t,r=l(this._children);try{for(r.s();!(t=r.n()).done;){var i=t.value;e.children.push(i.toJSON())}}catch(e){r.e(e)}finally{r.f()}}return e}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?Array.from(this._children).map((function(e){return e._clone(!0)})):null;return new n(this.name,this.getAttributes(),t)}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,r=function(e){return"string"==typeof e?[new Wo(e)]:(an(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new Wo(e):e instanceof Yo?new Wo(e.data,e.getAttributes()):e})))}(t),i=l(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(e){i.e(e)}finally{i.f()}this._children._insertNodes(e,r)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this._children._removeNodes(e,n),i=l(r);try{for(i.s();!(t=i.n()).done;){var o=t.value;o.parent=null}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}}],[{key:"fromJSON",value:function(e){var t=null;if(e.children){t=[];var r,i=l(e.children);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.name?t.push(n.fromJSON(o)):t.push(Wo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return new n(e.name,e.attributes,t)}}]),n}(qo),Qo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(h(this,e),!t.boundaries&&!t.startPosition)throw new Kt.a("model-tree-walker-no-start-position",null);var n=t.direction||"forward";if("forward"!=n&&"backward"!=n)throw new Kt.a("model-tree-walker-unknown-direction",t,{direction:n});this.direction=n,this.boundaries=t.boundaries||null,t.startPosition?this.position=t.startPosition.clone():this.position=Jo._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}return m(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,r,i;do{var o;r=this.position,i=this._visitedParent,t=(o=this.next()).done,n=o.value}while(!t&&e(n));t||(this.position=r,this._visitedParent=i)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&t.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};var r=t.parent,i=Zo(t,r),o=i||ea(t,r,i);if(o instanceof Go)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=o),this.position=t,Xo("elementStart",o,e,t,1);if(o instanceof Wo){var a;if(this.singleCharacters)a=1;else{var s=o.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<s&&(s=this.boundaries.end.offset),a=s-t.offset}var c=t.offset-o.startOffset,l=new Yo(o,c,a);return t.offset+=a,this.position=t,Xo("text",l,e,t,a)}return t.path.pop(),t.offset++,this.position=t,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():Xo("elementEnd",n,e,t)}},{key:"_previous",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===t.offset)return{done:!0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};var r=t.parent,i=Zo(t,r),o=i||ta(t,r,i);if(o instanceof Go)return t.offset--,this.shallow?(this.position=t,Xo("elementStart",o,e,t,1)):(t.path.push(o.maxOffset),this.position=t,this._visitedParent=o,this.ignoreElementEnd?this._previous():Xo("elementEnd",o,e,t));if(o instanceof Wo){var a;if(this.singleCharacters)a=1;else{var s=o.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>s&&(s=this.boundaries.start.offset),a=t.offset-s}var c=t.offset-o.startOffset,l=new Yo(o,c-a,a);return t.offset-=a,this.position=t,Xo("text",l,e,t,a)}return t.path.pop(),this.position=t,this._visitedParent=n.parent,Xo("elementStart",n,e,t,1)}}]),e}();function Xo(e,t,n,r,i){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:i}}}var Jo=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(h(this,e),!t.is("element")&&!t.is("documentFragment"))throw new Kt.a("model-position-root-invalid",t);if(!(n instanceof Array)||0===n.length)throw new Kt.a("model-position-path-incorrect-format",t,{path:n});t.is("rootElement")?n=n.slice():(n=[].concat(u(t.getPath()),u(n)),t=t.root),this.root=t,this.path=n,this.stickiness=r}return m(e,[{key:"compareWith",value:function(e){if(this.root!=e.root)return"different";var t=mn(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new Qo(t);return n.skip(e),n.position}},{key:"getParentPath",value:function(){return this.path.slice(0,-1)}},{key:"getAncestors",value:function(){var e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}},{key:"findAncestor",value:function(e){var t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}},{key:"getCommonPath",value:function(e){if(this.root!=e.root)return[];var t=mn(this.path,e.path),n="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),r=0;t[r]==n[r]&&t[r];)r++;return 0===r?null:t[r-1]}},{key:"getShiftedBy",value:function(e){var t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isEqual",value:function(e){return"same"==this.compareWith(e)}},{key:"isTouching",value:function(t){var n=null,r=null;switch(this.compareWith(t)){case"same":return!0;case"before":n=e._createAt(this),r=e._createAt(t);break;case"after":n=e._createAt(t),r=e._createAt(this);break;default:return!1}for(var i=n.parent;n.path.length+r.path.length;){if(n.isEqual(r))return!0;if(n.path.length>r.path.length){if(n.offset!==i.maxOffset)return!1;n.path=n.path.slice(0,-1),i=i.parent,n.offset++}else{if(0!==r.offset)return!1;r.path=r.path.slice(0,-1)}}}},{key:"is",value:function(e){return"position"===e||"model:position"===e}},{key:"hasSameParentAs",value:function(e){return this.root===e.root&&"same"==mn(this.getParentPath(),e.getParentPath())}},{key:"getTransformedByOperation",value:function(t){var n;switch(t.type){case"insert":n=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":n=this._getTransformedByMoveOperation(t);break;case"split":n=this._getTransformedBySplitOperation(t);break;case"merge":n=this._getTransformedByMergeOperation(t);break;default:n=e._createAt(this)}return n}},{key:"_getTransformedByInsertOperation",value:function(e){return this._getTransformedByInsertion(e.position,e.howMany)}},{key:"_getTransformedByMoveOperation",value:function(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}},{key:"_getTransformedBySplitOperation",value:function(e){var t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}},{key:"_getTransformedByMergeOperation",value:function(t){var n,r=t.movedRange;return r.containsPosition(this)||r.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)?e._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}},{key:"_getTransformedByDeletion",value:function(t,n){var r=e._createAt(this);if(this.root!=t.root)return r;if("same"==mn(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+n>this.offset)return null;r.offset-=n}}else if("prefix"==mn(t.getParentPath(),this.getParentPath())){var i=t.path.length-1;if(t.offset<=this.path[i]){if(t.offset+n>this.path[i])return null;r.path[i]-=n}}return r}},{key:"_getTransformedByInsertion",value:function(t,n){var r=e._createAt(this);if(this.root!=t.root)return r;if("same"==mn(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(r.offset+=n);else if("prefix"==mn(t.getParentPath(),this.getParentPath())){var i=t.path.length-1;t.offset<=this.path[i]&&(r.path[i]+=n)}return r}},{key:"_getTransformedByMove",value:function(t,n,r){if(n=n._getTransformedByDeletion(t,r),t.isEqual(n))return e._createAt(this);var i=this._getTransformedByDeletion(t,r);return null===i||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(r).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,n):i._getTransformedByInsertion(n,r)}},{key:"_getCombined",value:function(t,n){var r=t.path.length-1,i=e._createAt(n);return i.stickiness=this.stickiness,i.offset=i.offset+this.path[r]-t.offset,i.path=[].concat(u(i.path),u(this.path.slice(r+1))),i}},{key:"toJSON",value:function(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}},{key:"clone",value:function(){return new this.constructor(this.root,this.path,this.stickiness)}},{key:"offset",get:function(){return this.path[this.path.length-1]},set:function(e){this.path[this.path.length-1]=e}},{key:"parent",get:function(){for(var e=this.root,t=0;t<this.path.length-1;t++)if(!(e=e.getChild(e.offsetToIndex(this.path[t]))))throw new Kt.a("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new Kt.a("model-position-path-incorrect",this,{position:this});return e}},{key:"index",get:function(){return this.parent.offsetToIndex(this.offset)}},{key:"textNode",get:function(){return Zo(this,this.parent)}},{key:"nodeAfter",get:function(){var e=this.parent;return ea(this,e,Zo(this,e))}},{key:"nodeBefore",get:function(){var e=this.parent;return ta(this,e,Zo(this,e))}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){return this.offset==this.parent.maxOffset}}],[{key:"_createAt",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(t instanceof e)return new e(t.root,t.path,t.stickiness);var i=t;if("end"==n)n=i.maxOffset;else{if("before"==n)return this._createBefore(i,r);if("after"==n)return this._createAfter(i,r);if(0!==n&&!n)throw new Kt.a("model-createpositionat-offset-required",[this,t])}if(!i.is("element")&&!i.is("documentFragment"))throw new Kt.a("model-position-parent-incorrect",[this,t]);var o=i.getPath();return o.push(n),new this(i.root,o,r)}},{key:"_createAfter",value:function(e,t){if(!e.parent)throw new Kt.a("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}},{key:"_createBefore",value:function(e,t){if(!e.parent)throw new Kt.a("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}},{key:"fromJSON",value:function(t,n){if("$graveyard"===t.root){var r=new e(n.graveyard,t.path);return r.stickiness=t.stickiness,r}if(!n.getRoot(t.root))throw new Kt.a("model-position-fromjson-no-root",n,{rootName:t.root});return new e(n.getRoot(t.root),t.path,t.stickiness)}}]),e}();function Zo(e,t){var n=t.getChild(t.offsetToIndex(e.offset));return n&&n.is("$text")&&n.startOffset<e.offset?n:null}function ea(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset))}function ta(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset)-1)}var na=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;h(this,e),this.start=Jo._createAt(t),this.end=n?Jo._createAt(n):Jo._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}return m(e,[{key:Symbol.iterator,value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(new Qo({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}},{key:"containsItem",value:function(e){var t=Jo._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}},{key:"is",value:function(e){return"range"===e||"model:range"===e}},{key:"isEqual",value:function(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.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,r=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(r=t.end),new e(n,r)}return null}},{key:"getJoined",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.isIntersecting(t);if(r||(r=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)),!r)return null;var i=this.start,o=this.end;return t.start.isBefore(i)&&(i=t.start),t.end.isAfter(o)&&(o=t.end),new e(i,o)}},{key:"getMinimalFlatRanges",value:function(){for(var t=[],n=this.start.getCommonPath(this.end).length,r=Jo._createAt(this.start),i=r.parent;r.path.length>n+1;){var o=i.maxOffset-r.offset;0!==o&&t.push(new e(r,r.getShiftedBy(o))),r.path=r.path.slice(0,-1),r.offset++,i=i.parent}for(;r.path.length<=this.end.path.length;){var a=this.end.path[r.path.length-1],s=a-r.offset;0!==s&&t.push(new e(r,r.getShiftedBy(s))),r.offset=a,r.path.push(0)}return t}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new Qo(e)}},{key:"getItems",value:o.a.mark((function e(){var t,n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,t.ignoreElementEnd=!0,n=new Qo(t),r=l(n),e.prev=4,r.s();case 6:if((i=r.n()).done){e.next=12;break}return a=i.value,e.next=10,a.item;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),r.e(e.t0);case 17:return e.prev=17,r.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"getPositions",value:o.a.mark((function e(){var t,n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,n=new Qo(t),e.next=5,n.position;case 5:r=l(n),e.prev=6,r.s();case 8:if((i=r.n()).done){e.next=14;break}return a=i.value,e.next=12,a.nextPosition;case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])}))},{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,r=[new e(this.start,this.end)],i=l(t);try{for(i.s();!(n=i.n()).done;)for(var o=n.value,a=0;a<r.length;a++){var s=r[a].getTransformedByOperation(o);r.splice.apply(r,[a,1].concat(u(s))),a+=s.length-1}}catch(e){i.e(e)}finally{i.f()}for(var c=0;c<r.length;c++)for(var d=r[c],f=c+1;f<r.length;f++){var h=r[f];(d.containsRange(h)||h.containsRange(d)||d.isEqual(h))&&r.splice(f,1)}return r}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}},{key:"toJSON",value:function(){return{start:this.start.toJSON(),end:this.end.toJSON()}}},{key:"clone",value:function(){return new this.constructor(this.start,this.end)}},{key:"_getTransformedByInsertOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(e.position,e.howMany,t)}},{key:"_getTransformedByMoveOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.sourcePosition,r=e.howMany,i=e.targetPosition;return this._getTransformedByMove(n,i,r,t)}},{key:"_getTransformedBySplitOperation",value:function(t){var n=this.start._getTransformedBySplitOperation(t),r=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(r=this.end.getShiftedBy(1)),n.root!=r.root&&(r=this.end.getShiftedBy(-1)),new e(n,r)}},{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),r=this.end._getTransformedByMergeOperation(t);return n.root!=r.root&&(r=this.end.getShiftedBy(-1)),n.isAfter(r)?(t.sourcePosition.isBefore(t.targetPosition)?(n=Jo._createAt(r)).offset=0:(t.deletionPosition.isEqual(n)||(r=t.deletionPosition),n=t.targetPosition),new e(n,r)):new e(n,r)}},{key:"_getTransformedByInsertion",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r&&this.containsPosition(t))return[new e(this.start,t),new e(t.getShiftedBy(n),this.end._getTransformedByInsertion(t,n))];var i=new e(this.start,this.end);return i.start=i.start._getTransformedByInsertion(t,n),i.end=i.end._getTransformedByInsertion(t,n),[i]}},{key:"_getTransformedByMove",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){var o=this.start._getTransformedByMove(t,n,r);return[new e(o)]}var a,s=e._createFromPositionAndShift(t,r),c=n._getTransformedByDeletion(t,r);if(this.containsPosition(n)&&!i&&(s.containsPosition(this.start)||s.containsPosition(this.end))){var l=this.start._getTransformedByMove(t,n,r),u=this.end._getTransformedByMove(t,n,r);return[new e(l,u)]}var d=this.getDifference(s),f=null,h=this.getIntersection(s);if(1==d.length?f=new e(d[0].start._getTransformedByDeletion(t,r),d[0].end._getTransformedByDeletion(t,r)):2==d.length&&(f=new e(this.start,this.end._getTransformedByDeletion(t,r))),a=f?f._getTransformedByInsertion(c,r,null!==h||i):[],h){var p=new e(h.start._getCombined(s.start,c),h.end._getCombined(s.start,c));2==a.length?a.splice(1,0,p):a.push(p)}return a}},{key:"_getTransformedByDeletion",value:function(t,n){var r=this.start._getTransformedByDeletion(t,n),i=this.end._getTransformedByDeletion(t,n);return null==r&&null==i?null:(null==r&&(r=t),null==i&&(i=t),new e(r,i))}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return"same"==mn(this.start.getParentPath(),this.end.getParentPath())}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromPositionAndShift",value:function(e,t){var n=e,r=e.getShiftedBy(t);return t>0?new this(n,r):new this(r,n)}},{key:"_createIn",value:function(e){return new this(Jo._createAt(e,0),Jo._createAt(e,e.maxOffset))}},{key:"_createOn",value:function(e){return this._createFromPositionAndShift(Jo._createBefore(e),e.offsetSize)}},{key:"_createFromRanges",value:function(e){if(0===e.length)throw new Kt.a("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();var t=e[0];e.sort((function(e,t){return e.start.isAfter(t.start)?1:-1}));var n=e.indexOf(t),r=new this(t.start,t.end);if(n>0)for(var i=n-1;e[i].end.isEqual(r.start);i++)r.start=Jo._createAt(e[i].start);for(var o=n+1;o<e.length&&e[o].start.isEqual(r.end);o++)r.end=Jo._createAt(e[o].end);return r}},{key:"fromJSON",value:function(e,t){return new this(Jo.fromJSON(e.start,t),Jo.fromJSON(e.end,t))}}]),e}(),ra=function(){function e(){var t=this;h(this,e),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(function(e,n){if(!n.viewPosition){var r=t._modelToViewMapping.get(n.modelPosition.parent);n.viewPosition=t.findPositionIn(r,n.modelPosition.offset)}}),{priority:"low"}),this.on("viewToModelPosition",(function(e,n){if(!n.modelPosition){var r=t.findMappedViewAncestor(n.viewPosition),i=t._viewToModelMapping.get(r),o=t._toModelOffset(n.viewPosition.parent,n.viewPosition.offset,r);n.modelPosition=Jo._createAt(i,o)}}),{priority:"low"})}return m(e,[{key:"bindElements",value:function(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}},{key:"unbindViewElement",value:function(e){var t=this.toModelElement(e);if(this._viewToModelMapping.delete(e),this._elementToMarkerNames.has(e)){var n,r=l(this._elementToMarkerNames.get(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;this._unboundMarkerNames.add(i)}}catch(e){r.e(e)}finally{r.f()}}this._modelToViewMapping.get(t)==e&&this._modelToViewMapping.delete(t)}},{key:"unbindModelElement",value:function(e){var t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}},{key:"bindElementToMarker",value:function(e,t){var n=this._markerNameToElements.get(t)||new Set;n.add(e);var r=this._elementToMarkerNames.get(e)||new Set;r.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,r)}},{key:"unbindElementFromMarkerName",value:function(e,t){var n=this._markerNameToElements.get(t);n&&(n.delete(e),0==n.size&&this._markerNameToElements.delete(t));var r=this._elementToMarkerNames.get(e);r&&(r.delete(t),0==r.size&&this._elementToMarkerNames.delete(e))}},{key:"flushUnboundMarkerNames",value:function(){var e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}},{key:"clearBindings",value:function(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}},{key:"toModelElement",value:function(e){return this._viewToModelMapping.get(e)}},{key:"toViewElement",value:function(e){return this._modelToViewMapping.get(e)}},{key:"toModelRange",value:function(e){return new na(this.toModelPosition(e.start),this.toModelPosition(e.end))}},{key:"toViewRange",value:function(e){return new Sr(this.toViewPosition(e.start),this.toViewPosition(e.end))}},{key:"toModelPosition",value:function(e){var t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}},{key:"toViewPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isPhantom:!1},n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}},{key:"markerNameToElements",value:function(e){var t=this._markerNameToElements.get(e);if(!t)return null;var n,r=new Set,i=l(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("attributeElement")){var a,s=l(o.getElementsWithSameId());try{for(s.s();!(a=s.n()).done;){var c=a.value;r.add(c)}}catch(e){s.e(e)}finally{s.f()}}else r.add(o)}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"registerViewToModelLength",value:function(e,t){this._viewToModelLengthCallbacks.set(e,t)}},{key:"findMappedViewAncestor",value:function(e){for(var t=e.parent;!this._viewToModelMapping.has(t);)t=t.parent;return t}},{key:"_toModelOffset",value:function(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;for(var r=0,i=0;i<t;i++)r+=this.getModelLength(e.getChild(i));return r}},{key:"getModelLength",value:function(e){if(this._viewToModelLengthCallbacks.get(e.name))return this._viewToModelLengthCallbacks.get(e.name)(e);if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;var t,n=0,r=l(e.getChildren());try{for(r.s();!(t=r.n()).done;){var i=t.value;n+=this.getModelLength(i)}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"findPositionIn",value:function(e,t){var n,r=0,i=0,o=0;if(e.is("$text"))return new xr(e,t);for(;i<t;)n=e.getChild(o),i+=r=this.getModelLength(n),o++;return i==t?this._moveViewPositionToTextNode(new xr(e,o)):this.findPositionIn(n,t-(i-r))}},{key:"_moveViewPositionToTextNode",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;return t instanceof bn?new xr(t,t.data.length):n instanceof bn?new xr(n,0):e}}]),e}();sn(ra,Xt);var ia=function(){function e(){h(this,e),this._consumable=new Map,this._textProxyRegistry=new Map}return m(e,[{key:"add",value:function(e,t){t=oa(t),e instanceof Yo&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}},{key:"consume",value:function(e,t){return t=oa(t),e instanceof Yo&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}},{key:"test",value:function(e,t){t=oa(t),e instanceof Yo&&(e=this._getSymbolForTextProxy(e));var n=this._consumable.get(e);if(void 0===n)return null;var r=n.get(t);return void 0===r?null:r}},{key:"revert",value:function(e,t){t=oa(t),e instanceof Yo&&(e=this._getSymbolForTextProxy(e));var n=this.test(e,t);return!1===n?(this._consumable.get(e).set(t,!0),!0):!0!==n&&null}},{key:"_getSymbolForTextProxy",value:function(e){var t=null,n=this._textProxyRegistry.get(e.startOffset);if(n){var r=n.get(e.endOffset);r&&(t=r.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e.startOffset,e.endOffset,e.parent)),t}},{key:"_addSymbolForTextProxy",value:function(e,t,n){var r,i,o=Symbol("textProxySymbol");return(r=this._textProxyRegistry.get(e))||(r=new Map,this._textProxyRegistry.set(e,r)),(i=r.get(t))||(i=new Map,r.set(t,i)),i.set(n,o),o}}]),e}();function oa(e){var t=e.split(":");return t.length>1?t[0]+":"+t[1]:t[0]}var aa=function(){function e(t){h(this,e),this.conversionApi=Object.assign({dispatcher:this},t),this._reconversionEventsMapping=new Map}return m(e,[{key:"convertChanges",value:function(e,t,n){var r,i=l(e.getMarkersToRemove());try{for(i.s();!(r=i.n()).done;){var o=r.value;this.convertMarkerRemove(o.name,o.range,n)}}catch(e){i.e(e)}finally{i.f()}var a,s=l(this._mapChangesWithAutomaticReconversion(e));try{for(s.s();!(a=s.n()).done;){var c=a.value;"insert"===c.type?this.convertInsert(na._createFromPositionAndShift(c.position,c.length),n):"remove"===c.type?this.convertRemove(c.position,c.length,c.name,n):"reconvert"===c.type?this.reconvertElement(c.element,n):this.convertAttribute(c.range,c.attributeKey,c.attributeOldValue,c.attributeNewValue,n)}}catch(e){s.e(e)}finally{s.f()}var u,d=l(this.conversionApi.mapper.flushUnboundMarkerNames());try{for(d.s();!(u=d.n()).done;){var f=u.value,h=t.get(f).getRange();this.convertMarkerRemove(f,h,n),this.convertMarkerAdd(f,h,n)}}catch(e){d.e(e)}finally{d.f()}var p,m=l(e.getMarkersToAdd());try{for(m.s();!(p=m.n()).done;){var v=p.value;this.convertMarkerAdd(v.name,v.range,n)}}catch(e){m.e(e)}finally{m.f()}}},{key:"convertInsert",value:function(e,t){this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(e);var n,r=l(Array.from(e).map(ca));try{for(r.s();!(n=r.n()).done;){var i=n.value;this._convertInsertWithAttributes(i)}}catch(e){r.e(e)}finally{r.f()}this._clearConversionApi()}},{key:"convertRemove",value:function(e,t,n,r){this.conversionApi.writer=r,this.fire("remove:"+n,{position:e,length:t},this.conversionApi),this._clearConversionApi()}},{key:"convertAttribute",value:function(e,t,n,r,i){this.conversionApi.writer=i,this.conversionApi.consumable=this._createConsumableForRange(e,"attribute:"+t);var o,a=l(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,c={item:s.item,range:na._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:t,attributeOldValue:n,attributeNewValue:r};this._testAndFire("attribute:"+t,c)}}catch(e){a.e(e)}finally{a.f()}this._clearConversionApi()}},{key:"reconvertElement",value:function(e,t){var n=na._createOn(e);this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(n);var r=this.conversionApi.mapper,i=r.toViewElement(e);t.remove(i),this._convertInsertWithAttributes({item:e,range:n});var o,a=r.toViewElement(e),s=l(na._createIn(e));try{for(s.s();!(o=s.n()).done;){var c=o.value,u=c.item,d=la(u,r);d?d.root!==a.root&&t.move(t.createRangeOn(d),r.toViewPosition(Jo._createBefore(u))):this._convertInsertWithAttributes(ca(c))}}catch(e){s.e(e)}finally{s.f()}r.unbindViewElement(i),this._clearConversionApi()}},{key:"convertSelection",value:function(e,t,n){var r=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(e,r),this.fire("selection",{selection:e},this.conversionApi),e.isCollapsed){var i,o=l(r);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.getRange();if(sa(e.getFirstPosition(),a,this.conversionApi.mapper)){var c={item:e,markerName:a.name,markerRange:s};this.conversionApi.consumable.test(e,"addMarker:"+a.name)&&this.fire("addMarker:"+a.name,c,this.conversionApi)}}}catch(e){o.e(e)}finally{o.f()}var u,d=l(e.getAttributeKeys());try{for(d.s();!(u=d.n()).done;){var f=u.value,h={item:e,range:e.getFirstRange(),attributeKey:f,attributeOldValue:null,attributeNewValue:e.getAttribute(f)};this.conversionApi.consumable.test(e,"attribute:"+h.attributeKey)&&this.fire("attribute:"+h.attributeKey+":$text",h,this.conversionApi)}}catch(e){d.e(e)}finally{d.f()}this._clearConversionApi()}}},{key:"convertMarkerAdd",value:function(e,t,n){if(t.root.document&&"$graveyard"!=t.root.rootName){this.conversionApi.writer=n;var r="addMarker:"+e,i=new ia;if(i.add(t,r),this.conversionApi.consumable=i,this.fire(r,{markerName:e,markerRange:t},this.conversionApi),i.test(t,r)){this.conversionApi.consumable=this._createConsumableForRange(t,r);var o,a=l(t.getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(this.conversionApi.consumable.test(s,r)){var c={item:s,range:na._createOn(s),markerName:e,markerRange:t};this.fire(r,c,this.conversionApi)}}}catch(e){a.e(e)}finally{a.f()}this._clearConversionApi()}}}},{key:"convertMarkerRemove",value:function(e,t,n){t.root.document&&"$graveyard"!=t.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+e,{markerName:e,markerRange:t},this.conversionApi),this._clearConversionApi())}},{key:"_mapReconversionTriggerEvent",value:function(e,t){this._reconversionEventsMapping.set(t,e)}},{key:"_createInsertConsumable",value:function(e){var t,n=new ia,r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value.item;n.add(i,"insert");var o,a=l(i.getAttributeKeys());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.add(i,"attribute:"+s)}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"_createConsumableForRange",value:function(e,t){var n,r=new ia,i=l(e.getItems());try{for(i.s();!(n=i.n()).done;){var o=n.value;r.add(o,t)}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_createSelectionConsumable",value:function(e,t){var n=new ia;n.add(e,"selection");var r,i=l(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.add(e,"addMarker:"+o.name)}}catch(e){i.e(e)}finally{i.f()}var a,s=l(e.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var c=a.value;n.add(e,"attribute:"+c)}}catch(e){s.e(e)}finally{s.f()}return n}},{key:"_testAndFire",value:function(e,t){this.conversionApi.consumable.test(t.item,e)&&this.fire(function(e,t){var n=t.item.name||"$text";return"".concat(e,":").concat(n)}(e,t),t,this.conversionApi)}},{key:"_clearConversionApi",value:function(){delete this.conversionApi.writer,delete this.conversionApi.consumable}},{key:"_convertInsertWithAttributes",value:function(e){this._testAndFire("insert",e);var t,n=l(e.item.getAttributeKeys());try{for(n.s();!(t=n.n()).done;){var r=t.value;e.attributeKey=r,e.attributeOldValue=null,e.attributeNewValue=e.item.getAttribute(r),this._testAndFire("attribute:"+r,e)}}catch(e){n.e(e)}finally{n.f()}}},{key:"_mapChangesWithAutomaticReconversion",value:function(e){var t,n=new Set,r=[],i=l(e.getChanges());try{for(i.s();!(t=i.n()).done;){var o=t.value,a=o.position||o.range.start,s=a.parent;if(Zo(a,s))r.push(o);else{var c="attribute"===o.type?ea(a,s,null):s;if(c.is("$text"))r.push(o);else{var u;if(u="attribute"===o.type?"attribute:".concat(o.attributeKey,":").concat(c.name):"".concat(o.type,":").concat(o.name),this._isReconvertTriggerEvent(u,c.name)){if(n.has(c))continue;n.add(c),r.push({type:"reconvert",element:c})}else r.push(o)}}}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_isReconvertTriggerEvent",value:function(e,t){return this._reconversionEventsMapping.get(e)===t}}]),e}();function sa(e,t,n){var r=t.getRange(),i=Array.from(e.getAncestors());return i.shift(),i.reverse(),!i.some((function(e){if(r.containsItem(e))return!!n.toViewElement(e).getCustomProperty("addHighlight")}))}function ca(e){return{item:e.item,range:na._createFromPositionAndShift(e.previousPosition,e.length)}}function la(e,t){if(e.is("textProxy")){var n=t.toViewPosition(Jo._createBefore(e)).parent;return n.is("$text")?n:null}return t.toViewElement(e)}sn(aa,Xt);var ua=function(){function e(t,n,r){h(this,e),this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,t&&this.setTo(t,n,r)}return m(e,[{key:"isEqual",value:function(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=l(this._ranges);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=!1,a=l(e._ranges);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(i.isEqual(s)){o=!0;break}}}catch(e){a.e(e)}finally{a.f()}if(!o)return!1}}catch(e){n.e(e)}finally{n.f()}return!0}},{key:"getRanges",value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,new na(r.start,r.end);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=l(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.start.isBefore(t.start)||(t=r)}}catch(e){n.e(e)}finally{n.f()}return t?new na(t.start,t.end):null}},{key:"getLastRange",value:function(){var e,t=null,n=l(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.end.isAfter(t.end)||(t=r)}}catch(e){n.e(e)}finally{n.f()}return t?new na(t.start,t.end):null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"setTo",value:function(t,n,r){if(null===t)this._setRanges([]);else if(t instanceof e)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof na)this._setRanges([t],!!n&&!!n.backward);else if(t instanceof Jo)this._setRanges([new na(t)]);else if(t instanceof qo){var i,o=!!r&&!!r.backward;if("in"==n)i=na._createIn(t);else if("on"==n)i=na._createOn(t);else{if(void 0===n)throw new Kt.a("model-selection-setto-required-second-parameter",[this,t]);i=new na(Jo._createAt(t,n))}this._setRanges([i],o)}else{if(!an(t))throw new Kt.a("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,n&&!!n.backward)}}},{key:"_setRanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(e=Array.from(e)).some((function(n){if(!(n instanceof na))throw new Kt.a("model-selection-set-ranges-not-range",[t,e]);return t._ranges.every((function(e){return!e.isEqual(n)}))}));if(e.length!==this._ranges.length||r){this._removeAllRanges();var i,o=l(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._pushRange(a)}}catch(e){o.e(e)}finally{o.f()}this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0})}}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new Kt.a("model-selection-setfocus-no-ranges",[this,e]);var n=Jo._createAt(e,t);if("same"!=n.compareWith(this.focus)){var r=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(r)?(this._pushRange(new na(n,r)),this._lastRangeBackward=!0):(this._pushRange(new na(r,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"removeAttribute",value:function(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"setAttribute",value:function(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"is",value:function(e){return"selection"===e||"model:selection"===e}},{key:"getSelectedBlocks",value:o.a.mark((function e(){var t,n,r,i,a,s,c,u,d,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new WeakSet,n=l(this.getRanges()),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=38;break}if(i=r.value,a=ha(i.start,t),e.t0=a&&pa(a,i),!e.t0){e.next=11;break}return e.next=11,a;case 11:s=l(i.getWalker()),e.prev=12,s.s();case 14:if((c=s.n()).done){e.next=23;break}if(u=c.value,d=u.item,e.t1="elementEnd"==u.type&&fa(d,t,i),!e.t1){e.next=21;break}return e.next=21,d;case 21:e.next=14;break;case 23:e.next=28;break;case 25:e.prev=25,e.t2=e.catch(12),s.e(e.t2);case 28:return e.prev=28,s.f(),e.finish(28);case 31:if(f=ha(i.end,t),e.t3=f&&!i.end.isTouching(Jo._createAt(f,0))&&pa(f,i),!e.t3){e.next=36;break}return e.next=36,f;case 36:e.next=4;break;case 38:e.next=43;break;case 40:e.prev=40,e.t4=e.catch(2),n.e(e.t4);case 43:return e.prev=43,n.f(),e.finish(43);case 46:case"end":return e.stop()}}),e,this,[[2,40,43,46],[12,25,28,31]])}))},{key:"containsEntireContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root,t=Jo._createAt(e,0),n=Jo._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}},{key:"_pushRange",value:function(e){this._checkRange(e),this._ranges.push(new na(e.start,e.end))}},{key:"_checkRange",value:function(e){for(var t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new Kt.a("model-selection-range-intersects",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}},{key:"_removeAllRanges",value:function(){for(;this._ranges.length>0;)this._popRange()}},{key:"_popRange",value:function(){this._ranges.pop()}},{key:"anchor",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}},{key:"focus",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}},{key:"isCollapsed",get:function(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}}]),e}();function da(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&e.parent)}function fa(e,t,n){return da(e,t)&&pa(e,n)}function ha(e,t){var n=e.parent.root.document.model.schema,r=e.parent.getAncestors({parentFirst:!0,includeSelf:!0}),i=!1,o=r.find((function(e){return!i&&(!(i=n.isLimit(e))&&da(e,t))}));return r.forEach((function(e){return t.add(e)})),o}function pa(e,t){var n=function(e){for(var t=e.root.document.model.schema,n=e.parent;n;){if(t.isBlock(n))return n;n=n.parent}}(e);return!n||!t.containsRange(na._createOn(n),!0)}sn(ua,Xt);var ma=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),i=t.call(this,e,r),va.call(y(i)),i}return m(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e}},{key:"toRange",value:function(){return new na(this.start,this.end)}}],[{key:"fromRange",value:function(e){return new n(e.start,e.end)}}]),n}(na);function va(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var r=n[0];r.isDocumentOperation&&ga.call(e,r)}),{priority:"low"})}function ga(e){var t=this.getTransformedByOperation(e),n=na._createFromRanges(t),r=!n.isEqual(this),i=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e),o=null;if(r){"$graveyard"==n.root.rootName&&(o="remove"==e.type?e.sourcePosition:e.deletionPosition);var a=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",a,{deletionPosition:o})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:o})}sn(ma,Xt);var ba="selection:",ya=function(){function e(t){h(this,e),this._selection=new ka(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}return m(e,[{key:"getRanges",value:function(){return this._selection.getRanges()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getSelectedBlocks",value:function(){return this._selection.getSelectedBlocks()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"containsEntireContent",value:function(e){return this._selection.containsEntireContent(e)}},{key:"destroy",value:function(){this._selection.destroy()}},{key:"getAttributeKeys",value:function(){return this._selection.getAttributeKeys()}},{key:"getAttributes",value:function(){return this._selection.getAttributes()}},{key:"getAttribute",value:function(e){return this._selection.getAttribute(e)}},{key:"hasAttribute",value:function(e){return this._selection.hasAttribute(e)}},{key:"refresh",value:function(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}},{key:"is",value:function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setAttribute",value:function(e,t){this._selection.setAttribute(e,t)}},{key:"_removeAttribute",value:function(e){this._selection.removeAttribute(e)}},{key:"_getStoredAttributes",value:function(){return this._selection._getStoredAttributes()}},{key:"_overrideGravity",value:function(){return this._selection.overrideGravity()}},{key:"_restoreGravity",value:function(e){this._selection.restoreGravity(e)}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"hasOwnRange",get:function(){return this._selection.hasOwnRange}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"isGravityOverridden",get:function(){return this._selection.isGravityOverridden}},{key:"markers",get:function(){return this._selection.markers}},{key:"_ranges",get:function(){return this._selection._ranges}}],[{key:"_getStoreAttributeKey",value:function(e){return ba+e}},{key:"_isStoreAttributeKey",value:function(e){return e.startsWith(ba)}}]),e}();sn(ya,Xt);var ka=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this)).markers=new cn({idProperty:"name"}),r._model=e.model,r._document=e,r._attributePriority=new Map,r._selectionRestorePosition=null,r._hasChangedRange=!1,r._overriddenGravityRegister=new Set,r.listenTo(r._model,"applyOperation",(function(e,t){var n=t[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==r._ranges.length&&r._selectionRestorePosition&&r._fixGraveyardSelection(r._selectionRestorePosition),r._selectionRestorePosition=null,r._hasChangedRange&&(r._hasChangedRange=!1,r.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),r.on("change:range",(function(){var e,t=l(r.getRanges());try{for(t.s();!(e=t.n()).done;){var n=e.value;if(!r._document._validateSelectionRange(n))throw new Kt.a("document-selection-wrong-position",y(r),{range:n})}}catch(e){t.e(e)}finally{t.f()}})),r.listenTo(r._model.markers,"update",(function(){return r._updateMarkers()})),r.listenTo(r._document,"change",(function(e,t){!function(e,t){var n,r=l(e.document.differ.getChanges());try{var i=function(){var r=n.value;if("insert"!=r.type)return"continue";var i=r.position.parent;r.length===i.maxOffset&&e.enqueueChange(t,(function(e){var t,n=l(Array.from(i.getAttributeKeys()).filter((function(e){return e.startsWith(ba)})));try{for(n.s();!(t=n.n()).done;){var r=t.value;e.removeAttribute(r,i)}}catch(e){n.e(e)}finally{n.f()}}))};for(r.s();!(n=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}}(r._model,t)})),r}return m(n,[{key:"destroy",value:function(){for(var e=0;e<this._ranges.length;e++)this._ranges[e].detach();this.stopListening()}},{key:"getRanges",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._ranges.length){e.next=4;break}return e.delegateYield(s(A(n.prototype),"getRanges",this).call(this),"t0",2);case 2:e.next=6;break;case 4:return e.next=6,this._document._getDefaultRange();case 6:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return s(A(n.prototype),"getFirstRange",this).call(this)||this._document._getDefaultRange()}},{key:"getLastRange",value:function(){return s(A(n.prototype),"getLastRange",this).call(this)||this._document._getDefaultRange()}},{key:"setTo",value:function(e,t,r){s(A(n.prototype),"setTo",this).call(this,e,t,r),this._updateAttributes(!0),this._updateMarkers()}},{key:"setFocus",value:function(e,t){s(A(n.prototype),"setFocus",this).call(this,e,t),this._updateAttributes(!0),this._updateMarkers()}},{key:"setAttribute",value:function(e,t){if(this._setAttribute(e,t)){var n=[e];this.fire("change:attribute",{attributeKeys:n,directChange:!0})}}},{key:"removeAttribute",value:function(e){if(this._removeAttribute(e)){var t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}},{key:"overrideGravity",value:function(){var e=Wt();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}},{key:"restoreGravity",value:function(e){if(!this._overriddenGravityRegister.has(e))throw new Kt.a("document-selection-gravity-wrong-restore",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}},{key:"_popRange",value:function(){this._ranges.pop().detach()}},{key:"_pushRange",value:function(e){var t=this._prepareRange(e);t&&this._ranges.push(t)}},{key:"_prepareRange",value:function(e){var t=this;if(this._checkRange(e),e.root!=this._document.graveyard){var n=ma.fromRange(e);return n.on("change:range",(function(e,r,i){if(t._hasChangedRange=!0,n.root==t._document.graveyard){t._selectionRestorePosition=i.deletionPosition;var o=t._ranges.indexOf(n);t._ranges.splice(o,1),n.detach()}})),n}}},{key:"_updateMarkers",value:function(){var e,t=[],n=!1,r=l(this._model.markers);try{for(r.s();!(e=r.n()).done;){var i,o=e.value,a=o.getRange(),s=l(this.getRanges());try{for(s.s();!(i=s.n()).done;){var c=i.value;a.containsRange(c,!c.isCollapsed)&&t.push(o)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){r.e(e)}finally{r.f()}for(var u=Array.from(this.markers),d=0,f=t;d<f.length;d++){var h=f[d];this.markers.has(h)||(this.markers.add(h),n=!0)}for(var p=0,m=Array.from(this.markers);p<m.length;p++){var v=m[p];t.includes(v)||(this.markers.remove(v),n=!0)}n&&this.fire("change:marker",{oldMarkers:u,directChange:!1})}},{key:"_updateAttributes",value:function(e){var t=kn(this._getSurroundingAttributes()),n=kn(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else{var r,i=l(this._attributePriority);try{for(i.s();!(r=i.n()).done;){var o=c(r.value,2),a=o[0];"low"==o[1]&&(this._attrs.delete(a),this._attributePriority.delete(a))}}catch(e){i.e(e)}finally{i.f()}}this._setAttributesTo(t);var s,u=[],d=l(this.getAttributes());try{for(d.s();!(s=d.n()).done;){var f=c(s.value,2),h=f[0],p=f[1];n.has(h)&&n.get(h)===p||u.push(h)}}catch(e){d.e(e)}finally{d.f()}var m,v=l(n);try{for(v.s();!(m=v.n()).done;){var g=c(m.value,1)[0];this.hasAttribute(g)||u.push(g)}}catch(e){v.e(e)}finally{v.f()}u.length>0&&this.fire("change:attribute",{attributeKeys:u,directChange:!1})}},{key:"_setAttribute",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=r?"normal":"low";return("low"!=i||"normal"!=this._attributePriority.get(e))&&(s(A(n.prototype),"getAttribute",this).call(this,e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,i),!0))}},{key:"_removeAttribute",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t?"normal":"low";return!("low"==r&&"normal"==this._attributePriority.get(e)||(this._attributePriority.set(e,r),!s(A(n.prototype),"hasAttribute",this).call(this,e)||(this._attrs.delete(e),0)))}},{key:"_setAttributesTo",value:function(e){var t,n=new Set,r=l(this.getAttributes());try{for(r.s();!(t=r.n()).done;){var i=c(t.value,2),o=i[0],a=i[1];e.get(o)!==a&&this._removeAttribute(o,!1)}}catch(e){r.e(e)}finally{r.f()}var s,u=l(e);try{for(u.s();!(s=u.n()).done;){var d=c(s.value,2),f=d[0],h=d[1];this._setAttribute(f,h,!1)&&n.add(f)}}catch(e){u.e(e)}finally{u.f()}return n}},{key:"_getStoredAttributes",value:o.a.mark((function e(){var t,n,r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getFirstPosition().parent,!this.isCollapsed||!t.isEmpty){e.next=21;break}n=l(t.getAttributeKeys()),e.prev=3,n.s();case 5:if((r=n.n()).done){e.next=13;break}if(!(i=r.value).startsWith(ba)){e.next=11;break}return a=i.substr(ba.length),e.next=11,[a,t.getAttribute(i)];case 11:e.next=5;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[3,15,18,21]])}))},{key:"_getSurroundingAttributes",value:function(){var e=this.getFirstPosition(),t=this._model.schema,n=null;if(this.isCollapsed){var r=e.textNode?e.textNode:e.nodeBefore,i=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=wa(r)),n||(n=wa(i)),!this.isGravityOverridden&&!n)for(var o=r;o&&!t.isInline(o)&&!n;)n=wa(o=o.previousSibling);if(!n)for(var a=i;a&&!t.isInline(a)&&!n;)n=wa(a=a.nextSibling);n||(n=this._getStoredAttributes())}else{var s,c=l(this.getFirstRange());try{for(c.s();!(s=c.n()).done;){var u=s.value;if(u.item.is("element")&&t.isObject(u.item))break;if("text"==u.type){n=u.item.getAttributes();break}}}catch(e){c.e(e)}finally{c.f()}}return n}},{key:"_fixGraveyardSelection",value:function(e){var t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}},{key:"isCollapsed",get:function(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:s(A(n.prototype),"isCollapsed",this)}},{key:"anchor",get:function(){return s(A(n.prototype),"anchor",this)||this._document._getDefaultRange().start}},{key:"focus",get:function(){return s(A(n.prototype),"focus",this)||this._document._getDefaultRange().end}},{key:"rangeCount",get:function(){return this._ranges.length?this._ranges.length:1}},{key:"hasOwnRange",get:function(){return this._ranges.length>0}},{key:"isGravityOverridden",get:function(){return!!this._overriddenGravityRegister.size}}]),n}(ua);function wa(e){return e instanceof Yo||e instanceof Wo?e.getAttributes():null}var _a=function(){function e(t){h(this,e),this._dispatchers=t}return m(e,[{key:"add",value:function(e){var t,n=l(this._dispatchers);try{for(n.s();!(t=n.n()).done;){e(t.value)}}catch(e){n.e(e)}finally{n.f()}return this}}]),e}(),Ca=function(e){return Bt(e,5)},Aa=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"elementToElement",value:function(e){return this.add(function(e){return(e=Ca(e)).view=Ma(e.view,"container"),function(t){var n;if(t.on("insert:"+e.model,(n=e.view,function(e,t,r){var i=n(t.item,r);if(i&&r.consumable.consume(t.item,"insert")){var o=r.mapper.toViewPosition(t.range.start);r.mapper.bindElements(t.item,i),r.writer.insert(o,i)}}),{priority:e.converterPriority||"normal"}),e.triggerBy){if(e.triggerBy.attributes){var r,i=l(e.triggerBy.attributes);try{for(i.s();!(r=i.n()).done;){var o=r.value;t._mapReconversionTriggerEvent(e.model,"attribute:".concat(o,":").concat(e.model))}}catch(e){i.e(e)}finally{i.f()}}if(e.triggerBy.children){var a,s=l(e.triggerBy.children);try{for(s.s();!(a=s.n()).done;){var c=a.value;t._mapReconversionTriggerEvent(e.model,"insert:"+c),t._mapReconversionTriggerEvent(e.model,"remove:"+c)}}catch(e){s.e(e)}finally{s.f()}}}}}(e))}},{key:"attributeToElement",value:function(e){return this.add(function(e){var t="attribute:"+((e=Ca(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,r=l(e.model.values);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.view[i]=Ma(e.view[i],"attribute")}}catch(e){r.e(e)}finally{r.f()}}else e.view=Ma(e.view,"attribute");var o=Ea(e);return function(n){n.on(t,function(e){return function(t,n,r){var i=e(n.attributeOldValue,r),o=e(n.attributeNewValue,r);if((i||o)&&r.consumable.consume(n.item,t.name)){var a=r.writer,s=a.document.selection;if(n.item instanceof ua||n.item instanceof ya)a.wrap(s.getFirstRange(),o);else{var c=r.mapper.toViewRange(n.range);null!==n.attributeOldValue&&i&&(c=a.unwrap(c,i)),null!==n.attributeNewValue&&o&&a.wrap(c,o)}}}}(o),{priority:e.converterPriority||"normal"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){var t="attribute:"+((e=Ca(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,r=l(e.model.values);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.view[i]=Ta(e.view[i])}}catch(e){r.e(e)}finally{r.f()}}else e.view=Ta(e.view);var o=Ea(e);return function(n){var r;n.on(t,(r=o,function(e,t,n){var i=r(t.attributeOldValue,n),o=r(t.attributeNewValue,n);if((i||o)&&n.consumable.consume(t.item,e.name)){var a=n.mapper.toViewElement(t.item),s=n.writer;if(!a)throw new Kt.a("conversion-attribute-to-attribute-on-text",[t,n]);if(null!==t.attributeOldValue&&i)if("class"==i.key){var c,u=l(Array.isArray(i.value)?i.value:[i.value]);try{for(u.s();!(c=u.n()).done;){var d=c.value;s.removeClass(d,a)}}catch(e){u.e(e)}finally{u.f()}}else if("style"==i.key)for(var f=0,h=Object.keys(i.value);f<h.length;f++){var p=h[f];s.removeStyle(p,a)}else s.removeAttribute(i.key,a);if(null!==t.attributeNewValue&&o)if("class"==o.key){var m,v=l(Array.isArray(o.value)?o.value:[o.value]);try{for(v.s();!(m=v.n()).done;){var g=m.value;s.addClass(g,a)}}catch(e){v.e(e)}finally{v.f()}}else if("style"==o.key)for(var b=0,y=Object.keys(o.value);b<y.length;b++){var k=y[b];s.setStyle(k,o.value[k],a)}else s.setAttribute(o.key,o.value,a)}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToElement",value:function(e){return this.add(function(e){return(e=Ca(e)).view=Ma(e.view,"ui"),function(t){var n;t.on("addMarker:"+e.model,(n=e.view,function(e,t,r){t.isOpening=!0;var i=n(t,r);t.isOpening=!1;var o=n(t,r);if(i&&o){var a=t.markerRange;if(!a.isCollapsed||r.consumable.consume(a,e.name)){var s,c=l(a);try{for(c.s();!(s=c.n()).done;){var u=s.value;if(!r.consumable.consume(u.item,e.name))return}}catch(e){c.e(e)}finally{c.f()}var d=r.mapper,f=r.writer;f.insert(d.toViewPosition(a.start),i),r.mapper.bindElementToMarker(i,t.markerName),a.isCollapsed||(f.insert(d.toViewPosition(a.end),o),r.mapper.bindElementToMarker(o,t.markerName)),e.stop()}}}),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,(e.view,function(e,t,n){var r=n.mapper.markerNameToElements(t.markerName);if(r){var i,o=l(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;n.mapper.unbindElementFromMarkerName(a,t.markerName),n.writer.clear(n.writer.createRangeOn(a),a)}}catch(e){o.e(e)}finally{o.f()}n.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToHighlight",value:function(e){return this.add(function(e){return function(t){var n;t.on("addMarker:"+e.model,(n=e.view,function(e,t,r){if(t.item&&(t.item instanceof ua||t.item instanceof ya||t.item.is("$textProxy"))){var i=Da(n,t,r);if(i&&r.consumable.consume(t.item,e.name)){var o=r.writer,a=xa(o,i),s=o.document.selection;if(t.item instanceof ua||t.item instanceof ya)o.wrap(s.getFirstRange(),a,s);else{var c,u=r.mapper.toViewRange(t.range),d=l(o.wrap(u,a).getItems());try{for(d.s();!(c=d.n()).done;){var f=c.value;if(f.is("attributeElement")&&f.isSimilar(a)){r.mapper.bindElementToMarker(f,t.markerName);break}}}catch(e){d.e(e)}finally{d.f()}}}}}),{priority:e.converterPriority||"normal"}),t.on("addMarker:"+e.model,function(e){return function(t,n,r){if(n.item&&n.item instanceof Go){var i=Da(e,n,r);if(i&&r.consumable.test(n.item,t.name)){var o=r.mapper.toViewElement(n.item);if(o&&o.getCustomProperty("addHighlight")){r.consumable.consume(n.item,t.name);var a,s=l(na._createIn(n.item));try{for(s.s();!(a=s.n()).done;){var c=a.value;r.consumable.consume(c.item,t.name)}}catch(e){s.e(e)}finally{s.f()}o.getCustomProperty("addHighlight")(o,i,r.writer),r.mapper.bindElementToMarker(o,n.markerName)}}}}}(e.view),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,function(e){return function(t,n,r){if(!n.markerRange.isCollapsed){var i=Da(e,n,r);if(i){var o=xa(r.writer,i),a=r.mapper.markerNameToElements(n.markerName);if(a){var s,c=l(a);try{for(c.s();!(s=c.n()).done;){var u=s.value;r.mapper.unbindElementFromMarkerName(u,n.markerName),u.is("attributeElement")?r.writer.unwrap(r.writer.createRangeOn(u),o):u.getCustomProperty("removeHighlight")(u,i.id,r.writer)}}catch(e){c.e(e)}finally{c.f()}r.writer.clearClonedElementsGroup(n.markerName),t.stop()}}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToData",value:function(e){return this.add(function(e){var t=(e=Ca(e)).model;return e.view||(e.view=function(n){return{group:t,name:n.substr(e.model.length+1)}}),function(n){var r;n.on("addMarker:"+t,(r=e.view,function(e,t,n){var i=r(t.markerName,n);if(i){var o=t.markerRange;n.consumable.consume(o,e.name)&&(Sa(o,!1,n,t,i),Sa(o,!0,n,t,i),e.stop())}}),{priority:e.converterPriority||"normal"}),n.on("removeMarker:"+t,function(e){return function(t,n,r){var i=e(n.markerName,r);if(i){var o=r.mapper.markerNameToElements(n.markerName);if(o){var a,s=l(o);try{for(s.s();!(a=s.n()).done;){var c=a.value;r.mapper.unbindElementFromMarkerName(c,n.markerName),c.is("containerElement")?(u("data-".concat(i.group,"-start-before"),c),u("data-".concat(i.group,"-start-after"),c),u("data-".concat(i.group,"-end-before"),c),u("data-".concat(i.group,"-end-after"),c)):r.writer.clear(r.writer.createRangeOn(c),c)}}catch(e){s.e(e)}finally{s.f()}r.writer.clearClonedElementsGroup(n.markerName),t.stop()}}function u(e,t){if(t.hasAttribute(e)){var n=new Set(t.getAttribute(e).split(","));n.delete(i.name),0==n.size?r.writer.removeAttribute(e,t):r.writer.setAttribute(e,Array.from(n).join(","),t)}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}}]),n}(_a);function xa(e,t){var n=e.createAttributeElement("span",t.attributes);return t.classes&&n._addClass(t.classes),t.priority&&(n._priority=t.priority),n._id=t.id,n}function Sa(e,t,n,r,i){var o,a,s=t?e.start:e.end;n.schema.checkChild(s,"$text")?function(e,t,n,r,i){var o="".concat(i.group,"-").concat(t?"start":"end"),a=i.name?{name:i.name}:null,s=n.writer.createUIElement(o,a);n.writer.insert(e,s),n.mapper.bindElementToMarker(s,r.markerName)}(n.mapper.toViewPosition(s),t,n,r,i):(t&&s.nodeAfter||!t&&!s.nodeBefore?(o=s.nodeAfter,a=!0):(o=s.nodeBefore,a=!1),function(e,t,n,r,i,o){var a="data-".concat(o.group,"-").concat(t?"start":"end","-").concat(n?"before":"after"),s=e.hasAttribute(a)?e.getAttribute(a).split(","):[];s.unshift(o.name),r.writer.setAttribute(a,s.join(","),e),r.mapper.bindElementToMarker(e,i.markerName)}(n.mapper.toViewElement(o),t,a,n,r,i))}function Ma(e,t){return"function"==typeof e?e:function(n,r){return function(e,t,n){var r;"string"==typeof e&&(e={name:e});var i=t.writer,o=Object.assign({},e.attributes);if("container"==n)r=i.createContainerElement(e.name,o);else if("attribute"==n){var a={priority:e.priority||Pr.DEFAULT_PRIORITY};r=i.createAttributeElement(e.name,o,a)}else r=i.createUIElement(e.name,o);if(e.styles)for(var s=0,c=Object.keys(e.styles);s<c.length;s++){var u=c[s];i.setStyle(u,e.styles[u],r)}if(e.classes){var d=e.classes;if("string"==typeof d)i.addClass(d,r);else{var f,h=l(d);try{for(h.s();!(f=h.n()).done;){var p=f.value;i.addClass(p,r)}}catch(e){h.e(e)}finally{h.f()}}}return r}(e,r,t)}}function Ea(e){return e.model.values?function(t,n){var r=e.view[t];return r?r(t,n):null}:e.view}function Ta(e){return"string"==typeof e?function(t){return{key:e,value:t}}:"object"==x(e)?e.value?function(){return e}:function(t){return{key:e.key,value:t}}:e}function Da(e,t,n){var r="function"==typeof e?e(t,n):e;return r?(r.priority||(r.priority=10),r.id||(r.id=t.markerName),r):null}function Oa(e){var t,n=e.model,r=n.schema,i=n.document,o=l(i.getRootNames());try{for(o.s();!(t=o.n()).done;){var a=t.value,s=i.getRoot(a);if(s.isEmpty&&!r.checkChild(s,"$text")&&r.checkChild(s,"paragraph"))return e.insertElement("paragraph",s),!0}}catch(e){o.e(e)}finally{o.f()}return!1}function Pa(e,t,n){var r=n.createContext(e);return!!n.checkChild(r,"paragraph")&&!!n.checkChild(r.push("paragraph"),t)}function Ia(e,t){var n=t.createElement("paragraph");return t.insert(n,e),t.createPositionAt(n,0)}var ja=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"elementToElement",value:function(e){return this.add(Na(e))}},{key:"elementToAttribute",value:function(e){return this.add(function(e){Ba(e=Ca(e));var t=Fa(e,!1),n=Ra(e.view),r=n?"element:"+n:"element";return function(n){n.on(r,t,{priority:e.converterPriority||"low"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){var t=null;("string"==typeof(e=Ca(e)).view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});var t,n=e.view.key;return t="class"==n||"style"==n?a({},"class"==n?"classes":"styles",e.view.value):{attributes:a({},n,void 0===e.view.value?/[\s\S]*/:e.view.value)},e.view.name&&(t.name=e.view.name),e.view=t,n}(e)),Ba(e,t);var n=Fa(e,!0);return function(t){t.on("element",n,{priority:e.converterPriority||"low"})}}(e))}},{key:"elementToMarker",value:function(e){return Object(Kt.c)("upcast-helpers-element-to-marker-deprecated"),this.add(function(e){return function(e){var t=e.model;e.model=function(e,n){var r="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":r})}}(e=Ca(e)),Na(e)}(e))}},{key:"dataToMarker",value:function(e){return this.add(function(e){(e=Ca(e)).model||(e.model=function(t){return t?e.view+":"+t:e.view});var t=La(za(e,"start")),n=La(za(e,"end"));return function(r){r.on("element:"+e.view+"-start",t,{priority:e.converterPriority||"normal"}),r.on("element:"+e.view+"-end",n,{priority:e.converterPriority||"normal"});var i=Yt.get("low"),o=Yt.get("highest"),a=Yt.get(e.converterPriority)/o;r.on("element",function(e){return function(t,n,r){var i="data-"+e.view;function o(t,i){var o,a=l(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=e.model(s,r),u=r.writer.createElement("$marker",{"data-name":c});r.writer.insert(u,t),n.modelCursor.isEqual(t)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(t,1),n.modelRange=n.modelRange._getTransformedByInsertion(t,1)[0]}}catch(e){a.e(e)}finally{a.f()}}n.modelRange||(n=Object.assign(n,r.convertChildren(n.viewItem,n.modelCursor))),r.consumable.consume(n.viewItem,{attributes:i+"-end-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(i+"-end-after").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-start-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(i+"-start-after").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-end-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(i+"-end-before").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-start-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(i+"-start-before").split(","))}}(e),{priority:i+a})}}(e))}}]),n}(_a);function Na(e){var t=La(e=Ca(e)),n=Ra(e.view),r=n?"element:"+n:"element";return function(n){n.on(r,t,{priority:e.converterPriority||"normal"})}}function Ra(e){return"string"==typeof e?e:"object"==x(e)&&"string"==typeof e.name?e.name:null}function La(e){var t=new wn(e.view);return function(n,r,i){var o=t.match(r.viewItem);if(o){var a=o.match;if(a.name=!0,i.consumable.test(r.viewItem,a)){var s=function(e,t,n){return e instanceof Function?e(t,n):n.writer.createElement(e)}(e.model,r.viewItem,i);s&&i.safeInsert(s,r.modelCursor)&&(i.consumable.consume(r.viewItem,a),i.convertChildren(r.viewItem,s),i.updateConversionResult(s,r))}}}}function Ba(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null===t||function(e){return e.getAttribute(t)},r="object"!=x(e.model)?e.model:e.model.key,i="object"!=x(e.model)||void 0===e.model.value?n:e.model.value;e.model={key:r,value:i}}function Fa(e,t){var n=new wn(e.view);return function(r,i,o){var a=n.match(i.viewItem);if(a){var s=e.model.key,c="function"==typeof e.model.value?e.model.value(i.viewItem,o):e.model.value;null!==c&&(function(e,t){var n="function"==typeof e?e(t):e;return!("object"==x(n)&&!Ra(n))&&(!n.classes&&!n.attributes&&!n.styles)}(e.view,i.viewItem)?a.match.name=!0:delete a.match.name,o.consumable.test(i.viewItem,a.match)&&(i.modelRange||(i=Object.assign(i,o.convertChildren(i.viewItem,i.modelCursor))),function(e,t,n,r){for(var i=!1,o=0,a=Array.from(e.getItems({shallow:n}));o<a.length;o++){var s=a[o];r.schema.checkAttribute(s,t.key)&&(r.writer.setAttribute(t.key,t.value,s),i=!0)}return i}(i.modelRange,{key:s,value:c},t,o)&&o.consumable.consume(i.viewItem,a.match)))}}}function za(e,t){var n={};return n.view=e.view+"-"+t,n.model=function(t,n){var r=t.getAttribute("name"),i=e.model(r,n);return n.writer.createElement("$marker",{"data-name":i})},n}var Va=function(){function e(t,n){var r=this;h(this,e),this.model=t,this.view=new Uo(n),this.mapper=new ra,this.downcastDispatcher=new aa({mapper:this.mapper,schema:t.schema});var i=this.model.document,o=i.selection,a=this.model.markers;this.listenTo(this.model,"_beforeChanges",(function(){r.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(function(){r.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(i,"change",(function(){r.view.change((function(e){r.downcastDispatcher.convertChanges(i.differ,a,e),r.downcastDispatcher.convertSelection(o,a,e)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return function(n,r){var i,o=r.newSelection,a=[],s=l(o.getRanges());try{for(s.s();!(i=s.n()).done;){var c=i.value;a.push(t.toModelRange(c))}}catch(e){s.e(e)}finally{s.f()}var u=e.createSelection(a,{backward:o.isBackward});u.isEqual(e.document.selection)||e.change((function(e){e.setSelection(u)}))}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,"insert")){var r=n.writer,i=n.mapper.toViewPosition(t.range.start),o=r.createText(t.item.data);r.insert(i,o)}}),{priority:"lowest"}),this.downcastDispatcher.on("remove",(function(e,t,n){var r,i=n.mapper.toViewPosition(t.position),o=t.position.getShiftedBy(t.length),a=n.mapper.toViewPosition(o,{isPhantom:!0}),s=n.writer.createRange(i,a),c=n.writer.remove(s.getTrimmed()),u=l(n.writer.createRangeIn(c).getItems());try{for(u.s();!(r=u.n()).done;){var d=r.value;n.mapper.unbindViewElement(d)}}catch(e){u.e(e)}finally{u.f()}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var r,i=n.writer,o=l(i.document.selection.getRanges());try{for(o.s();!(r=o.n()).done;){var a=r.value;a.isCollapsed&&a.end.parent.isAttached()&&n.writer.mergeAttributes(a.start)}}catch(e){o.e(e)}finally{o.f()}i.setSelection(null)}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var r=t.selection;if(!r.isCollapsed&&n.consumable.consume(r,"selection")){var i,o=[],a=l(r.getRanges());try{for(a.s();!(i=a.n()).done;){var s=i.value,c=n.mapper.toViewRange(s);o.push(c)}}catch(e){a.e(e)}finally{a.f()}n.writer.setSelection(o,{backward:r.isBackward})}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var r=t.selection;if(r.isCollapsed&&n.consumable.consume(r,"selection")){var i=n.writer,o=r.getFirstPosition(),a=n.mapper.toViewPosition(o),s=i.breakAttributes(a);i.setSelection(s)}}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((function(e){if("$graveyard"==e.rootName)return null;var t=new Cr(r.view.document,e.name);return t.rootName=e.rootName,r.mapper.bindElements(e,t),t}))}return m(e,[{key:"destroy",value:function(){this.view.destroy(),this.stopListening()}}]),e}();sn(Va,mr);var $a=function(){function e(){h(this,e),this._commands=new Map}return m(e,[{key:"add",value:function(e,t){this._commands.set(e,t)}},{key:"get",value:function(e){return this._commands.get(e)}},{key:"execute",value:function(e){var t=this.get(e);if(!t)throw new Kt.a("commandcollection-command-not-found",this,{commandName:e});for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.execute.apply(t,r)}},{key:"names",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._commands.keys(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"commands",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._commands.values(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:Symbol.iterator,value:function(){return this._commands[Symbol.iterator]()}},{key:"destroy",value:function(){var e,t=l(this.commands());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}}}]),e}(),Ha=function(){function e(){h(this,e),this._consumables=new Map}return m(e,[{key:"add",value:function(e,t){var n;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?n=this._consumables.get(e):(n=new Ua(e),this._consumables.set(e,n)),n.add(t))}},{key:"test",value:function(e,t){var n=this._consumables.get(e);return void 0===n?null:e.is("$text")||e.is("documentFragment")?n:n.test(t)}},{key:"consume",value:function(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}},{key:"revert",value:function(e,t){var n=this._consumables.get(e);void 0!==n&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):n.revert(t))}}],[{key:"consumablesFromElement",value:function(e){var t,n={element:e,name:!0,attributes:[],classes:[],styles:[]},r=l(e.getAttributeKeys());try{for(r.s();!(t=r.n()).done;){var i=t.value;"style"!=i&&"class"!=i&&n.attributes.push(i)}}catch(e){r.e(e)}finally{r.f()}var o,a=l(e.getClassNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.classes.push(s)}}catch(e){a.e(e)}finally{a.f()}var c,u=l(e.getStyleNames());try{for(u.s();!(c=u.n()).done;){var d=c.value;n.styles.push(d)}}catch(e){u.e(e)}finally{u.f()}return n}},{key:"createFrom",value:function(t,n){if(n||(n=new e(t)),t.is("$text"))return n.add(t),n;t.is("element")&&n.add(t,e.consumablesFromElement(t)),t.is("documentFragment")&&n.add(t);var r,i=l(t.getChildren());try{for(i.s();!(r=i.n()).done;){var o=r.value;n=e.createFrom(o,n)}}catch(e){i.e(e)}finally{i.f()}return n}}]),e}(),Ua=function(){function e(t){h(this,e),this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}return m(e,[{key:"add",value:function(e){for(var t in e.name&&(this._canConsumeName=!0),this._consumables)t in e&&this._add(t,e[t])}},{key:"test",value:function(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(var t in this._consumables)if(t in e){var n=this._test(t,e[t]);if(!0!==n)return n}return!0}},{key:"consume",value:function(e){for(var t in e.name&&(this._canConsumeName=!1),this._consumables)t in e&&this._consume(t,e[t])}},{key:"revert",value:function(e){for(var t in e.name&&(this._canConsumeName=!0),this._consumables)t in e&&this._revert(t,e[t])}},{key:"_add",value:function(e,t){var n,r=Se(t)?t:[t],i=this._consumables[e],o=l(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"===e&&("class"===a||"style"===a))throw new Kt.a("viewconsumable-invalid-attribute",this);if(i.set(a,!0),"styles"===e){var s,c=l(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(c.s();!(s=c.n()).done;){var u=s.value;i.set(u,!0)}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){o.e(e)}finally{o.f()}}},{key:"_test",value:function(e,t){var n,r=Se(t)?t:[t],i=this._consumables[e],o=l(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==e||"class"!==a&&"style"!==a){var s=i.get(a);if(void 0===s)return null;if(!s)return!1}else{var c="class"==a?"classes":"styles",d=this._test(c,u(this._consumables[c].keys()));if(!0!==d)return d}}}catch(e){o.e(e)}finally{o.f()}return!0}},{key:"_consume",value:function(e,t){var n,r=Se(t)?t:[t],i=this._consumables[e],o=l(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==e||"class"!==a&&"style"!==a){if(i.set(a,!1),"styles"==e){var s,c=l(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(c.s();!(s=c.n()).done;){var d=s.value;i.set(d,!1)}}catch(e){c.e(e)}finally{c.f()}}}else{var f="class"==a?"classes":"styles";this._consume(f,u(this._consumables[f].keys()))}}}catch(e){o.e(e)}finally{o.f()}}},{key:"_revert",value:function(e,t){var n,r=Se(t)?t:[t],i=this._consumables[e],o=l(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==e||"class"!==a&&"style"!==a)!1===i.get(a)&&i.set(a,!0);else{var s="class"==a?"classes":"styles";this._revert(s,u(this._consumables[s].keys()))}}}catch(e){o.e(e)}finally{o.f()}}}]),e}(),qa=function(){function e(){var t=this;h(this,e),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(function(e,t){t[0]=new Wa(t[0])}),{priority:"highest"}),this.on("checkChild",(function(e,n){n[0]=new Wa(n[0]),n[1]=t.getDefinition(n[1])}),{priority:"highest"})}return m(e,[{key:"register",value:function(e,t){if(this._sourceDefinitions[e])throw new Kt.a("schema-cannot-register-item-twice",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}},{key:"extend",value:function(e,t){if(!this._sourceDefinitions[e])throw new Kt.a("schema-cannot-extend-missing-item",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}},{key:"getDefinitions",value:function(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}},{key:"getDefinition",value:function(e){var t;return t="string"==typeof e?e:e.is&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}},{key:"isRegistered",value:function(e){return!!this.getDefinition(e)}},{key:"isBlock",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isBlock)}},{key:"isLimit",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isLimit&&!t.isObject)}},{key:"isObject",value:function(e){var t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}},{key:"isInline",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isInline)}},{key:"isSelectable",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isSelectable&&!t.isObject)}},{key:"isContent",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isContent&&!t.isObject)}},{key:"checkChild",value:function(e,t){return!!t&&this._checkContextMatch(t,e)}},{key:"checkAttribute",value:function(e,t){var n=this.getDefinition(e.last);return!!n&&n.allowAttributes.includes(t)}},{key:"checkMerge",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e instanceof Jo){var n=e.nodeBefore,r=e.nodeAfter;if(!(n instanceof Go))throw new Kt.a("schema-check-merge-no-element-before",this);if(!(r instanceof Go))throw new Kt.a("schema-check-merge-no-element-after",this);return this.checkMerge(n,r)}var i,o=l(t.getChildren());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!this.checkChild(e,a))return!1}}catch(e){o.e(e)}finally{o.f()}return!0}},{key:"addChildCheck",value:function(e){this.on("checkChild",(function(t,n){var r=c(n,2),i=r[0],o=r[1];if(o){var a=e(i,o);"boolean"==typeof a&&(t.stop(),t.return=a)}}),{priority:"high"})}},{key:"addAttributeCheck",value:function(e){this.on("checkAttribute",(function(t,n){var r=c(n,2),i=r[0],o=r[1],a=e(i,o);"boolean"==typeof a&&(t.stop(),t.return=a)}),{priority:"high"})}},{key:"setAttributeProperties",value:function(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}},{key:"getAttributeProperties",value:function(e){return this._attributeProperties[e]||{}}},{key:"getLimitElement",value:function(e){var t;for(t=e instanceof Jo?e.parent:(e instanceof na?[e]:Array.from(e.getRanges())).reduce((function(e,t){var n=t.getCommonAncestor();return e?e.getCommonAncestor(n,{includeSelf:!0}):n}),null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}},{key:"checkAttributeInSelection",value:function(e,t){if(e.isCollapsed){var n=[].concat(u(e.getFirstPosition().getAncestors()),[new Wo("",e.getAttributes())]);return this.checkAttribute(n,t)}var r,i=l(e.getRanges());try{for(i.s();!(r=i.n()).done;){var o,a=l(r.value);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(this.checkAttribute(s.item,t))return!0}}catch(e){a.e(e)}finally{a.f()}}}catch(e){i.e(e)}finally{i.f()}return!1}},{key:"getValidRanges",value:o.a.mark((function e(t,n){var r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=l(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=8;break}return i=r.value,e.delegateYield(i.getMinimalFlatRanges(),"t0",6);case 6:e.next=3;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),n.e(e.t1);case 13:return e.prev=13,n.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,10,13,16]])}))(t),r=l(t),e.prev=2,r.s();case 4:if((i=r.n()).done){e.next=9;break}return a=i.value,e.delegateYield(this._getValidRangesForRange(a,n),"t0",7);case 7:e.next=4;break;case 9:e.next=14;break;case 11:e.prev=11,e.t1=e.catch(2),r.e(e.t1);case 14:return e.prev=14,r.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[2,11,14,17]])}))},{key:"getNearestSelectionRange",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(e,"$text"))return new na(e);var a=e.getAncestors().reverse().find((function(e){return r.isLimit(e)}))||e.root;"both"!=i&&"backward"!=i||(t=new Qo({boundaries:na._createIn(a),startPosition:e,direction:"backward"})),"both"!=i&&"forward"!=i||(n=new Qo({boundaries:na._createIn(a),startPosition:e}));var s,c=l(o.a.mark((function e(t,n){var r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1;case 1:if(r){e.next=18;break}if(r=!0,!t){e.next=9;break}if(i=t.next(),e.t0=i.done,e.t0){e.next=9;break}return r=!1,e.next=9,{walker:t,value:i.value};case 9:if(!n){e.next=16;break}if(a=n.next(),e.t1=a.done,e.t1){e.next=16;break}return r=!1,e.next=16,{walker:n,value:a.value};case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e)}))(t,n));try{for(c.s();!(s=c.n()).done;){var u=s.value,d=u.walker==t?"elementEnd":"elementStart",f=u.value;if(f.type==d&&this.isObject(f.item))return na._createOn(f.item);if(this.checkChild(f.nextPosition,"$text"))return new na(f.nextPosition)}}catch(e){c.e(e)}finally{c.f()}return null}},{key:"findAllowedParent",value:function(e,t){for(var n=e.parent;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}},{key:"removeDisallowedAttributes",value:function(e,t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is("$text"))rs(this,i,t);else{var o,a=l(na._createIn(i).getPositions());try{for(a.s();!(o=a.n()).done;){var s=o.value;rs(this,s.nodeBefore||s.parent,t)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"createContext",value:function(e){return new Wa(e)}},{key:"_clearCache",value:function(){this._compiledDefinitions=null}},{key:"_compile",value:function(){for(var e={},t=this._sourceDefinitions,n=Object.keys(t),r=0,i=n;r<i.length;r++){var o=i[r];e[o]=Ya(t[o],o)}for(var a=0,s=n;a<s.length;a++){Ka(e,s[a])}for(var c=0,l=n;c<l.length;c++){Ga(e,l[c])}for(var u=0,d=n;u<d.length;u++){var f=d[u];Qa(e,f),Xa(e,f)}for(var h=0,p=n;h<p.length;h++){var m=p[h];Ja(e,m),Za(e,m)}this._compiledDefinitions=e}},{key:"_checkContextMatch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1,r=t.getItem(n);if(e.allowIn.includes(r.name)){if(0==n)return!0;var i=this.getDefinition(r);return this._checkContextMatch(i,t,n-1)}return!1}},{key:"_getValidRangesForRange",value:o.a.mark((function e(t,n){var r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.start,i=t.start,a=l(t.getItems({shallow:!0})),e.prev=2,a.s();case 4:if((s=a.n()).done){e.next=19;break}if(c=s.value,e.t0=c.is("element"),!e.t0){e.next=9;break}return e.delegateYield(this._getValidRangesForRange(na._createIn(c),n),"t1",9);case 9:if(e.t2=this.checkAttribute(c,n),e.t2){e.next=16;break}if(e.t3=r.isEqual(i),e.t3){e.next=15;break}return e.next=15,new na(r,i);case 15:r=Jo._createAfter(c);case 16:i=Jo._createAfter(c);case 17:e.next=4;break;case 19:e.next=24;break;case 21:e.prev=21,e.t4=e.catch(2),a.e(e.t4);case 24:return e.prev=24,a.f(),e.finish(24);case 27:if(e.t5=r.isEqual(i),e.t5){e.next=31;break}return e.next=31,new na(r,i);case 31:case"end":return e.stop()}}),e,this,[[2,21,24,27]])}))}]),e}();sn(qa,mr);var Wa=function(){function e(t){if(h(this,e),t instanceof e)return t;"string"==typeof t?t=[t]:Array.isArray(t)||(t=t.getAncestors({includeSelf:!0})),t[0]&&"string"!=typeof t[0]&&t[0].is("documentFragment")&&t.shift(),this._items=t.map(ns)}return m(e,[{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"push",value:function(t){var n=new e([t]);return n._items=[].concat(u(this._items),u(n._items)),n}},{key:"getItem",value:function(e){return this._items[e]}},{key:"getNames",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._items.map((function(e){return e.name})),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"endsWith",value:function(e){return Array.from(this.getNames()).join(" ").endsWith(e)}},{key:"startsWith",value:function(e){return Array.from(this.getNames()).join(" ").startsWith(e)}},{key:"length",get:function(){return this._items.length}},{key:"last",get:function(){return this._items[this._items.length-1]}}]),e}();function Ya(e,t){var n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(e,t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i,o=n.value,a=l(Object.keys(o).filter((function(e){return e.startsWith("is")})));try{for(a.s();!(i=a.n()).done;){var s=i.value;t[s]=o[s]}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}}(e,n),es(e,n,"allowIn"),es(e,n,"allowContentOf"),es(e,n,"allowWhere"),es(e,n,"allowAttributes"),es(e,n,"allowAttributesOf"),es(e,n,"inheritTypesFrom"),function(e,t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value.inheritAllFrom;i&&(t.allowContentOf.push(i),t.allowWhere.push(i),t.allowAttributesOf.push(i),t.inheritTypesFrom.push(i))}}catch(e){r.e(e)}finally{r.f()}}(e,n),n}function Ka(e,t){var n,r=l(e[t].allowContentOf);try{for(r.s();!(n=r.n()).done;){var i=n.value;e[i]&&ts(e,i).forEach((function(e){e.allowIn.push(t)}))}}catch(e){r.e(e)}finally{r.f()}delete e[t].allowContentOf}function Ga(e,t){var n,r=l(e[t].allowWhere);try{for(r.s();!(n=r.n()).done;){var i=e[n.value];if(i){var o,a=i.allowIn;(o=e[t].allowIn).push.apply(o,u(a))}}}catch(e){r.e(e)}finally{r.f()}delete e[t].allowWhere}function Qa(e,t){var n,r=l(e[t].allowAttributesOf);try{for(r.s();!(n=r.n()).done;){var i=e[n.value];if(i){var o,a=i.allowAttributes;(o=e[t].allowAttributes).push.apply(o,u(a))}}}catch(e){r.e(e)}finally{r.f()}delete e[t].allowAttributesOf}function Xa(e,t){var n,r=e[t],i=l(r.inheritTypesFrom);try{for(i.s();!(n=i.n()).done;){var o=e[n.value];if(o){var a,s=l(Object.keys(o).filter((function(e){return e.startsWith("is")})));try{for(s.s();!(a=s.n()).done;){var c=a.value;c in r||(r[c]=o[c])}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){i.e(e)}finally{i.f()}delete r.inheritTypesFrom}function Ja(e,t){var n=e[t],r=n.allowIn.filter((function(t){return e[t]}));n.allowIn=Array.from(new Set(r))}function Za(e,t){var n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function es(e,t,n){var r,i=l(e);try{for(i.s();!(r=i.n()).done;){var o,a=r.value;"string"==typeof a[n]?t[n].push(a[n]):Array.isArray(a[n])&&(o=t[n]).push.apply(o,u(a[n]))}}catch(e){i.e(e)}finally{i.f()}}function ts(e,t){var n,r=e[t];return(n=e,Object.keys(n).map((function(e){return n[e]}))).filter((function(e){return e.allowIn.includes(r.name)}))}function ns(e){return"string"==typeof e?{name:e,getAttributeKeys:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})),getAttribute:function(){}}:{name:e.is("element")?e.name:"$text",getAttributeKeys:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e.getAttributeKeys(),"t0",1);case 1:case"end":return t.stop()}}),t)})),getAttribute:function(t){return e.getAttribute(t)}}}function rs(e,t,n){var r,i=l(t.getAttributeKeys());try{for(i.s();!(r=i.n()).done;){var o=r.value;e.checkAttribute(t,o)||n.removeAttribute(o,t)}}catch(e){i.e(e)}finally{i.f()}}var is=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,e),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},t),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}return m(e,[{key:"convert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",e),this._modelCursor=function(e,t){var n,r,i=l(new Wa(e));try{for(i.s();!(r=i.n()).done;){var o,a=r.value,s={},c=l(a.getAttributeKeys());try{for(c.s();!(o=c.n()).done;){var u=o.value;s[u]=a.getAttribute(u)}}catch(e){c.e(e)}finally{c.f()}var d=t.createElement(a.name,s);n&&t.append(d,n),n=Jo._createAt(d,0)}}catch(e){i.e(e)}finally{i.f()}return n}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=Ha.createFrom(e),this.conversionApi.store={};var r=this._convertItem(e,this._modelCursor),i=r.modelRange,o=t.createDocumentFragment();if(i){this._removeEmptyElements();for(var a=0,s=Array.from(this._modelCursor.parent.getChildren());a<s.length;a++){var c=s[a];t.append(c,o)}o.markers=function(e,t){var n,r=new Set,i=new Map,o=l(na._createIn(e).getItems());try{for(o.s();!(n=o.n()).done;){var a=n.value;"$marker"==a.name&&r.add(a)}}catch(e){o.e(e)}finally{o.f()}var s,c=l(r);try{for(c.s();!(s=c.n()).done;){var u=s.value,d=u.getAttribute("data-name"),f=t.createPositionBefore(u);i.has(d)?i.get(d).end=f.clone():i.set(d,new na(f.clone())),t.remove(u)}}catch(e){c.e(e)}finally{c.f()}return i}(o,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,o}},{key:"_convertItem",value:function(e,t){var n=Object.assign({viewItem:e,modelCursor:t,modelRange:null});if(e.is("element")?this.fire("element:"+e.name,n,this.conversionApi):e.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof na))throw new Kt.a("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}},{key:"_convertChildren",value:function(e,t){for(var n=t.is("position")?t:Jo._createAt(t,0),r=new na(n),i=0,o=Array.from(e.getChildren());i<o.length;i++){var a=o[i],s=this._convertItem(a,n);s.modelRange instanceof na&&(r.end=s.modelRange.end,n=s.modelCursor)}return{modelRange:r,modelCursor:n}}},{key:"_safeInsert",value:function(e,t){var n=this._splitToAllowedParent(e,t);return!!n&&(this.conversionApi.writer.insert(e,n.position),!0)}},{key:"_updateConversionResult",value:function(e,t){var n=this._getSplitParts(e),r=this.conversionApi.writer;t.modelRange||(t.modelRange=r.createRange(r.createPositionBefore(e),r.createPositionAfter(n[n.length-1])));var i=this._cursorParents.get(e);t.modelCursor=i?r.createPositionAt(i,0):t.modelRange.end}},{key:"_splitToAllowedParent",value:function(e,t){var n=this.conversionApi,r=n.schema,i=n.writer,o=r.findAllowedParent(t,e);if(o){if(o===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(o)&&(o=null)}if(!o)return Pa(t,e,r)?{position:Ia(t,i)}:null;var a,s=this.conversionApi.writer.split(t,o),c=[],u=l(s.range.getWalker());try{for(u.s();!(a=u.n()).done;){var d=a.value;if("elementEnd"==d.type)c.push(d.item);else{var f=c.pop(),h=d.item;this._registerSplitPair(f,h)}}}catch(e){u.e(e)}finally{u.f()}var p=s.range.end.parent;return this._cursorParents.set(e,p),{position:s.position,cursorParent:p}}},{key:"_registerSplitPair",value:function(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);var n=this._splitParts.get(e);this._splitParts.set(t,n),n.push(t)}},{key:"_getSplitParts",value:function(e){return this._splitParts.has(e)?this._splitParts.get(e):[e]}},{key:"_removeEmptyElements",value:function(){var e,t=!1,n=l(this._splitParts.keys());try{for(n.s();!(e=n.n()).done;){var r=e.value;r.isEmpty&&(this.conversionApi.writer.remove(r),this._splitParts.delete(r),t=!0)}}catch(e){n.e(e)}finally{n.f()}t&&this._removeEmptyElements()}}]),e}();sn(is,Xt);var os=function(){function e(t,n){var r=this;h(this,e),this.model=t,this.stylesProcessor=n,this.processor=void 0,this.mapper=new ra,this.downcastDispatcher=new aa({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,"insert")){var r=n.writer,i=n.mapper.toViewPosition(t.range.start),o=r.createText(t.item.data);r.insert(i,o)}}),{priority:"lowest"}),this.upcastDispatcher=new is({schema:t.schema}),this.viewDocument=new Or(n),this._viewWriter=new ri(this.viewDocument),this.upcastDispatcher.on("text",(function(e,t,n){var r=n.schema,i=n.consumable,o=n.writer,a=t.modelCursor;if(i.test(t.viewItem)){if(!r.checkChild(a,"$text")){if(!Pa(a,"$text",r))return;a=Ia(a,o)}i.consume(t.viewItem);var s=o.createText(t.viewItem.data);o.insert(s,a),t.modelRange=o.createRange(a,a.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end}}),{priority:"lowest"}),this.upcastDispatcher.on("element",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var r=n.convertChildren(t.viewItem,t.modelCursor),i=r.modelRange,o=r.modelCursor;t.modelRange=i,t.modelCursor=o}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var r=n.convertChildren(t.viewItem,t.modelCursor),i=r.modelRange,o=r.modelCursor;t.modelRange=i,t.modelCursor=o}}),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",(function(){r.fire("ready")}),{priority:"lowest"}),this.on("ready",(function(){r.model.enqueueChange("transparent",Oa)}),{priority:"lowest"})}return m(e,[{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootName,n=void 0===t?"main":t,r=e.trim,i=void 0===r?"empty":r;if(!this._checkIfRootsExists([n]))throw new Kt.a("datacontroller-get-non-existent-root",this);var o=this.model.document.getRoot(n);return"empty"!==i||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,e):""}},{key:"stringify",value:function(e,t){var n=this.toView(e,t);return this.processor.toData(n)}},{key:"toView",value:function(e,t){var n=this.viewDocument,r=this._viewWriter;this.mapper.clearBindings();var i=na._createIn(e),o=new ni(n);if(this.mapper.bindElements(e,o),this.downcastDispatcher.conversionApi.options=t,this.downcastDispatcher.convertInsert(i,r),!e.is("documentFragment")){var a,s=function(e){var t=[],n=e.root.document;if(!n)return[];var r,i=na._createIn(e),o=l(n.model.markers);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=i.getIntersection(a.getRange());s&&t.push([a.name,s])}}catch(e){o.e(e)}finally{o.f()}return t}(e),u=l(s);try{for(u.s();!(a=u.n()).done;){var d=c(a.value,2),f=d[0],h=d[1];this.downcastDispatcher.convertMarkerAdd(f,h,r)}}catch(e){u.e(e)}finally{u.f()}}return delete this.downcastDispatcher.conversionApi.options,o}},{key:"init",value:function(e){var t=this;if(this.model.document.version)throw new Kt.a("datacontroller-init-document-not-empty",this);var n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new Kt.a("datacontroller-init-non-existent-root",this);return this.model.enqueueChange("transparent",(function(e){for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=t.model.document.getRoot(o);e.insert(t.parse(n[o],a),a,0)}})),Promise.resolve()}},{key:"set",value:function(e){var t=this,n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new Kt.a("datacontroller-set-non-existent-root",this);this.model.enqueueChange("transparent",(function(e){e.setSelection(null),e.removeSelectionAttribute(t.model.document.selection.getAttributeKeys());for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=t.model.document.getRoot(o);e.remove(e.createRangeIn(a)),e.insert(t.parse(n[o],a),a,0)}}))}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root",n=this.processor.toView(e);return this.toModel(n,t)}},{key:"toModel",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((function(r){return t.upcastDispatcher.convert(e,r,n)}))}},{key:"addStyleProcessorRules",value:function(e){e(this.stylesProcessor)}},{key:"destroy",value:function(){this.stopListening()}},{key:"_checkIfRootsExists",value:function(e){var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!this.model.document.getRootNames().includes(r))return!1}}catch(e){n.e(e)}finally{n.f()}return!0}}]),e}();sn(os,mr);var as=function(){function e(t,n){h(this,e),this._helpers=new Map,this._downcast=Array.isArray(t)?t:[t],this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Array.isArray(n)?n:[n],this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}return m(e,[{key:"addAlias",value:function(e,t){var n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new Kt.a("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}},{key:"for",value:function(e){if(!this._helpers.has(e))throw new Kt.a("conversion-for-unknown-group",this);return this._helpers.get(e)}},{key:"elementToElement",value:function(e){this.for("downcast").elementToElement(e);var t,n=l(ss(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.model,o=r.view;this.for("upcast").elementToElement({model:i,view:o,converterPriority:e.converterPriority})}}catch(e){n.e(e)}finally{n.f()}}},{key:"attributeToElement",value:function(e){this.for("downcast").attributeToElement(e);var t,n=l(ss(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.model,o=r.view;this.for("upcast").elementToAttribute({view:o,model:i,converterPriority:e.converterPriority})}}catch(e){n.e(e)}finally{n.f()}}},{key:"attributeToAttribute",value:function(e){this.for("downcast").attributeToAttribute(e);var t,n=l(ss(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.model,o=r.view;this.for("upcast").attributeToAttribute({view:o,model:i})}}catch(e){n.e(e)}finally{n.f()}}},{key:"_createConversionHelpers",value:function(e){var t=e.name,n=e.dispatchers,r=e.isDowncast;if(this._helpers.has(t))throw new Kt.a("conversion-group-exists",this);var i=r?new Aa(n):new ja(n);this._helpers.set(t,i)}}]),e}();function ss(e){var t,n,i,a,s,c;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.model.values){r.next=20;break}t=l(e.model.values),r.prev=2,t.s();case 4:if((n=t.n()).done){r.next=10;break}return i=n.value,a={key:e.model.key,value:i},s=e.view[i],c=e.upcastAlso?e.upcastAlso[i]:void 0,r.delegateYield(cs(a,s,c),"t0",8);case 8:r.next=4;break;case 10:r.next=15;break;case 12:r.prev=12,r.t1=r.catch(2),t.e(r.t1);case 15:return r.prev=15,t.f(),r.finish(15);case 18:r.next=21;break;case 20:return r.delegateYield(cs(e.model,e.view,e.upcastAlso),"t2",21);case 21:case"end":return r.stop()}}),r,null,[[2,12,15,18]])}function cs(e,t,n){var r,a,s;return o.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,{model:e,view:t};case 2:if(!n){i.next=21;break}n=Array.isArray(n)?n:[n],r=l(n),i.prev=5,r.s();case 7:if((a=r.n()).done){i.next=13;break}return s=a.value,i.next=11,{model:e,view:s};case 11:i.next=7;break;case 13:i.next=18;break;case 15:i.prev=15,i.t0=i.catch(5),r.e(i.t0);case 18:return i.prev=18,r.f(),i.finish(18);case 21:case"end":return i.stop()}}),i,null,[[5,15,18,21]])}var ls=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";h(this,e),this.operations=[],this.type=t}return m(e,[{key:"addOperation",value:function(e){return e.batch=this,this.operations.push(e),e}},{key:"baseVersion",get:function(){var e,t=l(this.operations);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==n.baseVersion)return n.baseVersion}}catch(e){t.e(e)}finally{t.f()}return null}}]),e}(),us=function(){function e(t){h(this,e),this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}return m(e,[{key:"_validate",value:function(){}},{key:"toJSON",value:function(){var e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}}],[{key:"fromJSON",value:function(e){return new this(e.baseVersion)}},{key:"className",get:function(){return"Operation"}}]),e}(),ds=function(){function e(t){h(this,e),this.markers=new Map,this._children=new Ko,t&&this._insertChild(0,t)}return m(e,[{key:Symbol.iterator,value:function(){return this.getChildren()}},{key:"is",value:function(e){return"documentFragment"===e||"model:documentFragment"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"getPath",value:function(){return[]}},{key:"getNodeByPath",value:function(e){var t,n=this,r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n=n.getChild(n.offsetToIndex(i))}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"toJSON",value:function(){var e,t=[],n=l(this._children);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r.toJSON())}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,r=function(e){return"string"==typeof e?[new Wo(e)]:(an(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new Wo(e):e instanceof Yo?new Wo(e.data,e.getAttributes()):e})))}(t),i=l(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(e){i.e(e)}finally{i.f()}this._children._insertNodes(e,r)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this._children._removeNodes(e,n),i=l(r);try{for(i.s();!(t=i.n()).done;){var o=t.value;o.parent=null}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}],[{key:"fromJSON",value:function(t){var n,r=[],i=l(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.name?r.push(Go.fromJSON(o)):r.push(Wo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}return new e(r)}}]),e}();function fs(e,t){var n=(t=ms(t)).reduce((function(e,t){return e+t.offsetSize}),0),r=e.parent;gs(e);var i=e.index;return r._insertChild(i,t),vs(r,i+t.length),vs(r,i),new na(e,e.getShiftedBy(n))}function hs(e){if(!e.isFlat)throw new Kt.a("operation-utils-remove-range-not-flat",this);var t=e.start.parent;gs(e.start),gs(e.end);var n=t._removeChildren(e.start.index,e.end.index-e.start.index);return vs(t,e.start.index),n}function ps(e,t){if(!e.isFlat)throw new Kt.a("operation-utils-move-range-not-flat",this);var n=hs(e);return fs(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),n)}function ms(e){var t=[];e instanceof Array||(e=[e]);for(var n=0;n<e.length;n++)if("string"==typeof e[n])t.push(new Wo(e[n]));else if(e[n]instanceof Yo)t.push(new Wo(e[n].data,e[n].getAttributes()));else if(e[n]instanceof ds||e[n]instanceof Ko){var r,i=l(e[n]);try{for(i.s();!(r=i.n()).done;){var o=r.value;t.push(o)}}catch(e){i.e(e)}finally{i.f()}}else e[n]instanceof qo&&t.push(e[n]);for(var a=1;a<t.length;a++){var s=t[a],c=t[a-1];s instanceof Wo&&c instanceof Wo&&bs(s,c)&&(t.splice(a-1,2,new Wo(c.data+s.data,c.getAttributes())),a--)}return t}function vs(e,t){var n=e.getChild(t-1),r=e.getChild(t);if(n&&r&&n.is("$text")&&r.is("$text")&&bs(n,r)){var i=new Wo(n.data+r.data,n.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,i)}}function gs(e){var t=e.textNode,n=e.parent;if(t){var r=e.offset-t.startOffset,i=t.index;n._removeChildren(i,1);var o=new Wo(t.data.substr(0,r),t.getAttributes()),a=new Wo(t.data.substr(r),t.getAttributes());n._insertChild(i,[o,a])}}function bs(e,t){var n,r=e.getAttributes(),i=t.getAttributes(),o=l(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a[1]!==t.getAttribute(a[0]))return!1;i.next()}}catch(e){o.e(e)}finally{o.f()}return i.next().done}var ys=function(e,t){return ao(e,t)},ks=function(e){v(n,e);var t=g(n);function n(e,r,i,o,a){var s;return h(this,n),(s=t.call(this,a)).range=e.clone(),s.key=r,s.oldValue=void 0===i?null:i,s.newValue=void 0===o?null:o,s}return m(n,[{key:"clone",value:function(){return new n(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.range=this.range.toJSON(),e}},{key:"_validate",value:function(){if(!this.range.isFlat)throw new Kt.a("attribute-operation-range-not-flat",this);var e,t=l(this.range.getItems({shallow:!0}));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==this.oldValue&&!ys(n.getAttribute(this.key),this.oldValue))throw new Kt.a("attribute-operation-wrong-old-value",this,{item:n,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&n.hasAttribute(this.key))throw new Kt.a("attribute-operation-attribute-exists",this,{node:n,key:this.key})}}catch(e){t.e(e)}finally{t.f()}}},{key:"_execute",value:function(){ys(this.oldValue,this.newValue)||function(e,t,n){gs(e.start),gs(e.end);var r,i=l(e.getItems({shallow:!0}));try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.is("$textProxy")?o.textNode:o;null!==n?a._setAttribute(t,n):a._removeAttribute(t),vs(a.parent,a.index)}}catch(e){i.e(e)}finally{i.f()}vs(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}},{key:"type",get:function(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}}],[{key:"fromJSON",value:function(e,t){return new n(na.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}},{key:"className",get:function(){return"AttributeOperation"}}]),n}(us),ws=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,null)).sourcePosition=e.clone(),i.howMany=r,i}return m(n,[{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.sourcePosition=this.sourcePosition.toJSON(),e}},{key:"_validate",value:function(){if(this.sourcePosition.root.document)throw new Kt.a("detach-operation-on-document-node",this)}},{key:"_execute",value:function(){hs(na._createFromPositionAndShift(this.sourcePosition,this.howMany))}},{key:"type",get:function(){return"detach"}}],[{key:"className",get:function(){return"DetachOperation"}}]),n}(us),_s=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,o)).sourcePosition=e.clone(),a.sourcePosition.stickiness="toNext",a.howMany=r,a.targetPosition=i.clone(),a.targetPosition.stickiness="toNone",a}return m(n,[{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}},{key:"getMovedRangeStart",value:function(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}},{key:"getReversed",value:function(){var e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.sourcePosition.parent,t=this.targetPosition.parent,n=this.sourcePosition.offset,r=this.targetPosition.offset;if(n+this.howMany>e.maxOffset)throw new Kt.a("move-operation-nodes-do-not-exist",this);if(e===t&&n<r&&r<n+this.howMany)throw new Kt.a("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==mn(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){var i=this.sourcePosition.path.length-1;if(this.targetPosition.path[i]>=n&&this.targetPosition.path[i]<n+this.howMany)throw new Kt.a("move-operation-node-into-itself",this)}}},{key:"_execute",value:function(){ps(na._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}},{key:"type",get:function(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}}],[{key:"fromJSON",value:function(e,t){var n=Jo.fromJSON(e.sourcePosition,t),r=Jo.fromJSON(e.targetPosition,t);return new this(n,e.howMany,r,e.baseVersion)}},{key:"className",get:function(){return"MoveOperation"}}]),n}(us),Cs=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,i)).position=e.clone(),o.position.stickiness="toNone",o.nodes=new Ko(ms(r)),o.shouldReceiveAttributes=!1,o}return m(n,[{key:"clone",value:function(){var e=new Ko(u(this.nodes).map((function(e){return e._clone(!0)}))),t=new n(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}},{key:"getReversed",value:function(){var e=this.position.root.document.graveyard,t=new Jo(e,[0]);return new _s(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new Kt.a("insert-operation-position-invalid",this)}},{key:"_execute",value:function(){var e=this.nodes;this.nodes=new Ko(u(e).map((function(e){return e._clone(!0)}))),fs(this.position,e)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}},{key:"type",get:function(){return"insert"}},{key:"howMany",get:function(){return this.nodes.maxOffset}}],[{key:"fromJSON",value:function(e,t){var r,i=[],o=l(e.nodes);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.name?i.push(Go.fromJSON(a)):i.push(Wo.fromJSON(a))}}catch(e){o.e(e)}finally{o.f()}var s=new n(Jo.fromJSON(e.position,t),i,e.baseVersion);return s.shouldReceiveAttributes=e.shouldReceiveAttributes,s}},{key:"className",get:function(){return"InsertOperation"}}]),n}(us),As=function(e){v(n,e);var t=g(n);function n(e,r,i,o,a,s){var c;return h(this,n),(c=t.call(this,s)).name=e,c.oldRange=r?r.clone():null,c.newRange=i?i.clone():null,c.affectsData=a,c._markers=o,c}return m(n,[{key:"clone",value:function(){return new n(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}},{key:"_execute",value:function(){var e=this.newRange?"_set":"_remove";this._markers[e](this.name,this.newRange,!0,this.affectsData)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}},{key:"type",get:function(){return"marker"}}],[{key:"fromJSON",value:function(e,t){return new n(e.name,e.oldRange?na.fromJSON(e.oldRange,t):null,e.newRange?na.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}},{key:"className",get:function(){return"MarkerOperation"}}]),n}(us),xs=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,o)).position=e,a.position.stickiness="toNext",a.oldName=r,a.newName=i,a}return m(n,[{key:"clone",value:function(){return new n(this.position.clone(),this.oldName,this.newName,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.position.nodeAfter;if(!(e instanceof Go))throw new Kt.a("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new Kt.a("rename-operation-wrong-name",this)}},{key:"_execute",value:function(){this.position.nodeAfter.name=this.newName}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.position=this.position.toJSON(),e}},{key:"type",get:function(){return"rename"}}],[{key:"fromJSON",value:function(e,t){return new n(Jo.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}},{key:"className",get:function(){return"RenameOperation"}}]),n}(us),Ss=function(e){v(n,e);var t=g(n);function n(e,r,i,o,a){var s;return h(this,n),(s=t.call(this,a)).root=e,s.key=r,s.oldValue=i,s.newValue=o,s}return m(n,[{key:"clone",value:function(){return new n(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"_validate",value:function(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new Kt.a("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new Kt.a("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new Kt.a("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}},{key:"_execute",value:function(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.root=this.root.toJSON(),e}},{key:"type",get:function(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}}],[{key:"fromJSON",value:function(e,t){if(!t.getRoot(e.root))throw new Kt.a("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new n(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}},{key:"className",get:function(){return"RootAttributeOperation"}}]),n}(us),Ms=function(e){v(n,e);var t=g(n);function n(e,r,i,o,a){var s;return h(this,n),(s=t.call(this,a)).sourcePosition=e.clone(),s.sourcePosition.stickiness="toPrevious",s.howMany=r,s.targetPosition=i.clone(),s.targetPosition.stickiness="toNext",s.graveyardPosition=o.clone(),s}return m(n,[{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}},{key:"getReversed",value:function(){var e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),n=new Jo(this.sourcePosition.root,t)._getTransformedByMergeOperation(this),r=new Es(e,this.howMany,this.graveyardPosition,this.baseVersion+1);return r.insertionPosition=n,r}},{key:"_validate",value:function(){var e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new Kt.a("merge-operation-source-position-invalid",this);if(!t.parent)throw new Kt.a("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new Kt.a("merge-operation-how-many-invalid",this)}},{key:"_execute",value:function(){var e=this.sourcePosition.parent;ps(na._createIn(e),this.targetPosition),ps(na._createOn(e),this.graveyardPosition)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}},{key:"type",get:function(){return"merge"}},{key:"deletionPosition",get:function(){return new Jo(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}},{key:"movedRange",get:function(){var e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new na(this.sourcePosition,e)}}],[{key:"fromJSON",value:function(e,t){var n=Jo.fromJSON(e.sourcePosition,t),r=Jo.fromJSON(e.targetPosition,t),i=Jo.fromJSON(e.graveyardPosition,t);return new this(n,e.howMany,r,i,e.baseVersion)}},{key:"className",get:function(){return"MergeOperation"}}]),n}(us),Es=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,o)).splitPosition=e.clone(),a.splitPosition.stickiness="toNext",a.howMany=r,a.insertionPosition=n.getInsertionPosition(e),a.insertionPosition.stickiness="toNone",a.graveyardPosition=i?i.clone():null,a.graveyardPosition&&(a.graveyardPosition.stickiness="toNext"),a}return m(n,[{key:"clone",value:function(){var e=new this.constructor(this.splitPosition,this.howMany,this.graveyardPosition,this.baseVersion);return e.insertionPosition=this.insertionPosition,e}},{key:"getReversed",value:function(){var e=this.splitPosition.root.document.graveyard,t=new Jo(e,[0]);return new Ms(this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset<t)throw new Kt.a("split-operation-position-invalid",this);if(!e.parent)throw new Kt.a("split-operation-split-in-root",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new Kt.a("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new Kt.a("split-operation-graveyard-position-invalid",this)}},{key:"_execute",value:function(){var e=this.splitPosition.parent;if(this.graveyardPosition)ps(na._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{var t=e._clone();fs(this.insertionPosition,t)}ps(new na(Jo._createAt(e,this.splitPosition.offset),Jo._createAt(e,e.maxOffset)),this.moveTargetPosition)}},{key:"toJSON",value:function(){var e=s(A(n.prototype),"toJSON",this).call(this);return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}},{key:"type",get:function(){return"split"}},{key:"moveTargetPosition",get:function(){var e=this.insertionPosition.path.slice();return e.push(0),new Jo(this.insertionPosition.root,e)}},{key:"movedRange",get:function(){var e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new na(this.splitPosition,e)}}],[{key:"getInsertionPosition",value:function(e){var t=e.path.slice(0,-1);return t[t.length-1]++,new Jo(e.root,t)}},{key:"fromJSON",value:function(e,t){var n=Jo.fromJSON(e.splitPosition,t),r=Jo.fromJSON(e.insertionPosition,t),i=e.graveyardPosition?Jo.fromJSON(e.graveyardPosition,t):null,o=new this(n,e.howMany,i,e.baseVersion);return o.insertionPosition=r,o}},{key:"className",get:function(){return"SplitOperation"}}]),n}(us),Ts=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";return h(this,n),(i=t.call(this,r))._document=e,i.rootName=o,i}return m(n,[{key:"is",value:function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){return this.rootName}},{key:"document",get:function(){return this._document}}]),n}(Go),Ds=function(){function e(t,n){h(this,e),this.model=t,this.batch=n}return m(e,[{key:"createText",value:function(e,t){return new Wo(e,t)}},{key:"createElement",value:function(e,t){return new Go(e,t)}},{key:"createDocumentFragment",value:function(){return new ds}},{key:"cloneElement",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e._clone(t)}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),!(e instanceof Wo&&""==e.data)){var r=Jo._createAt(t,n);if(e.parent){if(Ns(e.root,r.root))return void this.move(na._createOn(e),r);if(e.root.document)throw new Kt.a("model-writer-insert-forbidden-move",this);this.remove(e)}var i=r.root.document?r.root.document.version:null,o=new Cs(r,e,i);if(e instanceof Wo&&(o.shouldReceiveAttributes=!0),this.batch.addOperation(o),this.model.applyOperation(o),e instanceof ds){var a,s=l(e.markers);try{for(s.s();!(a=s.n()).done;){var u=c(a.value,2),d=u[0],f=u[1],h=Jo._createAt(f.root,0),p={range:new na(f.start._getCombined(h,r),f.end._getCombined(h,r)),usingOperation:!0,affectsData:!0};this.model.markers.has(d)?this.updateMarker(d,p):this.addMarker(d,p)}}catch(e){s.e(e)}finally{s.f()}}}}},{key:"insertText",value:function(e,t,n,r){t instanceof ds||t instanceof Go||t instanceof Jo?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,r)}},{key:"insertElement",value:function(e,t,n,r){t instanceof ds||t instanceof Go||t instanceof Jo?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,r)}},{key:"append",value:function(e,t){this.insert(e,t,"end")}},{key:"appendText",value:function(e,t,n){t instanceof ds||t instanceof Go?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}},{key:"appendElement",value:function(e,t,n){t instanceof ds||t instanceof Go?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}},{key:"setAttribute",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof na){var r,i=l(n.getMinimalFlatRanges());try{for(i.s();!(r=i.n()).done;){Os(this,e,t,r.value)}}catch(e){i.e(e)}finally{i.f()}}else Ps(this,e,t,n)}},{key:"setAttributes",value:function(e,t){var n,r=l(kn(e));try{for(r.s();!(n=r.n()).done;){var i=c(n.value,2),o=i[0],a=i[1];this.setAttribute(o,a,t)}}catch(e){r.e(e)}finally{r.f()}}},{key:"removeAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),t instanceof na){var n,r=l(t.getMinimalFlatRanges());try{for(r.s();!(n=r.n()).done;){Os(this,e,null,n.value)}}catch(e){r.e(e)}finally{r.f()}}else Ps(this,e,null,t)}},{key:"clearAttributes",value:function(e){var t=this;this._assertWriterUsedCorrectly();var n=function(e){var n,r=l(e.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;t.removeAttribute(i,e)}}catch(e){r.e(e)}finally{r.f()}};if(e instanceof na){var r,i=l(e.getItems());try{for(i.s();!(r=i.n()).done;){n(r.value)}}catch(e){i.e(e)}finally{i.f()}}else n(e)}},{key:"move",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof na))throw new Kt.a("writer-move-invalid-range",this);if(!e.isFlat)throw new Kt.a("writer-move-range-not-flat",this);var r=Jo._createAt(t,n);if(!r.isEqual(e.start)){if(this._addOperationForAffectedMarkers("move",e),!Ns(e.root,r.root))throw new Kt.a("writer-move-different-document",this);var i=e.root.document?e.root.document.version:null,o=new _s(e.start,e.end.offset-e.start.offset,r,i);this.batch.addOperation(o),this.model.applyOperation(o)}}},{key:"remove",value:function(e){this._assertWriterUsedCorrectly();var t,n=l((e instanceof na?e:na._createOn(e)).getMinimalFlatRanges().reverse());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._addOperationForAffectedMarkers("move",r),js(r.start,r.end.offset-r.start.offset,this.batch,this.model)}}catch(e){n.e(e)}finally{n.f()}}},{key:"merge",value:function(e){this._assertWriterUsedCorrectly();var t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof Go))throw new Kt.a("writer-merge-no-element-before",this);if(!(n instanceof Go))throw new Kt.a("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}},{key:"createPositionFromPath",value:function(e,t,n){return this.model.createPositionFromPath(e,t,n)}},{key:"createPositionAt",value:function(e,t){return this.model.createPositionAt(e,t)}},{key:"createPositionAfter",value:function(e){return this.model.createPositionAfter(e)}},{key:"createPositionBefore",value:function(e){return this.model.createPositionBefore(e)}},{key:"createRange",value:function(e,t){return this.model.createRange(e,t)}},{key:"createRangeIn",value:function(e){return this.model.createRangeIn(e)}},{key:"createRangeOn",value:function(e){return this.model.createRangeOn(e)}},{key:"createSelection",value:function(e,t,n){return this.model.createSelection(e,t,n)}},{key:"_mergeDetached",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;this.move(na._createIn(n),Jo._createAt(t,"end")),this.remove(n)}},{key:"_merge",value:function(e){var t=Jo._createAt(e.nodeBefore,"end"),n=Jo._createAt(e.nodeAfter,0),r=e.root.document.graveyard,i=new Jo(r,[0]),o=e.root.document.version,a=new Ms(n,e.nodeAfter.maxOffset,t,i,o);this.batch.addOperation(a),this.model.applyOperation(a)}},{key:"rename",value:function(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof Go))throw new Kt.a("writer-rename-not-element-instance",this);var n=e.root.document?e.root.document.version:null,r=new xs(Jo._createBefore(e),e.name,t,n);this.batch.addOperation(r),this.model.applyOperation(r)}},{key:"split",value:function(e,t){this._assertWriterUsedCorrectly();var n,r,i=e.parent;if(!i.parent)throw new Kt.a("writer-split-element-no-parent",this);if(t||(t=i.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new Kt.a("writer-split-invalid-limit-element",this);do{var o=i.root.document?i.root.document.version:null,a=i.maxOffset-e.offset,s=new Es(e,a,null,o);this.batch.addOperation(s),this.model.applyOperation(s),n||r||(n=i,r=e.parent.nextSibling),i=(e=this.createPositionAfter(e.parent)).parent}while(i!==t);return{position:e,range:new na(Jo._createAt(n,"end"),Jo._createAt(r,0))}}},{key:"wrap",value:function(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new Kt.a("writer-wrap-range-not-flat",this);var n=t instanceof Go?t:new Go(t);if(n.childCount>0)throw new Kt.a("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new Kt.a("writer-wrap-element-attached",this);this.insert(n,e.start);var r=new na(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(r,Jo._createAt(n,0))}},{key:"unwrap",value:function(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new Kt.a("writer-unwrap-element-no-parent",this);this.move(na._createIn(e),this.createPositionAfter(e)),this.remove(e)}},{key:"addMarker",value:function(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new Kt.a("writer-addmarker-no-usingoperation",this);var n=t.usingOperation,r=t.range,i=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new Kt.a("writer-addmarker-marker-exists",this);if(!r)throw new Kt.a("writer-addmarker-no-range",this);return n?(Is(this,e,null,r,i),this.model.markers.get(e)):this.model.markers._set(e,r,n,i)}},{key:"updateMarker",value:function(e,t){this._assertWriterUsedCorrectly();var n="string"==typeof e?e:e.name,r=this.model.markers.get(n);if(!r)throw new Kt.a("writer-updatemarker-marker-not-exists",this);if(t){var i="boolean"==typeof t.usingOperation,o="boolean"==typeof t.affectsData,a=o?t.affectsData:r.affectsData;if(!i&&!t.range&&!o)throw new Kt.a("writer-updatemarker-wrong-options",this);var s=r.getRange(),c=t.range?t.range:s;i&&t.usingOperation!==r.managedUsingOperations?t.usingOperation?Is(this,n,null,c,a):(Is(this,n,s,null,a),this.model.markers._set(n,c,void 0,a)):r.managedUsingOperations?Is(this,n,s,c,a):this.model.markers._set(n,c,void 0,a)}else this.model.markers._refresh(r)}},{key:"removeMarker",value:function(e){this._assertWriterUsedCorrectly();var t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new Kt.a("writer-removemarker-no-marker",this);var n=this.model.markers.get(t);n.managedUsingOperations?Is(this,t,n.getRange(),null,n.affectsData):this.model.markers._remove(t)}},{key:"setSelection",value:function(e,t,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}},{key:"setSelectionAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else{var n,r=l(kn(e));try{for(r.s();!(n=r.n()).done;){var i=c(n.value,2),o=i[0],a=i[1];this._setSelectionAttribute(o,a)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"removeSelectionAttribute",value:function(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else{var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._removeSelectionAttribute(r)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"overrideSelectionGravity",value:function(){return this.model.document.selection._overrideGravity()}},{key:"restoreSelectionGravity",value:function(e){this.model.document.selection._restoreGravity(e)}},{key:"_setSelectionAttribute",value:function(e,t){var n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){var r=ya._getStoreAttributeKey(e);this.setAttribute(r,t,n.anchor.parent)}n._setAttribute(e,t)}},{key:"_removeSelectionAttribute",value:function(e){var t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){var n=ya._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}},{key:"_assertWriterUsedCorrectly",value:function(){if(this.model._currentWriter!==this)throw new Kt.a("writer-incorrect-use",this)}},{key:"_addOperationForAffectedMarkers",value:function(e,t){var n,r=l(this.model.markers);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.managedUsingOperations){var o=i.getRange(),a=!1;if("move"===e)a=t.containsPosition(o.start)||t.start.isEqual(o.start)||t.containsPosition(o.end)||t.end.isEqual(o.end);else{var s=t.nodeBefore,c=t.nodeAfter,u=o.start.parent==s&&o.start.isAtEnd,d=o.end.parent==c&&0==o.end.offset,f=o.end.nodeAfter==c,h=o.start.nodeAfter==c;a=u||d||f||h}a&&this.updateMarker(i.name,{range:o})}}}catch(e){r.e(e)}finally{r.f()}}}]),e}();function Os(e,t,n,r){var i,o,a,s,c=e.model,u=c.document,d=r.start,f=l(r.getWalker({shallow:!0}));try{for(f.s();!(s=f.n()).done;){var h=s.value;a=h.item.getAttribute(t),i&&o!=a&&(o!=n&&p(),d=i),i=h.nextPosition,o=a}}catch(e){f.e(e)}finally{f.f()}function p(){var r=new na(d,i),a=r.root.document?u.version:null,s=new ks(r,t,o,n,a);e.batch.addOperation(s),c.applyOperation(s)}i instanceof Jo&&i!=d&&o!=n&&p()}function Ps(e,t,n,r){var i,o,a=e.model,s=a.document,c=r.getAttribute(t);if(c!=n){if(r.root===r){var l=r.document?s.version:null;o=new Ss(r,t,c,n,l)}else{var u=(i=new na(Jo._createBefore(r),e.createPositionAfter(r))).root.document?s.version:null;o=new ks(i,t,c,n,u)}e.batch.addOperation(o),a.applyOperation(o)}}function Is(e,t,n,r,i){var o=e.model,a=o.document,s=new As(t,n,r,o.markers,i,a.version);e.batch.addOperation(s),o.applyOperation(s)}function js(e,t,n,r){var i;if(e.root.document){var o=r.document,a=new Jo(o.graveyard,[0]);i=new _s(e,t,a,o.version)}else i=new ws(e,t);n.addOperation(i),r.applyOperation(i)}function Ns(e,t){return e===t||e instanceof Ts&&t instanceof Ts}var Rs=function(){function e(t){h(this,e),this._markerCollection=t,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}return m(e,[{key:"refreshItem",value:function(e){if(!this._isInInsertedElement(e.parent)){this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize);var t,n=na._createOn(e),r=l(this._markerCollection.getMarkersIntersectingRange(n));try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.getRange();this.bufferMarkerChange(i.name,o,o,i.affectsData)}}catch(e){r.e(e)}finally{r.f()}this._cachedChanges=null}}},{key:"bufferOperation",value:function(e){switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":var t,n=l(e.range.getItems({shallow:!0}));try{for(n.s();!(t=n.n()).done;){var r=t.value;this._isInInsertedElement(r.parent)||this._markAttribute(r)}}catch(e){n.e(e)}finally{n.f()}break;case"remove":case"move":case"reinsert":if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;var i=this._isInInsertedElement(e.sourcePosition.parent),o=this._isInInsertedElement(e.targetPosition.parent);i||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),o||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break;case"rename":if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);var a,s=na._createFromPositionAndShift(e.position,1),c=l(this._markerCollection.getMarkersIntersectingRange(s));try{for(c.s();!(a=c.n()).done;){var u=a.value,d=u.getRange();this.bufferMarkerChange(u.name,d,d,u.affectsData)}}catch(e){c.e(e)}finally{c.f()}break;case"split":var f=e.splitPosition.parent;this._isInInsertedElement(f)||this._markRemove(f,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break;case"merge":var h=e.sourcePosition.parent;this._isInInsertedElement(h.parent)||this._markRemove(h.parent,h.startOffset,1);var p=e.graveyardPosition.parent;this._markInsert(p,e.graveyardPosition.offset,1);var m=e.targetPosition.parent;this._isInInsertedElement(m)||this._markInsert(m,e.targetPosition.offset,h.maxOffset)}this._cachedChanges=null}},{key:"bufferMarkerChange",value:function(e,t,n,r){var i=this._changedMarkers.get(e);i?(i.newRange=n,i.affectsData=r,null==i.oldRange&&null==i.newRange&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{oldRange:t,newRange:n,affectsData:r})}},{key:"getMarkersToRemove",value:function(){var e,t=[],n=l(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var r=c(e.value,2),i=r[0],o=r[1];null!=o.oldRange&&t.push({name:i,range:o.oldRange})}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"getMarkersToAdd",value:function(){var e,t=[],n=l(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var r=c(e.value,2),i=r[0],o=r[1];null!=o.newRange&&t.push({name:i,range:o.newRange})}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"getChangedMarkers",value:function(){return Array.from(this._changedMarkers).map((function(e){return{name:e[0],data:{oldRange:e[1].oldRange,newRange:e[1].newRange}}}))}},{key:"hasDataChanges",value:function(){var e,t=l(this._changedMarkers);try{for(t.s();!(e=t.n()).done;){if(c(e.value,2)[1].affectsData)return!0}}catch(e){t.e(e)}finally{t.f()}return this._changesInElement.size>0}},{key:"getChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeChangesInGraveyard:!1};if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();var t,n=[],r=l(this._changesInElement.keys());try{for(r.s();!(t=r.n()).done;){var i,o=t.value,a=this._changesInElement.get(o).sort((function(e,t){return e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1})),s=this._elementSnapshots.get(o),c=Ls(o.getChildren()),d=Bs(s.length,a),f=0,h=0,p=l(d);try{for(p.s();!(i=p.n()).done;){var m=i.value;if("i"===m)n.push(this._getInsertDiff(o,f,c[f].name)),f++;else if("r"===m)n.push(this._getRemoveDiff(o,f,s[h].name)),h++;else if("a"===m){var v=c[f].attributes,g=s[h].attributes,b=void 0;if("$text"==c[f].name)b=new na(Jo._createAt(o,f),Jo._createAt(o,f+1));else{var y=o.offsetToIndex(f);b=new na(Jo._createAt(o,f),Jo._createAt(o.getChild(y),0))}n.push.apply(n,u(this._getAttributesDiff(b,g,v))),f++,h++}else f++,h++}}catch(e){p.e(e)}finally{p.f()}}}catch(e){r.e(e)}finally{r.f()}n.sort((function(e,t){return e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1}));for(var k=1;k<n.length;k++){var w=n[k-1],_=n[k],C="remove"==w.type&&"remove"==_.type&&"$text"==w.name&&"$text"==_.name&&w.position.isEqual(_.position),A="insert"==w.type&&"insert"==_.type&&"$text"==w.name&&"$text"==_.name&&w.position.parent==_.position.parent&&w.position.offset+w.length==_.position.offset,x="attribute"==w.type&&"attribute"==_.type&&w.position.parent==_.position.parent&&w.range.isFlat&&_.range.isFlat&&w.position.offset+w.length==_.position.offset&&w.attributeKey==_.attributeKey&&w.attributeOldValue==_.attributeOldValue&&w.attributeNewValue==_.attributeNewValue;(C||A||x)&&(n[k-1].length++,x&&(n[k-1].range.end=n[k-1].range.end.getShiftedBy(1)),n.splice(k,1),k--)}for(var S=0,M=n;S<M.length;S++){var E=M[S];delete E.changeCount,"attribute"==E.type&&(delete E.position,delete E.length)}return this._changeCount=0,this._cachedChangesWithGraveyard=n.slice(),this._cachedChanges=n.slice().filter(Fs),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}},{key:"reset",value:function(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}},{key:"_markInsert",value:function(e,t,n){var r={type:"insert",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,r)}},{key:"_markRemove",value:function(e,t,n){var r={type:"remove",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,r),this._removeAllNestedChanges(e,t,n)}},{key:"_markAttribute",value:function(e){var t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}},{key:"_markChange",value:function(e,t){this._makeSnapshot(e);var n=this._getChangesForElement(e);this._handleChange(t,n),n.push(t);for(var r=0;r<n.length;r++)n[r].howMany<1&&(n.splice(r,1),r--)}},{key:"_getChangesForElement",value:function(e){var t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}},{key:"_makeSnapshot",value:function(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,Ls(e.getChildren()))}},{key:"_handleChange",value:function(e,t){e.nodesToHandle=e.howMany;var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e.offset+e.howMany,a=i.offset+i.howMany;if("insert"==e.type&&("insert"==i.type&&(e.offset<=i.offset?i.offset+=e.howMany:e.offset<a&&(i.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==i.type&&e.offset<i.offset&&(i.offset+=e.howMany),"attribute"==i.type))if(e.offset<=i.offset)i.offset+=e.howMany;else if(e.offset<a){var s=i.howMany;i.howMany=e.offset-i.offset,t.unshift({type:"attribute",offset:o,howMany:s-i.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==i.type)if(o<=i.offset)i.offset-=e.howMany;else if(o<=a)if(e.offset<i.offset){var c=o-i.offset;i.offset=e.offset,i.howMany-=c,e.nodesToHandle-=c}else i.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=i.offset)e.nodesToHandle-=i.howMany,i.howMany=0;else if(e.offset<a){var u=a-e.offset;i.howMany-=u,e.nodesToHandle-=u}if("remove"==i.type&&(o<=i.offset?i.offset-=e.howMany:e.offset<i.offset&&(e.nodesToHandle+=i.howMany,i.howMany=0)),"attribute"==i.type)if(o<=i.offset)i.offset-=e.howMany;else if(e.offset<i.offset){var d=o-i.offset;i.offset=e.offset,i.howMany-=d}else if(e.offset<a)if(o<=a){var f=i.howMany;i.howMany=e.offset-i.offset;var h=f-i.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:h,count:this._changeCount++})}else i.howMany-=a-e.offset}if("attribute"==e.type){if("insert"==i.type)if(e.offset<i.offset&&o>i.offset){if(o>a){var p={type:"attribute",offset:a,howMany:o-a,count:this._changeCount++};this._handleChange(p,t),t.push(p)}e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=i.offset&&e.offset<a&&(o>a?(e.nodesToHandle=o-a,e.offset=a):e.nodesToHandle=0);if("remove"==i.type&&e.offset<i.offset&&o>i.offset){var m={type:"attribute",offset:i.offset,howMany:o-i.offset,count:this._changeCount++};this._handleChange(m,t),t.push(m),e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==i.type&&(e.offset>=i.offset&&o<=a?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=i.offset&&o>=a&&(i.howMany=0))}}}catch(e){r.e(e)}finally{r.f()}e.howMany=e.nodesToHandle,delete e.nodesToHandle}},{key:"_getInsertDiff",value:function(e,t,n){return{type:"insert",position:Jo._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getRemoveDiff",value:function(e,t,n){return{type:"remove",position:Jo._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getAttributesDiff",value:function(e,t,n){var r=[];n=new Map(n);var i,o=l(t);try{for(o.s();!(i=o.n()).done;){var a=c(i.value,2),s=a[0],u=a[1],d=n.has(s)?n.get(s):null;d!==u&&r.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:s,attributeOldValue:u,attributeNewValue:d,changeCount:this._changeCount++}),n.delete(s)}}catch(e){o.e(e)}finally{o.f()}var f,h=l(n);try{for(h.s();!(f=h.n()).done;){var p=c(f.value,2),m=p[0],v=p[1];r.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:m,attributeOldValue:null,attributeNewValue:v,changeCount:this._changeCount++})}}catch(e){h.e(e)}finally{h.f()}return r}},{key:"_isInInsertedElement",value:function(e){var t=e.parent;if(!t)return!1;var n=this._changesInElement.get(t),r=e.startOffset;if(n){var i,o=l(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;if("insert"==a.type&&r>=a.offset&&r<a.offset+a.howMany)return!0}}catch(e){o.e(e)}finally{o.f()}}return this._isInInsertedElement(t)}},{key:"_removeAllNestedChanges",value:function(e,t,n){var r,i=l(new na(Jo._createAt(e,t),Jo._createAt(e,t+n)).getItems({shallow:!0}));try{for(i.s();!(r=i.n()).done;){var o=r.value;o.is("element")&&(this._elementSnapshots.delete(o),this._changesInElement.delete(o),this._removeAllNestedChanges(o,0,o.maxOffset))}}catch(e){i.e(e)}finally{i.f()}}},{key:"isEmpty",get:function(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}}]),e}();function Ls(e){var t,n=[],r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.is("$text"))for(var o=0;o<i.data.length;o++)n.push({name:"$text",attributes:new Map(i.getAttributes())});else n.push({name:i.name,attributes:new Map(i.getAttributes())})}}catch(e){r.e(e)}finally{r.f()}return n}function Bs(e,t){var n,r=[],i=0,o=0,a=l(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.offset>i){for(var c=0;c<s.offset-i;c++)r.push("e");o+=s.offset-i}if("insert"==s.type){for(var d=0;d<s.howMany;d++)r.push("i");i=s.offset+s.howMany}else if("remove"==s.type){for(var f=0;f<s.howMany;f++)r.push("r");i=s.offset,o+=s.howMany}else r.push.apply(r,u("a".repeat(s.howMany).split(""))),i=s.offset+s.howMany,o+=s.howMany}}catch(e){a.e(e)}finally{a.f()}if(o<e)for(var h=0;h<e-o-i;h++)r.push("e");return r}function Fs(e){var t=e.position&&"$graveyard"==e.position.root.rootName,n=e.range&&"$graveyard"==e.range.root.rootName;return!t&&!n}var zs=function(){function e(){h(this,e),this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set}return m(e,[{key:"addOperation",value:function(e){this._operations.includes(e)||this._operations.push(e)}},{key:"getOperations",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NEGATIVE_INFINITY,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,r=[],i=l(this._operations);try{for(i.s();!(e=i.n()).done;){var o=e.value;o.baseVersion>=t&&o.baseVersion<n&&r.push(o)}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"getOperation",value:function(e){var t,n=l(this._operations);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.baseVersion==e)return r}}catch(e){n.e(e)}finally{n.f()}}},{key:"setOperationAsUndone",value:function(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}},{key:"isUndoingOperation",value:function(e){return this._undoPairs.has(e)}},{key:"isUndoneOperation",value:function(e){return this._undoneOperations.has(e)}},{key:"getUndoneOperation",value:function(e){return this._undoPairs.get(e)}}]),e}();function Vs(e,t){return!!(n=e.charAt(t-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}(e.charAt(t));var n}function $s(e,t){return!!(n=e.charAt(t))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}var Hs="$graveyard",Us=function(){function e(t){var n=this;h(this,e),this.model=t,this.version=0,this.history=new zs(this),this.selection=new ya(this),this.roots=new cn({idProperty:"rootName"}),this.differ=new Rs(t.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",Hs),this.listenTo(t,"applyOperation",(function(e,t){var r=t[0];if(r.isDocumentOperation&&r.baseVersion!==n.version)throw new Kt.a("model-document-applyoperation-wrong-version",n,{operation:r})}),{priority:"highest"}),this.listenTo(t,"applyOperation",(function(e,t){var r=t[0];r.isDocumentOperation&&n.differ.bufferOperation(r)}),{priority:"high"}),this.listenTo(t,"applyOperation",(function(e,t){var r=t[0];r.isDocumentOperation&&(n.version++,n.history.addOperation(r))}),{priority:"low"}),this.listenTo(this.selection,"change",(function(){n._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(t.markers,"update",(function(e,t,r,i){n.differ.bufferMarkerChange(t.name,r,i,t.affectsData),null===r&&t.on("change",(function(e,r){n.differ.bufferMarkerChange(t.name,r,t.getRange(),t.affectsData)}))}))}return m(e,[{key:"createRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$root",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(t))throw new Kt.a("model-document-createroot-name-exists",this,{name:t});var n=new Ts(this,e,t);return this.roots.add(n),n}},{key:"destroy",value:function(){this.selection.destroy(),this.stopListening()}},{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"getRootNames",value:function(){return Array.from(this.roots,(function(e){return e.rootName})).filter((function(e){return e!=Hs}))}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"toJSON",value:function(){var e=vn(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}},{key:"_handleChangeBlock",value:function(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}},{key:"_hasDocumentChangedFromTheLastChangeBlock",value:function(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}},{key:"_getDefaultRoot",value:function(){var e,t=l(this.roots);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n!==this.graveyard)return n}}catch(e){t.e(e)}finally{t.f()}return this.graveyard}},{key:"_getDefaultRange",value:function(){var e=this._getDefaultRoot(),t=this.model,n=t.schema,r=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(r)||t.createRange(r)}},{key:"_validateSelectionRange",value:function(e){return qs(e.start)&&qs(e.end)}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,r=l(this._postFixers);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(this.selection.refresh(),t=i(e))break}}catch(e){r.e(e)}finally{r.f()}}while(t)}},{key:"graveyard",get:function(){return this.getRoot(Hs)}}]),e}();function qs(e){var t=e.textNode;if(t){var n=t.data,r=e.offset-t.startOffset;return!Vs(n,r)&&!$s(n,r)}return!0}sn(Us,Xt);var Ws=function(){function e(){h(this,e),this._markers=new Map}return m(e,[{key:Symbol.iterator,value:function(){return this._markers.values()}},{key:"has",value:function(e){return this._markers.has(e)}},{key:"get",value:function(e){return this._markers.get(e)||null}},{key:"_set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e instanceof Ys?e.name:e;if(i.includes(","))throw new Kt.a("markercollection-incorrect-marker-name",this);var o=this._markers.get(i);if(o){var a=o.getRange(),s=!1;return a.isEqual(t)||(o._attachLiveRange(ma.fromRange(t)),s=!0),n!=o.managedUsingOperations&&(o._managedUsingOperations=n,s=!0),"boolean"==typeof r&&r!=o.affectsData&&(o._affectsData=r,s=!0),s&&this.fire("update:"+i,o,a,t),o}var c=ma.fromRange(t),l=new Ys(i,c,n,r);return this._markers.set(i,l),this.fire("update:"+i,l,null,t),l}},{key:"_remove",value:function(e){var t=e instanceof Ys?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire("update:"+t,n,n.getRange(),null),this._destroyMarker(n),!0)}},{key:"_refresh",value:function(e){var t=e instanceof Ys?e.name:e,n=this._markers.get(t);if(!n)throw new Kt.a("markercollection-refresh-marker-not-exists",this);var r=n.getRange();this.fire("update:"+t,n,r,r,n.managedUsingOperations,n.affectsData)}},{key:"getMarkersAtPosition",value:o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=l(this),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(i=r.value,e.t0=i.getRange().containsPosition(t),!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"getMarkersIntersectingRange",value:o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=l(this),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(i=r.value,e.t0=null!==i.getRange().getIntersection(t),!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"destroy",value:function(){var e,t=l(this._markers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._destroyMarker(n)}}catch(e){t.e(e)}finally{t.f()}this._markers=null,this.stopListening()}},{key:"getMarkersGroup",value:o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=l(this._markers.values()),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(i=r.value,e.t0=i.name.startsWith(t+":"),!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"_destroyMarker",value:function(e){e.stopListening(),e._detachLiveRange()}}]),e}();sn(Ws,Xt);var Ys=function(){function e(t,n,r,i){h(this,e),this.name=t,this._liveRange=this._attachLiveRange(n),this._managedUsingOperations=r,this._affectsData=i}return m(e,[{key:"getStart",value:function(){if(!this._liveRange)throw new Kt.a("marker-destroyed",this);return this._liveRange.start.clone()}},{key:"getEnd",value:function(){if(!this._liveRange)throw new Kt.a("marker-destroyed",this);return this._liveRange.end.clone()}},{key:"getRange",value:function(){if(!this._liveRange)throw new Kt.a("marker-destroyed",this);return this._liveRange.toRange()}},{key:"is",value:function(e){return"marker"===e||"model:marker"===e}},{key:"_attachLiveRange",value:function(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}},{key:"_detachLiveRange",value:function(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}},{key:"managedUsingOperations",get:function(){if(!this._liveRange)throw new Kt.a("marker-destroyed",this);return this._managedUsingOperations}},{key:"affectsData",get:function(){if(!this._liveRange)throw new Kt.a("marker-destroyed",this);return this._affectsData}}]),e}();sn(Ys,Xt);var Ks=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"clone",value:function(){return new n(this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.baseVersion+1)}},{key:"_execute",value:function(){}},{key:"type",get:function(){return"noop"}}],[{key:"className",get:function(){return"NoOperation"}}]),n}(us),Gs={};Gs[ks.className]=ks,Gs[Cs.className]=Cs,Gs[As.className]=As,Gs[_s.className]=_s,Gs[Ks.className]=Ks,Gs[us.className]=us,Gs[xs.className]=xs,Gs[Ss.className]=Ss,Gs[Es.className]=Es,Gs[Ms.className]=Ms;var Qs=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(h(this,n),!(i=t.call(this,e,r,o)).root.is("rootElement"))throw new Kt.a("model-liveposition-root-not-rootelement",e);return Xs.call(y(i)),b(i)}return m(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e}},{key:"toPosition",value:function(){return new Jo(this.root,this.path.slice(),this.stickiness)}}],[{key:"fromPosition",value:function(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}]),n}(Jo);function Xs(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var r=n[0];r.isDocumentOperation&&Js.call(e,r)}),{priority:"low"})}function Js(e){var t=this.getTransformedByOperation(e);if(!this.isEqual(t)){var n=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",n)}}sn(Qs,Xt);var Zs=function(){function e(t,n,r){h(this,e),this.model=t,this.writer=n,this.position=r,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}return m(e,[{key:"handleNodes",value:function(e,t){e=Array.from(e);for(var n=0;n<e.length;n++){var r=e[n];this._handleNode(r,{isFirst:0===n&&t.isFirst,isLast:n===e.length-1&&t.isLast})}this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}},{key:"getSelectionRange",value:function(){return this.nodeToSelect?na._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}},{key:"getAffectedRange",value:function(){return this._affectedStart?new na(this._affectedStart,this._affectedEnd):null}},{key:"destroy",value:function(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}},{key:"_handleNode",value:function(e,t){this.schema.isObject(e)?this._handleObject(e,t):this._checkAndSplitToAllowedPosition(e,t)?(this._insert(e),this._mergeSiblingsOf(e,t)):this._handleDisallowedNode(e,t)}},{key:"_handleObject",value:function(e,t){this._checkAndSplitToAllowedPosition(e)?this._insert(e):this._tryAutoparagraphing(e,t)}},{key:"_handleDisallowedNode",value:function(e,t){e.is("element")?this.handleNodes(e.getChildren(),t):this._tryAutoparagraphing(e,t)}},{key:"_insert",value:function(e){if(!this.schema.checkChild(this.position,e))throw new Kt.a("insertcontent-wrong-position",this,{node:e,position:this.position});var t=Qs.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this.writer.insert(e,this.position),this.position=t.toPosition(),t.detach(),this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?this.nodeToSelect=e:this.nodeToSelect=null,this._filterAttributesOf.push(e)}},{key:"_setAffectedBoundaries",value:function(e){this._affectedStart||(this._affectedStart=Qs.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Qs.fromPosition(e,"toNext"))}},{key:"_mergeSiblingsOf",value:function(e,t){if(e instanceof Go){var n=this._canMergeLeft(e,t),r=this._canMergeRight(e,t),i=Qs._createBefore(e);i.stickiness="toNext";var o=Qs._createAfter(e);if(o.stickiness="toNext",n){var a=Qs.fromPosition(this.position);a.stickiness="toNext",this._affectedStart.isEqual(i)&&(this._affectedStart.detach(),this._affectedStart=Qs._createAt(i.nodeBefore,"end","toPrevious")),this.writer.merge(i),i.isEqual(this._affectedEnd)&&t.isLast&&(this._affectedEnd.detach(),this._affectedEnd=Qs._createAt(i.nodeBefore,"end","toNext")),this.position=a.toPosition(),a.detach()}if(r){if(!this.position.isEqual(o))throw new Kt.a("insertcontent-invalid-insertion-position",this);this.position=Jo._createAt(o.nodeBefore,"end");var s=Qs.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(o)&&(this._affectedEnd.detach(),this._affectedEnd=Qs._createAt(o.nodeBefore,"end","toNext")),this.writer.merge(o),o.getShiftedBy(-1).isEqual(this._affectedStart)&&t.isFirst&&(this._affectedStart.detach(),this._affectedStart=Qs._createAt(o.nodeBefore,0,"toPrevious")),this.position=s.toPosition(),s.detach()}(n||r)&&this._filterAttributesOf.push(this.position.parent),i.detach(),o.detach()}}},{key:"_canMergeLeft",value:function(e,t){var n=e.previousSibling;return t.isFirst&&n instanceof Go&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(n,e)}},{key:"_canMergeRight",value:function(e,t){var n=e.nextSibling;return t.isLast&&n instanceof Go&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(e,n)}},{key:"_tryAutoparagraphing",value:function(e,t){var n=this.writer.createElement("paragraph");this._getAllowedIn(n,this.position.parent)&&this.schema.checkChild(n,e)&&(n._appendChild(e),this._handleNode(n,t))}},{key:"_checkAndSplitToAllowedPosition",value:function(e){var t=this._getAllowedIn(e,this.position.parent);if(!t)return!1;for(;t!=this.position.parent;){if(this.schema.isLimit(this.position.parent))return!1;if(this.position.isAtStart){var n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===t&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{var r=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=r,this.canMergeWith.add(this.position.nodeAfter)}}return!0}},{key:"_getAllowedIn",value:function(e,t){return this.schema.checkChild(t,e)?t:t.parent?this._getAllowedIn(e,t.parent):null}}]),e}();function ec(e,t,n,r){var i=t.parent,o=n.parent;if(i!=r&&o!=r){for(t=e.createPositionAfter(i),(n=e.createPositionBefore(o)).isEqual(t)||e.insert(o,t),e.merge(t);n.parent.isEmpty;){var a=n.parent;n=e.createPositionBefore(a),e.remove(a)}nc(e.model.schema,t,n)&&ec(e,t,n,r)}}function tc(e,t,n,r){var i=t.parent,o=n.parent;if(i!=r&&o!=r){for(t=e.createPositionAfter(i),(n=e.createPositionBefore(o)).isEqual(t)||e.insert(i,n);t.parent.isEmpty;){var a=t.parent;t=e.createPositionBefore(a),e.remove(a)}n=e.createPositionBefore(o),function(e,t){var n=t.nodeBefore,r=t.nodeAfter;n.name!=r.name&&e.rename(n,r.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(r.getAttributes()),n),e.merge(t)}(e,n),nc(e.model.schema,t,n)&&tc(e,t,n,r)}}function nc(e,t,n){var r=t.parent,i=n.parent;return r!=i&&!e.isLimit(r)&&!e.isLimit(i)&&function(e,t,n){var r,i=l(new na(e,t).getWalker());try{for(i.s();!(r=i.n()).done;){var o=r.value;if(n.isLimit(o.item))return!1}}catch(e){i.e(e)}finally{i.f()}return!0}(t,n,e)}function rc(e,t,n){var r=e.createElement("paragraph");e.insert(r,t),ic(e,n,e.createPositionAt(r,0))}function ic(e,t,n){t instanceof ya?e.setSelection(n):t.setTo(n)}var oc=' ,.?!:;"-()';function ac(e,t){var n=e.isForward,r=e.walker,i=e.unit,o=e.schema,a=t.type,s=t.item,c=t.nextPosition;if("text"==a)return"word"===e.unit?function(e,t){var n=e.position.textNode;if(n)for(var r=e.position.offset-n.startOffset;!cc(n.data,r,t)&&!lc(n,r,t);){e.next();var i=t?e.position.nodeAfter:e.position.nodeBefore;if(i&&i.is("$text")){var o=i.data.charAt(t?0:i.data.length-1);oc.includes(o)||(e.next(),n=e.position.textNode)}r=e.position.offset-n.startOffset}return e.position}(r,n):function(e,t){var n=e.position.textNode;if(n)for(var r=n.data,i=e.position.offset-n.startOffset;Vs(r,i)||"character"==t&&$s(r,i);)e.next(),i=e.position.offset-n.startOffset;return e.position}(r,i);if(a==(n?"elementStart":"elementEnd")){if(o.isSelectable(s))return Jo._createAt(s,n?"after":"before");if(o.checkChild(c,"$text"))return c}else{if(o.isLimit(s))return void r.skip((function(){return!0}));if(o.checkChild(c,"$text"))return c}}function sc(e,t){var n=e.root,r=Jo._createAt(n,t?"end":0);return t?new na(e,r):new na(r,e)}function cc(e,t,n){var r=t+(n?0:-1);return oc.includes(e.charAt(r))}function lc(e,t,n){return t===(n?e.endOffset:0)}function uc(e,t){var n=[];Array.from(e.getItems({direction:"backward"})).map((function(e){return t.createRangeOn(e)})).filter((function(t){return(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))})).forEach((function(e){n.push(e.start.parent),t.remove(e)})),n.forEach((function(e){for(var n=e;n.parent&&n.isEmpty;){var r=t.createRangeOn(n);n=n.parent,t.remove(r)}}))}function dc(e,t){return e.isCollapsed?function(e,t){var n=e.start,r=t.getNearestSelectionRange(n);if(!r)return null;if(!r.isCollapsed)return r;var i=r.start;return n.isEqual(i)?null:new na(i)}(e,t):function(e,t){var n=e.start,r=e.end,i=t.checkChild(n,"$text"),o=t.checkChild(r,"$text"),a=t.getLimitElement(n),s=t.getLimitElement(r);if(a===s){if(i&&o)return null;if(function(e,t,n){var r=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,"$text"),i=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,"$text");return r||i}(n,r,t)){var c=n.nodeAfter&&t.isSelectable(n.nodeAfter)?null:t.getNearestSelectionRange(n,"forward"),l=r.nodeBefore&&t.isSelectable(r.nodeBefore)?null:t.getNearestSelectionRange(r,"backward"),u=c?c.start:n,d=l?l.start:r;return new na(u,d)}}var f=a&&!a.is("rootElement"),h=s&&!s.is("rootElement");if(f||h){var p=n.nodeAfter&&r.nodeBefore&&n.nodeAfter.parent===r.nodeBefore.parent,m=f&&(!p||!hc(n.nodeAfter,t)),v=h&&(!p||!hc(r.nodeBefore,t)),g=n,b=r;return m&&(g=Jo._createBefore(fc(a,t))),v&&(b=Jo._createAfter(fc(s,t))),new na(g,b)}return null}(e,t)}function fc(e,t){for(var n=e,r=n;t.isLimit(r)&&r.parent;)n=r,r=r.parent;return n}function hc(e,t){return e&&t.isSelectable(e)}var pc=function(){function e(){var t=this;h(this,e),this.markers=new Ws,this.document=new Us(this),this.schema=new qa,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((function(e){return t.decorate(e)})),this.on("applyOperation",(function(e,t){t[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$clipboardHolder"}),this.schema.register("$marker"),this.schema.addChildCheck((function(e,t){if("$marker"===t.name)return!0})),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,r=t.document.selection,i=t.schema,o=[],a=!1,s=l(r.getRanges());try{for(s.s();!(n=s.n()).done;){var c=n.value,u=dc(c,i);u&&!u.isEqual(c)?(o.push(u),a=!0):o.push(c)}}catch(e){s.e(e)}finally{s.f()}a&&e.setSelection(function(e){var t=[];t.push(e.shift());var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=t.pop();if(i.isIntersecting(o)){var a=o.start.isAfter(i.start)?i.start:o.start,s=o.end.isAfter(i.end)?o.end:i.end,c=new na(a,s);t.push(c)}else t.push(o),t.push(i)}}catch(e){r.e(e)}finally{r.f()}return t}(o),{backward:r.isBackward})}(t,e)}))}(this),this.document.registerPostFixer(Oa)}return m(e,[{key:"change",value:function(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new ls,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){Kt.a.rethrowUnexpectedError(e,this)}}},{key:"enqueueChange",value:function(e,t){try{"string"==typeof e?e=new ls(e):"function"==typeof e&&(t=e,e=new ls),this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){Kt.a.rethrowUnexpectedError(e,this)}}},{key:"applyOperation",value:function(e){e._execute()}},{key:"insertContent",value:function(e,t,n){return function(e,t,n,r){return e.change((function(i){var o;(o=n?n instanceof ua||n instanceof ya?n:i.createSelection(n,r):e.document.selection).isCollapsed||e.deleteContent(o,{doNotAutoparagraph:!0});var a,s=new Zs(e,i,o.anchor);a=t.is("documentFragment")?t.getChildren():[t],s.handleNodes(a,{isFirst:!0,isLast:!0});var c=s.getSelectionRange();c&&(o instanceof ya?i.setSelection(c):o.setTo(c));var l=s.getAffectedRange()||e.createRange(o.anchor);return s.destroy(),l}))}(this,e,t,n)}},{key:"deleteContent",value:function(e,t){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.isCollapsed){var r=t.getFirstRange();if("$graveyard"!=r.root.rootName){var i=e.schema;e.change((function(e){if(n.doNotResetEntireContent||!function(e,t){var n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;var r=t.getFirstRange();return r.start.parent!=r.end.parent&&e.checkChild(n,"paragraph")}(i,t)){var o=c(function(e){var t=e.root.document.model,n=e.start,r=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){var i=function(e){var t,n=e.parent,r=n.root.document.model.schema,i=l(n.getAncestors({parentFirst:!0,includeSelf:!0}));try{for(i.s();!(t=i.n()).done;){var o=t.value;if(r.isLimit(o))return null;if(r.isBlock(o))return o}}catch(e){i.e(e)}finally{i.f()}}(r);if(i&&r.isTouching(t.createPositionAt(i,0))){var o=t.createSelection(e);t.modifySelection(o,{direction:"backward"}),r=o.getLastPosition()}}return[Qs.fromPosition(n,"toPrevious"),Qs.fromPosition(r,"toNext")]}(r),2),a=o[0],s=o[1];a.isTouching(s)||e.remove(e.createRange(a,s)),n.leaveUnmerged||(function(e,t,n){var r=e.model;if(nc(e.model.schema,t,n)){var i=c(function(e,t){for(var n=e.getAncestors(),r=t.getAncestors(),i=0;n[i]&&n[i]==r[i];)i++;return[n[i],r[i]]}(t,n),2),o=i[0],a=i[1];!r.hasContent(o,{ignoreMarkers:!0})&&r.hasContent(a,{ignoreMarkers:!0})?tc(e,t,n,o.parent):ec(e,t,n,o.parent)}}(e,a,s),i.removeDisallowedAttributes(a.parent.getChildren(),e)),ic(e,t,a),!n.doNotAutoparagraph&&function(e,t){var n=e.checkChild(t,"$text"),r=e.checkChild(t,"paragraph");return!n&&r}(i,a)&&rc(e,a,t),a.detach(),s.detach()}else!function(e,t){var n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),rc(e,e.createPositionAt(n,0),t)}(e,t)}))}}}(this,e,t)}},{key:"modifySelection",value:function(e,t){!function(e,t){for(var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.schema,o="backward"!=r.direction,a=r.unit?r.unit:"character",s=t.focus,c=new Qo({boundaries:sc(s,o),singleCharacters:!0,direction:o?"forward":"backward"}),l={walker:c,schema:i,isForward:o,unit:a},u=function(){if(n.done)return{v:void 0};var r=ac(l,n.value);return r?{v:void(t instanceof ya?e.change((function(e){e.setSelectionFocus(r)})):t.setFocus(r))}:void 0};n=c.next();){var d=u();if("object"===x(d))return d.v}}(this,e,t)}},{key:"getSelectedContent",value:function(e){return function(e,t){return e.change((function(e){var n=e.createDocumentFragment(),r=t.getFirstRange();if(!r||r.isCollapsed)return n;var i,o,a=r.start.root,s=r.start.getCommonPath(r.end),c=a.getNodeByPath(s),u=(i=r.start.parent==r.end.parent?r:e.createRange(e.createPositionAt(c,r.start.path[s.length]),e.createPositionAt(c,r.end.path[s.length]+1))).end.offset-i.start.offset,d=l(i.getItems({shallow:!0}));try{for(d.s();!(o=d.n()).done;){var f=o.value;f.is("$textProxy")?e.appendText(f.data,f.getAttributes(),n):e.append(e.cloneElement(f,!0),n)}}catch(e){d.e(e)}finally{d.f()}if(i!=r){var h=r._getTransformedByMove(i.start,e.createPositionAt(n,0),u)[0],p=e.createRange(e.createPositionAt(n,0),h.start);uc(e.createRange(h.end,e.createPositionAt(n,"end")),e),uc(p,e)}return n}))}(this,e)}},{key:"hasContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e instanceof Go?na._createIn(e):e;if(n.isCollapsed)return!1;var r=t.ignoreWhitespaces,i=void 0!==r&&r,o=t.ignoreMarkers,a=void 0!==o&&o;if(!a){var s,c=l(this.markers.getMarkersIntersectingRange(n));try{for(c.s();!(s=c.n()).done;){var u=s.value;if(u.affectsData)return!0}}catch(e){c.e(e)}finally{c.f()}}var d,f=l(n.getItems());try{for(f.s();!(d=f.n()).done;){var h=d.value;if(this.schema.isContent(h)){if(!h.is("$textProxy"))return!0;if(!i)return!0;if(-1!==h.data.search(/\S/))return!0}}}catch(e){f.e(e)}finally{f.f()}return!1}},{key:"createPositionFromPath",value:function(e,t,n){return new Jo(e,t,n)}},{key:"createPositionAt",value:function(e,t){return Jo._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Jo._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Jo._createBefore(e)}},{key:"createRange",value:function(e,t){return new na(e,t)}},{key:"createRangeIn",value:function(e){return na._createIn(e)}},{key:"createRangeOn",value:function(e){return na._createOn(e)}},{key:"createSelection",value:function(e,t,n){return new ua(e,t,n)}},{key:"createBatch",value:function(e){return new ls(e)}},{key:"createOperationFromJSON",value:function(e){return function(){function e(){h(this,e)}return m(e,null,[{key:"fromJSON",value:function(e,t){return Gs[e.__className].fromJSON(e,t)}}]),e}().fromJSON(e,this.document)}},{key:"destroy",value:function(){this.document.destroy(),this.stopListening()}},{key:"_runPendingChanges",value:function(){var e=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){var t=this._pendingChanges[0].batch;this._currentWriter=new Ds(this,t);var n=this._pendingChanges[0].callback(this._currentWriter);e.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),e}}]),e}();sn(pc,mr);var mc=function(){function e(){h(this,e),this._listener=Object.create(Vi)}return m(e,[{key:"listenTo",value:function(e){var t=this;this._listener.listenTo(e,"keydown",(function(e,n){t._listener.fire("_keydown:"+qr(n),n)}))}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Wr(e),i=n.priority;this._listener.listenTo(this._listener,"_keydown:"+r,(function(e,n){t(n,(function(){n.preventDefault(),n.stopPropagation(),e.stop()})),e.return=!0}),{priority:i})}},{key:"press",value:function(e){return!!this._listener.fire("_keydown:"+qr(e),e)}},{key:"destroy",value:function(){this._listener.stopListening()}}]),e}(),vc=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this)).editor=e,r}return m(n,[{key:"set",value:function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t){var o=t;t=function(e,t){r.editor.execute(o),t()}}s(A(n.prototype),"set",this).call(this,e,t,i)}}]),n}(mc),gc=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,e),this._context=n.context||new pn({language:n.language}),this._context._addEditor(this,!n.context);var r=Array.from(this.constructor.builtinPlugins||[]);this.config=new Vt(n,this.constructor.defaultConfig),this.config.define("plugins",r),this.config.define(this._context._getEditorConfig()),this.plugins=new ln(this,r,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new $a,this.set("state","initializing"),this.once("ready",(function(){return t.state="ready"}),{priority:"high"}),this.once("destroy",(function(){return t.state="destroyed"}),{priority:"high"}),this.set("isReadOnly",!1),this.model=new pc;var i=new rr;this.data=new os(this.model,i),this.editing=new Va(this.model,i),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new as([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new vc(this),this.keystrokes.listenTo(this.editing.view.document)}return m(e,[{key:"initPlugins",value:function(){var e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],r=e.get("extraPlugins")||[];return this.plugins.init(t.concat(r),n)}},{key:"destroy",value:function(){var e=this,t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((function(t){return e.once("ready",t)}))),t.then((function(){e.fire("destroy"),e.stopListening(),e.commands.destroy()})).then((function(){return e.plugins.destroy()})).then((function(){e.model.destroy(),e.data.destroy(),e.editing.destroy(),e.keystrokes.destroy()})).then((function(){return e._context._removeEditor(e)}))}},{key:"execute",value:function(){try{var e;return(e=this.commands).execute.apply(e,arguments)}catch(e){Kt.a.rethrowUnexpectedError(e,this)}}}]),e}();sn(gc,mr);var bc={updateSourceElement:function(){if(!this.sourceElement)throw new Kt.a("editor-missing-sourceelement",this);var e,t;e=this.sourceElement,t=this.data.get(),e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}},yc=function(){function e(){h(this,e)}return m(e,[{key:"getHtml",value:function(e){var t=document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}]),e}(),kc=function(){function e(t){h(this,e),this._domParser=new DOMParser,this._domConverter=new Ri(t,{blockFillerMode:"nbsp"}),this._htmlWriter=new yc}return m(e,[{key:"toData",value:function(e){var t=this._domConverter.viewToDom(e,document);return this._htmlWriter.getHtml(t)}},{key:"toView",value:function(e){var t=this._toDom(e);return this._domConverter.domToView(t)}},{key:"_toDom",value:function(e){for(var t=this._domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment(),r=t.body.childNodes;r.length>0;)n.appendChild(r[0]);return n}}]),e}(),wc=function(){function e(t){h(this,e),this.editor=t,this._components=new Map}return m(e,[{key:"names",value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=l(this._components.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,r.originalName;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"add",value:function(e,t){this._components.set(_c(e),{callback:t,originalName:e})}},{key:"create",value:function(e){if(!this.has(e))throw new Kt.a("componentfactory-item-missing",this,{name:e});return this._components.get(_c(e)).callback(this.editor.locale)}},{key:"has",value:function(e){return this._components.has(_c(e))}}]),e}();function _c(e){return String(e).toLowerCase()}var Cc=function(){function e(){h(this,e),this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}return m(e,[{key:"add",value:function(e){var t=this;if(this._elements.has(e))throw new Kt.a("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",(function(){return t._focus(e)}),{useCapture:!0}),this.listenTo(e,"blur",(function(){return t._blur()}),{useCapture:!0}),this._elements.add(e)}},{key:"remove",value:function(e){e===this.focusedElement&&this._blur(e),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}},{key:"destroy",value:function(){this.stopListening()}},{key:"_focus",value:function(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}},{key:"_blur",value:function(){var e=this;clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((function(){e.focusedElement=null,e.isFocused=!1}),0)}}]),e}();sn(Cc,Vi),sn(Cc,mr);var Ac=function(){function e(t){var n=this;h(this,e),this.editor=t,this.componentFactory=new wc(t),this.focusTracker=new Cc,this._editableElementsMap=new Map,this.listenTo(t.editing.view.document,"layoutChanged",(function(){return n.update()}))}return m(e,[{key:"update",value:function(){this.fire("update")}},{key:"destroy",value:function(){this.stopListening(),this.focusTracker.destroy();var e,t=l(this._editableElementsMap.values());try{for(t.s();!(e=t.n()).done;){e.value.ckeditorInstance=null}}catch(e){t.e(e)}finally{t.f()}this._editableElementsMap=new Map}},{key:"setEditableElement",value:function(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor)}},{key:"getEditableElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(e)}},{key:"getEditableElementsNames",value:function(){return this._editableElementsMap.keys()}},{key:"element",get:function(){return null}},{key:"_editableElements",get:function(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}]),e}();sn(Ac,Xt),n(15);var xc=new WeakMap;function Sc(e){var t=e.view,n=e.element,r=e.text,i=e.isDirectHost,o=void 0===i||i,a=t.document;xc.has(a)||(xc.set(a,new Map),a.registerPostFixer((function(e){return Mc(a,e)}))),xc.get(a).set(n,{text:r,isDirectHost:o}),t.change((function(e){return Mc(a,e)}))}function Mc(e,t){var n,r=!1,i=l(xc.get(e));try{for(i.s();!(n=i.n()).done;){var o=c(n.value,2);Ec(t,o[0],o[1])&&(r=!0)}}catch(e){i.e(e)}finally{i.f()}return r}function Ec(e,t,n){var r=n.text,i=n.isDirectHost?t:function(e){if(1===e.childCount){var t=e.getChild(0);if(t.is("element")&&!t.is("uiElement"))return t}return null}(t),o=!1;return!!i&&(n.hostElement=i,i.getAttribute("data-placeholder")!==r&&(e.setAttribute("data-placeholder",r,i),o=!0),function(e){if(!e.isAttached())return!1;var t=!Array.from(e.getChildren()).some((function(e){return!e.is("uiElement")})),n=e.document;if(!n.isFocused&&t)return!0;var r=n.selection.anchor;return!(!t||!r||r.parent===e)}(i)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,i)&&(o=!0):function(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}(e,i)&&(o=!0),o)}var Tc=function(){function e(){h(this,e),this._replacedElements=[]}return m(e,[{key:"replace",value:function(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}},{key:"restore",value:function(){this._replacedElements.forEach((function(e){var t=e.element,n=e.newElement;t.style.display="",n&&n.remove()})),this._replacedElements=[]}}]),e}(),Dc=function(e){v(n,e);var t=g(n);function n(e,r){var i,o;return h(this,n),(i=t.call(this,e)).view=r,i._toolbarConfig=(o=e.config.get("toolbar"),Array.isArray(o)?{items:o}:o?Object.assign({items:[]},o):{items:[]}),i._elementReplacer=new Tc,i}return m(n,[{key:"init",value:function(e){var t=this.editor,n=this.view,r=t.editing.view,i=n.editable,o=r.document.getRoot();i.name=o.rootName,n.render();var a=i.element;this.setEditableElement(i.name,a),this.focusTracker.add(a),n.editable.bind("isFocused").to(this.focusTracker),r.attachDomRoot(a),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}},{key:"destroy",value:function(){var e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.detachDomRoot(e.editable.name),e.destroy(),s(A(n.prototype),"destroy",this).call(this)}},{key:"_initToolbar",value:function(){var e=this.editor,t=this.view,n=e.editing.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,this._toolbarConfig.viewportTopOffset&&(t.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),t.toolbar.fillFromConfig(this._toolbarConfig.items,this.componentFactory),function(e){var t=e.origin,n=e.originKeystrokeHandler,r=e.originFocusTracker,i=e.toolbar,o=e.beforeFocus,a=e.afterBlur;r.add(i.element),n.set("Alt+F10",(function(e,t){r.isFocused&&!i.focusTracker.isFocused&&(o&&o(),i.focus(),t())})),i.keystrokes.set("Esc",(function(e,n){i.focusTracker.isFocused&&(t.focus(),a&&a(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:e.keystrokes,toolbar:t.toolbar})}},{key:"_initPlaceholder",value:function(){var e=this.editor,t=e.editing.view,n=t.document.getRoot(),r=e.sourceElement,i=e.config.get("placeholder")||r&&"textarea"===r.tagName.toLowerCase()&&r.getAttribute("placeholder");i&&Sc({view:t,element:n,text:i,isDirectHost:!1})}},{key:"element",get:function(){return this.view.element}}]),n}(Ac),Oc=function(e){v(n,e);var t=g(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return h(this,n),(e=t.call(this,r,{idProperty:"viewUid"})).on("add",(function(t,n,r){e._renderViewIntoCollectionParent(n,r)})),e.on("remove",(function(t,n){n.element&&e._parentElement&&n.element.remove()})),e._parentElement=null,e}return m(n,[{key:"destroy",value:function(){this.map((function(e){return e.destroy()}))}},{key:"setParent",value:function(e){this._parentElement=e;var t,n=l(this);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._renderViewIntoCollectionParent(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"delegate",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length||!n.every((function(e){return"string"==typeof e})))throw new Kt.a("ui-viewcollection-delegate-wrong-events",this);return{to:function(t){var r,i=l(e);try{for(i.s();!(r=i.n()).done;){var o,a=r.value,s=l(n);try{for(s.s();!(o=s.n()).done;){var c=o.value;a.delegate(c).to(t)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){i.e(e)}finally{i.f()}e.on("add",(function(e,r){var i,o=l(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;r.delegate(a).to(t)}}catch(e){o.e(e)}finally{o.f()}})),e.on("remove",(function(e,r){var i,o=l(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;r.stopDelegating(a,t)}}catch(e){o.e(e)}finally{o.f()}}))}}}},{key:"_renderViewIntoCollectionParent",value:function(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}}]),n}(cn),Pc=function(){function e(t){h(this,e),Object.assign(this,$c(Vc(t))),this._isRendered=!1,this._revertData=null}return m(e,[{key:"render",value:function(){var e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}},{key:"apply",value:function(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,isApplying:!0,revertData:this._revertData}),e}},{key:"revert",value:function(e){if(!this._revertData)throw new Kt.a("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}},{key:"getViews",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!t.children){o.next=24;break}n=l(t.children),o.prev=2,n.s();case 4:if((r=n.n()).done){o.next=16;break}if(!Yc(i=r.value)){o.next=11;break}return o.next=9,i;case 9:o.next=14;break;case 11:if(o.t0=Kc(i),!o.t0){o.next=14;break}return o.delegateYield(e(i),"t1",14);case 14:o.next=4;break;case 16:o.next=21;break;case 18:o.prev=18,o.t2=o.catch(2),n.e(o.t2);case 21:return o.prev=21,n.f(),o.finish(21);case 24:case"end":return o.stop()}}),e,null,[[2,18,21,24]])}))(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"_renderNode",value:function(e){if(e.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new Kt.a("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}},{key:"_renderElement",value:function(e){var t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}},{key:"_renderText",value:function(e){var t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),Rc(this.text)?this._bindToObservable({schema:this.text,updater:Bc(t),data:e}):t.textContent=this.text.join(""),t}},{key:"_renderAttributes",value:function(e){var t,n,r,i;if(this.attributes){var o=e.node,a=e.revertData;for(t in this.attributes)if(r=o.getAttribute(t),n=this.attributes[t],a&&(a.attributes[t]=r),i=q(n[0])&&n[0].ns?n[0].ns:null,Rc(n)){var s=i?n[0].value:n;a&&Qc(t)&&s.unshift(r),this._bindToObservable({schema:s,updater:Fc(o,t,i),data:e})}else"style"==t&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],e):(a&&r&&Qc(t)&&n.unshift(r),Wc(n=n.map((function(e){return e&&e.value||e})).reduce((function(e,t){return e.concat(t)}),[]).reduce(Uc,""))||o.setAttributeNS(i,t,n))}}},{key:"_renderStyleAttribute",value:function(e,t){var n=t.node;for(var r in e){var i=e[r];Rc(i)?this._bindToObservable({schema:[i],updater:zc(n,r),data:t}):n.style[r]=i}}},{key:"_renderElementChildren",value:function(e){var t,n=e.node,r=e.intoFragment?document.createDocumentFragment():n,i=e.isApplying,o=0,a=l(this.children);try{for(a.s();!(t=a.n()).done;){var s=t.value;if(Gc(s)){if(!i){s.setParent(n);var c,u=l(s);try{for(u.s();!(c=u.n()).done;){var d=c.value;r.appendChild(d.element)}}catch(e){u.e(e)}finally{u.f()}}}else if(Yc(s))i||(s.isRendered||s.render(),r.appendChild(s.element));else if(Mi(s))r.appendChild(s);else if(i){var f={children:[],bindings:[],attributes:{}};e.revertData.children.push(f),s._renderNode({node:r.childNodes[o++],isApplying:!0,revertData:f})}else r.appendChild(s.render())}}catch(e){a.e(e)}finally{a.f()}e.intoFragment&&n.appendChild(r)}},{key:"_setUpListeners",value:function(e){var t=this;if(this.eventListeners){var n=function(n){var r=t.eventListeners[n].map((function(t){var r=c(n.split("@"),2),i=r[0],o=r[1];return t.activateDomEventListener(i,o,e)}));e.revertData&&e.revertData.bindings.push(r)};for(var r in this.eventListeners)n(r)}}},{key:"_bindToObservable",value:function(e){var t=e.schema,n=e.updater,r=e.data,i=r.revertData;Lc(t,n,r);var o=t.filter((function(e){return!Wc(e)})).filter((function(e){return e.observable})).map((function(e){return e.activateAttributeListener(t,n,r)}));i&&i.bindings.push(o)}},{key:"_revertTemplateFromNode",value:function(e,t){var n,r=l(t.bindings);try{for(r.s();!(n=r.n()).done;){var i,o=l(n.value);try{for(o.s();!(i=o.n()).done;){(0,i.value)()}}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}if(t.text)e.textContent=t.text;else{for(var a in t.attributes){var s=t.attributes[a];null===s?e.removeAttribute(a):e.setAttribute(a,s)}for(var c=0;c<t.children.length;++c)this._revertTemplateFromNode(e.childNodes[c],t.children[c])}}}],[{key:"bind",value:function(e,t){return{to:function(n,r){return new jc({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:r})},if:function(n,r,i){return new Nc({observable:e,emitter:t,attribute:n,valueIfTrue:r,callback:i})}}}},{key:"extend",value:function(e,t){if(e._isRendered)throw new Kt.a("template-extend-render",[this,e]);!function e(t,n){var r;if(n.attributes&&(t.attributes||(t.attributes={}),qc(t.attributes,n.attributes)),n.eventListeners&&(t.eventListeners||(t.eventListeners={}),qc(t.eventListeners,n.eventListeners)),n.text&&(r=t.text).push.apply(r,u(n.text)),n.children&&n.children.length){if(t.children.length!=n.children.length)throw new Kt.a("ui-template-extend-children-mismatch",t);var i,o=0,a=l(n.children);try{for(a.s();!(i=a.n()).done;){var s=i.value;e(t.children[o++],s)}}catch(e){a.e(e)}finally{a.f()}}}(e,$c(Vc(t)))}}]),e}();sn(Pc,Xt);var Ic=function(){function e(t){h(this,e),Object.assign(this,t)}return m(e,[{key:"getValue",value:function(e){var t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}},{key:"activateAttributeListener",value:function(e,t,n){var r=this,i=function(){return Lc(e,t,n)};return this.emitter.listenTo(this.observable,"change:"+this.attribute,i),function(){r.emitter.stopListening(r.observable,"change:"+r.attribute,i)}}}]),e}(),jc=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"activateDomEventListener",value:function(e,t,n){var r=this,i=function(e,n){t&&!n.target.matches(t)||("function"==typeof r.eventNameOrFunction?r.eventNameOrFunction(n):r.observable.fire(r.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,e,i),function(){r.emitter.stopListening(n.node,e,i)}}}]),n}(Ic),Nc=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"getValue",value:function(e){return!Wc(s(A(n.prototype),"getValue",this).call(this,e))&&(this.valueIfTrue||!0)}}]),n}(Ic);function Rc(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(Rc):e instanceof Ic)}function Lc(e,t,n){var r=function(e,t){return e.map((function(e){return e instanceof Ic?e.getValue(t):e}))}(e,n.node);Wc(r=1==e.length&&e[0]instanceof Nc?r[0]:r.reduce(Uc,""))?t.remove():t.set(r)}function Bc(e){return{set:function(t){e.textContent=t},remove:function(){e.textContent=""}}}function Fc(e,t,n){return{set:function(r){e.setAttributeNS(n,t,r)},remove:function(){e.removeAttributeNS(n,t)}}}function zc(e,t){return{set:function(n){e.style[t]=n},remove:function(){e.style[t]=null}}}function Vc(e){return Ft(e,(function(e){if(e&&(e instanceof Ic||Kc(e)||Yc(e)||Gc(e)))return e}))}function $c(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){Array.isArray(e.text)||(e.text=[e.text])}(e),e.on&&(e.eventListeners=function(e){for(var t in e)Hc(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(var t in e)e[t].value&&(e[t].value=[].concat(e[t].value)),Hc(e,t)}(e.attributes);var t=[];if(e.children)if(Gc(e.children))t.push(e.children);else{var n,r=l(e.children);try{for(r.s();!(n=r.n()).done;){var i=n.value;Kc(i)||Yc(i)||Mi(i)?t.push(i):t.push(new Pc(i))}}catch(e){r.e(e)}finally{r.f()}}e.children=t}return e}function Hc(e,t){Array.isArray(e[t])||(e[t]=[e[t]])}function Uc(e,t){return Wc(t)?e:Wc(e)?t:"".concat(e," ").concat(t)}function qc(e,t){for(var n in t){var r;e[n]?(r=e[n]).push.apply(r,u(t[n])):e[n]=t[n]}}function Wc(e){return!e&&0!==e}function Yc(e){return e instanceof Xc}function Kc(e){return e instanceof Pc}function Gc(e){return e instanceof Oc}function Qc(e){return"class"==e||"style"==e}n(17);var Xc=function(){function e(t){h(this,e),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new cn,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(function(e,n){n.locale=t})),this.decorate("render")}return m(e,[{key:"createCollection",value:function(e){var t=new Oc(e);return this._viewCollections.add(t),t}},{key:"registerChild",value:function(e){an(e)||(e=[e]);var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._unboundChildren.add(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"deregisterChild",value:function(e){an(e)||(e=[e]);var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._unboundChildren.remove(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"setTemplate",value:function(e){this.template=new Pc(e)}},{key:"extendTemplate",value:function(e){Pc.extend(this.template,e)}},{key:"render",value:function(){if(this.isRendered)throw new Kt.a("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}},{key:"destroy",value:function(){this.stopListening(),this._viewCollections.map((function(e){return e.destroy()})),this.template&&this.template._revertData&&this.template.revert(this.element)}},{key:"bindTemplate",get:function(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Pc.bind(this,this)}}]),e}();sn(Xc,Vi),sn(Xc,mr);var Jc=function(e){return"string"==typeof e||!Se(e)&&P(e)&&"[object String]"==T(e)},Zc=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return h(this,n),(r=t.call(this,i)).locale=e,r}return m(n,[{key:"attachToDom",value:function(){this._bodyCollectionContainer=new Pc({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();var e=document.querySelector(".ck-body-wrapper");e||(e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=n&&n.xmlns,o=i?e.createElementNS(i,t):e.createElement(t);for(var a in n)o.setAttribute(a,n[a]);!Jc(r)&&an(r)||(r=[r]);var s,c=l(r);try{for(c.s();!(s=c.n()).done;){var u=s.value;Jc(u)&&(u=e.createTextNode(u)),o.appendChild(u)}}catch(e){c.e(e)}finally{c.f()}return o}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}},{key:"detachFromDom",value:function(){s(A(n.prototype),"destroy",this).call(this),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();var e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}]),n}(Oc);n(19);var el=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).body=new Zc(e),r}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.body.attachToDom()}},{key:"destroy",value:function(){return this.body.detachFromDom(),s(A(n.prototype),"destroy",this).call(this)}}]),n}(Xc);n(21);var tl=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).set("text"),r.set("for"),r.id="ck-editor__label_"+Wt();var i=r.bindTemplate;return r.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:r.id,for:i.to("for")},children:[{text:i.to("text")}]}),r}return n}(Xc),nl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).top=r.createCollection(),r.main=r.createCollection(),r._voiceLabelView=r._createVoiceLabel(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":r._voiceLabelView.id},children:[r._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:r.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:r.main}]}),r}return m(n,[{key:"_createVoiceLabel",value:function(){var e=this.t,t=new tl;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}]),n}(el),rl=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,e,r,i)).extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),o}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this);var t=this._editingView,r=this.t;t.change((function(n){var i=t.document.getRoot(e.name);n.setAttribute("aria-label",r("Rich Text Editor, %0",e.name),i)}))}}]),n}(function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,e)).setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),o.name=null,o.set("isFocused",!1),o._editableElement=i,o._hasExternalElement=!!o._editableElement,o._editingView=r,o}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(function(){return e._updateIsFocusedClasses()})),this._updateIsFocusedClasses()}},{key:"destroy",value:function(){this._hasExternalElement&&this.template.revert(this._editableElement),s(A(n.prototype),"destroy",this).call(this)}},{key:"_updateIsFocusedClasses",value:function(){var e=this._editingView;function t(t){e.change((function(n){var r=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",r),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",r)}))}e.isRenderingInProgress?function n(r){e.once("change:isRenderingInProgress",(function(e,i,o){o?n(r):t(r)}))}(this):t(this)}}]),n}(Xc));function il(e){return function(t){return t+e}}n(23);var ol=il("px"),al=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("isActive",!1),r.set("isSticky",!1),r.set("limiterElement",null),r.set("limiterBottomOffset",50),r.set("viewportTopOffset",0),r.set("_marginLeft",null),r.set("_isStickyToTheLimiter",!1),r.set("_hasViewportTopOffset",!1),r.content=r.createCollection(),r._contentPanelPlaceholder=new Pc({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:i.to("isSticky",(function(e){return e?"block":"none"})),height:i.to("isSticky",(function(e){return e?ol(r._panelRect.height):null}))}}}).render(),r._contentPanel=new Pc({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",i.if("isSticky","ck-sticky-panel__content_sticky"),i.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:i.to("isSticky",(function(e){return e?ol(r._contentPanelPlaceholder.getBoundingClientRect().width):null})),top:i.to("_hasViewportTopOffset",(function(e){return e?ol(r.viewportTopOffset):null})),bottom:i.to("_isStickyToTheLimiter",(function(e){return e?ol(r.limiterBottomOffset):null})),marginLeft:i.to("_marginLeft")}},children:r.content}).render(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[r._contentPanelPlaceholder,r._contentPanel]}),r}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),this._checkIfShouldBeSticky(),this.listenTo(Pi.window,"scroll",(function(){e._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(function(){e._checkIfShouldBeSticky()}))}},{key:"_checkIfShouldBeSticky",value:function(){var e,t=this._panelRect=this._contentPanel.getBoundingClientRect();this.limiterElement?(e=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&e.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<e.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=e.bottom<t.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:ol(-Pi.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}]),n}(Xc),sl=function(){function e(t){var n=this;if(h(this,e),Object.assign(this,t),t.actions&&t.keystrokeHandler){var r=function(e){var r=t.actions[e];"string"==typeof r&&(r=[r]);var i,o=l(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;t.keystrokeHandler.set(a,(function(t,r){n[e](),r()}))}}catch(e){o.e(e)}finally{o.f()}};for(var i in t.actions)r(i)}}return m(e,[{key:"focusFirst",value:function(){this._focus(this.first)}},{key:"focusLast",value:function(){this._focus(this.last)}},{key:"focusNext",value:function(){this._focus(this.next)}},{key:"focusPrevious",value:function(){this._focus(this.previous)}},{key:"_focus",value:function(e){e&&e.focus()}},{key:"_getFocusableItem",value:function(e){var t=this.current,n=this.focusables.length;if(!n)return null;if(null===t)return this[1===e?"first":"last"];var r=(t+n+e)%n;do{var i=this.focusables.get(r);if(cl(i))return i;r=(r+n+e)%n}while(r!==t);return null}},{key:"first",get:function(){return this.focusables.find(cl)||null}},{key:"last",get:function(){return this.focusables.filter(cl).slice(-1)[0]||null}},{key:"next",get:function(){return this._getFocusableItem(1)}},{key:"previous",get:function(){return this._getFocusableItem(-1)}},{key:"current",get:function(){var e=this,t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((function(n,r){var i=n.element===e.focusTracker.focusedElement;return i&&(t=r),i})),t)}}]),e}();function cl(e){return!(!e.focus||"none"==Pi.window.getComputedStyle(e.element).display)}var ll=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}}),r}return n}(Xc),ul=function(){function e(t,n){h(this,e),e._observerInstance||e._createObserver(),this._element=t,this._callback=n,e._addElementCallback(t,n),e._observerInstance.observe(t)}return m(e,[{key:"destroy",value:function(){e._deleteElementCallback(this._element,this._callback)}}],[{key:"_addElementCallback",value:function(t,n){e._elementCallbacks||(e._elementCallbacks=new Map);var r=e._elementCallbacks.get(t);r||(r=new Set,e._elementCallbacks.set(t,r)),r.add(n)}},{key:"_deleteElementCallback",value:function(t,n){var r=e._getElementCallbacks(t);r&&(r.delete(n),r.size||(e._elementCallbacks.delete(t),e._observerInstance.unobserve(t))),e._elementCallbacks&&!e._elementCallbacks.size&&(e._observerInstance=null,e._elementCallbacks=null)}},{key:"_getElementCallbacks",value:function(t){return e._elementCallbacks?e._elementCallbacks.get(t):null}},{key:"_createObserver",value:function(){var t;t="function"==typeof Pi.window.ResizeObserver?Pi.window.ResizeObserver:dl,e._observerInstance=new t((function(t){var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e._getElementCallbacks(i.target);if(o){var a,s=l(o);try{for(s.s();!(a=s.n()).done;){(0,a.value)(i)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){r.e(e)}finally{r.f()}}))}}]),e}();ul._observerInstance=null,ul._elementCallbacks=null;var dl=function(){function e(t){h(this,e),this._callback=t,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}return m(e,[{key:"observe",value:function(e){this._elements.add(e),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}},{key:"unobserve",value:function(e){this._elements.delete(e),this._previousRects.delete(e),this._elements.size||this._stopPeriodicCheck()}},{key:"_startPeriodicCheck",value:function(){var e=this;this.listenTo(Pi.window,"resize",(function(){e._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout((function t(){e._checkElementRectsAndExecuteCallback(),e._periodicCheckTimeout=setTimeout(t,100)}),100)}},{key:"_stopPeriodicCheck",value:function(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}},{key:"_checkElementRectsAndExecuteCallback",value:function(){var e,t=[],n=l(this._elements);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._hasRectChanged(r)&&t.push({target:r,contentRect:this._previousRects.get(r)})}}catch(e){n.e(e)}finally{n.f()}t.length&&this._callback(t)}},{key:"_hasRectChanged",value:function(e){if(!e.ownerDocument.body.contains(e))return!1;var t=new Oo(e),n=this._previousRects.get(e),r=!n||!n.isEqual(t);return this._previousRects.set(e,t),r}}]),e}();sn(dl,Vi);var fl=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("isVisible",!1),r.set("position","se"),r.children=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",i.to("position",(function(e){return"ck-dropdown__panel_"+e})),i.if("isVisible","ck-dropdown__panel-visible")]},children:r.children,on:{selectstart:i.to((function(e){return e.preventDefault()}))}}),r}return m(n,[{key:"focus",value:function(){this.children.length&&this.children.first.focus()}},{key:"focusLast",value:function(){if(this.children.length){var e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}]),n}(Xc);function hl(e){var t=e.element,n=e.target,r=e.positions,i=e.limiter,o=e.fitInViewport;W(n)&&(n=n()),W(i)&&(i=i());var a,s,u=function(e){return e&&e.parentNode?e.offsetParent===Pi.document.body?null:e.offsetParent:null}(t),d=new Oo(t),f=new Oo(n);if(i||o){var h=function(e,t){var n=t.viewportRect,r=t.elementRect.getArea(),i=function(e,t){var n,r=t.targetRect,i=t.elementRect,o=t.limiterRect,a=t.viewportRect,s=[],u=i.getArea(),d=l(e);try{for(d.s();!(n=d.n()).done;){var f=pl(n.value,r,i);if(f){var h=c(f,2),p=h[0],m=h[1],v=0,g=0;if(o)if(a){var b=o.getIntersection(a);b&&(v=b.getIntersectionArea(m))}else v=o.getIntersectionArea(m);a&&(g=a.getIntersectionArea(m));var y={positionName:p,positionRect:m,limiterIntersectArea:v,viewportIntersectArea:g};if(v===u)return[y];s.push(y)}}}catch(e){d.e(e)}finally{d.f()}return s}(e,t);if(n){var o=ml(i.filter((function(e){return e.viewportIntersectArea===r})),r);if(o)return o}return ml(i,r)}(r,{targetRect:f,elementRect:d,limiterRect:i&&new Oo(i).getVisible(),viewportRect:o&&new Oo(Pi.window)}),p=c(h||pl(r[0],f,d),2);s=p[0],a=p[1]}else{var m=c(pl(r[0],f,d),2);s=m[0],a=m[1]}var v=vl(a);return u&&(v=function(e,t){var n=e.left,r=e.top,i=vl(new Oo(t)),o=To(t);return n-=i.left,r-=i.top,n+=t.scrollLeft,r+=t.scrollTop,{left:n-=o.left,top:r-=o.top}}(v,u)),{left:v.left,top:v.top,name:s}}function pl(e,t,n){var r=e(t,n);if(!r)return null;var i=r.left,o=r.top;return[r.name,n.clone().moveTo(i,o)]}function ml(e,t){var n,r,i,o=0,a=l(e);try{for(a.s();!(i=a.n()).done;){var s=i.value,c=s.positionName,u=s.positionRect,d=s.limiterIntersectArea,f=s.viewportIntersectArea;if(d===t)return[c,u];var h=Math.pow(f,2)+Math.pow(d,2);h>o&&(o=h,n=u,r=c)}}catch(e){a.e(e)}finally{a.f()}return n?[r,n]:null}function vl(e){var t=e.left,n=e.top,r=Pi.window;return{left:t+r.scrollX,top:n+r.scrollY}}n(25);var gl=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;h(this,n);var a=(o=t.call(this,e)).bindTemplate;return o.buttonView=r,o.panelView=i,o.set("isOpen",!1),o.set("isEnabled",!0),o.set("class"),o.set("id"),o.set("panelPosition","auto"),o.keystrokes=new mc,o.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",a.to("class"),a.if("isEnabled","ck-disabled",(function(e){return!e}))],id:a.to("id"),"aria-describedby":a.to("ariaDescribedById")},children:[r,i]}),r.extendTemplate({attributes:{class:["ck-dropdown__button"]}}),o}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),this.listenTo(this.buttonView,"open",(function(){e.isOpen=!e.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(function(){e.isOpen&&("auto"===e.panelPosition?e.panelView.position=n._getOptimalPosition({element:e.panelView.element,target:e.buttonView.element,fitInViewport:!0,positions:e._panelPositions}).name:e.panelView.position=e.panelPosition)})),this.keystrokes.listenTo(this.element);var t=function(t,n){e.isOpen&&(e.buttonView.focus(),e.isOpen=!1,n())};this.keystrokes.set("arrowdown",(function(t,n){e.buttonView.isEnabled&&!e.isOpen&&(e.isOpen=!0,n())})),this.keystrokes.set("arrowright",(function(t,n){e.isOpen&&n()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}},{key:"focus",value:function(){this.buttonView.focus()}},{key:"_panelPositions",get:function(){var e=n.defaultPanelPositions,t=e.southEast,r=e.southWest,i=e.northEast,o=e.northWest;return"ltr"===this.locale.uiLanguageDirection?[t,r,i,o]:[r,t,o,i]}}]),n}(Xc);gl.defaultPanelPositions={southEast:function(e){return{top:e.bottom,left:e.left,name:"se"}},southWest:function(e,t){return{top:e.bottom,left:e.left-t.width+e.width,name:"sw"}},northEast:function(e,t){return{top:e.top-t.height,left:e.left,name:"ne"}},northWest:function(e,t){return{top:e.bottom-t.height,left:e.left-t.width+e.width,name:"nw"}}},gl._getOptimalPosition=hl,n(27);var bl=function(e){v(n,e);var t=g(n);function n(){var e;h(this,n);var r=(e=t.call(this)).bindTemplate;return e.set("content",""),e.set("viewBox","0 0 20 20"),e.set("fillColor",""),e.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:r.to("viewBox")}}),e}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(function(){e._updateXMLContent(),e._colorFillPaths()})),this.on("change:fillColor",(function(){e._colorFillPaths()}))}},{key:"_updateXMLContent",value:function(){if(this.content){var e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");for(t&&(this.viewBox=t),this.element.innerHTML="";e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}},{key:"_colorFillPaths",value:function(){var e=this;this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((function(t){t.style.fill=e.fillColor}))}}]),n}(Xc);n(29);var yl=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).set("text",""),r.set("position","s");var i=r.bindTemplate;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",i.to("position",(function(e){return"ck-tooltip_"+e})),i.if("text","ck-hidden",(function(e){return!e.trim()}))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:i.to("text")}]}]}),r}return n}(Xc);n(31);var kl=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate,o=Wt();return r.set("class"),r.set("labelStyle"),r.set("icon"),r.set("isEnabled",!0),r.set("isOn",!1),r.set("isVisible",!0),r.set("isToggleable",!1),r.set("keystroke"),r.set("label"),r.set("tabindex",-1),r.set("tooltip"),r.set("tooltipPosition","s"),r.set("type","button"),r.set("withText",!1),r.set("withKeystroke",!1),r.children=r.createCollection(),r.tooltipView=r._createTooltipView(),r.labelView=r._createLabelView(o),r.iconView=new bl,r.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),r.keystrokeView=r._createKeystrokeView(),r.bind("_tooltipString").to(y(r),"tooltip",y(r),"label",y(r),"keystroke",r._getTooltipString.bind(y(r))),r.setTemplate({tag:"button",attributes:{class:["ck","ck-button",i.to("class"),i.if("isEnabled","ck-disabled",(function(e){return!e})),i.if("isVisible","ck-hidden",(function(e){return!e})),i.to("isOn",(function(e){return e?"ck-on":"ck-off"})),i.if("withText","ck-button_with-text"),i.if("withKeystroke","ck-button_with-keystroke")],type:i.to("type",(function(e){return e||"button"})),tabindex:i.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+o,"aria-disabled":i.if("isEnabled",!0,(function(e){return!e})),"aria-pressed":i.to("isOn",(function(e){return!!r.isToggleable&&String(e)}))},children:r.children,on:{mousedown:i.to((function(e){e.preventDefault()})),click:i.to((function(e){r.isEnabled?r.fire("execute"):e.preventDefault()}))}}),r}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}},{key:"focus",value:function(){this.element.focus()}},{key:"_createTooltipView",value:function(){var e=new yl;return e.bind("text").to(this,"_tooltipString"),e.bind("position").to(this,"tooltipPosition"),e}},{key:"_createLabelView",value:function(e){var t=new Xc,n=this.bindTemplate;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:"ck-editor__aria-label_"+e},children:[{text:this.bindTemplate.to("label")}]}),t}},{key:"_createKeystrokeView",value:function(){var e=new Xc;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(function(e){return Yr(e)}))}]}),e}},{key:"_getTooltipString",value:function(e,t,n){return e?"string"==typeof e?e:(n&&(n=Yr(n)),e instanceof Function?e(t,n):"".concat(t).concat(n?" (".concat(n,")"):"")):""}}]),n}(Xc),wl='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>',_l=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).arrowView=r._createArrowView(),r.extendTemplate({attributes:{"aria-haspopup":!0}}),r.delegate("execute").to(y(r),"open"),r}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.children.add(this.arrowView)}},{key:"_createArrowView",value:function(){var e=new bl;return e.content=wl,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}]),n}(kl);n(33);var Cl=function(e){v(n,e);var t=g(n);function n(){var e;return h(this,n),(e=t.call(this)).items=e.createCollection(),e.focusTracker=new Cc,e.keystrokes=new mc,e._focusCycler=new sl({focusables:e.items,focusTracker:e.focusTracker,keystrokeHandler:e.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),e.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:e.items}),e}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this);var t,r=l(this.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.focusTracker.add(i.element)}}catch(e){r.e(e)}finally{r.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}}]),n}(Xc),Al=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).children=r.createCollection(),r.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:r.children}),r}return m(n,[{key:"focus",value:function(){this.children.first.focus()}}]),n}(Xc),xl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}}),r}return n}(Xc);n(35);var Sl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).isToggleable=!0,r.toggleSwitchView=r._createToggleView(),r.extendTemplate({attributes:{class:"ck-switchbutton"}}),r}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.children.add(this.toggleSwitchView)}},{key:"_createToggleView",value:function(){var e=new Xc;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}]),n}(kl);function Ml(e){var t=e.emitter,n=e.activator,r=e.callback,i=e.contextElements;t.listenTo(document,"mousedown",(function(e,t){if(n()){var o,a="function"==typeof t.composedPath?t.composedPath():[],s=l(i);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(c.contains(t.target)||a.includes(c))return}}catch(e){s.e(e)}finally{s.f()}r()}}))}function El(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_l,n=new t(e),r=new fl(e),i=new gl(e,n,r);return n.bind("isEnabled").to(i),n instanceof _l?n.bind("isOn").to(i,"isOpen"):n.arrowView.bind("isOn").to(i,"isOpen"),function(e){(function(e){e.on("render",(function(){Ml({emitter:e,activator:function(){return e.isOpen},callback:function(){e.isOpen=!1},contextElements:[e.element]})}))})(e),function(e){e.on("execute",(function(t){t.source instanceof Sl||(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",(function(t,n){e.isOpen&&(e.panelView.focus(),n())})),e.keystrokes.set("arrowup",(function(t,n){e.isOpen&&(e.panelView.focusLast(),n())}))}(e)}(i),i}function Tl(e,t){var n=e.locale,r=n.t,i=e.toolbarView=new Ol(n);i.set("ariaLabel",r("Dropdown toolbar")),e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.map((function(e){return i.items.add(e)})),e.panelView.children.add(i),i.items.delegate("execute").to(e)}function Dl(e,t){var n=e.locale,r=e.listView=new Cl(n);r.items.bindTo(t).using((function(e){var t=e.type,r=e.model;if("separator"===t)return new xl(n);if("button"===t||"switchbutton"===t){var i,o,a=new Al(n);return(i=o="button"===t?new kl(n):new Sl(n)).bind.apply(i,u(Object.keys(r))).to(r),o.delegate("execute").to(a),a.children.add(o),a}})),e.panelView.children.add(r),r.items.delegate("execute").to(e)}n(37),n(39),n(41);var Ol=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n);var o,a=(i=t.call(this,e)).bindTemplate,s=i.t;return i.options=r||{},i.set("ariaLabel",s("Editor toolbar")),i.set("maxWidth","auto"),i.items=i.createCollection(),i.focusTracker=new Cc,i.keystrokes=new mc,i.set("class"),i.set("isCompact",!1),i.itemsView=new Pl(e),i.children=i.createCollection(),i.children.add(i.itemsView),i.focusables=i.createCollection(),i._focusCycler=new sl({focusables:i.focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}}),i.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar",a.to("class"),a.if("isCompact","ck-toolbar_compact")],role:"toolbar","aria-label":a.to("ariaLabel"),style:{maxWidth:a.to("maxWidth")}},children:i.children,on:{mousedown:(o=y(i),o.bindTemplate.to((function(e){e.target===o.element&&e.preventDefault()})))}}),i._behavior=i.options.shouldGroupWhenFull?new jl(y(i)):new Il(y(i)),i}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this);var t,r=l(this.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.focusTracker.add(i.element)}}catch(e){r.e(e)}finally{r.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}},{key:"destroy",value:function(){return this._behavior.destroy(),s(A(n.prototype),"destroy",this).call(this)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"fillFromConfig",value:function(e,t){this.items.addMany(e.map((function(e){return"|"==e?new ll:t.has(e)?t.create(e):void Object(Kt.c)("toolbarview-item-unavailable",{name:e})})).filter((function(e){return void 0!==e})))}}]),n}(Xc),Pl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).children=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:r.children}),r}return n}(Xc),Il=function(){function e(t){h(this,e);var n=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((function(e){return e})),t.focusables.bindTo(t.items).using((function(e){return e})),t.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}return m(e,[{key:"render",value:function(){}},{key:"destroy",value:function(){}}]),e}(),jl=function(){function e(t){var n=this;h(this,e),this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,t.itemsView.children.bindTo(this.ungroupedItems).using((function(e){return e})),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),t.children.on("add",this._updateFocusCycleableItems.bind(this)),t.children.on("remove",this._updateFocusCycleableItems.bind(this)),t.items.on("change",(function(e,t){var r,i=t.index,o=l(t.removed);try{for(o.s();!(r=o.n()).done;){var a=r.value;i>=n.ungroupedItems.length?n.groupedItems.remove(a):n.ungroupedItems.remove(a)}}catch(e){o.e(e)}finally{o.f()}for(var s=i;s<i+t.added.length;s++){var c=t.added[s-i];s>n.ungroupedItems.length?n.groupedItems.add(c,s-n.ungroupedItems.length):n.ungroupedItems.add(c,s)}n._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}return m(e,[{key:"render",value:function(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}},{key:"destroy",value:function(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}},{key:"_updateGrouping",value:function(){if(this.viewElement.ownerDocument.body.contains(this.viewElement))if(this.viewElement.offsetParent){for(var e,t=this.groupedItems.length;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}else this.shouldUpdateGroupingOnNextResize=!0}},{key:"_enableGroupingOnResize",value:function(){var e,t=this;this.resizeObserver=new ul(this.viewElement,(function(n){e&&e===n.contentRect.width&&!t.shouldUpdateGroupingOnNextResize||(t.shouldUpdateGroupingOnNextResize=!1,t._updateGrouping(),e=n.contentRect.width)})),this._updateGrouping()}},{key:"_enableGroupingOnMaxWidthChange",value:function(e){var t=this;e.on("change:maxWidth",(function(){t._updateGrouping()}))}},{key:"_groupLastItem",value:function(){this.groupedItems.length||(this.viewChildren.add(new ll),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}},{key:"_ungroupFirstItem",value:function(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}},{key:"_createGroupedItemsDropdown",value:function(){var e=this.viewLocale,t=e.t,n=El(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",Tl(n,[]),n.buttonView.set({label:t("Show more items"),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'}),n.toolbarView.items.bindTo(this.groupedItems).using((function(e){return e})),n}},{key:"_updateFocusCycleableItems",value:function(){var e=this;this.viewFocusables.clear(),this.ungroupedItems.map((function(t){e.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}},{key:"_areItemsOverflowing",get:function(){if(!this.ungroupedItems.length)return!1;var e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new Oo(e.lastChild),r=new Oo(e);if(!this.cachedPadding){var i=Pi.window.getComputedStyle(e),o="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(i[o])}return"ltr"===t?n.right>r.right-this.cachedPadding:n.left<r.left+this.cachedPadding}}]),e}();n(43);var Nl=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h(this,n),(i=t.call(this,e)).stickyPanel=new al(e),i.toolbar=new Ol(e,{shouldGroupWhenFull:o.shouldToolbarGroupWhenFull}),i.editable=new rl(e,r),i}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}]),n}(nl),Rl=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n),i=t.call(this,r),zt(e)&&(i.sourceElement=e),i.data.processor=new kc(i.data.viewDocument),i.model.document.createRoot();var o=!i.config.get("toolbar.shouldNotGroupWhenFull"),a=new Nl(i.locale,i.editing.view,{shouldToolbarGroupWhenFull:o});return i.ui=new Dc(y(i),a),function(e){if(!W(e.updateSourceElement))throw new Kt.a("attachtoform-missing-elementapi-interface",e);var t=e.sourceElement;if(t&&"textarea"===t.tagName.toLowerCase()&&t.form){var n,r=t.form,i=function(){return e.updateSourceElement()};W(r.submit)&&(n=r.submit,r.submit=function(){i(),n.apply(r)}),r.addEventListener("submit",i),e.on("destroy",(function(){r.removeEventListener("submit",i),n&&(r.submit=n)}))}}(y(i)),i}return m(n,[{key:"destroy",value:function(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),s(A(n.prototype),"destroy",this).call(this)}}],[{key:"create",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r){var i=new t(e,n);r(i.initPlugins().then((function(){return i.ui.init(zt(e)?e:null)})).then((function(){if(!zt(e)&&n.initialData)throw new Kt.a("editor-create-initial-data",null);var t=n.initialData||function(e){return zt(e)?(t=e)instanceof HTMLTextAreaElement?t.value:t.innerHTML:e;var t}(e);return i.data.init(t)})).then((function(){return i.fire("ready")})).then((function(){return i})))}))}}]),n}(gc);sn(Rl,{setData:function(e){this.data.set(e)},getData:function(e){return this.data.get(e)}}),sn(Rl,bc);var Ll=function(){function e(t){h(this,e),this.editor=t,this.set("isEnabled",!0),this._disableStack=new Set}return m(e,[{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Bl,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Bl),this.isEnabled=!0)}},{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!1}}]),e}();function Bl(e){e.return=!1,e.stop()}sn(Ll,mr);var Fl=function(){function e(t){var n=this;h(this,e),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(function(){n.refresh()})),this.on("execute",(function(e){n.isEnabled||e.stop()}),{priority:"high"}),this.listenTo(t,"change:isReadOnly",(function(e,t,r){r?n.forceDisabled("readOnlyMode"):n.clearForceDisabled("readOnlyMode")}))}return m(e,[{key:"refresh",value:function(){this.isEnabled=!0}},{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",zl,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",zl),this.refresh())}},{key:"execute",value:function(){}},{key:"destroy",value:function(){this.stopListening()}}]),e}();function zl(e){e.return=!1,e.stop()}function Vl(e){var t=e.next();return t.done?null:t.value}sn(Fl,mr);var $l=["left","right","center","justify"];function Hl(e){return $l.includes(e)}function Ul(e,t){return"rtl"==t.contentLanguageDirection?"right"===e:"left"===e}var ql="alignment",Wl=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.locale,t=Vl(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!t&&this._canBeAligned(t),this.isEnabled&&t.hasAttribute("alignment")?this.value=t.getAttribute("alignment"):this.value="rtl"===e.contentLanguageDirection?"right":"left"}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,r=n.locale,i=n.model,o=i.document,a=t.value;i.change((function(t){var n=Array.from(o.selection.getSelectedBlocks()).filter((function(t){return e._canBeAligned(t)})),i=n[0].getAttribute("alignment");Ul(a,r)||i===a||!a?function(e,t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.removeAttribute(ql,i)}}catch(e){r.e(e)}finally{r.f()}}(n,t):function(e,t,n){var r,i=l(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;t.setAttribute(ql,n,o)}}catch(e){i.e(e)}finally{i.f()}}(n,t,a)}))}},{key:"_canBeAligned",value:function(e){return this.editor.model.schema.checkAttribute(e,ql)}}]),n}(Fl),Yl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("alignment",{options:[].concat($l)}),r}return m(n,null,[{key:"pluginName",get:function(){return"AlignmentEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.model.schema,r=e.config.get("alignment.options").filter(Hl);n.extend("$block",{allowAttributes:"alignment"}),e.model.schema.setAttributeProperties("alignment",{isFormatting:!0});var i=function(e){var t,n={model:{key:"alignment",values:e.slice()},view:{}},r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.view[i]={key:"style",value:{"text-align":i}}}}catch(e){r.e(e)}finally{r.f()}return n}(r.filter((function(e){return!Ul(e,t)})));e.conversion.attributeToAttribute(i),e.commands.add("alignment",new Wl(e))}}]),n}(Ll),Kl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',Gl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',Ql=new Map([["left",Kl],["right",Gl],["center",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>'],["justify",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>']]),Xl=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.ui.componentFactory,r=t.t,i=t.config.get("alignment.options");i.filter(Hl).forEach((function(t){return e._addButton(t)})),n.add("alignment",(function(e){var t=El(e),o=i.map((function(e){return n.create("alignment:"+e)}));Tl(t,o),t.buttonView.set({label:r("Text alignment"),tooltip:!0}),t.toolbarView.isVertical=!0,t.toolbarView.ariaLabel=r("Text alignment toolbar"),t.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});var a="rtl"===e.contentLanguageDirection?Gl:Kl;return t.buttonView.bind("icon").toMany(o,"isOn",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.findIndex((function(e){return e}));return r<0?a:o[r].icon})),t.bind("isEnabled").toMany(o,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),t}))}},{key:"_addButton",value:function(e){var t=this,n=this.editor;n.ui.componentFactory.add("alignment:"+e,(function(r){var i=n.commands.get("alignment"),o=new kl(r);return o.set({label:t.localizedOptionTitles[e],icon:Ql.get(e),tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i),o.bind("isOn").to(i,"value",(function(t){return t===e})),t.listenTo(o,"execute",(function(){n.execute("alignment",{value:e}),n.editing.view.focus()})),o}))}},{key:"localizedOptionTitles",get:function(){var e=this.editor.t;return{left:e("Align left"),right:e("Align right"),center:e("Align center"),justify:e("Justify")}}}],[{key:"pluginName",get:function(){return"AlignmentUI"}}]),n}(Ll);function Jl(e,t){var n=e.start;return{text:Array.from(e.getItems()).reduce((function(e,r){return r.is("$text")||r.is("$textProxy")?e+r.data:(n=t.createPositionAfter(r),"")}),""),range:t.createRange(n,e.end)}}var Zl=function(){function e(t,n){var r=this;h(this,e),this.model=t,this.testCallback=n,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(function(){r.isEnabled?r._startListening():(r.stopListening(t.document.selection),r.stopListening(t.document))})),this._startListening()}return m(e,[{key:"_startListening",value:function(){var e=this,t=this.model.document;this.listenTo(t.selection,"change:range",(function(n,r){r.directChange&&(t.selection.isCollapsed?e._evaluateTextBeforeSelection("selection"):e.hasMatch&&(e.fire("unmatched"),e.hasMatch=!1))})),this.listenTo(t,"change:data",(function(t,n){"transparent"!=n.type&&e._evaluateTextBeforeSelection("data",{batch:n})}))}},{key:"_evaluateTextBeforeSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.model,r=n.document.selection,i=n.createRange(n.createPositionAt(r.focus.parent,0),r.focus),o=Jl(i,n),a=o.text,s=o.range,c=this.testCallback(a);if(!c&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!c,c){var l=Object.assign(t,{text:a,range:s});"object"==x(c)&&Object.assign(l,c),this.fire("matched:"+e,l)}}}]),e}();sn(Zl,mr);var eu=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),tu=function(e){return eu.test(e)},nu="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ru="\\ud83c[\\udffb-\\udfff]",iu="[^\\ud800-\\udfff]",ou="(?:\\ud83c[\\udde6-\\uddff]){2}",au="[\\ud800-\\udbff][\\udc00-\\udfff]",su="(?:"+nu+"|"+ru+")?",cu="[\\ufe0e\\ufe0f]?",lu=cu+su+"(?:\\u200d(?:"+[iu,ou,au].join("|")+")"+cu+su+")*",uu="(?:"+[iu+nu+"?",nu,ou,au,"[\\ud800-\\udfff]"].join("|")+")",du=RegExp(ru+"(?="+ru+")|"+uu+lu,"g"),fu=function(e){return tu(e)?function(e){return e.match(du)||[]}(e):function(e){return e.split("")}(e)},hu=function(e){e=jn(e);var t=tu(e)?fu(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Bn(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r},pu=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,mu=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,vu=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,gu=/^((\w+:(\/{2,})?)|(\W))/i,bu="Ctrl+K";function yu(e,t){var n=t.writer,r=n.createAttributeElement("a",{href:e},{priority:5});return n.setCustomProperty("link",!0,r),r}function ku(e){return function(e){return e.replace(pu,"").match(mu)}(e=String(e))?e:"#"}function wu(e,t){return!!e&&e.is("element","image")&&t.checkAttribute("image","linkHref")}function _u(e,t){var n,r=(n=e,vu.test(n)?"mailto:":t),i=!!r&&!gu.test(e);return e&&i?r+e:e}var Cu=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.)+(?:[a-z\\u00a1-\\uffff]{2,}))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.))+(?:[a-z\\u00a1-\\uffff]{2,})))$","i"),Au=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}},{key:"afterInit",value:function(){this._enableEnterHandling(),this._enableShiftEnterHandling()}},{key:"_enableTypingHandling",value:function(){var e=this,t=this.editor,n=new Zl(t.model,(function(e){if(function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e)){var t=xu(e.substr(0,e.length-1));return t?{url:t}:void 0}})),r=t.plugins.get("Input");n.on("matched:data",(function(n,i){var o=i.batch,a=i.range,s=i.url;if(r.isInput(o)){var c=a.end.getShiftedBy(-1),l=c.getShiftedBy(-s.length),u=t.model.createRange(l,c);e._applyAutoLink(s,u)}})),n.bind("isEnabled").to(this)}},{key:"_enableEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,r=t.commands.get("enter");r&&r.on("execute",(function(){var t=n.document.selection.getFirstPosition();if(t.parent.previousSibling){var r=n.createRangeIn(t.parent.previousSibling);e._checkAndApplyAutoLinkOnRange(r)}}))}},{key:"_enableShiftEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,r=t.commands.get("shiftEnter");r&&r.on("execute",(function(){var t=n.document.selection.getFirstPosition(),r=n.createRange(n.createPositionAt(t.parent,0),t.getShiftedBy(-1));e._checkAndApplyAutoLinkOnRange(r)}))}},{key:"_checkAndApplyAutoLinkOnRange",value:function(e){var t=this.editor.model,n=Jl(e,t),r=n.text,i=n.range,o=xu(r);if(o){var a=t.createRange(i.end.getShiftedBy(-o.length),i.end);this._applyAutoLink(o,a)}}},{key:"_applyAutoLink",value:function(e,t){var n=this,r=this.editor.model;this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,r)&&r.enqueueChange((function(r){var i=n.editor.config.get("link.defaultProtocol"),o=_u(e,i);r.setAttribute("linkHref",o,t)}))}}],[{key:"pluginName",get:function(){return"AutoLink"}}]),n}(Ll);function xu(e){var t=Cu.exec(e);return t?t[2]:null}var Su=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.schema,i=n.document.selection,o=Array.from(i.getSelectedBlocks()),a=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(a){var n=o.filter((function(e){return Mu(e)||Tu(r,e)}));e._applyQuote(t,n)}else e._removeQuote(t,o.filter(Mu))}))}},{key:"_getValue",value:function(){var e=Vl(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!Mu(e))}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.document.selection,t=this.editor.model.schema,n=Vl(e.getSelectedBlocks());return!!n&&Tu(t,n)}},{key:"_removeQuote",value:function(e,t){Eu(e,t).reverse().forEach((function(t){if(t.start.isAtStart&&t.end.isAtEnd)e.unwrap(t.start.parent);else if(t.start.isAtStart){var n=e.createPositionBefore(t.start.parent);e.move(t,n)}else{t.end.isAtEnd||e.split(t.end);var r=e.createPositionAfter(t.end.parent);e.move(t,r)}}))}},{key:"_applyQuote",value:function(e,t){var n=[];Eu(e,t).reverse().forEach((function(t){var r=Mu(t.start);r||(r=e.createElement("blockQuote"),e.wrap(t,r)),n.push(r)})),n.reverse().reduce((function(t,n){return t.nextSibling==n?(e.merge(e.createPositionAfter(t)),t):n}))}}]),n}(Fl);function Mu(e){return"blockQuote"==e.parent.name?e.parent:null}function Eu(e,t){for(var n,r=0,i=[];r<t.length;){var o=t[r],a=t[r+1];n||(n=e.createPositionBefore(o)),a&&o.nextSibling==a||(i.push(e.createRange(n,e.createPositionAfter(o))),n=null),r++}return i}function Tu(e,t){var n=e.checkChild(t.parent,"blockQuote"),r=e.checkChild(["$root","blockQuote"],t);return n&&r}var Du=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new Su(e)),t.register("blockQuote",{allowWhere:"$block",allowContentOf:"$root"}),t.addChildCheck((function(e,t){if(e.endsWith("blockQuote")&&"blockQuote"==t.name)return!1})),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer((function(n){var r,i=l(e.model.document.differ.getChanges());try{for(i.s();!(r=i.n()).done;){var o=r.value;if("insert"==o.type){var a=o.position.nodeAfter;if(!a)continue;if(a.is("element","blockQuote")&&a.isEmpty)return n.remove(a),!0;if(a.is("element","blockQuote")&&!t.checkChild(o.position,a))return n.unwrap(a),!0;if(a.is("element")){var s,c=l(n.createRangeIn(a).getItems());try{for(c.s();!(s=c.n()).done;){var u=s.value;if(u.is("element","blockQuote")&&!t.checkChild(n.createPositionBefore(u),u))return n.unwrap(u),!0}}catch(e){c.e(e)}finally{c.f()}}}else if("remove"==o.type){var d=o.position.parent;if(d.is("element","blockQuote")&&d.isEmpty)return n.remove(d),!0}}}catch(e){i.e(e)}finally{i.f()}return!1}))}},{key:"afterInit",value:function(){var e=this,t=this.editor.commands.get("blockQuote");this.listenTo(this.editor.editing.view.document,"enter",(function(n,r){var i=e.editor.model.document,o=i.selection.getLastPosition().parent;i.selection.isCollapsed&&o.isEmpty&&t.value&&(e.editor.execute("blockQuote"),e.editor.editing.view.scrollToTheSelection(),r.preventDefault(),n.stop())}))}}],[{key:"pluginName",get:function(){return"BlockQuoteEditing"}}]),n}(Ll);n(45);var Ou=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("blockQuote",(function(r){var i=t.commands.get("blockQuote"),o=new kl(r);return o.set({label:n("Block quote"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute("blockQuote"),t.editing.view.focus()})),o}))}}]),n}(Ll),Pu=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).attributeKey=r,i}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document.selection,i=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(r.isCollapsed)i?t.setSelectionAttribute(e.attributeKey,!0):t.removeSelectionAttribute(e.attributeKey);else{var o,a=l(n.schema.getValidRanges(r.getRanges(),e.attributeKey));try{for(a.s();!(o=a.n()).done;){var s=o.value;i?t.setAttribute(e.attributeKey,i,s):t.removeAttribute(e.attributeKey,s)}}catch(e){a.e(e)}finally{a.f()}}}))}},{key:"_getValueFromFirstAllowedNode",value:function(){var e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);var r,i=l(n.getRanges());try{for(i.s();!(r=i.n()).done;){var o,a=l(r.value.getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(t.checkAttribute(s,this.attributeKey))return s.hasAttribute(this.attributeKey)}}catch(e){a.e(e)}finally{a.f()}}}catch(e){i.e(e)}finally{i.f()}return!1}}]),n}(Fl),Iu="bold",ju=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:Iu}),e.model.schema.setAttributeProperties(Iu,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:Iu,view:"strong",upcastAlso:["b",function(e){var t=e.getStyle("font-weight");return t?"bold"==t||Number(t)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),e.commands.add(Iu,new Pu(e,Iu)),e.keystrokes.set("CTRL+B",Iu)}}],[{key:"pluginName",get:function(){return"BoldEditing"}}]),n}(Ll),Nu="bold",Ru=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(Nu,(function(r){var i=t.commands.get(Nu),o=new kl(r);return o.set({label:n("Bold"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(Nu),t.editing.view.focus()})),o}))}}]),n}(Ll),Lu=function(){function e(t){h(this,e),this.files=function(e){var t=e.files?Array.from(e.files):[],n=e.items?Array.from(e.items):[];return t.length?t:n.filter((function(e){return"file"===e.kind})).map((function(e){return e.getAsFile()}))}(t),this._native=t}return m(e,[{key:"getData",value:function(e){return this._native.getData(e)}},{key:"setData",value:function(e,t){this._native.setData(e,t)}},{key:"types",get:function(){return this._native.types}}]),e}(),Bu=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).document;function o(e,t){t.preventDefault();var n=t.dropRange?[t.dropRange]:Array.from(i.selection.getRanges()),r=new Ut(i,"clipboardInput");i.fire(r,{dataTransfer:t.dataTransfer,targetRanges:n}),r.stop.called&&t.stopPropagation()}return r.domEventType=["paste","copy","cut","drop","dragover"],r.listenTo(i,"paste",o,{priority:"low"}),r.listenTo(i,"drop",o,{priority:"low"}),r}return m(n,[{key:"onDomEvent",value:function(e){var t={dataTransfer:new Lu(e.clipboardData?e.clipboardData:e.dataTransfer)};"drop"==e.type&&(t.dropRange=function(e,t){var n,r=t.target.ownerDocument,i=t.clientX,o=t.clientY;return r.caretRangeFromPoint&&r.caretRangeFromPoint(i,o)?n=r.caretRangeFromPoint(i,o):t.rangeParent&&((n=r.createRange()).setStart(t.rangeParent,t.rangeOffset),n.collapse(!0)),n?e.domConverter.domRangeToView(n):e.document.selection.getFirstRange()}(this.view,e)),this.fire(e.type,e,t)}}]),n}(uo),Fu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor.editing.view,t=e.document,n=!1;e.addObserver(Bu),this.listenTo(t,"keydown",(function(e,t){n=t.shiftKey})),this.listenTo(t,"clipboardInput",(function(e,t){n&&(t.asPlainText=!0)}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"PastePlainText"}}]),n}(Ll),zu=["figcaption","li"];var Vu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,r=t.editing.view,i=r.document;function o(e,r){var o=r.dataTransfer;r.preventDefault();var a=t.data.toView(t.model.getSelectedContent(n.selection));i.fire("clipboardOutput",{dataTransfer:o,content:a,method:e.name})}this._htmlDataProcessor=new kc(i),r.addObserver(Bu),this.listenTo(i,"clipboardInput",(function(e){t.isReadOnly&&e.stop()}),{priority:"highest"}),this.listenTo(i,"clipboardInput",(function(t,n){var i,o=n.dataTransfer,a="";o.getData("text/html")?a=function(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(e,t){return 1==t.length?" ":t}))}(o.getData("text/html")):o.getData("text/plain")&&(((i=(i=o.getData("text/plain")).replace(/</g,"<").replace(/>/g,">").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," ")).includes("</p><p>")||i.includes("<br>"))&&(i="<p>".concat(i,"</p>")),a=i),a=e._htmlDataProcessor.toView(a);var s=new Ut(e,"inputTransformation");e.fire(s,{content:a,dataTransfer:o,asPlainText:n.asPlainText}),s.stop.called&&t.stop(),r.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",(function(r,i){if(!i.content.isEmpty){var o=e.editor.data,a=e.editor.model,s=o.toModel(i.content,"$clipboardHolder");if(0==s.childCount)return;if(i.asPlainText||function(e){return!(e.childCount>1)&&0==u(e.getChild(0).getAttributeKeys()).length}(s)){var c=new Map(Array.from(n.selection.getAttributes()).filter((function(e){return t.model.schema.getAttributeProperties(e[0]).isFormatting})));a.change((function(e){var t,n=l(e.createRangeIn(s).getItems());try{for(n.s();!(t=n.n()).done;){var r=t.value;(r.is("$text")||r.is("$textProxy"))&&e.setAttributes(c,r)}}catch(e){n.e(e)}finally{n.f()}}))}a.insertContent(s),r.stop()}}),{priority:"low"}),this.listenTo(i,"copy",o,{priority:"low"}),this.listenTo(i,"cut",(function(e,n){t.isReadOnly?n.preventDefault():o(e,n)}),{priority:"low"}),this.listenTo(i,"clipboardOutput",(function(r,i){i.content.isEmpty||(i.dataTransfer.setData("text/html",e._htmlDataProcessor.toData(i.content)),i.dataTransfer.setData("text/plain",function e(t){var n="";if(t.is("$text")||t.is("$textProxy"))n=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))n=t.getAttribute("alt");else if(t.is("element","br"))n="\n";else{var r,i=null,o=l(t.getChildren());try{for(o.s();!(r=o.n()).done;){var a=r.value,s=e(a);i&&(i.is("containerElement")||a.is("containerElement"))&&(zu.includes(i.name)||zu.includes(a.name)?n+="\n":n+="\n\n"),n+=s,i=a}}catch(e){o.e(e)}finally{o.f()}}return n}(i.content))),"cut"==i.method&&t.model.deleteContent(n.selection)}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Clipboard"}},{key:"requires",get:function(){return[Fu]}}]),n}(Ll);function $u(e,t){var n,r,i;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:n=l(t),o.prev=1,n.s();case 3:if((r=n.n()).done){o.next=11;break}if(i=r.value,o.t0=i&&e.getAttributeProperties(i[0]).copyOnEnter,!o.t0){o.next=9;break}return o.next=9,i;case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t1=o.catch(1),n.e(o.t1);case 16:return o.prev=16,n.f(),o.finish(16);case 19:case"end":return o.stop()}}),d,null,[[1,13,16,19]])}var Hu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(r){!function(e,t,n,r){var i=n.isCollapsed,o=n.getFirstRange(),a=o.start.parent,s=o.end.parent;if(r.isLimit(a)||r.isLimit(s))i||a!=s||e.deleteContent(n);else if(i){var c=$u(t.model.schema,n.getAttributes());Uu(t,o.start),t.setSelectionAttribute(c)}else{var l=!(o.start.isAtStart&&o.end.isAtEnd),u=a==s;e.deleteContent(n,{leaveUnmerged:l}),l&&(u?Uu(t,n.focus):t.setSelection(s,0))}}(e.editor.model,r,n.selection,t.schema),e.fire("afterExecute",{writer:r})}))}}]),n}(Fl);function Uu(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}var qu=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).document;return i.on("keydown",(function(e,t){var n;r.isEnabled&&t.keyCode==Ur.enter&&(i.once("enter",(function(e){return n=e}),{priority:"highest"}),i.fire("enter",new lo(i,t.domEvent,{isSoft:t.shiftKey})),n&&n.stop.called&&e.stop())})),r}return m(n,[{key:"observe",value:function(){}}]),n}(Ui),Wu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;t.addObserver(qu),e.commands.add("enter",new Hu(e)),this.listenTo(n,"enter",(function(n,r){r.preventDefault(),r.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Enter"}}]),n}(Ll),Yu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(r){!function(e,t,n){var r=n.isCollapsed,i=n.getFirstRange(),o=i.start.parent,a=i.end.parent,s=o==a;if(r){var c=$u(e.schema,n.getAttributes());Ku(e,t,i.end),t.removeSelectionAttribute(n.getAttributeKeys()),t.setSelectionAttribute(c)}else{var l=!(i.start.isAtStart&&i.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:l}),s?Ku(e,t,n.focus):l&&t.setSelection(a,0)}}(t,r,n.selection),e.fire("afterExecute",{writer:r})}))}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;var n=t.anchor;if(!n||!e.checkChild(n,"softBreak"))return!1;var r=t.getFirstRange(),i=r.start.parent,o=r.end.parent;return!Gu(i,e)&&!Gu(o,e)||i===o}(e.schema,t.selection)}}]),n}(Fl);function Ku(e,t,n){var r=t.createElement("softBreak");e.insertContent(r,n),t.setSelection(r,"after")}function Gu(e,t){return!e.is("rootElement")&&(t.isLimit(e)||Gu(e.parent,t))}var Qu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.conversion,r=e.editing.view,i=r.document;t.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:function(e,t){return t.writer.createEmptyElement("br")}}),r.addObserver(qu),e.commands.add("shiftEnter",new Yu(e)),this.listenTo(i,"enter",(function(t,n){n.preventDefault(),n.isSoft&&(e.execute("shiftEnter"),r.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ShiftEnter"}}]),n}(Ll),Xu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!Ju(e.schema,n))do{if(!(n=n.parent))return}while(!Ju(e.schema,n));e.change((function(e){e.setSelection(n,"in")}))}}]),n}(Fl);function Ju(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}for(var Zu=Wr("Ctrl+A"),ed=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new Xu(e)),this.listenTo(t,"keydown",(function(t,n){qr(n)===Zu&&(e.execute("selectAll"),n.preventDefault())}))}}],[{key:"pluginName",get:function(){return"SelectAllEditing"}}]),n}(Ll),td=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor;t.ui.componentFactory.add("selectAll",(function(n){var r=t.commands.get("selectAll"),i=new kl(n),o=n.t;return i.set({label:o("Select all"),icon:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),e.listenTo(i,"execute",(function(){t.execute("selectAll"),t.editing.view.focus()})),i}))}}],[{key:"pluginName",get:function(){return"SelectAllUI"}}]),n}(Ll),nd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[ed,td]}},{key:"pluginName",get:function(){return"SelectAll"}}]),n}(Ll),rd=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;h(this,e),this.model=t,this.size=0,this.limit=r,this.isLocked=!1,this._changeCallback=function(e,t){"transparent"!=t.type&&t!==n._batch&&n._reset(!0)},this._selectionChangeCallback=function(){n._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}return m(e,[{key:"input",value:function(e){this.size+=e,this.size>=this.limit&&this._reset(!0)}},{key:"lock",value:function(){this.isLocked=!0}},{key:"unlock",value:function(){this.isLocked=!1}},{key:"destroy",value:function(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}},{key:"_reset",value:function(e){this.isLocked&&!e||(this._batch=null,this.size=0)}},{key:"batch",get:function(){return this._batch||(this._batch=this.model.createBatch()),this._batch}}]),e}(),id=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e))._buffer=new rd(e.model,r),i._batches=new WeakSet,i}return m(n,[{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this),this._buffer.destroy()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document,i=t.text||"",o=i.length,a=t.range?n.createSelection(t.range):r.selection,s=t.resultRange;n.enqueueChange(this._buffer.batch,(function(t){e._buffer.lock(),e._batches.add(e._buffer.batch),n.deleteContent(a),i&&n.insertContent(t.createText(i,r.selection.getAttributes()),a),s?t.setSelection(s):a.is("documentSelection")||t.setSelection(a),e._buffer.unlock(),e._buffer.input(o)}))}},{key:"buffer",get:function(){return this._buffer}}]),n}(Fl),od=[qr("arrowUp"),qr("arrowRight"),qr("arrowDown"),qr("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255],ad=112;ad<=135;ad++)od.push(ad);function sd(e){return!!e.ctrlKey||od.includes(e.keyCode)}function cd(e){if(e.newChildren.length-e.oldChildren.length==1){var t=function(e,t){var n,r=[],i=0;return e.forEach((function(e){"equal"==e?(o(),i++):"insert"==e?(a("insert")?n.values.push(t[i]):(o(),n={type:"insert",index:i,values:[t[i]]}),i++):a("delete")?n.howMany++:(o(),n={type:"delete",index:i,howMany:1})})),o(),r;function o(){n&&(r.push(n),n=null)}function a(e){return n&&n.type==e}}(Ai(e.oldChildren,e.newChildren,ld),e.newChildren);if(!(t.length>1)){var n=t[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}}}function ld(e,t){return e&&e.is("$text")&&t&&t.is("$text")?e.data===t.data:e===t}var ud=function(){function e(t){h(this,e),this.editor=t,this.editing=this.editor.editing}return m(e,[{key:"handle",value:function(e,t){if(function(e){if(0==e.length)return!1;var t,n=l(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("children"===r.type&&!cd(r))return!0}}catch(e){n.e(e)}finally{n.f()}return!1}(e))this._handleContainerChildrenMutations(e,t);else{var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._handleTextMutation(i,t),this._handleTextNodeInsertion(i)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"_handleContainerChildrenMutations",value:function(e,t){var n=function(e){var t=e.map((function(e){return e.node})).reduce((function(e,t){return e.getCommonAncestor(t,{includeSelf:!0})}));if(t)return t.getAncestors({includeSelf:!0,parentFirst:!0}).find((function(e){return e.is("containerElement")||e.is("rootElement")}))}(e);if(n){var r=this.editor.editing.view.domConverter.mapViewToDom(n),i=new Ri(this.editor.editing.view.document),o=this.editor.data.toModel(i.domToView(r)).getChild(0),a=this.editor.editing.mapper.toModelElement(n);if(a){var s=Array.from(o.getChildren()),c=Array.from(a.getChildren()),l=s[s.length-1],u=c[c.length-1],d=l&&l.is("element","softBreak"),f=u&&!u.is("element","softBreak");d&&f&&s.pop();var h=this.editor.model.schema;if(dd(s,h)&&dd(c,h)){var p=s.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," "),m=c.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," ");if(m!==p){var v=fd(Ai(m,p)),g=v.firstChangeAt,b=v.insertions,y=v.deletions,k=null;t&&(k=this.editing.mapper.toModelRange(t.getFirstRange()));var w=p.substr(g,b),_=this.editor.model.createRange(this.editor.model.createPositionAt(a,g),this.editor.model.createPositionAt(a,g+y));this.editor.execute("input",{text:w,range:_,resultRange:k})}}}}}},{key:"_handleTextMutation",value:function(e,t){if("text"==e.type){var n=e.newText.replace(/\u00A0/g," "),r=e.oldText.replace(/\u00A0/g," ");if(r!==n){var i=fd(Ai(r,n)),o=i.firstChangeAt,a=i.insertions,s=i.deletions,c=null;t&&(c=this.editing.mapper.toModelRange(t.getFirstRange()));var l=this.editing.view.createPositionAt(e.node,o),u=this.editing.mapper.toModelPosition(l),d=this.editor.model.createRange(u,u.getShiftedBy(s)),f=n.substr(o,a);this.editor.execute("input",{text:f,range:d,resultRange:c})}}}},{key:"_handleTextNodeInsertion",value:function(e){if("children"==e.type){var t=cd(e),n=this.editing.view.createPositionAt(e.node,t.index),r=this.editing.mapper.toModelPosition(n),i=t.values[0].data;this.editor.execute("input",{text:i.replace(/\u00A0/g," "),range:this.editor.model.createRange(r)})}}}]),e}();function dd(e,t){return e.every((function(e){return t.isInline(e)}))}function fd(e){for(var t=null,n=null,r=0;r<e.length;r++)"equal"!=e[r]&&(t=null===t?r:t,n=r);for(var i=0,o=0,a=t;a<=n;a++)"insert"!=e[a]&&i++,"delete"!=e[a]&&o++;return{insertions:o,deletions:i,firstChangeAt:t}}var hd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=new id(e,e.config.get("typing.undoStep")||20);e.commands.add("input",t),function(e){var t=null,n=e.model,r=e.editing.view,i=e.commands.get("input");function o(e){var o=n.document,s=r.document.isComposing,c=t&&t.isEqual(o.selection);t=null,i.isEnabled&&(sd(e)||o.selection.isCollapsed||s&&229===e.keyCode||!s&&229===e.keyCode&&c||a())}function a(){var e=i.buffer;e.lock();var t=e.batch;i._batches.add(t),n.enqueueChange(t,(function(){n.deleteContent(n.document.selection)})),e.unlock()}Vr?r.document.on("beforeinput",(function(e,t){return o(t)}),{priority:"lowest"}):r.document.on("keydown",(function(e,t){return o(t)}),{priority:"lowest"}),r.document.on("compositionstart",(function(){var e=n.document,t=1!==e.selection.rangeCount||e.selection.getFirstRange().isFlat;e.selection.isCollapsed||t||a()}),{priority:"lowest"}),r.document.on("compositionend",(function(){t=n.createSelection(n.document.selection)}),{priority:"lowest"})}(e),function(e){e.editing.view.document.on("mutations",(function(t,n,r){new ud(e).handle(n,r)}))}(e)}},{key:"isInput",value:function(e){return this.editor.commands.get("input")._batches.has(e)}}],[{key:"pluginName",get:function(){return"Input"}}]),n}(Ll),pd=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).direction=r,i._buffer=new rd(e.model,e.config.get("typing.undoStep")),i}return m(n,[{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document;n.enqueueChange(this._buffer.batch,(function(i){e._buffer.lock();var o=i.createSelection(t.selection||r.selection),a=o.isCollapsed;if(o.isCollapsed&&n.modifySelection(o,{direction:e.direction,unit:t.unit}),e._shouldEntireContentBeReplacedWithParagraph(t.sequence||1))e._replaceEntireContentWithParagraph(i);else if(!o.isCollapsed){var s=0;o.getFirstRange().getMinimalFlatRanges().forEach((function(e){s+=Er(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),n.deleteContent(o,{doNotResetEntireContent:a,direction:e.direction}),e._buffer.input(s),i.setSelection(o),e._buffer.unlock()}}))}},{key:"_shouldEntireContentBeReplacedWithParagraph",value:function(e){if(e>1)return!1;var t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(r))return!1;if(!t.schema.checkChild(r,"paragraph"))return!1;var i=r.getChild(0);return!i||"paragraph"!==i.name}},{key:"_replaceEntireContentWithParagraph",value:function(e){var t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n),i=e.createElement("paragraph");e.remove(e.createRangeIn(r)),e.insert(i,r),e.setSelection(i,0)}},{key:"buffer",get:function(){return this._buffer}}]),n}(Fl),md=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),r=t.call(this,e);var i=e.document,o=0;function a(e,t,n){var r;i.once("delete",(function(e){return r=e}),{priority:Number.POSITIVE_INFINITY}),i.fire("delete",new lo(i,t,n)),r&&r.stop.called&&e.stop()}return i.on("keyup",(function(e,t){t.keyCode!=Ur.delete&&t.keyCode!=Ur.backspace||(o=0)})),i.on("keydown",(function(e,t){var n={};if(t.keyCode==Ur.delete)n.direction="forward",n.unit="character";else{if(t.keyCode!=Ur.backspace)return;n.direction="backward",n.unit="codePoint"}var r=Br?t.altKey:t.ctrlKey;n.unit=r?"word":n.unit,n.sequence=++o,a(e,t.domEvent,n)})),Vr&&i.on("beforeinput",(function(t,n){if("deleteContentBackward"==n.domEvent.inputType){var r={unit:"codepoint",direction:"backward",sequence:1},i=n.domTarget.ownerDocument.defaultView.getSelection();i.anchorNode==i.focusNode&&i.anchorOffset+1!=i.focusOffset&&(r.selectionToRemove=e.domConverter.domSelectionToView(i)),a(t,n.domEvent,r)}})),r}return m(n,[{key:"observe",value:function(){}}]),n}(Ui),vd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;if(t.addObserver(md),e.commands.add("forwardDelete",new pd(e,"forward")),e.commands.add("delete",new pd(e,"backward")),this.listenTo(n,"delete",(function(n,r){var i={unit:r.unit,sequence:r.sequence};if(r.selectionToRemove){var o,a=e.model.createSelection(),s=[],c=l(r.selectionToRemove.getRanges());try{for(c.s();!(o=c.n()).done;){var u=o.value;s.push(e.editing.mapper.toModelRange(u))}}catch(e){c.e(e)}finally{c.f()}a.setTo(s),i.selection=a}e.execute("forward"==r.direction?"forwardDelete":"delete",i),r.preventDefault(),t.scrollToTheSelection()})),Vr){var r=null;this.listenTo(n,"delete",(function(e,t){var n=t.domTarget.ownerDocument.defaultView.getSelection();r={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}),{priority:"lowest"}),this.listenTo(n,"keyup",(function(e,t){if(r){var n=t.domTarget.ownerDocument.defaultView.getSelection();n.collapse(r.anchorNode,r.anchorOffset),n.extend(r.focusNode,r.focusOffset),r=null}}))}}}],[{key:"pluginName",get:function(){return"Delete"}}]),n}(Ll),gd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[hd,vd]}},{key:"pluginName",get:function(){return"Typing"}}]),n}(Ll),bd=new Map;function yd(e,t,n){var r=bd.get(e);r||(r=new Map,bd.set(e,r)),r.set(t,n)}function kd(e){return[e]}function wd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e,t){var n=bd.get(e);return n&&n.has(t)?n.get(t):kd}(e.constructor,t.constructor);try{return r(e=e.clone(),t,n)}catch(e){throw e}}function _d(e,t,n){e=e.slice(),t=t.slice();var r=new Cd(n.document,n.useRelations,n.forceWeakRemove);r.setOriginalOperations(e),r.setOriginalOperations(t);var i=r.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:i};var o,a=new WeakMap,s=l(e);try{for(s.s();!(o=s.n()).done;){var c=o.value;a.set(c,0)}}catch(e){s.e(e)}finally{s.f()}for(var d={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length},f=0;f<e.length;){var h,p,m=e[f],v=a.get(m);if(v!=t.length){var g=t[v],b=wd(m,g,r.getContext(m,g,!0)),y=wd(g,m,r.getContext(g,m,!1));r.updateRelation(m,g),r.setOriginalOperations(b,m),r.setOriginalOperations(y,g);var k,w=l(b);try{for(w.s();!(k=w.n()).done;){var _=k.value;a.set(_,v+y.length)}}catch(e){w.e(e)}finally{w.f()}(h=e).splice.apply(h,[f,1].concat(u(b))),(p=t).splice.apply(p,[v,1].concat(u(y)))}else f++}if(n.padWithNoOps){var C=e.length-d.originalOperationsACount,A=t.length-d.originalOperationsBCount;xd(e,A-C),xd(t,C-A)}return Ad(e,d.nextBaseVersionB),Ad(t,d.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:i}}var Cd=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];h(this,e),this.originalOperations=new Map,this._history=t.history,this._useRelations=n,this._forceWeakRemove=!!r,this._relations=new Map}return m(e,[{key:"setOriginalOperations",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=n?this.originalOperations.get(n):null,i=l(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;this.originalOperations.set(o,r||o)}}catch(e){i.e(e)}finally{i.f()}}},{key:"updateRelation",value:function(e,t){switch(e.constructor){case _s:switch(t.constructor){case Ms:e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter");break;case _s:e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter")}break;case Es:switch(t.constructor){case Ms:e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");break;case _s:(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))&&this._setRelation(e,t,"splitBefore")}break;case Ms:switch(t.constructor){case Ms:e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement");break;case Es:e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource")}break;case As:var n=e.newRange;if(!n)return;switch(t.constructor){case _s:var r=na._createFromPositionAndShift(t.sourcePosition,t.howMany),i=r.containsPosition(n.start)||r.start.isEqual(n.start),o=r.containsPosition(n.end)||r.end.isEqual(n.end);!i&&!o||r.containsRange(n)||this._setRelation(e,t,{side:i?"left":"right",path:i?n.start.path.slice():n.end.path.slice()});break;case Ms:var a=n.start.isEqual(t.targetPosition),s=n.start.isEqual(t.deletionPosition),c=n.end.isEqual(t.deletionPosition),l=n.end.isEqual(t.sourcePosition);(a||s||c||l)&&this._setRelation(e,t,{wasInLeftElement:a,wasStartBeforeMergedElement:s,wasEndBeforeMergedElement:c,wasInRightElement:l})}}}},{key:"getContext",value:function(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}},{key:"_wasUndone",value:function(e){var t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}},{key:"_getRelation",value:function(e,t){var n=this.originalOperations.get(t),r=this._history.getUndoneOperation(n);if(!r)return null;var i=this.originalOperations.get(e),o=this._relations.get(i);return o&&o.get(r)||null}},{key:"_setRelation",value:function(e,t,n){var r=this.originalOperations.get(e),i=this.originalOperations.get(t),o=this._relations.get(r);o||(o=new Map,this._relations.set(r,o)),o.set(i,n)}}]),e}();function Ad(e,t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){n.value.baseVersion=t++}}catch(e){r.e(e)}finally{r.f()}}function xd(e,t){for(var n=0;n<t;n++)e.push(new Ks(0))}function Sd(e,t,n){var r=e.nodes.getNode(0).getAttribute(t);if(r==n)return null;var i=new na(e.position,e.position.getShiftedBy(e.howMany));return new ks(i,t,r,n,0)}function Md(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function Ed(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=new _s(i.start,i.end.offset-i.start.offset,t,0);n.push(o);for(var a=r+1;a<e.length;a++)e[a]=e[a]._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)[0];t=t._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)}return n}yd(ks,ks,(function(e,t,n){if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){var r=e.range.getDifference(t.range).map((function(t){return new ks(t,e.key,e.oldValue,e.newValue,0)})),i=e.range.getIntersection(t.range);return i&&n.aIsStrong&&r.push(new ks(i,t.key,t.newValue,e.newValue,0)),0==r.length?[new Ks(0)]:r}return[e]})),yd(ks,Cs,(function(e,t){if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){var n=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map((function(t){return new ks(t,e.key,e.oldValue,e.newValue,e.baseVersion)}));if(t.shouldReceiveAttributes){var r=Sd(t,e.key,e.oldValue);r&&n.unshift(r)}return n}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]})),yd(ks,Ms,(function(e,t){var n=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&n.push(na._createFromPositionAndShift(t.graveyardPosition,1));var r=e.range._getTransformedByMergeOperation(t);return r.isCollapsed||n.push(r),n.map((function(t){return new ks(t,e.key,e.oldValue,e.newValue,e.baseVersion)}))})),yd(ks,_s,(function(e,t){return function(e,t){var n=na._createFromPositionAndShift(t.sourcePosition,t.howMany),r=null,i=[];n.containsRange(e,!0)?r=e:e.start.hasSameParentAs(n.start)?(i=e.getDifference(n),r=e.getIntersection(n)):i=[e];var o,a=[],s=l(i);try{for(s.s();!(o=s.n()).done;){var c=o.value;c=c._getTransformedByDeletion(t.sourcePosition,t.howMany);var d=t.getMovedRangeStart(),f=c.start.hasSameParentAs(d);c=c._getTransformedByInsertion(d,t.howMany,f),a.push.apply(a,u(c))}}catch(e){s.e(e)}finally{s.f()}return r&&a.push(r._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),a}(e.range,t).map((function(t){return new ks(t,e.key,e.oldValue,e.newValue,e.baseVersion)}))})),yd(ks,Es,(function(e,t){if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){var n=e.clone();return n.range=new na(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,n]}return e.range=e.range._getTransformedBySplitOperation(t),[e]})),yd(Cs,ks,(function(e,t){var n=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){var r=Sd(e,t.key,t.newValue);r&&n.push(r)}return n})),yd(Cs,Cs,(function(e,t,n){return e.position.isEqual(t.position)&&n.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e]})),yd(Cs,_s,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),yd(Cs,Es,(function(e,t){return e.position=e.position._getTransformedBySplitOperation(t),[e]})),yd(Cs,Ms,(function(e,t){return e.position=e.position._getTransformedByMergeOperation(t),[e]})),yd(As,Cs,(function(e,t){return e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e]})),yd(As,As,(function(e,t,n){if(e.name==t.name){if(!n.aIsStrong)return[new Ks(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]})),yd(As,Ms,(function(e,t){return e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e]})),yd(As,_s,(function(e,t,n){if(e.oldRange&&(e.oldRange=na._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(n.abRelation){var r=na._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.start.path=n.abRelation.path,e.newRange.end=r.end,[e];if("right"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=r.start,e.newRange.end.path=n.abRelation.path,[e]}e.newRange=na._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]})),yd(As,Es,(function(e,t,n){if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(n.abRelation){var r=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?e.newRange.start=Jo._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!n.abRelation.wasInLeftElement&&(e.newRange.start=Jo._createAt(t.moveTargetPosition)),e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasInRightElement?e.newRange.end=Jo._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?e.newRange.end=Jo._createAt(t.insertionPosition):e.newRange.end=r.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]})),yd(Ms,Cs,(function(e,t){return e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e]})),yd(Ms,Ms,(function(e,t,n){if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(n.bWasUndone){var r=t.graveyardPosition.path.slice();return r.push(0),e.sourcePosition=new Jo(t.graveyardPosition.root,r),e.howMany=0,[e]}return[new Ks(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){var i="$graveyard"==e.targetPosition.root.rootName,o="$graveyard"==t.targetPosition.root.rootName;if(o&&!i||!(i&&!o)&&n.aIsStrong){var a=t.targetPosition._getTransformedByMergeOperation(t),s=e.targetPosition._getTransformedByMergeOperation(t);return[new _s(a,e.howMany,s,0)]}return[new Ks(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&n.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),yd(Ms,_s,(function(e,t,n){var r=na._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!n.bWasUndone&&!n.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.sourcePosition)?[new Ks(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])})),yd(Ms,Es,(function(e,t,n){if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){var r=0!=t.howMany,i=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(r||i||"mergeTargetNotMoved"==n.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==n.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]})),yd(_s,Cs,(function(e,t){var n=na._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),yd(_s,_s,(function(e,t,n){var r,i=na._createFromPositionAndShift(e.sourcePosition,e.howMany),o=na._createFromPositionAndShift(t.sourcePosition,t.howMany),a=n.aIsStrong,s=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?s=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(s=!1),r=e.targetPosition.isEqual(t.targetPosition)&&s?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Md(e,t)&&Md(t,e))return[t.getReversed()];if(i.containsPosition(t.targetPosition)&&i.containsRange(o,!0))return i.start=i.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),i.end=i.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Ed([i],r);if(o.containsPosition(e.targetPosition)&&o.containsRange(i,!0))return i.start=i.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),i.end=i.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),Ed([i],r);var c=mn(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==c||"extension"==c)return i.start=i.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),i.end=i.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Ed([i],r);"remove"!=e.type||"remove"==t.type||n.aWasUndone||n.forceWeakRemove?"remove"==e.type||"remove"!=t.type||n.bWasUndone||n.forceWeakRemove||(a=!1):a=!0;var d,f=[],h=l(i.getDifference(o));try{for(h.s();!(d=h.n()).done;){var p=d.value;p.start=p.start._getTransformedByDeletion(t.sourcePosition,t.howMany),p.end=p.end._getTransformedByDeletion(t.sourcePosition,t.howMany);var m="same"==mn(p.start.getParentPath(),t.getMovedRangeStart().getParentPath()),v=p._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,m);f.push.apply(f,u(v))}}catch(e){h.e(e)}finally{h.f()}var g=i.getIntersection(o);return null!==g&&a&&(g.start=g.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),g.end=g.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===f.length?f.push(g):1==f.length?o.start.isBefore(i.start)||o.start.isEqual(i.start)?f.unshift(g):f.push(g):f.splice(1,0,g)),0===f.length?[new Ks(e.baseVersion)]:Ed(f,r)})),yd(_s,Es,(function(e,t,n){var r=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(r=e.targetPosition._getTransformedBySplitOperation(t));var i=na._createFromPositionAndShift(e.sourcePosition,e.howMany);if(i.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=r,[e];if(i.start.hasSameParentAs(t.splitPosition)&&i.containsPosition(t.splitPosition)){var o=new na(t.splitPosition,i.end);return o=o._getTransformedBySplitOperation(t),Ed([new na(i.start,t.splitPosition),o],r)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==n.abRelation&&(r=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==n.abRelation&&(r=e.targetPosition);var a=[i._getTransformedBySplitOperation(t)];if(t.graveyardPosition){var s=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);e.howMany>1&&s&&!n.aWasUndone&&a.push(na._createFromPositionAndShift(t.insertionPosition,1))}return Ed(a,r)})),yd(_s,Ms,(function(e,t,n){var r=na._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.sourcePosition))if("remove"!=e.type||n.forceWeakRemove){if(1==e.howMany)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Ks(0)]}else if(!n.aWasUndone){var i=[],o=t.graveyardPosition.clone(),a=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(i.push(new _s(e.sourcePosition,e.howMany-1,e.targetPosition,0)),o=o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),a=a._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));var s=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),c=new _s(o,1,s,0),l=c.getMovedRangeStart().path.slice();l.push(0);var u=new Jo(c.targetPosition.root,l);a=a._getTransformedByMove(o,s,1);var d=new _s(a,t.howMany,u,0);return i.push(c),i.push(d),i}var f=na._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=f.start,e.howMany=f.end.offset-f.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),yd(xs,Cs,(function(e,t){return e.position=e.position._getTransformedByInsertOperation(t),[e]})),yd(xs,Ms,(function(e,t){return e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e])})),yd(xs,_s,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),yd(xs,xs,(function(e,t,n){if(e.position.isEqual(t.position)){if(!n.aIsStrong)return[new Ks(0)];e.oldName=t.newName}return[e]})),yd(xs,Es,(function(e,t){if("same"==mn(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){var n=new xs(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,n]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),yd(Ss,Ss,(function(e,t,n){if(e.root===t.root&&e.key===t.key){if(!n.aIsStrong||e.newValue===t.newValue)return[new Ks(0)];e.oldValue=t.newValue}return[e]})),yd(Es,Cs,(function(e,t){return e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=Es.getInsertionPosition(e.splitPosition),[e]})),yd(Es,Ms,(function(e,t,n){if(!e.graveyardPosition&&!n.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){var r=t.graveyardPosition.path.slice();r.push(0);var i=new Jo(t.graveyardPosition.root,r),o=Es.getInsertionPosition(new Jo(t.graveyardPosition.root,r)),a=new Es(i,0,null,0);return a.insertionPosition=o,e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Es.getInsertionPosition(e.splitPosition),e.graveyardPosition=a.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[a,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Es.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),yd(Es,_s,(function(e,t,n){var r=na._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){var i=r.start.isEqual(e.graveyardPosition)||r.containsPosition(e.graveyardPosition);if(!n.bWasUndone&&i){var o=e.splitPosition._getTransformedByMoveOperation(t),a=e.graveyardPosition._getTransformedByMoveOperation(t),s=a.path.slice();s.push(0);var c=new Jo(a.root,s);return[new _s(o,e.howMany,c,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.splitPosition)){var l=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=l,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=Es.getInsertionPosition(e.splitPosition),[e]}return!e.splitPosition.isEqual(t.targetPosition)||"insertAtSource"!=n.baRelation&&"splitBefore"!=n.abRelation?(t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.graveyardPosition?e.insertionPosition=e.insertionPosition._getTransformedByMoveOperation(t):e.insertionPosition=Es.getInsertionPosition(e.splitPosition),[e]):(e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Es.getInsertionPosition(e.splitPosition),[e])})),yd(Es,Es,(function(e,t,n){if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new Ks(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new Ks(0)];if("splitBefore"==n.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){var r="$graveyard"==e.splitPosition.root.rootName,i="$graveyard"==t.splitPosition.root.rootName;if(i&&!r||!(r&&!i)&&n.aIsStrong){var o=[];return t.howMany&&o.push(new _s(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&o.push(new _s(e.splitPosition,e.howMany,e.moveTargetPosition,0)),o}return[new Ks(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.baRelation){var a=t.insertionPosition.path.slice();a.push(0);var s=new Jo(t.insertionPosition.root,a);return[e,new _s(e.insertionPosition,1,s,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Es.getInsertionPosition(e.splitPosition),[e]}));var Td=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._stack=[],r._createdBatches=new WeakSet,r.refresh(),r.listenTo(e.data,"set",(function(){return r.clearStack()})),r}return m(n,[{key:"refresh",value:function(){this.isEnabled=this._stack.length>0}},{key:"addBatch",value:function(e){var t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}},{key:"clearStack",value:function(){this._stack=[],this.refresh()}},{key:"_restoreSelection",value:function(e,t,n){var r,i=this.editor.model,o=i.document,a=[],s=e.map((function(e){return e.getTransformedByOperations(n)})),c=s.flat(),u=l(s);try{for(u.s();!(r=u.n()).done;){var d=r.value.filter((function(e){return!Od(e,c)}));Dd(d);var f=d.find((function(e){return e.root!=o.graveyard}));f&&a.push(f)}}catch(e){u.e(e)}finally{u.f()}a.length&&i.change((function(e){e.setSelection(a,{backward:t})}))}},{key:"_undo",value:function(e,t){var n=this.editor.model,r=n.document;this._createdBatches.add(t);var i=e.operations.slice().filter((function(e){return e.isDocumentOperation}));i.reverse();var o,a=l(i);try{for(a.s();!(o=a.n()).done;){var s,c=o.value,u=c.baseVersion+1,d=Array.from(r.history.getOperations(u)),f=l(_d([c.getReversed()],d,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA);try{for(f.s();!(s=f.n()).done;){var h=s.value;t.addOperation(h),n.applyOperation(h),r.history.setOperationAsUndone(c,h)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){a.e(e)}finally{a.f()}}}]),n}(Fl);function Dd(e){e.sort((function(e,t){return e.start.isBefore(t.start)?-1:1}));for(var t=1;t<e.length;t++){var n=e[t-1].getJoined(e[t],!0);n&&(t--,e.splice(t,2,n))}}function Od(e,t){return t.some((function(t){return t!==e&&t.containsRange(e,!0)}))}var Pd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t?this._stack.findIndex((function(e){return e.batch==t})):this._stack.length-1,r=this._stack.splice(n,1)[0],i=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(i,(function(){e._undo(r.batch,i);var t=e.editor.model.document.history.getOperations(r.batch.baseVersion);e._restoreSelection(r.selection.ranges,r.selection.isBackward,t),e.fire("revert",r.batch,i)})),this.refresh()}}]),n}(Td),Id=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this,t=this._stack.pop(),n=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(n,(function(){var r=t.batch.operations[t.batch.operations.length-1].baseVersion+1,i=e.editor.model.document.history.getOperations(r);e._restoreSelection(t.selection.ranges,t.selection.isBackward,i),e._undo(t.batch,n)})),this.refresh()}}]),n}(Td),jd=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._batchRegistry=new WeakSet,r}return m(n,null,[{key:"pluginName",get:function(){return"UndoEditing"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor;this._undoCommand=new Pd(t),this._redoCommand=new Id(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(function(t,n){var r=n[0];if(r.isDocumentOperation){var i=r.batch,o=e._redoCommand._createdBatches.has(i),a=e._undoCommand._createdBatches.has(i);e._batchRegistry.has(i)||"transparent"==i.type&&!o&&!a||(o?e._undoCommand.addBatch(i):a||(e._undoCommand.addBatch(i),e._redoCommand.clearStack()),e._batchRegistry.add(i))}}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(function(t,n,r){e._redoCommand.addBatch(r)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}]),n}(Ll),Nd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.042 9.367l2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',Rd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M14.958 9.367l-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',Ld=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,r="ltr"==t.uiLanguageDirection?Nd:Rd,i="ltr"==t.uiLanguageDirection?Rd:Nd;this._addButton("undo",n("Undo"),"CTRL+Z",r),this._addButton("redo",n("Redo"),"CTRL+Y",i)}},{key:"_addButton",value:function(e,t,n,r){var i=this,o=this.editor;o.ui.componentFactory.add(e,(function(a){var s=o.commands.get(e),c=new kl(a);return c.set({label:t,icon:r,keystroke:n,tooltip:!0}),c.bind("isEnabled").to(s,"isEnabled"),i.listenTo(c,"execute",(function(){o.execute(e),o.editing.view.focus()})),c}))}}]),n}(Ll),Bd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[jd,Ld]}},{key:"pluginName",get:function(){return"Undo"}}]),n}(Ll),Fd=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).attributeKey=r,i}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=t.selection.getAttribute(this.attributeKey),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document.selection,i=t.value;n.change((function(t){if(r.isCollapsed)i?t.setSelectionAttribute(e.attributeKey,i):t.removeSelectionAttribute(e.attributeKey);else{var o,a=l(n.schema.getValidRanges(r.getRanges(),e.attributeKey));try{for(a.s();!(o=a.n()).done;){var s=o.value;i?t.setAttribute(e.attributeKey,i,s):t.removeAttribute(e.attributeKey,s)}}catch(e){a.e(e)}finally{a.f()}}}))}}]),n}(Fl),zd=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("color"),r.set("hasBorder"),r.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035L8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',r.extendTemplate({attributes:{style:{backgroundColor:i.to("color")},class:["ck","ck-color-grid__tile",i.if("hasBorder","ck-color-table__color-tile_bordered")]}}),r}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.iconView.fillColor="hsl(0, 0%, 100%)"}}]),n}(kl);n(47);var Vd=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n),i=t.call(this,e);var o=r&&r.colorDefinitions||[],a={};return r&&r.columns&&(a.gridTemplateColumns="repeat( ".concat(r.columns,", 1fr)")),i.set("selectedColor"),i.items=i.createCollection(),i.focusTracker=new Cc,i.keystrokes=new mc,i._focusCycler=new sl({focusables:i.items,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"arrowleft",focusNext:"arrowright"}}),i.items.on("add",(function(e,t){t.isOn=t.color===i.selectedColor})),o.forEach((function(e){var t=new zd;t.set({color:e.color,label:e.label,tooltip:!0,hasBorder:e.options.hasBorder}),t.on("execute",(function(){i.fire("execute",{value:e.color,hasBorder:e.options.hasBorder,label:e.label})})),i.items.add(t)})),i.setTemplate({tag:"div",children:i.items,attributes:{class:["ck","ck-color-grid"],style:a}}),i.on("change:selectedColor",(function(e,t,n){var r,o=l(i.items);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.isOn=a.color===n}}catch(e){o.e(e)}finally{o.f()}})),i}return m(n,[{key:"focus",value:function(){this.items.length&&this.items.first.focus()}},{key:"focusLast",value:function(){this.items.length&&this.items.last.focus()}},{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this);var t,r=l(this.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.focusTracker.add(i.element)}}catch(e){r.e(e)}finally{r.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}}]),n}(Xc),$d=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).set("isEmpty",!0),r.on("change",(function(){r.set("isEmpty",0===r.length)})),r}return m(n,[{key:"add",value:function(e,t){this.find((function(t){return t.color===e.color}))||s(A(n.prototype),"add",this).call(this,e,t)}},{key:"hasColor",value:function(e){return!!this.find((function(t){return t.color===e}))}}]),n}(cn);sn($d,mr);var Hd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.636 9.531l-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>';n(49);var Ud=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=r.colors,a=r.columns,s=r.removeButtonLabel,c=r.documentColorsLabel,l=r.documentColorsCount;return h(this,n),(i=t.call(this,e)).items=i.createCollection(),i.colorDefinitions=o,i.focusTracker=new Cc,i.keystrokes=new mc,i.set("selectedColor"),i.removeButtonLabel=s,i.columns=a,i.documentColors=new $d,i.documentColorsCount=l,i._focusCycler=new sl({focusables:i.items,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),i._documentColorsLabel=c,i.setTemplate({tag:"div",attributes:{class:["ck","ck-color-table"]},children:i.items}),i.items.add(i._removeColorButton()),i}return m(n,[{key:"updateDocumentColors",value:function(e,t){var n=e.document,r=this.documentColorsCount;this.documentColors.clear();var i,o=l(n.getRootNames());try{for(o.s();!(i=o.n()).done;){var a,s=i.value,c=n.getRoot(s),u=l(e.createRangeIn(c).getItems());try{for(u.s();!(a=u.n()).done;){var d=a.value;if(d.is("$textProxy")&&d.hasAttribute(t)&&(this._addColorToDocumentColors(d.getAttribute(t)),this.documentColors.length>=r))return}}catch(e){u.e(e)}finally{u.f()}}}catch(e){o.e(e)}finally{o.f()}}},{key:"updateSelectedColors",value:function(){var e=this.documentColorsGrid,t=this.staticColorsGrid,n=this.selectedColor;t.selectedColor=n,e&&(e.selectedColor=n)}},{key:"render",value:function(){s(A(n.prototype),"render",this).call(this);var e,t=l(this.items);try{for(t.s();!(e=t.n()).done;){var r=e.value;this.focusTracker.add(r.element)}}catch(e){t.e(e)}finally{t.f()}this.keystrokes.listenTo(this.element)}},{key:"appendGrids",value:function(){if(!this.staticColorsGrid&&(this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount)){var e=Pc.bind(this.documentColors,this.documentColors),t=new tl(this.locale);t.text=this._documentColorsLabel,t.extendTemplate({attributes:{class:["ck","ck-color-grid__label",e.if("isEmpty","ck-hidden")]}}),this.items.add(t),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"_removeColorButton",value:function(){var e=this,t=new kl;return t.set({withText:!0,icon:Hd,tooltip:!0,label:this.removeButtonLabel}),t.class="ck-color-table__remove-color",t.on("execute",(function(){e.fire("execute",{value:null})})),t}},{key:"_createStaticColorsGrid",value:function(){var e=new Vd(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return e.delegate("execute").to(this),e}},{key:"_createDocumentColorsGrid",value:function(){var e=this,t=Pc.bind(this.documentColors,this.documentColors),n=new Vd(this.locale,{columns:this.columns});return n.delegate("execute").to(this),n.extendTemplate({attributes:{class:t.if("isEmpty","ck-hidden")}}),n.items.bindTo(this.documentColors).using((function(t){var n=new zd;return n.set({color:t.color,hasBorder:t.options&&t.options.hasBorder}),t.label&&n.set({label:t.label,tooltip:!0}),n.on("execute",(function(){e.fire("execute",{value:t.color})})),n})),this.documentColors.on("change:isEmpty",(function(e,t,r){r&&(n.selectedColor=null)})),n}},{key:"_addColorToDocumentColors",value:function(e){var t=this.colorDefinitions.find((function(t){return t.color===e}));t?this.documentColors.add(Object.assign({},t)):this.documentColors.add({color:e,label:e,options:{hasBorder:!1}})}}]),n}(Xc),qd="fontSize",Wd="fontFamily",Yd="fontColor",Kd="fontBackgroundColor";function Gd(e,t){var n,r={model:{key:e,values:[]},view:{},upcastAlso:{}},i=l(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;r.model.values.push(o.model),r.view[o.model]=o.view,o.upcastAlso&&(r.upcastAlso[o.model]=o.upcastAlso)}}catch(e){i.e(e)}finally{i.f()}return r}function Qd(e){return function(t){return t.getStyle(e).replace(/\s/g,"")}}function Xd(e){return function(t,n){return n.writer.createAttributeElement("span",{style:"".concat(e,":").concat(t)},{priority:7})}}var Jd=function(e){v(n,e);var t=g(n);function n(e){return h(this,n),t.call(this,e,Kd)}return n}(Fd),Zd=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,ef=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,tf=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,nf=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,rf=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,of=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple","currentcolor","transparent"]);function af(e){return e.startsWith("#")?Zd.test(e):e.startsWith("rgb")?ef.test(e)||tf.test(e):e.startsWith("hsl")?nf.test(e)||rf.test(e):of.has(e.toLowerCase())}var sf=["repeat-x","repeat-y","repeat","space","round","no-repeat"],cf=["center","top","bottom","left","right"];function lf(e){return cf.includes(e)}var uf=["fixed","scroll","local"];function df(e){return uf.includes(e)}var ff=/^url\(/;function hf(e){return ff.test(e)}function pf(e){e.setNormalizer("background",mf),e.setNormalizer("background-color",(function(e){return{path:"background.color",value:e}})),e.setReducer("background",(function(e){var t=[];return t.push(["background-color",e.color]),t}))}function mf(e){var t,n,r={},i=l(function(e){return e.replace(/, /g,",").split(" ").map((function(e){return e.replace(/,/g,", ")}))}(e));try{for(i.s();!(t=i.n()).done;){var o=t.value;n=o,sf.includes(n)?(r.repeat=r.repeat||[],r.repeat.push(o)):lf(o)?(r.position=r.position||[],r.position.push(o)):df(o)?r.attachment=o:af(o)?r.color=o:hf(o)&&(r.image=o)}}catch(e){i.e(e)}finally{i.f()}return{path:"background",value:r}}var vf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define(Kd,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),e.data.addStyleProcessorRules(pf),e.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{"background-color":/[\s\S]+/}},model:{key:Kd,value:Qd("background-color")}}),e.conversion.for("downcast").attributeToElement({model:Kd,view:Xd("background-color")}),e.commands.add(Kd,new Jd(e)),e.model.schema.extend("$text",{allowAttributes:Kd}),e.model.schema.setAttributeProperties(Kd,{isFormatting:!0,copyOnEnter:!0}),r}return m(n,null,[{key:"pluginName",get:function(){return"FontBackgroundColorEditing"}}]),n}(Ll);function gf(e){return"string"==typeof e?{model:e,label:e,hasBorder:!1,view:{name:"span",styles:{color:e}}}:{model:e.color,label:e.label||e.color,hasBorder:void 0!==e.hasBorder&&e.hasBorder,view:{name:"span",styles:{color:""+e.color}}}}var bf=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=r.commandName,a=r.icon,s=r.componentName,c=r.dropdownLabel;return h(this,n),(i=t.call(this,e)).commandName=o,i.componentName=s,i.icon=a,i.dropdownLabel=c,i.columns=e.config.get(i.componentName+".columns"),i.colorTableView=void 0,i}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.locale,r=n.t,i=t.commands.get(this.commandName),o=function(e,t){var n=e.t,r={Black:n("Black"),"Dim grey":n("Dim grey"),Grey:n("Grey"),"Light grey":n("Light grey"),White:n("White"),Red:n("Red"),Orange:n("Orange"),Yellow:n("Yellow"),"Light green":n("Light green"),Green:n("Green"),Aquamarine:n("Aquamarine"),Turquoise:n("Turquoise"),"Light blue":n("Light blue"),Blue:n("Blue"),Purple:n("Purple")};return t.map((function(e){var t=r[e.label];return t&&t!=e.label&&(e.label=t),e}))}(n,t.config.get(this.componentName).colors.map(gf).filter((function(e){return!!e}))),a=t.config.get(this.componentName+".documentColors");t.ui.componentFactory.add(this.componentName,(function(n){var s=El(n);return e.colorTableView=function(e){var t=e.dropdownView,n=e.colors,r=e.columns,i=e.removeButtonLabel,o=e.documentColorsLabel,a=e.documentColorsCount,s=t.locale,c=new Ud(s,{colors:n,columns:r,removeButtonLabel:i,documentColorsLabel:o,documentColorsCount:a});return t.colorTableView=c,t.panelView.children.add(c),c.delegate("execute").to(t,"execute"),c}({dropdownView:s,colors:o.map((function(e){return{label:e.label,color:e.model,options:{hasBorder:e.hasBorder}}})),columns:e.columns,removeButtonLabel:r("Remove color"),documentColorsLabel:0!==a?r("Document colors"):void 0,documentColorsCount:void 0===a?e.columns:a}),e.colorTableView.bind("selectedColor").to(i,"value"),s.buttonView.set({label:e.dropdownLabel,icon:e.icon,tooltip:!0}),s.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),s.bind("isEnabled").to(i),s.on("execute",(function(n,r){t.execute(e.commandName,r),t.editing.view.focus()})),s.on("change:isOpen",(function(n,r,i){s.colorTableView.appendGrids(),i&&(0!==a&&e.colorTableView.updateDocumentColors(t.model,e.componentName),e.colorTableView.updateSelectedColors())})),s}))}}]),n}(Ll),yf=function(e){v(n,e);var t=g(n);function n(e){h(this,n);var r=e.locale.t;return t.call(this,e,{commandName:Kd,componentName:Kd,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8.38 9.262H7.62L10 5.506l2.38 5.756zm.532 1.285L14.34 16h1.426L10.804 4H9.196L4.234 16H5.66l1.428-3.453h5.824z"/></svg>',dropdownLabel:r("Font Background Color")})}return m(n,null,[{key:"pluginName",get:function(){return"FontBackgroundColorUI"}}]),n}(bf),kf=function(e){v(n,e);var t=g(n);function n(e){return h(this,n),t.call(this,e,Yd)}return n}(Fd),wf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define(Yd,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),e.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:Yd,value:Qd("color")}}),e.conversion.for("downcast").attributeToElement({model:Yd,view:Xd("color")}),e.commands.add(Yd,new kf(e)),e.model.schema.extend("$text",{allowAttributes:Yd}),e.model.schema.setAttributeProperties(Yd,{isFormatting:!0,copyOnEnter:!0}),r}return m(n,null,[{key:"pluginName",get:function(){return"FontColorEditing"}}]),n}(Ll),_f=function(e){v(n,e);var t=g(n);function n(e){h(this,n);var r=e.locale.t;return t.call(this,e,{commandName:Yd,componentName:Yd,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3L10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>',dropdownLabel:r("Font Color")})}return m(n,null,[{key:"pluginName",get:function(){return"FontColorUI"}}]),n}(bf),Cf=function(e){v(n,e);var t=g(n);function n(e){return h(this,n),t.call(this,e,Wd)}return n}(Fd);function Af(e){return e.map(xf).filter((function(e){return!!e}))}function xf(e){return"object"==x(e)?e:"default"===e?{title:"Default",model:void 0}:"string"==typeof e?function(e){var t=e.replace(/"|'/g,"").split(","),n=t[0],r=t.map(Sf).join(", ");return{title:n,model:r,view:{name:"span",styles:{"font-family":r},priority:7}}}(e):void 0}function Sf(e){return(e=e.trim()).indexOf(" ")>0&&(e="'".concat(e,"'")),e}var Mf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define(Wd,{options:["default","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"],supportAllValues:!1}),r}return m(n,null,[{key:"pluginName",get:function(){return"FontFamilyEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:Wd}),e.model.schema.setAttributeProperties(Wd,{isFormatting:!0,copyOnEnter:!0});var t=Af(e.config.get("fontFamily.options")).filter((function(e){return e.model})),n=Gd(Wd,t);e.config.get("fontFamily.supportAllValues")?this._prepareAnyValueConverters():e.conversion.attributeToElement(n),e.commands.add(Wd,new Cf(e))}},{key:"_prepareAnyValueConverters",value:function(){var e=this.editor;e.conversion.for("downcast").attributeToElement({model:Wd,view:function(e,t){return t.writer.createAttributeElement("span",{style:"font-family:"+e},{priority:7})}}),e.conversion.for("upcast").attributeToAttribute({model:{key:Wd,value:function(e){return e.getStyle("font-family")}},view:{name:"span",styles:{"font-family":/.*/}}})}}]),n}(Ll),Ef=function e(t,n){h(this,e),n&&ur(this,n),t&&this.set(t)};sn(Ef,mr);var Tf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,r=this._getLocalizedOptions(),i=t.commands.get(Wd);t.ui.componentFactory.add(Wd,(function(o){var a=El(o);return Dl(a,function(e,t){var n,r=new cn,i=l(e);try{var o=function(){var e=n.value,i={type:"button",model:new Ef({commandName:Wd,commandParam:e.model,label:e.title,withText:!0})};i.model.bind("isOn").to(t,"value",(function(t){return t===e.model||!(!t||!e.model)&&t.split(",")[0].replace(/'/g,"").toLowerCase()===e.model.toLowerCase()})),e.view&&e.view.styles&&i.model.set("labelStyle","font-family: "+e.view.styles["font-family"]),r.add(i)};for(i.s();!(n=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}return r}(r,i)),a.buttonView.set({label:n("Font Family"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.03 3h6.149a.75.75 0 1 1 0 1.5h-5.514L11.03 3zm1.27 3h4.879a.75.75 0 1 1 0 1.5h-4.244L12.3 6zm1.27 3h3.609a.75.75 0 1 1 0 1.5h-2.973L13.57 9zm-2.754 2.5L8.038 4.785 5.261 11.5h5.555zm.62 1.5H4.641l-1.666 4.028H1.312l5.789-14h1.875l5.789 14h-1.663L11.436 13z"/></svg>',tooltip:!0}),a.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),a.bind("isEnabled").to(i),e.listenTo(a,"execute",(function(e){t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),a}))}},{key:"_getLocalizedOptions",value:function(){var e=this.editor,t=e.t;return Af(e.config.get(Wd).options).map((function(e){return"Default"===e.title&&(e.title=t("Default")),e}))}}]),n}(Ll),Df=function(e){v(n,e);var t=g(n);function n(e){return h(this,n),t.call(this,e,qd)}return n}(Fd);function Of(e){return e.map((function(e){return function(e){if("object"==x(t=e)&&t.title&&t.model&&t.view)return If(e);var t,n=function(e){return Pf[e]||Pf[e.model]}(e);return n?If(n):"default"===e?{model:void 0,title:"Default"}:function(e){var t;if("object"==x(e)){if(!e.model)throw new Kt.a("font-size-invalid-definition",null,e);t=parseFloat(e.model)}else t=parseFloat(e);return isNaN(t)}(e)?void 0:function(e){return"number"!=typeof e&&"string"!=typeof e||(e={title:String(e),model:parseFloat(e)+"px"}),e.view={name:"span",styles:{"font-size":e.model}},If(e)}(e)}(e)})).filter((function(e){return!!e}))}var Pf={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function If(e){return e.view.priority||(e.view.priority=7),e}var jf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define(qd,{options:["tiny","small","default","big","huge"],supportAllValues:!1}),r}return m(n,null,[{key:"pluginName",get:function(){return"FontSizeEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:qd}),e.model.schema.setAttributeProperties(qd,{isFormatting:!0,copyOnEnter:!0});var t=e.config.get("fontSize.supportAllValues"),n=Of(this.editor.config.get("fontSize.options")).filter((function(e){return e.model})),r=Gd(qd,n);t?this._prepareAnyValueConverters(r):e.conversion.attributeToElement(r),e.commands.add(qd,new Df(e))}},{key:"_prepareAnyValueConverters",value:function(e){var t=this.editor,n=e.model.values.filter((function(e){return!String(e).match(/[\d.]+[\w%]+/)}));if(n.length)throw new Kt.a("font-size-invalid-use-of-named-presets",null,{presets:n});t.conversion.for("downcast").attributeToElement({model:qd,view:function(e,t){var n=t.writer;if(e)return n.createAttributeElement("span",{style:"font-size:"+e},{priority:7})}}),t.conversion.for("upcast").attributeToAttribute({model:{key:qd,value:function(e){return e.getStyle("font-size")}},view:{name:"span"}})}}]),n}(Ll);n(51);var Nf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,r=this._getLocalizedOptions(),i=t.commands.get(qd);t.ui.componentFactory.add(qd,(function(o){var a=El(o);return Dl(a,function(e,t){var n,r=new cn,i=l(e);try{var o=function(){var e=n.value,i={type:"button",model:new Ef({commandName:qd,commandParam:e.model,label:e.title,class:"ck-fontsize-option",withText:!0})};e.view&&e.view.styles&&i.model.set("labelStyle","font-size:"+e.view.styles["font-size"]),e.view&&e.view.classes&&i.model.set("class","".concat(i.model.class," ").concat(e.view.classes)),i.model.bind("isOn").to(t,"value",(function(t){return t===e.model})),r.add(i)};for(i.s();!(n=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}return r}(r,i)),a.buttonView.set({label:n("Font Size"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5L7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279l.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>',tooltip:!0}),a.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),a.bind("isEnabled").to(i),e.listenTo(a,"execute",(function(e){t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),a}))}},{key:"_getLocalizedOptions",value:function(){var e=this.editor,t=e.t,n={Default:t("Default"),Tiny:t("Tiny"),Small:t("Small"),Big:t("Big"),Huge:t("Huge")};return Of(e.config.get(qd).options).map((function(e){var t=n[e.title];return t&&t!=e.title&&(e=Object.assign({},e,{title:t})),e}))}}]),n}(Ll),Rf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=Vl(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&Lf(t,e.schema)}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document;t.change((function(r){var i,o=l((e.selection||n.selection).getSelectedBlocks());try{for(o.s();!(i=o.n()).done;){var a=i.value;!a.is("element","paragraph")&&Lf(a,t.schema)&&r.rename(a,"paragraph")}}catch(e){o.e(e)}finally{o.f()}}))}}]),n}(Fl);function Lf(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}var Bf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(e){var t=this.editor.model,n=e.position;t.change((function(e){var r=e.createElement("paragraph");if(!t.schema.checkChild(n.parent,r)){var i=t.schema.findAllowedParent(n,r);if(!i)return;n=e.split(n,i).position}t.insertContent(r,n),e.setSelection(r,"in")}))}}]),n}(Fl),Ff=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model;e.commands.add("paragraph",new Rf(e)),e.commands.add("insertParagraph",new Bf(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:function(e,t){var r=t.writer;return n.paragraphLikeElements.has(e.name)?e.isEmpty?null:r.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}],[{key:"pluginName",get:function(){return"Paragraph"}}]),n}(Ll);Ff.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var zf=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).modelElements=r,i}return m(n,[{key:"refresh",value:function(){var e=this,t=Vl(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((function(n){return Vf(t,n,e.editor.model.schema)}))}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document,r=e.value;t.change((function(e){var i,o=l(Array.from(n.selection.getSelectedBlocks()).filter((function(e){return Vf(e,r,t.schema)})));try{for(o.s();!(i=o.n()).done;){var a=i.value;a.is("element",r)||e.rename(a,r)}}catch(e){o.e(e)}finally{o.f()}}))}}]),n}(Fl);function Vf(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}var $f="paragraph",Hf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]}),r}return m(n,null,[{key:"pluginName",get:function(){return"HeadingEditing"}}]),m(n,[{key:"init",value:function(){var e,t=this.editor,n=[],r=l(t.config.get("heading.options"));try{for(r.s();!(e=r.n()).done;){var i=e.value;i.model!==$f&&(t.model.schema.register(i.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(i),n.push(i.model))}}catch(e){r.e(e)}finally{r.f()}this._addDefaultH1Conversion(t),t.commands.add("heading",new zf(t,n))}},{key:"afterInit",value:function(){var e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(function(t,r){var i=e.model.document.selection.getFirstPosition().parent;n.some((function(e){return i.is("element",e.model)}))&&!i.is("element",$f)&&0===i.childCount&&r.writer.rename(i,$f)}))}},{key:"_addDefaultH1Conversion",value:function(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Yt.get("low")+1})}}],[{key:"requires",get:function(){return[Ff]}}]),n}(Ll);n(13);var Uf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,r=function(e){var t=e.t,n={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map((function(e){var t=n[e.title];return t&&t!=e.title&&(e.title=t),e}))}(t),i=n("Choose heading"),o=n("Heading");t.ui.componentFactory.add("heading",(function(n){var a,s={},c=new cn,u=t.commands.get("heading"),d=t.commands.get("paragraph"),f=[u],h=l(r);try{var p=function(){var e=a.value,t={type:"button",model:new Ef({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(d,"value"),t.model.set("commandName","paragraph"),f.push(d)):(t.model.bind("isOn").to(u,"value",(function(t){return t===e.model})),t.model.set({commandName:"heading",commandValue:e.model})),c.add(t),s[e.model]=e.title};for(h.s();!(a=h.n()).done;)p()}catch(e){h.e(e)}finally{h.f()}var m=El(n);return Dl(m,c),m.buttonView.set({isOn:!1,withText:!0,tooltip:o}),m.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),m.bind("isEnabled").toMany(f,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),m.buttonView.bind("label").to(u,"value",d,"value",(function(e,t){var n=e||t&&"paragraph";return s[n]?s[n]:i})),e.listenTo(m,"execute",(function(e){t.execute(e.source.commandName,e.source.commandValue?{value:e.source.commandValue}:void 0),t.editing.view.focus()})),m}))}}]),n}(Ll),qf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=t.selection.getAttribute("highlight"),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"highlight")}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document.selection,i=t.value;n.change((function(t){var o=n.schema.getValidRanges(r.getRanges(),"highlight");if(r.isCollapsed){var a=r.getFirstPosition();if(r.hasAttribute("highlight")){var s=function(t){return t.item.hasAttribute("highlight")&&t.item.getAttribute("highlight")===e.value},c=a.getLastMatchingPosition(s,{direction:"backward"}),u=a.getLastMatchingPosition(s),d=t.createRange(c,u);i&&e.value!==i?(t.setAttribute("highlight",i,d),t.setSelectionAttribute("highlight",i)):(t.removeAttribute("highlight",d),t.removeSelectionAttribute("highlight"))}else i&&t.setSelectionAttribute("highlight",i)}else{var f,h=l(o);try{for(h.s();!(f=h.n()).done;){var p=f.value;i?t.setAttribute("highlight",i,p):t.removeAttribute("highlight",p)}}catch(e){h.e(e)}finally{h.f()}}}))}}]),n}(Fl),Wf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("highlight",{options:[{model:"yellowMarker",class:"marker-yellow",title:"Yellow marker",color:"var(--ck-highlight-marker-yellow)",type:"marker"},{model:"greenMarker",class:"marker-green",title:"Green marker",color:"var(--ck-highlight-marker-green)",type:"marker"},{model:"pinkMarker",class:"marker-pink",title:"Pink marker",color:"var(--ck-highlight-marker-pink)",type:"marker"},{model:"blueMarker",class:"marker-blue",title:"Blue marker",color:"var(--ck-highlight-marker-blue)",type:"marker"},{model:"redPen",class:"pen-red",title:"Red pen",color:"var(--ck-highlight-pen-red)",type:"pen"},{model:"greenPen",class:"pen-green",title:"Green pen",color:"var(--ck-highlight-pen-green)",type:"pen"}]}),r}return m(n,null,[{key:"pluginName",get:function(){return"HighlightEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"highlight"});var t=e.config.get("highlight.options");e.conversion.attributeToElement(function(e){var t,n={model:{key:"highlight",values:[]},view:{}},r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.model.values.push(i.model),n.view[i.model]={name:"mark",classes:i.class}}}catch(e){r.e(e)}finally{r.f()}return n}(t)),e.commands.add("highlight",new qf(e))}}]),n}(Ll);n(54);var Yf=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("icon"),r.set("isEnabled",!0),r.set("isOn",!1),r.set("isToggleable",!1),r.set("isVisible",!0),r.set("keystroke"),r.set("label"),r.set("tabindex",-1),r.set("tooltip"),r.set("tooltipPosition","s"),r.set("type","button"),r.set("withText",!1),r.children=r.createCollection(),r.actionView=r._createActionView(),r.arrowView=r._createArrowView(),r.keystrokes=new mc,r.focusTracker=new Cc,r.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",i.if("isVisible","ck-hidden",(function(e){return!e})),r.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:r.children}),r}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(function(t,n){e.focusTracker.focusedElement===e.actionView.element&&(e.arrowView.focus(),n())})),this.keystrokes.set("arrowleft",(function(t,n){e.focusTracker.focusedElement===e.arrowView.element&&(e.actionView.focus(),n())}))}},{key:"focus",value:function(){this.actionView.focus()}},{key:"_createActionView",value:function(){var e=new kl;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}},{key:"_createArrowView",value:function(){var e=new kl,t=e.bindTemplate;return e.icon=wl,e.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":t.to("isOn",(function(e){return String(e)}))}}),e.bind("isEnabled").to(this),e.delegate("execute").to(this,"open"),e}}]),n}(Xc);n(56);var Kf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e,t=this.editor.config.get("highlight.options"),n=l(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._addHighlighterButton(r)}}catch(e){n.e(e)}finally{n.f()}this._addRemoveHighlightButton(),this._addDropdown(t)}},{key:"_addRemoveHighlightButton",value:function(){var e=this.editor.t;this._addButton("removeHighlight",e("Remove highlight"),Hd)}},{key:"_addHighlighterButton",value:function(e){var t=this.editor.commands.get("highlight");this._addButton("highlight:"+e.model,e.title,Gf(e.type),e.model,(function(n){n.bind("isEnabled").to(t,"isEnabled"),n.bind("isOn").to(t,"value",(function(t){return t===e.model})),n.iconView.fillColor=e.color,n.isToggleable=!0}))}},{key:"_addButton",value:function(e,t,n,r){var i=this,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},a=this.editor;a.ui.componentFactory.add(e,(function(e){var s=new kl(e),c=i.localizedOptionTitles[t]?i.localizedOptionTitles[t]:t;return s.set({label:c,icon:n,tooltip:!0}),s.on("execute",(function(){a.execute("highlight",{value:r}),a.editing.view.focus()})),o(s),s}))}},{key:"_addDropdown",value:function(e){var t=this,n=this.editor,r=n.t,i=n.ui.componentFactory,o=e[0],a=e.reduce((function(e,t){return e[t.model]=t,e}),{});i.add("highlight",(function(s){var c=n.commands.get("highlight"),l=El(s,Yf),u=l.buttonView;u.set({tooltip:r("Highlight"),lastExecuted:o.model,commandValue:o.model,isToggleable:!0}),u.bind("icon").to(c,"value",(function(e){return Gf(f(e,"type"))})),u.bind("color").to(c,"value",(function(e){return f(e,"color")})),u.bind("commandValue").to(c,"value",(function(e){return f(e,"model")})),u.bind("isOn").to(c,"value",(function(e){return!!e})),u.delegate("execute").to(l);var d=e.map((function(e){var n=i.create("highlight:"+e.model);return t.listenTo(n,"execute",(function(){return l.buttonView.set({lastExecuted:e.model})})),n}));function f(e,t){var n=e&&e!==u.lastExecuted?e:u.lastExecuted;return a[n][t]}return l.bind("isEnabled").toMany(d,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),d.push(new ll),d.push(i.create("removeHighlight")),Tl(l,d),function(e){e.buttonView.actionView.iconView.bind("fillColor").to(e.buttonView,"color")}(l),l.toolbarView.ariaLabel=r("Text highlight toolbar"),u.on("execute",(function(){n.execute("highlight",{value:u.commandValue}),n.editing.view.focus()})),l}))}},{key:"localizedOptionTitles",get:function(){var e=this.editor.t;return{"Yellow marker":e("Yellow marker"),"Green marker":e("Green marker"),"Pink marker":e("Pink marker"),"Blue marker":e("Blue marker"),"Red pen":e("Red pen"),"Green pen":e("Green pen")}}}],[{key:"pluginName",get:function(){return"HighlightUI"}}]),n}(Ll);function Gf(e){return"marker"===e?'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.798 1.59L3.002 12.875l1.895 1.852 2.521 1.402 6.997-12.194z"/><path d="M2.556 16.727l.234-.348c-.297-.151-.462-.293-.498-.426-.036-.137.002-.416.115-.837.094-.25.15-.449.169-.595a4.495 4.495 0 0 0 0-.725c-.209-.621-.303-1.041-.284-1.26.02-.218.178-.506.475-.862l6.77-9.414c.539-.91 1.605-.85 3.199.18 1.594 1.032 2.188 1.928 1.784 2.686l-5.877 10.36c-.158.412-.333.673-.526.782-.193.108-.604.179-1.232.21-.362.131-.608.237-.738.318-.13.081-.305.238-.526.47-.293.265-.504.397-.632.397-.096 0-.27-.075-.524-.226l-.31.41-1.6-1.12zm-.279.415l1.575 1.103-.392.515H1.19l1.087-1.618zm8.1-13.656l-4.953 6.9L8.75 12.57l4.247-7.574c.175-.25-.188-.647-1.092-1.192-.903-.546-1.412-.652-1.528-.32zM8.244 18.5L9.59 17h9.406v1.5H8.245z"/></svg>':'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.126 2.268L2.002 13.874l1.895 1.852 2.521 1.402L14.47 5.481l-1.543-2.568-2.801-.645z"/><path d="M4.5 18.088l-2.645-1.852-.04-2.95-.006-.005.006-.008v-.025l.011.008L8.73 2.97c.165-.233.356-.417.567-.557l-1.212.308L4.604 7.9l-.83-.558 3.694-5.495 2.708-.69 1.65 1.145.046.018.85-1.216 2.16 1.512-.856 1.222c.828.967 1.144 2.141.432 3.158L7.55 17.286l.006.005-3.055.797H4.5zm-.634.166l-1.976.516-.026-1.918 2.002 1.402zM9.968 3.817l-.006-.004-6.123 9.184 3.277 2.294 6.108-9.162.005.003c.317-.452-.16-1.332-1.064-1.966-.891-.624-1.865-.776-2.197-.349zM8.245 18.5L9.59 17h9.406v1.5H8.245z"/></svg>'}var Qf=function(){function e(){h(this,e),this._stack=[]}return m(e,[{key:"add",value:function(e,t){var n=this._stack,r=n[0];this._insertDescriptor(e);var i=n[0];r===i||Xf(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:t})}},{key:"remove",value:function(e,t){var n=this._stack,r=n[0];this._removeDescriptor(e);var i=n[0];r===i||Xf(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:t})}},{key:"_insertDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e.id}));if(!Xf(e,t[n])){n>-1&&t.splice(n,1);for(var r=0;t[r]&&Jf(t[r],e);)r++;t.splice(r,0,e)}}},{key:"_removeDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e}));n>-1&&t.splice(n,1)}}]),e}();function Xf(e,t){return e&&t&&e.priority==t.priority&&Zf(e.classes)==Zf(t.classes)}function Jf(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&Zf(e.classes)>Zf(t.classes)}function Zf(e){return Array.isArray(e)?e.sort().join(","):e}sn(Qf,Xt),n(58);var eh=il("px"),th=Pi.document.body,nh=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("top",0),r.set("left",0),r.set("position","arrow_nw"),r.set("isVisible",!1),r.set("withArrow",!0),r.set("class"),r.content=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",i.to("position",(function(e){return"ck-balloon-panel_"+e})),i.if("isVisible","ck-balloon-panel_visible"),i.if("withArrow","ck-balloon-panel_with-arrow"),i.to("class")],style:{top:i.to("top",eh),left:i.to("left",eh)}},children:r.content}),r}return m(n,[{key:"show",value:function(){this.isVisible=!0}},{key:"hide",value:function(){this.isVisible=!1}},{key:"attachTo",value:function(e){this.show();var t=n.defaultPositions,r=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast],limiter:th,fitInViewport:!0},e),i=n._getOptimalPosition(r),o=parseInt(i.left),a=parseInt(i.top),s=i.name;Object.assign(this,{top:a,left:o,position:s})}},{key:"pin",value:function(e){var t=this;this.unpin(),this._pinWhenIsVisibleCallback=function(){t.isVisible?t._startPinning(e):t._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}},{key:"unpin",value:function(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}},{key:"_startPinning",value:function(e){var t=this;this.attachTo(e);var n=rh(e.target),r=e.limiter?rh(e.limiter):th;this.listenTo(Pi.document,"scroll",(function(i,o){var a=o.target,s=n&&a.contains(n),c=r&&a.contains(r);!s&&!c&&n&&r||t.attachTo(e)}),{useCapture:!0}),this.listenTo(Pi.window,"resize",(function(){t.attachTo(e)}))}},{key:"_stopPinning",value:function(){this.stopListening(Pi.document,"scroll"),this.stopListening(Pi.window,"resize")}}]),n}(Xc);function rh(e){return zt(e)?e:Eo(e)?e.commonAncestorContainer:"function"==typeof e?rh(e()):null}function ih(e,t){return e.top-t.height-nh.arrowVerticalOffset}function oh(e){return e.bottom+nh.arrowVerticalOffset}nh.arrowHorizontalOffset=25,nh.arrowVerticalOffset=10,nh._getOptimalPosition=hl,nh.defaultPositions={northWestArrowSouthWest:function(e,t){return{top:ih(e,t),left:e.left-nh.arrowHorizontalOffset,name:"arrow_sw"}},northWestArrowSouthMiddleWest:function(e,t){return{top:ih(e,t),left:e.left-.25*t.width-nh.arrowHorizontalOffset,name:"arrow_smw"}},northWestArrowSouth:function(e,t){return{top:ih(e,t),left:e.left-t.width/2,name:"arrow_s"}},northWestArrowSouthMiddleEast:function(e,t){return{top:ih(e,t),left:e.left-.75*t.width+nh.arrowHorizontalOffset,name:"arrow_sme"}},northWestArrowSouthEast:function(e,t){return{top:ih(e,t),left:e.left-t.width+nh.arrowHorizontalOffset,name:"arrow_se"}},northArrowSouthWest:function(e,t){return{top:ih(e,t),left:e.left+e.width/2-nh.arrowHorizontalOffset,name:"arrow_sw"}},northArrowSouthMiddleWest:function(e,t){return{top:ih(e,t),left:e.left+e.width/2-.25*t.width-nh.arrowHorizontalOffset,name:"arrow_smw"}},northArrowSouth:function(e,t){return{top:ih(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s"}},northArrowSouthMiddleEast:function(e,t){return{top:ih(e,t),left:e.left+e.width/2-.75*t.width+nh.arrowHorizontalOffset,name:"arrow_sme"}},northArrowSouthEast:function(e,t){return{top:ih(e,t),left:e.left+e.width/2-t.width+nh.arrowHorizontalOffset,name:"arrow_se"}},northEastArrowSouthWest:function(e,t){return{top:ih(e,t),left:e.right-nh.arrowHorizontalOffset,name:"arrow_sw"}},northEastArrowSouthMiddleWest:function(e,t){return{top:ih(e,t),left:e.right-.25*t.width-nh.arrowHorizontalOffset,name:"arrow_smw"}},northEastArrowSouth:function(e,t){return{top:ih(e,t),left:e.right-t.width/2,name:"arrow_s"}},northEastArrowSouthMiddleEast:function(e,t){return{top:ih(e,t),left:e.right-.75*t.width+nh.arrowHorizontalOffset,name:"arrow_sme"}},northEastArrowSouthEast:function(e,t){return{top:ih(e,t),left:e.right-t.width+nh.arrowHorizontalOffset,name:"arrow_se"}},southWestArrowNorthWest:function(e,t){return{top:oh(e),left:e.left-nh.arrowHorizontalOffset,name:"arrow_nw"}},southWestArrowNorthMiddleWest:function(e,t){return{top:oh(e),left:e.left-.25*t.width-nh.arrowHorizontalOffset,name:"arrow_nmw"}},southWestArrowNorth:function(e,t){return{top:oh(e),left:e.left-t.width/2,name:"arrow_n"}},southWestArrowNorthMiddleEast:function(e,t){return{top:oh(e),left:e.left-.75*t.width+nh.arrowHorizontalOffset,name:"arrow_nme"}},southWestArrowNorthEast:function(e,t){return{top:oh(e),left:e.left-t.width+nh.arrowHorizontalOffset,name:"arrow_ne"}},southArrowNorthWest:function(e,t){return{top:oh(e),left:e.left+e.width/2-nh.arrowHorizontalOffset,name:"arrow_nw"}},southArrowNorthMiddleWest:function(e,t){return{top:oh(e),left:e.left+e.width/2-.25*t.width-nh.arrowHorizontalOffset,name:"arrow_nmw"}},southArrowNorth:function(e,t){return{top:oh(e),left:e.left+e.width/2-t.width/2,name:"arrow_n"}},southArrowNorthMiddleEast:function(e,t){return{top:oh(e),left:e.left+e.width/2-.75*t.width+nh.arrowHorizontalOffset,name:"arrow_nme"}},southArrowNorthEast:function(e,t){return{top:oh(e),left:e.left+e.width/2-t.width+nh.arrowHorizontalOffset,name:"arrow_ne"}},southEastArrowNorthWest:function(e,t){return{top:oh(e),left:e.right-nh.arrowHorizontalOffset,name:"arrow_nw"}},southEastArrowNorthMiddleWest:function(e,t){return{top:oh(e),left:e.right-.25*t.width-nh.arrowHorizontalOffset,name:"arrow_nmw"}},southEastArrowNorth:function(e,t){return{top:oh(e),left:e.right-t.width/2,name:"arrow_n"}},southEastArrowNorthMiddleEast:function(e,t){return{top:oh(e),left:e.right-.75*t.width+nh.arrowHorizontalOffset,name:"arrow_nme"}},southEastArrowNorthEast:function(e,t){return{top:oh(e),left:e.right-t.width+nh.arrowHorizontalOffset,name:"arrow_ne"}}};var ah='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',sh="widget-type-around";function ch(e,t,n){return e&&dh(e)&&!n.isInline(t)}function lh(e){return e.getAttribute(sh)}var uh="ck-widget_selected";function dh(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function fh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.is("containerElement"))throw new Kt.a("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=bh,n.label&&function(e,t,n){n.setCustomProperty("widgetLabel",t,e)}(e,n.label,t),n.hasSelectionHandle&&function(e,t){var n=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){var t=this.toDomElement(e),n=new bl;return n.set("content",ah),n.render(),t.appendChild(n.element),t}));t.insert(t.createPositionAt(e,0),n),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),hh(e,t,(function(e,t,n){return n.addClass(r(t.classes),e)}),(function(e,t,n){return n.removeClass(r(t.classes),e)})),e;function r(e){return Array.isArray(e)?e:[e]}}function hh(e,t,n,r){var i=new Qf;i.on("change:top",(function(t,i){i.oldDescriptor&&r(e,i.oldDescriptor,i.writer),i.newDescriptor&&n(e,i.newDescriptor,i.writer)})),t.setCustomProperty("addHighlight",(function(e,t,n){return i.add(t,n)}),e),t.setCustomProperty("removeHighlight",(function(e,t,n){return i.remove(t,n)}),e)}function ph(e){var t=e.getCustomProperty("widgetLabel");return t?"function"==typeof t?t():t:""}function mh(e,t){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(function(n,r,i){t.setAttribute("contenteditable",i?"false":"true",e)})),e.on("change:isFocused",(function(n,r,i){i?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),e}function vh(e,t){var n=e.getSelectedElement();if(n){var r=lh(e);if(r)return t.createPositionAt(n,r);if(t.schema.isBlock(n))return t.createPositionAfter(n)}var i=e.getSelectedBlocks().next().value;if(i){if(i.isEmpty)return t.createPositionAt(i,0);var o=t.createPositionAfter(i);return e.focus.isTouching(o)?o:t.createPositionBefore(i)}return e.focus}function gh(e,t){var n=new Oo(Pi.window),r=n.getIntersection(e),i=t.height+nh.arrowVerticalOffset;if(e.top-i>n.top||e.bottom+i<n.bottom)return null;var o=r||e,a=o.left+o.width/2-t.width/2;return{top:Math.max(e.top,0)+nh.arrowVerticalOffset,left:a,name:"arrow_n"}}function bh(){return null}var yh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){this.isEnabled=function(e){var t=e.schema,n=e.document.selection;return function(e,t,n){var r=function(e,t){var n=vh(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(r,"horizontalLine")}(n,t,e)&&!function(e,t){var n=e.getSelectedElement();return n&&t.isObject(n)}(n,t)}(this.editor.model)}},{key:"execute",value:function(){var e=this.editor.model;e.change((function(t){var n=t.createElement("horizontalLine");e.insertContent(n);var r=n.nextSibling;!(r&&e.schema.checkChild(r,"$text"))&&e.schema.checkChild(n.parent,"paragraph")&&(r=t.createElement("paragraph"),e.insertContent(r,t.createPositionAfter(n))),r&&t.setSelection(r,0)}))}}]),n}(Fl);n(60);var kh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,r=e.conversion;t.register("horizontalLine",{isObject:!0,allowWhere:"$block"}),r.for("dataDowncast").elementToElement({model:"horizontalLine",view:function(e,t){return t.writer.createEmptyElement("hr")}}),r.for("editingDowncast").elementToElement({model:"horizontalLine",view:function(e,t){var r=t.writer,i=n("Horizontal line"),o=r.createContainerElement("div"),a=r.createEmptyElement("hr");return r.addClass("ck-horizontal-line",o),r.setCustomProperty("hr",!0,o),r.insert(r.createPositionAt(o,0),a),function(e,t,n){return t.setCustomProperty("horizontalLine",!0,e),fh(e,t,{label:n})}(o,r,i)}}),r.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),e.commands.add("horizontalLine",new yh(e))}}],[{key:"pluginName",get:function(){return"HorizontalLineEditing"}}]),n}(Ll),wh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("horizontalLine",(function(r){var i=t.commands.get("horizontalLine"),o=new kl(r);return o.set({label:n("Horizontal line"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),e.listenTo(o,"execute",(function(){t.execute("horizontalLine"),t.editing.view.focus()})),o}))}}]),n}(Ll),_h=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"observe",value:function(e){var t=this;this.listenTo(e,"load",(function(e,n){var r=n.target;t.checkShouldIgnoreEventFromTarget(r)||"IMG"==r.tagName&&t._fireEvents(n)}),{useCapture:!0})}},{key:"_fireEvents",value:function(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}]),n}(Ui);function Ch(e){return!!e.getCustomProperty("image")&&dh(e)}function Ah(e){var t=e.getSelectedElement();return t&&Ch(t)?t:null}function xh(e){return!!e&&e.is("element","image")}function Sh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.createElement("image",n),i=vh(t.document.selection,t);t.insertContent(r,i),r.parent&&e.setSelection(r,"on")}function Mh(e){var t=e.schema,n=e.document.selection;return function(e,t,n){var r=function(e,t){var n=vh(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(r,"image")}(n,t,e)&&!function(e,t){var n=e.getSelectedElement();return n&&t.isObject(n)}(n,t)&&function(e){return u(e.focus.getAncestors()).every((function(e){return!e.is("element","image")}))}(n)}function Eh(e){var t,n=[],r=l(e.getChildren());try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i),i.is("element")&&n.push.apply(n,u(i.getChildren()))}}catch(e){r.e(e)}finally{r.f()}return n.find((function(e){return e.is("element","img")}))}function Th(e){return function(n){n.on("attribute:".concat(e,":image"),t)};function t(e,t,n){if(n.consumable.consume(t.item,e.name)){var r=n.writer,i=Eh(n.mapper.toViewElement(t.item));r.setAttribute(t.attributeKey,t.attributeNewValue||"",i)}}}var Dh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){this.isEnabled=Mh(this.editor.model)}},{key:"execute",value:function(e){var t=this.editor.model;t.change((function(n){var r,i=l(Array.isArray(e.source)?e.source:[e.source]);try{for(i.s();!(r=i.n()).done;){var o=r.value;Sh(n,t,{src:o})}}catch(e){i.e(e)}finally{i.f()}}))}}]),n}(Fl),Oh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,r=e.conversion;e.editing.view.addObserver(_h),t.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),r.for("dataDowncast").elementToElement({model:"image",view:function(e,t){return Ph(t.writer)}}),r.for("editingDowncast").elementToElement({model:"image",view:function(e,t){var r=t.writer;return function(e,t,n){return t.setCustomProperty("image",!0,e),fh(e,t,{label:function(){var t=Eh(e).getAttribute("alt");return t?"".concat(t," ").concat(n):n}})}(Ph(r),r,n("image widget"))}}),r.for("downcast").add(Th("src")).add(Th("alt")).add(function(){return function(t){t.on("attribute:srcset:image",e)};function e(e,t,n){if(n.consumable.consume(t.item,e.name)){var r=n.writer,i=Eh(n.mapper.toViewElement(t.item));if(null===t.attributeNewValue){var o=t.attributeOldValue;o.data&&(r.removeAttribute("srcset",i),r.removeAttribute("sizes",i),o.width&&r.removeAttribute("width",i))}else{var a=t.attributeNewValue;a.data&&(r.setAttribute("srcset",a.data,i),r.setAttribute("sizes","100vw",i),a.width&&r.setAttribute("width",a.width,i))}}}}()),r.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:function(e,t){return t.writer.createElement("image",{src:e.getAttribute("src")})}}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:function(e){var t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}}).add(function(){return function(t){t.on("element:figure",e)};function e(e,t,n){if(n.consumable.test(t.viewItem,{name:!0,classes:"image"})){var r=Eh(t.viewItem);if(r&&r.hasAttribute("src")&&n.consumable.test(r,{name:!0})){var i=Vl(n.convertItem(r,t.modelCursor).modelRange.getItems());i&&(n.convertChildren(t.viewItem,i),n.updateConversionResult(i,t))}}}}()),e.commands.add("imageInsert",new Dh(e))}}],[{key:"pluginName",get:function(){return"ImageEditing"}}]),n}(Ll);function Ph(e){var t=e.createEmptyElement("img"),n=e.createContainerElement("figure",{class:"image"});return e.insert(e.createPositionAt(n,0),t),n}var Ih=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType="mousedown",r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo);n(62);var jh=["before","after"],Nh=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038M1 4.178l2 2.038"/></svg>',"image/svg+xml").firstChild,Rh="ck-widget__type-around_disabled",Lh=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._currentFakeCaretModelElement=null,r}return m(n,null,[{key:"pluginName",get:function(){return"WidgetTypeAround"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view;this.on("change:isEnabled",(function(n,r,i){t.change((function(e){var n,r=l(t.document.roots);try{for(r.s();!(n=r.n()).done;){var o=n.value;i?e.removeClass(Rh,o):e.addClass(Rh,o)}}catch(e){r.e(e)}finally{r.f()}})),i||e.model.change((function(e){e.removeSelectionAttribute(sh)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration()}},{key:"destroy",value:function(){this._currentFakeCaretModelElement=null}},{key:"_insertParagraph",value:function(e,t){var n=this.editor,r=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(e,t)}),r.focus(),r.scrollToTheSelection()}},{key:"_listenToIfEnabled",value:function(e,t,n,r){var i=this;this.listenTo(e,t,(function(){i.isEnabled&&n.apply(void 0,arguments)}),r)}},{key:"_insertParagraphAccordingToFakeCaretPosition",value:function(){var e=this.editor.model.document.selection,t=lh(e);if(!t)return!1;var n=e.getSelectedElement();return this._insertParagraph(n,t),!0}},{key:"_enableTypeAroundUIInjection",value:function(){var e=this.editor,t=e.model.schema,n=e.locale.t,r={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(function(e,n,i){var o=i.mapper.toViewElement(n.item);ch(o,n.item,t)&&function(e,t,n){var r=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){var n=this.toDomElement(e);return function(e,t){var n,r=l(jh);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=new Pc({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+i],title:t[i]},children:[e.ownerDocument.importNode(Nh,!0)]});e.appendChild(o.render())}}catch(e){r.e(e)}finally{r.f()}}(n,t),function(e){var t=new Pc({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(n),n}));e.insert(e.createPositionAt(n,"end"),r)}(i.writer,r,o)}),{priority:"low"})}},{key:"_enableTypeAroundFakeCaretActivationUsingKeyboardArrows",value:function(){var e=this,t=this.editor,n=t.model,r=n.document.selection,i=n.schema,o=t.editing.view;function a(e){return"ck-widget_type-around_show-fake-caret_"+e}this._listenToIfEnabled(o.document,"keydown",(function(t,n){Kr(n.keyCode)&&e._handleArrowKeyPress(t,n)}),{priority:Yt.get("high")+10}),this._listenToIfEnabled(r,"change:range",(function(e,n){n.directChange&&t.model.change((function(e){e.removeSelectionAttribute(sh)}))})),this._listenToIfEnabled(n.document,"change:data",(function(){var e=r.getSelectedElement();e&&ch(t.editing.mapper.toViewElement(e),e,i)||t.model.change((function(e){e.removeSelectionAttribute(sh)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(function(t,n,r){var o=r.writer;if(e._currentFakeCaretModelElement){var s=r.mapper.toViewElement(e._currentFakeCaretModelElement);s&&(o.removeClass(jh.map(a),s),e._currentFakeCaretModelElement=null)}var c=n.selection.getSelectedElement();if(c){var l=r.mapper.toViewElement(c);if(ch(l,c,i)){var u=lh(n.selection);u&&(o.addClass(a(u),l),e._currentFakeCaretModelElement=c)}}})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(function(e,n,r){r||t.model.change((function(e){e.removeSelectionAttribute(sh)}))}))}},{key:"_handleArrowKeyPress",value:function(e,t){var n,r=this.editor,i=r.model,o=i.document.selection,a=i.schema,s=r.editing.view,c=Qr(t.keyCode,r.locale.contentLanguageDirection),l=s.document.selection.getSelectedElement();ch(l,r.editing.mapper.toModelElement(l),a)?n=this._handleArrowKeyPressOnSelectedWidget(c):o.isCollapsed&&(n=this._handleArrowKeyPressWhenSelectionNextToAWidget(c)),n&&(t.preventDefault(),e.stop())}},{key:"_handleArrowKeyPressOnSelectedWidget",value:function(e){var t=this.editor.model,n=lh(t.document.selection);return t.change((function(t){return n?n!==(e?"after":"before")&&(t.removeSelectionAttribute(sh),!0):(t.setSelectionAttribute(sh,e?"after":"before"),!0)}))}},{key:"_handleArrowKeyPressWhenSelectionNextToAWidget",value:function(e){var t=this.editor,n=t.model,r=n.schema,i=t.plugins.get("Widget"),o=i._getObjectElementNextToSelection(e);return!!ch(t.editing.mapper.toViewElement(o),o,r)&&(n.change((function(t){i._setSelectionOverElement(o),t.setSelectionAttribute(sh,e?"before":"after")})),!0)}},{key:"_enableInsertingParagraphsOnButtonClick",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"mousedown",(function(r,i){var o=i.domTarget.closest(".ck-widget__type-around__button");if(o){var a=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(o),s=function(e,t){var n=e.closest(".ck-widget");return t.mapDomToView(n)}(o,n.domConverter),c=t.editing.mapper.toModelElement(s);e._insertParagraph(c,a),i.preventDefault(),r.stop()}}))}},{key:"_enableInsertingParagraphsOnEnterKeypress",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",(function(r,i){var o,a=n.document.selection.getSelectedElement(),s=t.editing.mapper.toModelElement(a),c=t.model.schema;e._insertParagraphAccordingToFakeCaretPosition()?o=!0:ch(a,s,c)&&(e._insertParagraph(s,i.isSoft?"before":"after"),o=!0),o&&(i.preventDefault(),r.stop())}))}},{key:"_enableInsertingParagraphsOnTypingKeystroke",value:function(){var e=this,t=this.editor.editing.view,n=[Ur.enter,Ur.delete,Ur.backspace];this._listenToIfEnabled(t.document,"keydown",(function(t,r){n.includes(r.keyCode)||sd(r)||e._insertParagraphAccordingToFakeCaretPosition()}),{priority:Yt.get("high")+1})}},{key:"_enableDeleteIntegration",value:function(){var e=this.editor,t=e.editing.view,n=e.model,r=n.schema;this._listenToIfEnabled(t.document,"delete",(function(t,i){var o=lh(n.document.selection);if(o){var a=i.direction,s=n.document.selection.getSelectedElement(),c="forward"==a;if("before"===o===c)e.execute("delete",{selection:n.createSelection(s,"on")});else{var u=r.getNearestSelectionRange(n.createPositionAt(s,o),a);if(u)if(u.isCollapsed){var d=n.createSelection(u.start);if(n.modifySelection(d,{direction:a}),d.focus.isEqual(u.start)){var f=function(e,t){var n,r=t,i=l(t.getAncestors({parentFirst:!0}));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.childCount>1||e.isLimit(o))break;r=o}}catch(e){i.e(e)}finally{i.f()}return r}(r,u.start.parent);n.deleteContent(n.createSelection(f,"on"),{doNotAutoparagraph:!0})}else n.change((function(t){t.setSelection(u),e.execute(c?"forwardDelete":"delete")}))}else n.change((function(t){t.setSelection(u),e.execute(c?"forwardDelete":"delete")}))}i.preventDefault(),t.stop()}}),{priority:Yt.get("high")+1})}},{key:"_enableInsertContentIntegration",value:function(){var e=this.editor,t=this.editor.model,n=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(function(e,r){var i=c(r,2),o=i[0],a=i[1];if(!a||a.is("documentSelection")){var s=lh(n);return s?(e.stop(),t.change((function(e){var r=n.getSelectedElement(),i=t.createPositionAt(r,s),a=e.createSelection(i),c=t.insertContent(o,a);return e.setSelection(a),c}))):void 0}}),{priority:"high"})}}]),n}(Ll);function Bh(e,t,n){var r,i=e.schema,o="forward"==n?"elementStart":"elementEnd",a=l(e.createRangeIn(t.root).getWalker({startPosition:t,direction:n}));try{for(a.s();!(r=a.n()).done;){var s=r.value,c=s.previousPosition,u=s.item,d=s.type;if(i.isLimit(u)&&!i.isInline(u))return c;if(d==o&&i.isBlock(u))return null}}catch(e){a.e(e)}finally{a.f()}return null}function Fh(e,t,n){var r="backward"==n?t.end:t.start;if(e.checkChild(r,"$text"))return r;var i,o=l(t.getWalker({direction:n}));try{for(o.s();!(i=o.n()).done;){var a=i.value.nextPosition;if(e.checkChild(a,"$text"))return a}}catch(e){o.e(e)}finally{o.f()}}n(64);var zh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.editing.view,n=t.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(function(t,n,r){e._clearPreviouslySelectedWidgets(r.writer);var i,o=r.writer,a=o.document.selection,s=a.getSelectedElement(),c=null,u=l(a.getRanges());try{for(u.s();!(i=u.n()).done;){var d,f=l(i.value);try{for(f.s();!(d=f.n()).done;){var h=d.value.item;dh(h)&&!Vh(h,c)&&(o.addClass(uh,h),e._previouslySelected.add(h),c=h,h==s&&o.setSelection(a.getRanges(),{fake:!0,label:ph(s)}))}}catch(e){f.e(e)}finally{f.f()}}}catch(e){u.e(e)}finally{u.f()}}),{priority:"low"}),t.addObserver(Ih),this.listenTo(n,"mousedown",(function(){return e._onMousedown.apply(e,arguments)})),this.listenTo(n,"keydown",(function(){e._handleSelectionChangeOnArrowKeyPress.apply(e,arguments)}),{priority:"high"}),this.listenTo(n,"keydown",(function(){e._preventDefaultOnArrowKeyPress.apply(e,arguments)}),{priority:Yt.get("high")-20}),this.listenTo(n,"keydown",function(e){var t=e.model;return function(n,r){var i=r.keyCode==Ur.arrowup,o=r.keyCode==Ur.arrowdown,a=r.shiftKey,s=t.document.selection;if(i||o){var c=o;if(!a||!function(e,t){return!e.isCollapsed&&e.isBackward==t}(s,c)){var u=function(e,t,n){var r=e.model;if(n){var i=t.isCollapsed?t.focus:t.getLastPosition(),o=Bh(r,i,"forward");if(!o)return null;var a=r.createRange(i,o),s=Fh(r.schema,a,"backward");return s&&i.isBefore(s)?r.createRange(i,s):null}var c=t.isCollapsed?t.focus:t.getFirstPosition(),l=Bh(r,c,"backward");if(!l)return null;var u=r.createRange(l,c),d=Fh(r.schema,u,"forward");return d&&c.isAfter(d)?r.createRange(d,c):null}(e,s,c);u&&!u.isCollapsed&&function(e,t,n){var r=e.model,i=e.view.domConverter;if(n){var o=r.createSelection(t.start);r.modifySelection(o),o.focus.isAtEnd||t.start.isEqual(o.focus)||(t=r.createRange(o.focus,t.end))}var a,s,c=e.mapper.toViewRange(t),u=i.viewRangeToDom(c),d=l(Oo.getDomRangeRects(u));try{for(d.s();!(s=d.n()).done;){var f=s.value;if(void 0!==a){if(Math.round(f.top)>=a)return!1;a=Math.max(a,Math.round(f.bottom))}else a=Math.round(f.bottom)}}catch(e){d.e(e)}finally{d.f()}return!0}(e,u,c)&&(t.change((function(e){var n=c?u.end:u.start;if(a){var r=t.createSelection(s.anchor);r.setFocus(n),e.setSelection(r)}else e.setSelection(n)})),n.stop(),r.preventDefault(),r.stopPropagation())}}}}(this.editor.editing)),this.listenTo(n,"delete",(function(t,n){e._handleDelete("forward"==n.direction)&&(n.preventDefault(),t.stop())}),{priority:"high"})}},{key:"_onMousedown",value:function(e,t){var n=this.editor,r=n.editing.view,i=r.document,o=t.target;if(function(e){for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(dh(e))return!1;e=e.parent}return!1}(o)){if((zr||Fr)&&t.domEvent.detail>=3){var a=n.editing.mapper,s=o.is("attributeElement")?o.findAncestor((function(e){return!e.is("attributeElement")})):o,c=a.toModelElement(s);t.preventDefault(),this.editor.model.change((function(e){e.setSelection(c,"in")}))}}else if(dh(o)||(o=o.findAncestor(dh))){t.preventDefault(),i.isFocused||r.focus();var l=n.editing.mapper.toModelElement(o);this._setSelectionOverElement(l)}}},{key:"_handleSelectionChangeOnArrowKeyPress",value:function(e,t){var n=t.keyCode;if(Kr(n)){var r=this.editor.model,i=r.schema,o=r.document.selection,a=o.getSelectedElement(),s=Qr(n,this.editor.locale.contentLanguageDirection);if(a&&i.isObject(a)){var c=s?o.getLastPosition():o.getFirstPosition(),l=i.getNearestSelectionRange(c,s?"forward":"backward");l&&(r.change((function(e){e.setSelection(l)})),t.preventDefault(),e.stop())}else if(o.isCollapsed){var u=this._getObjectElementNextToSelection(s);u&&i.isObject(u)&&(this._setSelectionOverElement(u),t.preventDefault(),e.stop())}}}},{key:"_preventDefaultOnArrowKeyPress",value:function(e,t){if(Kr(t.keyCode)){var n=this.editor.model,r=n.schema,i=n.document.selection.getSelectedElement();i&&r.isObject(i)&&(t.preventDefault(),e.stop())}}},{key:"_handleDelete",value:function(e){var t=this;if(!this.editor.isReadOnly){var n=this.editor.model.document.selection;if(n.isCollapsed){var r=this._getObjectElementNextToSelection(e);return r?(this.editor.model.change((function(e){for(var i=n.anchor.parent;i.isEmpty;){var o=i;i=o.parent,e.remove(o)}t._setSelectionOverElement(r)})),!0):void 0}}}},{key:"_setSelectionOverElement",value:function(e){this.editor.model.change((function(t){t.setSelection(t.createRangeOn(e))}))}},{key:"_getObjectElementNextToSelection",value:function(e){var t=this.editor.model,n=t.schema,r=t.document.selection,i=t.createSelection(r);t.modifySelection(i,{direction:e?"forward":"backward"});var o=e?i.focus.nodeBefore:i.focus.nodeAfter;return o&&n.isObject(o)?o:null}},{key:"_clearPreviouslySelectedWidgets",value:function(e){var t,n=l(this._previouslySelected);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.removeClass(uh,r)}}catch(e){n.e(e)}finally{n.f()}this._previouslySelected.clear()}}],[{key:"pluginName",get:function(){return"Widget"}},{key:"requires",get:function(){return[Lh]}}]),n}(Ll);function Vh(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}var $h=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=xh(e),xh(e)&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection.getSelectedElement();t.change((function(t){t.setAttribute("alt",e.newValue,n)}))}}]),n}(Fl),Hh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.editor.commands.add("imageTextAlternative",new $h(this.editor))}}],[{key:"pluginName",get:function(){return"ImageTextAlternativeEditing"}}]),n}(Ll);n(66);var Uh=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n),i=t.call(this,e);var o="ck-labeled-field-view-"+Wt(),a="ck-labeled-field-view-status-"+Wt();i.fieldView=r(y(i),o,a),i.set("label"),i.set("isEnabled",!0),i.set("errorText",null),i.set("infoText",null),i.set("class"),i.labelView=i._createLabelView(o),i.statusView=i._createStatusView(a),i.bind("_statusText").to(y(i),"errorText",y(i),"infoText",(function(e,t){return e||t}));var s=i.bindTemplate;return i.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",s.to("class"),s.if("isEnabled","ck-disabled",(function(e){return!e}))]},children:[i.labelView,i.fieldView,i.statusView]}),i}return m(n,[{key:"_createLabelView",value:function(e){var t=new tl(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}},{key:"_createStatusView",value:function(e){var t=new Xc(this.locale),n=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(function(e){return!e}))],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}},{key:"focus",value:function(){this.fieldView.focus()}}]),n}(Xc);n(68);var qh=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).set("value"),r.set("id"),r.set("placeholder"),r.set("isReadOnly",!1),r.set("hasError",!1),r.set("ariaDescribedById");var i=r.bindTemplate;return r.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",i.if("hasError","ck-error")],id:i.to("id"),placeholder:i.to("placeholder"),readonly:i.to("isReadOnly"),"aria-invalid":i.if("hasError",!0),"aria-describedby":i.to("ariaDescribedById")},on:{input:i.to("input")}}),r}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this);var t=function(t){e.element.value=t||0===t?t:""};t(this.value),this.on("change:value",(function(e,n,r){t(r)}))}},{key:"select",value:function(){this.element.select()}},{key:"focus",value:function(){this.element.focus()}}]),n}(Xc);function Wh(e,t,n){var r=new qh(e.locale);return r.set({id:t,ariaDescribedById:n}),r.bind("isReadOnly").to(e,"isEnabled",(function(e){return!e})),r.bind("hasError").to(e,"errorText",(function(e){return!!e})),r.on("input",(function(){e.errorText=null})),r}function Yh(e){var t=e.view;t.listenTo(t.element,"submit",(function(e,n){n.preventDefault(),t.fire("submit")}),{useCapture:!0})}var Kh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',Gh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.591 10.177l4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>';n(70),n(8);var Qh=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).locale.t;return r.focusTracker=new Cc,r.keystrokes=new mc,r.labeledInput=r._createLabeledInputView(),r.saveButtonView=r._createButton(i("Save"),Kh,"ck-button-save"),r.saveButtonView.type="submit",r.cancelButtonView=r._createButton(i("Cancel"),Gh,"ck-button-cancel","cancel"),r._focusables=new Oc,r._focusCycler=new sl({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[r.labeledInput,r.saveButtonView,r.cancelButtonView]}),r}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),this.keystrokes.listenTo(this.element),Yh({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)}))}},{key:"_createButton",value:function(e,t,n,r){var i=new kl(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"_createLabeledInputView",value:function(){var e=this.locale.t,t=new Uh(this.locale,Wh);return t.label=e("Text alternative"),t.fieldView.placeholder=e("Text alternative"),t}}]),n}(Xc);n(73),n(75);var Xh=il("px"),Jh=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).positionLimiter=function(){var e=r.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},r.set("visibleView",null),r.view=new nh(e.locale),e.ui.view.body.add(r.view),e.ui.focusTracker.add(r.view.element),r._viewToStack=new Map,r._idToStack=new Map,r.set("_numberOfStacks",0),r.set("_singleViewMode",!1),r._rotatorView=r._createRotatorView(),r._fakePanelsView=r._createFakePanelsView(),r}return m(n,null,[{key:"pluginName",get:function(){return"ContextualBalloon"}}]),m(n,[{key:"hasView",value:function(e){return Array.from(this._viewToStack.keys()).includes(e)}},{key:"add",value:function(e){if(this.hasView(e.view))throw new Kt.a("contextualballoon-add-view-exist",[this,e]);var t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));var n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}},{key:"remove",value:function(e){if(!this.hasView(e))throw new Kt.a("contextualballoon-remove-view-not-exist",[this,e]);var t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}},{key:"updatePosition",value:function(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}},{key:"showStack",value:function(e){this.visibleStack=e;var t=this._idToStack.get(e);if(!t)throw new Kt.a("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}},{key:"_getStackId",value:function(e){return Array.from(this._idToStack.entries()).find((function(t){return t[1]===e}))[0]}},{key:"_showNextStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}},{key:"_showPrevStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}},{key:"_createRotatorView",value:function(){var e=this,t=new Zh(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>1})),t.on("change:isNavigationVisible",(function(){return e.updatePosition()}),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(function(t,r){if(r<2)return"";var i=Array.from(e._idToStack.values()).indexOf(e._visibleStack)+1;return n("%0 of %1",[i,r])})),t.buttonNextView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showNextStack()})),t.buttonPrevView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showPrevStack()})),t}},{key:"_createFakePanelsView",value:function(){var e=new ep(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>=2?Math.min(e-1,2):0})),e.listenTo(this.view,"change:top",(function(){return e.updatePosition()})),e.listenTo(this.view,"change:left",(function(){return e.updatePosition()})),this.editor.ui.view.body.add(e),e}},{key:"_showView",value:function(e){var t=e.view,n=e.balloonClassName,r=void 0===n?"":n,i=e.withArrow,o=void 0===i||i,a=e.singleViewMode,s=void 0!==a&&a;this.view.class=r,this.view.withArrow=o,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}},{key:"_getBalloonPosition",value:function(){var e=Array.from(this._visibleStack.values()).pop().position;return e&&!e.limiter&&(e=Object.assign({},e,{limiter:this.positionLimiter})),e}},{key:"_visibleStack",get:function(){return this._viewToStack.get(this.visibleView)}}]),n}(Ll),Zh=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),r=t.call(this,e);var i=e.t,o=r.bindTemplate;return r.set("isNavigationVisible",!0),r.focusTracker=new Cc,r.buttonPrevView=r._createButtonView(i("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),r.buttonNextView=r._createButtonView(i("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),r.content=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",o.to("isNavigationVisible",(function(e){return e?"":"ck-hidden"}))]},children:[r.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.to("counter")}]},r.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:r.content}]}),r}return m(n,[{key:"render",value:function(){s(A(n.prototype),"render",this).call(this),this.focusTracker.add(this.element)}},{key:"showView",value:function(e){this.hideView(),this.content.add(e)}},{key:"hideView",value:function(){this.content.clear()}},{key:"_createButtonView",value:function(e,t){var n=new kl(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}]),n}(Xc),ep=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n);var o=(i=t.call(this,e)).bindTemplate;return i.set("top",0),i.set("left",0),i.set("height",0),i.set("width",0),i.set("numberOfPanels",0),i.content=i.createCollection(),i._balloonPanelView=r,i.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",(function(e){return e?"":"ck-hidden"}))],style:{top:o.to("top",Xh),left:o.to("left",Xh),width:o.to("width",Xh),height:o.to("height",Xh)}},children:i.content}),i.on("change:numberOfPanels",(function(e,t,n,r){n>r?i._addPanels(n-r):i._removePanels(r-n),i.updatePosition()})),i}return m(n,[{key:"_addPanels",value:function(e){for(;e--;){var t=new Xc;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}},{key:"_removePanels",value:function(e){for(;e--;){var t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}},{key:"updatePosition",value:function(){if(this.numberOfPanels){var e=this._balloonPanelView,t=e.top,n=e.left,r=new Oo(this._balloonPanelView.element),i=r.width,o=r.height;Object.assign(this,{top:t,left:n,width:i,height:o})}}}]),n}(Xc);function tp(e){var t=e.editing.view,n=nh.defaultPositions;return{target:t.domConverter.viewToDom(t.document.selection.getSelectedElement()),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}var np=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this._createButton(),this._createForm()}},{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this),this._form.destroy()}},{key:"_createButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("imageTextAlternative",(function(r){var i=t.commands.get("imageTextAlternative"),o=new kl(r);return o.set({label:n("Change image text alternative"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22L2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21l-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),e.listenTo(o,"execute",(function(){e._showForm()})),o}))}},{key:"_createForm",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new Qh(t.locale),this._form.render(),this.listenTo(this._form,"submit",(function(){t.execute("imageTextAlternative",{newValue:e._form.labeledInput.fieldView.element.value}),e._hideForm(!0)})),this.listenTo(this._form,"cancel",(function(){e._hideForm(!0)})),this._form.keystrokes.set("Esc",(function(t,n){e._hideForm(!0),n()})),this.listenTo(t.ui,"update",(function(){Ah(n.selection)?e._isVisible&&function(e){var t=e.plugins.get("ContextualBalloon");if(Ah(e.editing.view.document.selection)){var n=tp(e);t.updatePosition(n)}}(t):e._hideForm(!0)})),Ml({emitter:this._form,activator:function(){return e._isVisible},contextElements:[this._balloon.view.element],callback:function(){return e._hideForm()}})}},{key:"_showForm",value:function(){if(!this._isVisible){var e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._isInBalloon||this._balloon.add({view:this._form,position:tp(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select()}}},{key:"_hideForm",value:function(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}},{key:"_isVisible",get:function(){return this._balloon.visibleView===this._form}},{key:"_isInBalloon",get:function(){return this._balloon.hasView(this._form)}}],[{key:"requires",get:function(){return[Jh]}},{key:"pluginName",get:function(){return"ImageTextAlternativeUI"}}]),n}(Ll),rp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Hh,np]}},{key:"pluginName",get:function(){return"ImageTextAlternative"}}]),n}(Ll);n(77);var ip=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Oh,zh,rp]}},{key:"pluginName",get:function(){return"Image"}}]),n}(Ll);function op(e){var t,n=l(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r&&r.is("element","caption"))return r}}catch(e){n.e(e)}finally{n.f()}return null}function ap(e){var t=e.parent;return"figcaption"==e.name&&t&&"figure"==t.name&&t.hasClass("image")?{name:!0}:null}var sp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view,r=t.model.schema,i=t.data,o=t.editing,a=t.t;r.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),t.model.document.registerPostFixer((function(t){return e._insertMissingModelCaptionElement(t)})),t.conversion.for("upcast").elementToElement({view:ap,model:"caption"}),i.downcastDispatcher.on("insert:caption",cp((function(e){return e.createContainerElement("figcaption")}),!1));var s=function(e,t){return function(n){var r=n.createEditableElement("figcaption");return n.setCustomProperty("imageCaption",!0,r),Sc({view:e,element:r,text:t}),mh(r,n)}}(n,a("Enter image caption"));o.downcastDispatcher.on("insert:caption",cp(s)),o.downcastDispatcher.on("insert",this._fixCaptionVisibility((function(e){return e.item})),{priority:"high"}),o.downcastDispatcher.on("remove",this._fixCaptionVisibility((function(e){return e.position.parent})),{priority:"high"}),n.document.registerPostFixer((function(t){return e._updateCaptionVisibility(t)}))}},{key:"_updateCaptionVisibility",value:function(e){var t,n=this.editor.editing.mapper,r=this._lastSelectedCaption,i=this.editor.model.document.selection,o=i.getSelectedElement();if(o&&o.is("element","image")){var a=op(o);t=n.toViewElement(a)}var s=lp(i.getFirstPosition().parent);if(s&&(t=n.toViewElement(s)),t)return r?(r===t||(up(r,e),this._lastSelectedCaption=t),dp(t,e)):(this._lastSelectedCaption=t,dp(t,e));if(r){var c=up(r,e);return this._lastSelectedCaption=null,c}return!1}},{key:"_fixCaptionVisibility",value:function(e){var t=this;return function(n,r,i){var o=lp(e(r)),a=t.editor.editing.mapper,s=i.writer;if(o){var c=a.toViewElement(o);c&&(o.childCount?s.removeClass("ck-hidden",c):s.addClass("ck-hidden",c))}}}},{key:"_insertMissingModelCaptionElement",value:function(e){var t,n=this.editor.model,r=[],i=l(n.document.differ.getChanges());try{for(i.s();!(t=i.n()).done;){var o=t.value;if("insert"==o.type&&"$text"!=o.name){var a=o.position.nodeAfter;if(a.is("element","image")&&!op(a)&&r.push(a),!a.is("element","image")&&a.childCount){var s,c=l(n.createRangeIn(a).getItems());try{for(c.s();!(s=c.n()).done;){var u=s.value;u.is("element","image")&&!op(u)&&r.push(u)}}catch(e){c.e(e)}finally{c.f()}}}}}catch(e){i.e(e)}finally{i.f()}for(var d=0,f=r;d<f.length;d++){var h=f[d];e.appendElement("caption",h)}return!!r.length}}],[{key:"pluginName",get:function(){return"ImageCaptionEditing"}}]),n}(Ll);function cp(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(n,r,i){var o=r.item;if((o.childCount||t)&&xh(o.parent)){if(!i.consumable.consume(r.item,"insert"))return;var a=i.mapper.toViewElement(r.range.start.parent),s=e(i.writer),c=i.writer;o.childCount||c.addClass("ck-hidden",s),function(e,t,n,r){var i=r.writer.createPositionAt(n,"end");r.writer.insert(i,e),r.mapper.bindElements(t,e)}(s,r.item,a,i)}}}function lp(e){var t=e.getAncestors({includeSelf:!0}).find((function(e){return"caption"==e.name}));return t&&t.parent&&"image"==t.parent.name?t:null}function up(e,t){return!e.childCount&&!e.hasClass("ck-hidden")&&(t.addClass("ck-hidden",e),!0)}function dp(e,t){return!!e.hasClass("ck-hidden")&&(t.removeClass("ck-hidden",e),!0)}n(79);var fp=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).buttonView=new kl(e),r._fileInputView=new hp(e),r._fileInputView.bind("acceptedType").to(y(r)),r._fileInputView.bind("allowMultipleFiles").to(y(r)),r._fileInputView.delegate("done").to(y(r)),r.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[r.buttonView,r._fileInputView]}),r.buttonView.on("execute",(function(){r._fileInputView.open()})),r}return m(n,[{key:"focus",value:function(){this.buttonView.focus()}}]),n}(Xc),hp=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).set("acceptedType"),r.set("allowMultipleFiles",!1);var i=r.bindTemplate;return r.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:i.to("acceptedType"),multiple:i.to("allowMultipleFiles")},on:{change:i.to((function(){r.element&&r.element.files&&r.element.files.length&&r.fire("done",r.element.files),r.element.value=""}))}}),r}return m(n,[{key:"open",value:function(){this.element.click()}}]),n}(Xc);function pp(e){var t=e.map((function(e){return e.replace("+","\\+")}));return new RegExp("^image\\/(".concat(t.join("|"),")$"))}var mp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',vp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.t;e.ui.componentFactory.add("imageUpload",(function(n){var r=new fp(n),i=e.commands.get("imageUpload"),o=e.config.get("image.upload.types"),a=pp(o);return r.set({acceptedType:o.map((function(e){return"image/"+e})).join(","),allowMultipleFiles:!0}),r.buttonView.set({label:t("Insert image"),icon:mp,tooltip:!0}),r.buttonView.bind("isEnabled").to(i),r.on("done",(function(t,n){var r=Array.from(n).filter((function(e){return a.test(e.type)}));r.length&&e.execute("imageUpload",{file:r})})),r}))}}],[{key:"pluginName",get:function(){return"ImageUploadUI"}}]),n}(Ll),gp=function(){function e(t){h(this,e),this.context=t}return m(e,[{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!0}}]),e}();sn(gp,mr);var bp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.set("hasAny",!1),this._actions=new cn({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}},{key:"add",value:function(e){if("string"!=typeof e)throw new Kt.a("pendingactions-add-invalid-message",this);var t=Object.create(mr);return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}},{key:"remove",value:function(e){this._actions.remove(e),this.hasAny=!!this._actions.length}},{key:Symbol.iterator,value:function(){return this._actions[Symbol.iterator]()}},{key:"first",get:function(){return this._actions.get(0)}}],[{key:"pluginName",get:function(){return"PendingActions"}}]),n}(gp),yp=function(){function e(){var t=this;h(this,e);var n=new window.FileReader;this._reader=n,this._data=void 0,this.set("loaded",0),n.onprogress=function(e){t.loaded=e.loaded}}return m(e,[{key:"read",value:function(e){var t=this,n=this._reader;return this.total=e.size,new Promise((function(r,i){n.onload=function(){var e=n.result;t._data=e,r(e)},n.onerror=function(){i("error")},n.onabort=function(){i("aborted")},t._reader.readAsDataURL(e)}))}},{key:"abort",value:function(){this._reader.abort()}},{key:"error",get:function(){return this._reader.error}},{key:"data",get:function(){return this._data}}]),e}();sn(yp,mr);var kp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this;this.loaders=new cn,this.loaders.on("add",(function(){return e._updatePendingAction()})),this.loaders.on("remove",(function(){return e._updatePendingAction()})),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0}))}},{key:"getLoader",value:function(e){return this._loadersMap.get(e)||null}},{key:"createLoader",value:function(e){var t=this;if(!this.createUploadAdapter)return Object(Kt.c)("filerepository-no-upload-adapter"),null;var n=new wp(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(e,n),e instanceof Promise&&n.file.then((function(e){t._loadersMap.set(e,n)})).catch((function(){})),n.on("change:uploaded",(function(){var e,n=0,r=l(t.loaders);try{for(r.s();!(e=r.n()).done;){n+=e.value.uploaded}}catch(e){r.e(e)}finally{r.f()}t.uploaded=n})),n.on("change:uploadTotal",(function(){var e,n=0,r=l(t.loaders);try{for(r.s();!(e=r.n()).done;){var i=e.value;i.uploadTotal&&(n+=i.uploadTotal)}}catch(e){r.e(e)}finally{r.f()}t.uploadTotal=n})),n}},{key:"destroyLoader",value:function(e){var t=this,n=e instanceof wp?e:this.getLoader(e);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((function(e,r){e===n&&t._loadersMap.delete(r)}))}},{key:"_updatePendingAction",value:function(){var e=this.editor.plugins.get(bp);if(this.loaders.length){if(!this._pendingAction){var t=this.editor.t,n=function(e){return"".concat(t("Upload in progress")," ").concat(parseInt(e),"%.")};this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}],[{key:"pluginName",get:function(){return"FileRepository"}},{key:"requires",get:function(){return[bp]}}]),n}(Ll);sn(kp,mr);var wp=function(){function e(t,n){h(this,e),this.id=Wt(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=n(this),this._reader=new yp,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0})),this.set("uploadResponse",null)}return m(e,[{key:"read",value:function(){var e=this;if("idle"!=this.status)throw new Kt.a("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((function(t){return e._reader.read(t)})).then((function(t){if("reading"!==e.status)throw e.status;return e.status="idle",t})).catch((function(t){if("aborted"===t)throw e.status="aborted","aborted";throw e.status="error",e._reader.error?e._reader.error:t}))}},{key:"upload",value:function(){var e=this;if("idle"!=this.status)throw new Kt.a("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((function(){return e._adapter.upload()})).then((function(t){return e.uploadResponse=t,e.status="idle",t})).catch((function(t){if("aborted"===e.status)throw"aborted";throw e.status="error",t}))}},{key:"abort",value:function(){var e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((function(){})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}},{key:"_destroy",value:function(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}},{key:"_createFilePromiseWrapper",value:function(e){var t={};return t.promise=new Promise((function(n,r){t.rejecter=r,t.isFulfilled=!1,e.then((function(e){t.isFulfilled=!0,n(e)})).catch((function(e){t.isFulfilled=!0,r(e)}))})),t}},{key:"file",get:function(){var e=this;return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((function(t){return e._filePromiseWrapper?t:null})):Promise.resolve(null)}},{key:"data",get:function(){return this._reader.data}}]),e}();sn(wp,mr),n(81),n(83),n(85);var _p=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>'),r}return m(n,[{key:"init",value:function(){var e=this;this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(function(){return e.uploadStatusChange.apply(e,arguments)}))}},{key:"uploadStatusChange",value:function(e,t,n){var r=this.editor,i=t.item,o=i.getAttribute("uploadId");if(n.consumable.consume(t.item,e.name)){var a=r.plugins.get(kp),s=o?t.attributeNewValue:null,c=this.placeholder,l=r.editing.mapper.toViewElement(i),u=n.writer;if("reading"==s)return Cp(l,u),void Ap(c,l,u);if("uploading"==s){var d=a.loaders.get(o);return Cp(l,u),void(d?(xp(l,u),function(e,t,n,r){var i=function(e){var t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),i),n.on("change:uploadedPercent",(function(e,t,n){r.change((function(e){e.setStyle("width",n+"%",i)}))}))}(l,u,d,r.editing.view),function(e,t,n){if(n.data){var r=Eh(e);t.setAttribute("src",n.data,r)}}(l,u,d)):Ap(c,l,u))}"complete"==s&&a.loaders.get(o)&&function(e,t,n){var r=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),r),setTimeout((function(){n.change((function(e){return e.remove(e.createRangeOn(r))}))}),3e3)}(l,u,r.editing.view),function(e,t){Mp(e,t,"progressBar")}(l,u),xp(l,u),function(e,t){t.removeClass("ck-appear",e)}(l,u)}}}]),n}(Ll);function Cp(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function Ap(e,t,n){t.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",t);var r=Eh(t);r.getAttribute("src")!==e&&n.setAttribute("src",e,r),Sp(t,"placeholder")||n.insert(n.createPositionAfter(r),function(e){var t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(n))}function xp(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),Mp(e,t,"placeholder")}function Sp(e,t){var n,r=l(e.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.getCustomProperty(t))return i}}catch(e){r.e(e)}finally{r.f()}}function Mp(e,t,n){var r=Sp(e,n);r&&t.remove(t.createRangeOn(r))}var Ep=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.on("show:warning",(function(e,t){window.alert(t.message)}),{priority:"lowest"})}},{key:"showSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}},{key:"showInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}},{key:"showWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}},{key:"_showNotification",value:function(e){var t="show:"+e.type+(e.namespace?":"+e.namespace:"");this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}],[{key:"pluginName",get:function(){return"Notification"}}]),n}(gp),Tp=function(){function e(t){h(this,e),this.document=t}return m(e,[{key:"createDocumentFragment",value:function(e){return new ni(this.document,e)}},{key:"createElement",value:function(e,t,n){return new ar(this.document,e,t,n)}},{key:"createText",value:function(e){return new bn(this.document,e)}},{key:"clone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e._clone(t)}},{key:"appendChild",value:function(e,t){return t._appendChild(e)}},{key:"insertChild",value:function(e,t,n){return n._insertChild(e,t)}},{key:"removeChildren",value:function(e,t,n){return n._removeChildren(e,t)}},{key:"remove",value:function(e){var t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}},{key:"replace",value:function(e,t){var n=e.parent;if(n){var r=n.getChildIndex(e);return this.removeChildren(r,1,n),this.insertChild(r,t,n),!0}return!1}},{key:"unwrapElement",value:function(e){var t=e.parent;if(t){var n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}},{key:"rename",value:function(e,t){var n=new ar(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){B(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"createPositionAt",value:function(e,t){return xr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return xr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return xr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Sr(e,t)}},{key:"createRangeOn",value:function(e){return Sr._createOn(e)}},{key:"createRangeIn",value:function(e){return Sr._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Tr(e,t,n)}}]),e}(),Dp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement(),t=e&&"image"===e.name||!1;this.isEnabled=Mh(this.editor.model)||t}},{key:"execute",value:function(e){var t=this.editor,n=t.model,r=t.plugins.get(kp);n.change((function(t){var i,o=l(Array.isArray(e.file)?e.file:[e.file]);try{for(o.s();!(i=o.n()).done;){var a=i.value;Op(t,n,r,a)}}catch(e){o.e(e)}finally{o.f()}}))}}]),n}(Fl);function Op(e,t,n,r){var i=n.createLoader(r);i&&Sh(e,t,{uploadId:i.id})}var Pp=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),r}return m(n,null,[{key:"requires",get:function(){return[kp,Ep,Vu]}},{key:"pluginName",get:function(){return"ImageUploadEditing"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,r=t.model.schema,i=t.conversion,o=t.plugins.get(kp),a=pp(t.config.get("image.upload.types"));r.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),t.commands.add("imageUpload",new Dp(t)),i.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(function(e,n){if(r=n.dataTransfer,!Array.from(r.types).includes("text/html")||""===r.getData("text/html")){var r,i=Array.from(n.dataTransfer.files).filter((function(e){return!!e&&a.test(e.type)})),o=n.targetRanges.map((function(e){return t.editing.mapper.toModelRange(e)}));t.model.change((function(n){n.setSelection(o),i.length&&(e.stop(),t.model.enqueueChange("default",(function(){t.execute("imageUpload",{file:i})})))}))}})),this.listenTo(t.plugins.get(Vu),"inputTransformation",(function(e,n){var r=Array.from(t.editing.view.createRangeIn(n.content)).filter((function(e){return!(!(t=e.item).is("element","img")||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))&&!e.item.getAttribute("uploadProcessed");var t})).map((function(e){return{promise:(t=e.item,new Promise((function(e,n){var r=t.getAttribute("src");fetch(r).then((function(e){return e.blob()})).then((function(t){var n=function(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}(t,r),i=n.replace("image/",""),o=new File([t],"image."+i,{type:n});e(o)})).catch(n)}))),imageElement:e.item};var t}));if(r.length){var i,a=new Tp(t.editing.view.document),s=l(r);try{for(s.s();!(i=s.n()).done;){var c=i.value;a.setAttribute("uploadProcessed",!0,c.imageElement);var u=o.createLoader(c.promise);u&&(a.setAttribute("src","",c.imageElement),a.setAttribute("uploadId",u.id,c.imageElement))}}catch(e){s.e(e)}finally{s.f()}}})),t.editing.view.document.on("dragover",(function(e,t){t.preventDefault()})),n.on("change",(function(){var r,i=l(n.differ.getChanges({includeChangesInGraveyard:!0}));try{for(i.s();!(r=i.n()).done;){var a=r.value;if("insert"==a.type&&"$text"!=a.name){var s,c=a.position.nodeAfter,u="$graveyard"==a.position.root.rootName,d=l(Ip(t,c));try{for(d.s();!(s=d.n()).done;){var f=s.value,h=f.getAttribute("uploadId");if(h){var p=o.loaders.get(h);p&&(u?p.abort():"idle"==p.status&&e._readAndUpload(p,f))}}}catch(e){d.e(e)}finally{d.f()}}}}catch(e){i.e(e)}finally{i.f()}}))}},{key:"_readAndUpload",value:function(e,t){var n=this,r=this.editor,i=r.model,o=r.locale.t,a=r.plugins.get(kp),s=r.plugins.get(Ep);return i.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","reading",t)})),e.read().then((function(){var n=e.upload();if(zr){var o=Eh(r.editing.mapper.toViewElement(t));r.editing.view.once("render",(function(){if(o.parent){var e=r.editing.view.domConverter.mapViewToDom(o.parent);if(e){var t=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=t}}}))}return i.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","uploading",t)})),n})).then((function(e){i.enqueueChange("transparent",(function(r){r.setAttributes({uploadStatus:"complete",src:e.default},t),n._parseAndSetSrcsetAttributeOnImage(e,t,r)})),c()})).catch((function(n){if("error"!==e.status&&"aborted"!==e.status)throw n;"error"==e.status&&n&&s.showWarning(n,{title:o("Upload failed"),namespace:"upload"}),c(),i.enqueueChange("transparent",(function(e){e.remove(t)}))}));function c(){i.enqueueChange("transparent",(function(e){e.removeAttribute("uploadId",t),e.removeAttribute("uploadStatus",t)})),a.destroyLoader(e)}}},{key:"_parseAndSetSrcsetAttributeOnImage",value:function(e,t,n){var r=0,i=Object.keys(e).filter((function(e){var t=parseInt(e,10);if(!isNaN(t))return r=Math.max(r,t),!0})).map((function(t){return"".concat(e[t]," ").concat(t,"w")})).join(", ");""!=i&&n.setAttribute("srcset",{data:i,width:r},t)}}]),n}(Ll);function Ip(e,t){return Array.from(e.model.createRangeOn(t)).filter((function(e){return e.item.is("element","image")})).map((function(e){return e.item}))}var jp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"pluginName",get:function(){return"ImageUpload"}},{key:"requires",get:function(){return[Pp,vp,_p]}}]),n}(Ll);n(87);var Np=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,n);var o=(r=t.call(this,e)).bindTemplate;return r.set("class",i.class||null),r.children=r.createCollection(),i.children&&i.children.forEach((function(e){return r.children.add(e)})),r.set("_role",null),r.set("_ariaLabelledBy",null),i.labelView&&r.set({_role:"group",_ariaLabelledBy:i.labelView.id}),r.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",o.to("class")],role:o.to("_role"),"aria-labelledby":o.to("_ariaLabelledBy")},children:r.children}),r}return n}(Xc);n(89);var Rp=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n);var o=(i=t.call(this,e))._createActionButtons(e),a=o.insertButtonView,s=o.cancelButtonView;if(i.insertButtonView=a,i.cancelButtonView=s,i.dropdownView=i._createDropdownView(e),i.set("imageURLInputValue",""),i.focusTracker=new Cc,i.keystrokes=new mc,i._focusables=new Oc,i._focusCycler=new sl({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i.set("_integrations",new cn),r)for(var l=function(){var e=c(f[d],2),t=e[0],n=e[1];"insertImageViaUrl"===t&&(n.fieldView.bind("value").to(y(i),"imageURLInputValue",(function(e){return e||""})),n.fieldView.on("input",(function(){i.imageURLInputValue=n.fieldView.element.value.trim()}))),n.name=t,i._integrations.add(n)},d=0,f=Object.entries(r);d<f.length;d++)l();return i.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:"-1"},children:[].concat(u(i._integrations),[new Np(e,{children:[i.insertButtonView,i.cancelButtonView],class:"ck-image-insert-form__action-row"})])}),i}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),Yh({view:this});var t=[].concat(u(this._integrations),[this.insertButtonView,this.cancelButtonView]);t.forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);var r=function(e){return e.stopPropagation()};this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r),this.listenTo(t[0].element,"selectstart",(function(e,t){t.stopPropagation()}),{priority:"high"})}},{key:"getIntegration",value:function(e){return this._integrations.find((function(t){return t.name===e}))}},{key:"_createDropdownView",value:function(e){var t=e.t,n=El(e,Yf),r=n.buttonView,i=n.panelView;return r.set({label:t("Insert image"),icon:mp,tooltip:!0}),i.extendTemplate({attributes:{class:"ck-image-insert__panel"}}),n}},{key:"_createActionButtons",value:function(e){var t=e.t,n=new kl(e),r=new kl(e);return n.set({label:t("Insert"),icon:Kh,class:"ck-button-save",type:"submit",withText:!0,isEnabled:this.imageURLInputValue}),r.set({label:t("Cancel"),icon:Gh,class:"ck-button-cancel",withText:!0}),n.bind("isEnabled").to(this,"imageURLInputValue",(function(e){return!!e})),n.delegate("execute").to(this,"submit"),r.delegate("execute").to(this,"cancel"),{insertButtonView:n,cancelButtonView:r}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}}]),n}(Xc);function Lp(e){var t=e.t,n=new Uh(e,Wh);return n.set({label:t("Insert image via URL")}),n.fieldView.placeholder="https://example.com/src/image.png",n.infoText=t("Paste the image source URL."),n}var Bp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this;this.editor.ui.componentFactory.add("imageInsert",(function(t){return e._createDropdownView(t)}))}},{key:"_createDropdownView",value:function(e){var t=this.editor,n=new Rp(e,function(e){var t=e.config.get("image.insert.integrations"),n=e.plugins.get("ImageInsertUI"),r={insertImageViaUrl:Lp(e.locale)};if(!t)return r;if(t.find((function(e){return"openCKFinder"===e}))&&e.ui.componentFactory.has("ckfinder")){var i=e.ui.componentFactory.create("ckfinder");i.set({withText:!0,class:"ck-image-insert__ck-finder-button"}),i.delegate("execute").to(n,"cancel"),r.openCKFinder=i}return t.reduce((function(t,n){return r[n]?t[n]=r[n]:e.ui.componentFactory.has(n)&&(t[n]=e.ui.componentFactory.create(n)),t}),{})}(t)),r=t.commands.get("imageUpload"),i=n.dropdownView,o=i.buttonView;return o.actionView=t.ui.componentFactory.create("imageUpload"),o.actionView.extendTemplate({attributes:{class:"ck ck-button ck-splitbutton__action"}}),this._setUpDropdown(i,n,r)}},{key:"_setUpDropdown",value:function(e,t,n){var r=this.editor,i=r.t,o=t.insertButtonView,a=t.getIntegration("insertImageViaUrl"),s=e.panelView;function c(){r.editing.view.focus(),e.isOpen=!1}return e.bind("isEnabled").to(n),e.buttonView.once("open",(function(){s.children.add(t)})),e.on("change:isOpen",(function(){var n=r.model.document.selection.getSelectedElement();e.isOpen&&(t.focus(),xh(n)?(t.imageURLInputValue=n.getAttribute("src"),o.label=i("Update"),a.label=i("Update image URL")):(t.imageURLInputValue="",o.label=i("Insert"),a.label=i("Insert image via URL")))}),{priority:"low"}),t.delegate("submit","cancel").to(e),this.delegate("cancel").to(e),e.on("submit",(function(){c(),function(){var e=r.model.document.selection.getSelectedElement();xh(e)?r.model.change((function(n){n.setAttribute("src",t.imageURLInputValue,e),n.removeAttribute("srcset",e),n.removeAttribute("sizes",e)})):r.execute("imageInsert",{source:t.imageURLInputValue})}()})),e.on("cancel",(function(){c()})),e}}],[{key:"pluginName",get:function(){return"ImageInsertUI"}}]),n}(Ll),Fp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=xh(e),e&&e.hasAttribute("width")?this.value={width:e.getAttribute("width"),height:null}:this.value=null}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection.getSelectedElement();this.value={width:e.width,height:null},n&&t.change((function(t){t.setAttribute("width",e.width,n)}))}}]),n}(Fl),zp=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"imageResize:original",value:null,icon:"original"},{name:"imageResize:25",value:"25",icon:"small"},{name:"imageResize:50",value:"50",icon:"medium"},{name:"imageResize:75",value:"75",icon:"large"}]}),r}return m(n,null,[{key:"pluginName",get:function(){return"ImageResizeEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=new Fp(e);this._registerSchema(),this._registerConverters(),e.commands.add("imageResize",t)}},{key:"_registerSchema",value:function(){this.editor.model.schema.extend("image",{allowAttributes:"width"}),this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0})}},{key:"_registerConverters",value:function(){var e=this.editor;e.conversion.for("downcast").add((function(e){return e.on("attribute:width:image",(function(e,t,n){if(n.consumable.consume(t.item,e.name)){var r=n.writer,i=n.mapper.toViewElement(t.item);null!==t.attributeNewValue?(r.setStyle("width",t.attributeNewValue,i),r.addClass("image_resized",i)):(r.removeStyle("width",i),r.removeClass("image_resized",i))}}))})),e.conversion.for("upcast").attributeToAttribute({view:{name:"figure",styles:{width:/.+/}},model:{key:"width",value:function(e){return e.getStyle("width")}}})}}]),n}(Ll),Vp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',$p={small:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',medium:Vp,large:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',original:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>'},Hp=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._resizeUnit=e.config.get("image.resizeUnit"),r}return m(n,null,[{key:"requires",get:function(){return[zp]}},{key:"pluginName",get:function(){return"ImageResizeButtons"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=e.config.get("image.resizeOptions"),n=e.commands.get("imageResize");this.bind("isEnabled").to(n);var r,i=l(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;this._registerImageResizeButton(o)}}catch(e){i.e(e)}finally{i.f()}this._registerImageResizeDropdown(t)}},{key:"_registerImageResizeButton",value:function(e){var t=this,n=this.editor,r=e.name,i=e.value,o=e.icon,a=i?i+this._resizeUnit:null;n.ui.componentFactory.add(r,(function(r){var i=new kl(r),s=n.commands.get("imageResize"),c=t._getOptionLabelValue(e,!0);if(!$p[o])throw new Kt.a("imageresizebuttons-missing-icon",n,e);return i.set({label:c,icon:$p[o],tooltip:c,isToggleable:!0}),i.bind("isEnabled").to(t),i.bind("isOn").to(s,"value",Up(a)),t.listenTo(i,"execute",(function(){n.execute("imageResize",{width:a})})),i}))}},{key:"_registerImageResizeDropdown",value:function(e){var t=this,n=this.editor,r=n.t,i=e.find((function(e){return!e.value}));n.ui.componentFactory.add("imageResize",(function(o){var a=n.commands.get("imageResize"),s=El(o,_l),c=s.buttonView;return c.set({tooltip:r("Resize image"),commandValue:i.value,icon:Vp,isToggleable:!0,label:t._getOptionLabelValue(i),withText:!0,class:"ck-resize-image-button"}),c.bind("label").to(a,"value",(function(e){return e&&e.width?e.width:t._getOptionLabelValue(i)})),s.bind("isOn").to(a),s.bind("isEnabled").to(t),Dl(s,t._getResizeDropdownListItemDefinitions(e,a)),s.listView.ariaLabel=r("Image resize list"),t.listenTo(s,"execute",(function(e){n.execute(e.source.commandName,{width:e.source.commandValue}),n.editing.view.focus()})),s}))}},{key:"_getOptionLabelValue",value:function(e,t){var n=this.editor.t;return e.label?e.label:t?e.value?n("Resize image to %0",e.value+this._resizeUnit):n("Resize image to the original size"):e.value?e.value+this._resizeUnit:n("Original")}},{key:"_getResizeDropdownListItemDefinitions",value:function(e,t){var n=this,r=new cn;return e.map((function(e){var i=e.value?e.value+n._resizeUnit:null,o={type:"button",model:new Ef({commandName:"imageResize",commandValue:i,label:n._getOptionLabelValue(e),withText:!0,icon:null})};o.model.bind("isOn").to(t,"value",Up(i)),r.add(o)})),r}}]),n}(Ll);function Up(e){return function(t){return null===e&&t===e||t&&t.width===e}}var qp=function(){function e(t){h(this,e),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=t,this._referenceCoordinates=null}return m(e,[{key:"begin",value:function(e,t,n){var r=new Oo(t);this.activeHandlePosition=function(e){for(var t=0,n=["top-left","top-right","bottom-right","bottom-left"];t<n.length;t++){var r=n[t];if(e.classList.contains(Wp(r)))return r}}(e),this._referenceCoordinates=function(e,t){var n=new Oo(e),r=t.split("-"),i={x:"right"==r[1]?n.right:n.left,y:"bottom"==r[0]?n.bottom:n.top};return i.x+=e.ownerDocument.defaultView.scrollX,i.y+=e.ownerDocument.defaultView.scrollY,i}(t,function(e){var t=e.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return"".concat(n[t[0]],"-").concat(n[t[1]])}(this.activeHandlePosition)),this.originalWidth=r.width,this.originalHeight=r.height,this.aspectRatio=r.width/r.height;var i=n.style.width;i&&i.match(/^\d+\.?\d*%$/)?this.originalWidthPercents=parseFloat(i):this.originalWidthPercents=function(e,t){var n=e.parentElement,r=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return t.width/r*100}(n,r)}},{key:"update",value:function(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}]),e}();function Wp(e){return"ck-widget__resizer__handle-"+e}sn(qp,mr);var Yp=function(){function e(t){var n=this;h(this,e),this._options=t,this._domResizerWrapper=null,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(function(e){n.state.proposedWidth||n.state.proposedWidthPercents||(n._cleanup(),e.stop())}),{priority:"high"}),this.on("change:isEnabled",(function(){n.isEnabled&&n.redraw()}))}return m(e,[{key:"attach",value:function(){var e=this,t=this,n=this._options.viewElement;this._options.editor.editing.view.change((function(r){var i=r.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(e){var n=this.toDomElement(e);return t._appendHandles(n),t._appendSizeUI(n),t._domResizerWrapper=n,t.on("change:isEnabled",(function(e,t,r){n.style.display=r?"":"none"})),n.style.display=t.isEnabled?"":"none",n}));r.insert(r.createPositionAt(n,"end"),i),r.addClass("ck-widget_with-resizer",n),e._viewResizerWrapper=i}))}},{key:"begin",value:function(e){this.state=new qp(this._options),this._sizeUI.bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}},{key:"updateSize",value:function(e){var t=this,n=this._proposeNewSize(e);this._options.editor.editing.view.change((function(e){var r=t._options.unit||"%",i=("%"===r?n.widthPercents:n.width)+r;e.setStyle("width",i,t._options.viewElement)}));var r=this._getHandleHost(),i=new Oo(r);n.handleHostWidth=Math.round(i.width),n.handleHostHeight=Math.round(i.height);var o=new Oo(r);n.width=Math.round(o.width),n.height=Math.round(o.height),this.redraw(i),this.state.update(n)}},{key:"commit",value:function(){var e=this,t=this._options.unit||"%",n=("%"===t?this.state.proposedWidthPercents:this.state.proposedWidth)+t;this._options.editor.editing.view.change((function(){e._cleanup(),e._options.onCommit(n)}))}},{key:"cancel",value:function(){this._cleanup()}},{key:"destroy",value:function(){this.cancel()}},{key:"redraw",value:function(e){var t=this._domResizerWrapper;if((n=t)&&n.ownerDocument&&n.ownerDocument.contains(n)){var n,r,i=t.parentElement,o=this._getHandleHost(),a=this._viewResizerWrapper,s=[a.getStyle("width"),a.getStyle("height"),a.getStyle("left"),a.getStyle("top")];if(i.isSameNode(o)){var c=e||new Oo(o);r=[c.width+"px",c.height+"px",void 0,void 0]}else r=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];"same"!==mn(s,r)&&this._options.editor.editing.view.change((function(e){e.setStyle({width:r[0],height:r[1],left:r[2],top:r[3]},a)}))}}},{key:"containsHandle",value:function(e){return this._domResizerWrapper.contains(e)}},{key:"_cleanup",value:function(){var e=this;this._sizeUI.dismiss(),this._sizeUI.isVisible=!1,this._options.editor.editing.view.change((function(t){t.setStyle("width",e._initialViewWidth,e._options.viewElement)}))}},{key:"_proposeNewSize",value:function(e){var t,n=this.state,r=(t=e).pageX,i=t.pageY,o=!this._options.isCentered||this._options.isCentered(this),a={x:n._referenceCoordinates.x-(r+n.originalWidth),y:i-n.originalHeight-n._referenceCoordinates.y};o&&n.activeHandlePosition.endsWith("-right")&&(a.x=r-(n._referenceCoordinates.x+n.originalWidth)),o&&(a.x*=2);var s={width:Math.abs(n.originalWidth+a.x),height:Math.abs(n.originalHeight+a.y)};s.dominant=s.width/n.aspectRatio>s.height?"width":"height",s.max=s[s.dominant];var c={width:s.width,height:s.height};return"width"==s.dominant?c.height=c.width/n.aspectRatio:c.width=c.height*n.aspectRatio,{width:Math.round(c.width),height:Math.round(c.height),widthPercents:Math.min(Math.round(n.originalWidthPercents/n.originalWidth*c.width*100)/100,100)}}},{key:"_getResizeHost",value:function(){var e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}},{key:"_getHandleHost",value:function(){var e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}},{key:"_appendHandles",value:function(e){for(var t,n=0,r=["top-left","top-right","bottom-right","bottom-left"];n<r.length;n++){var i=r[n];e.appendChild(new Pc({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(t=i,"ck-widget__resizer__handle-"+t)}}).render())}}},{key:"_appendSizeUI",value:function(e){var t=new Kp;t.render(),this._sizeUI=t,e.appendChild(t.element)}}],[{key:"isResizeHandle",value:function(e){return e.classList.contains("ck-widget__resizer__handle")}}]),e}();sn(Yp,mr);var Kp=function(e){v(n,e);var t=g(n);function n(){var e;h(this,n);var r=(e=t.call(this)).bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",r.to("activeHandlePosition",(function(e){return e?"ck-orientation-"+e:""}))],style:{display:r.if("isVisible","none",(function(e){return!e}))}},children:[{text:r.to("label")}]}),e}return m(n,[{key:"bindToState",value:function(e,t){this.bind("isVisible").to(t,"proposedWidth",t,"proposedHeight",(function(e,t){return null!==e&&null!==t})),this.bind("label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",(function(t,n,r){return"px"===e.unit?"".concat(t,"×").concat(n):r+"%"})),this.bind("activeHandlePosition").to(t)}},{key:"dismiss",value:function(){this.unbind(),this.isVisible=!1}}]),n}(Xc);n(91);var Gp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this;this.set("_visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map;var t=Pi.window.document;this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0}),this.editor.editing.view.addObserver(Ih),this._observer=Object.create(Vi),this.listenTo(this.editor.editing.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this));var n=function(){e._visibleResizer&&e._visibleResizer.redraw()},r=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return q(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_o(e,t,{leading:r,maxWait:t,trailing:i})}(n,200);this.on("change:_visibleResizer",n),this.editor.ui.on("update",r),this._observer.listenTo(Pi.window,"resize",r);var i=this.editor.editing.view.document.selection;i.on("change",(function(){var t=i.getSelectedElement();e._visibleResizer=e._getResizerByViewElement(t)||null}))}},{key:"destroy",value:function(){this._observer.stopListening();var e,t=l(this._resizers.values());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}}},{key:"attachTo",value:function(e){var t=new Yp(e),n=this.editor.plugins;if(t.attach(),n.has("WidgetToolbarRepository")){var r=n.get("WidgetToolbarRepository");t.on("begin",(function(){r.forceDisabled("resize")}),{priority:"lowest"}),t.on("cancel",(function(){r.clearForceDisabled("resize")}),{priority:"highest"}),t.on("commit",(function(){r.clearForceDisabled("resize")}),{priority:"highest"})}return this._resizers.set(e.viewElement,t),t}},{key:"_getResizerByHandle",value:function(e){var t,n=l(this._resizers.values());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.containsHandle(e))return r}}catch(e){n.e(e)}finally{n.f()}}},{key:"_getResizerByViewElement",value:function(e){return this._resizers.get(e)}},{key:"_mouseDownListener",value:function(e,t){var n=t.domTarget;Yp.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),e.stop(),t.preventDefault()))}},{key:"_mouseMoveListener",value:function(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}},{key:"_mouseUpListener",value:function(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}],[{key:"pluginName",get:function(){return"WidgetResize"}}]),n}(Ll);sn(Gp,mr);var Qp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.commands.get("imageResize");this.bind("isEnabled").to(n),t.editing.downcastDispatcher.on("insert:image",(function(n,r,i){var o=i.mapper.toViewElement(r.item),a=t.plugins.get(Gp).attachTo({unit:t.config.get("image.resizeUnit"),modelElement:r.item,viewElement:o,editor:t,getHandleHost:function(e){return e.querySelector("img")},getResizeHost:function(e){return e},isCentered:function(){var e=r.item.getAttribute("imageStyle");return!e||"full"==e||"alignCenter"==e},onCommit:function(e){t.execute("imageResize",{width:e})}});a.on("updateSize",(function(){o.hasClass("image_resized")||t.editing.view.change((function(e){e.addClass("image_resized",o)}))})),a.bind("isEnabled").to(e)}),{priority:"low"})}}],[{key:"requires",get:function(){return[Gp]}},{key:"pluginName",get:function(){return"ImageResizeHandles"}}]),n}(Ll);n(93);var Xp=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).defaultStyle=!1,i.styles=r.reduce((function(e,t){return e[t.name]=t,t.isDefault&&(i.defaultStyle=t.name),e}),{}),i}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=xh(e),e)if(e.hasAttribute("imageStyle")){var t=e.getAttribute("imageStyle");this.value=!!this.styles[t]&&t}else this.value=this.defaultStyle;else this.value=!1}},{key:"execute",value:function(e){var t=this,n=e.value,r=this.editor.model,i=r.document.selection.getSelectedElement();r.change((function(e){t.styles[n].isDefault?e.removeAttribute("imageStyle",i):e.setAttribute("imageStyle",n,i)}))}}]),n}(Fl);function Jp(e,t){var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.name===e)return i}}catch(e){r.e(e)}finally{r.f()}}var Zp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm2.5 3V12h11V7.5h-11zM4.061 6H15.94c.586 0 1.061.407 1.061.91v5.68c0 .503-.475.91-1.061.91H4.06c-.585 0-1.06-.407-1.06-.91V6.91C3 6.406 3.475 6 4.061 6zM2 16.5V15h16v1.5z"/></svg>',em='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M18 4.5V3H2v1.5h16zm0 3V6h-5.674v1.5H18zm0 3V9h-5.674v1.5H18zm0 3V12h-5.674v1.5H18zm-8.5-6V12h-6V7.5h6zm.818-1.5H2.682C2.305 6 2 6.407 2 6.91v5.68c0 .503.305.91.682.91h7.636c.377 0 .682-.407.682-.91V6.91c0-.503-.305-.91-.682-.91zM18 16.5V15H2v1.5h16z"/></svg>',tm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm4.5 3V12h7V7.5h-7zM5.758 6h8.484c.419 0 .758.407.758.91v5.681c0 .502-.34.909-.758.909H5.758c-.419 0-.758-.407-.758-.91V6.91c0-.503.34-.91.758-.91zM2 16.5V15h16v1.5z"/></svg>',nm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm0 3V6h5.674v1.5zm0 3V9h5.674v1.5zm0 3V12h5.674v1.5zm8.5-6V12h6V7.5h-6zM9.682 6h7.636c.377 0 .682.407.682.91v5.68c0 .503-.305.91-.682.91H9.682c-.377 0-.682-.407-.682-.91V6.91c0-.503.305-.91.682-.91zM2 16.5V15h16v1.5z"/></svg>',rm={full:{name:"full",title:"Full size image",icon:Zp,isDefault:!0},side:{name:"side",title:"Side image",icon:nm,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:em,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:tm,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:nm,className:"image-style-align-right"}},im={full:Zp,left:em,right:nm,center:tm};function om(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(am)}function am(e){if("string"==typeof e){var t=e;rm[t]?e=Object.assign({},rm[t]):(Object(Kt.c)("image-style-not-found",{name:t}),e={name:t})}else if(rm[e.name]){var n=rm[e.name],r=Object.assign({},e);for(var i in n)Object.prototype.hasOwnProperty.call(e,i)||(r[i]=n[i]);e=r}return"string"==typeof e.icon&&im[e.icon]&&(e.icon=im[e.icon]),e}var sm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.data,r=e.editing;e.config.define("image.styles",["full","side"]);var i=om(e.config.get("image.styles"));t.extend("image",{allowAttributes:"imageStyle"});var o=function(e){return function(t,n,r){if(r.consumable.consume(n.item,t.name)){var i=Jp(n.attributeNewValue,e),o=Jp(n.attributeOldValue,e),a=r.mapper.toViewElement(n.item),s=r.writer;o&&s.removeClass(o.className,a),i&&s.addClass(i.className,a)}}}(i);r.downcastDispatcher.on("attribute:imageStyle:image",o),n.downcastDispatcher.on("attribute:imageStyle:image",o),n.upcastDispatcher.on("element:figure",function(e){var t=e.filter((function(e){return!e.isDefault}));return function(e,n,r){if(n.modelRange){var i=n.viewItem,o=Vl(n.modelRange.getItems());if(r.schema.checkAttribute(o,"imageStyle")){var a,s=l(t);try{for(s.s();!(a=s.n()).done;){var c=a.value;r.consumable.consume(i,{classes:c.className})&&r.writer.setAttribute("imageStyle",c.name,o)}}catch(e){s.e(e)}finally{s.f()}}}}}(i),{priority:"low"}),e.commands.add("imageStyle",new Xp(e,i))}}],[{key:"pluginName",get:function(){return"ImageStyleEditing"}}]),n}(Ll);n(95);var cm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e,t=function(e,t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t[i.title]&&(i.title=t[i.title])}}catch(e){r.e(e)}finally{r.f()}return e}(om(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles),n=l(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._createButton(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"_createButton",value:function(e){var t=this,n=this.editor,r="imageStyle:"+e.name;n.ui.componentFactory.add(r,(function(r){var i=n.commands.get("imageStyle"),o=new kl(r);return o.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",(function(t){return t===e.name})),t.listenTo(o,"execute",(function(){n.execute("imageStyle",{value:e.name}),n.editing.view.focus()})),o}))}},{key:"localizedDefaultStylesTitles",get:function(){var e=this.editor.t;return{"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}}],[{key:"pluginName",get:function(){return"ImageStyleUI"}}]),n}(Ll),lm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor;if(t.plugins.has("BalloonToolbar")){var n=t.plugins.get("BalloonToolbar");this.listenTo(n,"show",(function(e){(function(e){var t=e.getSelectedElement();return!(!t||!dh(t))})(t.editing.view.document.selection)&&e.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui,"update",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui.focusTracker,"change:isFocused",(function(){e._updateToolbarsVisibility()}),{priority:"low"})}},{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this);var e,t=l(this._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){e.value.view.destroy()}}catch(e){t.e(e)}finally{t.f()}}},{key:"register",value:function(e,t){var n=t.ariaLabel,r=t.items,i=t.getRelatedElement,o=t.balloonClassName,a=void 0===o?"ck-toolbar-container":o;if(r.length){var s=this.editor,c=s.t,l=new Ol(s.locale);if(l.ariaLabel=n||c("Widget toolbar"),this._toolbarDefinitions.has(e))throw new Kt.a("widget-toolbar-duplicated",this,{toolbarId:e});l.fillFromConfig(r,s.ui.componentFactory),this._toolbarDefinitions.set(e,{view:l,getRelatedElement:i,balloonClassName:a})}else Object(Kt.c)("widget-toolbar-no-items",{toolbarId:e})}},{key:"_updateToolbarsVisibility",value:function(){var e,t=0,n=null,r=null,i=l(this._toolbarDefinitions.values());try{for(i.s();!(e=i.n()).done;){var o=e.value,a=o.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&a)if(this.editor.ui.focusTracker.isFocused){var s=a.getAncestors().length;s>t&&(t=s,n=a,r=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}}catch(e){i.e(e)}finally{i.f()}r&&this._showToolbar(r,n)}},{key:"_hideToolbar",value:function(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}},{key:"_showToolbar",value:function(e,t){var n=this;this._isToolbarVisible(e)?um(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:dm(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(function(){var e,t=l(n._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){var r=e.value;if(n._isToolbarVisible(r)){var i=r.getRelatedElement(n.editor.editing.view.document.selection);um(n.editor,i)}}}catch(e){t.e(e)}finally{t.f()}})))}},{key:"_isToolbarVisible",value:function(e){return this._balloon.visibleView===e.view}},{key:"_isToolbarInBalloon",value:function(e){return this._balloon.hasView(e.view)}}],[{key:"requires",get:function(){return[Jh]}},{key:"pluginName",get:function(){return"WidgetToolbarRepository"}}]),n}(Ll);function um(e,t){var n=e.plugins.get("ContextualBalloon"),r=dm(e,t);n.updatePosition(r)}function dm(e,t){var n=e.editing.view,r=nh.defaultPositions;return{target:n.domConverter.mapViewToDom(t),positions:[r.northArrowSouth,r.northArrowSouthWest,r.northArrowSouthEast,r.southArrowNorth,r.southArrowNorthWest,r.southArrowNorthEast,gh]}}var fm=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._childCommands=[],r}return m(n,[{key:"refresh",value:function(){}},{key:"execute",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._getFirstEnabledCommand().execute(t)}},{key:"registerChildCommand",value:function(e){var t=this;this._childCommands.push(e),e.on("change:isEnabled",(function(){return t._checkEnabled()})),this._checkEnabled()}},{key:"_checkEnabled",value:function(){this.isEnabled=!!this._getFirstEnabledCommand()}},{key:"_getFirstEnabledCommand",value:function(){return this._childCommands.find((function(e){return e.isEnabled}))}}]),n}(Fl),hm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.commands.add("indent",new fm(e)),e.commands.add("outdent",new fm(e))}}],[{key:"pluginName",get:function(){return"IndentEditing"}}]),n}(Ll),pm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95L5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',mm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',vm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,r="ltr"==t.uiLanguageDirection?pm:mm,i="ltr"==t.uiLanguageDirection?mm:pm;this._defineButton("indent",n("Increase indent"),r),this._defineButton("outdent",n("Decrease indent"),i)}},{key:"_defineButton",value:function(e,t,n){var r=this,i=this.editor;i.ui.componentFactory.add(e,(function(o){var a=i.commands.get(e),s=new kl(o);return s.set({label:t,icon:n,tooltip:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),r.listenTo(s,"execute",(function(){i.execute(e),i.editing.view.focus()})),s}))}}],[{key:"pluginName",get:function(){return"IndentUI"}}]),n}(Ll),gm="italic",bm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:gm}),e.model.schema.setAttributeProperties(gm,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:gm,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add(gm,new Pu(e,gm)),e.keystrokes.set("CTRL+I",gm)}}],[{key:"pluginName",get:function(){return"ItalicEditing"}}]),n}(Ll),ym="italic",km=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(ym,(function(r){var i=t.commands.get(ym),o=new kl(r);return o.set({label:n("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.586 14.633l.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(ym),t.editing.view.focus()})),o}))}}]),n}(Ll),wm=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).attributes=new Set,r._overrideUid=null,r}return m(n,null,[{key:"pluginName",get:function(){return"TwoStepCaretMovement"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model,r=t.editing.view,i=t.locale,o=n.document.selection;this.listenTo(r.document,"keydown",(function(t,n){if(o.isCollapsed&&!(n.shiftKey||n.altKey||n.ctrlKey)){var r=n.keyCode==Ur.arrowright,a=n.keyCode==Ur.arrowleft;if(r||a){var s=i.contentLanguageDirection;!0===("ltr"===s&&r||"rtl"===s&&a?e._handleForwardMovement(n):e._handleBackwardMovement(n))&&t.stop()}}}),{priority:Yt.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(o,"change:range",(function(t,n){e._isNextGravityRestorationSkipped?e._isNextGravityRestorationSkipped=!1:e._isGravityOverridden&&(!n.directChange&&xm(o.getFirstPosition(),e.attributes)||e._restoreGravity())}))}},{key:"registerAttribute",value:function(e){this.attributes.add(e)}},{key:"_handleForwardMovement",value:function(e){var t=this.attributes,n=this.editor.model.document.selection,r=n.getFirstPosition();return!this._isGravityOverridden&&(!r.isAtStart||!_m(n,t))&&(xm(r,t)?(Am(e),this._overrideGravity(),!0):void 0)}},{key:"_handleBackwardMovement",value:function(e){var t=this.attributes,n=this.editor.model,r=n.document.selection,i=r.getFirstPosition();return this._isGravityOverridden?(Am(e),this._restoreGravity(),Cm(n,t,i),!0):i.isAtStart?!!_m(r,t)&&(Am(e),Cm(n,t,i),!0):function(e,t){return xm(e.getShiftedBy(-1),t)}(i,t)?i.isAtEnd&&!_m(r,t)&&xm(i,t)?(Am(e),Cm(n,t,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}},{key:"_overrideGravity",value:function(){this._overrideUid=this.editor.model.change((function(e){return e.overrideSelectionGravity()}))}},{key:"_restoreGravity",value:function(){var e=this;this.editor.model.change((function(t){t.restoreSelectionGravity(e._overrideUid),e._overrideUid=null}))}},{key:"_isGravityOverridden",get:function(){return!!this._overrideUid}}]),n}(Ll);function _m(e,t){var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(e.hasAttribute(i))return!0}}catch(e){r.e(e)}finally{r.f()}return!1}function Cm(e,t,n){var r=n.nodeBefore;e.change((function(e){r?e.setSelectionAttribute(r.getAttributes()):e.removeSelectionAttribute(t)}))}function Am(e){e.preventDefault()}function xm(e,t){var n,r=e.nodeBefore,i=e.nodeAfter,o=l(t);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=r?r.getAttribute(a):void 0;if((i?i.getAttribute(a):void 0)!==s)return!0}}catch(e){o.e(e)}finally{o.f()}return!1}function Sm(e,t,n,r){return r.createRange(Mm(e,t,n,!0,r),Mm(e,t,n,!1,r))}function Mm(e,t,n,r,i){for(var o=e.textNode||(r?e.nodeBefore:e.nodeAfter),a=null;o&&o.getAttribute(t)==n;)a=o,o=r?o.previousSibling:o.nextSibling;return a?i.createPositionAt(a,r?"before":"after"):e}var Em=function(){function e(){h(this,e),this._definitions=new Set}return m(e,[{key:"add",value:function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t._definitions.add(e)})):this._definitions.add(e)}},{key:"getDispatcher",value:function(){var e=this;return function(t){t.on("attribute:linkHref",(function(t,n,r){if(r.consumable.test(n.item,"attribute:linkHref")){var i,o=r.writer,a=o.document.selection,s=l(e._definitions);try{for(s.s();!(i=s.n()).done;){var c=i.value,u=o.createAttributeElement("a",c.attributes,{priority:5});o.setCustomProperty("link",!0,u),c.callback(n.attributeNewValue)?n.item.is("selection")?o.wrap(a.getFirstRange(),u):o.wrap(r.mapper.toViewRange(n.range),u):o.unwrap(r.mapper.toViewRange(n.range),u)}}catch(e){s.e(e)}finally{s.f()}}}),{priority:"high"})}}},{key:"getDispatcherForLinkedImage",value:function(){var e=this;return function(t){t.on("attribute:linkHref:image",(function(t,n,r){var i,o=r.mapper.toViewElement(n.item),a=Array.from(o.getChildren()).find((function(e){return"a"===e.name})),s=l(e._definitions);try{for(s.s();!(i=s.n()).done;){var u=i.value,d=kn(u.attributes);if(u.callback(n.attributeNewValue)){var f,h=l(d);try{for(h.s();!(f=h.n()).done;){var p=c(f.value,2),m=p[0],v=p[1];"class"===m?r.writer.addClass(v,a):r.writer.setAttribute(m,v,a)}}catch(e){h.e(e)}finally{h.f()}}else{var g,b=l(d);try{for(b.s();!(g=b.n()).done;){var y=c(g.value,2),k=y[0],w=y[1];"class"===k?r.writer.removeClass(w,a):r.writer.removeAttribute(k,a)}}catch(e){b.e(e)}finally{b.f()}}}}catch(e){s.e(e)}finally{s.f()}}))}}},{key:"length",get:function(){return this._definitions.size}}]),e}(),Tm=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).manualDecorators=new cn,r.automaticDecorators=new Em,r}return m(n,[{key:"restoreManualDecoratorStates",value:function(){var e,t=l(this.manualDecorators);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.value=this._getDecoratorStateFromModel(n.id)}}catch(e){t.e(e)}finally{t.f()}}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=Vl(t.selection.getSelectedBlocks());wu(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.selection.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref"));var r,i=l(this.manualDecorators);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.value=this._getDecoratorStateFromModel(o.id)}}catch(e){i.e(e)}finally{i.f()}}},{key:"execute",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.editor.model,i=r.document.selection,o=[],a=[];for(var s in n)n[s]?o.push(s):a.push(s);r.change((function(n){if(i.isCollapsed){var s=i.getFirstPosition();if(i.hasAttribute("linkHref")){var c=Sm(s,"linkHref",i.getAttribute("linkHref"),r);n.setAttribute("linkHref",e,c),o.forEach((function(e){n.setAttribute(e,!0,c)})),a.forEach((function(e){n.removeAttribute(e,c)})),n.setSelection(n.createPositionAfter(c.end.nodeBefore))}else if(""!==e){var u=kn(i.getAttributes());u.set("linkHref",e),o.forEach((function(e){u.set(e,!0)}));var d=n.createText(e,u);r.insertContent(d,s),n.setSelection(n.createPositionAfter(d))}["linkHref"].concat(o,a).forEach((function(e){n.removeSelectionAttribute(e)}))}else{var f,h=r.schema.getValidRanges(i.getRanges(),"linkHref"),p=[],m=l(i.getSelectedBlocks());try{for(m.s();!(f=m.n()).done;){var v=f.value;r.schema.checkAttribute(v,"linkHref")&&p.push(n.createRangeOn(v))}}catch(e){m.e(e)}finally{m.f()}var g,b=p.slice(),y=l(h);try{for(y.s();!(g=y.n()).done;){var k=g.value;t._isRangeToUpdate(k,p)&&b.push(k)}}catch(e){y.e(e)}finally{y.f()}var w,_=l(b);try{var C=function(){var t=w.value;n.setAttribute("linkHref",e,t),o.forEach((function(e){n.setAttribute(e,!0,t)})),a.forEach((function(e){n.removeAttribute(e,t)}))};for(_.s();!(w=_.n()).done;)C()}catch(e){_.e(e)}finally{_.f()}}}))}},{key:"_getDecoratorStateFromModel",value:function(e){var t=this.editor.model,n=t.document,r=Vl(n.selection.getSelectedBlocks());return wu(r,t.schema)?r.getAttribute(e):n.selection.getAttribute(e)}},{key:"_isRangeToUpdate",value:function(e,t){var n,r=l(t);try{for(r.s();!(n=r.n()).done;){if(n.value.containsRange(e))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}}]),n}(Fl),Dm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=Vl(t.selection.getSelectedBlocks());wu(n,e.schema)?this.isEnabled=e.schema.checkAttribute(n,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref")}},{key:"execute",value:function(){var e=this.editor,t=this.editor.model,n=t.document.selection,r=e.commands.get("link");t.change((function(e){var i,o=l(n.isCollapsed?[Sm(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),t)]:n.getRanges());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(e.removeAttribute("linkHref",a),r){var s,c=l(r.manualDecorators);try{for(c.s();!(s=c.n()).done;){var u=s.value;e.removeAttribute(u.id,a)}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){o.e(e)}finally{o.f()}}))}}]),n}(Fl),Om=function e(t){var n=t.id,r=t.label,i=t.attributes,o=t.defaultValue;h(this,e),this.id=n,this.set("value"),this.defaultValue=o,this.label=r,this.attributes=i};sn(Om,mr),n(97);var Pm="automatic",Im=/^(https?:)?\/\//,jm=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("link",{addTargetToExternalLinks:!1}),r}return m(n,null,[{key:"pluginName",get:function(){return"LinkEditing"}},{key:"requires",get:function(){return[wm,hd,Vu]}}]),m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:yu}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:function(e,t){return yu(ku(e),t)}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:function(e){return e.getAttribute("href")}}}),e.commands.add("link",new Tm(e)),e.commands.add("unlink",new Dm(e));var t=function(e,t){var n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((function(e){return e.label&&n[e.label]&&(e.label=n[e.label]),e})),t}(e.t,function(e){var t=[];if(e)for(var n=0,r=Object.entries(e);n<r.length;n++){var i=c(r[n],2),o=i[0],a=i[1],s=Object.assign({},a,{id:"link"+hu(o)});t.push(s)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(t.filter((function(e){return e.mode===Pm}))),this._enableManualDecorators(t.filter((function(e){return"manual"===e.mode}))),e.plugins.get(wm).registerAttribute("linkHref"),function(e,t,n,r){var i=e.editing.view,o=new Set;i.document.registerPostFixer((function(n){var i=e.model.document.selection,a=!1;if(i.hasAttribute(t)){var s,c=Sm(i.getFirstPosition(),t,i.getAttribute(t),e.model),u=l(e.editing.mapper.toViewRange(c).getItems());try{for(u.s();!(s=u.n()).done;){var d=s.value;d.is("element","a")&&!d.hasClass(r)&&(n.addClass(r,d),o.add(d),a=!0)}}catch(e){u.e(e)}finally{u.f()}}return a})),e.conversion.for("editingDowncast").add((function(e){function t(){i.change((function(e){var t,n=l(o.values());try{for(n.s();!(t=n.n()).done;){var i=t.value;e.removeClass(r,i),o.delete(i)}}catch(e){n.e(e)}finally{n.f()}}))}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})}))}(e,"linkHref",0,"ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}},{key:"_enableAutomaticDecorators",value:function(e){var t=this.editor,n=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:Pm,callback:function(e){return Im.test(e)},attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(e),n.length&&t.conversion.for("downcast").add(n.getDispatcher())}},{key:"_enableManualDecorators",value:function(e){if(e.length){var t=this.editor,n=t.commands.get("link").manualDecorators;e.forEach((function(e){t.model.schema.extend("$text",{allowAttributes:e.id}),n.add(new Om(e)),t.conversion.for("downcast").attributeToElement({model:e.id,view:function(t,r){var i=r.writer;if(t){var o=n.get(e.id).attributes,a=i.createAttributeElement("a",o,{priority:5});return i.setCustomProperty("link",!0,a),a}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:n.get(e.id).attributes},model:{key:e.id}})}))}}},{key:"_enableInsertContentSelectionAttributesFixer",value:function(){var e=this.editor,t=e.model,n=t.document.selection,r=e.commands.get("link");this.listenTo(t,"insertContent",(function(){var e=n.anchor.nodeBefore,i=n.anchor.nodeAfter;n.hasAttribute("linkHref")&&e&&e.hasAttribute("linkHref")&&(i&&i.hasAttribute("linkHref")||t.change((function(e){Nm(e,r.manualDecorators)})))}),{priority:"low"})}},{key:"_enableClickingAfterLink",value:function(){var e=this.editor,t=e.commands.get("link");e.editing.view.addObserver(Ih);var n=!1;this.listenTo(e.editing.view.document,"mousedown",(function(){n=!0})),this.listenTo(e.editing.view.document,"selectionChange",(function(){if(n){n=!1;var r=e.model.document.selection;if(r.isCollapsed&&r.hasAttribute("linkHref")){var i=r.getFirstPosition(),o=Sm(i,"linkHref",r.getAttribute("linkHref"),e.model);(i.isTouching(o.start)||i.isTouching(o.end))&&e.model.change((function(e){Nm(e,t.manualDecorators)}))}}}))}},{key:"_enableTypingOverLink",value:function(){var e,t,n=this.editor,r=n.editing.view;this.listenTo(r.document,"delete",(function(){t=!0}),{priority:"high"}),this.listenTo(n.model,"deleteContent",(function(){var r=n.model.document.selection;r.isCollapsed||(t?t=!1:Rm(n)&&function(e){var t=e.document.selection,n=t.getFirstPosition(),r=t.getLastPosition(),i=n.nodeAfter;return!!i&&(!!i.is("$text")&&(!!i.hasAttribute("linkHref")&&(i===(r.textNode||r.nodeBefore)||Sm(n,"linkHref",i.getAttribute("linkHref"),e).containsRange(e.createRange(n,r),!0))))}(n.model)&&(e=r.getAttributes()))}),{priority:"high"}),this.listenTo(n.model,"insertContent",(function(r,i){var o=c(i,1)[0];t=!1,Rm(n)&&e&&(n.model.change((function(t){var n,r=l(e);try{for(r.s();!(n=r.n()).done;){var i=c(n.value,2),a=i[0],s=i[1];t.setAttribute(a,s,o)}}catch(e){r.e(e)}finally{r.f()}})),e=null)}),{priority:"high"})}},{key:"_handleDeleteContentAfterLink",value:function(){var e=this.editor,t=e.model,n=t.document.selection,r=e.editing.view,i=e.commands.get("link"),o=!1,a=!1;this.listenTo(r.document,"delete",(function(e,t){a=t.domEvent.keyCode===Ur.backspace}),{priority:"high"}),this.listenTo(t,"deleteContent",(function(){o=!1;var e=n.getFirstPosition(),r=n.getAttribute("linkHref");if(r){var i=Sm(e,"linkHref",r,t);o=i.containsPosition(e)||i.end.isEqual(e)}}),{priority:"high"}),this.listenTo(t,"deleteContent",(function(){a&&(a=!1,o||e.model.enqueueChange((function(e){Nm(e,i.manualDecorators)})))}),{priority:"low"})}}]),n}(Ll);function Nm(e,t){e.removeSelectionAttribute("linkHref");var n,r=l(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.removeSelectionAttribute(i.id)}}catch(e){r.e(e)}finally{r.f()}}function Rm(e){return e.plugins.get("Input").isInput(e.model.change((function(e){return e.batch})))}var Lm=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType="click",r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo);n(99);var Bm=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;h(this,n),o=t.call(this,e);var a=e.t;o.focusTracker=new Cc,o.keystrokes=new mc,o.urlInputView=o._createUrlInput(i),o.saveButtonView=o._createButton(a("Save"),Kh,"ck-button-save"),o.saveButtonView.type="submit",o.cancelButtonView=o._createButton(a("Cancel"),Gh,"ck-button-cancel","cancel"),o._manualDecoratorSwitches=o._createManualDecoratorSwitches(r),o.children=o._createFormChildren(r.manualDecorators),o._focusables=new Oc,o._focusCycler=new sl({focusables:o._focusables,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});var s=["ck","ck-link-form","ck-responsive-form"];return r.manualDecorators.length&&s.push("ck-link-form_layout-vertical","ck-vertical-form"),o.setTemplate({tag:"form",attributes:{class:s,tabindex:"-1"},children:o.children}),o}return m(n,[{key:"getDecoratorSwitchesState",value:function(){return Array.from(this._manualDecoratorSwitches).reduce((function(e,t){return e[t.name]=t.isOn,e}),{})}},{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),Yh({view:this}),[this.urlInputView].concat(u(this._manualDecoratorSwitches),[this.saveButtonView,this.cancelButtonView]).forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createUrlInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://",t=this.locale.t,n=new Uh(this.locale,Wh);return n.label=t("Link URL"),n.fieldView.placeholder=e+"example.com",n}},{key:"_createButton",value:function(e,t,n,r){var i=new kl(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"_createManualDecoratorSwitches",value:function(e){var t,n=this,r=this.createCollection(),i=l(e.manualDecorators);try{var o=function(){var i=t.value,o=new Sl(n.locale);o.set({name:i.id,label:i.label,withText:!0}),o.bind("isOn").toMany([i,e],"value",(function(e,t){return void 0===t&&void 0===e?i.defaultValue:e})),o.on("execute",(function(){i.set("value",!o.isOn)})),r.add(o)};for(i.s();!(t=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_createFormChildren",value:function(e){var t=this.createCollection();if(t.add(this.urlInputView),e.length){var n=new Xc;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((function(e){return{tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}}})),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(n)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}]),n}(Xc);n(101);var Fm=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),r=t.call(this,e);var i=e.t;return r.focusTracker=new Cc,r.keystrokes=new mc,r.previewButtonView=r._createPreviewButton(),r.unlinkButtonView=r._createButton(i("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562l-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),r.editButtonView=r._createButton(i("Edit link"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.3 17.37l-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506L13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5L9.375 17H19v1.5H8z"/></svg>',"edit"),r.set("href"),r._focusables=new Oc,r._focusCycler=new sl({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[r.previewButtonView,r.editButtonView,r.unlinkButtonView]}),r}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createButton",value:function(e,t,n){var r=new kl(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.delegate("execute").to(this,n),r}},{key:"_createPreviewButton",value:function(){var e=new kl(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",(function(e){return e&&ku(e)})),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",(function(e){return e||n("This link has no URL")})),e.bind("isEnabled").to(this,"href",(function(e){return!!e})),e.template.tag="a",e.template.eventListeners={},e}}]),n}(Xc),zm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',Vm="link-ui",$m=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.editing.view.addObserver(Lm),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=e.plugins.get(Jh),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),e.conversion.for("editingDowncast").markerToHighlight({model:Vm,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:Vm,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}},{key:"destroy",value:function(){s(A(n.prototype),"destroy",this).call(this),this.formView.destroy()}},{key:"_createActionsView",value:function(){var e=this,t=this.editor,n=new Fm(t.locale),r=t.commands.get("link"),i=t.commands.get("unlink");return n.bind("href").to(r,"value"),n.editButtonView.bind("isEnabled").to(r),n.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(n,"edit",(function(){e._addFormView()})),this.listenTo(n,"unlink",(function(){t.execute("unlink"),e._hideUI()})),n.keystrokes.set("Esc",(function(t,n){e._hideUI(),n()})),n.keystrokes.set(bu,(function(t,n){e._addFormView(),n()})),n}},{key:"_createFormView",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),r=t.config.get("link.defaultProtocol"),i=new Bm(t.locale,n,r);return i.urlInputView.fieldView.bind("value").to(n,"value"),i.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e})),i.saveButtonView.bind("isEnabled").to(n),this.listenTo(i,"submit",(function(){var n=_u(i.urlInputView.fieldView.element.value,r);t.execute("link",n,i.getDecoratorSwitchesState()),e._closeFormView()})),this.listenTo(i,"cancel",(function(){e._closeFormView()})),i.keystrokes.set("Esc",(function(t,n){e._closeFormView(),n()})),i}},{key:"_createToolbarLinkButton",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),r=t.t;t.keystrokes.set(bu,(function(t,r){r(),n.isEnabled&&e._showUI(!0)})),t.ui.componentFactory.add("link",(function(t){var i=new kl(t);return i.isEnabled=!0,i.label=r("Link"),i.icon=zm,i.keystroke=bu,i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(n,"isEnabled"),i.bind("isOn").to(n,"value",(function(e){return!!e})),e.listenTo(i,"execute",(function(){return e._showUI(!0)})),i}))}},{key:"_enableUserBalloonInteractions",value:function(){var e=this,t=this.editor.editing.view.document;this.listenTo(t,"click",(function(){e._getSelectedLinkElement()&&e._showUI()})),this.editor.keystrokes.set("Tab",(function(t,n){e._areActionsVisible&&!e.actionsView.focusTracker.isFocused&&(e.actionsView.focus(),n())}),{priority:"high"}),this.editor.keystrokes.set("Esc",(function(t,n){e._isUIVisible&&(e._hideUI(),n())})),Ml({emitter:this.formView,activator:function(){return e._isUIInPanel},contextElements:[this._balloon.view.element],callback:function(){return e._hideUI()}})}},{key:"_addActionsView",value:function(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}},{key:"_addFormView",value:function(){if(!this._isFormInPanel){var e=this.editor.commands.get("link");this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.urlInputView.fieldView.element.value=e.value||""}}},{key:"_closeFormView",value:function(){var e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}},{key:"_removeFormView",value:function(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}},{key:"_showUI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}},{key:"_hideUI",value:function(){if(this._isUIInPanel){var e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}}},{key:"_startUpdatingUI",value:function(){var e=this,t=this.editor,n=t.editing.view.document,r=this._getSelectedLinkElement(),i=a(),o=function(){var t=e._getSelectedLinkElement(),n=a();r&&!t||!r&&n!==i?e._hideUI():e._isUIVisible&&e._balloon.updatePosition(e._getBalloonPositionData()),r=t,i=n};function a(){return n.selection.focus.getAncestors().reverse().find((function(e){return e.is("element")}))}this.listenTo(t.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}},{key:"_getBalloonPositionData",value:function(){var e=this.editor.editing.view,t=this.editor.model,n=e.document,r=null;if(t.markers.has(Vm)){var i=Array.from(this.editor.editing.mapper.markerNameToElements(Vm)),o=e.createRange(e.createPositionBefore(i[0]),e.createPositionAfter(i[i.length-1]));r=e.domConverter.viewRangeToDom(o)}else{var a=this._getSelectedLinkElement(),s=n.selection.getFirstRange();r=a?e.domConverter.mapViewToDom(a):e.domConverter.viewRangeToDom(s)}return{target:r}}},{key:"_getSelectedLinkElement",value:function(){var e=this.editor.editing.view,t=e.document.selection;if(t.isCollapsed)return Hm(t.getFirstPosition());var n=t.getFirstRange().getTrimmed(),r=Hm(n.start),i=Hm(n.end);return r&&r==i&&e.createRangeIn(r).getTrimmed().isEqual(n)?r:null}},{key:"_showFakeVisualSelection",value:function(){var e=this.editor.model;e.change((function(t){var n=e.document.selection.getFirstRange();if(e.markers.has(Vm))t.updateMarker(Vm,{range:n});else if(n.start.isAtEnd){var r=function e(t,n,r){var i=[t.start.path[0]+1,0],o=r.createPositionFromPath(t.start.root,i,"toNext"),a=r.createRange(o,t.end);return a.start.path[0]>t.end.path[0]?r.createRange(n):o.isAtStart&&o.isAtEnd?e(a,n,r):a}(n,e.document.selection.focus,t);t.addMarker(Vm,{usingOperation:!1,affectsData:!1,range:r})}else t.addMarker(Vm,{usingOperation:!1,affectsData:!1,range:n})}))}},{key:"_hideFakeVisualSelection",value:function(){var e=this.editor.model;e.markers.has(Vm)&&e.change((function(e){e.removeMarker(Vm)}))}},{key:"_isFormInPanel",get:function(){return this._balloon.hasView(this.formView)}},{key:"_areActionsInPanel",get:function(){return this._balloon.hasView(this.actionsView)}},{key:"_areActionsVisible",get:function(){return this._balloon.visibleView===this.actionsView}},{key:"_isUIInPanel",get:function(){return this._isFormInPanel||this._areActionsInPanel}},{key:"_isUIVisible",get:function(){return this._balloon.visibleView==this.formView||this._areActionsVisible}}],[{key:"requires",get:function(){return[Jh]}},{key:"pluginName",get:function(){return"LinkUI"}}]),n}(Ll);function Hm(e){return e.getAncestors().find((function(e){return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))}var Um=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("image",{allowAttributes:["linkHref"]}),e.conversion.for("upcast").add((function(e){e.on("element:a",(function(e,t,n){var r=t.viewItem,i=Km(r);if(i){if(n.consumable.consume(r,{attributes:["href"]})){var o=r.getAttribute("href");if(o){var a=t.modelCursor.parent;if(!a.is("element","image")){var s=n.convertItem(i,t.modelCursor);t.modelRange=s.modelRange,t.modelCursor=s.modelCursor,a=t.modelCursor.nodeBefore}a&&a.is("element","image")&&n.writer.setAttribute("linkHref",o,a)}}}}),{priority:"high"})})),e.conversion.for("editingDowncast").add(qm({attachIconIndicator:!0})),e.conversion.for("dataDowncast").add(qm({attachIconIndicator:!1})),this._enableAutomaticDecorators(),this._enableManualDecorators()}},{key:"_enableAutomaticDecorators",value:function(){var e=this.editor,t=e.commands.get("link").automaticDecorators;t.length&&e.conversion.for("downcast").add(t.getDispatcherForLinkedImage())}},{key:"_enableManualDecorators",value:function(){var e,t=this.editor,n=t.commands.get("link"),r=n.manualDecorators,i=l(n.manualDecorators);try{for(i.s();!(e=i.n()).done;){var o=e.value;t.model.schema.extend("image",{allowAttributes:o.id}),t.conversion.for("downcast").add(Wm(r,o)),t.conversion.for("upcast").add(Ym(r,o))}}catch(e){i.e(e)}finally{i.f()}}}],[{key:"requires",get:function(){return[Oh,jm]}},{key:"pluginName",get:function(){return"LinkImageEditing"}}]),n}(Ll);function qm(e){return function(t){t.on("attribute:linkHref:image",(function(t,n,r){var i,o=r.mapper.toViewElement(n.item),a=r.writer,s=Array.from(o.getChildren()).find((function(e){return"a"===e.name}));if(e.attachIconIndicator&&(i=a.createUIElement("span",{class:"ck ck-link-image_icon"},(function(e){var t=this.toDomElement(e);return t.innerHTML=zm,t}))),s)if(n.attributeNewValue)a.setAttribute("href",n.attributeNewValue,s);else{var c=Array.from(s.getChildren()).find((function(e){return"img"===e.name}));a.move(a.createRangeOn(c),a.createPositionAt(o,0)),a.remove(s)}else{var l=a.createContainerElement("a",{href:n.attributeNewValue});a.insert(a.createPositionAt(o,0),l),a.move(a.createRangeOn(o.getChild(1)),a.createPositionAt(l,0)),i&&a.insert(a.createPositionAt(l,"end"),i)}}))}}function Wm(e,t){return function(n){n.on("attribute:".concat(t.id,":image"),(function(n,r,i){var o,a=e.get(t.id).attributes,s=i.mapper.toViewElement(r.item),u=Array.from(s.getChildren()).find((function(e){return"a"===e.name})),d=l(kn(a));try{for(d.s();!(o=d.n()).done;){var f=c(o.value,2),h=f[0],p=f[1];i.writer.setAttribute(h,p,u)}}catch(e){d.e(e)}finally{d.f()}}))}}function Ym(e,t){return function(n){n.on("element:a",(function(n,r,i){var o=r.viewItem;if(Km(o)){var a={attributes:e.get(t.id).attributes},s=new wn(a).match(o);if(s&&i.consumable.consume(o,s.match)){var c=r.modelCursor.nodeBefore||r.modelCursor.parent;i.writer.setAttribute(t.id,!0,c)}}}),{priority:"high"})}}function Km(e){return Array.from(e.getChildren()).find((function(e){return"img"===e.name}))}var Gm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor.editing.view.document;this.listenTo(e,"click",(function(t,n){Qm(e.selection.getSelectedElement())&&n.preventDefault()})),this._createToolbarLinkImageButton()}},{key:"_createToolbarLinkImageButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("linkImage",(function(r){var i=new kl(r),o=t.plugins.get("LinkUI"),a=t.commands.get("link");return i.set({isEnabled:!0,label:n("Link image"),icon:zm,keystroke:bu,tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(a,"isEnabled"),i.bind("isOn").to(a,"value",(function(e){return!!e})),e.listenTo(i,"execute",(function(){Qm(t.editing.view.document.selection.getSelectedElement())?o._addActionsView():o._showUI(!0)})),i}))}}],[{key:"requires",get:function(){return[ip,jm,$m]}},{key:"pluginName",get:function(){return"LinkImageUI"}}]),n}(Ll);function Qm(e){return!(!e||!Ch(e))&&e.getChild(0).is("element","a")}n(103);var Xm=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).type=r,i}return m(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document,r=Array.from(n.selection.getSelectedBlocks()).filter((function(e){return Zm(e,t.schema)})),i=!0===this.value;t.change((function(t){if(i){for(var n=r[r.length-1].nextSibling,o=Number.POSITIVE_INFINITY,a=[];n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){var s=n.getAttribute("listIndent");s<o&&(o=s);var c=s-o;a.push({element:n,listIndent:c}),n=n.nextSibling}var u,d=l(a=a.reverse());try{for(d.s();!(u=d.n()).done;){var f=u.value;t.setAttribute("listIndent",f.listIndent,f.element)}}catch(e){d.e(e)}finally{d.f()}}if(!i){var h,p=Number.POSITIVE_INFINITY,m=l(r);try{for(m.s();!(h=m.n()).done;){var v=h.value;v.is("element","listItem")&&v.getAttribute("listIndent")<p&&(p=v.getAttribute("listIndent"))}}catch(e){m.e(e)}finally{m.f()}Jm(r,!0,p=0===p?1:p),Jm(r,!1,p)}var g,b=l(r.reverse());try{for(b.s();!(g=b.n()).done;){var y=g.value;i&&"listItem"==y.name?t.rename(y,"paragraph"):i||"listItem"==y.name?i||"listItem"!=y.name||y.getAttribute("listType")==e.type||t.setAttribute("listType",e.type,y):(t.setAttributes({listType:e.type,listIndent:0},y),t.rename(y,"listItem"))}}catch(e){b.e(e)}finally{b.f()}e.fire("_executeCleanup",r)}))}},{key:"_getValue",value:function(){var e=Vl(this.editor.model.document.selection.getSelectedBlocks());return!!e&&e.is("element","listItem")&&e.getAttribute("listType")==this.type}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.document.selection,t=this.editor.model.schema,n=Vl(e.getSelectedBlocks());return!!n&&Zm(n,t)}}]),n}(Fl);function Jm(e,t,n){var r=t?e[0]:e[e.length-1];if(r.is("element","listItem"))for(var i=r[t?"previousSibling":"nextSibling"],o=r.getAttribute("listIndent");i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=n;)o>i.getAttribute("listIndent")&&(o=i.getAttribute("listIndent")),i.getAttribute("listIndent")==o&&e[t?"unshift":"push"](i),i=i[t?"previousSibling":"nextSibling"]}function Zm(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}var ev=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e))._indentBy="forward"==r?1:-1,i}return m(n,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document,r=Array.from(n.selection.getSelectedBlocks());t.change((function(t){for(var n=r[r.length-1],i=n.nextSibling;i&&"listItem"==i.name&&i.getAttribute("listIndent")>n.getAttribute("listIndent");)r.push(i),i=i.nextSibling;e._indentBy<0&&(r=r.reverse());var o,a=l(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=s.getAttribute("listIndent")+e._indentBy;c<0?t.rename(s,"paragraph"):t.setAttribute("listIndent",c,s)}}catch(e){a.e(e)}finally{a.f()}e.fire("_executeCleanup",r)}))}},{key:"_checkEnabled",value:function(){var e=Vl(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){for(var t=e.getAttribute("listIndent"),n=e.getAttribute("listType"),r=e.previousSibling;r&&r.is("element","listItem")&&r.getAttribute("listIndent")>=t;){if(r.getAttribute("listIndent")==t)return r.getAttribute("listType")==n;r=r.previousSibling}return!1}return!0}}]),n}(Fl);function tv(e,t,n,r){var i=t.parent,o=n.mapper,a=n.writer,s=o.toViewPosition(r.createPositionBefore(e)),c=iv(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),u=e.previousSibling;if(c&&c.getAttribute("listIndent")==e.getAttribute("listIndent")){var d=o.toViewElement(c);s=a.breakContainer(a.createPositionAfter(d))}else if(u&&"listItem"==u.name){s=o.toViewPosition(r.createPositionAt(u,"end"));var f=o.findMappedViewAncestor(s),h=function(e){var t,n=l(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;if("ul"==r.name||"ol"==r.name)return r}}catch(e){n.e(e)}finally{n.f()}return null}(f);s=h?a.createPositionBefore(h):a.createPositionAt(f,"end")}else s=o.toViewPosition(r.createPositionBefore(e));if(s=rv(s),a.insert(s,i),u&&"listItem"==u.name){var p,m=o.toViewElement(u),v=a.createRange(a.createPositionAt(m,0),s).getWalker({ignoreElementEnd:!0}),g=l(v);try{for(g.s();!(p=g.n()).done;){var b=p.value;if(b.item.is("element","li")){var y=a.breakContainer(a.createPositionBefore(b.item)),k=b.item.parent,w=a.createPositionAt(t,"end");nv(a,w.nodeBefore,w.nodeAfter),a.move(a.createRangeOn(k),w),v.position=y}}}catch(e){g.e(e)}finally{g.f()}}else{var _=i.nextSibling;if(_&&(_.is("element","ul")||_.is("element","ol"))){var C,A=null,x=l(_.getChildren());try{for(x.s();!(C=x.n()).done;){var S=C.value,M=o.toModelElement(S);if(!(M&&M.getAttribute("listIndent")>e.getAttribute("listIndent")))break;A=S}}catch(e){x.e(e)}finally{x.f()}A&&(a.breakContainer(a.createPositionAfter(A)),a.move(a.createRangeOn(A.parent),a.createPositionAt(t,"end")))}}nv(a,i,i.nextSibling),nv(a,i.previousSibling,i)}function nv(e,t,n){return!t||!n||"ul"!=t.name&&"ol"!=t.name||t.name!=n.name||t.getAttribute("class")!==n.getAttribute("class")?null:e.mergeContainers(e.createPositionAfter(t))}function rv(e){return e.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))}function iv(e,t){for(var n=!!t.sameIndent,r=!!t.smallerIndent,i=t.listIndent,o=e;o&&"listItem"==o.name;){var a=o.getAttribute("listIndent");if(n&&i==a||r&&i>a)return o;o="forward"===t.direction?o.nextSibling:o.previousSibling}return null}function ov(e,t,n,r){e.ui.componentFactory.add(t,(function(i){var o=e.commands.get(t),a=new kl(i);return a.set({label:n,icon:r,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),a.on("execute",(function(){e.execute(t),e.editing.view.focus()})),a}))}function av(){var e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:lr.call(this)}function sv(e){return function(t,n,r){var i=r.consumable;if(i.test(n.item,"insert")&&i.test(n.item,"attribute:listType")&&i.test(n.item,"attribute:listIndent")){i.consume(n.item,"insert"),i.consume(n.item,"attribute:listType"),i.consume(n.item,"attribute:listIndent");var o=n.item;tv(o,function(e,t){var n=t.mapper,r=t.writer,i="numbered"==e.getAttribute("listType")?"ol":"ul",o=function(e){var t=e.createContainerElement("li");return t.getFillerOffset=av,t}(r),a=r.createContainerElement(i,null);return r.insert(r.createPositionAt(a,0),o),n.bindElements(e,o),o}(o,r),r,e)}}}function cv(e,t,n){if(n.consumable.consume(t.item,"attribute:listType")){var r=n.mapper.toViewElement(t.item),i=n.writer;i.breakContainer(i.createPositionBefore(r)),i.breakContainer(i.createPositionAfter(r));var o=r.parent,a="numbered"==t.attributeNewValue?"ol":"ul";i.rename(a,o)}}function lv(e,t,n){var r=n.mapper.toViewElement(t.item).parent,i=n.writer;nv(i,r,r.nextSibling),nv(i,r.previousSibling,r);var o,a=l(t.item.getChildren());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.consumable.consume(s,"insert")}}catch(e){a.e(e)}finally{a.f()}}function uv(e,t,n){if("listItem"!=t.item.name){for(var r=n.mapper.toViewPosition(t.range.start),i=n.writer,o=[];("ul"==r.parent.name||"ol"==r.parent.name)&&"li"==(r=i.breakContainer(r)).parent.name;){var a=r,s=i.createPositionAt(r.parent,"end");if(!a.isEqual(s)){var c=i.remove(i.createRange(a,s));o.push(c)}r=i.createPositionAfter(r.parent)}if(o.length>0){for(var l=0;l<o.length;l++){var u=r.nodeBefore;if(r=i.insert(r,o[l]).end,l>0){var d=nv(i,u,u.nextSibling);d&&d.parent==u&&r.offset--}}nv(i,r.nodeBefore,r.nodeAfter)}}}function dv(e,t,n){var r=n.mapper.toViewPosition(t.position),i=r.nodeBefore,o=r.nodeAfter;nv(n.writer,i,o)}function fv(e,t,n){if(n.consumable.consume(t.viewItem,{name:!0})){var r=n.writer,i=r.createElement("listItem"),o=function(e){for(var t=0,n=e.parent;n;){if(n.is("element","li"))t++;else{var r=n.previousSibling;r&&r.is("element","li")&&t++}n=n.parent}return t}(t.viewItem);r.setAttribute("listIndent",o,i);var a=t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted";if(r.setAttribute("listType",a,i),!n.safeInsert(i,t.modelCursor))return;var s=function(e,t,n){var r,i=n.writer,o=n.schema,a=i.createPositionAfter(e),s=l(t);try{for(s.s();!(r=s.n()).done;){var c=r.value;if("ul"==c.name||"ol"==c.name)a=n.convertItem(c,a).modelCursor;else{var u=n.convertItem(c,i.createPositionAt(e,"end")),d=u.modelRange.start.nodeAfter;d&&d.is("element")&&!o.checkChild(e,d.name)&&(e=u.modelCursor.parent.is("element","listItem")?u.modelCursor.parent:gv(u.modelCursor),a=i.createPositionAfter(e))}}}catch(e){s.e(e)}finally{s.f()}return a}(i,t.viewItem.getChildren(),n);t.modelRange=r.createRange(t.modelCursor,s),n.updateConversionResult(i,t)}}function hv(e,t,n){if(n.consumable.test(t.viewItem,{name:!0}))for(var r=0,i=Array.from(t.viewItem.getChildren());r<i.length;r++){var o=i[r];!o.is("element","li")&&!yv(o)&&o._remove()}}function pv(e,t,n){if(n.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;var r,i=!1,o=!0,a=l(u(t.viewItem.getChildren()));try{for(a.s();!(r=a.n()).done;){var s=r.value;i&&!yv(s)&&s._remove(),s.is("$text")?(o&&(s._data=s.data.replace(/^\s+/,"")),s.nextSibling&&!yv(s.nextSibling)||(s._data=s.data.replace(/\s+$/,""))):yv(s)&&(i=!0),o=!1}}catch(e){a.e(e)}finally{a.f()}}}function mv(e){return function(t,n){if(!n.isPhantom){var r=n.modelPosition.nodeBefore;if(r&&r.is("element","listItem")){var i,o=n.mapper.toViewElement(r),a=o.getAncestors().find(yv),s=l(e.createPositionAt(o,0).getWalker());try{for(s.s();!(i=s.n()).done;){var c=i.value;if("elementStart"==c.type&&c.item.is("element","li")){n.viewPosition=c.previousPosition;break}if("elementEnd"==c.type&&c.item==a){n.viewPosition=c.nextPosition;break}}}catch(e){s.e(e)}finally{s.f()}}}}}function vv(e,t){var n,r=c(t,2),i=r[0],o=r[1],a=i.is("documentFragment")?i.getChild(0):i;if(n=o?this.createSelection(o):this.document.selection,a&&a.is("element","listItem")){var s=n.getFirstPosition(),l=null;if(s.parent.is("element","listItem")?l=s.parent:s.nodeBefore&&s.nodeBefore.is("element","listItem")&&(l=s.nodeBefore),l){var u=l.getAttribute("listIndent");if(u>0)for(;a&&a.is("element","listItem");)a._setAttribute("listIndent",a.getAttribute("listIndent")+u),a=a.nextSibling}}}function gv(e){var t,n=new Qo({startPosition:e});do{t=n.next()}while(!t.value.item.is("element","listItem"));return t.value.item}function bv(e,t,n,r,i,o){var a,s=iv(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e,foo:"b"}),c=i.mapper,l=i.writer,d=s?s.getAttribute("listIndent"):null;if(s)if(d==e){var f=c.toViewElement(s).parent;a=l.createPositionAfter(f)}else{var h=o.createPositionAt(s,"end");a=c.toViewPosition(h)}else a=n;a=rv(a);for(var p=0,m=u(r.getChildren());p<m.length;p++){var v=m[p];yv(v)&&(a=l.move(l.createRangeOn(v),a).end,nv(l,v,v.nextSibling),nv(l,v.previousSibling,v))}}function yv(e){return e.is("element","ol")||e.is("element","ul")}var kv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});var n,r=t.data,i=t.editing;t.model.document.registerPostFixer((function(e){return function(e,t){var n,r=e.document.differ.getChanges(),i=new Map,o=!1,a=l(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("insert"==s.type&&"listItem"==s.name)m(s.position);else if("insert"==s.type&&"listItem"!=s.name){if("$text"!=s.name){var c=s.position.nodeAfter;c.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",c),o=!0),c.hasAttribute("listType")&&(t.removeAttribute("listType",c),o=!0),c.hasAttribute("listStyle")&&(t.removeAttribute("listStyle",c),o=!0);var u,d=l(Array.from(e.createRangeIn(c)).filter((function(e){return e.item.is("element","listItem")})));try{for(d.s();!(u=d.n()).done;){m(u.value.previousPosition)}}catch(e){d.e(e)}finally{d.f()}}m(s.position.getShiftedBy(s.length))}else"remove"==s.type&&"listItem"==s.name?m(s.position):("attribute"==s.type&&"listIndent"==s.attributeKey||"attribute"==s.type&&"listType"==s.attributeKey)&&m(s.range.start)}}catch(e){a.e(e)}finally{a.f()}var f,h=l(i.values());try{for(h.s();!(f=h.n()).done;){var p=f.value;v(p),g(p)}}catch(e){h.e(e)}finally{h.f()}return o;function m(e){var t=e.nodeBefore;if(t&&t.is("element","listItem")){var n=t;if(i.has(n))return;for(var r=n.previousSibling;r&&r.is("element","listItem");r=n.previousSibling)if(n=r,i.has(n))return;i.set(t,n)}else{var o=e.nodeAfter;o&&o.is("element","listItem")&&i.set(o,o)}}function v(e){for(var n=0,r=null;e&&e.is("element","listItem");){var i=e.getAttribute("listIndent");if(i>n){var a=void 0;null===r?(r=i-n,a=n):(r>i&&(r=i),a=i-r),t.setAttribute("listIndent",a,e),o=!0}else r=null,n=e.getAttribute("listIndent")+1;e=e.nextSibling}}function g(e){for(var n=[],r=null;e&&e.is("element","listItem");){var i=e.getAttribute("listIndent");if(r&&r.getAttribute("listIndent")>i&&(n=n.slice(0,i+1)),0!=i)if(n[i]){var a=n[i];e.getAttribute("listType")!=a&&(t.setAttribute("listType",a,e),o=!0)}else n[i]=e.getAttribute("listType");r=e,e=e.nextSibling}}}(t.model,e)})),i.mapper.registerViewToModelLength("li",wv),r.mapper.registerViewToModelLength("li",wv),i.mapper.on("modelToViewPosition",mv(i.view)),i.mapper.on("viewToModelPosition",(n=t.model,function(e,t){var r=t.viewPosition,i=r.parent,o=t.mapper;if("ul"==i.name||"ol"==i.name){if(r.isAtEnd){var a=o.toModelElement(r.nodeBefore),s=o.getModelLength(r.nodeBefore);t.modelPosition=n.createPositionBefore(a).getShiftedBy(s)}else{var c=o.toModelElement(r.nodeAfter);t.modelPosition=n.createPositionBefore(c)}e.stop()}else if("li"==i.name&&r.nodeBefore&&("ul"==r.nodeBefore.name||"ol"==r.nodeBefore.name)){for(var l=o.toModelElement(i),u=1,d=r.nodeBefore;d&&yv(d);)u+=o.getModelLength(d),d=d.previousSibling;t.modelPosition=n.createPositionBefore(l).getShiftedBy(u),e.stop()}})),r.mapper.on("modelToViewPosition",mv(i.view)),t.conversion.for("editingDowncast").add((function(e){e.on("insert",uv,{priority:"high"}),e.on("insert:listItem",sv(t.model)),e.on("attribute:listType:listItem",cv,{priority:"high"}),e.on("attribute:listType:listItem",lv,{priority:"low"}),e.on("attribute:listIndent:listItem",function(e){return function(t,n,r){if(r.consumable.consume(n.item,"attribute:listIndent")){var i=r.mapper.toViewElement(n.item),o=r.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));var a=i.parent,s=a.previousSibling,c=o.createRangeOn(a);o.remove(c),s&&s.nextSibling&&nv(o,s,s.nextSibling),bv(n.attributeOldValue+1,n.range.start,c.start,i,r,e),tv(n.item,i,r,e);var u,d=l(n.item.getChildren());try{for(d.s();!(u=d.n()).done;){var f=u.value;r.consumable.consume(f,"insert")}}catch(e){d.e(e)}finally{d.f()}}}}(t.model)),e.on("remove:listItem",function(e){return function(t,n,r){var i=r.mapper.toViewPosition(n.position).getLastMatchingPosition((function(e){return!e.item.is("element","li")})).nodeAfter,o=r.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));var a=i.parent,s=a.previousSibling,c=o.createRangeOn(a),u=o.remove(c);s&&s.nextSibling&&nv(o,s,s.nextSibling),bv(r.mapper.toModelElement(i).getAttribute("listIndent")+1,n.position,c.start,i,r,e);var d,f=l(o.createRangeIn(u).getItems());try{for(f.s();!(d=f.n()).done;){var h=d.value;r.mapper.unbindViewElement(h)}}catch(e){f.e(e)}finally{f.f()}t.stop()}}(t.model)),e.on("remove",dv,{priority:"low"})})),t.conversion.for("dataDowncast").add((function(e){e.on("insert",uv,{priority:"high"}),e.on("insert:listItem",sv(t.model))})),t.conversion.for("upcast").add((function(e){e.on("element:ul",hv,{priority:"high"}),e.on("element:ol",hv,{priority:"high"}),e.on("element:li",pv,{priority:"high"}),e.on("element:li",fv)})),t.model.on("insertContent",vv,{priority:"high"}),t.commands.add("numberedList",new Xm(t,"numbered")),t.commands.add("bulletedList",new Xm(t,"bulleted")),t.commands.add("indentList",new ev(t,"forward")),t.commands.add("outdentList",new ev(t,"backward"));var o=i.view.document;this.listenTo(o,"enter",(function(t,n){var r=e.editor.model.document,i=r.selection.getLastPosition().parent;r.selection.isCollapsed&&"listItem"==i.name&&i.isEmpty&&(e.editor.execute("outdentList"),n.preventDefault(),t.stop())})),this.listenTo(o,"delete",(function(t,n){if("backward"===n.direction){var r=e.editor.model.document.selection;if(r.isCollapsed){var i=r.getFirstPosition();if(i.isAtStart){var o=i.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(e.editor.execute("outdentList"),n.preventDefault(),t.stop()))}}}}),{priority:"high"});var a=function(t){return function(n,r){e.editor.commands.get(t).isEnabled&&(e.editor.execute(t),r())}};t.keystrokes.set("Tab",a("indentList")),t.keystrokes.set("Shift+Tab",a("outdentList"))}},{key:"afterInit",value:function(){var e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand(e.get("indentList")),n&&n.registerChildCommand(e.get("outdentList"))}}],[{key:"pluginName",get:function(){return"ListEditing"}},{key:"requires",get:function(){return[Ff]}}]),n}(Ll);function wv(e){var t,n=1,r=l(e.getChildren());try{for(r.s();!(t=r.n()).done;){var i=t.value;if("ul"==i.name||"ol"==i.name){var o,a=l(i.getChildren());try{for(a.s();!(o=a.n()).done;){n+=wv(o.value)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){r.e(e)}finally{r.f()}return n}var _v=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor.t;ov(this.editor,"numberedList",e("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),ov(this.editor,"bulletedList",e("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}]),n}(Ll);function Cv(e,t){return function(e){e.on("attribute:url:media",n)};function n(n,r,i){if(i.consumable.consume(r.item,n.name)){var o=r.attributeNewValue,a=i.writer,s=i.mapper.toViewElement(r.item),c=u(s.getChildren()).find((function(e){return e.getCustomProperty("media-content")}));a.remove(c);var l=e.getMediaViewElement(a,o,t);a.insert(a.createPositionAt(s,0),l)}}}function Av(e){var t=e.getSelectedElement();return t&&function(e){return!!e.getCustomProperty("media")&&dh(e)}(t)?t:null}function xv(e,t,n,r){var i=e.createContainerElement("figure",{class:"media"});return e.insert(e.createPositionAt(i,0),t.getMediaViewElement(e,n,r)),i}function Sv(e){var t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function Mv(e,t,n){e.change((function(r){var i=r.createElement("media",{url:t});e.insertContent(i,n),r.setSelection(i,"on")}))}var Ev=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema,r=vh(t,e),i=Sv(t),o=r.parent;o.isEmpty&&!e.schema.isLimit(o)&&(o=o.parent),this.value=i?i.getAttribute("url"):null,this.isEnabled=n.checkChild(o,"media")}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection,r=Sv(n);if(r)t.change((function(t){t.setAttribute("url",e,r)}));else{var i=vh(n,t);Mv(t,e,i)}}}]),n}(Fl),Tv=function(){function e(t,n){h(this,e);var r=n.providers,i=n.extraProviders||[],o=new Set(n.removeProviders),a=r.concat(i).filter((function(e){var t=e.name;return t?!o.has(t):(Object(Kt.c)("media-embed-no-provider-name",{provider:e}),!1)}));this.locale=t,this.providerDefinitions=a}return m(e,[{key:"hasMedia",value:function(e){return!!this._getMedia(e)}},{key:"getMediaViewElement",value:function(e,t,n){return this._getMedia(t).getViewElement(e,n)}},{key:"_getMedia",value:function(e){if(!e)return new Dv(this.locale);e=e.trim();var t,n=l(this.providerDefinitions);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.html,o=r.url;Array.isArray(o)||(o=[o]);var a,s=l(o);try{for(s.s();!(a=s.n()).done;){var c=a.value,u=this._getUrlMatches(e,c);if(u)return new Dv(this.locale,e,u,i)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"_getUrlMatches",value:function(e,t){var n=e.match(t);if(n)return n;var r=e.replace(/^https?:\/\//,"");return(n=r.match(t))||((n=(r=r.replace(/^www\./,"")).match(t))||null)}}]),e}(),Dv=function(){function e(t,n,r,i){h(this,e),this.url=this._getValidUrl(n),this._t=t.t,this._match=r,this._previewRenderer=i}return m(e,[{key:"getViewElement",value:function(e,t){var n,r={};if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(r["data-oembed-url"]=this.url),t.renderForEditingView&&(r.class="ck-media__wrapper");var i=this._getPreviewHtml(t);n=e.createRawElement("div",r,(function(e){e.innerHTML=i}))}else this.url&&(r.url=this.url),n=e.createEmptyElement("oembed",r);return e.setCustomProperty("media-content",!0,n),n}},{key:"_getPreviewHtml",value:function(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}},{key:"_getPlaceholderHtml",value:function(){var e=new yl,t=new bl;return e.text=this._t("Open media in new tab"),t.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',t.viewBox="0 0 64 42",new Pc({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},e]}]}).render().outerHTML}},{key:"_getValidUrl",value:function(e){return e?e.match(/^https?/)?e:"https://"+e:null}}]),e}();n(105);var Ov=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("mediaEmbed",{providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>')}},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>')}},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>')}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>')}},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:/^google\.com\/maps/},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),r.registry=new Tv(e.locale,e.config.get("mediaEmbed")),r}return m(n,null,[{key:"pluginName",get:function(){return"MediaEmbedEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,r=e.conversion,i=e.config.get("mediaEmbed.previewsInData"),o=this.registry;e.commands.add("mediaEmbed",new Ev(e)),t.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),r.for("dataDowncast").elementToElement({model:"media",view:function(e,t){var n=t.writer,r=e.getAttribute("url");return xv(n,o,r,{renderMediaPreview:r&&i})}}),r.for("dataDowncast").add(Cv(o,{renderMediaPreview:i})),r.for("editingDowncast").elementToElement({model:"media",view:function(e,t){var r=t.writer,i=e.getAttribute("url");return function(e,t,n){return t.setCustomProperty("media",!0,e),fh(e,t,{label:n})}(xv(r,o,i,{renderForEditingView:!0}),r,n("media widget"))}}),r.for("editingDowncast").add(Cv(o,{renderForEditingView:!0})),r.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:function(e,t){var n=t.writer,r=e.getAttribute("url");if(o.hasMedia(r))return n.createElement("media",{url:r})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:function(e,t){var n=t.writer,r=e.getAttribute("data-oembed-url");if(o.hasMedia(r))return n.createElement("media",{url:r})}})}}]),n}(Ll),Pv=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=%]+$/,Iv=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._timeoutId=null,r._positionToInsert=null,r}return m(n,null,[{key:"requires",get:function(){return[Vu,Bd]}},{key:"pluginName",get:function(){return"AutoMediaEmbed"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document;this.listenTo(t.plugins.get(Vu),"inputTransformation",(function(){var t=n.selection.getFirstRange(),r=Qs.fromPosition(t.start);r.stickiness="toPrevious";var i=Qs.fromPosition(t.end);i.stickiness="toNext",n.once("change:data",(function(){e._embedMediaBetweenPositions(r,i),r.detach(),i.detach()}),{priority:"high"})})),t.commands.get("undo").on("execute",(function(){e._timeoutId&&(Pi.window.clearTimeout(e._timeoutId),e._positionToInsert.detach(),e._timeoutId=null,e._positionToInsert=null)}),{priority:"high"})}},{key:"_embedMediaBetweenPositions",value:function(e,t){var n,r=this,i=this.editor,o=i.plugins.get(Ov).registry,a=new ma(e,t),s=a.getWalker({ignoreElementEnd:!0}),c="",u=l(s);try{for(u.s();!(n=u.n()).done;){var d=n.value;d.item.is("$textProxy")&&(c+=d.item.data)}}catch(e){u.e(e)}finally{u.f()}(c=c.trim()).match(Pv)&&o.hasMedia(c)&&i.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Qs.fromPosition(e),this._timeoutId=Pi.window.setTimeout((function(){i.model.change((function(e){var t;r._timeoutId=null,e.remove(a),a.detach(),"$graveyard"!==r._positionToInsert.root.rootName&&(t=r._positionToInsert),Mv(i.model,c,t),r._positionToInsert.detach(),r._positionToInsert=null}))}),100)):a.detach()}}]),n}(Ll);n(107);var jv=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n),i=t.call(this,r);var o=r.t;return i.focusTracker=new Cc,i.keystrokes=new mc,i.set("mediaURLInputValue",""),i.urlInputView=i._createUrlInput(),i.saveButtonView=i._createButton(o("Save"),Kh,"ck-button-save"),i.saveButtonView.type="submit",i.saveButtonView.bind("isEnabled").to(y(i),"mediaURLInputValue",(function(e){return!!e})),i.cancelButtonView=i._createButton(o("Cancel"),Gh,"ck-button-cancel","cancel"),i._focusables=new Oc,i._focusCycler=new sl({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i._validators=e,i.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[i.urlInputView,i.saveButtonView,i.cancelButtonView]}),i}return m(n,[{key:"render",value:function(){var e=this;s(A(n.prototype),"render",this).call(this),Yh({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);var t=function(e){return e.stopPropagation()};this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t),this.listenTo(this.urlInputView.element,"selectstart",(function(e,t){t.stopPropagation()}),{priority:"high"})}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"isValid",value:function(){this.resetFormStatus();var e,t=l(this._validators);try{for(t.s();!(e=t.n()).done;){var n=(0,e.value)(this);if(n)return this.urlInputView.errorText=n,!1}}catch(e){t.e(e)}finally{t.f()}return!0}},{key:"resetFormStatus",value:function(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}},{key:"_createUrlInput",value:function(){var e=this,t=this.locale.t,n=new Uh(this.locale,Wh),r=n.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),n.label=t("Media URL"),n.infoText=this._urlInputViewInfoDefault,r.placeholder="https://example.com",r.on("input",(function(){n.infoText=r.element.value?e._urlInputViewInfoTip:e._urlInputViewInfoDefault,e.mediaURLInputValue=r.element.value.trim()})),n}},{key:"_createButton",value:function(e,t,n,r){var i=new kl(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"url",get:function(){return this.urlInputView.fieldView.element.value.trim()},set:function(e){this.urlInputView.fieldView.element.value=e.trim()}}]),n}(Xc),Nv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.commands.get("mediaEmbed"),r=t.plugins.get(Ov).registry;t.ui.componentFactory.add("mediaEmbed",(function(i){var o=El(i),a=new jv(function(e,t){return[function(t){if(!t.url.length)return e("The URL must not be empty.")},function(n){if(!t.hasMedia(n.url))return e("This media URL is not supported.")}]}(t.t,r),t.locale);return e._setUpDropdown(o,a,n,t),e._setUpForm(o,a,n),o}))}},{key:"_setUpDropdown",value:function(e,t,n){var r=this.editor,i=r.t,o=e.buttonView;function a(){r.editing.view.focus(),e.isOpen=!1}e.bind("isEnabled").to(n),e.panelView.children.add(t),o.set({label:i("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0}),o.on("open",(function(){t.url=n.value||"",t.urlInputView.fieldView.select(),t.focus()}),{priority:"low"}),e.on("submit",(function(){t.isValid()&&(r.execute("mediaEmbed",t.url),a())})),e.on("change:isOpen",(function(){return t.resetFormStatus()})),e.on("cancel",(function(){return a()}))}},{key:"_setUpForm",value:function(e,t,n){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e}))}}],[{key:"requires",get:function(){return[Ov]}},{key:"pluginName",get:function(){return"MediaEmbedUI"}}]),n}(Ll);function Rv(e,t,n){var r=t.parent,i=n.createElement(e.type),o=r.getChildIndex(t)+1;return n.insertChild(o,i,r),i}function Lv(e){var t={},n=e.getStyle("mso-list");if(n){var r=n.match(/(^|\s+)l(\d+)/i),i=n.match(/\s*lfo(\d+)/i),o=n.match(/\s*level(\d+)/i);r&&i&&o&&(t.id=r[2],t.order=i[1],t.indent=o[1])}return t}n(109);var Bv=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i,Fv=function(){function e(t){h(this,e),this.document=t}return m(e,[{key:"isActive",value:function(e){return Bv.test(e)}},{key:"execute",value:function(e){var t=new Tp(this.document);!function(e,t){var n,r=l(e.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is("element","b")&&"normal"===i.getStyle("font-weight")){var o=e.getChildIndex(i);t.remove(i),t.insertChild(o,i.getChildren(),e)}}}catch(e){r.e(e)}finally{r.f()}}(e.content,t),function(e,t){var n,r=l(t.createRangeIn(e));try{for(r.s();!(n=r.n()).done;){var i=n.value.item;if(i.is("element","li")){var o=i.getChild(0);o&&o.is("element","p")&&t.unwrapElement(o)}}}catch(e){r.e(e)}finally{r.f()}}(e.content,t)}}]),e}();function zv(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(e,t){return 1===t.length?" ":Array(t.length+1).join(" ").substr(0,t.length)}))}function Vv(e){return btoa(e.match(/\w{2}/g).map((function(e){return String.fromCharCode(parseInt(e,16))})).join(""))}var $v=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,Hv=/xmlns:o="urn:schemas-microsoft-com/i,Uv=function(){function e(t){h(this,e),this.document=t}return m(e,[{key:"isActive",value:function(e){return $v.test(e)||Hv.test(e)}},{key:"execute",value:function(e){var t=function(e,t){var n=new DOMParser,r=function(e){return zv(zv(e)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[\s]*?)[\r\n]+(\s*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/<o:p>( |\u00A0)<\/o:p>/g,"").replace(/>(\s*[\r\n]\s*)</g,"><")}(function(e){var t=e.match(/<\/body>(.*?)(<\/html>|$)/);return t&&t[1]&&(e=e.slice(0,t.index)+e.slice(t.index).replace(t[1],"")),e}(e=e.replace(/<!--\[if gte vml 1]>/g,""))),i=n.parseFromString(r,"text/html");!function(e){e.querySelectorAll("span[style*=spacerun]").forEach((function(e){var t=e.innerText.length||0;e.innerHTML=Array(t+1).join(" ").substr(0,t)}))}(i);var o=i.body.innerHTML,a=function(e,t){for(var n=new Or(t),r=new Ri(n,{blockFillerMode:"nbsp"}),i=e.createDocumentFragment(),o=e.body.childNodes;o.length>0;)i.appendChild(o[0]);return r.domToView(i)}(i,t),s=function(e){for(var t=[],n=[],r=0,i=Array.from(e.getElementsByTagName("style"));r<i.length;r++){var o=i[r];o.sheet&&o.sheet.cssRules&&o.sheet.cssRules.length&&(t.push(o.sheet),n.push(o.innerHTML))}return{styles:t,stylesString:n.join(" ")}}(i);return{body:a,bodyString:o,styles:s.styles,stylesString:s.stylesString}}(e.dataTransfer.getData("text/html"),this.document.stylesProcessor),n=t.body;(function(e,t){if(e.childCount){var n=new Tp(e.document),r=function(e,t){var n,r=t.createRangeIn(e),i=new wn({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),o=[],a=l(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("elementStart"===s.type&&i.match(s.item)){var c=Lv(s.item);o.push({element:s.item,id:c.id,order:c.order,indent:c.indent})}}}catch(e){a.e(e)}finally{a.f()}return o}(e,n);if(r.length){var i=null,o=1;r.forEach((function(e,a){var s,c,u=function(e,t){if(!e)return!0;if(e.id!==t.id)return!0;var n,r=t.element.previousSibling;return!r||!((n=r).is("element","ol")||n.is("element","ul"))}(r[a-1],e),d=(c=e,(s=u?null:r[a-1])?c.indent-s.indent:c.indent-1);if(u&&(i=null,o=1),!i||0!==d){var f=function(e,t){var n=new RegExp("@list l".concat(e.id,":level").concat(e.indent,"\\s*({[^}]*)"),"gi").exec(t),r="decimal";if(n&&n[1]){var i=/mso-level-number-format:([^;]*);/gi.exec(n[1]);i&&i[1]&&(r=i[1].trim())}return{type:"bullet"!==r&&"image"!==r?"ol":"ul",style:r}}(e,t);if(i){if(e.indent>o){var h=i.getChild(i.childCount-1),p=h.getChild(h.childCount-1);i=Rv(f,p,n),o+=1}else if(e.indent<o){var m=o-e.indent;i=function(e,t){var n,r=null,i=0,o=l(e.getAncestors({parentFirst:!0}));try{for(o.s();!(n=o.n()).done;){var a=n.value;if("ul"!==a.name&&"ol"!==a.name||i++,i===t){r=a;break}}}catch(e){o.e(e)}finally{o.f()}return r}(i,m),o=parseInt(e.indent)}}else i=Rv(f,e.element,n);e.indent<=o&&(i.is("element",f.type)||(i=n.rename(f.type,i)))}var v=function(e,t){return function(e,t){var n,r=new wn({name:"span",styles:{"mso-list":"Ignore"}}),i=l(t.createRangeIn(e));try{for(i.s();!(n=i.n()).done;){var o=n.value;"elementStart"===o.type&&r.match(o.item)&&t.remove(o.item)}}catch(e){i.e(e)}finally{i.f()}}(e,t),t.rename("li",e)}(e.element,n);n.appendChild(v,i)}))}}})(n,t.stylesString),function(e,t){if(e.childCount){var n=new Tp;!function(e,t,n){var r,i=n.createRangeIn(t),o=new wn({name:"img"}),a=[],s=l(i);try{for(s.s();!(r=s.n()).done;){var c=r.value;if(o.match(c.item)){var u=c.item,d=u.getAttribute("v:shapes")?u.getAttribute("v:shapes").split(" "):[];d.length&&d.every((function(t){return e.indexOf(t)>-1}))?a.push(u):u.getAttribute("src")||a.push(u)}}}catch(e){s.e(e)}finally{s.f()}for(var f=0,h=a;f<h.length;f++){var p=h[f];n.remove(p)}}(function(e,t){var n,r=t.createRangeIn(e),i=new wn({name:/v:(.+)/}),o=[],a=l(r);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=s.item,u=c.previousSibling&&c.previousSibling.name||null;i.match(c)&&c.getAttribute("o:gfxdata")&&"v:shapetype"!==u&&o.push(s.item.getAttribute("id"))}}catch(e){a.e(e)}finally{a.f()}return o}(e,n),e,n),function(e,t){var n,r=t.createRangeIn(e),i=new wn({name:/v:(.+)/}),o=[],a=l(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.match(s.item)&&o.push(s.item)}}catch(e){a.e(e)}finally{a.f()}for(var c=0,u=o;c<u.length;c++){var d=u[c];t.remove(d)}}(e,n);var r=function(e,t){var n,r=t.createRangeIn(e),i=new wn({name:"img"}),o=[],a=l(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.match(s.item)&&s.item.getAttribute("src").startsWith("file://")&&o.push(s.item)}}catch(e){a.e(e)}finally{a.f()}return o}(e,n);r.length&&function(e,t,n){if(e.length===t.length)for(var r=0;r<e.length;r++){var i="data:".concat(t[r].type,";base64,").concat(Vv(t[r].hex));n.setAttribute("src",i,e[r])}}(r,function(e){if(!e)return[];var t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),r=e.match(n),i=[];if(r){var o,a=l(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=!1;s.includes("\\pngblip")?c="image/png":s.includes("\\jpegblip")&&(c="image/jpeg"),c&&i.push({hex:s.replace(t,"").replace(/[^\da-fA-F]/g,""),type:c})}}catch(e){a.e(e)}finally{a.f()}}return i}(t),n)}}(n,e.dataTransfer.getData("text/rtf")),e.content=n}}]),e}(),qv="removeFormat",Wv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(qv,(function(r){var i=t.commands.get(qv),o=new kl(r);return o.set({label:n("Remove Format"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z"/></svg>',tooltip:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(qv),t.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"RemoveFormatUI"}}]),n}(Ll),Yv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model;this.isEnabled=!!Vl(this._getFormattingItems(e.document.selection,e.schema))}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.schema;t.change((function(r){var i,o=l(e._getFormattingItems(t.document.selection,n));try{for(o.s();!(i=o.n()).done;){var a=i.value;if(a.is("selection")){var s,c=l(e._getFormattingAttributes(a,n));try{for(c.s();!(s=c.n()).done;){var u=s.value;r.removeSelectionAttribute(u)}}catch(e){c.e(e)}finally{c.f()}}else{var d,f=r.createRangeOn(a),h=l(e._getFormattingAttributes(a,n));try{for(h.s();!(d=h.n()).done;){var p=d.value;r.removeAttribute(p,f)}}catch(e){h.e(e)}finally{h.f()}}}}catch(e){o.e(e)}finally{o.f()}}))}},{key:"_getFormattingItems",value:o.a.mark((function e(t,n){var r,i,a,s,c,u,d,f,h,p,m=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=function(e){return!!Vl(m._getFormattingAttributes(e,n))},i=l(t.getRanges()),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=27;break}s=a.value,c=l(s.getItems()),e.prev=7,c.s();case 9:if((u=c.n()).done){e.next=17;break}if(d=u.value,e.t0=!n.isBlock(d)&&r(d),!e.t0){e.next=15;break}return e.next=15,d;case 15:e.next=9;break;case 17:e.next=22;break;case 19:e.prev=19,e.t1=e.catch(7),c.e(e.t1);case 22:return e.prev=22,c.f(),e.finish(22);case 25:e.next=4;break;case 27:e.next=32;break;case 29:e.prev=29,e.t2=e.catch(2),i.e(e.t2);case 32:return e.prev=32,i.f(),e.finish(32);case 35:f=l(t.getSelectedBlocks()),e.prev=36,f.s();case 38:if((h=f.n()).done){e.next=46;break}if(p=h.value,e.t3=r(p),!e.t3){e.next=44;break}return e.next=44,p;case 44:e.next=38;break;case 46:e.next=51;break;case 48:e.prev=48,e.t4=e.catch(36),f.e(e.t4);case 51:return e.prev=51,f.f(),e.finish(51);case 54:if(e.t5=r(t),!e.t5){e.next=58;break}return e.next=58,t;case 58:case"end":return e.stop()}}),e,null,[[2,29,32,35],[7,19,22,25],[36,48,51,54]])}))},{key:"_getFormattingAttributes",value:o.a.mark((function e(t,n){var r,i,a,s,u;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=l(t.getAttributes()),e.prev=1,r.s();case 3:if((i=r.n()).done){e.next=12;break}if(a=c(i.value,1),s=a[0],u=n.getAttributeProperties(s),e.t0=u&&u.isFormatting,!e.t0){e.next=10;break}return e.next=10,s;case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t1=e.catch(1),r.e(e.t1);case 17:return e.prev=17,r.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[1,14,17,20]])}))}]),n}(Fl),Kv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.commands.add("removeFormat",new Yv(e))}}],[{key:"pluginName",get:function(){return"RemoveFormatEditing"}}]),n}(Ll),Gv=function(){function e(t,n){h(this,e),this.loader=t,this.options=n}return m(e,[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return new Promise((function(n,r){e._initRequest(),e._initListeners(n,r,t),e._sendRequest(t)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var e=this.xhr=new XMLHttpRequest;e.open("POST",this.options.uploadUrl,!0),e.responseType="json"}},{key:"_initListeners",value:function(e,t,n){var r=this.xhr,i=this.loader,o="Couldn't upload file: ".concat(n.name,".");r.addEventListener("error",(function(){return t(o)})),r.addEventListener("abort",(function(){return t()})),r.addEventListener("load",(function(){var n=r.response;if(!n||n.error)return t(n&&n.error&&n.error.message?n.error.message:o);e(n.url?{default:n.url}:n.urls)})),r.upload&&r.upload.addEventListener("progress",(function(e){e.lengthComputable&&(i.uploadTotal=e.total,i.uploaded=e.loaded)}))}},{key:"_sendRequest",value:function(e){for(var t=this.options.headers||{},n=this.options.withCredentials||!1,r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];this.xhr.setRequestHeader(o,t[o])}this.xhr.withCredentials=n;var a=new FormData;a.append("upload",e),this.xhr.send(a)}}]),e}();function Qv(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;t>i?r.setAttribute(e,t,n):r.removeAttribute(e,n)}function Xv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.createElement("tableCell",n);return e.insertElement("paragraph",r),e.insert(r,t),r}function Jv(e,t){var n=t.parent.parent,r=parseInt(n.getAttribute("headingColumns")||0),i=e.getCellLocation(t).column;return!!r&&i<r}function Zv(e){for(var t=0,n=0,r=Array.from(e.getChildren()).filter((function(e){return"th"===e.name||"td"===e.name}));n<r.length&&"th"===r[n].name;){var i=r[n];t+=parseInt(i.getAttribute("colspan")||1),n++}return t}var eg=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e),this._table=t,this._startRow=void 0!==n.row?n.row:n.startRow||0,this._endRow=void 0!==n.row?n.row:n.endRow,this._startColumn=void 0!==n.column?n.column:n.startColumn||0,this._endColumn=void 0!==n.column?n.column:n.endColumn,this._includeAllSlots=!!n.includeAllSlots,this._skipRows=new Set,this._row=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}return m(e,[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){var e=this._table.getChild(this._row);if(!e||this._isOverEndRow())return{done:!0};if(this._isOverEndColumn())return this._advanceToNextRow();var t=null,n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(n.cell,n.row,n.column));else{var r=e.getChild(this._cellIndex);if(!r)return this._advanceToNextRow();var i=parseInt(r.getAttribute("colspan")||1),o=parseInt(r.getAttribute("rowspan")||1);(i>1||o>1)&&this._recordSpans(r,o,i),this._shouldSkipSlot()||(t=this._formatOutValue(r)),this._nextCellAtColumn=this._column+i}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}},{key:"skipRow",value:function(e){this._skipRows.add(e)}},{key:"_advanceToNextRow",value:function(){return this._row++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}},{key:"_isOverEndRow",value:function(){return void 0!==this._endRow&&this._row>this._endRow}},{key:"_isOverEndColumn",value:function(){return void 0!==this._endColumn&&this._column>this._endColumn}},{key:"_formatOutValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._column;return{done:!1,value:new tg(this,e,t,n)}}},{key:"_shouldSkipSlot",value:function(){var e=this._skipRows.has(this._row),t=this._row<this._startRow,n=this._column<this._startColumn,r=void 0!==this._endColumn&&this._column>this._endColumn;return e||t||n||r}},{key:"_getSpanned",value:function(){var e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}},{key:"_recordSpans",value:function(e,t,n){for(var r={cell:e,row:this._row,column:this._column},i=this._row;i<this._row+t;i++)for(var o=this._column;o<this._column+n;o++)i==this._row&&o==this._column||this._markSpannedCell(i,o,r)}},{key:"_markSpannedCell",value:function(e,t,n){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,n)}}]),e}(),tg=function(){function e(t,n,r,i){h(this,e),this.cell=n,this.row=t._row,this.column=t._column,this.cellAnchorRow=r,this.cellAnchorColumn=i,this._cellIndex=t._cellIndex,this._table=t._table}return m(e,[{key:"getPositionBefore",value:function(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}},{key:"isAnchor",get:function(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}},{key:"cellWidth",get:function(){return parseInt(this.cell.getAttribute("colspan")||1)}},{key:"cellHeight",get:function(){return parseInt(this.cell.getAttribute("rowspan")||1)}}]),e}();function ng(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t.on("insert:table",(function(t,n,r){var i=n.item;if(r.consumable.consume(i,"insert")){r.consumable.consume(i,"attribute:headingRows:table"),r.consumable.consume(i,"attribute:headingColumns:table");var o,a,s,c=e&&e.asWidget,u=r.writer.createContainerElement("figure",{class:"table"}),d=r.writer.createContainerElement("table");r.writer.insert(r.writer.createPositionAt(u,0),d),c&&(a=u,(s=r.writer).setCustomProperty("table",!0,a),o=fh(a,s,{hasSelectionHandle:!0}));var f,h=new eg(i),p={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0},m=new Map,v=l(h);try{for(v.s();!(f=v.n()).done;){var g=f.value,b=g.row,y=g.cell,k=i.getChild(b),w=m.get(b)||sg(d,k,b,p,r);m.set(b,w),r.consumable.consume(y,"insert"),ag(g,p,r.writer.createPositionAt(w,"end"),r,e)}}catch(e){v.e(e)}finally{v.f()}var _,C=l(i.getChildren());try{for(C.s();!(_=C.n()).done;){var A=_.value,x=A.index;m.has(x)||m.set(x,sg(d,A,x,p,r))}}catch(e){C.e(e)}finally{C.f()}var S=r.mapper.toViewPosition(n.range.start);r.mapper.bindElements(i,c?o:u),r.writer.insert(S,c?o:u)}}))}}function rg(e,t){var n=t.writer;if(e.parent.is("element","tableCell"))return ig(e)?n.createContainerElement("span",{style:"display:inline-block"}):n.createContainerElement("p")}function ig(e){return 1===e.parent.childCount&&!dg(e)}function og(e,t,n){var r=e.cell,i=cg(e,t),o=n.mapper.toViewElement(r);o&&o.name!==i&&function(e,t,n){var r=n.writer,i=n.mapper.toViewElement(e),o=mh(r.createEditableElement(t,i.getAttributes()),r);hh(o,r,(function(e,t,n){return n.addClass(fg(t.classes),e)}),(function(e,t,n){return n.removeClass(fg(t.classes),e)})),r.insert(r.createPositionAfter(i),o),r.move(r.createRangeIn(i),r.createPositionAt(o,0)),r.remove(r.createRangeOn(i)),n.mapper.unbindViewElement(i),n.mapper.bindElements(e,o)}(r,i,n)}function ag(e,t,n,r,i){var o=i&&i.asWidget,a=cg(e,t),s=o?mh(r.writer.createEditableElement(a),r.writer):r.writer.createContainerElement(a);o&&hh(s,r.writer,(function(e,t,n){return n.addClass(fg(t.classes),e)}),(function(e,t,n){return n.removeClass(fg(t.classes),e)}));var c=e.cell,l=c.getChild(0),u=1===c.childCount&&"paragraph"===l.name;if(r.writer.insert(n,s),r.mapper.bindElements(c,s),!o&&!dg(l)&&u){var d=c.getChild(0);r.consumable.consume(d,"insert"),r.mapper.bindElements(d,s)}}function sg(e,t,n,r,i){i.consumable.consume(t,"insert");var o=t.isEmpty?i.writer.createEmptyElement("tr"):i.writer.createContainerElement("tr");i.mapper.bindElements(t,o);var a=r.headingRows,s=function(e,t,n){return lg(e,t)||function(e,t,n){var r=n.writer.createContainerElement(e),i=n.writer.createPositionAt(t,"tbody"==e?"end":0);return n.writer.insert(i,r),r}(e,t,n)}(function(e,t){return e<t.headingRows?"thead":"tbody"}(n,r),e,i),c=a>0&&n>=a?n-a:n,l=i.writer.createPositionAt(s,c);return i.writer.insert(l,o),o}function cg(e,t){var n=e.row,r=e.column,i=t.headingColumns,o=t.headingRows;return o&&o>n||i&&i>r?"th":"td"}function lg(e,t){var n,r=l(t.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.name==e)return i}}catch(e){r.e(e)}finally{r.f()}}function ug(e,t,n){var r=lg(e,t);r&&0===r.childCount&&n.writer.remove(n.writer.createRangeOn(r))}function dg(e){return!!u(e.getAttributeKeys()).length}function fg(e){return Array.isArray(e)?e:[e]}var hg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema,r=function(e){var t=e.parent;return t===t.root?t:t.parent}(t.getFirstPosition());this.isEnabled=n.checkChild(r,"table")}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document.selection,r=this.editor.plugins.get("TableUtils"),i=vh(n,t);t.change((function(n){var o=r.createTable(n,e);t.insertContent(o,i),n.setSelection(n.createPositionAt(o.getNodeByPath([0,0,0]),0))}))}}]),n}(Fl);function pg(e){var t,n=[],r=l(kg(e.getRanges()));try{for(r.s();!(t=r.n()).done;){var i=t.value.getContainedElement();i&&i.is("element","tableCell")&&n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}function mg(e){var t,n=[],r=l(e.getRanges());try{for(r.s();!(t=r.n()).done;){var i=t.value.start.findAncestor("tableCell");i&&n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}function vg(e){var t=pg(e);return t.length?t:mg(e)}function gg(e){return wg(e.map((function(e){return e.parent.index})))}function bg(e){var t=e[0].findAncestor("table");return wg(u(new eg(t)).filter((function(t){return e.includes(t.cell)})).map((function(e){return e.column})))}function yg(e,t){if(e.length<2||!function(e){var t=e[0].findAncestor("table");if(!Cg(gg(e),parseInt(t.getAttribute("headingRows")||0)))return!1;var n=parseInt(t.getAttribute("headingColumns")||0);return Cg(bg(e),n)}(e))return!1;var n,r=new Set,i=new Set,o=0,a=l(e);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=t.getCellLocation(s),d=c.row,f=c.column,h=parseInt(s.getAttribute("rowspan")||1),p=parseInt(s.getAttribute("colspan")||1);r.add(d),i.add(f),h>1&&r.add(d+h-1),p>1&&i.add(f+p-1),o+=h*p}}catch(e){a.e(e)}finally{a.f()}return function(e,t){var n=Array.from(e.values()),r=Array.from(t.values());return(Math.max.apply(Math,u(n))-Math.min.apply(Math,u(n))+1)*(Math.max.apply(Math,u(r))-Math.min.apply(Math,u(r))+1)}(r,i)==o}function kg(e){return Array.from(e).sort(_g)}function wg(e){var t=e.sort((function(e,t){return e-t}));return{first:t[0],last:t[t.length-1]}}function _g(e,t){var n=e.start,r=t.start;return n.isBefore(r)?-1:1}function Cg(e,t){return e.first<t==e.last<t}var Ag=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,n),(r=t.call(this,e)).order=i.order||"below",r}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!e}},{key:"execute",value:function(){var e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),r="above"===this.order,i=vg(t),o=gg(i),a=r?o.first:o.last,s=i[0].findAncestor("table");n.insertRows(s,{at:r?a:a+1,copyStructureFromAbove:!r})}}]),n}(Fl),xg=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,n),(r=t.call(this,e)).order=i.order||"right",r}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!e}},{key:"execute",value:function(){var e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),r="left"===this.order,i=vg(t),o=bg(i),a=r?o.first:o.last,s=i[0].findAncestor("table");n.insertColumns(s,{columns:1,at:r?a:a+1})}}]),n}(Fl),Sg=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,n),(r=t.call(this,e)).direction=i.direction||"horizontally",r}return m(n,[{key:"refresh",value:function(){var e=vg(this.editor.model.document.selection);this.isEnabled=1===e.length}},{key:"execute",value:function(){var e=vg(this.editor.model.document.selection)[0],t="horizontally"===this.direction,n=this.editor.plugins.get("TableUtils");t?n.splitCellHorizontally(e,2):n.splitCellVertically(e,2)}}]),n}(Fl);function Mg(e,t,n){for(var r=t.startRow,i=t.startColumn,o=t.endRow,a=t.endColumn,s=n.createElement("table"),c=o-r+1,d=0;d<c;d++)n.insertElement("tableRow",s,"end");var f,h=l(u(new eg(e,{startRow:r,endRow:o,startColumn:i,endColumn:a,includeAllSlots:!0})));try{for(h.s();!(f=h.n()).done;){var p=f.value,m=p.row,v=p.column,g=p.cell,b=p.isAnchor,y=p.cellAnchorRow,k=p.cellAnchorColumn,w=m-r,_=s.getChild(w);if(b){var C=n.cloneElement(g);n.append(C,_),Pg(C,m,v,o,a,n)}else(y<r||k<i)&&Xv(n,n.createPositionAt(_,"end"))}}catch(e){h.e(e)}finally{h.f()}return function(e,t,n,r,i){var o=parseInt(t.getAttribute("headingRows")||0);o>0&&Qv("headingRows",o-n,e,i,0);var a=parseInt(t.getAttribute("headingColumns")||0);a>0&&Qv("headingColumns",a-r,e,i,0)}(s,e,r,i,n),s}function Eg(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[],o=new eg(e,{startRow:r,endRow:t-1}),a=l(o);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=s.row,u=s.cellHeight,d=c+u-1;c<t&&t<=d&&i.push(s)}}catch(e){a.e(e)}finally{a.f()}return i}function Tg(e,t,n){var r=e.parent,i=r.parent,o=r.index,a=t-o,s={},c=parseInt(e.getAttribute("rowspan"))-a;c>1&&(s.rowspan=c);var d=parseInt(e.getAttribute("colspan")||1);d>1&&(s.colspan=d);var f,h,p=o+a,m=null,v=l(u(new eg(i,{startRow:o,endRow:p,includeAllSlots:!0})));try{for(v.s();!(h=v.n()).done;){var g=h.value,b=g.row,y=g.column;g.cell===e&&void 0===f&&(f=y),void 0!==f&&f===y&&b===p&&(m=Xv(n,g.getPositionBefore(),s))}}catch(e){v.e(e)}finally{v.f()}return Qv("rowspan",a,e,n),m}function Dg(e,t){var n,r=[],i=l(new eg(e));try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.column,s=o.cellWidth;a<t&&t<=a+s-1&&r.push(o)}}catch(e){i.e(e)}finally{i.f()}return r}function Og(e,t,n,r){var i=n-t,o={},a=parseInt(e.getAttribute("colspan"))-i;a>1&&(o.colspan=a);var s=parseInt(e.getAttribute("rowspan")||1);s>1&&(o.rowspan=s);var c=Xv(r,r.createPositionAfter(e),o);return Qv("colspan",i,e,r),c}function Pg(e,t,n,r,i,o){var a=parseInt(e.getAttribute("colspan")||1),s=parseInt(e.getAttribute("rowspan")||1);n+a-1>i&&Qv("colspan",i-n+1,e,o,1),t+s-1>r&&Qv("rowspan",r-t+1,e,o,1)}function Ig(e,t){var n,r=t.getColumns(e),i=new Array(r).fill(0),o=l(new eg(e));try{for(o.s();!(n=o.n()).done;){i[n.value.column]++}}catch(e){o.e(e)}finally{o.f()}var a=i.reduce((function(e,t,n){return t?e:[].concat(u(e),[n])}),[]);if(a.length>0){var s=a[a.length-1];return t.removeColumns(e,{at:s}),!0}return!1}function jg(e,t){for(var n=[],r=0;r<e.childCount;r++)e.getChild(r).isEmpty&&n.push(r);if(n.length>0){var i=n[n.length-1];return t.removeRows(e,{at:i}),!0}return!1}function Ng(e,t){Ig(e,t)||jg(e,t)}function Rg(e,t){var n=Array.from(new eg(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(n.every((function(e){return 1===e.cellHeight})))return t.lastRow;var r=n[0].cellHeight-1;return t.lastRow+r}function Lg(e,t){var n=Array.from(new eg(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(n.every((function(e){return 1===e.cellWidth})))return t.lastColumn;var r=n[0].cellWidth-1;return t.lastColumn+r}var Bg=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).direction=r.direction,i.isHorizontal="right"==i.direction||"left"==i.direction,i}return m(n,[{key:"refresh",value:function(){var e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=mg(t.document.selection)[0],r=this.value,i=this.direction;t.change((function(t){var o="right"==i||"down"==i,a=o?n:r,s=o?r:n,c=s.parent;!function(e,t,n){Fg(e)||(Fg(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}(s,a,t);var l=e.isHorizontal?"colspan":"rowspan",u=parseInt(n.getAttribute(l)||1),d=parseInt(r.getAttribute(l)||1);t.setAttribute(l,u+d,a),t.setSelection(t.createRangeIn(a));var f=e.editor.plugins.get("TableUtils");Ng(c.findAncestor("table"),f)}))}},{key:"_getMergeableCell",value:function(){var e=mg(this.editor.model.document.selection)[0];if(e){var t=this.editor.plugins.get("TableUtils"),n=this.isHorizontal?function(e,t,n){var r=e.parent.parent,i="right"==t?e.nextSibling:e.previousSibling,o=(r.getAttribute("headingColumns")||0)>0;if(i){var a="right"==t?e:i,s="right"==t?i:e,c=n.getCellLocation(a).column,l=n.getCellLocation(s).column,u=parseInt(a.getAttribute("colspan")||1),d=Jv(n,a),f=Jv(n,s);if(!o||d==f)return c+u===l?i:void 0}}(e,this.direction,t):function(e,t){var n=e.parent,r=n.parent,i=r.getChildIndex(n);if(!("down"==t&&i===r.childCount-1||"up"==t&&0===i)){var o=parseInt(e.getAttribute("rowspan")||1),a=r.getAttribute("headingRows")||0;if(!a||!("down"==t&&i+o===a)&&!("up"==t&&i===a)){var s=parseInt(e.getAttribute("rowspan")||1),c="down"==t?i+s:i,l=u(new eg(r,{endRow:c})),d=l.find((function(t){return t.cell===e})).column,f=l.find((function(e){var n=e.row,r=e.cellHeight;return e.column===d&&("down"==t?n===c:c===n+r)}));return f&&f.cell}}}(e,this.direction);if(n){var r=this.isHorizontal?"rowspan":"colspan",i=parseInt(e.getAttribute(r)||1);return parseInt(n.getAttribute(r)||1)===i?n:void 0}}}}]),n}(Fl);function Fg(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}var zg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=vg(this.editor.model.document.selection),t=e[0];if(t){var n=t.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getRows(n)-1,i=gg(e),o=0===i.first&&i.last===r;this.isEnabled=!o}else this.isEnabled=!1}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=vg(t.document.selection),r=gg(n),i=n[0],o=i.findAncestor("table"),a=this.editor.plugins.get("TableUtils").getCellLocation(i).column;t.change((function(t){var n=r.last-r.first+1;e.editor.plugins.get("TableUtils").removeRows(o,{at:r.first,rows:n});var i=function(e,t,n){var r,i=e.getChild(t)||e.getChild(e.childCount-1),o=i.getChild(0),a=0,s=l(i.getChildren());try{for(s.s();!(r=s.n()).done;){var c=r.value;if(a>n)return o;o=c,a+=parseInt(c.getAttribute("colspan")||1)}}catch(e){s.e(e)}finally{s.f()}return o}(o,r.first,a);t.setSelection(t.createPositionAt(i,0))}))}}]),n}(Fl),Vg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=vg(this.editor.model.document.selection),t=e[0];if(t){var n=t.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getColumns(n),i=bg(e),o=i.first,a=i.last;this.isEnabled=a-o<r-1}else this.isEnabled=!1}},{key:"execute",value:function(){var e=this,t=c(function(e){var t=vg(e),n=t[0],r=t.pop(),i=[n,r];return n.isBefore(r)?i:i.reverse()}(this.editor.model.document.selection),2),n=t[0],r=t[1],i=n.parent.parent,o=u(new eg(i)),a={first:o.find((function(e){return e.cell===n})).column,last:o.find((function(e){return e.cell===r})).column},s=function(e,t,n,r){return parseInt(n.getAttribute("colspan")||1)>1?n:t.previousSibling||n.nextSibling?n.nextSibling||t.previousSibling:r.first?e.reverse().find((function(e){return e.column<r.first})).cell:e.reverse().find((function(e){return e.column>r.last})).cell}(o,n,r,a);this.editor.model.change((function(t){var n=a.last-a.first+1;e.editor.plugins.get("TableUtils").removeColumns(i,{at:a.first,columns:n}),t.setSelection(t.createPositionAt(s,0))}))}}]),n}(Fl),$g=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this,t=vg(this.editor.model.document.selection),n=t.length>0;this.isEnabled=n,this.value=n&&t.every((function(t){return e._isInHeading(t,t.parent.parent)}))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.forceValue!==this.value){var t=this.editor.model,n=vg(t.document.selection),r=n[0].findAncestor("table"),i=gg(n),o=i.first,a=i.last,s=this.value?o:a+1,c=r.getAttribute("headingRows")||0;t.change((function(e){if(s){var t,n=l(Eg(r,s,s>c?c:0));try{for(n.s();!(t=n.n()).done;){Tg(t.value.cell,s,e)}}catch(e){n.e(e)}finally{n.f()}}Qv("headingRows",s,r,e,0)}))}}},{key:"_isInHeading",value:function(e,t){var n=parseInt(t.getAttribute("headingRows")||0);return!!n&&e.parent.index<n}}]),n}(Fl),Hg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=vg(this.editor.model.document.selection),t=this.editor.plugins.get("TableUtils"),n=e.length>0;this.isEnabled=n,this.value=n&&e.every((function(e){return Jv(t,e)}))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.forceValue!==this.value){var t=this.editor.model,n=vg(t.document.selection),r=n[0].findAncestor("table"),i=bg(n),o=i.first,a=i.last,s=this.value?o:a+1;t.change((function(e){if(s){var t,n=l(Dg(r,s));try{for(n.s();!(t=n.n()).done;){var i=t.value;Og(i.cell,i.column,s,e)}}catch(e){n.e(e)}finally{n.f()}}Qv("headingColumns",s,r,e,0)}))}}}]),n}(Fl),Ug=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.decorate("insertColumns"),this.decorate("insertRows")}},{key:"getCellLocation",value:function(e){var t,n=e.parent,r=n.parent,i=r.getChildIndex(n),o=l(new eg(r,{row:i}));try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.cell,c=a.row,u=a.column;if(s===e)return{row:c,column:u}}}catch(e){o.e(e)}finally{o.f()}}},{key:"createTable",value:function(e,t){var n=e.createElement("table");return qg(e,n,0,parseInt(t.rows)||2,parseInt(t.columns)||2),t.headingRows&&Qv("headingRows",t.headingRows,n,e,0),t.headingColumns&&Qv("headingColumns",t.headingColumns,n,e,0),n}},{key:"insertRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.editor.model,r=t.at||0,i=t.rows||1,o=void 0!==t.copyStructureFromAbove,a=t.copyStructureFromAbove?r-1:r,s=this.getRows(e),c=this.getColumns(e);n.change((function(t){var n=e.getAttribute("headingRows")||0;if(n>r&&Qv("headingRows",n+i,e,t,0),o||0!==r&&r!==s){var u,d=o?Math.max(r,a):r,f=new eg(e,{endRow:d}),h=new Array(c).fill(1),p=l(f);try{for(p.s();!(u=p.n()).done;){var m=u.value,v=m.row,g=m.column,b=m.cellHeight,y=m.cellWidth,k=m.cell,w=v+b-1,_=v<=a&&a<=w;v<r&&r<=w?(t.setAttribute("rowspan",b+i,k),h[g]=-y):o&&_&&(h[g]=y)}}catch(e){p.e(e)}finally{p.f()}for(var C=0;C<i;C++){var A=t.createElement("tableRow");t.insert(A,e,r);for(var x=0;x<h.length;x++){var S=h[x],M=t.createPositionAt(A,"end");S>0&&Xv(t,M,S>1?{colspan:S}:null),x+=Math.abs(S)-1}}}else qg(t,e,r,i,c)}))}},{key:"insertColumns",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.editor.model,i=n.at||0,o=n.columns||1;r.change((function(n){var r=e.getAttribute("headingColumns");i<r&&n.setAttribute("headingColumns",r+o,e);var a=t.getColumns(e);if(0!==i&&a!==i){var s,c=new eg(e,{column:i,includeAllSlots:!0}),u=l(c);try{for(u.s();!(s=u.n()).done;){var d=s.value,f=d.row,h=d.cell,p=d.cellAnchorColumn,m=d.cellAnchorRow,v=d.cellWidth,g=d.cellHeight;if(p<i){n.setAttribute("colspan",v+o,h);for(var b=m+g-1,y=f;y<=b;y++)c.skipRow(y)}else Wg(o,n,d.getPositionBefore())}}catch(e){u.e(e)}finally{u.f()}}else{var k,w=l(e.getChildren());try{for(w.s();!(k=w.n()).done;){var _=k.value;Wg(o,n,n.createPositionAt(_,i?"end":0))}}catch(e){w.e(e)}finally{w.f()}}}))}},{key:"removeRows",value:function(e,t){var n=this,r=this.editor.model,i=t.rows||1,o=t.at,a=o+i-1;r.change((function(t){var r=function(e,t,n){var r,i=new Map,o=[],a=l(new eg(e,{endRow:n}));try{for(a.s();!(r=a.n()).done;){var s=r.value,c=s.row,u=s.column,d=s.cellHeight,f=s.cell,h=c+d-1;if(c>=t&&c<=n&&h>n){var p=d-(n-c+1);i.set(u,{cell:f,rowspan:p})}if(c<t&&h>=t){var m;m=h>=n?n-t+1:h-t+1,o.push({cell:f,rowspan:d-m})}}}catch(e){a.e(e)}finally{a.f()}return{cellsToMove:i,cellsToTrim:o}}(e,o,a),i=r.cellsToMove,s=r.cellsToTrim;i.size&&function(e,t,n,r){var i,o,a=u(new eg(e,{includeAllSlots:!0,row:t})),s=e.getChild(t),c=l(a);try{for(c.s();!(o=c.n()).done;){var d=o.value,f=d.column,h=d.cell,p=d.isAnchor;if(n.has(f)){var m=n.get(f),v=m.cell,g=m.rowspan,b=i?r.createPositionAfter(i):r.createPositionAt(s,0);r.move(r.createRangeOn(v),b),Qv("rowspan",g,v,r),i=v}else p&&(i=h)}}catch(e){c.e(e)}finally{c.f()}}(e,a+1,i,t);for(var c=a;c>=o;c--)t.remove(e.getChild(c));var d,f=l(s);try{for(f.s();!(d=f.n()).done;){var h=d.value;Qv("rowspan",h.rowspan,h.cell,t)}}catch(e){f.e(e)}finally{f.f()}!function(e,t,n,r){var i=e.getAttribute("headingRows")||0;t<i&&Qv("headingRows",n<i?i-(n-t+1):t,e,r,0)}(e,o,a,t),Ig(e,n)||jg(e,n)}))}},{key:"removeColumns",value:function(e,t){var n=this,r=this.editor.model,i=t.at,o=t.columns||1,a=t.at+o-1;r.change((function(t){!function(e,t,n){var r=e.getAttribute("headingColumns")||0;if(r&&t.first<r){var i=Math.min(r-1,t.last)-t.first+1;n.setAttribute("headingColumns",r-i,e)}}(e,{first:i,last:a},t);for(var r=a;r>=i;r--)for(var o=0,s=u(new eg(e));o<s.length;o++){var c=s[o],l=c.cell,d=c.column,f=c.cellWidth;d<=r&&f>1&&d+f>r?Qv("colspan",f-1,l,t):d===r&&t.remove(l)}jg(e,n)||Ig(e,n)}))}},{key:"splitCellVertically",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,r=e.parent.parent,i=parseInt(e.getAttribute("rowspan")||1),o=parseInt(e.getAttribute("colspan")||1);n.change((function(n){if(o>1){var a=Yg(o,t),s=a.newCellsSpan;Qv("colspan",a.updatedSpan,e,n);var c={};s>1&&(c.colspan=s),i>1&&(c.rowspan=i),Wg(o>t?t-1:o-1,n,n.createPositionAfter(e),c)}if(o<t){var d,f=t-o,h=u(new eg(r)),p=h.find((function(t){return t.cell===e})).column,m=l(h.filter((function(t){var n=t.cell,r=t.cellWidth,i=t.column;return n!==e&&i===p||i<p&&i+r>p})));try{for(m.s();!(d=m.n()).done;){var v=d.value,g=v.cell,b=v.cellWidth;n.setAttribute("colspan",b+f,g)}}catch(e){m.e(e)}finally{m.f()}var y={};i>1&&(y.rowspan=i),Wg(f,n,n.createPositionAfter(e),y);var k=r.getAttribute("headingColumns")||0;k>p&&Qv("headingColumns",k+f,r,n)}}))}},{key:"splitCellHorizontally",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,r=e.parent,i=r.parent,o=i.getChildIndex(r),a=parseInt(e.getAttribute("rowspan")||1),s=parseInt(e.getAttribute("colspan")||1);n.change((function(n){if(a>1){var r=u(new eg(i,{startRow:o,endRow:o+a-1,includeAllSlots:!0})),c=Yg(a,t),d=c.newCellsSpan,f=c.updatedSpan;Qv("rowspan",f,e,n);var h=r.find((function(t){return t.cell===e})).column,p={};d>1&&(p.rowspan=d),s>1&&(p.colspan=s);for(var m=0,v=r;m<v.length;m++){var g=v[m],b=g.column,y=g.row;y>=o+f&&b===h&&(y+o+f)%d==0&&Wg(1,n,g.getPositionBefore(),p)}}if(a<t){var k,w=t-a,_=l(u(new eg(i,{startRow:0,endRow:o})));try{for(_.s();!(k=_.n()).done;){var C=k.value,A=C.cell,x=C.cellHeight,S=C.row;if(A!==e&&S+x>o){var M=x+w;n.setAttribute("rowspan",M,A)}}}catch(e){_.e(e)}finally{_.f()}var E={};s>1&&(E.colspan=s),qg(n,i,o+1,w,1,E);var T=i.getAttribute("headingRows")||0;T>o&&Qv("headingRows",T+w,i,n)}}))}},{key:"getColumns",value:function(e){return u(e.getChild(0).getChildren()).reduce((function(e,t){return e+parseInt(t.getAttribute("colspan")||1)}),0)}},{key:"getRows",value:function(e){return e.childCount}}],[{key:"pluginName",get:function(){return"TableUtils"}}]),n}(Ll);function qg(e,t,n,r,i){for(var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=0;a<r;a++){var s=e.createElement("tableRow");e.insert(s,t,n),Wg(i,e,e.createPositionAt(s,"end"),o)}}function Wg(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=0;i<e;i++)Xv(t,n,r)}function Yg(e,t){if(e<t)return{newCellsSpan:1,updatedSpan:1};var n=Math.floor(e/t);return{newCellsSpan:n,updatedSpan:e-n*t+n}}var Kg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=pg(this.editor.model.document.selection);this.isEnabled=yg(e,this.editor.plugins.get(Ug))}},{key:"execute",value:function(){var e=this.editor.model,t=this.editor.plugins.get(Ug);e.change((function(n){var r=pg(e.document.selection),i=r.shift(),o=function(e,t,n){var r,i=0,o=0,a=l(t);try{for(a.s();!(r=a.n()).done;){var s=r.value,c=n.getCellLocation(s),u=c.row;i=Xg(s,c.column,i,"colspan"),o=Xg(s,u,o,"rowspan")}}catch(e){a.e(e)}finally{a.f()}var d=n.getCellLocation(e),f=d.row;return{mergeWidth:i-d.column,mergeHeight:o-f}}(i,r,t),a=o.mergeWidth,s=o.mergeHeight;Qv("colspan",a,i,n),Qv("rowspan",s,i,n);var c,u=l(r);try{for(u.s();!(c=u.n()).done;){Gg(c.value,i,n)}}catch(e){u.e(e)}finally{u.f()}Ng(i.findAncestor("table"),t),n.setSelection(i,"in")}))}}]),n}(Fl);function Gg(e,t,n){Qg(e)||(Qg(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}function Qg(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}function Xg(e,t,n,r){var i=parseInt(e.getAttribute(r)||1);return Math.max(n,t+i)}var Jg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=vg(this.editor.model.document.selection);this.isEnabled=e.length>0}},{key:"execute",value:function(){for(var e=this.editor.model,t=vg(e.document.selection),n=gg(t),r=t[0].findAncestor("table"),i=[],o=n.first;o<=n.last;o++){var a,s=l(r.getChild(o).getChildren());try{for(s.s();!(a=s.n()).done;){var c=a.value;i.push(e.createRangeOn(c))}}catch(e){s.e(e)}finally{s.f()}}e.change((function(e){e.setSelection(i)}))}}]),n}(Fl),Zg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=vg(this.editor.model.document.selection);this.isEnabled=e.length>0}},{key:"execute",value:function(){var e,t=this.editor.model,n=vg(t.document.selection),r=n[0],i=n.pop(),o=r.findAncestor("table"),a=this.editor.plugins.get("TableUtils"),s=a.getCellLocation(r),c=a.getCellLocation(i),u=Math.min(s.column,c.column),d=Math.max(s.column,c.column),f=[],h=l(new eg(o,{startColumn:u,endColumn:d}));try{for(h.s();!(e=h.n()).done;){var p=e.value;f.push(t.createRangeOn(p.cell))}}catch(e){h.e(e)}finally{h.f()}t.change((function(e){e.setSelection(f)}))}}]),n}(Fl);function eb(e,t){var n=!1,r=function(e){var t,n=parseInt(e.getAttribute("headingRows")||0),r=e.childCount,i=[],o=l(new eg(e));try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.row,c=a.cell,u=a.cellHeight;if(!(u<2)){var d=s<n?n:r;if(s+u>d){var f=d-s;i.push({cell:c,rowspan:f})}}}}catch(e){o.e(e)}finally{o.f()}return i}(e);if(r.length){n=!0;var i,o=l(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;Qv("rowspan",a.rowspan,a.cell,t,1)}}catch(e){o.e(e)}finally{o.f()}}return n}function tb(e,t){var n,r=!1,i=function(e){var t,n=new Array(e.childCount).fill(0),r=l(new eg(e,{includeAllSlots:!0}));try{for(r.s();!(t=r.n()).done;){n[t.value.row]++}}catch(e){r.e(e)}finally{r.f()}return n}(e),o=[],a=l(i.entries());try{for(a.s();!(n=a.n()).done;){var s=c(n.value,2),u=s[0];s[1]||o.push(u)}}catch(e){a.e(e)}finally{a.f()}if(o.length){r=!0;var d,f=l(o.reverse());try{for(f.s();!(d=f.n()).done;){var h=d.value;t.remove(e.getChild(h)),i.splice(h,1)}}catch(e){f.e(e)}finally{f.f()}}var p=i[0];if(!i.every((function(e){return e===p}))){var m,v=i.reduce((function(e,t){return t>e?t:e}),0),g=l(i.entries());try{for(g.s();!(m=g.n()).done;){var b=c(m.value,2),y=b[0],k=v-b[1];if(k){for(var w=0;w<k;w++)Xv(t,t.createPositionAt(e.getChild(y),"end"));r=!0}}}catch(e){g.e(e)}finally{g.f()}}return r}function nb(e){var t="attribute"===e.type,n=e.attributeKey;return t&&("headingRows"===n||"colspan"===n||"rowspan"===n)}function rb(e,t){var n,r=!1,i=l(e.getChildren());try{for(i.s();!(n=i.n()).done;){r=ib(n.value,t)||r}}catch(e){i.e(e)}finally{i.f()}return r}function ib(e,t){var n,r=!1,i=l(e.getChildren());try{for(i.s();!(n=i.n()).done;){r=ob(n.value,t)||r}}catch(e){i.e(e)}finally{i.f()}return r}function ob(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;var n,r=Array.from(e.getChildren()).filter((function(e){return e.is("$text")})),i=l(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.wrap(t.createRangeOn(o),"paragraph")}}catch(e){i.e(e)}finally{i.f()}return!!r.length}function ab(e){return!(!e.position||!e.position.parent.is("element","tableCell"))&&("insert"==e.type&&"$text"==e.name||"remove"==e.type)}function sb(e,t){if(!e.is("element","paragraph"))return!1;var n=t.toViewElement(e);return!!n&&ig(e)!==n.is("element","span")}n(111);var cb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model,n=t.schema,r=e.conversion;n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),n.extend("$block",{allowIn:"tableCell"}),n.addChildCheck((function(e,t){if("table"==t.name&&Array.from(e.getNames()).includes("table"))return!1})),r.for("upcast").add((function(e){e.on("element:table",(function(e,t,n){var r=t.viewItem;if(n.consumable.test(r,{name:!0})){var i=function(e){for(var t,n={headingRows:0,headingColumns:0},r=[],i=[],o=0,a=Array.from(e.getChildren());o<a.length;o++){var s=a[o];if("tbody"===s.name||"thead"===s.name||"tfoot"===s.name){"thead"!==s.name||t||(t=s);var c,u=l(Array.from(s.getChildren()).filter((function(e){return e.is("element","tr")})));try{for(u.s();!(c=u.n()).done;){var d=c.value;if("thead"===d.parent.name&&d.parent===t)n.headingRows++,r.push(d);else{i.push(d);var f=Zv(d);f>n.headingColumns&&(n.headingColumns=f)}}}catch(e){u.e(e)}finally{u.f()}}}return n.rows=[].concat(r,i),n}(r),o=i.rows,a=i.headingRows,s=i.headingColumns,c={};s&&(c.headingColumns=s),a&&(c.headingRows=a);var u=n.writer.createElement("table",c);if(n.safeInsert(u,t.modelCursor)){if(n.consumable.consume(r,{name:!0}),o.forEach((function(e){return n.convertItem(e,n.writer.createPositionAt(u,"end"))})),u.isEmpty){var d=n.writer.createElement("tableRow");n.writer.insert(d,n.writer.createPositionAt(u,"end")),Xv(n.writer,n.writer.createPositionAt(d,"end"))}n.updateConversionResult(u,t)}}}))})),r.for("editingDowncast").add(ng({asWidget:!0})),r.for("dataDowncast").add(ng()),r.for("upcast").elementToElement({model:"tableRow",view:"tr"}),r.for("upcast").add((function(e){e.on("element:tr",(function(e,t){t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()}),{priority:"high"})})),r.for("editingDowncast").add((function(e){return e.on("insert:tableRow",(function(e,t,n){var r=t.item;if(n.consumable.consume(r,"insert")){var i,o=r.parent,a=function(e){var t,n=l(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;if("table"===r.name)return r}}catch(e){n.e(e)}finally{n.f()}}(n.mapper.toViewElement(o)),s=o.getChildIndex(r),c=new eg(o,{row:s}),u={headingRows:o.getAttribute("headingRows")||0,headingColumns:o.getAttribute("headingColumns")||0},d=new Map,f=l(c);try{for(f.s();!(i=f.n()).done;){var h=i.value,p=d.get(s)||sg(a,r,s,u,n);d.set(s,p),n.consumable.consume(h.cell,"insert"),ag(h,u,n.writer.createPositionAt(p,"end"),n,{asWidget:!0})}}catch(e){f.e(e)}finally{f.f()}}}))})),r.for("editingDowncast").add((function(e){return e.on("remove:tableRow",(function(e,t,n){e.stop();var r,i=n.writer,o=n.mapper,a=o.toViewPosition(t.position).getLastMatchingPosition((function(e){return!e.item.is("element","tr")})).nodeAfter,s=a.parent.parent,c=i.createRangeOn(a),u=i.remove(c),d=l(i.createRangeIn(u).getItems());try{for(d.s();!(r=d.n()).done;){var f=r.value;o.unbindViewElement(f)}}catch(e){d.e(e)}finally{d.f()}ug("thead",s,n),ug("tbody",s,n)}),{priority:"higher"})})),r.for("upcast").elementToElement({model:"tableCell",view:"td"}),r.for("upcast").elementToElement({model:"tableCell",view:"th"}),r.for("editingDowncast").add((function(e){return e.on("insert:tableCell",(function(e,t,n){var r=t.item;if(n.consumable.consume(r,"insert")){var i,o=r.parent,a=o.parent,s=a.getChildIndex(o),c=new eg(a,{row:s}),u={headingRows:a.getAttribute("headingRows")||0,headingColumns:a.getAttribute("headingColumns")||0},d=l(c);try{for(d.s();!(i=d.n()).done;){var f=i.value;if(f.cell===r){var h=n.mapper.toViewElement(o);return void ag(f,u,n.writer.createPositionAt(h,o.getChildIndex(r)),n,{asWidget:!0})}}}catch(e){d.e(e)}finally{d.f()}}}))})),e.conversion.for("editingDowncast").elementToElement({model:"paragraph",view:rg,converterPriority:"high"}),r.attributeToAttribute({model:"colspan",view:"colspan"}),r.attributeToAttribute({model:"rowspan",view:"rowspan"}),r.for("editingDowncast").add((function(e){return e.on("attribute:headingColumns:table",(function(e,t,n){var r=t.item;if(n.consumable.consume(t.item,e.name)){var i,o={headingRows:r.getAttribute("headingRows")||0,headingColumns:r.getAttribute("headingColumns")||0},a=t.attributeOldValue,s=t.attributeNewValue,c=l(new eg(r,{endColumn:(a>s?a:s)-1}));try{for(c.s();!(i=c.n()).done;){og(i.value,o,n)}}catch(e){c.e(e)}finally{c.f()}}}))})),e.commands.add("insertTable",new hg(e)),e.commands.add("insertTableRowAbove",new Ag(e,{order:"above"})),e.commands.add("insertTableRowBelow",new Ag(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new xg(e,{order:"left"})),e.commands.add("insertTableColumnRight",new xg(e,{order:"right"})),e.commands.add("removeTableRow",new zg(e)),e.commands.add("removeTableColumn",new Vg(e)),e.commands.add("splitTableCellVertically",new Sg(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new Sg(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new Kg(e)),e.commands.add("mergeTableCellRight",new Bg(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new Bg(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new Bg(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new Bg(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new Hg(e)),e.commands.add("setTableRowHeader",new $g(e)),e.commands.add("selectTableRow",new Jg(e)),e.commands.add("selectTableColumn",new Zg(e)),function(e){e.document.registerPostFixer((function(){return function(e){var t,n=e.document.differ,r=new Set,i=l(n.getChanges());try{for(i.s();!(t=i.n()).done;){var o=t.value;if("attribute"==o.type){var a=o.range.start.nodeAfter;a&&a.is("element","table")&&"headingRows"==o.attributeKey&&r.add(a)}}}catch(e){i.e(e)}finally{i.f()}if(r.size){var s,c=l(r.values());try{for(c.s();!(s=c.n()).done;){var u=s.value;n.refreshItem(u)}}catch(e){c.e(e)}finally{c.f()}return!0}return!1}(e)}))}(t),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,r=t.document.differ.getChanges(),i=!1,o=new Set,a=l(r);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=void 0;"table"==s.name&&"insert"==s.type&&(c=s.position.nodeAfter),"tableRow"!=s.name&&"tableCell"!=s.name||(c=s.position.findAncestor("table")),nb(s)&&(c=s.range.start.findAncestor("table")),c&&!o.has(c)&&(i=eb(c,e)||i,i=tb(c,e)||i,o.add(c))}}catch(e){a.e(e)}finally{a.f()}return i}(t,e)}))}(t),function(e,t){e.document.registerPostFixer((function(){return function(e,t){var n,r=new Set,i=l(e.getChanges());try{for(i.s();!(n=i.n()).done;){var o=n.value,a="attribute"==o.type?o.range.start.parent:o.position.parent;a.is("element","tableCell")&&r.add(a)}}catch(e){i.e(e)}finally{i.f()}var s,c=l(r.values());try{for(c.s();!(s=c.n()).done;){var d,f=l(u(s.value.getChildren()).filter((function(e){return sb(e,t)})));try{for(f.s();!(d=f.n()).done;){var h=d.value;e.refreshItem(h)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){c.e(e)}finally{c.f()}return!1}(e.document.differ,t)}))}(t,e.editing.mapper),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,r=!1,i=l(t.document.differ.getChanges());try{for(i.s();!(n=i.n()).done;){var o=n.value;"insert"==o.type&&"table"==o.name&&(r=rb(o.position.nodeAfter,e)||r),"insert"==o.type&&"tableRow"==o.name&&(r=ib(o.position.nodeAfter,e)||r),"insert"==o.type&&"tableCell"==o.name&&(r=ob(o.position.nodeAfter,e)||r),ab(o)&&(r=ob(o.position.parent,e)||r)}}catch(e){i.e(e)}finally{i.f()}return r}(t,e)}))}(t)}}],[{key:"pluginName",get:function(){return"TableEditing"}},{key:"requires",get:function(){return[Ug]}}]),n}(Ll);n(113);var lb=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.items=r._createGridCollection(),r.set("rows",0),r.set("columns",0),r.bind("label").to(y(r),"columns",y(r),"rows",(function(e,t){return"".concat(t," × ").concat(e)})),r.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":i.to("boxover")},children:r.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:i.to("label")}]}],on:{mousedown:i.to((function(e){e.preventDefault()})),click:i.to((function(){r.fire("execute")}))}}),r.on("boxover",(function(e,t){var n=t.target.dataset,i=n.row,o=n.column;r.set({rows:parseInt(i),columns:parseInt(o)})})),r.on("change:columns",(function(){r._highlightGridBoxes()})),r.on("change:rows",(function(){r._highlightGridBoxes()})),r}return m(n,[{key:"focus",value:function(){}},{key:"focusLast",value:function(){}},{key:"_highlightGridBoxes",value:function(){var e=this.rows,t=this.columns;this.items.map((function(n,r){var i=Math.floor(r/10)<e&&r%10<t;n.set("isOn",i)}))}},{key:"_createGridCollection",value:function(){for(var e=[],t=0;t<100;t++){var n=Math.floor(t/10),r=t%10;e.push(new ub(this.locale,n+1,r+1))}return this.createCollection(e)}}]),n}(Xc),ub=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;h(this,n);var a=(o=t.call(this,e)).bindTemplate;return o.set("isOn",!1),o.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",a.if("isOn","ck-on")],"data-row":r,"data-column":i}}),o}return n}(Xc),db=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=this.editor.t,r="ltr"===t.locale.contentLanguageDirection;t.ui.componentFactory.add("insertTable",(function(e){var r,i=t.commands.get("insertTable"),o=El(e);return o.bind("isEnabled").to(i),o.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:n("Insert table"),tooltip:!0}),o.on("change:isOpen",(function(){r||(r=new lb(e),o.panelView.children.add(r),r.delegate("execute").to(o),o.buttonView.on("open",(function(){r.rows=0,r.columns=0})),o.on("execute",(function(){t.execute("insertTable",{rows:r.rows,columns:r.columns}),t.editing.view.focus()})))})),o})),t.ui.componentFactory.add("tableColumn",(function(t){var i=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:n("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:r?"insertTableColumnLeft":"insertTableColumnRight",label:n("Insert column left")}},{type:"button",model:{commandName:r?"insertTableColumnRight":"insertTableColumnLeft",label:n("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:n("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:n("Select column")}}];return e._prepareDropdown(n("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',i,t)})),t.ui.componentFactory.add("tableRow",(function(t){var r=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:n("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:n("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:n("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:n("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:n("Select row")}}];return e._prepareDropdown(n("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',r,t)})),t.ui.componentFactory.add("mergeTableCells",(function(t){var i=[{type:"button",model:{commandName:"mergeTableCellUp",label:n("Merge cell up")}},{type:"button",model:{commandName:r?"mergeTableCellRight":"mergeTableCellLeft",label:n("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:n("Merge cell down")}},{type:"button",model:{commandName:r?"mergeTableCellLeft":"mergeTableCellRight",label:n("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:n("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:n("Split cell horizontally")}}];return e._prepareMergeSplitButtonDropdown(n("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',i,t)}))}},{key:"_prepareDropdown",value:function(e,t,n,r){var i=this.editor,o=El(r),a=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:e,icon:t,tooltip:!0}),o.bind("isEnabled").toMany(a,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),this.listenTo(o,"execute",(function(e){i.execute(e.source.commandName),i.editing.view.focus()})),o}},{key:"_prepareMergeSplitButtonDropdown",value:function(e,t,n,r){var i=this.editor,o=El(r,Yf);return this._fillDropdownWithListOptions(o,n),o.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),this.listenTo(o.buttonView,"execute",(function(){i.execute("mergeTableCells"),i.editing.view.focus()})),this.listenTo(o,"execute",(function(e){i.execute(e.source.commandName),i.editing.view.focus()})),o}},{key:"_fillDropdownWithListOptions",value:function(e,t){var n,r=this.editor,i=[],o=new cn,a=l(t);try{for(a.s();!(n=a.n()).done;){fb(n.value,r,i,o)}}catch(e){a.e(e)}finally{a.f()}return Dl(e,o,r.ui.componentFactory),i}}]),n}(Ll);function fb(e,t,n,r){var i=e.model=new Ef(e.model),o=e.model,a=o.commandName,s=o.bindIsOn;if("button"===e.type||"switchbutton"===e.type){var c=t.commands.get(a);n.push(c),i.set({commandName:a}),i.bind("isEnabled").to(c),s&&i.bind("isOn").to(c,"value")}i.set({withText:!0}),r.add(e)}n(115);var hb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.model;this.listenTo(t,"deleteContent",(function(t,n){return e._handleDeleteContent(t,n)}),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}},{key:"getSelectedTableCells",value:function(){var e=pg(this.editor.model.document.selection);return 0==e.length?null:e}},{key:"getSelectionAsFragment",value:function(){var e=this,t=this.getSelectedTableCells();return t?this.editor.model.change((function(n){var r=n.createDocumentFragment(),i=e.editor.plugins.get("TableUtils"),o=bg(t),a=o.first,s=o.last,c=gg(t),l=c.first,u=c.last,d=t[0].findAncestor("table"),f=u,h=s;if(yg(t,i)){var p={firstColumn:a,lastColumn:s,firstRow:l,lastRow:u};f=Rg(d,p),h=Lg(d,p)}var m=Mg(d,{startRow:l,startColumn:a,endRow:f,endColumn:h},n);return n.insert(m,r,0),r})):null}},{key:"setCellSelection",value:function(e,t){var n=this._getCellsToSelect(e,t);this.editor.model.change((function(e){e.setSelection(n.cells.map((function(t){return e.createRangeOn(t)})),{backward:n.backward})}))}},{key:"getFocusCell",value:function(){var e=u(this.editor.model.document.selection.getRanges()).pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}},{key:"getAnchorCell",value:function(){var e=Vl(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}},{key:"_defineSelectionConverter",value:function(){var e=this,t=this.editor,n=new Set;t.conversion.for("editingDowncast").add((function(t){return t.on("selection",(function(t,r,i){var o=i.writer;!function(e){var t,r=l(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;e.removeClass("ck-editor__editable_selected",i)}}catch(e){r.e(e)}finally{r.f()}n.clear()}(o);var a=e.getSelectedTableCells();if(a){var s,c=l(a);try{for(c.s();!(s=c.n()).done;){var u=s.value,d=i.mapper.toViewElement(u);o.addClass("ck-editor__editable_selected",d),n.add(d)}}catch(e){c.e(e)}finally{c.f()}var f=i.mapper.toViewElement(a[a.length-1]);o.setSelection(f,0)}}),{priority:"lowest"})}))}},{key:"_enablePluginDisabling",value:function(){var e=this,t=this.editor;this.on("change:isEnabled",(function(){if(!e.isEnabled){var n=e.getSelectedTableCells();if(!n)return;t.model.change((function(e){var r=e.createPositionAt(n[0],0),i=t.model.schema.getNearestSelectionRange(r);e.setSelection(i)}))}}))}},{key:"_handleDeleteContent",value:function(e,t){var n=c(t,2),r=n[0],i=n[1],o=this.editor.model,a=!i||"backward"==i.direction,s=pg(r);s.length&&(e.stop(),o.change((function(e){var t=s[a?s.length-1:0];o.change((function(e){var t,n=l(s);try{for(n.s();!(t=n.n()).done;){var r=t.value;o.deleteContent(e.createSelection(r,"in"))}}catch(e){n.e(e)}finally{n.f()}}));var n=o.schema.getNearestSelectionRange(e.createPositionAt(t,0));r.is("documentSelection")?e.setSelection(n):r.setTo(n)})))}},{key:"_getCellsToSelect",value:function(e,t){var n,r=this.editor.plugins.get("TableUtils"),i=r.getCellLocation(e),o=r.getCellLocation(t),a=Math.min(i.row,o.row),s=Math.max(i.row,o.row),c=Math.min(i.column,o.column),u=Math.max(i.column,o.column),d=new Array(s-a+1).fill(null).map((function(){return[]})),f={startRow:a,endRow:s,startColumn:c,endColumn:u},h=l(new eg(e.findAncestor("table"),f));try{for(h.s();!(n=h.n()).done;){var p=n.value,m=p.row,v=p.cell;d[m-a].push(v)}}catch(e){h.e(e)}finally{h.f()}var g=o.row<i.row,b=o.column<i.column;return g&&d.reverse(),b&&d.forEach((function(e){return e.reverse()})),{cells:d.flat(),backward:g||b}}}],[{key:"pluginName",get:function(){return"TableSelection"}},{key:"requires",get:function(){return[Ug]}}]),n}(Ll),pb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this.listenTo(n,"copy",(function(t,n){return e._onCopyCut(t,n)})),this.listenTo(n,"cut",(function(t,n){return e._onCopyCut(t,n)})),this.listenTo(t.model,"insertContent",(function(t,n){return e._onInsertContent.apply(e,[t].concat(u(n)))}),{priority:"high"}),this.decorate("_replaceTableSlotCell")}},{key:"_onCopyCut",value:function(e,t){var n=this.editor.plugins.get(hb);if(n.getSelectedTableCells()&&("cut"!=e.name||!this.editor.isReadOnly)){t.preventDefault(),e.stop();var r=this.editor.data,i=this.editor.editing.view.document,o=r.toView(n.getSelectionAsFragment());i.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:o,method:e.name})}}},{key:"_onInsertContent",value:function(e,t,n){var r=this;if(!n||n.is("documentSelection")){var i=this.editor.model,o=this.editor.plugins.get(Ug),a=function(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(1==e.childCount&&e.getChild(0).is("element","table"))return e.getChild(0);var n,r=t.createRangeIn(e),i=l(r.getItems());try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("element","table")){var a=t.createRange(r.start,t.createPositionBefore(o));if(t.hasContent(a,{ignoreWhitespaces:!0}))return null;var s=t.createRange(t.createPositionAfter(o),r.end);return t.hasContent(s,{ignoreWhitespaces:!0})?null:o}}}catch(e){i.e(e)}finally{i.f()}return null}(t,i);if(a){var s=vg(i.document.selection);s.length?(e.stop(),i.change((function(e){var t={width:o.getColumns(a),height:o.getRows(a)},n=function(e,t,n,r){var i=e[0].findAncestor("table"),o=bg(e),a=gg(e),s={firstColumn:o.first,lastColumn:o.last,firstRow:a.first,lastRow:a.last},c=1===e.length;return c&&(s.lastRow+=t.height-1,s.lastColumn+=t.width-1,function(e,t,n,r){var i=r.getColumns(e),o=r.getRows(e);n>i&&r.insertColumns(e,{at:i,columns:n-i}),t>o&&r.insertRows(e,{at:o,rows:t-o})}(i,s.lastRow+1,s.lastColumn+1,r)),c||!yg(e,r)?function(e,t,n){var r=t.firstRow,i=t.lastRow,o=t.firstColumn,a=t.lastColumn,s={first:r,last:i},c={first:o,last:a};vb(e,o,s,n),vb(e,a+1,s,n),mb(e,r,c,n),mb(e,i+1,c,n,r)}(i,s,n):(s.lastRow=Rg(i,s),s.lastColumn=Lg(i,s)),s}(s,t,e,o),i=n.lastRow-n.firstRow+1,c=n.lastColumn-n.firstColumn+1,l={startRow:0,startColumn:0,endRow:Math.min(i,t.height)-1,endColumn:Math.min(c,t.width)-1};a=Mg(a,l,e);var u=s[0].findAncestor("table"),d=r._replaceSelectedCellsWithPasted(a,t,u,n,e);if(r.editor.plugins.get("TableSelection").isEnabled){var f=kg(d.map((function(t){return e.createRangeOn(t)})));e.setSelection(f)}else e.setSelection(d[0],0)}))):Ng(a,o)}}}},{key:"_replaceSelectedCellsWithPasted",value:function(e,t,n,r,i){for(var o,a=t.width,s=t.height,c=function(e,t,n){var r,i=new Array(n).fill(null).map((function(){return new Array(t).fill(null)})),o=l(new eg(e));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.column,c=a.row,u=a.cell;i[c][s]=u}}catch(e){o.e(e)}finally{o.f()}return i}(e,a,s),d=[],f=0,h=u(new eg(n,{startRow:r.firstRow,endRow:r.lastRow,startColumn:r.firstColumn,endColumn:r.lastColumn,includeAllSlots:!0}));f<h.length;f++){var p=h[f],m=p.row,v=p.column;v===r.firstColumn&&(o=p.getPositionBefore());var g=m-r.firstRow,b=v-r.firstColumn,y=c[g%s][b%a],k=y?i.cloneElement(y):null,w=this._replaceTableSlotCell(p,k,o,i);w&&(Pg(w,m,v,r.lastRow,r.lastColumn,i),d.push(w),o=i.createPositionAfter(w))}var _=parseInt(n.getAttribute("headingRows")||0),C=parseInt(n.getAttribute("headingColumns")||0),A=r.firstRow<_&&_<=r.lastRow,x=r.firstColumn<C&&C<=r.lastColumn;if(A){var S=mb(n,_,{first:r.firstColumn,last:r.lastColumn},i,r.firstRow);d.push.apply(d,u(S))}if(x){var M=vb(n,C,{first:r.firstRow,last:r.lastRow},i);d.push.apply(d,u(M))}return d}},{key:"_replaceTableSlotCell",value:function(e,t,n,r){var i=e.cell;return e.isAnchor&&r.remove(i),t?(r.insert(t,n),t):null}}],[{key:"pluginName",get:function(){return"TableClipboard"}},{key:"requires",get:function(){return[hb,Ug]}}]),n}(Ll);function mb(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!(t<1))return Eg(e,t,i).filter((function(e){return gb(e.column,e.cellWidth,n)})).map((function(e){return Tg(e.cell,t,r)}))}function vb(e,t,n,r){if(!(t<1))return Dg(e,t).filter((function(e){return gb(e.row,e.cellHeight,n)})).map((function(e){return Og(e.cell,e.column,t,r)}))}function gb(e,t,n){var r=e+t-1,i=n.first,o=n.last;return e>=i&&e<=o||e<i&&r>=i}var bb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",(function(){return e._handleTabOnSelectedTable.apply(e,arguments)}),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(t,"keydown",(function(){return e._onKeydown.apply(e,arguments)}),{priority:Yt.get("high")-10})}},{key:"_handleTabOnSelectedTable",value:function(e,t){var n=this.editor,r=n.model.document.selection.getSelectedElement();r&&r.is("element","table")&&(t(),n.model.change((function(e){e.setSelection(e.createRangeIn(r.getChild(0).getChild(0)))})))}},{key:"_getTabHandler",value:function(e){var t=this,n=this.editor;return function(r,i){var o=mg(n.model.document.selection)[0];if(o||(o=t.editor.plugins.get("TableSelection").getFocusCell()),o){i();var a=o.parent,s=a.parent,c=s.getChildIndex(a),l=a.getChildIndex(o),u=0===l;if(e||!u||0!==c){var d=l===a.childCount-1,f=c===s.childCount-1;if(e&&f&&d&&(n.execute("insertTableRowBelow"),c===s.childCount-1))n.model.change((function(e){e.setSelection(e.createRangeOn(s))}));else{var h;if(e&&d){var p=s.getChild(c+1);h=p.getChild(0)}else if(!e&&u){var m=s.getChild(c-1);h=m.getChild(m.childCount-1)}else h=a.getChild(l+(e?1:-1));n.model.change((function(e){e.setSelection(e.createRangeIn(h))}))}}else n.model.change((function(e){e.setSelection(e.createRangeOn(s))}))}}}},{key:"_onKeydown",value:function(e,t){var n=this.editor,r=t.keyCode;if(Kr(r)){var i=Gr(r,n.locale.contentLanguageDirection);this._handleArrowKeys(i,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}}},{key:"_handleArrowKeys",value:function(e,t){var n,r=this.editor.model.document.selection,i=["right","down"].includes(e),o=pg(r);if(o.length)return n=t?this.editor.plugins.get("TableSelection").getFocusCell():i?o[o.length-1]:o[0],this._navigateFromCellInDirection(n,e,t),!0;var a=r.focus.findAncestor("tableCell");return!(!a||t&&!r.isCollapsed&&r.isBackward==i||!this._isSelectionAtCellEdge(r,a,i)||(this._navigateFromCellInDirection(a,e,t),0))}},{key:"_isSelectionAtCellEdge",value:function(e,t,n){var r=this.editor.model,i=this.editor.model.schema,o=n?e.getLastPosition():e.getFirstPosition();if(!i.getLimitElement(o).is("element","tableCell"))return r.createPositionAt(t,n?"end":0).isTouching(o);var a=r.createSelection(o);return r.modifySelection(a,{direction:n?"forward":"backward"}),o.isEqual(a.focus)}},{key:"_navigateFromCellInDirection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.model,i=e.findAncestor("table"),o=u(new eg(i,{includeAllSlots:!0})),a=o[o.length-1],s=a.row,c=a.column,l=o.find((function(t){return t.cell==e})),d=l.row,f=l.column;switch(t){case"left":f--;break;case"up":d--;break;case"right":f+=l.cellWidth;break;case"down":d+=l.cellHeight}if(d<0||d>s||f<0&&d<=0||f>c&&d>=s)r.change((function(e){e.setSelection(e.createRangeOn(i))}));else{f<0?(f=n?0:c,d--):f>c&&(f=n?c:0,d++);var h=o.find((function(e){return e.row==d&&e.column==f})).cell,p=["right","down"].includes(t),m=this.editor.plugins.get("TableSelection");if(n&&m.isEnabled){var v=m.getAnchorCell()||e;m.setCellSelection(v,h)}else{var g=r.createPositionAt(h,p?0:"end");r.change((function(e){e.setSelection(g)}))}}}}],[{key:"pluginName",get:function(){return"TableKeyboard"}},{key:"requires",get:function(){return[hb]}}]),n}(Ll),yb=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType=["mousemove","mouseup","mouseleave"],r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo),kb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.editor.editing.view.addObserver(yb),this._enableShiftClickSelection(),this._enableMouseDragSelection()}},{key:"_enableShiftClickSelection",value:function(){var e=this,t=this.editor,n=!1,r=t.plugins.get(hb);this.listenTo(t.editing.view.document,"mousedown",(function(i,o){if(e.isEnabled&&r.isEnabled&&o.domEvent.shiftKey){var a=r.getAnchorCell()||mg(t.model.document.selection)[0];if(a){var s=e._getModelTableCellFromDomEvent(o);s&&wb(a,s)&&(n=!0,r.setCellSelection(a,s),o.preventDefault())}}})),this.listenTo(t.editing.view.document,"mouseup",(function(){n=!1})),this.listenTo(t.editing.view.document,"selectionChange",(function(e){n&&e.stop()}),{priority:"highest"})}},{key:"_enableMouseDragSelection",value:function(){var e,t,n=this,r=this.editor,i=!1,o=!1,a=r.plugins.get(hb);this.listenTo(r.editing.view.document,"mousedown",(function(t,r){n.isEnabled&&a.isEnabled&&(r.domEvent.shiftKey||r.domEvent.ctrlKey||r.domEvent.altKey||(e=n._getModelTableCellFromDomEvent(r)))})),this.listenTo(r.editing.view.document,"mousemove",(function(r,s){if(s.domEvent.buttons&&e){var c=n._getModelTableCellFromDomEvent(s);c&&wb(e,c)&&(t=c,i||t==e||(i=!0)),i&&(o=!0,a.setCellSelection(e,t),s.preventDefault())}})),this.listenTo(r.editing.view.document,"mouseup",(function(){i=!1,o=!1,e=null,t=null})),this.listenTo(r.editing.view.document,"selectionChange",(function(e){o&&e.stop()}),{priority:"highest"})}},{key:"_getModelTableCellFromDomEvent",value:function(e){var t=e.target,n=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}],[{key:"pluginName",get:function(){return"TableMouse"}},{key:"requires",get:function(){return[hb]}}]),n}(Ll);function wb(e,t){return e.parent.parent==t.parent.parent}function _b(e){var t=e.getSelectedElement();return t&&Ab(t)?t:null}function Cb(e){var t=function(e,t){for(var n=t.parent;n;){if("table"===n.name)return n;n=n.parent}}(0,e.getFirstPosition());return t&&Ab(t.parent)?t.parent:null}function Ab(e){return!!e.getCustomProperty("table")&&dh(e)}n(117);var xb=/[\\^$.*+?()[\]{}|]/g,Sb=RegExp(xb.source),Mb={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:"1/2",to:"½"},oneThird:{from:"1/3",to:"⅓"},twoThirds:{from:"2/3",to:"⅔"},oneForth:{from:"1/4",to:"¼"},threeQuarters:{from:"3/4",to:"¾"},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:Ib('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:Ib("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:Ib("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:Ib('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:Ib('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:Ib("'"),to:[null,"‚",null,"’"]}},Eb={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},Tb=["symbols","mathematical","typography","quotes"];function Db(e){return"string"==typeof e?new RegExp("(".concat(function(e){return(e=jn(e))&&Sb.test(e)?e.replace(xb,"\\$&"):e}(e),")$")):e}function Ob(e){return"string"==typeof e?function(){return[e]}:e instanceof Array?function(){return e}:e}function Pb(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function Ib(e){return new RegExp("(^|\\s)(".concat(e,")([^").concat(e,"]*)(").concat(e,")$"))}var jb="underline",Nb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:jb}),e.model.schema.setAttributeProperties(jb,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:jb,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),e.commands.add(jb,new Pu(e,jb)),e.keystrokes.set("CTRL+U","underline")}}],[{key:"pluginName",get:function(){return"UnderlineEditing"}}]),n}(Ll),Rb="underline",Lb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(Rb,(function(r){var i=t.commands.get(Rb),o=new kl(r);return o.set({label:n("Underline"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 18v-1.5h14V18zm2.2-8V3.6c0-.4.4-.6.8-.6.3 0 .7.2.7.6v6.2c0 2 1.3 2.8 3.2 2.8 1.9 0 3.4-.9 3.4-2.9V3.6c0-.3.4-.5.8-.5.3 0 .7.2.7.5V10c0 2.7-2.2 4-4.9 4-2.6 0-4.7-1.2-4.7-4z"/></svg>',keystroke:"CTRL+U",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(Rb),t.editing.view.focus()})),o}))}}]),n}(Ll),Bb=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return n}(Rl);Bb.builtinPlugins=[function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Yl,Xl]}},{key:"pluginName",get:function(){return"Alignment"}}]),n}(Ll),Au,function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Du,Ou]}},{key:"pluginName",get:function(){return"BlockQuote"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[ju,Ru]}},{key:"pluginName",get:function(){return"Bold"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Vu,Wu,nd,Qu,gd,Bd]}},{key:"pluginName",get:function(){return"Essentials"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[vf,yf]}},{key:"pluginName",get:function(){return"FontBackgroundColor"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[wf,_f]}},{key:"pluginName",get:function(){return"FontColor"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Mf,Tf]}},{key:"pluginName",get:function(){return"FontFamily"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[jf,Nf]}},{key:"pluginName",get:function(){return"FontSize"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Hf,Uf]}},{key:"pluginName",get:function(){return"Heading"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Wf,Kf]}},{key:"pluginName",get:function(){return"Highlight"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[kh,wh]}},{key:"pluginName",get:function(){return"HorizontalLine"}}]),n}(Ll),ip,function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[sp]}},{key:"pluginName",get:function(){return"ImageCaption"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"pluginName",get:function(){return"ImageInsert"}},{key:"requires",get:function(){return[jp,Bp]}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[zp,Qp,Hp]}},{key:"pluginName",get:function(){return"ImageResize"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[sm,cm]}},{key:"pluginName",get:function(){return"ImageStyle"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"afterInit",value:function(){var e=this.editor,t=e.t;e.plugins.get(lm).register("image",{ariaLabel:t("Image toolbar"),items:e.config.get("image.toolbar")||[],getRelatedElement:Ah})}}],[{key:"requires",get:function(){return[lm]}},{key:"pluginName",get:function(){return"ImageToolbar"}}]),n}(Ll),jp,function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"pluginName",get:function(){return"Indent"}},{key:"requires",get:function(){return[hm,vm]}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[bm,km]}},{key:"pluginName",get:function(){return"Italic"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[jm,$m,Au]}},{key:"pluginName",get:function(){return"Link"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Um,Gm]}},{key:"pluginName",get:function(){return"LinkImage"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[kv,_v]}},{key:"pluginName",get:function(){return"List"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Ov,Nv,Iv,zh]}},{key:"pluginName",get:function(){return"MediaEmbed"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"afterInit",value:function(){var e=this.editor,t=e.t;e.plugins.get(lm).register("mediaEmbed",{ariaLabel:t("Media toolbar"),items:e.config.get("mediaEmbed.toolbar")||[],getRelatedElement:Av})}}],[{key:"requires",get:function(){return[lm]}},{key:"pluginName",get:function(){return"MediaEmbedToolbar"}}]),n}(Ll),Ff,function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document,n=[];n.push(new Uv(t)),n.push(new Fv(t)),e.plugins.get("Clipboard").on("inputTransformation",(function(e,t){if(!t.isTransformedWithPasteFromOffice){var r=t.dataTransfer.getData("text/html"),i=n.find((function(e){return e.isActive(r)}));i&&(i.execute(t),t.isTransformedWithPasteFromOffice=!0)}}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"PasteFromOffice"}},{key:"requires",get:function(){return[Vu]}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Kv,Wv]}},{key:"pluginName",get:function(){return"RemoveFormat"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor.config.get("simpleUpload");e&&(e.uploadUrl?this.editor.plugins.get(kp).createUploadAdapter=function(t){return new Gv(t,e)}:Object(Kt.c)("simple-upload-adapter-missing-uploadurl"))}}],[{key:"requires",get:function(){return[kp]}},{key:"pluginName",get:function(){return"SimpleUploadAdapter"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[cb,db,hb,kb,bb,pb,zh]}},{key:"pluginName",get:function(){return"Table"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"afterInit",value:function(){var e=this.editor,t=e.t,n=e.plugins.get(lm),r=e.config.get("table.contentToolbar"),i=e.config.get("table.tableToolbar");r&&n.register("tableContent",{ariaLabel:t("Table toolbar"),items:r,getRelatedElement:Cb}),i&&n.register("table",{ariaLabel:t("Table toolbar"),items:i,getRelatedElement:_b})}}],[{key:"requires",get:function(){return[lm]}},{key:"pluginName",get:function(){return"TableToolbar"}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("typing",{transformations:{include:Tb}}),r}return m(n,null,[{key:"pluginName",get:function(){return"TextTransformation"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}},{key:"_enableTransformationWatchers",value:function(){var e=this.editor,t=e.model,n=e.plugins.get("Input"),r=function(e){var t=e.extra||[],n=e.remove||[],r=function(e){return!n.includes(e)};return function(e){var t,n=new Set,r=l(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(Eb[i]){var o,a=l(Eb[i]);try{for(a.s();!(o=a.n()).done;){var s=o.value;n.add(s)}}catch(e){a.e(e)}finally{a.f()}}else n.add(i)}}catch(e){r.e(e)}finally{r.f()}return Array.from(n)}(e.include.concat(t).filter(r)).filter(r).map((function(e){return Mb[e]||e})).map((function(e){return{from:Db(e.from),to:Ob(e.to)}}))}(e.config.get("typing.transformations")),i=new Zl(e.model,(function(e){var t,n=l(r);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.from.test(e))return{normalizedTransformation:i}}}catch(e){n.e(e)}finally{n.f()}}));i.on("matched:data",(function(e,r){if(n.isInput(r.batch)){var i=r.normalizedTransformation,o=i.from,a=i.to,s=o.exec(r.text),c=a(s.slice(1)),l=r.range,u=s.index;t.enqueueChange((function(e){for(var n=1;n<s.length;n++){var r=s[n],i=c[n-1];if(null!=i){var o=l.start.getShiftedBy(u),a=t.createRange(o,o.getShiftedBy(r.length)),d=Pb(o);t.insertContent(e.createText(i,d),a),u+=i.length}else u+=r.length}}))}})),i.bind("isEnabled").to(this)}}]),n}(Ll),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Nb,Lb]}},{key:"pluginName",get:function(){return"Underline"}}]),n}(Ll)],t.default=Bb}]).default}))}).call(this,n(183)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return x()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function f(){}function h(){}var p={};p[i]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(A([])));v&&v!==t&&n.call(v,i)&&(p=v);var g=h.prototype=d.prototype=Object.create(p);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function A(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return f.prototype=g.constructor=h,h.constructor=f,f.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(y.prototype),y.prototype[o]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new y(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,a,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";var r=n(23);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,"div.ck-editor__editable{min-height:500px}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(24);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,".mw-fc[data-v-1526165e]{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(25);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,"div.ck-editor__editable{min-height:500px}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(26);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,".card .card-icon--success[data-v-77d962d2]{background-color:rgba(67,155,115,.03)}.card .card-icon--info[data-v-77d962d2]{background-color:rgba(31,162,255,.03)}.card .card-icon--warn[data-v-77d962d2]{background-color:rgba(255,143,0,.03)}.card .card-icon--danger[data-v-77d962d2]{background-color:rgba(192,36,40,.03)}.card .card-icon[data-v-77d962d2]{text-align:center;height:72px;width:72px;min-width:72px;border-radius:50%;margin-right:20px}.card--shadow[data-v-77d962d2]{box-shadow:0 1px 1px 0 rgba(10,22,70,.1),0 0 1px 0 rgba(10,22,70,.06)}.card[data-v-77d962d2]{padding:24px 36px;width:100%}.bg-white[data-v-77d962d2]{background-color:#fff!important}.d-flex[data-v-77d962d2]{display:flex!important;flex-direction:row}.flex-content-center[data-v-77d962d2]{align-content:center!important}.flex-justify-between[data-v-77d962d2]{justify-content:space-between!important}.card .card-content[data-v-77d962d2]{border-left:1px solid #f7f8f9;padding-left:20px;flex-grow:1;min-height:72px}.flex-justify-center[data-v-77d962d2]{justify-content:center!important}.flex-column[data-v-77d962d2]{flex-direction:column!important}.flex-items-center[data-v-77d962d2]{align-items:center!important}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(27);n.n(r).a},function(e,t,n){(t=n(3)(!1)).push([e.i,"input[data-v-57f75663]{height:40px;padding:10px 12px;width:100%;color:#32325d;background-color:#fff;border:1px solid transparent;border-radius:4px;box-shadow:0 1px 3px 0 #e6ebf1;transition:box-shadow .15s ease}input[data-v-57f75663]:focus{box-shadow:0 1px 3px 0 #cfd7df}.ElementsModal--modal[data-v-57f75663]{all:initial;box-sizing:border-box;position:fixed;font-family:-apple-system,BlinkMacSystemFont,sans-serif;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);opacity:0;visibility:hidden;transform:scale(1.1);transition:visibility 0s linear .25s,opacity .25s 0s,transform .25s;z-index:100001!important}.ElementsModal--modal-content[data-v-57f75663]{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);border-radius:10px;background:#fff;overflow:hidden;width:385px;border-radius:.5rem}@media screen and (max-width:600px){.ElementsModal--modal-content[data-v-57f75663]{height:100vh;width:100%;border-radius:0}.ElementsModal--close[data-v-57f75663],.ElementsModal--top[data-v-57f75663]{padding-top:4em}}.ElementsModal--top[data-v-57f75663]{display:flex;justify-content:flex-end;position:relative}.ElementsModal--close[data-v-57f75663]{background:none;color:inherit;padding:0;font:inherit;outline:inherit;color:#fff;cursor:pointer;position:absolute;top:0;right:0;border:none}.ElementsModal--show-modal[data-v-57f75663]{opacity:1;visibility:visible;transform:scale(1);transition:visibility 0s linear 0s,opacity .25s 0s,transform .25s}.ElementsModal--details[data-v-57f75663]{margin-bottom:2px}.ElementsModal--price[data-v-57f75663]{color:#fff;font-size:36px;font-weight:600}.ElementsModal--top-banner[data-v-57f75663]{background-color:#044e9c;text-align:center;padding:20px 1em 2em}.ElementsModal--email[data-v-57f75663],.ElementsModal--product[data-v-57f75663]{color:hsla(0,0%,100%,.5);font-size:16px;font-weight:500}.ElementsModal--company[data-v-57f75663]{color:#fff;font-size:18px;font-weight:700;margin:auto auto 32px}.ElementsModal--footer-text[data-v-57f75663]{color:rgba(0,0,0,.4);font-size:12px;font-weight:400;text-align:center;line-height:16px}.ElementsModal--error-message[data-v-57f75663]{margin-top:5px;color:#dc2727;font-size:13px;line-height:17px}.ElementsModal--pay-button-wrapper[data-v-57f75663]{font-family:-apple-system,BlinkMacSystemFont,sans-serif;margin:25px;width:350px;height:40px}.ElementsModal--pay-button[data-v-57f75663]{cursor:pointer;border:0;width:100%;text-align:center;height:40px;box-shadow:inset 0 0 0 1px rgba(50,50,93,.1),0 2px 5px 0 rgba(50,50,93,.1),0 1px 1px 0 rgba(0,0,0,.07);border-radius:6px 6px 6px 6px;font-size:16px;font-weight:600;background-color:#0074d4;color:#fff}.ElementsModal--pay-button[data-v-57f75663]:focus{outline:none;box-shadow:0 0 0 1px rgba(50,151,211,.3),0 1px 1px 0 rgba(0,0,0,.07),0 0 0 4px rgba(50,151,211,.3)}.ElementsModal--dropdowns[data-v-57f75663]{margin:10px;-webkit-appearance:none;background:#fff;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px 0 rgba(0,0,0,.07),0 1px 1.5px 0 rgba(0,0,0,.05);border-radius:4px 4px 4px 4px}.ElementsModal--payment-form[data-v-57f75663]{margin-bottom:0}.ElementsModal--label[data-v-57f75663]{color:rgba(0,0,0,.6);font-size:14px;font-weight:500}.ElementsModal--forms[data-v-57f75663]{padding:5%}.ElementsModal--form[data-v-57f75663]{margin-bottom:14px}.ElementsModal--form-label[data-v-57f75663]{font-size:13px;margin-bottom:4px;display:block;color:rgba(0,0,0,.6)}.ElementsModal--form-select select[data-v-57f75663]{padding:10px 12px;width:100%;border:1px solid transparent;outline:none;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px 0 rgba(0,0,0,.07),0 1px 1.5px 0 rgba(0,0,0,.05);transition:box-shadow .15s ease;border-radius:5px 5px 5px 5px;background-color:#fff;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.193 3.97a.75.75 0 011.062 1.062L6.53 9.756a.75.75 0 01-1.06 0L.745 5.032A.75.75 0 011.807 3.97L6 8.163l4.193-4.193z' fill-rule='evenodd' fill-opacity='.4'/%3E%3C/svg%3E\");background-size:12px;background-position:calc(100% - 16px) 50%;background-repeat:no-repeat;color:#282828;font-size:16px;font-weight:400}.ElementsModal--form-select select[data-v-57f75663]:-moz-focusring{color:transparent;text-shadow:0 0 0 #000}.ElementsModal--form>label[data-v-57f75663]{width:100%}.ElementsModal--form-select select[data-v-57f75663]:focus{box-shadow:0 0 0 1px rgba(50,151,211,.3),0 1px 1px 0 rgba(0,0,0,.07),0 0 0 4px rgba(50,151,211,.3)}.ElementsModal--form-select select[data-v-57f75663]::-ms-expand{display:none}.ElementsModal--form-divider[data-v-57f75663]{margin-top:14px;margin-bottom:25px;text-align:center;border-bottom:1px solid #e7e7e7;height:20px;width:100%}.ElementsModal--form-divider-text[data-v-57f75663]{position:relative;bottom:-10px;padding:0 10px;background:#fff;color:#909090;font-size:14px;font-weight:400}.StripeElement--payment-request[data-v-57f75663]{display:none;margin-bottom:14px}.StripeElement--payment-request-button[data-v-57f75663]{margin-bottom:12px}.StripeElement--card[data-v-57f75663],.stripeElement--input[data-v-57f75663]{box-sizing:border-box;height:40px;padding:10px 12px;border:1px solid transparent;border-radius:5px 5px 5px 5px;background-color:#fff;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px 0 rgba(0,0,0,.07),0 1px 1.5px 0 rgba(0,0,0,.05);transition:box-shadow .15s ease}.StripeElement--card--focus[data-v-57f75663]{box-shadow:0 1px 3px 0 #cfd7df}.StripeElement--card--invalid[data-v-57f75663]{border-color:#ef9896}.StripeElement--card--webkit-autofill[data-v-57f75663]{background-color:#fefde5!important}",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r="https://js.stripe.com/v3",i=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,o="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",a=null,s=function(e){return null!==a?a:a=new Promise((function(t,n){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(o),window.Stripe)t(window.Stripe);else try{var a=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),t=0;t<e.length;t++){var n=e[t];if(i.test(n.src))return n}return null}();a&&e?console.warn(o):a||(a=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(r).concat(t);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(n),n}(e)),a.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),a.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}))},c=function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.9.0",startTime:t})}(r,n),r},l=Promise.resolve().then((function(){return s(null)})),u=!1;l.catch((function(e){u||console.warn(e)}));var d={name:"StripeModal",props:["content"],data:function(){return{stripe:null,amount:"-"}},mounted:function(){location.search.indexOf("?pay=now")>=0&&this.toggleElementsModalVisibility()},methods:{createIntent:function(){var e=this;null===this.stripe&&this.createPaymentIntent(this.content).then((function(t){e.amount=e.calculateDisplayAmountFromCurrency(t),e.getPublicKey().then((function(n){(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];u=!0;var r=Date.now();return l.then((function(e){return c(e,t,r)}))})(n).then((function(t){return e.stripe=t})).then((function(){e.createElements(e.content,t),e.createPaymentRequest(e.content,t)}))}))}))},getPublicKey:function(){return fetch("/pay/public-key",{method:"get",headers:{"Content-Type":"application/json"}}).then((function(e){return e.json()})).then((function(e){return e.publicKey}))},toggleElementsModalVisibility:function(){var e=document.querySelector(".ElementsModal--modal");e&&e.classList&&(e.classList.toggle("ElementsModal--show-modal"),this.createIntent())},createPaymentIntent:function(e){return fetch("/pay/payment-intents",{method:"post",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":document.querySelectorAll('meta[name="csrf-token"]')[0].content},body:JSON.stringify(e)}).then((function(e){return e.json()})).then((function(e){return e}))},createPaymentRequest:function(e,t){var n=this,r=this.stripe.paymentRequest({country:"FR",currency:"eur",total:{label:e.productName,amount:t.amount},requestPayerName:!0,requestPayerEmail:!0}),i=this.stripe.elements().create("paymentRequestButton",{paymentRequest:r});r.canMakePayment().then((function(e){e?(document.getElementById("payment-request-section").style.display="block",i.mount("#payment-request-button")):(document.getElementById("payment-request-button").style.display="none",document.getElementById("payment-request-section").style.display="none")})),r.on("paymentmethod",(function(e){n.stripe.confirmCardPayment(t.client_secret,{payment_method:e.paymentMethod.id},{handleActions:!1}).then((function(t){if(t.error)e.complete("fail");else{if(e.complete("success"),"succeeded"===t.paymentIntent.status)return n.stripePaymentHandler();n.stripe.confirmCardPayment(n.paymentIntent.client_secret).then((function(e){e.error?document.getElementById("paymentRequest-errors").textContent=e.error.message:n.stripePaymentHandler()}))}}))}))},createElements:function(e,t){var n=this,r=this.stripe.elements().create("card",{style:{base:{color:"#32325d",fontFamily:"-apple-system, BlinkMacSystemFont, sans-serif",fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}},hidePostalCode:!0});r.mount("#card-element"),document.getElementById("payment-form").addEventListener("submit",(function(i){i.preventDefault(),n.stripe.confirmCardPayment(t.client_secret,{payment_method:{card:r,billing_details:{name:e.customerName}}}).then((function(e){e.error?document.getElementById("card-errors").textContent=e.error.message:n.stripePaymentHandler()}))}))},stripePaymentHandler:function(){this.toggleElementsModalVisibility(),document.querySelectorAll(".payment-view").forEach((function(e){e.classList.add("hidden")})),document.querySelectorAll(".completed-view").forEach((function(e){e.classList.remove("hidden")})),Vue.toasted.success("Payement accepté, merci !",{duration:3e3,theme:"bubble"}),setTimeout((function(){window.location.href=window.location.pathname+"?"+$.param({stripe_success:"true"})}),3500)},browserLocale:function(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage?navigator.userLanguage:navigator.language},zeroDecimalCurrencies:function(e){return["BIF","CLP","DJF","GNF","JPY","KMF","KRW","XPF","XOF","XAF","VUV","VND","UGX","RWF","PYG","MGA"].indexOf(e)},calculateDisplayAmountFromCurrency:function(e){var t=e.amount;return-1===this.zeroDecimalCurrencies(e.currency)&&(t/=100),t.toLocaleString(this.browserLocale(),{style:"currency",currency:e.currency})}}},f=(n(194),n(1)),h=Object(f.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ElementsModal--modal"},[n("div",{staticClass:"ElementsModal--modal-content"},[n("div",{staticClass:"ElementsModal--top-banner"},[n("div",{staticClass:"ElementsModal--sales-info"},[n("div",{staticClass:"ElementsModal--top"},[n("div",{staticClass:"ElementsModal--company"},[e._v("Prescription Santé - Le Quotidien")]),e._v(" "),n("button",{staticClass:"ElementsModal--close",on:{click:e.toggleElementsModalVisibility}},[n("svg",{attrs:{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs",[n("path",{attrs:{d:"M10,8.8766862 L13.6440403,5.2326459 C13.9542348,4.92245137 14.4571596,4.92245137 14.7673541,5.2326459 C15.0775486,5.54284044 15.0775486,6.04576516 14.7673541,6.3559597 L11.1238333,9.99948051 L14.7673541,13.6430016 C15.0775486,13.9531961 15.0775486,14.4561209 14.7673541,14.7663154 C14.4571596,15.0765099 13.9542348,15.0765099 13.6440403,14.7663154 L10,11.1222751 L6.3559597,14.7663154 C6.04576516,15.0765099 5.54284044,15.0765099 5.2326459,14.7663154 C4.92245137,14.4561209 4.92245137,13.9531961 5.2326459,13.6430016 L8.87616671,9.99948051 L5.2326459,6.3559597 C4.92245137,6.04576516 4.92245137,5.54284044 5.2326459,5.2326459 C5.54284044,4.92245137 6.04576516,4.92245137 6.3559597,5.2326459 L10,8.8766862 Z",id:"path-1"}})]),e._v(" "),n("g",{attrs:{id:"Payment-recipes",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"Elements-Popup",transform:"translate(-816.000000, -97.000000)"}},[n("g",{attrs:{id:"close-btn",transform:"translate(816.000000, 97.000000)"}},[n("circle",{attrs:{id:"Oval","fill-opacity":"0.3",fill:"#AEAEAE",cx:"10",cy:"10",r:"10"}}),e._v(" "),n("mask",{attrs:{id:"mask-2",fill:"white"}},[n("use",{attrs:{"xlink:href":"#path-1"}})]),e._v(" "),n("use",{attrs:{id:"Mask","fill-opacity":"0.5",fill:"#FFFFFF",opacity:"0.5","xlink:href":"#path-1"}})])])])])])]),e._v(" "),n("div",{staticClass:"ElementsModal--product ElementsModal--details"},[e._v(e._s(e.content.productName))]),e._v(" "),n("div",{staticClass:"ElementsModal--price ElementsModal--details"},[e._v(e._s(e.amount))]),e._v(" "),n("div",{staticClass:"ElementsModal--email ElementsModal--details"},[e._v(e._s(e.content.email))])])]),e._v(" "),n("div",{staticClass:"ElementsModal--payment-details"},[n("form",{staticClass:"ElementsModal--payment-form",attrs:{id:"payment-form"}},[n("div",{staticClass:"form-row"},[n("div",{staticClass:"ElementsModal--forms"},[e._m(0),e._v(" "),e._m(1),e._v(" "),e._m(2),e._v(" "),n("div",{staticClass:"ElementsModal--form"},[n("input",{attrs:{type:"hidden",name:"amount"},domProps:{value:e.content.amount}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"currency"},domProps:{value:e.content.currency}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"description"},domProps:{value:e.content.productName}}),e._v(" "),n("button",{staticClass:"ElementsModal--pay-button"},[e._v("Payer "+e._s(e.content.amount))])]),e._v(" "),e._m(3)])])])])])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"StripeElement--payment-request",attrs:{id:"payment-request-section"}},[t("div",{staticClass:"StripeElement--payment-request-button",attrs:{id:"payment-request-button"}}),this._v(" "),t("div",{staticClass:"ElementsModal--error-message",attrs:{id:"paymentRequest-errors",role:"alert"}}),this._v(" "),t("div",{staticClass:"ElementsModal--form-divider"},[t("span",{staticClass:"ElementsModal--form-divider-text"},[this._v("Or pay with card")])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ElementsModal--form"},[t("label",{attrs:{for:"ElementsModal--card-element"}},[t("span",{staticClass:"ElementsModal--form-label spacer"},[this._v("Card details")]),this._v(" "),t("div",{staticClass:"StripeElement--card",attrs:{id:"card-element"}})]),this._v(" "),t("div",{staticClass:"ElementsModal--error-message",attrs:{id:"card-errors",role:"alert"}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ElementsModal--form"},[n("label",{staticClass:"select"},[n("span",{staticClass:"ElementsModal--form-label spacer"},[e._v("Country or region")]),e._v(" "),n("div",{staticClass:"ElementsModal--form-select",attrs:{id:"country"}},[n("select",{attrs:{name:"country",autocomplete:"billing country","aria-label":"Country or region"}},[n("option",{attrs:{value:"AF"}},[e._v("Afghanistan")]),e._v(" "),n("option",{attrs:{value:"AX"}},[e._v("Åland Islands")]),e._v(" "),n("option",{attrs:{value:"AL"}},[e._v("Albania")]),e._v(" "),n("option",{attrs:{value:"DZ"}},[e._v("Algeria")]),e._v(" "),n("option",{attrs:{value:"AD"}},[e._v("Andorra")]),e._v(" "),n("option",{attrs:{value:"AO"}},[e._v("Angola")]),e._v(" "),n("option",{attrs:{value:"AI"}},[e._v("Anguilla")]),e._v(" "),n("option",{attrs:{value:"AQ"}},[e._v("Antarctica")]),e._v(" "),n("option",{attrs:{value:"AG"}},[e._v("Antigua & Barbuda")]),e._v(" "),n("option",{attrs:{value:"AR"}},[e._v("Argentina")]),e._v(" "),n("option",{attrs:{value:"AM"}},[e._v("Armenia")]),e._v(" "),n("option",{attrs:{value:"AW"}},[e._v("Aruba")]),e._v(" "),n("option",{attrs:{value:"AC"}},[e._v("Ascension Island")]),e._v(" "),n("option",{attrs:{value:"AU"}},[e._v("Australia")]),e._v(" "),n("option",{attrs:{value:"AT"}},[e._v("Austria")]),e._v(" "),n("option",{attrs:{value:"AZ"}},[e._v("Azerbaijan")]),e._v(" "),n("option",{attrs:{value:"BS"}},[e._v("Bahamas")]),e._v(" "),n("option",{attrs:{value:"BH"}},[e._v("Bahrain")]),e._v(" "),n("option",{attrs:{value:"BD"}},[e._v("Bangladesh")]),e._v(" "),n("option",{attrs:{value:"BB"}},[e._v("Barbados")]),e._v(" "),n("option",{attrs:{value:"BY"}},[e._v("Belarus")]),e._v(" "),n("option",{attrs:{value:"BE"}},[e._v("Belgium")]),e._v(" "),n("option",{attrs:{value:"BZ"}},[e._v("Belize")]),e._v(" "),n("option",{attrs:{value:"BJ"}},[e._v("Benin")]),e._v(" "),n("option",{attrs:{value:"BM"}},[e._v("Bermuda")]),e._v(" "),n("option",{attrs:{value:"BT"}},[e._v("Bhutan")]),e._v(" "),n("option",{attrs:{value:"BO"}},[e._v("Bolivia")]),e._v(" "),n("option",{attrs:{value:"BA"}},[e._v("Bosnia & Herzegovina")]),e._v(" "),n("option",{attrs:{value:"BW"}},[e._v("Botswana")]),e._v(" "),n("option",{attrs:{value:"BV"}},[e._v("Bouvet Island")]),e._v(" "),n("option",{attrs:{value:"BR"}},[e._v("Brazil")]),e._v(" "),n("option",{attrs:{value:"IO"}},[e._v("British Indian Ocean Territory")]),e._v(" "),n("option",{attrs:{value:"VG"}},[e._v("British Virgin Islands")]),e._v(" "),n("option",{attrs:{value:"BN"}},[e._v("Brunei")]),e._v(" "),n("option",{attrs:{value:"BG"}},[e._v("Bulgaria")]),e._v(" "),n("option",{attrs:{value:"BF"}},[e._v("Burkina Faso")]),e._v(" "),n("option",{attrs:{value:"BI"}},[e._v("Burundi")]),e._v(" "),n("option",{attrs:{value:"KH"}},[e._v("Cambodia")]),e._v(" "),n("option",{attrs:{value:"CM"}},[e._v("Cameroon")]),e._v(" "),n("option",{attrs:{value:"CA"}},[e._v("Canada")]),e._v(" "),n("option",{attrs:{value:"CV"}},[e._v("Cape Verde")]),e._v(" "),n("option",{attrs:{value:"BQ"}},[e._v("Caribbean Netherlands")]),e._v(" "),n("option",{attrs:{value:"KY"}},[e._v("Cayman Islands")]),e._v(" "),n("option",{attrs:{value:"CF"}},[e._v("Central African Republic")]),e._v(" "),n("option",{attrs:{value:"TD"}},[e._v("Chad")]),e._v(" "),n("option",{attrs:{value:"CL"}},[e._v("Chile")]),e._v(" "),n("option",{attrs:{value:"CN"}},[e._v("China")]),e._v(" "),n("option",{attrs:{value:"CO"}},[e._v("Colombia")]),e._v(" "),n("option",{attrs:{value:"KM"}},[e._v("Comoros")]),e._v(" "),n("option",{attrs:{value:"CG"}},[e._v("Congo - Brazzaville")]),e._v(" "),n("option",{attrs:{value:"CD"}},[e._v("Congo - Kinshasa")]),e._v(" "),n("option",{attrs:{value:"CK"}},[e._v("Cook Islands")]),e._v(" "),n("option",{attrs:{value:"CR"}},[e._v("Costa Rica")]),e._v(" "),n("option",{attrs:{value:"CI"}},[e._v("Côte d’Ivoire")]),e._v(" "),n("option",{attrs:{value:"HR"}},[e._v("Croatia")]),e._v(" "),n("option",{attrs:{value:"CW"}},[e._v("Curaçao")]),e._v(" "),n("option",{attrs:{value:"CY"}},[e._v("Cyprus")]),e._v(" "),n("option",{attrs:{value:"CZ"}},[e._v("Czechia")]),e._v(" "),n("option",{attrs:{value:"DK"}},[e._v("Denmark")]),e._v(" "),n("option",{attrs:{value:"DJ"}},[e._v("Djibouti")]),e._v(" "),n("option",{attrs:{value:"DM"}},[e._v("Dominica")]),e._v(" "),n("option",{attrs:{value:"DO"}},[e._v("Dominican Republic")]),e._v(" "),n("option",{attrs:{value:"EC"}},[e._v("Ecuador")]),e._v(" "),n("option",{attrs:{value:"EG"}},[e._v("Egypt")]),e._v(" "),n("option",{attrs:{value:"SV"}},[e._v("El Salvador")]),e._v(" "),n("option",{attrs:{value:"GQ"}},[e._v("Equatorial Guinea")]),e._v(" "),n("option",{attrs:{value:"ER"}},[e._v("Eritrea")]),e._v(" "),n("option",{attrs:{value:"EE"}},[e._v("Estonia")]),e._v(" "),n("option",{attrs:{value:"ET"}},[e._v("Ethiopia")]),e._v(" "),n("option",{attrs:{value:"FK"}},[e._v("Falkland Islands")]),e._v(" "),n("option",{attrs:{value:"FO"}},[e._v("Faroe Islands")]),e._v(" "),n("option",{attrs:{value:"FJ"}},[e._v("Fiji")]),e._v(" "),n("option",{attrs:{value:"FI"}},[e._v("Finland")]),e._v(" "),n("option",{attrs:{value:"FR",selected:"selected"}},[e._v("France")]),e._v(" "),n("option",{attrs:{value:"GF"}},[e._v("French Guiana")]),e._v(" "),n("option",{attrs:{value:"PF"}},[e._v("French Polynesia")]),e._v(" "),n("option",{attrs:{value:"TF"}},[e._v("French Southern Territories")]),e._v(" "),n("option",{attrs:{value:"GA"}},[e._v("Gabon")]),e._v(" "),n("option",{attrs:{value:"GM"}},[e._v("Gambia")]),e._v(" "),n("option",{attrs:{value:"GE"}},[e._v("Georgia")]),e._v(" "),n("option",{attrs:{value:"DE"}},[e._v("Germany")]),e._v(" "),n("option",{attrs:{value:"GH"}},[e._v("Ghana")]),e._v(" "),n("option",{attrs:{value:"GI"}},[e._v("Gibraltar")]),e._v(" "),n("option",{attrs:{value:"GR"}},[e._v("Greece")]),e._v(" "),n("option",{attrs:{value:"GL"}},[e._v("Greenland")]),e._v(" "),n("option",{attrs:{value:"GD"}},[e._v("Grenada")]),e._v(" "),n("option",{attrs:{value:"GP"}},[e._v("Guadeloupe")]),e._v(" "),n("option",{attrs:{value:"GU"}},[e._v("Guam")]),e._v(" "),n("option",{attrs:{value:"GT"}},[e._v("Guatemala")]),e._v(" "),n("option",{attrs:{value:"GG"}},[e._v("Guernsey")]),e._v(" "),n("option",{attrs:{value:"GN"}},[e._v("Guinea")]),e._v(" "),n("option",{attrs:{value:"GW"}},[e._v("Guinea-Bissau")]),e._v(" "),n("option",{attrs:{value:"GY"}},[e._v("Guyana")]),e._v(" "),n("option",{attrs:{value:"HT"}},[e._v("Haiti")]),e._v(" "),n("option",{attrs:{value:"HN"}},[e._v("Honduras")]),e._v(" "),n("option",{attrs:{value:"HK"}},[e._v("Hong Kong SAR China")]),e._v(" "),n("option",{attrs:{value:"HU"}},[e._v("Hungary")]),e._v(" "),n("option",{attrs:{value:"IS"}},[e._v("Iceland")]),e._v(" "),n("option",{attrs:{value:"IN"}},[e._v("India")]),e._v(" "),n("option",{attrs:{value:"ID"}},[e._v("Indonesia")]),e._v(" "),n("option",{attrs:{value:"IR"}},[e._v("Iran")]),e._v(" "),n("option",{attrs:{value:"IQ"}},[e._v("Iraq")]),e._v(" "),n("option",{attrs:{value:"IE"}},[e._v("Ireland")]),e._v(" "),n("option",{attrs:{value:"IM"}},[e._v("Isle of Man")]),e._v(" "),n("option",{attrs:{value:"IL"}},[e._v("Israel")]),e._v(" "),n("option",{attrs:{value:"IT"}},[e._v("Italy")]),e._v(" "),n("option",{attrs:{value:"JM"}},[e._v("Jamaica")]),e._v(" "),n("option",{attrs:{value:"JP"}},[e._v("Japan")]),e._v(" "),n("option",{attrs:{value:"JE"}},[e._v("Jersey")]),e._v(" "),n("option",{attrs:{value:"JO"}},[e._v("Jordan")]),e._v(" "),n("option",{attrs:{value:"KZ"}},[e._v("Kazakhstan")]),e._v(" "),n("option",{attrs:{value:"KE"}},[e._v("Kenya")]),e._v(" "),n("option",{attrs:{value:"KI"}},[e._v("Kiribati")]),e._v(" "),n("option",{attrs:{value:"XK"}},[e._v("Kosovo")]),e._v(" "),n("option",{attrs:{value:"KW"}},[e._v("Kuwait")]),e._v(" "),n("option",{attrs:{value:"KG"}},[e._v("Kyrgyzstan")]),e._v(" "),n("option",{attrs:{value:"LA"}},[e._v("Laos")]),e._v(" "),n("option",{attrs:{value:"LV"}},[e._v("Latvia")]),e._v(" "),n("option",{attrs:{value:"LB"}},[e._v("Lebanon")]),e._v(" "),n("option",{attrs:{value:"LS"}},[e._v("Lesotho")]),e._v(" "),n("option",{attrs:{value:"LR"}},[e._v("Liberia")]),e._v(" "),n("option",{attrs:{value:"LY"}},[e._v("Libya")]),e._v(" "),n("option",{attrs:{value:"LI"}},[e._v("Liechtenstein")]),e._v(" "),n("option",{attrs:{value:"LT"}},[e._v("Lithuania")]),e._v(" "),n("option",{attrs:{value:"LU"}},[e._v("Luxembourg")]),e._v(" "),n("option",{attrs:{value:"MO"}},[e._v("Macau SAR China")]),e._v(" "),n("option",{attrs:{value:"MK"}},[e._v("Macedonia")]),e._v(" "),n("option",{attrs:{value:"MG"}},[e._v("Madagascar")]),e._v(" "),n("option",{attrs:{value:"MW"}},[e._v("Malawi")]),e._v(" "),n("option",{attrs:{value:"MY"}},[e._v("Malaysia")]),e._v(" "),n("option",{attrs:{value:"MV"}},[e._v("Maldives")]),e._v(" "),n("option",{attrs:{value:"ML"}},[e._v("Mali")]),e._v(" "),n("option",{attrs:{value:"MT"}},[e._v("Malta")]),e._v(" "),n("option",{attrs:{value:"MQ"}},[e._v("Martinique")]),e._v(" "),n("option",{attrs:{value:"MR"}},[e._v("Mauritania")]),e._v(" "),n("option",{attrs:{value:"MU"}},[e._v("Mauritius")]),e._v(" "),n("option",{attrs:{value:"YT"}},[e._v("Mayotte")]),e._v(" "),n("option",{attrs:{value:"MX"}},[e._v("Mexico")]),e._v(" "),n("option",{attrs:{value:"MD"}},[e._v("Moldova")]),e._v(" "),n("option",{attrs:{value:"MC"}},[e._v("Monaco")]),e._v(" "),n("option",{attrs:{value:"MN"}},[e._v("Mongolia")]),e._v(" "),n("option",{attrs:{value:"ME"}},[e._v("Montenegro")]),e._v(" "),n("option",{attrs:{value:"MS"}},[e._v("Montserrat")]),e._v(" "),n("option",{attrs:{value:"MA"}},[e._v("Morocco")]),e._v(" "),n("option",{attrs:{value:"MZ"}},[e._v("Mozambique")]),e._v(" "),n("option",{attrs:{value:"MM"}},[e._v("Myanmar (Burma)")]),e._v(" "),n("option",{attrs:{value:"NA"}},[e._v("Namibia")]),e._v(" "),n("option",{attrs:{value:"NR"}},[e._v("Nauru")]),e._v(" "),n("option",{attrs:{value:"NP"}},[e._v("Nepal")]),e._v(" "),n("option",{attrs:{value:"NL"}},[e._v("Netherlands")]),e._v(" "),n("option",{attrs:{value:"NC"}},[e._v("New Caledonia")]),e._v(" "),n("option",{attrs:{value:"NZ"}},[e._v("New Zealand")]),e._v(" "),n("option",{attrs:{value:"NI"}},[e._v("Nicaragua")]),e._v(" "),n("option",{attrs:{value:"NE"}},[e._v("Niger")]),e._v(" "),n("option",{attrs:{value:"NG"}},[e._v("Nigeria")]),e._v(" "),n("option",{attrs:{value:"NU"}},[e._v("Niue")]),e._v(" "),n("option",{attrs:{value:"NO"}},[e._v("Norway")]),e._v(" "),n("option",{attrs:{value:"OM"}},[e._v("Oman")]),e._v(" "),n("option",{attrs:{value:"PK"}},[e._v("Pakistan")]),e._v(" "),n("option",{attrs:{value:"PS"}},[e._v("Palestinian Territories")]),e._v(" "),n("option",{attrs:{value:"PA"}},[e._v("Panama")]),e._v(" "),n("option",{attrs:{value:"PG"}},[e._v("Papua New Guinea")]),e._v(" "),n("option",{attrs:{value:"PY"}},[e._v("Paraguay")]),e._v(" "),n("option",{attrs:{value:"PE"}},[e._v("Peru")]),e._v(" "),n("option",{attrs:{value:"PH"}},[e._v("Philippines")]),e._v(" "),n("option",{attrs:{value:"PN"}},[e._v("Pitcairn Islands")]),e._v(" "),n("option",{attrs:{value:"PL"}},[e._v("Poland")]),e._v(" "),n("option",{attrs:{value:"PT"}},[e._v("Portugal")]),e._v(" "),n("option",{attrs:{value:"PR"}},[e._v("Puerto Rico")]),e._v(" "),n("option",{attrs:{value:"QA"}},[e._v("Qatar")]),e._v(" "),n("option",{attrs:{value:"RE"}},[e._v("Réunion")]),e._v(" "),n("option",{attrs:{value:"RO"}},[e._v("Romania")]),e._v(" "),n("option",{attrs:{value:"RU"}},[e._v("Russia")]),e._v(" "),n("option",{attrs:{value:"RW"}},[e._v("Rwanda")]),e._v(" "),n("option",{attrs:{value:"WS"}},[e._v("Samoa")]),e._v(" "),n("option",{attrs:{value:"SM"}},[e._v("San Marino")]),e._v(" "),n("option",{attrs:{value:"ST"}},[e._v("São Tomé & Príncipe")]),e._v(" "),n("option",{attrs:{value:"SA"}},[e._v("Saudi Arabia")]),e._v(" "),n("option",{attrs:{value:"SN"}},[e._v("Senegal")]),e._v(" "),n("option",{attrs:{value:"RS"}},[e._v("Serbia")]),e._v(" "),n("option",{attrs:{value:"SC"}},[e._v("Seychelles")]),e._v(" "),n("option",{attrs:{value:"SL"}},[e._v("Sierra Leone")]),e._v(" "),n("option",{attrs:{value:"SG"}},[e._v("Singapore")]),e._v(" "),n("option",{attrs:{value:"SX"}},[e._v("Sint Maarten")]),e._v(" "),n("option",{attrs:{value:"SK"}},[e._v("Slovakia")]),e._v(" "),n("option",{attrs:{value:"SI"}},[e._v("Slovenia")]),e._v(" "),n("option",{attrs:{value:"SB"}},[e._v("Solomon Islands")]),e._v(" "),n("option",{attrs:{value:"SO"}},[e._v("Somalia")]),e._v(" "),n("option",{attrs:{value:"ZA"}},[e._v("South Africa")]),e._v(" "),n("option",{attrs:{value:"GS"}},[e._v("South Georgia & South Sandwich Islands")]),e._v(" "),n("option",{attrs:{value:"KR"}},[e._v("South Korea")]),e._v(" "),n("option",{attrs:{value:"SS"}},[e._v("South Sudan")]),e._v(" "),n("option",{attrs:{value:"ES"}},[e._v("Spain")]),e._v(" "),n("option",{attrs:{value:"LK"}},[e._v("Sri Lanka")]),e._v(" "),n("option",{attrs:{value:"BL"}},[e._v("St. Barthélemy")]),e._v(" "),n("option",{attrs:{value:"SH"}},[e._v("St. Helena")]),e._v(" "),n("option",{attrs:{value:"KN"}},[e._v("St. Kitts & Nevis")]),e._v(" "),n("option",{attrs:{value:"LC"}},[e._v("St. Lucia")]),e._v(" "),n("option",{attrs:{value:"MF"}},[e._v("St. Martin")]),e._v(" "),n("option",{attrs:{value:"PM"}},[e._v("St. Pierre & Miquelon")]),e._v(" "),n("option",{attrs:{value:"VC"}},[e._v("St. Vincent & Grenadines")]),e._v(" "),n("option",{attrs:{value:"SR"}},[e._v("Suriname")]),e._v(" "),n("option",{attrs:{value:"SJ"}},[e._v("Svalbard & Jan Mayen")]),e._v(" "),n("option",{attrs:{value:"SZ"}},[e._v("Swaziland")]),e._v(" "),n("option",{attrs:{value:"SE"}},[e._v("Sweden")]),e._v(" "),n("option",{attrs:{value:"CH"}},[e._v("Switzerland")]),e._v(" "),n("option",{attrs:{value:"TW"}},[e._v("Taiwan")]),e._v(" "),n("option",{attrs:{value:"TJ"}},[e._v("Tajikistan")]),e._v(" "),n("option",{attrs:{value:"TZ"}},[e._v("Tanzania")]),e._v(" "),n("option",{attrs:{value:"TH"}},[e._v("Thailand")]),e._v(" "),n("option",{attrs:{value:"TL"}},[e._v("Timor-Leste")]),e._v(" "),n("option",{attrs:{value:"TG"}},[e._v("Togo")]),e._v(" "),n("option",{attrs:{value:"TK"}},[e._v("Tokelau")]),e._v(" "),n("option",{attrs:{value:"TO"}},[e._v("Tonga")]),e._v(" "),n("option",{attrs:{value:"TT"}},[e._v("Trinidad & Tobago")]),e._v(" "),n("option",{attrs:{value:"TA"}},[e._v("Tristan da Cunha")]),e._v(" "),n("option",{attrs:{value:"TN"}},[e._v("Tunisia")]),e._v(" "),n("option",{attrs:{value:"TR"}},[e._v("Turkey")]),e._v(" "),n("option",{attrs:{value:"TM"}},[e._v("Turkmenistan")]),e._v(" "),n("option",{attrs:{value:"TC"}},[e._v("Turks & Caicos Islands")]),e._v(" "),n("option",{attrs:{value:"TV"}},[e._v("Tuvalu")]),e._v(" "),n("option",{attrs:{value:"UG"}},[e._v("Uganda")]),e._v(" "),n("option",{attrs:{value:"UA"}},[e._v("Ukraine")]),e._v(" "),n("option",{attrs:{value:"AE"}},[e._v("United Arab Emirates")]),e._v(" "),n("option",{attrs:{value:"GB"}},[e._v("United Kingdom")]),e._v(" "),n("option",{attrs:{value:"US"}},[e._v("United States")]),e._v(" "),n("option",{attrs:{value:"UY"}},[e._v("Uruguay")]),e._v(" "),n("option",{attrs:{value:"UZ"}},[e._v("Uzbekistan")]),e._v(" "),n("option",{attrs:{value:"VU"}},[e._v("Vanuatu")]),e._v(" "),n("option",{attrs:{value:"VA"}},[e._v("Vatican City")]),e._v(" "),n("option",{attrs:{value:"VE"}},[e._v("Venezuela")]),e._v(" "),n("option",{attrs:{value:"VN"}},[e._v("Vietnam")]),e._v(" "),n("option",{attrs:{value:"WF"}},[e._v("Wallis & Futuna")]),e._v(" "),n("option",{attrs:{value:"EH"}},[e._v("Western Sahara")]),e._v(" "),n("option",{attrs:{value:"YE"}},[e._v("Yemen")]),e._v(" "),n("option",{attrs:{value:"ZM"}},[e._v("Zambia")]),e._v(" "),n("option",{attrs:{alue:"ZW"}},[e._v("Zimbabwe")])])])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"footer ElementsModal--footer-text"},[this._v("\n En cliquant sur Payer vous acceptez les\n "),t("a",{staticClass:"ElementsModal--footer-text",attrs:{href:"stripe.com"}},[this._v("Termes and Conditions.")]),this._v(" de Prescription Santé - Le Quotidien\n ")])}],!1,null,"57f75663",null);t.default=h.exports},function(e,t,n){"use strict";n.r(t);var r={en:{next:"Next",back:"Back",finish:"Finish"},es:{next:"Siguiente",back:"Atrás",finish:"Finalizar"},pt:{next:"Próximo",back:"Voltar",finish:"Finalizar"},ja:{next:"次へ",back:"戻る",finish:"完了"},he:{next:"הבא",back:"חזרה",finish:"סיום"},cn:{next:"下一步",back:"返回",finish:"完成"},ru:{next:"Вперед",back:"Назад",finish:"Готово"},ar:{next:"التالي",back:"السابق",finish:"انهاء"},nl:{next:"Volgende",back:"Vorige",finish:"Klaar"},sv:{next:"Nästa",back:"Tillbaka",finish:"Skicka"}},i={filters:{translate:function(e,t){return r[t][e]}},props:{locale:{type:String,default:"en"},topButtons:{type:Boolean,default:!1},steps:{type:Array,default:function(){return[{icon:"mail",name:"first",title:"Sample title 1",subtitle:"Subtitle sample"},{icon:"report_problem",name:"second",title:"Sample title 2",subtitle:"Subtitle sample"}]}},keepAlive:{type:Boolean,default:!0},reset:{type:Boolean,default:!1}},data(){return{currentStep:{},previousStep:{},nextButton:{},canContinue:!1,finalStep:!1,keepAliveData:this.keepAlive}},computed:{enterAnimation(){return this.currentStep.index<this.previousStep.index?"animated quick fadeInLeft":"animated quick fadeInRight"},leaveAnimation(){return this.currentStep.index>this.previousStep.index?"animated quick fadeOutLeft":"animated quick fadeOutRight"}},methods:{isStepActive(e,t){return this.currentStep.index===e?"activated":"deactivated"},activateStep(e,t=!1){this.steps[e]&&(this.previousStep=this.currentStep,this.currentStep={name:this.steps[e].name,index:e},e+1===this.steps.length?this.finalStep=!0:this.finalStep=!1,t||this.$emit("completed-step",this.previousStep)),this.$emit("active-step",this.currentStep)},nextStepAction(){if(this.nextButton[this.currentStep.name]=!0,this.canContinue){this.finalStep&&this.$emit("stepper-finished",this.currentStep);let e=this.currentStep.index+1;this.activateStep(e)}this.canContinue=!1,this.$forceUpdate()},nextStep(){this.$listeners&&this.$listeners["before-next-step"]||this.nextStepAction(),this.canContinue=!1,this.$emit("before-next-step",{currentStep:this.currentStep},(e=!0)=>{this.canContinue=!0,e&&this.nextStepAction()})},backStep(){this.$emit("clicking-back");let e=this.currentStep.index-1;e>=0&&this.activateStep(e,!0)},proceed(e){this.canContinue=e.value},changeNextBtnValue(e){this.nextButton[this.currentStep.name]=e.nextBtnValue,this.$forceUpdate()},init(){this.activateStep(0),this.steps.forEach(e=>{this.nextButton[e.name]=!1})}},watch:{reset(e){e&&(this.keepAliveData=!1,this.init(),this.previousStep={},this.$nextTick(()=>{this.keepAliveData=this.keepAlive,this.$emit("reset",!0)}))}},created(){this.init()}},o=(n(176),n(178),n(1)),a=Object(o.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-box"},[n("div",{staticClass:"top"},[n("div",{staticClass:"divider-line",style:{width:100/e.steps.length*(e.steps.length-1)-10+"%"}}),e._v(" "),n("div",{staticClass:"steps-wrapper"},[e.topButtons?[e.currentStep.index>0?n("div",{staticClass:"stepper-button-top previous",on:{click:function(t){return e.backStep()}}},[n("i",{staticClass:"material-icons"},[e._v("keyboard_arrow_left")])]):e._e()]:e._e(),e._v(" "),e._l(e.steps,(function(t,r){return[n("div",{key:r,class:["step",e.isStepActive(r,t)],style:{width:100/e.steps.length+"%"}},[n("div",{staticClass:"circle"},[n("i",{staticClass:"material-icons md-18"},[e._v("\n "+e._s(t.completed?"done":t.icon)+"\n ")])]),e._v(" "),n("div",{staticClass:"step-title"},[n("h4",[e._v(e._s(t.title))]),e._v(" "),n("h5",{staticClass:"step-subtitle"},[e._v(e._s(t.subtitle))])])])]})),e._v(" "),e.topButtons?n("div",{class:["stepper-button-top next",e.canContinue?"":"deactivated"],on:{click:function(t){return e.nextStep()}}},[n("i",{staticClass:"material-icons"},[e._v("keyboard_arrow_right")])]):e._e()],2)]),e._v(" "),n("div",{staticClass:"content"},[n("transition",{attrs:{"enter-active-class":e.enterAnimation,"leave-active-class":e.leaveAnimation,mode:"out-in"}},[e.keepAliveData?n("keep-alive",[n(e.steps[e.currentStep.index].component,{tag:"component",attrs:{clickedNext:e.nextButton[e.currentStep.name],"current-step":e.currentStep},on:{"can-continue":e.proceed,"change-next":e.changeNextBtnValue}})],1):n(e.steps[e.currentStep.index].component,{tag:"component",attrs:{clickedNext:e.nextButton[e.currentStep.name],"current-step":e.currentStep},on:{"can-continue":e.proceed,"change-next":e.changeNextBtnValue}})],1)],1),e._v(" "),n("div",{class:["bottom",e.currentStep.index>0?"":"only-next"]},[e.currentStep.index>0?n("div",{staticClass:"stepper-button previous",on:{click:function(t){return e.backStep()}}},[n("i",{staticClass:"material-icons"},[e._v("keyboard_arrow_left")]),e._v(" "),n("span",[e._v(e._s(e._f("translate")("back",e.locale)))])]):e._e(),e._v(" "),n("div",{class:["stepper-button next",e.canContinue?"":"deactivated"],on:{click:function(t){return e.nextStep()}}},[n("span",[e._v(e._s(e._f("translate")(e.finalStep?"finish":"next",e.locale)))]),e._v(" "),n("i",{staticClass:"material-icons"},[e._v("keyboard_arrow_right")])])])])}),[],!1,null,"0cd2e8d8",null);t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r={mixins:[n(9).a],mounted:function(){},computed:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ais-instant-search",{attrs:{"search-client":e.searchClient,"index-name":e.prefix+"searchable_texts"}},[n("ais-configure",{attrs:{hitsPerPage:12}}),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"px-3"},[n("ais-search-box",{staticClass:"searchbox ",attrs:{placeholder:"Rechercher..."}})],1),e._v(" "),n("ais-stats",{staticClass:"mt-2 ml-3"}),e._v(" "),n("div",{staticClass:"my-4"},[n("ais-infinite-hits",{attrs:{"class-names":{"ais-InfiniteHits-list":"row","ais-InfiniteHits-item":"col-sm-3 mb-3"}},scopedSlots:e._u([{key:"item",fn:function(e){var t=e.item,r=e.index;return n("file-hit",{key:r,attrs:{hit:t}})}},{key:"loadMore",fn:function(t){t.page;var r=t.isLastPage,i=t.refineNext;return n("button",{staticClass:"btn btn-big mt-5",attrs:{disabled:r},on:{click:i}},[n("i",{staticClass:"far fa-plus-square mr-1"}),e._v("Voir plus\n ")])}}])})],1)],1)])],1)],1)}),[],!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"ActuLabosHit"},i=n(1),o=Object(i.a)(r,(function(){var e=this.$createElement;return(this._self._c||e)("div")}),[],!1,null,"5bd42f3b",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"CampaignHit",props:["hit","flip"]},i=(n(172),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hit?n("div",{staticClass:"box p-1 article-preview"},[n("div",[n("a",{attrs:{href:e.hit.url}},[n("h3",[void 0===e.hit._highlightResult?n("span",{domProps:{innerHTML:e._s(e.hit.title)}}):e._e(),e._v(" "),n("ais-highlight",{attrs:{attribute:"title",hit:e.hit}})],1)])]),e._v(" "),n("div",[n("img",{class:{"mh-campaign":!0,"article-preview-img":e.hit.hide_text_preview,"float-left mr-3":!e.flip&&!e.hit.hide_text_preview,"float-right ml-3":e.flip&&!e.hit.hide_text_preview},attrs:{src:e.hit.image,alt:""}}),e._v(" "),e.hit.hide_text_preview?e._e():n("div",{staticClass:"pb-2",domProps:{innerHTML:e._s(e.hit.description)}}),e._v(" "),n("a",{class:{"click-here":!0,"bottom-right":!e.flip,"bottom-left":e.flip},attrs:{href:e.hit.url}},[e._v("Lire ici")])])]):e._e()}),[],!1,null,"4c732d9d",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"CampaignInstantSearch",mixins:[n(9).a],mounted:function(){},computed:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ais-instant-search",{attrs:{"search-client":e.searchClient,"index-name":e.prefix+"ad_campaigns"}},[n("ais-configure",{attrs:{hitsPerPage:10}}),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"px-3"},[n("ais-search-box",{staticClass:"searchbox ",attrs:{placeholder:"Rechercher..."}})],1),e._v(" "),n("ais-stats",{staticClass:"mt-2 ml-3"}),e._v(" "),n("div",{staticClass:"my-4"},[n("ais-infinite-hits",{attrs:{"class-names":{"ais-InfiniteHits-list":"row","ais-InfiniteHits-item":"col-sm-12 mb-3"}},scopedSlots:e._u([{key:"item",fn:function(e){var t=e.item,r=e.index;return n("campaign-hit",{key:r,attrs:{hit:t}})}},{key:"loadMore",fn:function(t){t.page;var r=t.isLastPage,i=t.refineNext;return n("button",{staticClass:"ais-InfiniteHits-loadMore",attrs:{disabled:r},on:{click:i}},[e._v("\n Voir plus\n ")])}}])})],1)],1)])],1)],1)}),[],!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"FileHit",props:["hit"],data:function(){return{}},computed:{viewLink:function(){var e="none"===this.hit._highlightResult.content.matchLevel?"1":this.hit.page;return"/view/".concat(this.hit.file.slug,"#page=").concat(e)}}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card w-100"},[n("img",{staticClass:"card-img-top",attrs:{src:e.hit.file.cover,alt:"Cover"}}),e._v(" "),n("div",{staticClass:"card-body"},[n("h5",{staticClass:"card-title text-center",domProps:{textContent:e._s(e.hit.file.title)}}),e._v(" "),n("p",{staticClass:"card-text"},e._l(e.hit.file.tags,(function(t){return n("span",{staticClass:"badge badge-light mr-1"},[n("i",{staticClass:"fas fa-tag"}),e._v(" "+e._s(t)+"\n ")])})),0),e._v(" "),n("p",{staticClass:"card-text"},["none"!==e.hit._highlightResult.content.matchLevel?n("ais-snippet",{attrs:{attribute:"content",hit:e.hit}}):e._e()],1)]),e._v(" "),n("a",{staticClass:"btn btn-big mb-0",attrs:{href:e.viewLink,target:"_blank"}},[n("i",{staticClass:"fas fa-book-open mr-1"}),e._v(" Lire cette édition")])])}),[],!1,null,"fcf1250c",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={mixins:[n(9).a],mounted:function(){},computed:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Les archives de P.S.Q.")]),e._v(" "),n("ais-instant-search",{attrs:{"search-client":e.searchClient,"index-name":e.prefix+"searchable_texts"}},[n("ais-configure",{attrs:{hitsPerPage:12}}),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"px-3"},[n("ais-search-box",{staticClass:"searchbox ",attrs:{placeholder:"Rechercher..."}})],1),e._v(" "),n("ais-stats",{staticClass:"mt-2 ml-3"}),e._v(" "),n("div",{staticClass:"my-4"},[n("ais-infinite-hits",{attrs:{"class-names":{"ais-InfiniteHits-list":"row","ais-InfiniteHits-item":"col-sm-3 mb-3"}},scopedSlots:e._u([{key:"item",fn:function(e){var t=e.item,r=e.index;return n("file-hit",{key:r,attrs:{hit:t}})}},{key:"loadMore",fn:function(t){t.page;var r=t.isLastPage,i=t.refineNext;return n("button",{staticClass:"btn btn-big mt-5",attrs:{disabled:r},on:{click:i}},[n("i",{staticClass:"far fa-plus-square mr-1"}),e._v("Voir plus\n ")])}}])})],1)],1)])],1)],1)}),[],!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"cover",mounted:function(){this.isMounted=!0},props:["dataImage","width","height"],data:function(){return{isMounted:!1,mouseX:0,mouseY:0,mouseLeaveDelay:null}},computed:{dimensions:function(){return{width:this.width,height:Math.round(this.c_height)+"px"}},c_width:function(){return this.isMounted?this.$refs.card.offsetWidth:0},c_height:function(){return this.isMounted?void 0===this.height?1.38*this.c_inner_width:this.height:0},c_inner_width:function(){return this.isMounted?this.$refs.inner.offsetWidth:0},mousePX:function(){return this.mouseX/this.c_width},mousePY:function(){return this.mouseY/this.c_height},cardStyle:function(){var e=20*this.mousePX,t=-20*this.mousePY;return{transform:"rotateY(".concat(e,"deg) rotateX(").concat(t,"deg)")}},cardBgTransform:function(){},cardBgImage:function(){return{backgroundImage:"url(".concat(this.dataImage,")")}}},methods:{handleMouseMove:function(e){this.mouseX=e.pageX-$(this.$refs.card).offset().left-this.c_width/2,this.mouseY=e.pageY-$(this.$refs.card).offset().top-this.c_height/2},handleMouseEnter:function(){clearTimeout(this.mouseLeaveDelay)},handleMouseLeave:function(){var e=this;this.mouseLeaveDelay=setTimeout((function(){e.mouseX=0,e.mouseY=0}),500)}}},i=(n(174),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"card",staticClass:"card-wrap",style:e.dimensions,on:{mousemove:e.handleMouseMove,mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave}},[n("div",{ref:"inner",staticClass:"cover",style:e.cardStyle},[n("div",{staticClass:"card-bg",style:[e.cardBgTransform,e.cardBgImage]}),e._v(" "),n("div",{staticClass:"card-info",style:{width:e.c_inner_width+"px"}},[e._t("header"),e._v(" "),e._t("content")],2)])])}),[],!1,null,"1a8b3214",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={components:{},data:function(){return{}},mounted:function(){},methods:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("h1",{staticClass:"mb-6"},[this._v("Live stats")]),this._v(" "),t("div",{staticClass:"row"},[t("div",{staticClass:"col"},[t("mg-stats",{attrs:{icon:"delivered",current:"20",total:"80",text:"delivered"}})],1),this._v(" "),t("div",{staticClass:"col"},[t("mg-stats",{attrs:{icon:"clicked",current:"20",total:"80",text:"clicked"}})],1),this._v(" "),t("div",{staticClass:"col"},[t("mg-stats",{attrs:{icon:"opened",current:"20",total:"80",text:"opened"}})],1)])])}),[],!1,null,"17570ad5",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"PollAnswers",data:function(){return{polls:[],selected_poll:null,poll_data:null,loaded:!1,selected_question_id:null}},watch:{selected_poll:function(e){this.updatePoll(e.id)},selected_question:function(e){}},computed:{selected_question:function(){var e=this;return this.poll_data?this.poll_data.questions.find((function(t){return t.position==e.selected_question_id})):null}},methods:{updatePoll:function(e){var t=this;axios.get("/otherContent/pollAnswers/"+e).then((function(e){return t.poll_data=e.data}))}},mounted:function(){var e=this;axios.get("/otherContent/pollAnswers/list").then((function(t){e.polls=t.data,e.loaded=!0,e.selected_poll=e.polls[0]}))}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.polls.length>0?n("div",[n("div",{staticClass:"form-group mb-4"},[n("label",{attrs:{for:"polls"}}),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.selected_poll,expression:"selected_poll"}],staticClass:"form-control",attrs:{name:"polls",id:"polls"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.selected_poll=t.target.multiple?n:n[0]}}},e._l(e.polls,(function(t){return n("option",{domProps:{value:t}},[e._v(e._s(t.title)+" ("+e._s(t.entries_count)+" réponses)")])})),0)]),e._v(" "),e.selected_poll?[null===e.poll_data?n("div",{staticClass:"alert alert-info"},[e._v("\n Chargement en cours...\n ")]):e.poll_data&&0===e.poll_data.entries_count?n("div",{staticClass:"alert alert-warning"},[e._v("\n Aucune réponse pour le moment !\n ")]):n("div",{staticClass:"box p-3"},[n("p",{staticClass:"lead"},[e._v(e._s(e.poll_data.entries_count)+" réponses enregistrées")]),e._v(" "),n("button",{staticClass:"btn btn-success my-1",on:{click:function(t){return e.updatePoll(e.selected_poll.id)}}},[n("i",{staticClass:"fas fa-sync-alt mr-2"}),e._v("Rafraichir")]),e._v(" "),n("div",{staticClass:"form-group mb-2"},[n("label",{attrs:{for:"question"}},[e._v("Sélectionnez une question pour voir les résultats")]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.selected_question_id,expression:"selected_question_id"}],staticClass:"form-control",attrs:{name:"question",id:"question"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.selected_question_id=t.target.multiple?n:n[0]}}},e._l(e.poll_data.questions,(function(t){return n("option",{domProps:{value:t.position}},[e._v(e._s(t.question))])})),0)]),e._v(" "),void 0===e.selected_question?n("div",{staticClass:"alert alert-info"},[e._v("\n Sélectionnez une question pour voir les réponses\n ")]):n("div",["poll_rating"===e.selected_question.type?n("div",{staticClass:"alert alert-info my-2"},[e._v("\n Le score moyen obtenu est de "+e._s(e.selected_question.mean)+"\n ")]):e._e(),e._v(" "),n("table",{staticClass:"table table-hover poll-answers"},[n("thead",{staticClass:"thead-light"},[n("tr",[n("th",[e._v("Réponse")]),e._v(" "),"poll_text"!==e.selected_question.type?n("th",[e._v("Occurences")]):e._e(),e._v(" "),"poll_text"!==e.selected_question.type?n("th",[e._v("Pourcentage")]):e._e()])]),e._v(" "),n("tbody",e._l(e.selected_question.answers,(function(t){return n("tr",{class:{"table-warning":"[no-answer]"===t.value}},[n("td",{domProps:{textContent:e._s("[no-answer]"===t.value?"[Aucune réponse]":t.value)}}),e._v(" "),"poll_text"!==e.selected_question.type?n("td",[e._v(e._s(t.count))]):e._e(),e._v(" "),"poll_text"!==e.selected_question.type?n("td",[e._v(e._s(t.percentage)+"%")]):e._e()])})),0)])])])]:e._e()],2):e.loaded?n("div",{staticClass:"alert alert-warning"},[e._v("\n Aucun sondage trouvé\n ")]):n("div",{staticClass:"alert alert-info"},[e._v("\n Chargement en cours...\n ")])])}),[],!1,null,"202019ab",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"HeadlineRepeater",props:{value:{required:!0}},data:function(){return{headline:"",content:""}},computed:{val:{get:function(){return{headline:this.headline,content:this.content}},set:function(e){this.$emit("input",e)}}},watch:{val:function(e){this.$emit("input",e)}}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.headline,expression:"headline"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Tapez le titre ici..."},domProps:{value:e.headline},on:{input:function(t){t.target.composing||(e.headline=t.target.value)}}}),e._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"form-control mt-1",attrs:{placeholder:"Description rapide",rows:"4"},domProps:{value:e.content},on:{input:function(t){t.target.composing||(e.content=t.target.value)}}})])}),[],!1,null,"c9f24a5c",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r=n(29),i=n.n(r),o=n(39),a=n(40),s=n(12),c={components:{HorizontalStepper:i.a},data:function(){return{steps:[{icon:"cloud_upload",name:"upload",title:"Mise en ligne du PDF",subtitle:"Création de la liseuse",component:o.default,completed:!1},{icon:"mail",name:"email",title:"Mise en forme du message",subtitle:"",component:a.default,completed:!1},{icon:"send",name:"review",title:"Récapitulatif et envoi",subtitle:"Suivi des envois",component:s.default,completed:!1}]}},mounted:function(){},methods:{completeStep:function(e){this.steps.forEach((function(t){t.name===e.name&&(t.completed=!0)}))},isStepActive:function(e){this.steps.forEach((function(t){t.name===e.name&&!0===t.completed&&(t.completed=!1)}))},alert:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){alert("end")}))}},l=n(1),u=Object(l.a)(c,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("h1",{staticClass:"mb-6"},[this._v("Publier une lettre")]),this._v(" "),t("horizontal-stepper",{attrs:{steps:this.steps},on:{"completed-step":this.completeStep,"active-step":this.isStepActive,"stepper-finished":this.alert}})],1)}),[],!1,null,null,null);t.default=u.exports},function(e,t,n){"use strict";n.r(t);var r=n(29),i=n.n(r),o=n(41),a=n(12),s={components:{HorizontalStepper:i.a},data:function(){return{steps:[{icon:"mail",name:"email",title:"Mise en forme du message",subtitle:"",component:o.default,completed:!1},{icon:"send",name:"review",title:"Récapitulatif et envoi",subtitle:"Suivi des envois",component:a.default,completed:!1}]}},mounted:function(){},methods:{completeStep:function(e){this.steps.forEach((function(t){t.name===e.name&&(t.completed=!0)}))},isStepActive:function(e){this.steps.forEach((function(t){t.name===e.name&&!0===t.completed&&(t.completed=!1)}))},alert:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){alert("end")}))}},c=n(1),l=Object(c.a)(s,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("h1",{staticClass:"mb-6"},[this._v("Envoyer une newsletter")]),this._v(" "),t("horizontal-stepper",{attrs:{steps:this.steps},on:{"completed-step":this.completeStep,"active-step":this.isStepActive,"stepper-finished":this.alert}})],1)}),[],!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";n.r(t);var r={components:{},data:function(){return{batch:1,batches:[]}},mounted:function(){var e=this;axios.get("/statistics/batches").then((function(t){return e.batches=t.data.data}))},methods:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h2",[e._v("Statistiques")]),e._v(" "),n("hr"),e._v(" "),n("div",{staticClass:"form-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.batch,expression:"batch"}],staticClass:"form-control",attrs:{name:"batch",id:"batch"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.batch=t.target.multiple?n:n[0]}}},e._l(e.batches,(function(t){return n("option",{attrs:{value:"bat.id"}},[e._v(e._s(t.file.title))])})),0)])])}),[],!1,null,"e7971362",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={components:{},props:["icon","current","total","text","customMetric","customLabel"],data:function(){return{}},methods:{}},i=(n(192),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card d-flex bg-white flex-items-center flex-content-center flex-justify-between card--shadow"},["delivered"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--success"},[n("svg",{staticClass:"svg-icon",attrs:{height:"24",width:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"delivered"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{"fill-rule":"nonzero",d:"M1 11l4-2.9v5.082zM23 11l-4-2.9v5.082z"}}),e._v(" "),n("path",{attrs:{stroke:"#8BC1A9","stroke-width":"2",d:"M5 8.1L1 11v12h22V11l-4-2.9"}}),e._v(" "),n("path",{attrs:{stroke:"#439B73","stroke-width":"2",d:"M5 13.2V1h14v12.2"}}),e._v(" "),n("path",{attrs:{stroke:"#8BC1A9","stroke-width":"2",d:"M1 11l22 12M23 11l-11 6"}}),e._v(" "),n("path",{attrs:{stroke:"#439B73","stroke-linecap":"square","stroke-width":"2",d:"M9 6h6M9 10h6"}})])])]):e._e(),e._v(" "),"opened"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--info"},[n("svg",{staticClass:"svg-icon",attrs:{height:"23",width:"24",viewBox:"0 0 24 23",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"open-book"}},[n("g",{attrs:{stroke:"#006CE6","stroke-width":"2",fill:"none","fill-rule":"evenodd","stroke-linecap":"square"}},[n("path",{attrs:{opacity:".5",d:"M1 2l11 3 11-3v17l-11 3-11-3z"}}),e._v(" "),n("path",{attrs:{d:"M5 15.9L9 17M9 8.3L5 7.2M9 12.5l-4-1M19 15.9L15 17M15 8.3l4-1.1M15 12.5l4-1"}})])])]):e._e(),e._v(" "),"clicked"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--warn"},[n("svg",{staticClass:"svg-icon",attrs:{height:"30",width:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"click"}},[n("g",{attrs:{"stroke-width":"2",fill:"none","fill-rule":"evenodd","stroke-linecap":"square"}},[n("path",{attrs:{fill:"#FFBA62",d:"M15.0086638 29.1674982L9.5629583 9.5629583l19.6045399 5.4457055-7.1528135 3.0654915 6.3995289 6.3995289-3.9405294 3.9405294-6.3995289-6.3995289-3.0654915 7.1528135zm-2.5716221-16.7304565l2.9753471 10.7112496 1.9871401-4.6366602 7.0741553 7.0741553 1.1121022-1.1121022-7.0741553-7.0741553 4.6366602-1.9871401-10.7112496-2.9753471z"}}),e._v(" "),n("path",{attrs:{fill:"#FF8F00",d:"M3.34314558 4.75735971l1.41421356-1.41421356 2.82842712 2.82842712L6.1715727 7.58578683 3.34314558 4.7573597zM11.53554435.5355302l2.00000001.00000704-.00001414 4.00000209-2.00000005-.00000707.00001418-4.00000206zm8.77816397 2.80761595L21.7279219 4.7573597l-2.82842713 2.82842713-1.41421356-1.41421356 2.82842712-2.82842713zM4.75735914 21.72792244l-1.41421356-1.41421356 2.82842713-2.82842712 1.41421356 1.41421356-2.82842713 2.82842712zM.53554024 13.5355343v-2H4.5355352l3e-8 2.00000003-3.99999498-3e-8z"}})])])]):e._e(),e._v(" "),"failed"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--danger"},[n("svg",{staticClass:"svg-icon",attrs:{height:"23",width:"24",viewBox:"0 0 23 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"suppressed"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd","stroke-width":"2"}},[n("path",{attrs:{stroke:"#E47573",d:"M5 7.1L1 10v12h22V10l-4-2.9M1 10l22 12M23 10l-11 6"}}),e._v(" "),n("path",{attrs:{stroke:"#D41E1B","stroke-linecap":"square",d:"M15 2L9 8M9 2l6 6"}})])])]):e._e(),e._v(" "),"suppressed"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--warn"},[n("svg",{staticClass:"svg-icon",attrs:{height:"23",width:"24",viewBox:"0 0 23 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"suppressed"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd","stroke-width":"2"}},[n("path",{attrs:{stroke:"#FFBA62",d:"M5 7.1L1 10v12h22V10l-4-2.9M1 10l22 12M23 10l-11 6"}}),e._v(" "),n("path",{attrs:{stroke:"#FF8F00","stroke-linecap":"square",d:"M15 2L9 8M9 2l6 6"}})])])]):e._e(),e._v(" "),n("div",{staticClass:"card-content d-flex flex-column flex-justify-center"},[n("div",{staticClass:"card-label text-small text-gray-light"},[e.customLabel?[e._v(e._s(e.customLabel))]:[e._v("\n "+e._s(e.current)+" / "+e._s(e.total)+" "+e._s(e.text)+"\n ")]],2),e._v(" "),n("div",{staticClass:"h3"},[e.customMetric?[e._v(e._s(e.customMetric))]:[e._v("\n "+e._s(0!==e.total?Math.ceil(100*e.current/e.total):0)+"%\n ")]],2)])])}),[],!1,null,"77d962d2",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"UnlockArticle",props:["content"],methods:{toggleElementsModalVisibility:function(){this.$refs.stripeModal.toggleElementsModalVisibility()}}},i=n(1),o=Object(i.a)(r,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("button",{staticClass:"btn click-here highlight-logo-blue m-auto d-block",on:{click:this.toggleElementsModalVisibility}},[this._v("\n Débloquer cet article pour 1€\n ")]),this._v(" "),t("stripe-modal",{ref:"stripeModal",attrs:{content:this.content}})],1)}),[],!1,null,"746c4c57",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);n(96);class r{constructor(e){this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",broadcaster:"pusher",csrfToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(e),this.connect()}setOptions(e){return this.options=Object.assign(this._defaultOptions,e),this.csrfToken()&&(this.options.auth.headers["X-CSRF-TOKEN"]=this.csrfToken()),e}csrfToken(){let e;return"undefined"!=typeof window&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:"undefined"!=typeof document&&"function"==typeof document.querySelector&&(e=document.querySelector('meta[name="csrf-token"]'))?e.getAttribute("content"):null}}class i{listenForWhisper(e,t){return this.listen(".client-"+e,t)}notification(e){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",e)}stopListeningForWhisper(e){return this.stopListening(".client-"+e)}}class o{constructor(e){this.setNamespace(e)}format(e){return"."===e.charAt(0)||"\\"===e.charAt(0)?e.substr(1):(this.namespace&&(e=this.namespace+"."+e),e.replace(/\./g,"\\"))}setNamespace(e){this.namespace=e}}class a extends i{constructor(e,t,n){super(),this.name=t,this.pusher=e,this.options=n,this.eventFormatter=new o(this.options.namespace),this.subscribe()}subscribe(){this.subscription=this.pusher.subscribe(this.name)}unsubscribe(){this.pusher.unsubscribe(this.name)}listen(e,t){return this.on(this.eventFormatter.format(e),t),this}stopListening(e){return this.subscription.unbind(this.eventFormatter.format(e)),this}on(e,t){return this.subscription.bind(e,t),this}}class s extends a{whisper(e,t){return this.pusher.channels.channels[this.name].trigger("client-"+e,t),this}}class c extends a{whisper(e,t){return this.pusher.channels.channels[this.name].trigger("client-"+e,t),this}}class l extends a{here(e){return this.on("pusher:subscription_succeeded",t=>{e(Object.keys(t.members).map(e=>t.members[e]))}),this}joining(e){return this.on("pusher:member_added",t=>{e(t.info)}),this}leaving(e){return this.on("pusher:member_removed",t=>{e(t.info)}),this}whisper(e,t){return this.pusher.channels.channels[this.name].trigger("client-"+e,t),this}}class u extends i{constructor(e,t,n){super(),this.events={},this.name=t,this.socket=e,this.options=n,this.eventFormatter=new o(this.options.namespace),this.subscribe(),this.configureReconnector()}subscribe(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}unsubscribe(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}listen(e,t){return this.on(this.eventFormatter.format(e),t),this}stopListening(e){const t=this.eventFormatter.format(e);return this.socket.removeListener(t),delete this.events[t],this}on(e,t){let n=(e,n)=>{this.name==e&&t(n)};this.socket.on(e,n),this.bind(e,n)}configureReconnector(){const e=()=>{this.subscribe()};this.socket.on("reconnect",e),this.bind("reconnect",e)}bind(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}unbind(){Object.keys(this.events).forEach(e=>{this.events[e].forEach(t=>{this.socket.removeListener(e,t)}),delete this.events[e]})}}class d extends u{whisper(e,t){return this.socket.emit("client event",{channel:this.name,event:"client-"+e,data:t}),this}}class f extends d{here(e){return this.on("presence:subscribed",t=>{e(t.map(e=>e.user_info))}),this}joining(e){return this.on("presence:joining",t=>e(t.user_info)),this}leaving(e){return this.on("presence:leaving",t=>e(t.user_info)),this}}class h extends i{subscribe(){}unsubscribe(){}listen(e,t){return this}stopListening(e){return this}on(e,t){return this}}class p extends h{whisper(e,t){return this}}class m extends h{here(e){return this}joining(e){return this}leaving(e){return this}whisper(e,t){return this}}class v extends r{constructor(){super(...arguments),this.channels={}}connect(){void 0!==this.options.client?this.pusher=this.options.client:this.pusher=new Pusher(this.options.key,this.options)}listen(e,t,n){return this.channel(e).listen(t,n)}channel(e){return this.channels[e]||(this.channels[e]=new a(this.pusher,e,this.options)),this.channels[e]}privateChannel(e){return this.channels["private-"+e]||(this.channels["private-"+e]=new s(this.pusher,"private-"+e,this.options)),this.channels["private-"+e]}encryptedPrivateChannel(e){return this.channels["private-encrypted-"+e]||(this.channels["private-encrypted-"+e]=new c(this.pusher,"private-encrypted-"+e,this.options)),this.channels["private-encrypted-"+e]}presenceChannel(e){return this.channels["presence-"+e]||(this.channels["presence-"+e]=new l(this.pusher,"presence-"+e,this.options)),this.channels["presence-"+e]}leave(e){[e,"private-"+e,"presence-"+e].forEach((e,t)=>{this.leaveChannel(e)})}leaveChannel(e){this.channels[e]&&(this.channels[e].unsubscribe(),delete this.channels[e])}socketId(){return this.pusher.connection.socket_id}disconnect(){this.pusher.disconnect()}}class g extends r{constructor(){super(...arguments),this.channels={}}connect(){let e=this.getSocketIO();return this.socket=e(this.options.host,this.options),this.socket}getSocketIO(){if(void 0!==this.options.client)return this.options.client;if("undefined"!=typeof io)return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}listen(e,t,n){return this.channel(e).listen(t,n)}channel(e){return this.channels[e]||(this.channels[e]=new u(this.socket,e,this.options)),this.channels[e]}privateChannel(e){return this.channels["private-"+e]||(this.channels["private-"+e]=new d(this.socket,"private-"+e,this.options)),this.channels["private-"+e]}presenceChannel(e){return this.channels["presence-"+e]||(this.channels["presence-"+e]=new f(this.socket,"presence-"+e,this.options)),this.channels["presence-"+e]}leave(e){[e,"private-"+e,"presence-"+e].forEach(e=>{this.leaveChannel(e)})}leaveChannel(e){this.channels[e]&&(this.channels[e].unsubscribe(),delete this.channels[e])}socketId(){return this.socket.id}disconnect(){this.socket.disconnect()}}class b extends r{constructor(){super(...arguments),this.channels={}}connect(){}listen(e,t,n){return new h}channel(e){return new h}privateChannel(e){return new p}presenceChannel(e){return new m}leave(e){}leaveChannel(e){}socketId(){return"fake-socket-id"}disconnect(){}}var y=class{constructor(e){this.options=e,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}channel(e){return this.connector.channel(e)}connect(){"pusher"==this.options.broadcaster?this.connector=new v(this.options):"socket.io"==this.options.broadcaster?this.connector=new g(this.options):"null"==this.options.broadcaster?this.connector=new b(this.options):"function"==typeof this.options.broadcaster&&(this.connector=new this.options.broadcaster(this.options))}disconnect(){this.connector.disconnect()}join(e){return this.connector.presenceChannel(e)}leave(e){this.connector.leave(e)}leaveChannel(e){this.connector.leaveChannel(e)}listen(e,t,n){return this.connector.listen(e,t,n)}private(e){return this.connector.privateChannel(e)}encryptedPrivate(e){return this.connector.encryptedPrivateChannel(e)}socketId(){return this.connector.socketId()}registerInterceptors(){"function"==typeof Vue&&Vue.http&&this.registerVueRequestInterceptor(),"function"==typeof axios&&this.registerAxiosRequestInterceptor(),"function"==typeof jQuery&&this.registerjQueryAjaxSetup()}registerVueRequestInterceptor(){Vue.http.interceptors.push((e,t)=>{this.socketId()&&e.headers.set("X-Socket-ID",this.socketId()),t()})}registerAxiosRequestInterceptor(){axios.interceptors.request.use(e=>(this.socketId()&&(e.headers["X-Socket-Id"]=this.socketId()),e))}registerjQueryAjaxSetup(){void 0!==jQuery.ajax&&jQuery.ajaxPrefilter((e,t,n)=>{this.socketId()&&n.setRequestHeader("X-Socket-Id",this.socketId())})}};window._=n(36);try{window.Popper=n(53).default,window.$=window.jQuery=n(15),n(98)}catch(e){}window.axios=n(99),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",window.Pusher=n(116),window.Echo=new y({broadcaster:"pusher",key:"459380cb6d0a29d6861f",cluster:"eu",encrypted:!0})},,function(e,t,n){var r=n(287),i=n(63),o=n(6),a=n(64),s=n(65),c=n(81),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&c(e),h=n||u||d||f,p=h?r(e.length,String):[],m=p.length;for(var v in e)!t&&!l.call(e,v)||h&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||p.push(v);return p}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(7))},function(e,t,n){var r=n(82),i=n(293),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(148),i=n(317),o=n(318);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(67);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(150),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);++a<s;)c[a]=o[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=o[a];return l[t]=n(c),r(e,this,l)}}},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(37),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(17),i=n(10);e.exports=function(e){return i(e)&&r(e)}},function(e,t,n){var r=n(325)();e.exports=r},function(e,t,n){var r=n(38);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t,n){var r=n(219),i=n(336),o=n(223);e.exports=function(e,t,n,a,s,c){var l=1&n,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var f=c.get(e),h=c.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var g=e[p],b=t[p];if(a)var y=l?a(b,g,p,t,e,c):a(g,b,p,e,t,c);if(void 0!==y){if(y)continue;m=!1;break}if(v){if(!i(t,(function(e,t){if(!o(v,t)&&(g===e||s(g,e,n,a,c)))return v.push(t)}))){m=!1;break}}else if(g!==b&&!s(g,b,n,a,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},function(e,t,n){var r=n(8).Uint8Array;e.exports=r},function(e,t,n){var r=n(235),i=n(156),o=n(16);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(155),i=n(6);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(37)(n(8),"WeakMap");e.exports=r},function(e,t,n){var r=n(11);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(70);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(349),i=n(350);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){var r=n(87),i=n(17);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},function(e,t,n){var r=n(33),i=n(356),o=n(372),a=n(48),s=n(50),c=n(374),l=n(250),u=n(162),d=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=a(t,e),l||(l=t.length>1),t})),s(e,u(e),n),l&&(n=i(n,7,c));for(var d=t.length;d--;)o(n,t[d]);return n}));e.exports=d},function(e,t,n){(function(e){var r=n(8),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(42)(e))},function(e,t,n){var r=n(155),i=n(161),o=n(156),a=n(236),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},function(e,t,n){var r=n(163);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(90),i=n(161),o=n(82);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},function(e,t,n){var r=n(251),i=n(224),o=n(151);e.exports=function(e){return o(i(e,void 0,r),e+"")}},function(e,t,n){var r=n(375);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(32),i=n(10);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(222),i=n(13),o=n(74),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:o(n);return c<0&&(c=a(s+c,0)),r(e,i(t,3),c)}},function(e,t,n){var r=n(159),i=n(382),o=n(383),a=n(384),s=n(385),c=n(158),l=/^\s+|\s+$/g;e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=r(t)))return e;var u=s(e),d=s(t),f=a(u,d),h=o(u,d)+1;return i(u,f,h).join("")}},function(e,t,n){var r=n(45),i=n(17),o=n(65),a=n(11);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(73),i=n(45);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){"use strict";var r=n(47),i=n(396),o=n(91),a=n(254),s=n(240),c=n(397),l=n(92),u=n(399),d=n(34),f=n(260),h=n(165),p=n(166),m=n(44),v=n(406),g=n(422),b=n(271),y=n(425);function k(e){var t={};return r(e,(function(e,n){t[e]=n})),t}function w(e,t,n){t&&t[n]&&(e.stats=t[n])}function _(e,t){var n=t[0];this._rawResults=t,this.query=n.query,this.parsedQuery=n.parsedQuery,this.hits=n.hits,this.index=n.index,this.hitsPerPage=n.hitsPerPage,this.nbHits=n.nbHits,this.nbPages=n.nbPages,this.page=n.page,this.processingTimeMS=c(t,"processingTimeMS"),this.aroundLatLng=n.aroundLatLng,this.automaticRadius=n.automaticRadius,this.serverUsed=n.serverUsed,this.timeoutCounts=n.timeoutCounts,this.timeoutHits=n.timeoutHits,this.exhaustiveFacetsCount=n.exhaustiveFacetsCount,this.exhaustiveNbHits=n.exhaustiveNbHits,this.userData=n.userData,this.queryID=n.queryID,this.disjunctiveFacets=[],this.hierarchicalFacets=d(e.hierarchicalFacets,(function(){return[]})),this.facets=[];var s=e.getRefinedDisjunctiveFacets(),f=k(e.facets),m=k(e.disjunctiveFacets),v=1,g=this;r(n.facets,(function(t,r){var i,s,c=(i=e.hierarchicalFacets,s=r,l(i,(function(e){return u(e.attributes,s)})));if(c){var d=c.attributes.indexOf(r),h=a(e.hierarchicalFacets,{name:c.name});g.hierarchicalFacets[h][d]={attribute:r,data:t,exhaustive:n.exhaustiveFacetsCount}}else{var p,v=-1!==o(e.disjunctiveFacets,r),b=-1!==o(e.facets,r);v&&(p=m[r],g.disjunctiveFacets[p]={name:r,data:t,exhaustive:n.exhaustiveFacetsCount},w(g.disjunctiveFacets[p],n.facets_stats,r)),b&&(p=f[r],g.facets[p]={name:r,data:t,exhaustive:n.exhaustiveFacetsCount},w(g.facets[p],n.facets_stats,r))}})),this.hierarchicalFacets=i(this.hierarchicalFacets),r(s,(function(i){var s=t[v],c=e.getHierarchicalFacetByName(i);r(s.facets,(function(t,i){var l;if(c){l=a(e.hierarchicalFacets,{name:c.name});var u=a(g.hierarchicalFacets[l],{attribute:i});if(-1===u)return;g.hierarchicalFacets[l][u].data=p({},g.hierarchicalFacets[l][u].data,t)}else{l=m[i];var d=n.facets&&n.facets[i]||{};g.disjunctiveFacets[l]={name:i,data:h({},t,d),exhaustive:s.exhaustiveFacetsCount},w(g.disjunctiveFacets[l],s.facets_stats,i),e.disjunctiveFacetsRefinements[i]&&r(e.disjunctiveFacetsRefinements[i],(function(t){!g.disjunctiveFacets[l].data[t]&&o(e.disjunctiveFacetsRefinements[i],t)>-1&&(g.disjunctiveFacets[l].data[t]=0)}))}})),v++})),r(e.getRefinedHierarchicalFacets(),(function(n){var i=e.getHierarchicalFacetByName(n),o=e._getHierarchicalFacetSeparator(i),s=e.getHierarchicalRefinement(n);if(!(0===s.length||s[0].split(o).length<2)){var c=t[v];r(c.facets,(function(t,n){var r=a(e.hierarchicalFacets,{name:i.name}),c=a(g.hierarchicalFacets[r],{attribute:n});if(-1!==c){var l={};if(s.length>0){var u=s[0].split(o)[0];l[u]=g.hierarchicalFacets[r][c].data[u]}g.hierarchicalFacets[r][c].data=h(l,t,g.hierarchicalFacets[r][c].data)}})),v++}})),r(e.facetsExcludes,(function(e,t){var i=f[t];g.facets[i]={name:t,data:n.facets[t],exhaustive:n.exhaustiveFacetsCount},r(e,(function(e){g.facets[i]=g.facets[i]||{name:t},g.facets[i].data=g.facets[i].data||{},g.facets[i].data[e]=0}))})),this.hierarchicalFacets=d(this.hierarchicalFacets,y(e)),this.facets=i(this.facets),this.disjunctiveFacets=i(this.disjunctiveFacets),this._state=e}function C(e,t){if(!t.data||0===t.data.length)return t;var n=e(d(t.data,v(C,e)));return p({},t,{data:n})}function A(e,t){return t.sort(e)}function x(e,t){var n=l(e,{name:t});return n&&n.stats}function S(e,t,n,r,i){var o=l(i,{name:n});return{type:t,attributeName:n,name:r,count:s(o,"data["+r+"]")||0,exhaustive:s(o,"exhaustive")||!1}}_.prototype.getFacetByName=function(e){var t={name:e};return l(this.facets,t)||l(this.disjunctiveFacets,t)||l(this.hierarchicalFacets,t)},_.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],_.prototype.getFacetValues=function(e,t){var n=function(e,t){var n={name:t};if(e._state.isConjunctiveFacet(t)){var r=l(e.facets,n);return r?d(r.data,(function(n,r){return{name:r,count:n,isRefined:e._state.isFacetRefined(t,r),isExcluded:e._state.isExcludeRefined(t,r)}})):[]}if(e._state.isDisjunctiveFacet(t)){var i=l(e.disjunctiveFacets,n);return i?d(i.data,(function(n,r){return{name:r,count:n,isRefined:e._state.isDisjunctiveFacetRefined(t,r)}})):[]}if(e._state.isHierarchicalFacet(t))return l(e.hierarchicalFacets,n)}(this,e);if(!n)throw new Error(e+" is not a retrieved facet.");var r=h({},t,{sortBy:_.DEFAULT_SORT});if(Array.isArray(r.sortBy)){var i=b(r.sortBy,_.DEFAULT_SORT);return Array.isArray(n)?f(n,i[0],i[1]):C(g(f,i[0],i[1]),n)}if(m(r.sortBy))return Array.isArray(n)?n.sort(r.sortBy):C(v(A,r.sortBy),n);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},_.prototype.getFacetStats=function(e){if(this._state.isConjunctiveFacet(e))return x(this.facets,e);if(this._state.isDisjunctiveFacet(e))return x(this.disjunctiveFacets,e);throw new Error(e+" is not present in `facets` or `disjunctiveFacets`")},_.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return r(e.facetsRefinements,(function(i,o){r(i,(function(r){n.push(S(e,"facet",o,r,t.facets))}))})),r(e.facetsExcludes,(function(i,o){r(i,(function(r){n.push(S(e,"exclude",o,r,t.facets))}))})),r(e.disjunctiveFacetsRefinements,(function(i,o){r(i,(function(r){n.push(S(e,"disjunctive",o,r,t.disjunctiveFacets))}))})),r(e.hierarchicalFacetsRefinements,(function(i,o){r(i,(function(r){n.push(function(e,t,n,r){for(var i=l(r,{name:t}),o=e.getHierarchicalFacetByName(t),a=n.split(o.separator),c=a[a.length-1],u=0;void 0!==i&&u<a.length;++u)i=l(i.data,{name:a[u]});var d=s(i,"count"),f=s(i,"exhaustive");return{type:"hierarchical",attributeName:t,name:c,count:d||0,exhaustive:f||!1}}(e,o,r,t.hierarchicalFacets))}))})),r(e.numericRefinements,(function(e,t){r(e,(function(e,i){r(e,(function(e){n.push({type:"numeric",attributeName:t,name:e,numericValue:e,operator:i})}))}))})),r(e.tagRefinements,(function(e){n.push({type:"tag",attributeName:"_tags",name:e})})),n},e.exports=_},function(e,t,n){var r=n(402),i=n(6);e.exports=function(e,t,n,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},function(e,t,n){var r=n(38),i=n(262),o=i?function(e,t){return i.set(e,t),e}:r;e.exports=o},function(e,t,n){var r=n(237),i=r&&new r;e.exports=i},function(e,t,n){var r=n(264),i=n(265),o=n(409),a=n(93),s=n(266),c=n(77),l=n(419),u=n(52),d=n(8);e.exports=function e(t,n,f,h,p,m,v,g,b,y){var k=128&n,w=1&n,_=2&n,C=24&n,A=512&n,x=_?void 0:a(t);return function S(){for(var M=arguments.length,E=Array(M),T=M;T--;)E[T]=arguments[T];if(C)var D=c(S),O=o(E,D);if(h&&(E=r(E,h,p,C)),m&&(E=i(E,m,v,C)),M-=O,C&&M<y){var P=u(E,D);return s(t,n,e,S.placeholder,f,E,P,g,b,y-M)}var I=w?f:this,j=_?I[t]:t;return M=E.length,g?E=l(E,g):A&&M>1&&E.reverse(),k&&b<M&&(E.length=b),this&&this!==d&&this instanceof S&&(j=x||a(j)),j.apply(I,E)}}},function(e,t){var n=Math.max;e.exports=function(e,t,r,i){for(var o=-1,a=e.length,s=r.length,c=-1,l=t.length,u=n(a-s,0),d=Array(l+u),f=!i;++c<l;)d[c]=t[c];for(;++o<s;)(f||o<a)&&(d[r[o]]=e[o]);for(;u--;)d[c++]=e[o++];return d}},function(e,t){var n=Math.max;e.exports=function(e,t,r,i){for(var o=-1,a=e.length,s=-1,c=r.length,l=-1,u=t.length,d=n(a-c,0),f=Array(d+u),h=!i;++o<d;)f[o]=e[o];for(var p=o;++l<u;)f[p+l]=t[l];for(;++s<c;)(h||o<a)&&(f[p+r[s]]=e[o++]);return f}},function(e,t,n){var r=n(410),i=n(269),o=n(270);e.exports=function(e,t,n,a,s,c,l,u,d,f){var h=8&t;t|=h?32:64,4&(t&=~(h?64:32))||(t&=-4);var p=[e,t,s,h?c:void 0,h?l:void 0,h?void 0:c,h?void 0:l,u,d,f],m=n.apply(void 0,p);return r(e)&&i(m,p),m.placeholder=a,o(m,e,t)}},function(e,t,n){var r=n(262),i=n(411),o=r?function(e){return r.get(e)}:i;e.exports=o},function(e,t,n){var r=n(90),i=n(169);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(261),i=n(227)(r);e.exports=i},function(e,t,n){var r=n(416),i=n(417),o=n(151),a=n(418);e.exports=function(e,t,n){var s=t+"";return o(e,i(s,a(r(s),n)))}},function(e,t,n){"use strict";var r=n(72),i=n(92),o=n(423);e.exports=function(e,t){return r(e,(function(e,n){var r=n.split(":");if(t&&1===r.length){var a=i(t,(function(e){return o(e,n[0])}));a&&(r=a.split(":"))}return e[0].push(r[0]),e[1].push(r[1]),e}),[[],[]])}},function(e,t,n){var r=n(70),i=n(427),o=n(48);e.exports=function(e,t,n){for(var a=-1,s=t.length,c={};++a<s;){var l=t[a],u=r(e,l);n(u,l)&&i(c,o(l,e),u)}return c}},function(e,t,n){"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},function(e,t,n){"use strict";var r=n(430),i=n(145),o=n(95),a=n(435),s=n(47),c=n(436),l=n(34),u=n(438),d=n(439),f=n(76),h=n(164),p=n(75),m=n(275),v=n(170).encode;function g(e){return h(e)?d(e,g):Array.isArray(e)?l(e,g):f(e)?v(e):e}var b=["dFR","fR","nR","hFR","tR"],y=r.ENCODED_PARAMETERS;function k(e,t,n,r){if(null!==e&&(n=n.replace(e,""),r=r.replace(e,"")),n=t[n]||n,r=t[r]||r,-1!==y.indexOf(n)||-1!==y.indexOf(r)){if("q"===n)return-1;if("q"===r)return 1;var i=-1!==b.indexOf(n),o=-1!==b.indexOf(r);if(i&&!o)return 1;if(o&&!i)return-1}return n.localeCompare(r)}t.getStateFromQueryString=function(e,t){var n=t&&t.prefix||"",a=t&&t.mapping||{},s=m(a),l=o.parse(e),d=new RegExp("^"+n),f=u(l,(function(e,t){var i=n&&d.test(t)?t.replace(d,""):t;return r.decode(s[i]||i)||i})),h=i._parseNumbers(f);return c(h,i.PARAMETERS)},t.getUnrecognizedParametersInQueryString=function(e,t){var n=t&&t.prefix,i=t&&t.mapping||{},a=m(i),c={},l=o.parse(e);if(n){var u=new RegExp("^"+n);s(l,(function(e,t){u.test(t)||(c[t]=e)}))}else s(l,(function(e,t){r.decode(a[t]||t)||(c[t]=e)}));return c},t.getQueryStringFromState=function(e,t){var n=t&&t.moreAttributes,i=t&&t.prefix||"",s=t&&t.mapping||{},c=t&&t.safe||!1,l=m(s),d=c?e:g(e),f=u(d,(function(e,t){var n=r.encode(t);return i+(s[n]||n)})),h=""===i?null:new RegExp("^"+i),v=a(k,null,h,l);if(!p(n)){var b=o.stringify(f,{encode:c,sort:v}),y=o.stringify(n,{encode:c});return b?b+"&"+y:y}return o.stringify(f,{encode:c,sort:v})}},function(e,t,n){var r=n(225),i=n(431),o=n(38),a=Object.prototype.toString,s=i((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=a.call(t)),e[t]=n}),r(o));e.exports=s},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,n){"use strict";e.exports="2.28.1"},,function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=6)}([function(e,t,n){"use strict";function r(){c=!1}function i(e){if(e){if(e!==a){if(e.length!==u.length)throw new Error("Custom alphabet for shortid must be "+u.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+u.length+" unique characters. These characters were not unique: "+t.join(", "));a=e,r()}}else a!==u&&(a=u,r())}function o(){return c||(c=function(){a||i(u);for(var e,t=a.split(""),n=[],r=l.nextValue();t.length>0;)r=l.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}var a,s,c,l=n(19),u="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";e.exports={get:function(){return a||u},characters:function(e){return i(e),a},seed:function(e){l.seed(e),s!==e&&(r(),s=e)},lookup:function(e){return o()[e]},shuffled:o}},function(e,t,n){"use strict";var r=n(5),i=n.n(r);t.a={animateIn:function(e){i()({targets:e,translateY:"-35px",opacity:1,duration:300,easing:"easeOutCubic"})},animateOut:function(e,t){i()({targets:e,opacity:0,marginTop:"-40px",duration:300,easing:"easeOutExpo",complete:t})},animateOutBottom:function(e,t){i()({targets:e,opacity:0,marginBottom:"-40px",duration:300,easing:"easeOutExpo",complete:t})},animateReset:function(e){i()({targets:e,left:0,opacity:1,duration:300,easing:"easeOutExpo"})},animatePanning:function(e,t,n){i()({targets:e,duration:10,easing:"easeOutQuad",left:t,opacity:n})},animatePanEnd:function(e,t){i()({targets:e,opacity:0,duration:300,easing:"easeOutExpo",complete:t})},clearAnimation:function(e){var t=i.a.timeline();e.forEach((function(e){t.add({targets:e.el,opacity:0,right:"-40px",duration:300,offset:"-=150",easing:"easeOutExpo",complete:function(){e.remove()}})}))}}},function(e,t,n){"use strict";e.exports=n(16)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(8),i=n(1),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(2);n(11).polyfill();var s=function e(t){var n=this;return this.id=a.generate(),this.options=t,this.cached_options={},this.global={},this.groups=[],this.toasts=[],this.container=null,u(this),l(this),this.group=function(t){t||(t={}),t.globalToasts||(t.globalToasts={}),Object.assign(t.globalToasts,n.global);var r=new e(t);return n.groups.push(r),r},this.register=function(e,t,r){return d(n,e,t,r=r||{})},this.show=function(e,t){return c(n,e,t)},this.success=function(e,t){return(t=t||{}).type="success",c(n,e,t)},this.info=function(e,t){return(t=t||{}).type="info",c(n,e,t)},this.error=function(e,t){return(t=t||{}).type="error",c(n,e,t)},this.remove=function(e){n.toasts=n.toasts.filter((function(t){return t.el.hash!==e.hash})),e.parentNode&&e.parentNode.removeChild(e)},this.clear=function(e){return i.a.clearAnimation(n.toasts,(function(){e&&e()})),n.toasts=[],!0},this},c=function(e,t,i){var a;if("object"!==(void 0===(i=i||{})?"undefined":o(i)))return console.error("Options should be a type of object. given : "+i),null;e.options.singleton&&e.toasts.length>0&&(e.cached_options=i,e.toasts[e.toasts.length-1].goAway(0));var s=Object.assign({},e.options);return Object.assign(s,i),a=n.i(r.a)(e,t,s),e.toasts.push(a),a},l=function(e){var t=e.options.globalToasts,n=function(t,n){return"string"==typeof n&&e[n]?e[n].apply(e,[t,{}]):c(e,t,n)};t&&(e.global={},Object.keys(t).forEach((function(r){e.global[r]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t[r].apply(null,[e,n])}})))},u=function(e){var t=document.createElement("div");t.id=e.id,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","false"),document.body.appendChild(t),e.container=t},d=function(e,t,n,r){e.options.globalToasts||(e.options.globalToasts={}),e.options.globalToasts[t]=function(e,t){var i=null;return"string"==typeof n&&(i=n),"function"==typeof n&&(i=n(e)),t(i,r)},l(e)}},function(e,t,n){n(22);var r=n(21)(null,null,null,null);e.exports=r.exports},function(e,t,n){(function(n){var r,i,o,a={scope:{}};a.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){if(n.get||n.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},a.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==n&&null!=n?n:e},a.global=a.getGlobal(this),a.SYMBOL_PREFIX="jscomp_symbol_",a.initSymbol=function(){a.initSymbol=function(){},a.global.Symbol||(a.global.Symbol=a.Symbol)},a.symbolCounter_=0,a.Symbol=function(e){return a.SYMBOL_PREFIX+(e||"")+a.symbolCounter_++},a.initSymbolIterator=function(){a.initSymbol();var e=a.global.Symbol.iterator;e||(e=a.global.Symbol.iterator=a.global.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&a.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return a.arrayIterator(this)}}),a.initSymbolIterator=function(){}},a.arrayIterator=function(e){var t=0;return a.iteratorPrototype((function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}))},a.iteratorPrototype=function(e){return a.initSymbolIterator(),(e={next:e})[a.global.Symbol.iterator]=function(){return this},e},a.array=a.array||{},a.iteratorFromArray=function(e,t){a.initSymbolIterator(),e instanceof String&&(e+="");var n=0,r={next:function(){if(n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},a.polyfill=function(e,t,n,r){if(t){for(n=a.global,e=e.split("."),r=0;r<e.length-1;r++){var i=e[r];i in n||(n[i]={}),n=n[i]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&a.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},a.polyfill("Array.prototype.keys",(function(e){return e||function(){return a.iteratorFromArray(this,(function(e){return e}))}}),"es6-impl","es3");var s=this;i=[],r=function(){function e(e){if(!P.col(e))try{return document.querySelectorAll(e)}catch(e){}}function t(e,t){for(var n=e.length,r=2<=arguments.length?arguments[1]:void 0,i=[],o=0;o<n;o++)if(o in e){var a=e[o];t.call(r,a,o,e)&&i.push(a)}return i}function n(e){return e.reduce((function(e,t){return e.concat(P.arr(t)?n(t):t)}),[])}function r(t){return P.arr(t)?t:(P.str(t)&&(t=e(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function i(e,t){return e.some((function(e){return e===t}))}function o(e){var t,n={};for(t in e)n[t]=e[t];return n}function a(e,t){var n,r=o(e);for(n in e)r[n]=t.hasOwnProperty(n)?t[n]:e[n];return r}function c(e,t){var n,r=o(e);for(n in t)r[n]=P.und(e[n])?t[n]:e[n];return r}function l(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e))return e[2]}function u(e,t){return P.fnc(e)?e(t.target,t.id,t.total):e}function d(e,t){if(t in e.style)return getComputedStyle(e).getPropertyValue(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function f(e,t){return P.dom(e)&&i(O,t)?"transform":P.dom(e)&&(e.getAttribute(t)||P.svg(e)&&e[t])?"attribute":P.dom(e)&&"transform"!==t&&d(e,t)?"css":null!=e[t]?"object":void 0}function h(e,n){var r=function(e){return-1<e.indexOf("translate")||"perspective"===e?"px":-1<e.indexOf("rotate")||-1<e.indexOf("skew")?"deg":void 0}(n);if(r=-1<n.indexOf("scale")?1:0+r,!(e=e.style.transform))return r;for(var i=[],o=[],a=[],s=/(\w+)\((.+?)\)/g;i=s.exec(e);)o.push(i[1]),a.push(i[2]);return(e=t(a,(function(e,t){return o[t]===n}))).length?e[0]:r}function p(e,t){switch(f(e,t)){case"transform":return h(e,t);case"css":return d(e,t);case"attribute":return e.getAttribute(t)}return e[t]||0}function m(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=l(e)||0;switch(t=parseFloat(t),e=parseFloat(e.replace(n[0],"")),n[0][0]){case"+":return t+e+r;case"-":return t-e+r;case"*":return t*e+r}}function v(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function g(e){e=e.points;for(var t,n=0,r=0;r<e.numberOfItems;r++){var i=e.getItem(r);0<r&&(n+=v(t,i)),t=i}return n}function b(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*e.getAttribute("r");case"rect":return 2*e.getAttribute("width")+2*e.getAttribute("height");case"line":return v({x:e.getAttribute("x1"),y:e.getAttribute("y1")},{x:e.getAttribute("x2"),y:e.getAttribute("y2")});case"polyline":return g(e);case"polygon":var t=e.points;return g(e)+v(t.getItem(t.numberOfItems-1),t.getItem(0))}}function y(e,t){function n(n){return n=void 0===n?0:n,e.el.getPointAtLength(1<=t+n?t+n:0)}var r=n(),i=n(-1),o=n(1);switch(e.property){case"x":return r.x;case"y":return r.y;case"angle":return 180*Math.atan2(o.y-i.y,o.x-i.x)/Math.PI}}function k(e,t){var n,r=/-?\d*\.?\d+/g;if(n=P.pth(e)?e.totalLength:e,P.col(n))if(P.rgb(n)){var i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);n=i?"rgba("+i[1]+",1)":n}else n=P.hex(n)?function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+(e=parseInt(t[1],16))+","+parseInt(t[2],16)+","+(t=parseInt(t[3],16))+",1)"}(n):P.hsl(n)?function(e){function t(e,t,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:.5>n?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e);e=parseInt(n[1])/360;var r=parseInt(n[2])/100,i=parseInt(n[3])/100;if(n=n[4]||1,0==r)i=r=e=i;else{var o=.5>i?i*(1+r):i+r-i*r,a=2*i-o;i=t(a,o,e+1/3),r=t(a,o,e),e=t(a,o,e-1/3)}return"rgba("+255*i+","+255*r+","+255*e+","+n+")"}(n):void 0;else i=(i=l(n))?n.substr(0,n.length-i.length):n,n=t&&!/\s/g.test(n)?i+t:i;return{original:n+="",numbers:n.match(r)?n.match(r).map(Number):[0],strings:P.str(e)||t?n.split(r):[]}}function w(e){return t(e=e?n(P.arr(e)?e.map(r):r(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function _(e,t){var n=o(t);if(P.arr(e)){var i=e.length;2!==i||P.obj(e[0])?P.fnc(t.duration)||(n.duration=t.duration/i):e={value:e}}return r(e).map((function(e,n){return n=n?0:t.delay,e=P.obj(e)&&!P.pth(e)?e:{value:e},P.und(e.delay)&&(e.delay=n),e})).map((function(e){return c(e,n)}))}function C(e,t){var n;return e.tweens.map((function(r){var i=(r=function(e,t){var n,r={};for(n in e){var i=u(e[n],t);P.arr(i)&&1===(i=i.map((function(e){return u(e,t)}))).length&&(i=i[0]),r[n]=i}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}(r,t)).value,o=p(t.target,e.name),a=n?n.to.original:o,s=(a=P.arr(i)?i[0]:a,m(P.arr(i)?i[1]:i,a));return o=l(s)||l(a)||l(o),r.from=k(a,o),r.to=k(s,o),r.start=n?n.end:e.offset,r.end=r.start+r.delay+r.duration,r.easing=function(e){return P.arr(e)?I.apply(this,e):j[e]}(r.easing),r.elasticity=(1e3-Math.min(Math.max(r.elasticity,1),999))/1e3,r.isPath=P.pth(i),r.isColor=P.col(r.from.original),r.isColor&&(r.round=1),n=r}))}function A(e,r){return t(n(e.map((function(e){return r.map((function(t){var n=f(e.target,t.name);if(n){var r=C(t,e);t={type:n,property:t.name,animatable:e,tweens:r,duration:r[r.length-1].end,delay:r[0].delay}}else t=void 0;return t}))}))),(function(e){return!P.und(e)}))}function x(e,t,n,r){var i="delay"===e;return t.length?(i?Math.min:Math.max).apply(Math,t.map((function(t){return t[e]}))):i?r.delay:n.offset+r.delay+r.duration}function S(e){var t,n=a(T,e),r=a(D,e),i=function(e){var t=w(e);return t.map((function(e,n){return{target:e,id:n,total:t.length}}))}(e.targets),o=[],s=c(n,r);for(t in e)s.hasOwnProperty(t)||"targets"===t||o.push({name:t,offset:s.offset,tweens:_(e[t],r)});return c(n,{children:[],animatables:i,animations:e=A(i,o),duration:x("duration",e,n,r),delay:x("delay",e,n,r)})}function M(e){function n(){return window.Promise&&new Promise((function(e){return f=e}))}function r(e){return p.reversed?p.duration-e:e}function i(e){for(var n=0,r={},i=p.animations,o=i.length;n<o;){var a=i[n],s=a.animatable,c=(l=a.tweens)[h=l.length-1];h&&(c=t(l,(function(t){return e<t.end}))[0]||c);for(var l=Math.min(Math.max(e-c.start-c.delay,0),c.duration)/c.duration,u=isNaN(l)?1:c.easing(l,c.elasticity),f=(l=c.to.strings,c.round),h=[],m=void 0,v=(m=c.to.numbers.length,0);v<m;v++){var g=void 0,b=(g=c.to.numbers[v],c.from.numbers[v]);g=c.isPath?y(c.value,u*g):b+u*(g-b),f&&(c.isColor&&2<v||(g=Math.round(g*f)/f)),h.push(g)}if(c=l.length)for(m=l[0],u=0;u<c;u++)f=l[u+1],v=h[u],isNaN(v)||(m=f?m+(v+f):m+(v+" "));else m=h[0];N[a.type](s.target,a.property,m,r,s.id),a.currentValue=m,n++}if(n=Object.keys(r).length)for(i=0;i<n;i++)E||(E=d(document.body,"transform")?"transform":"-webkit-transform"),p.animatables[i].target.style[E]=r[i].join(" ");p.currentTime=e,p.progress=e/p.duration*100}function o(e){p[e]&&p[e](p)}function a(){p.remaining&&!0!==p.remaining&&p.remaining--}function s(e){var t=p.duration,s=p.offset,d=s+p.delay,m=p.currentTime,v=p.reversed,g=r(e);if(p.children.length){var b=p.children,y=b.length;if(g>=p.currentTime)for(var k=0;k<y;k++)b[k].seek(g);else for(;y--;)b[y].seek(g)}(g>=d||!t)&&(p.began||(p.began=!0,o("begin")),o("run")),g>s&&g<t?i(g):(g<=s&&0!==m&&(i(0),v&&a()),(g>=t&&m!==t||!t)&&(i(t),v||a())),o("update"),e>=t&&(p.remaining?(l=c,"alternate"===p.direction&&(p.reversed=!p.reversed)):(p.pause(),p.completed||(p.completed=!0,o("complete"),"Promise"in window&&(f(),h=n()))),u=0)}e=void 0===e?{}:e;var c,l,u=0,f=null,h=n(),p=S(e);return p.reset=function(){var e=p.direction,t=p.loop;for(p.currentTime=0,p.progress=0,p.paused=!0,p.began=!1,p.completed=!1,p.reversed="reverse"===e,p.remaining="alternate"===e&&1===t?2:t,i(0),e=p.children.length;e--;)p.children[e].reset()},p.tick=function(e){c=e,l||(l=c),s((u+c-l)*M.speed)},p.seek=function(e){s(r(e))},p.pause=function(){var e=R.indexOf(p);-1<e&&R.splice(e,1),p.paused=!0},p.play=function(){p.paused&&(p.paused=!1,l=0,u=r(p.currentTime),R.push(p),L||B())},p.reverse=function(){p.reversed=!p.reversed,l=0,u=r(p.currentTime)},p.restart=function(){p.pause(),p.reset(),p.play()},p.finished=h,p.reset(),p.autoplay&&p.play(),p}var E,T={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},D={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},O="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),P={arr:function(e){return Array.isArray(e)},obj:function(e){return-1<Object.prototype.toString.call(e).indexOf("Object")},pth:function(e){return P.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},dom:function(e){return e.nodeType||P.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return P.hex(e)||P.rgb(e)||P.hsl(e)}},I=function(){function e(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}return function(t,n,r,i){if(0<=t&&1>=t&&0<=r&&1>=r){var o=new Float32Array(11);if(t!==n||r!==i)for(var a=0;11>a;++a)o[a]=e(.1*a,t,r);return function(a){if(t===n&&r===i)return a;if(0===a)return 0;if(1===a)return 1;for(var s=0,c=1;10!==c&&o[c]<=a;++c)s+=.1;--c,c=s+(a-o[c])/(o[c+1]-o[c])*.1;var l=3*(1-3*r+3*t)*c*c+2*(3*r-6*t)*c+3*t;if(.001<=l){for(s=0;4>s&&0!=(l=3*(1-3*r+3*t)*c*c+2*(3*r-6*t)*c+3*t);++s){var u=e(c,t,r)-a;c-=u/l}a=c}else if(0===l)a=c;else{c=s,s+=.1;var d=0;do{0<(l=e(u=c+(s-c)/2,t,r)-a)?s=u:c=u}while(1e-7<Math.abs(l)&&10>++d);a=u}return e(a,n,i)}}}}(),j=function(){function e(e,t){return 0===e||1===e?e:-Math.pow(2,10*(e-1))*Math.sin(2*(e-1-t/(2*Math.PI)*Math.asin(1))*Math.PI/t)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],e],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,n){return 1-e(1-t,n)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,n){return.5>t?e(2*t,n)/2:1-e(-2*t+2,n)/2}]},i={linear:I(.25,.25,.75,.75)},o={};for(t in r)o.type=t,r[o.type].forEach(function(e){return function(t,r){i["ease"+e.type+n[r]]=P.fnc(t)?t:I.apply(s,t)}}(o)),o={type:o.type};return i}(),N={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,i){r[i]||(r[i]=[]),r[i].push(t+"("+n+")")}},R=[],L=0,B=function(){function e(){L=requestAnimationFrame(t)}function t(t){var n=R.length;if(n){for(var r=0;r<n;)R[r]&&R[r].tick(t),r++;e()}else cancelAnimationFrame(L),L=0}return e}();return M.version="2.2.0",M.speed=1,M.running=R,M.remove=function(e){e=w(e);for(var t=R.length;t--;)for(var n=R[t],r=n.animations,o=r.length;o--;)i(e,r[o].animatable.target)&&(r.splice(o,1),r.length||n.pause())},M.getValue=p,M.path=function(t,n){var r=P.str(t)?e(t)[0]:t,i=n||100;return function(e){return{el:r,property:e,totalLength:b(r)*(i/100)}}},M.setDashoffset=function(e){var t=b(e);return e.setAttribute("stroke-dasharray",t),t},M.bezier=I,M.easings=j,M.timeline=function(e){var t=M(e);return t.pause(),t.duration=0,t.add=function(n){return t.children.forEach((function(e){e.began=!0,e.completed=!0})),r(n).forEach((function(n){var r=c(n,a(D,e||{}));r.targets=r.targets||e.targets,n=t.duration;var i=r.offset;r.autoplay=!1,r.direction=t.direction,r.offset=P.und(i)?n:m(i,n),t.began=!0,t.completed=!0,t.seek(r.offset),(r=M(r)).began=!0,r.completed=!0,r.duration>n&&(t.duration=r.duration),t.children.push(r)})),t.seek(0),t.reset(),t.autoplay&&t.restart(),t},t},M.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},M},void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}).call(t,n(25))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(4),o=n.n(i),a={install:function(e,t){t||(t={});var n=new r.a(t);e.component("toasted",o.a),e.toasted=e.prototype.$toasted=n}};"undefined"!=typeof window&&window.Vue&&(window.Toasted=a),t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t,n){return setTimeout((function(){n.cached_options.position&&n.cached_options.position.includes("bottom")?r.a.animateOutBottom(e,(function(){n.remove(e)})):r.a.animateOut(e,(function(){n.remove(e)}))}),t),!0},a=function(e,t){var n=!1;return{el:e,text:function(t){return function(e,t){("object"===("undefined"==typeof HTMLElement?"undefined":i(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":i(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)?e.appendChild(t):e.innerHTML=t}(e,t),this},goAway:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:800;return n=!0,o(e,r,t)},remove:function(){t.remove(e)},disposed:function(){return n}}}},function(e,t,n){"use strict";var r=n(12),i=n.n(r),o=n(1),a=n(7),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=n(2);String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}});var l={},u=null,d=function(e){return e.className=e.className||null,e.onComplete=e.onComplete||null,e.position=e.position||"top-right",e.duration=e.duration||null,e.keepOnHover=e.keepOnHover||!1,e.theme=e.theme||"toasted-primary",e.type=e.type||"default",e.containerClass=e.containerClass||null,e.fullWidth=e.fullWidth||!1,e.icon=e.icon||null,e.action=e.action||null,e.fitToScreen=e.fitToScreen||null,e.closeOnSwipe=void 0===e.closeOnSwipe||e.closeOnSwipe,e.iconPack=e.iconPack||"material",e.className&&"string"==typeof e.className&&(e.className=e.className.split(" ")),e.className||(e.className=[]),e.theme&&e.className.push(e.theme.trim()),e.type&&e.className.push(e.type),e.containerClass&&"string"==typeof e.containerClass&&(e.containerClass=e.containerClass.split(" ")),e.containerClass||(e.containerClass=[]),e.position&&e.containerClass.push(e.position.trim()),e.fullWidth&&e.containerClass.push("full-width"),e.fitToScreen&&e.containerClass.push("fit-to-screen"),l=e,e},f=function(e,t){var r=document.createElement("div");if(r.classList.add("toasted"),r.hash=c.generate(),t.className&&t.className.forEach((function(e){r.classList.add(e)})),("object"===("undefined"==typeof HTMLElement?"undefined":s(HTMLElement))?e instanceof HTMLElement:e&&"object"===(void 0===e?"undefined":s(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)?r.appendChild(e):r.innerHTML=e,h(t,r),t.closeOnSwipe){var l=new i.a(r,{prevent_default:!1});l.on("pan",(function(e){var t=e.deltaX;r.classList.contains("panning")||r.classList.add("panning");var n=1-Math.abs(t/80);n<0&&(n=0),o.a.animatePanning(r,t,n)})),l.on("panend",(function(e){var n=e.deltaX;Math.abs(n)>80?o.a.animatePanEnd(r,(function(){"function"==typeof t.onComplete&&t.onComplete(),r.parentNode&&u.remove(r)})):(r.classList.remove("panning"),o.a.animateReset(r))}))}if(Array.isArray(t.action))t.action.forEach((function(e){var t=m(e,n.i(a.a)(r,u));t&&r.appendChild(t)}));else if("object"===s(t.action)){var d=m(t.action,n.i(a.a)(r,u));d&&r.appendChild(d)}return r},h=function(e,t){if(e.icon){var n=document.createElement("i");switch(n.setAttribute("aria-hidden","true"),e.iconPack){case"fontawesome":n.classList.add("fa");var r=e.icon.name?e.icon.name:e.icon;r.includes("fa-")?n.classList.add(r.trim()):n.classList.add("fa-"+r.trim());break;case"mdi":n.classList.add("mdi");var i=e.icon.name?e.icon.name:e.icon;i.includes("mdi-")?n.classList.add(i.trim()):n.classList.add("mdi-"+i.trim());break;case"custom-class":var o=e.icon.name?e.icon.name:e.icon;"string"==typeof o?o.split(" ").forEach((function(e){n.classList.add(e)})):Array.isArray(o)&&o.forEach((function(e){n.classList.add(e.trim())}));break;case"callback":var a=e.icon&&e.icon instanceof Function?e.icon:null;a&&(n=a(n));break;default:n.classList.add("material-icons"),n.textContent=e.icon.name?e.icon.name:e.icon}e.icon.after&&n.classList.add("after"),p(e,n,t)}},p=function(e,t,n){e.icon&&(e.icon.after&&e.icon.name?n.appendChild(t):(e.icon.name,n.insertBefore(t,n.firstChild)))},m=function(e,t){if(!e)return null;var n=document.createElement("a");if(n.classList.add("action"),n.classList.add("ripple"),e.text&&(n.text=e.text),e.href&&(n.href=e.href),e.target&&(n.target=e.target),e.icon){n.classList.add("icon");var r=document.createElement("i");switch(l.iconPack){case"fontawesome":r.classList.add("fa"),e.icon.includes("fa-")?r.classList.add(e.icon.trim()):r.classList.add("fa-"+e.icon.trim());break;case"mdi":r.classList.add("mdi"),e.icon.includes("mdi-")?r.classList.add(e.icon.trim()):r.classList.add("mdi-"+e.icon.trim());break;case"custom-class":"string"==typeof e.icon?e.icon.split(" ").forEach((function(e){n.classList.add(e)})):Array.isArray(e.icon)&&e.icon.forEach((function(e){n.classList.add(e.trim())}));break;default:r.classList.add("material-icons"),r.textContent=e.icon}n.appendChild(r)}return e.class&&("string"==typeof e.class?e.class.split(" ").forEach((function(e){n.classList.add(e)})):Array.isArray(e.class)&&e.class.forEach((function(e){n.classList.add(e.trim())}))),e.push&&n.addEventListener("click",(function(n){n.preventDefault(),l.router?(l.router.push(e.push),e.push.dontClose||t.goAway(0)):console.warn("[vue-toasted] : Vue Router instance is not attached. please check the docs")})),e.onClick&&"function"==typeof e.onClick&&n.addEventListener("click",(function(n){e.onClick&&(n.preventDefault(),e.onClick(n,t))})),n};t.a=function(e,t,r){u=e,r=d(r);var i=u.container;r.containerClass.unshift("toasted-container"),i.className!==r.containerClass.join(" ")&&(i.className="",r.containerClass.forEach((function(e){i.classList.add(e)})));var s=f(t,r);t&&i.appendChild(s),s.style.opacity=0,o.a.animateIn(s);var c=r.duration,l=void 0;if(null!==c){var h=function(){return setInterval((function(){null===s.parentNode&&window.clearInterval(l),s.classList.contains("panning")||(c-=20),c<=0&&(o.a.animateOut(s,(function(){"function"==typeof r.onComplete&&r.onComplete(),s.parentNode&&u.remove(s)})),window.clearInterval(l))}),20)};l=h(),r.keepOnHover&&(s.addEventListener("mouseover",(function(){window.clearInterval(l)})),s.addEventListener("mouseout",(function(){l=h()})))}return n.i(a.a)(s,u)}},function(e,t,n){(e.exports=n(10)()).push([e.i,".toasted{padding:0 20px}.toasted.rounded{border-radius:24px}.toasted .primary,.toasted.toasted-primary{border-radius:2px;min-height:38px;line-height:1.1em;background-color:#353535;padding:6px 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted .primary.success,.toasted.toasted-primary.success{background:#4caf50}.toasted .primary.error,.toasted.toasted-primary.error{background:#f44336}.toasted .primary.info,.toasted.toasted-primary.info{background:#3f51b5}.toasted .primary .action,.toasted.toasted-primary .action{color:#a1c2fa}.toasted.bubble{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#ff7043;padding:0 20px;font-size:15px;font-weight:300;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.toasted.bubble.success{background:#4caf50}.toasted.bubble.error{background:#f44336}.toasted.bubble.info{background:#3f51b5}.toasted.bubble .action{color:#8e2b0c}.toasted.outline{border-radius:30px;min-height:38px;line-height:1.1em;background-color:#fff;border:1px solid #676767;padding:0 20px;font-size:15px;color:#676767;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);font-weight:700}.toasted.outline.success{color:#4caf50;border-color:#4caf50}.toasted.outline.error{color:#f44336;border-color:#f44336}.toasted.outline.info{color:#3f51b5;border-color:#3f51b5}.toasted.outline .action{color:#607d8b}.toasted-container{position:fixed;z-index:10000}.toasted-container,.toasted-container.full-width{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.toasted-container.full-width{max-width:86%;width:100%}.toasted-container.full-width.fit-to-screen{min-width:100%}.toasted-container.full-width.fit-to-screen .toasted:first-child{margin-top:0}.toasted-container.full-width.fit-to-screen.top-right{top:0;right:0}.toasted-container.full-width.fit-to-screen.top-left{top:0;left:0}.toasted-container.full-width.fit-to-screen.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.full-width.fit-to-screen.bottom-right{right:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-left{left:0;bottom:0}.toasted-container.full-width.fit-to-screen.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.top-right{top:10%;right:7%}.toasted-container.top-left{top:10%;left:7%}.toasted-container.top-center{top:10%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.toasted-container.bottom-right{right:5%;bottom:7%}.toasted-container.bottom-left{left:5%;bottom:7%}.toasted-container.bottom-center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:7%}.toasted-container.bottom-left .toasted,.toasted-container.top-left .toasted{float:left}.toasted-container.bottom-right .toasted,.toasted-container.top-right .toasted{float:right}.toasted-container .toasted{top:35px;width:auto;clear:both;margin-top:10px;position:relative;max-width:100%;height:auto;word-break:normal;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;box-sizing:inherit}.toasted-container .toasted .fa,.toasted-container .toasted .fab,.toasted-container .toasted .far,.toasted-container .toasted .fas,.toasted-container .toasted .material-icons,.toasted-container .toasted .mdi{margin-right:.5rem;margin-left:-.4rem}.toasted-container .toasted .fa.after,.toasted-container .toasted .fab.after,.toasted-container .toasted .far.after,.toasted-container .toasted .fas.after,.toasted-container .toasted .material-icons.after,.toasted-container .toasted .mdi.after{margin-left:.5rem;margin-right:-.4rem}.toasted-container .toasted .action{text-decoration:none;font-size:.8rem;padding:8px;margin:5px -7px 5px 7px;border-radius:3px;text-transform:uppercase;letter-spacing:.03em;font-weight:600;cursor:pointer}.toasted-container .toasted .action.icon{padding:4px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.toasted-container .toasted .action.icon .fa,.toasted-container .toasted .action.icon .material-icons,.toasted-container .toasted .action.icon .mdi{margin-right:0;margin-left:4px}.toasted-container .toasted .action.icon:hover{text-decoration:none}.toasted-container .toasted .action:hover{text-decoration:underline}@media only screen and (max-width:600px){.toasted-container{min-width:100%}.toasted-container .toasted:first-child{margin-top:0}.toasted-container.top-right{top:0;right:0}.toasted-container.top-left{top:0;left:0}.toasted-container.top-center{top:0;left:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-right{right:0;bottom:0}.toasted-container.bottom-left{left:0;bottom:0}.toasted-container.bottom-center{left:0;bottom:0;-webkit-transform:translateX(0);transform:translateX(0)}.toasted-container.bottom-center,.toasted-container.top-center{-ms-flex-align:stretch!important;align-items:stretch!important}.toasted-container.bottom-left .toasted,.toasted-container.bottom-right .toasted,.toasted-container.top-left .toasted,.toasted-container.top-right .toasted{float:none}.toasted-container .toasted{border-radius:0}}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var c=o[a],l=Object.getOwnPropertyDescriptor(i,c);void 0!==l&&l.enumerable&&(n[c]=i[c])}}return n}e.exports={assign:r,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:r})}}},function(e,t,n){var r;!function(i,o,a,s){"use strict";function c(e,t,n){return setTimeout(h(e,n),t)}function l(e,t,n){return!!Array.isArray(e)&&(u(e,n[t],n),!0)}function u(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function d(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}function f(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&ae(r,n)}function h(e,t){return function(){return e.apply(t,arguments)}}function p(e,t){return typeof e==le?e.apply(t&&t[0]||s,t):e}function m(e,t){return e===s?t:e}function v(e,t,n){u(k(t),(function(t){e.addEventListener(t,n,!1)}))}function g(e,t,n){u(k(t),(function(t){e.removeEventListener(t,n,!1)}))}function b(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function y(e,t){return e.indexOf(t)>-1}function k(e){return e.trim().split(/\s+/g)}function w(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function _(e){return Array.prototype.slice.call(e,0)}function C(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];w(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function A(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o<se.length;){if((r=(n=se[o])?n+i:t)in e)return r;o++}return s}function x(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}function S(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){p(e.options.enable,[e])&&n.handler(t)},this.init()}function M(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=t&ke&&r-i==0,a=t&(_e|Ce)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=T(t)),i>1&&!n.firstMultiple?n.firstMultiple=T(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,c=t.center=D(r);t.timeStamp=fe(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=j(s,c),t.distance=I(s,c),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==ke&&o.eventType!==_e||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=P(t.deltaX,t.deltaY);var l=O(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=l.x,t.overallVelocityY=l.y,t.overallVelocity=de(l.x)>de(l.y)?l.x:l.y,t.scale=a?function(e,t){return I(t[0],t[1],Ie)/I(e[0],e[1],Ie)}(a.pointers,r):1,t.rotation=a?function(e,t){return j(t[1],t[0],Ie)+j(e[1],e[0],Ie)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,E(n,t);var u=e.element;b(t.srcEvent.target,u)&&(u=t.srcEvent.target),t.target=u}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function E(e,t){var n,r,i,o,a=e.lastInterval||t,c=t.timeStamp-a.timeStamp;if(t.eventType!=Ce&&(c>ye||a.velocity===s)){var l=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,d=O(c,l,u);r=d.x,i=d.y,n=de(d.x)>de(d.y)?d.x:d.y,o=P(l,u),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}function T(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:ue(e.pointers[n].clientX),clientY:ue(e.pointers[n].clientY)},n++;return{timeStamp:fe(),pointers:t,center:D(t),deltaX:e.deltaX,deltaY:e.deltaY}}function D(e){var t=e.length;if(1===t)return{x:ue(e[0].clientX),y:ue(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:ue(n/t),y:ue(r/t)}}function O(e,t,n){return{x:t/e||0,y:n/e||0}}function P(e,t){return e===t?Ae:de(e)>=de(t)?e<0?xe:Se:t<0?Me:Ee}function I(e,t,n){n||(n=Pe);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function j(e,t,n){n||(n=Pe);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}function N(){this.evEl=Ne,this.evWin=Re,this.pressed=!1,S.apply(this,arguments)}function R(){this.evEl=Fe,this.evWin=ze,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function L(){this.evTarget=$e,this.evWin=He,this.started=!1,S.apply(this,arguments)}function B(e,t){var n=_(e.touches),r=_(e.changedTouches);return t&(_e|Ce)&&(n=C(n.concat(r),"identifier",!0)),[n,r]}function F(){this.evTarget=qe,this.targetIds={},S.apply(this,arguments)}function z(e,t){var n=_(e.touches),r=this.targetIds;if(t&(ke|we)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=_(e.changedTouches),s=[],c=this.target;if(o=n.filter((function(e){return b(e.target,c)})),t===ke)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),t&(_e|Ce)&&delete r[a[i].identifier],i++;return s.length?[C(o.concat(s),"identifier",!0),s]:void 0}function V(){S.apply(this,arguments);var e=h(this.handler,this);this.touch=new F(this.manager,e),this.mouse=new N(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function $(e,t){e&ke?(this.primaryTouch=t.changedPointers[0].identifier,H.call(this,t)):e&(_e|Ce)&&H.call(this,t)}function H(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),We)}}function U(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=Ye&&a<=Ye)return!0}return!1}function q(e,t){this.manager=e,this.set(t)}function W(e){this.options=ae({},this.defaults,e||{}),this.id=me++,this.manager=null,this.options.enable=m(this.options.enable,!0),this.state=nt,this.simultaneous={},this.requireFail=[]}function Y(e){return e&st?"cancel":e&ot?"end":e&it?"move":e&rt?"start":""}function K(e){return e==Ee?"down":e==Me?"up":e==xe?"left":e==Se?"right":""}function G(e,t){var n=t.manager;return n?n.get(e):e}function Q(){W.apply(this,arguments)}function X(){Q.apply(this,arguments),this.pX=null,this.pY=null}function J(){Q.apply(this,arguments)}function Z(){W.apply(this,arguments),this._timer=null,this._input=null}function ee(){Q.apply(this,arguments)}function te(){Q.apply(this,arguments)}function ne(){W.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function re(e,t){return(t=t||{}).recognizers=m(t.recognizers,re.defaults.preset),new ie(e,t)}function ie(e,t){this.options=ae({},re.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=function(e){return new(e.options.inputClass||(ge?R:be?F:ve?V:N))(e,M)}(this),this.touchAction=new q(this,this.options.touchAction),oe(this,!0),u(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function oe(e,t){var n,r=e.element;r.style&&(u(e.options.cssProps,(function(i,o){n=A(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}var ae,se=["","webkit","Moz","MS","ms","o"],ce=o.createElement("div"),le="function",ue=Math.round,de=Math.abs,fe=Date.now;ae="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var he=d((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&e[r[i]]===s)&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),pe=d((function(e,t){return he(e,t,!0)}),"merge","Use `assign`."),me=1,ve="ontouchstart"in i,ge=A(i,"PointerEvent")!==s,be=ve&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ye=25,ke=1,we=2,_e=4,Ce=8,Ae=1,xe=2,Se=4,Me=8,Ee=16,Te=xe|Se,De=Me|Ee,Oe=Te|De,Pe=["x","y"],Ie=["clientX","clientY"];S.prototype={handler:function(){},init:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(x(this.element),this.evWin,this.domHandler)}};var je={mousedown:ke,mousemove:we,mouseup:_e},Ne="mousedown",Re="mousemove mouseup";f(N,S,{handler:function(e){var t=je[e.type];t&ke&&0===e.button&&(this.pressed=!0),t&we&&1!==e.which&&(t=_e),this.pressed&&(t&_e&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var Le={pointerdown:ke,pointermove:we,pointerup:_e,pointercancel:Ce,pointerout:Ce},Be={2:"touch",3:"pen",4:"mouse",5:"kinect"},Fe="pointerdown",ze="pointermove pointerup pointercancel";i.MSPointerEvent&&!i.PointerEvent&&(Fe="MSPointerDown",ze="MSPointerMove MSPointerUp MSPointerCancel"),f(R,S,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=Le[r],o=Be[e.pointerType]||e.pointerType,a="touch"==o,s=w(t,e.pointerId,"pointerId");i&ke&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):i&(_e|Ce)&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var Ve={touchstart:ke,touchmove:we,touchend:_e,touchcancel:Ce},$e="touchstart",He="touchstart touchmove touchend touchcancel";f(L,S,{handler:function(e){var t=Ve[e.type];if(t===ke&&(this.started=!0),this.started){var n=B.call(this,e,t);t&(_e|Ce)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var Ue={touchstart:ke,touchmove:we,touchend:_e,touchcancel:Ce},qe="touchstart touchmove touchend touchcancel";f(F,S,{handler:function(e){var t=Ue[e.type],n=z.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});var We=2500,Ye=25;f(V,S,{handler:function(e,t,n){var r="touch"==n.pointerType,i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)$.call(this,t,n);else if(i&&U.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ke=A(ce.style,"touchAction"),Ge=Ke!==s,Qe="auto",Xe="manipulation",Je="none",Ze="pan-x",et="pan-y",tt=function(){if(!Ge)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||i.CSS.supports("touch-action",n)})),e}();q.prototype={set:function(e){"compute"==e&&(e=this.compute()),Ge&&this.manager.element.style&&tt[e]&&(this.manager.element.style[Ke]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return u(this.manager.recognizers,(function(t){p(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(y(e,Je))return Je;var t=y(e,Ze),n=y(e,et);return t&&n?Je:t||n?t?Ze:et:y(e,Xe)?Xe:Qe}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(!this.manager.session.prevented){var r=this.actions,i=y(r,Je)&&!tt[Je],o=y(r,et)&&!tt[et],a=y(r,Ze)&&!tt[Ze];if(i){var s=1===e.pointers.length,c=e.distance<2,l=e.deltaTime<250;if(s&&c&&l)return}return a&&o?void 0:i||o&&n&Te||a&&n&De?this.preventSrc(t):void 0}t.preventDefault()},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var nt=1,rt=2,it=4,ot=8,at=ot,st=16;W.prototype={defaults:{},set:function(e){return ae(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(l(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=G(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return l(e,"dropRecognizeWith",this)||(e=G(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(l(e,"requireFailure",this))return this;var t=this.requireFail;return-1===w(t,e=G(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(l(e,"dropRequireFailure",this))return this;e=G(e,this);var t=w(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,r=this.state;r<ot&&t(n.options.event+Y(r)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),r>=ot&&t(n.options.event+Y(r))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|nt)))return!1;e++}return!0},recognize:function(e){var t=ae({},e);if(!p(this.options.enable,[this,t]))return this.reset(),void(this.state=32);this.state&(at|st|32)&&(this.state=nt),this.state=this.process(t),this.state&(rt|it|ot|st)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},f(Q,W,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=t&(rt|it),i=this.attrTest(e);return r&&(n&Ce||!i)?t|st:r||i?n&_e?t|ot:t&rt?t|it:rt:32}}),f(X,Q,{defaults:{event:"pan",threshold:10,pointers:1,direction:Oe},getTouchAction:function(){var e=this.options.direction,t=[];return e&Te&&t.push(et),e&De&&t.push(Ze),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(t.direction&Te?(i=0===o?Ae:o<0?xe:Se,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?Ae:a<0?Me:Ee,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Q.prototype.attrTest.call(this,e)&&(this.state&rt||!(this.state&rt)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=K(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),f(J,Q,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Je]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&rt)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),f(Z,W,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Qe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||e.eventType&(_e|Ce)&&!i)this.reset();else if(e.eventType&ke)this.reset(),this._timer=c((function(){this.state=at,this.tryEmit()}),t.time,this);else if(e.eventType&_e)return at;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===at&&(e&&e.eventType&_e?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=fe(),this.manager.emit(this.options.event,this._input)))}}),f(ee,Q,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Je]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&rt)}}),f(te,Q,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Te|De,pointers:1},getTouchAction:function(){return X.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Te|De)?t=e.overallVelocity:n&Te?t=e.overallVelocityX:n&De&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&de(t)>this.options.velocity&&e.eventType&_e},emit:function(e){var t=K(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),f(ne,W,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Xe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),e.eventType&ke&&0===this.count)return this.failTimeout();if(r&&i&&n){if(e.eventType!=_e)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||I(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=c((function(){this.state=at,this.tryEmit()}),t.interval,this),rt):at}return 32},failTimeout:function(){return this._timer=c((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==at&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),re.VERSION="2.0.7",re.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[ee,{enable:!1}],[J,{enable:!1},["rotate"]],[te,{direction:Te}],[X,{direction:Te},["swipe"]],[ne],[ne,{event:"doubletap",taps:2},["tap"]],[Z]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ie.prototype={set:function(e){return ae(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,r=this.recognizers,i=t.curRecognizer;(!i||i&&i.state&at)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&n.state&(rt|it|ot)&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof W)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(l(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(l(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=w(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return u(k(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return u(k(e),(function(e){t?n[e]&&n[e].splice(w(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&oe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},ae(re,{INPUT_START:ke,INPUT_MOVE:we,INPUT_END:_e,INPUT_CANCEL:Ce,STATE_POSSIBLE:nt,STATE_BEGAN:rt,STATE_CHANGED:it,STATE_ENDED:ot,STATE_RECOGNIZED:at,STATE_CANCELLED:st,STATE_FAILED:32,DIRECTION_NONE:Ae,DIRECTION_LEFT:xe,DIRECTION_RIGHT:Se,DIRECTION_UP:Me,DIRECTION_DOWN:Ee,DIRECTION_HORIZONTAL:Te,DIRECTION_VERTICAL:De,DIRECTION_ALL:Oe,Manager:ie,Input:S,TouchAction:q,TouchInput:F,MouseInput:N,PointerEventInput:R,TouchMouseInput:V,SingleTouchInput:L,Recognizer:W,AttrRecognizer:Q,Tap:ne,Pan:X,Swipe:te,Pinch:J,Rotate:ee,Press:Z,on:v,off:g,each:u,merge:pe,extend:he,assign:ae,inherit:f,bindFn:h,prefixed:A}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=re,(r=function(){return re}.call(t,n,t,e))!==s&&(e.exports=r)}(window,document)},function(e,t){e.exports=function(e,t,n){for(var r=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*r*n/t.length),o="";;)for(var a=e(i),s=i;s--;)if((o+=t[a[s]&r]||"").length===+n)return o}},function(e,t,n){"use strict";var r,i,o=n(15),a=(n(0),1567752802062),s=7;e.exports=function(e){var t="",n=Math.floor(.001*(Date.now()-a));return n===i?r++:(r=0,i=n),t+=o(s),t+=o(e),r>0&&(t+=o(r)),t+o(n)}},function(e,t,n){"use strict";var r=n(0),i=n(18),o=n(13);e.exports=function(e){for(var t,n=0,a="";!t;)a+=o(i,r.get(),1),t=e<Math.pow(16,n+1),n++;return a}},function(e,t,n){"use strict";function r(){return o(s)}var i=n(0),o=n(14),a=n(17),s=n(20)||0;e.exports=r,e.exports.generate=r,e.exports.seed=function(t){return i.seed(t),e.exports},e.exports.worker=function(t){return s=t,e.exports},e.exports.characters=function(e){return void 0!==e&&i.characters(e),i.shuffled()},e.exports.isValid=a},function(e,t,n){"use strict";var r=n(0);e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6||new RegExp("[^"+r.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e))}},function(e,t,n){"use strict";var r,i="object"==typeof window&&(window.crypto||window.msCrypto);r=i&&i.getRandomValues?function(e){return i.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t},e.exports=r},function(e,t,n){"use strict";var r=1;e.exports={nextValue:function(){return(r=(9301*r+49297)%233280)/233280},seed:function(e){r=e}}},function(e,t,n){"use strict";e.exports=0},function(e,t){e.exports=function(e,t,n,r){var i,o=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(i=e,o=e.default);var s="function"==typeof o?o.options:o;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var c=Object.create(s.computed||null);Object.keys(r).forEach((function(e){var t=r[e];c[e]=function(){return t}})),s.computed=c}return{esModule:i,exports:o,options:s}}},function(e,t,n){var r=n(9);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(23)("df0682cc",r,!0,{})},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=u[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));u[n.id]={id:n.id,refs:1,parts:a}}}}function i(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function o(e){var t,n,r=document.querySelector("style["+g+'~="'+e.id+'"]');if(r){if(p)return m;r.parentNode.removeChild(r)}if(b){var o=h++;r=f||(f=i()),t=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),t=s.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function a(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function s(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),v.ssrId&&e.setAttribute(g,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(24),u={},d=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,h=0,p=!1,m=function(){},v=null,g="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,i){p=n,v=i||{};var o=l(e,t);return r(o),function(t){for(var n=[],i=0;i<o.length;i++){var a=o[i];(s=u[a.id]).refs--,n.push(s)}for(t?r(o=l(e,t)):o=[],i=0;i<n.length;i++){var s;if(0===(s=n[i]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete u[s.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n}])},,,,function(e,t,n){n(445),n(467),e.exports=n(517)},function(e,t,n){var r=n(2),i=n(285);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(3)(!1)).push([e.i,".ais-Breadcrumb-list,.ais-CurrentRefinements-list,.ais-HierarchicalMenu-list,.ais-Hits-list,.ais-InfiniteHits-list,.ais-InfiniteResults-list,.ais-Menu-list,.ais-NumericMenu-list,.ais-Pagination-list,.ais-RatingMenu-list,.ais-RefinementList-list,.ais-Results-list,.ais-ToggleRefinement-list{margin:0;padding:0;list-style:none}.ais-ClearRefinements-button,.ais-CurrentRefinements-delete,.ais-CurrentRefinements-reset,.ais-GeoSearch-redo,.ais-GeoSearch-reset,.ais-HierarchicalMenu-showMore,.ais-InfiniteHits-loadMore,.ais-InfiniteHits-loadPrevious,.ais-InfiniteResults-loadMore,.ais-Menu-showMore,.ais-RangeInput-submit,.ais-RefinementList-showMore,.ais-SearchBox-reset,.ais-SearchBox-submit,.ais-VoiceSearch-button{padding:0;overflow:visible;font:inherit;line-height:normal;color:inherit;background:none;border:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ais-ClearRefinements-button::-moz-focus-inner,.ais-CurrentRefinements-delete::-moz-focus-inner,.ais-CurrentRefinements-reset::-moz-focus-inner,.ais-GeoSearch-redo::-moz-focus-inner,.ais-GeoSearch-reset::-moz-focus-inner,.ais-HierarchicalMenu-showMore::-moz-focus-inner,.ais-InfiniteHits-loadMore::-moz-focus-inner,.ais-InfiniteHits-loadPrevious::-moz-focus-inner,.ais-InfiniteResults-loadMore::-moz-focus-inner,.ais-Menu-showMore::-moz-focus-inner,.ais-RangeInput-submit::-moz-focus-inner,.ais-RefinementList-showMore::-moz-focus-inner,.ais-SearchBox-reset::-moz-focus-inner,.ais-SearchBox-submit::-moz-focus-inner,.ais-VoiceSearch-button::-moz-focus-inner{padding:0;border:0}.ais-ClearRefinements-button[disabled],.ais-CurrentRefinements-delete[disabled],.ais-CurrentRefinements-reset[disabled],.ais-GeoSearch-redo[disabled],.ais-GeoSearch-reset[disabled],.ais-HierarchicalMenu-showMore[disabled],.ais-InfiniteHits-loadMore[disabled],.ais-InfiniteHits-loadPrevious[disabled],.ais-InfiniteResults-loadMore[disabled],.ais-Menu-showMore[disabled],.ais-RangeInput-submit[disabled],.ais-RefinementList-showMore[disabled],.ais-SearchBox-reset[disabled],.ais-SearchBox-submit[disabled],.ais-VoiceSearch-button[disabled]{cursor:default}.ais-Breadcrumb-item,.ais-Breadcrumb-list,.ais-Pagination-list,.ais-PoweredBy,.ais-RangeInput-form,.ais-RatingMenu-link{display:flex;align-items:center}.ais-GeoSearch,.ais-GeoSearch-map{height:100%}.ais-HierarchicalMenu-list .ais-HierarchicalMenu-list{margin-left:1em}.ais-PoweredBy-logo{display:block;height:1.2em;width:auto}.ais-RatingMenu-starIcon{display:block;width:20px;height:20px}.ais-SearchBox-input::-ms-clear,.ais-SearchBox-input::-ms-reveal{display:none;width:0;height:0}.ais-SearchBox-input::-webkit-search-cancel-button,.ais-SearchBox-input::-webkit-search-decoration,.ais-SearchBox-input::-webkit-search-results-button,.ais-SearchBox-input::-webkit-search-results-decoration{display:none}.ais-RangeSlider .rheostat{overflow:visible;margin-top:40px;margin-bottom:40px}.ais-RangeSlider .rheostat-background{height:6px;top:0;width:100%}.ais-RangeSlider .rheostat-handle{margin-left:-12px;top:-7px}.ais-RangeSlider .rheostat-background{position:relative;background-color:#fff;border:1px solid #aaa}.ais-RangeSlider .rheostat-progress{position:absolute;top:1px;height:4px;background-color:#333}.rheostat-handle{position:relative;z-index:1;width:20px;height:20px;background-color:#fff;border:1px solid #333;border-radius:50%;cursor:-webkit-grab;cursor:grab}.rheostat-marker{margin-left:-1px;position:absolute;width:1px;height:5px;background-color:#aaa}.rheostat-marker--large{height:9px}.rheostat-value{padding-top:15px}.rheostat-tooltip,.rheostat-value{margin-left:50%;position:absolute;text-align:center;transform:translateX(-50%)}.rheostat-tooltip{top:-22px}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(145),i=n(259),o=n(428),a=n(429),s=n(94),c=n(273),l=n(251),u=n(47),d=n(75),f=n(34),h=n(274),p=n(277);function m(e,t,n){e.addAlgoliaAgent&&!b(e)&&e.addAlgoliaAgent("JS Helper ("+p+")"),this.setClient(e);var i=n||{};i.index=t,this.state=r.make(i),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function v(e){if(e<0)throw new Error("Page requested below 0.");return this._change(this.state.setPage(e)),this}function g(){return this.state.page}function b(e){var t=e._ua;return!!t&&-1!==t.indexOf("JS Helper")}c(m,s.EventEmitter),m.prototype.search=function(){return this._search(),this},m.prototype.getQuery=function(){var e=this.state;return a._getHitsSearchParams(e)},m.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=a._getQueries(n.index,n),o=this;if(this._currentNbQueries++,this.emit("searchOnce",n),!t)return this.client.search(r).then((function(e){return o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),{content:new i(n,e.results),state:n,_originalResponse:e}}),(function(e){throw o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),e}));this.client.search(r).then((function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(null,new i(n,e.results),n)})).catch((function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(e,null,n)}))},m.prototype.searchForFacetValues=function(e,t,n,r){var i="function"==typeof this.client.searchForFacetValues;if(!i&&"function"!=typeof this.client.initIndex)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var o=this.state.setQueryParameters(r||{}),s=o.isDisjunctiveFacet(e),c=a.getSearchForFacetQuery(e,t,n,o);this._currentNbQueries++;var l=this;return this.emit("searchForFacetValues",o,e,t),(i?this.client.searchForFacetValues([{indexName:o.index,params:c}]):this.client.initIndex(o.index).searchForFacetValues(c)).then((function(t){return l._currentNbQueries--,0===l._currentNbQueries&&l.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits=u(t.facetHits,(function(t){t.isRefined=s?o.isDisjunctiveFacetRefined(e,t.value):o.isFacetRefined(e,t.value)})),t}),(function(e){throw l._currentNbQueries--,0===l._currentNbQueries&&l.emit("searchQueueEmpty"),e}))},m.prototype.setQuery=function(e){return this._change(this.state.setPage(0).setQuery(e)),this},m.prototype.clearRefinements=function(e){return this._change(this.state.setPage(0).clearRefinements(e)),this},m.prototype.clearTags=function(){return this._change(this.state.setPage(0).clearTags()),this},m.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change(this.state.setPage(0).addDisjunctiveFacetRefinement(e,t)),this},m.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},m.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change(this.state.setPage(0).addHierarchicalFacetRefinement(e,t)),this},m.prototype.addNumericRefinement=function(e,t,n){return this._change(this.state.setPage(0).addNumericRefinement(e,t,n)),this},m.prototype.addFacetRefinement=function(e,t){return this._change(this.state.setPage(0).addFacetRefinement(e,t)),this},m.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},m.prototype.addFacetExclusion=function(e,t){return this._change(this.state.setPage(0).addExcludeRefinement(e,t)),this},m.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},m.prototype.addTag=function(e){return this._change(this.state.setPage(0).addTagRefinement(e)),this},m.prototype.removeNumericRefinement=function(e,t,n){return this._change(this.state.setPage(0).removeNumericRefinement(e,t,n)),this},m.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change(this.state.setPage(0).removeDisjunctiveFacetRefinement(e,t)),this},m.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},m.prototype.removeHierarchicalFacetRefinement=function(e){return this._change(this.state.setPage(0).removeHierarchicalFacetRefinement(e)),this},m.prototype.removeFacetRefinement=function(e,t){return this._change(this.state.setPage(0).removeFacetRefinement(e,t)),this},m.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},m.prototype.removeFacetExclusion=function(e,t){return this._change(this.state.setPage(0).removeExcludeRefinement(e,t)),this},m.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},m.prototype.removeTag=function(e){return this._change(this.state.setPage(0).removeTagRefinement(e)),this},m.prototype.toggleFacetExclusion=function(e,t){return this._change(this.state.setPage(0).toggleExcludeFacetRefinement(e,t)),this},m.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},m.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},m.prototype.toggleFacetRefinement=function(e,t){return this._change(this.state.setPage(0).toggleFacetRefinement(e,t)),this},m.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},m.prototype.toggleTag=function(e){return this._change(this.state.setPage(0).toggleTagRefinement(e)),this},m.prototype.nextPage=function(){return this.setPage(this.state.page+1)},m.prototype.previousPage=function(){return this.setPage(this.state.page-1)},m.prototype.setCurrentPage=v,m.prototype.setPage=v,m.prototype.setIndex=function(e){return this._change(this.state.setPage(0).setIndex(e)),this},m.prototype.setQueryParameter=function(e,t){return this._change(this.state.setPage(0).setQueryParameter(e,t)),this},m.prototype.setState=function(e){return this._change(r.make(e)),this},m.prototype.getState=function(e){return void 0===e?this.state:this.state.filter(e)},m.prototype.getStateAsQueryString=function(e){var t=e&&e.filters||["query","attribute:*"],n=this.getState(t);return h.getQueryStringFromState(n,e)},m.getConfigurationFromQueryString=h.getStateFromQueryString,m.getForeignConfigurationInQueryString=h.getUnrecognizedParametersInQueryString,m.prototype.setStateFromQueryString=function(e,t){var n=t&&t.triggerChange||!1,r=h.getStateFromQueryString(e,t),i=this.state.setQueryParameters(r);n?this.setState(i):this.overrideStateWithoutTriggeringChangeEvent(i)},m.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new r(e),this},m.prototype.isRefined=function(e,t){if(this.state.isConjunctiveFacet(e))return this.state.isFacetRefined(e,t);if(this.state.isDisjunctiveFacet(e))return this.state.isDisjunctiveFacetRefined(e,t);throw new Error(e+" is not properly defined in this helper configuration(use the facets or disjunctiveFacets keys to configure it)")},m.prototype.hasRefinements=function(e){return!d(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},m.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},m.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},m.prototype.hasTag=function(e){return this.state.isTagRefined(e)},m.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},m.prototype.getIndex=function(){return this.state.index},m.prototype.getCurrentPage=g,m.prototype.getPage=g,m.prototype.getTags=function(){return this.state.tagRefinements},m.prototype.getQueryParameter=function(e){return this.state.getQueryParameter(e)},m.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e)){var n=this.state.getConjunctiveRefinements(e);u(n,(function(e){t.push({value:e,type:"conjunctive"})}));var r=this.state.getExcludeRefinements(e);u(r,(function(e){t.push({value:e,type:"exclude"})}))}else if(this.state.isDisjunctiveFacet(e)){var i=this.state.getDisjunctiveRefinements(e);u(i,(function(e){t.push({value:e,type:"disjunctive"})}))}var o=this.state.getNumericRefinements(e);return u(o,(function(e,n){t.push({value:e,operator:n,type:"numeric"})})),t},m.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},m.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},m.prototype._search=function(){var e=this.state,t=a._getQueries(e.index,e),n=[{state:e,queriesCount:t.length,helper:this}];this.emit("search",e,this.lastResults);var r=f(this.derivedHelpers,(function(t){var r=t.getModifiedState(e),i=a._getQueries(r.index,r);return n.push({state:r,queriesCount:i.length,helper:t}),t.emit("search",r,t.lastResults),i})),i=t.concat(l(r)),o=this._queryId++;this._currentNbQueries++;try{this.client.search(i).then(this._dispatchAlgoliaResponse.bind(this,n,o)).catch(this._dispatchAlgoliaError.bind(this,o))}catch(e){this.emit("error",e)}},m.prototype._dispatchAlgoliaResponse=function(e,t,n){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var r=n.results.slice();u(e,(function(e){var t=e.state,n=e.queriesCount,o=e.helper,a=r.splice(0,n),s=o.lastResults=new i(t,a);o.emit("result",s,t)}))}},m.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",t),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},m.prototype.containsRefinement=function(e,t,n,r){return e||0!==t.length||0!==n.length||0!==r.length},m.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},m.prototype._change=function(e){e!==this.state&&(this.state=e,this.emit("change",this.state,this.lastResults))},m.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},m.prototype.setClient=function(e){return this.client===e||(e.addAlgoliaAgent&&!b(e)&&e.addAlgoliaAgent("JS Helper ("+p+")"),this.client=e),this},m.prototype.getClient=function(){return this.client},m.prototype.derive=function(e){var t=new o(this,e);return this.derivedHelpers.push(t),t},m.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},m.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=m},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(32),i=n(10);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(43),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(32),i=n(146),o=n(10),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,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(218)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(33),i=n(295),o=n(46),a=n(323),s=o((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=s},function(e,t,n){var r=n(219),i=n(221),o=n(321),a=n(33),s=n(66),c=n(223),l=Math.min;e.exports=function(e,t,n){for(var u=n?o:i,d=e[0].length,f=e.length,h=f,p=Array(f),m=1/0,v=[];h--;){var g=e[h];h&&t&&(g=a(g,s(t))),m=l(g.length,m),p[h]=!n&&(t||d>=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var b=-1,y=p[0];e:for(;++b<d&&v.length<m;){var k=g[b],w=t?t(k):k;if(k=n||0!==k?k:0,!(y?c(y,w):u(v,w,n))){for(h=f;--h;){var _=p[h];if(!(_?c(_,w):u(e[h],w,n)))continue e}y&&y.push(w),v.push(k)}}return v}},function(e,t,n){var r=n(297),i=n(84),o=n(149);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(298),i=n(303),o=n(304),a=n(305),s=n(306);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(83);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(44),i=n(300),o=n(11),a=n(220),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},function(e,t,n){var r,i=n(301),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(8)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(83),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(83),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(83);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(85),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(85);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(85);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(85);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(86);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(86);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(86);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(86);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(225),i=n(226),o=n(38),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t,n){var r=n(228);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(68),i=n(230);e.exports=function(e,t){return e&&r(e,i(t))}},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}},function(e,t,n){var r=n(17);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(e,t,n){var r=n(87);e.exports=function(e,t){var n=[];return r(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}},function(e,t,n){var r=n(329),i=n(344),o=n(239);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(88),i=n(154);e.exports=function(e,t,n,o){var a=n.length,s=a,c=!o;if(null==e)return!s;for(e=Object(e);a--;){var l=n[a];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var u=(l=n[a])[0],d=e[u],f=l[1];if(c&&l[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(o)var p=o(d,f,u,e,t,h);if(!(void 0===p?i(f,d,3,o,h):p))return!1}}return!0}},function(e,t,n){var r=n(84);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(84),i=n(149),o=n(148);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(88),i=n(232),o=n(337),a=n(340),s=n(69),c=n(6),l=n(64),u=n(81),d="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,p,m){var v=c(e),g=c(t),b=v?"[object Array]":s(e),y=g?"[object Array]":s(t),k=(b="[object Arguments]"==b?d:b)==d,w=(y="[object Arguments]"==y?d:y)==d,_=b==y;if(_&&l(e)){if(!l(t))return!1;v=!0,k=!1}if(_&&!k)return m||(m=new r),v||u(e)?i(e,t,n,h,p,m):o(e,t,b,n,h,p,m);if(!(1&n)){var C=k&&f.call(e,"__wrapped__"),A=w&&f.call(t,"__wrapped__");if(C||A){var x=C?e.value():e,S=A?t.value():t;return m||(m=new r),p(x,S,n,h,m)}}return!!_&&(m||(m=new r),a(e,t,n,h,p,m))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(43),i=n(233),o=n(45),a=n(232),s=n(338),c=n(339),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=c),e.size!=t.size&&!p)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var v=a(h(e),h(t),r,l,d,f);return f.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var c=1&n,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var f=l[d];if(!(c?f in t:i.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=c;++d<u;){var g=e[f=l[d]],b=t[f];if(o)var y=c?o(b,g,f,t,e,s):o(g,b,f,e,t,s);if(!(void 0===y?g===b||a(g,b,n,o,s):y)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var k=e.constructor,w=t.constructor;k==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof k&&k instanceof k&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t,n){var r=n(37)(n(8),"DataView");e.exports=r},function(e,t,n){var r=n(37)(n(8),"Promise");e.exports=r},function(e,t,n){var r=n(37)(n(8),"Set");e.exports=r},function(e,t,n){var r=n(238),i=n(16);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(154),i=n(240),o=n(241),a=n(157),s=n(238),c=n(239),l=n(49);e.exports=function(e,t){return a(e)&&s(t)?c(l(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},function(e,t,n){var r=n(347),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(348);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(148);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(48),i=n(63),o=n(6),a=n(65),s=n(146),c=n(49);e.exports=function(e,t,n){for(var l=-1,u=(t=r(t,e)).length,d=!1;++l<u;){var f=c(t[l]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++l!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(o(e)||i(e))}},function(e,t,n){var r=n(352),i=n(353),o=n(157),a=n(49);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(70);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},function(e,t){e.exports=function(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}},function(e,t,n){var r=n(88),i=n(152),o=n(160),a=n(357),s=n(358),c=n(244),l=n(89),u=n(361),d=n(362),f=n(234),h=n(162),p=n(69),m=n(363),v=n(364),g=n(247),b=n(6),y=n(64),k=n(368),w=n(11),_=n(370),C=n(16),A=n(51),x={};x["[object Arguments]"]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object DataView]"]=x["[object Boolean]"]=x["[object Date]"]=x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Map]"]=x["[object Number]"]=x["[object Object]"]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[object Symbol]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x["[object Error]"]=x["[object Function]"]=x["[object WeakMap]"]=!1,e.exports=function e(t,n,S,M,E,T){var D,O=1&n,P=2&n,I=4&n;if(S&&(D=E?S(t,M,E,T):S(t)),void 0!==D)return D;if(!w(t))return t;var j=b(t);if(j){if(D=m(t),!O)return l(t,D)}else{var N=p(t),R="[object Function]"==N||"[object GeneratorFunction]"==N;if(y(t))return c(t,O);if("[object Object]"==N||"[object Arguments]"==N||R&&!E){if(D=P||R?{}:g(t),!O)return P?d(t,s(D,t)):u(t,a(D,t))}else{if(!x[N])return E?t:{};D=v(t,N,O)}}T||(T=new r);var L=T.get(t);if(L)return L;T.set(t,D),_(t)?t.forEach((function(r){D.add(e(r,n,S,r,t,T))})):k(t)&&t.forEach((function(r,i){D.set(i,e(r,n,S,i,t,T))}));var B=j?void 0:(I?P?h:f:P?A:C)(t);return i(B||t,(function(r,i){B&&(r=t[i=r]),o(D,i,e(r,n,S,i,t,T))})),D}},function(e,t,n){var r=n(50),i=n(16);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(50),i=n(51);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(11),i=n(82),o=n(360),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(50),i=n(156);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(50),i=n(245);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(163),i=n(365),o=n(366),a=n(367),s=n(246);e.exports=function(e,t,n){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return o(e);case"[object Set]":return new c;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(163);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(43),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,n){var r=n(369),i=n(66),o=n(147),a=o&&o.isMap,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(69),i=n(10);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(371),i=n(66),o=n(147),a=o&&o.isSet,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(69),i=n(10);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(48),i=n(248),o=n(373),a=n(49);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},function(e,t,n){var r=n(70),i=n(249);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},function(e,t,n){var r=n(164);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){var r=n(155),i=n(376);e.exports=function e(t,n,o,a,s){var c=-1,l=t.length;for(o||(o=i),s||(s=[]);++c<l;){var u=t[c];n>0&&o(u)?n>1?e(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},function(e,t,n){var r=n(43),i=n(63),o=n(6),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(378);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(11),i=n(71),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(252);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){var r=n(154);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(13),i=n(17),o=n(16);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var c=r(n,3);t=o(t),n=function(e){return c(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[c?t[l]:l]:void 0}}},function(e,t,n){var r=n(249);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},function(e,t,n){var r=n(67);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(67);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(386),i=n(387),o=n(388);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+i+")"+"?",l="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),u="(?:"+[o+r+"?",r,a,s,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+u+l,"g");e.exports=function(e){return e.match(d)||[]}},function(e,t,n){var r=n(88),i=n(257),o=n(229),a=n(390),s=n(11),c=n(51),l=n(258);e.exports=function e(t,n,u,d,f){t!==n&&o(n,(function(o,c){if(f||(f=new r),s(o))a(t,n,c,u,e,d,f);else{var h=d?d(l(t,c),o,c+"",t,n,f):void 0;void 0===h&&(h=o),i(t,c,h)}}),c)}},function(e,t,n){var r=n(257),i=n(244),o=n(246),a=n(89),s=n(247),c=n(63),l=n(6),u=n(228),d=n(64),f=n(44),h=n(11),p=n(164),m=n(81),v=n(258),g=n(391);e.exports=function(e,t,n,b,y,k,w){var _=v(e,n),C=v(t,n),A=w.get(C);if(A)r(e,n,A);else{var x=k?k(_,C,n+"",e,t,w):void 0,S=void 0===x;if(S){var M=l(C),E=!M&&d(C),T=!M&&!E&&m(C);x=C,M||E||T?l(_)?x=_:u(_)?x=a(_):E?(S=!1,x=i(C,!0)):T?(S=!1,x=o(C,!0)):x=[]:p(C)||c(C)?(x=_,c(_)?x=g(_):h(_)&&!f(_)||(x=s(C))):S=!1}S&&(w.set(C,x),y(x,C,b,k,w),w.delete(C)),r(e,n,x)}}},function(e,t,n){var r=n(50),i=n(51);e.exports=function(e){return r(e,i(e))}},function(e,t,n){var r=n(46),i=n(256);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var c=n[r];c&&e(t,c,r,a)}return t}))}},function(e,t,n){"use strict";var r=n(34),i=n(252),o=n(76);e.exports=function e(t){if(i(t))return t;if(o(t))return parseFloat(t);if(Array.isArray(t))return r(t,e);throw new Error("The value should be a number, a parseable string or an array of those.")}},function(e,t,n){"use strict";var r=n(47),i=n(153),o=n(34),a=n(75),s=n(91);e.exports=function(e,t){var n={},c=i(t,(function(e){return-1!==e.indexOf("attribute:")})),l=o(c,(function(e){return e.split(":")[1]}));-1===s(l,"*")?r(l,(function(t){e.isConjunctiveFacet(t)&&e.isFacetRefined(t)&&(n.facetsRefinements||(n.facetsRefinements={}),n.facetsRefinements[t]=e.facetsRefinements[t]),e.isDisjunctiveFacet(t)&&e.isDisjunctiveFacetRefined(t)&&(n.disjunctiveFacetsRefinements||(n.disjunctiveFacetsRefinements={}),n.disjunctiveFacetsRefinements[t]=e.disjunctiveFacetsRefinements[t]),e.isHierarchicalFacet(t)&&e.isHierarchicalFacetRefined(t)&&(n.hierarchicalFacetsRefinements||(n.hierarchicalFacetsRefinements={}),n.hierarchicalFacetsRefinements[t]=e.hierarchicalFacetsRefinements[t]);var r=e.getNumericRefinements(t);a(r)||(n.numericRefinements||(n.numericRefinements={}),n.numericRefinements[t]=e.numericRefinements[t])})):(a(e.numericRefinements)||(n.numericRefinements=e.numericRefinements),a(e.facetsRefinements)||(n.facetsRefinements=e.facetsRefinements),a(e.disjunctiveFacetsRefinements)||(n.disjunctiveFacetsRefinements=e.disjunctiveFacetsRefinements),a(e.hierarchicalFacetsRefinements)||(n.hierarchicalFacetsRefinements=e.hierarchicalFacetsRefinements));var u=i(t,(function(e){return-1===e.indexOf("attribute:")}));return r(u,(function(t){n[t]=e[t]})),n}},function(e,t,n){"use strict";var r=n(253),i=n(76),o=n(44),a=n(75),s=n(165),c=n(72),l=n(153),u=n(243),d={addRefinement:function(e,t,n){if(d.isRefined(e,t,n))return e;var r=""+n,i=e[t]?e[t].concat(r):[r],o={};return o[t]=i,s({},o,e)},removeRefinement:function(e,t,n){if(r(n))return d.clearRefinement(e,t);var i=""+n;return d.clearRefinement(e,(function(e,n){return t===n&&i===e}))},toggleRefinement:function(e,t,n){if(r(n))throw new Error("toggleRefinement should be used with a value");return d.isRefined(e,t,n)?d.removeRefinement(e,t,n):d.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(r(t))return a(e)?e:{};if(i(t))return a(e[t])?e:u(e,t);if(o(t)){var s=!1,d=c(e,(function(e,r,i){var o=l(r,(function(e){return!t(e,i,n)}));return a(o)?s=!0:(o.length!==r.length&&(s=!0),e[i]=o),e}),{});return s?d:e}},isRefined:function(e,t,i){var o=n(91),a=!!e[t]&&e[t].length>0;if(r(i)||!a)return a;var s=""+i;return-1!==o(e[t],s)}};e.exports=d},function(e,t){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}},function(e,t,n){var r=n(13),i=n(398);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):0}},function(e,t){e.exports=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}},function(e,t,n){var r=n(67),i=n(17),o=n(76),a=n(74),s=n(400),c=Math.max;e.exports=function(e,t,n,l){e=i(e)?e:s(e),n=n&&!l?a(n):0;var u=e.length;return n<0&&(n=c(u+n,0)),o(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&r(e,t,n)>-1}},function(e,t,n){var r=n(401),i=n(16);e.exports=function(e){return null==e?[]:r(e,i(e))}},function(e,t,n){var r=n(33);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t,n){var r=n(33),i=n(70),o=n(13),a=n(242),s=n(403),c=n(66),l=n(404),u=n(38),d=n(6);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[u];var f=-1;t=r(t,c(o));var h=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++f,value:e}}));return s(h,(function(e,t){return l(e,t,n)}))}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(405);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,c=n.length;++i<s;){var l=r(o[i],a[i]);if(l)return i>=c?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(71);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,c=null===t,l=t==t,u=r(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!u&&e<t||u&&n&&o&&!i&&!a||c&&n&&o||!s&&o||!l)return-1}return 0}},function(e,t,n){var r=n(46),i=n(167),o=n(77),a=n(52),s=r((function(e,t){var n=a(t,o(s));return i(e,32,void 0,t,n)}));s.placeholder={},e.exports=s},function(e,t,n){var r=n(93),i=n(8);e.exports=function(e,t,n){var o=1&t,a=r(e);return function t(){var r=this&&this!==i&&this instanceof t?a:e;return r.apply(o?n:this,arguments)}}},function(e,t,n){var r=n(150),i=n(93),o=n(263),a=n(266),s=n(77),c=n(52),l=n(8);e.exports=function(e,t,n){var u=i(e);return function i(){for(var d=arguments.length,f=Array(d),h=d,p=s(i);h--;)f[h]=arguments[h];var m=d<3&&f[0]!==p&&f[d-1]!==p?[]:c(f,p);if((d-=m.length)<n)return a(e,t,o,i.placeholder,void 0,f,m,void 0,void 0,n-d);var v=this&&this!==l&&this instanceof i?u:e;return r(v,this,f)}}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},function(e,t,n){var r=n(168),i=n(267),o=n(412),a=n(414);e.exports=function(e){var t=o(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=i(n);return!!s&&e===s[0]}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(413),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],o=i.call(r,t)?n.length:0;o--;){var a=n[o],s=a.func;if(null==s||s==e)return a.name}return t}},function(e,t){e.exports={}},function(e,t,n){var r=n(168),i=n(268),o=n(169),a=n(6),s=n(10),c=n(415),l=Object.prototype.hasOwnProperty;function u(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof i)return e;if(l.call(e,"__wrapped__"))return c(e)}return new i(e)}u.prototype=o.prototype,u.prototype.constructor=u,e.exports=u},function(e,t,n){var r=n(168),i=n(268),o=n(89);e.exports=function(e){if(e instanceof r)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t){var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var t=e.match(n);return t?t[1].split(r):[]}},function(e,t){var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,n){var r=n(152),i=n(221),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(o,(function(n){var r="_."+n[0];t&n[1]&&!i(e,r)&&e.push(r)})),e.sort()}},function(e,t,n){var r=n(89),i=n(65),o=Math.min;e.exports=function(e,t){for(var n=e.length,a=o(t.length,n),s=r(e);a--;){var c=t[a];e[a]=i(c,n)?s[c]:void 0}return e}},function(e,t,n){var r=n(150),i=n(93),o=n(8);e.exports=function(e,t,n,a){var s=1&t,c=i(e);return function t(){for(var i=-1,l=arguments.length,u=-1,d=a.length,f=Array(d+l),h=this&&this!==o&&this instanceof t?c:e;++u<d;)f[u]=a[u];for(;l--;)f[u++]=arguments[++i];return r(h,s?n:this,f)}}},function(e,t,n){var r=n(264),i=n(265),o=n(52),a=Math.min;e.exports=function(e,t){var n=e[1],s=t[1],c=n|s,l=c<131,u=128==s&&8==n||128==s&&256==n&&e[7].length<=t[8]||384==s&&t[7].length<=t[8]&&8==n;if(!l&&!u)return e;1&s&&(e[2]=t[2],c|=1&n?0:4);var d=t[3];if(d){var f=e[3];e[3]=f?r(f,d,t[4]):d,e[4]=f?o(e[3],"__lodash_placeholder__"):t[4]}return(d=t[5])&&(f=e[5],e[5]=f?i(f,d,t[6]):d,e[6]=f?o(e[5],"__lodash_placeholder__"):t[6]),(d=t[7])&&(e[7]=d),128&s&&(e[8]=null==e[8]?t[8]:a(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}},function(e,t,n){var r=n(46),i=n(167),o=n(77),a=n(52),s=r((function(e,t){var n=a(t,o(s));return i(e,64,void 0,t,n)}));s.placeholder={},e.exports=s},function(e,t,n){var r=n(424),i=n(159),o=n(74),a=n(158);e.exports=function(e,t,n){return e=a(e),n=null==n?0:r(o(n),0,e.length),t=i(t),e.slice(n,n+t.length)==t}},function(e,t){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},function(e,t,n){"use strict";e.exports=function(e){return function(t,n){var d=e.hierarchicalFacets[n],f=e.hierarchicalFacetsRefinements[d.name]&&e.hierarchicalFacetsRefinements[d.name][0]||"",h=e._getHierarchicalFacetSeparator(d),p=e._getHierarchicalRootPath(d),m=e._getHierarchicalShowParentLevel(d),v=function(e,t,n,o,u){return function(d,f,h){var p=d;if(h>0){var m=0;for(p=d;m<h;)p=p&&c(p.data,{isRefined:!0}),m++}if(p){var v=function(e,t,n,r,i){return function(o,a){return(!r||0===a.indexOf(r)&&r!==a)&&(!r&&-1===a.indexOf(n)||r&&a.split(n).length-r.split(n).length==1||-1===a.indexOf(n)&&-1===t.indexOf(n)||0===t.indexOf(a)||0===a.indexOf(e+n)&&(i||0===a.indexOf(t)))}}(p.path||n,u,t,n,o);p.data=a(i(l(f.data,v),function(e,t){return function(n,i){return{name:s(r(i.split(e))),path:i,count:n,isRefined:t===i||0===t.indexOf(i+e),data:null}}}(t,u)),e[0],e[1])}return d}}(u(e._getHierarchicalFacetSortBy(d)),h,p,m,f),g=t;return p&&(g=t.slice(p.split(h).length)),o(g,v,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,data:null})}};var r=n(248),i=n(34),o=n(72),a=n(260),s=n(255),c=n(92),l=n(426),u=n(271)},function(e,t,n){var r=n(33),i=n(13),o=n(272),a=n(162);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=i(t),o(e,n,(function(e,n){return t(e,n[0])}))}},function(e,t,n){var r=n(160),i=n(48),o=n(65),a=n(11),s=n(49);e.exports=function(e,t,n,c){if(!a(e))return e;for(var l=-1,u=(t=i(t,e)).length,d=u-1,f=e;null!=f&&++l<u;){var h=s(t[l]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(l!=d){var m=f[h];void 0===(p=c?c(m,h,f):void 0)&&(p=a(m)?m:o(t[l+1])?[]:{})}r(f,h,p),f=f[h]}return e}},function(e,t,n){"use strict";var r=n(94);function i(e,t){this.main=e,this.fn=t,this.lastResults=null}n(273)(i,r.EventEmitter),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=i},function(e,t,n){"use strict";var r=n(47),i=n(34),o=n(72),a=n(166),s={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:s._getHitsSearchParams(t)}),r(t.getRefinedDisjunctiveFacets(),(function(r){n.push({indexName:e,params:s._getDisjunctiveFacetSearchParams(t,r)})})),r(t.getRefinedHierarchicalFacets(),(function(r){var i=t.getHierarchicalFacetByName(r),o=t.getHierarchicalRefinement(r),a=t._getHierarchicalFacetSeparator(i);o.length>0&&o[0].split(a).length>1&&n.push({indexName:e,params:s._getDisjunctiveFacetSearchParams(t,r,!0)})})),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(s._getHitsHierarchicalFacetsAttributes(e)),n=s._getFacetFilters(e),r=s._getNumericFilters(e),i={facets:t,tagFilters:s._getTagFilters(e)};return n.length>0&&(i.facetFilters=n),r.length>0&&(i.numericFilters=r),a(e.getQueryParams(),i)},_getDisjunctiveFacetSearchParams:function(e,t,n){var r=s._getFacetFilters(e,t,n),i=s._getNumericFilters(e,t),o={hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],tagFilters:s._getTagFilters(e),analytics:!1,clickAnalytics:!1},c=e.getHierarchicalFacetByName(t);return o.facets=c?s._getDisjunctiveHierarchicalFacetAttribute(e,c,n):t,i.length>0&&(o.numericFilters=i),r.length>0&&(o.facetFilters=r),a(e.getQueryParams(),o)},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return r(e.numericRefinements,(function(e,o){r(e,(function(e,a){t!==o&&r(e,(function(e){if(Array.isArray(e)){var t=i(e,(function(e){return o+a+e}));n.push(t)}else n.push(o+a+e)}))}))})),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var i=[];return r(e.facetsRefinements,(function(e,t){r(e,(function(e){i.push(t+":"+e)}))})),r(e.facetsExcludes,(function(e,t){r(e,(function(e){i.push(t+":-"+e)}))})),r(e.disjunctiveFacetsRefinements,(function(e,n){if(n!==t&&e&&0!==e.length){var o=[];r(e,(function(e){o.push(n+":"+e)})),i.push(o)}})),r(e.hierarchicalFacetsRefinements,(function(r,o){var a=r[0];if(void 0!==a){var s,c,l=e.getHierarchicalFacetByName(o),u=e._getHierarchicalFacetSeparator(l),d=e._getHierarchicalRootPath(l);if(t===o){if(-1===a.indexOf(u)||!d&&!0===n||d&&d.split(u).length===a.split(u).length)return;d?(c=d.split(u).length-1,a=d):(c=a.split(u).length-2,a=a.slice(0,a.lastIndexOf(u))),s=l.attributes[c]}else c=a.split(u).length-1,s=l.attributes[c];s&&i.push([s+":"+a])}})),i},_getHitsHierarchicalFacetsAttributes:function(e){return o(e.hierarchicalFacets,(function(t,n){var r=e.getHierarchicalRefinement(n.name)[0];if(!r)return t.push(n.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(n),o=r.split(i).length,a=n.attributes.slice(0,o+1);return t.concat(a)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(!0===n){var i=e._getHierarchicalRootPath(t),o=0;return i&&(o=i.split(r).length),[t.attributes[o]]}var a=(e.getHierarchicalRefinement(t.name)[0]||"").split(r).length-1;return t.attributes.slice(0,a+1)},getSearchForFacetQuery:function(e,t,n,r){var i=r.isDisjunctiveFacet(e)?r.clearRefinements(e):r,o={facetQuery:t,facetName:e};return"number"==typeof n&&(o.maxFacetHits=n),a(s._getHitsSearchParams(i),o)}};e.exports=s},function(e,t,n){"use strict";var r=n(275),i=n(16),o={advancedSyntax:"aS",allowTyposOnNumericTokens:"aTONT",analyticsTags:"aT",analytics:"a",aroundLatLngViaIP:"aLLVIP",aroundLatLng:"aLL",aroundPrecision:"aP",aroundRadius:"aR",attributesToHighlight:"aTH",attributesToRetrieve:"aTR",attributesToSnippet:"aTS",disjunctiveFacetsRefinements:"dFR",disjunctiveFacets:"dF",distinct:"d",facetsExcludes:"fE",facetsRefinements:"fR",facets:"f",getRankingInfo:"gRI",hierarchicalFacetsRefinements:"hFR",hierarchicalFacets:"hF",highlightPostTag:"hPoT",highlightPreTag:"hPrT",hitsPerPage:"hPP",ignorePlurals:"iP",index:"idx",insideBoundingBox:"iBB",insidePolygon:"iPg",length:"l",maxValuesPerFacet:"mVPF",minimumAroundRadius:"mAR",minProximity:"mP",minWordSizefor1Typo:"mWS1T",minWordSizefor2Typos:"mWS2T",numericFilters:"nF",numericRefinements:"nR",offset:"o",optionalWords:"oW",page:"p",queryType:"qT",query:"q",removeWordsIfNoResults:"rWINR",replaceSynonymsInHighlight:"rSIH",restrictSearchableAttributes:"rSA",synonyms:"s",tagFilters:"tF",tagRefinements:"tR",typoTolerance:"tT",optionalTagFilters:"oTF",optionalFacetFilters:"oFF",snippetEllipsisText:"sET",disableExactOnAttributes:"dEOA",enableExactOnSingleWordQuery:"eEOSWQ"},a=r(o);e.exports={ENCODED_PARAMETERS:i(a),decode:function(e){return a[e]},encode:function(e){return o[e]}}},function(e,t,n){var r=n(432);e.exports=function(e,t){return function(n,i){return r(n,e,t(i),{})}}},function(e,t,n){var r=n(68);e.exports=function(e,t,n,i){return r(e,(function(e,r,o){t(i,n(e),r,o)})),i}},function(e,t,n){"use strict";var r=n(170),i=n(276),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,formatter:i.formatters[i.default],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,o,a,c,u,f,h,p,m,v,g){var b=t;if("function"==typeof u?b=u(n,b):b instanceof Date?b=p(b):"comma"===i&&s(b)&&(b=b.join(",")),null===b){if(o)return c&&!v?c(n,d.encoder,g):n;b=""}if("string"==typeof b||"number"==typeof b||"boolean"==typeof b||r.isBuffer(b))return c?[m(v?n:c(n,d.encoder,g))+"="+m(c(b,d.encoder,g))]:[m(n)+"="+m(String(b))];var y,k=[];if(void 0===b)return k;if(s(u))y=u;else{var w=Object.keys(b);y=f?w.sort(f):w}for(var _=0;_<y.length;++_){var C=y[_];a&&null===b[C]||(s(b)?l(k,e(b[C],"function"==typeof i?i(n,C):n,i,o,a,c,u,f,h,p,m,v,g)):l(k,e(b[C],n+(h?"."+C:"["+C+"]"),i,o,a,c,u,f,h,p,m,v,g)))}return k};e.exports=function(e,t){var n,r=e,c=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],a=d.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof c.filter?r=(0,c.filter)("",r):s(c.filter)&&(n=c.filter);var u,h=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[u];n||(n=Object.keys(r)),c.sort&&n.sort(c.sort);for(var m=0;m<n.length;++m){var v=n[m];c.skipNulls&&null===r[v]||l(h,f(r[v],v,p,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var g=h.join(c.delimiter),b=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),g.length>0?b+g:""}},function(e,t,n){"use strict";var r=n(170),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),s=a?r.slice(0,a.index):r,c=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var l=0;null!==(a=o.exec(r))&&l<n.depth;){if(l+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+r.slice(a.index)+"]"),function(e,t,n){for(var r=t,i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&n.parseArrays)o=[].concat(r);else{o=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(s,10);n.parseArrays||""!==s?!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[])[c]=r:o[s]=r:o={0:r}}r=o}return r}(c,t,n)}};e.exports=function(e,t){var n=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth?e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,s={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,u=c.split(t.delimiter,l),d=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n<u.length;++n)0===u[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[n]?f="utf-8":"utf8=%26%2310003%3B"===u[n]&&(f="iso-8859-1"),d=n,n=u.length);for(n=0;n<u.length;++n)if(n!==d){var h,p,m=u[n],v=m.indexOf("]="),g=-1===v?m.indexOf("="):v+1;-1===g?(h=t.decoder(m,o.decoder,f),p=t.strictNullHandling?null:""):(h=t.decoder(m.slice(0,g),o.decoder,f),p=t.decoder(m.slice(g+1),o.decoder,f)),p&&t.interpretNumericEntities&&"iso-8859-1"===f&&(p=a(p)),p&&t.comma&&p.indexOf(",")>-1&&(p=p.split(",")),i.call(s,h)?s[h]=r.combine(s[h],p):s[h]=p}return s}(e,n):e,l=n.plainObjects?Object.create(null):{},u=Object.keys(c),d=0;d<u.length;++d){var f=u[d],h=s(f,c[f],n);l=r.merge(l,h,n)}return r.compact(l)}},function(e,t,n){var r=n(46),i=n(167),o=n(77),a=n(52),s=r((function(e,t,n){var r=1;if(n.length){var c=a(n,o(s));r|=32}return i(e,r,t,n,c)}));s.placeholder={},e.exports=s},function(e,t,n){var r=n(437),i=n(250)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},function(e,t,n){var r=n(272),i=n(241);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},function(e,t,n){var r=n(73),i=n(68),o=n(13);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,t(e,i,o),e)})),n}},function(e,t,n){var r=n(73),i=n(68),o=n(13);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},,,,,,function(e,t,n){"use strict";n.r(t);n(124),n(125),n(127);var r=n(28),i=n.n(r),o={"&":"&","<":"<",">":">",'"':""","'":"'"},a=/[&<>"']/g,s=RegExp(a.source);var c=function(e){return e&&s.test(e)?e.replace(a,(function(e){return o[e]})):e};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=function(e){if(!function(e){return"object"===l(e)&&null!==e}(e)||"[object Object]"!==function(e){return null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t};function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},m="<mark>",v="</mark>";function g(e){return c(e).replace(new RegExp(p.highlightPreTag,"g"),m).replace(new RegExp(p.highlightPostTag,"g"),v)}function b(e){return u(e)&&"string"!=typeof e.value?Object.keys(e).reduce((function(t,n){return f({},t,h({},n,b(e[n])))}),{}):Array.isArray(e)?e.map(b):f({},e,{value:g(e.value)})}function y(e){return void 0===e.__escaped&&((e=e.map((function(e){return e._highlightResult&&(e._highlightResult=b(e._highlightResult)),e._snippetResult&&(e._snippetResult=b(e._snippetResult)),e}))).__escaped=!0),e}function k(e){return e.map((function(e){return f({},e,{highlighted:g(e.highlighted)})}))}var w=function(e){var t=e.name,n=e.connector;return["https://www.algolia.com/doc/api-reference/widgets/",t,"/js/",void 0!==n&&n?"#connector":""].join("")},_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.map((function(e){return w(e)})).join(", ");return function(e){return[e,"See documentation: ".concat(r)].filter(Boolean).join("\n\n")}};var C=function(){};function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var x=function(e,t){if(void 0===e||"function"!=typeof e)throw new Error('The render function is not valid (got type "'.concat(A(e),'").\n\n').concat(t))};var S=function(e,t,n){return Array.prototype.find?e.find(t,n):e.filter(t,n)[0]},M=_({name:"autocomplete",connector:!0});var E=C;function T(e){return e!==Object(e)}var D=function e(t,n){if(t===n)return!0;if(T(t)||T(n)||"function"==typeof t||"function"==typeof n)return t===n;if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];if(!(o in n))return!1;if(!e(t[o],n[o]))return!1}return!0};function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var P=_({name:"breadcrumb",connector:!0});function I(e){return e.reduce((function(e,t){return t.isRefined&&(e.push({label:t.name,value:t.path}),Array.isArray(t.data)&&(e=e.concat(I(t.data)))),e}),[])}function j(e){return e.map((function(t,n){return{label:t.label,value:n+1===e.length?null:e[n+1].value}}))}var N=function(e){var t=e.helper,n=e.attributesToClear,r=void 0===n?[]:n,i=t.state.setPage(0);return r.forEach((function(e){i="_tags"===e?i.clearTags():i.clearRefinements(e)})),-1!==r.indexOf("query")&&(i=i.setQuery("")),i};var R=function(e){return String(e).replace(/^\\-/,"-")};function L(e,t,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a={type:t,attributeName:n,name:r},s=S(o,(function(e){return e.name===n}));"hierarchical"===t?function(){for(var t=e.getHierarchicalFacetByName(n),o=r.split(t.separator),a=function(e){var t;s=s&&s.data&&S(Object.keys(s.data).map((t=s.data,function(e){return t[e]})),(function(t){return t.name===o[e]}))},c=0;void 0!==s&&c<o.length;++c)a(c);i=s&&s.count}():i=s&&s.data&&s.data[a.name];var c=s&&s.exhaustive;return void 0!==i&&(a.count=i),void 0!==c&&(a.exhaustive=c),a}var B=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],i=t.facetsRefinements,o=void 0===i?{}:i,a=t.facetsExcludes,s=void 0===a?{}:a,c=t.disjunctiveFacetsRefinements,l=void 0===c?{}:c,u=t.hierarchicalFacetsRefinements,d=void 0===u?{}:u,f=t.numericRefinements,h=void 0===f?{}:f,p=t.tagRefinements,m=void 0===p?[]:p;return Object.keys(o).forEach((function(n){o[n].forEach((function(i){r.push(L(t,"facet",n,i,e.facets))}))})),Object.keys(s).forEach((function(e){s[e].forEach((function(t){r.push({type:"exclude",attributeName:e,name:t,exclude:!0})}))})),Object.keys(l).forEach((function(n){l[n].forEach((function(i){r.push(L(t,"disjunctive",n,R(i),e.disjunctiveFacets))}))})),Object.keys(d).forEach((function(n){d[n].forEach((function(i){r.push(L(t,"hierarchical",n,i,e.hierarchicalFacets))}))})),Object.keys(h).forEach((function(e){var t=h[e];Object.keys(t).forEach((function(n){var i=t[n];(Array.isArray(i)?i:[i]).forEach((function(t){r.push({type:"numeric",attributeName:e,name:"".concat(t),numericValue:t,operator:n})}))}))})),m.forEach((function(e){r.push({type:"tag",attributeName:"_tags",name:e})})),n&&t.query&&t.query.trim()&&r.push({attributeName:"query",type:"query",name:t.query,query:t.query}),r},F=_({name:"clear-refinements",connector:!0});function z(e){var t=e.helper,n=e.includedAttributes,r=e.excludedAttributes,i=e.transformItems,o=-1!==n.indexOf("query")||-1===r.indexOf("query");return i(B(t.lastResults||{},t.state,o).map((function(e){return e.attributeName})).filter((function(e){return 0===n.length||-1!==n.indexOf(e)})).filter((function(e){return"query"===e&&o||-1===r.indexOf(e)})))}var V=n(14),$=n.n(V),H=n(94),U=n.n(H);function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(n,!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=function(){function e(t){var n=t.router,r=t.stateMapping,i=t.instantSearchInstance;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),K(this,"instantSearchInstance",void 0),K(this,"router",void 0),K(this,"stateMapping",void 0),K(this,"isFirstRender",!0),K(this,"currentUiState",void 0),K(this,"initState",void 0),K(this,"renderURLFromState",void 0),this.router=n,this.stateMapping=r,this.instantSearchInstance=i,this.currentUiState=this.stateMapping.routeToState(this.router.read())}var t,n,r;return t=e,(n=[{key:"getAllSearchParameters",value:function(e){var t=e.currentSearchParameters,n=e.uiState;return this.instantSearchInstance.widgets.reduce((function(e,t){return t.getWidgetSearchParameters?t.getWidgetSearchParameters(e,{uiState:n}):e}),t)}},{key:"getAllUiStates",value:function(e){var t=e.searchParameters,n=this.instantSearchInstance.widgets,r=this.instantSearchInstance.helper;return n.reduce((function(e,n){return n.getWidgetState?n.getWidgetState(e,{helper:r,searchParameters:t}):e}),{})}},{key:"setupRouting",value:function(e){var t=this,n=this.instantSearchInstance.helper;this.router.onUpdate((function(r){var i=t.stateMapping.routeToState(r),o=t.getAllUiStates({searchParameters:n.state});if(!D(i,o)){t.currentUiState=i;var a=t.getAllSearchParameters({currentSearchParameters:e,uiState:t.currentUiState});n.overrideStateWithoutTriggeringChangeEvent(a).search()}})),this.renderURLFromState=function(e){t.currentUiState=t.getAllUiStates({searchParameters:e});var n=t.stateMapping.stateToRoute(t.currentUiState);t.router.write(n)},n.on("change",this.renderURLFromState);var r=this.getAllUiStates({searchParameters:e});if(!D(this.initState,r)){this.currentUiState=r;var i=this.stateMapping.stateToRoute(this.currentUiState);this.router.write(i)}}},{key:"getConfiguration",value:function(e){var t=$.a.SearchParameters.make(e);return W({},this.getAllSearchParameters({uiState:this.currentUiState,currentSearchParameters:t}))}},{key:"init",value:function(e){var t=e.state;this.initState=this.getAllUiStates({searchParameters:t})}},{key:"render",value:function(e){var t=e.state;this.isFirstRender&&(this.isFirstRender=!1,this.setupRouting(t))}},{key:"dispose",value:function(e){var t=e.helper,n=e.state;this.renderURLFromState&&this.instantSearchInstance.helper.removeListener("change",this.renderURLFromState),this.router.dispose&&this.router.dispose({helper:t,state:n})}},{key:"createURL",value:function(e){var t=this.getAllUiStates({searchParameters:e}),n=this.stateMapping.stateToRoute(t);return this.router.createURL(n)}},{key:"onHistoryChange",value:function(e){var t=this,n=this.instantSearchInstance.helper;this.router.onUpdate((function(r){var i=t.stateMapping.routeToState(r),o=t.getAllUiStates({searchParameters:n.state});if(!D(i,o)){t.currentUiState=i;var a=t.getAllSearchParameters({currentSearchParameters:n.state,uiState:t.currentUiState});e(W({},a))}}))}}])&&Y(t.prototype,n),r&&Y(t,r),e}();function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var X=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"stateToRoute",value:function(e){return e}},{key:"routeToState",value:function(e){return e}}])&&Q(t.prototype,n),r&&Q(t,r),e}(),J=n(95),Z=n.n(J);function ee(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function te(e,t,n){return(te=ee()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&ne(i,n.prototype),i}).apply(null,arguments)}function ne(e,t){return(ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ae=function(e){var t=e.qsModule,n=e.routeState,r=e.location,i=r.protocol,o=r.hostname,a=r.port,s=void 0===a?"":a,c=r.pathname,l=r.hash,u=t.stringify(n),d=""===s?"":":".concat(s);return n&&0!==Object.keys(n).length?"".concat(i,"//").concat(o).concat(d).concat(c,"?").concat(u).concat(l):"".concat(i,"//").concat(o).concat(d).concat(c).concat(l)},se=function(e){var t=e.qsModule,n=e.location;return t.parse(n.search.slice(1),{arrayLimit:99})},ce=function(e){e&&(window.document.title=e)},le=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.windowTitle,r=t.writeDelay,i=void 0===r?400:r,o=t.createURL,a=void 0===o?ae:o,s=t.parseURL,c=void 0===s?se:s;re(this,e),oe(this,"windowTitle",void 0),oe(this,"writeDelay",void 0),oe(this,"_createURL",void 0),oe(this,"parseURL",void 0),oe(this,"writeTimer",void 0),this.windowTitle=n,this.writeTimer=void 0,this.writeDelay=i,this._createURL=a,this.parseURL=c;var l=this.windowTitle&&this.windowTitle(this.read());ce(l)}var t,n,r;return t=e,(n=[{key:"read",value:function(){return this.parseURL({qsModule:Z.a,location:window.location})}},{key:"write",value:function(e){var t=this,n=this.createURL(e),r=this.windowTitle&&this.windowTitle(e);this.writeTimer&&window.clearTimeout(this.writeTimer),this.writeTimer=window.setTimeout((function(){ce(r),window.history.pushState(e,r||"",n),t.writeTimer=void 0}),this.writeDelay)}},{key:"onUpdate",value:function(e){var t=this;this._onPopState=function(n){t.writeTimer&&(window.clearTimeout(t.writeTimer),t.writeTimer=void 0);var r=n.state;e(r||t.read())},window.addEventListener("popstate",this._onPopState)}},{key:"createURL",value:function(e){return this._createURL({qsModule:Z.a,routeState:e,location:window.location})}},{key:"dispose",value:function(){this._onPopState&&window.removeEventListener("popstate",this._onPopState),this.writeTimer&&window.clearTimeout(this.writeTimer),this.write({})}}])&&ie(t.prototype,n),r&&ie(t,r),e}();var ue=function(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)},de=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.descendantName,r=t.modifierName,i=n?"-".concat(n):"",o=r?"--".concat(r):"";return"".concat("ais","-").concat(e).concat(i).concat(o)}},fe=de("Highlight");function he(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,o=ue(i,"_highlightResult.".concat(t,".value"))||"",a=fe({descendantName:"highlighted"});return o.replace(new RegExp(m,"g"),"<".concat(r,' class="').concat(a,'">')).replace(new RegExp(v,"g"),"</".concat(r,">"))}var pe=de("Snippet");function me(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,o=ue(i,"_snippetResult.".concat(t,".value"))||"",a=pe({descendantName:"highlighted"});return o.replace(new RegExp(m,"g"),"<".concat(r,' class="').concat(a,'">')).replace(new RegExp(v,"g"),"</".concat(r,">"))}function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(n,!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){var t=e.numberLocale;return{formatNumber:function(e,n){return Number(n(e)).toLocaleString(t)},highlight:function(e,t){try{return t(he(ge({},JSON.parse(e),{hit:this})))}catch(e){throw new Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{return t(me(ge({},JSON.parse(e),{hit:this})))}catch(e){throw new Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}}}}var ke=function(e){return e.filter((function(e,t,n){return n.indexOf(e)===t}))};function we(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var _e=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(n).forEach((function(r){var i=t[r],o=n[r];Array.isArray(i)&&Array.isArray(o)?t[r]=ke([].concat(we(i),we(o))):u(i)&&u(o)?t[r]=e(i,o):t[r]=o})),t}),{})};var Ce=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1};function Ae(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xe(e){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(n,!0).forEach((function(t){Ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function De(e,t){return!t||"object"!==xe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pe(e,t){return(Pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ie=_({name:"instantsearch"}),je={stateMapping:new X,router:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return te(le,t)}()};function Ne(){return"#"}function Re(e,t){if(!t.getConfiguration)return e;var n=t.getConfiguration(e);if(!n)return e;if(!n.hierarchicalFacets)return _e(e,n);var r=n.hierarchicalFacets,i=Ae(n,["hierarchicalFacets"]),o=Me({},e,{hierarchicalFacets:r.reduce((function(e,t){var n=Ce(e,(function(e){return e.name===t.name}));if(-1===n)return e.concat(t);var r=e.slice();return r.splice(n,1,t),r}),e.hierarchicalFacets||[])});return _e(o,i)}var Le=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=De(this,Oe(t).call(this));var r=e.indexName,i=void 0===r?null:r,o=e.numberLocale,a=e.searchParameters,s=e.routing,c=void 0===s?null:s,l=e.searchFunction,d=e.stalledSearchDelay,f=void 0===d?200:d,h=e.searchClient,p=void 0===h?null:h,m=e.insightsClient,v=void 0===m?null:m;if(null===i)throw new Error(Ie("The `indexName` option is required."));if(null===p)throw new Error(Ie("The `searchClient` option is required."));if(void 0!==e.urlSync)throw new Error(Ie("The `urlSync` option was removed in InstantSearch.js 3. You may want to use the `routing` option."));if("function"!=typeof p.search)throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof p.addAlgoliaAgent&&p.addAlgoliaAgent("instantsearch.js (".concat("3.7.0",")")),v&&"function"!=typeof v)throw new Error("The provided `insightsClient` must be a function.");return E(!a,"The `searchParameters` option is deprecated and will not be supported in InstantSearch.js 4.x.\n\nYou can replace it with the `configure` widget:\n\n```\nsearch.addWidgets([\n configure(".concat(JSON.stringify(a,null,2),")\n]);\n```\n\nSee ").concat(w({name:"configure"}))),n.client=p,n.insightsClient=v,n.helper=null,n.indexName=i,n.searchParameters=Me({},a,{index:i}),n.widgets=[],n.templatesConfig={helpers:ye({numberLocale:o}),compileOptions:{}},n._stalledSearchDelay=f,l&&(n._searchFunction=l),!0===c?n.routing=je:u(c)&&(n.routing=Me({},je,{},c)),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pe(e,t)}(t,e),n=t,(r=[{key:"addWidget",value:function(e){this.addWidgets([e])}},{key:"addWidgets",value:function(e){var t=this;if(!Array.isArray(e))throw new Error(Ie("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));var n=this.widgets.pop();e.forEach((function(e){if(void 0===e.render&&void 0===e.init)throw new Error("The widget definition expects a `render` and/or an `init` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/widgets/create-your-own-widgets/js/");t.widgets.push(e)})),n&&this.widgets.push(n),this.started&&Boolean(e.length)&&(this.searchParameters=this.widgets.reduce(Re,Me({},this.helper.state)),this.helper.setState(this.searchParameters),e.forEach((function(e){e.init&&e.init({state:t.helper.state,helper:t.helper,templatesConfig:t.templatesConfig,createURL:t._createAbsoluteURL,onHistoryChange:t._onHistoryChange,instantSearchInstance:t})})),this.helper.search())}},{key:"removeWidget",value:function(e){this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){var t=this;if(!Array.isArray(e))throw new Error(Ie("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));e.forEach((function(e){if(!t.widgets.includes(e)||"function"!=typeof e.dispose)throw new Error("The `dispose` method is required to remove the widget.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/widgets/create-your-own-widgets/js/#the-widget-lifecycle-and-api");t.widgets=t.widgets.filter((function(t){return t!==e}));var n=e.dispose({helper:t.helper,state:t.helper.state});n&&(t.searchParameters=t.widgets.reduce(Re,Me({},n)),t.helper.setState(t.searchParameters))})),setTimeout((function(){t.widgets.length>0&&t.helper.search()}),0)}},{key:"refresh",value:function(){this.helper&&this.helper.clearCache().search()}},{key:"start",value:function(){var e=this;if(this.started)throw new Error(Ie("The `start` method has already been called once."));if(this.routing){var t=new G(Me({},this.routing,{instantSearchInstance:this}));this._onHistoryChange=t.onHistoryChange.bind(t),this._createURL=t.createURL.bind(t),this._createAbsoluteURL=this._createURL,this.widgets.push(t)}else this._createURL=Ne,this._createAbsoluteURL=Ne,this._onHistoryChange=C;this.searchParameters=this.widgets.reduce(Re,this.searchParameters);var n=$()(this.client,this.searchParameters.index||this.indexName,this.searchParameters);this._searchFunction&&(this._mainHelperSearch=n.search.bind(n),n.search=function(){var t=$()({search:function(){return new Promise(C)}},n.state.index,n.state);t.once("search",(function(t){n.overrideStateWithoutTriggeringChangeEvent(t),e._mainHelperSearch()})),e._searchFunction(t)}),this.helper=n,this._init(n.state,this.helper),this.helper.on("result",this._render.bind(this,this.helper)),this.helper.on("error",(function(t){e.emit("error",t)})),this._searchStalledTimer=null,this._isSearchStalled=!0,this.helper.search(),this.helper.on("search",(function(){e._isSearchStalled||e._searchStalledTimer||(e._searchStalledTimer=setTimeout((function(){e._isSearchStalled=!0,e._render(e.helper,e.helper.lastResults,e.helper.lastResults._state)}),e._stalledSearchDelay))})),this.started=!0}},{key:"dispose",value:function(){this.removeWidgets(this.widgets),this.started=!1,this.helper.removeAllListeners(),this.helper=null}},{key:"createURL",value:function(e){if(!this._createURL)throw new Error("The `start` method needs to be called before `createURL`.");return this._createURL(this.helper.state.setQueryParameters(e))}},{key:"_render",value:function(e,t,n){var r=this;this.helper.hasPendingRequests()||(clearTimeout(this._searchStalledTimer),this._searchStalledTimer=null,this._isSearchStalled=!1),this.widgets.forEach((function(i){i.render&&i.render({templatesConfig:r.templatesConfig,results:t,state:n,helper:e,createURL:r._createAbsoluteURL,instantSearchInstance:r,searchMetadata:{isSearchStalled:r._isSearchStalled}})})),this.emit("render")}},{key:"_init",value:function(e,t){var n=this;this.widgets.forEach((function(r){r.init&&r.init({state:e,helper:t,templatesConfig:n.templatesConfig,createURL:n._createAbsoluteURL,onHistoryChange:n._onHistoryChange,instantSearchInstance:n})}))}}])&&Te(n.prototype,r),i&&Te(n,i),t}(U.a);function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(n,!0).forEach((function(t){ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ve=_({name:"configure",connector:!0});function $e(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var He=_({name:"current-refinements",connector:!0});function Ue(e){var t=e.results,n=e.state,r=e.helper,i=e.includedAttributes,o=e.excludedAttributes,a=-1!==(i||[]).indexOf("query")||-1===(o||[]).indexOf("query"),s=i?function(e){return-1!==i.indexOf(e.attributeName)}:function(e){return-1===o.indexOf(e.attributeName)};return function(e,t){return e.reduce((function(n,r){return[].concat($e(n.filter((function(e){return e.attribute!==r.attribute}))),[{attribute:r.attribute,label:r.attribute,refinements:e.filter((function(e){return e.attribute===r.attribute})).sort((function(e,t){return"numeric"===e.type?e.value-t.value:0})),refine:function(e){return We(t,e)}}])}),[])}(B(t,n,a).filter(s).map(Ye),r)}function qe(e,t){switch(t.type){case"facet":return e.removeFacetRefinement(t.attribute,t.value);case"disjunctive":return e.removeDisjunctiveFacetRefinement(t.attribute,t.value);case"hierarchical":return e.removeHierarchicalFacetRefinement(t.attribute);case"exclude":return e.removeExcludeRefinement(t.attribute,t.value);case"numeric":return e.removeNumericRefinement(t.attribute,t.operator,t.value);case"tag":return e.removeTagRefinement(t.value);case"query":return e.setQueryParameter("query","");default:throw new Error("clearRefinement: type ".concat(t.type," is not handled"))}}function We(e,t){e.setState(qe(e.state,t)).search()}function Ye(e){var t="numeric"===e.type?Number(e.name):e.name,n=e.operator?"".concat(function(e){switch(e){case">=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,r={attribute:e.attributeName,type:e.type,value:t,label:n};return void 0!==e.operator&&(r.operator=e.operator),void 0!==e.count&&(r.count=e.count),void 0!==e.exhaustive&&(r.exhaustive=e.exhaustive),r}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(n,!0).forEach((function(t){Qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Ze=_({name:"hierarchical-menu",connector:!0});function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(n,!0).forEach((function(t){nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rt=function(e){var t=e.method,n=e.results,r=e.hits,i=e.objectIDs,o=n.index,a=function(e,t){return t.map((function(t){var n=S(e,(function(e){return e.objectID===t}));if(void 0===n)throw new Error('Could not find objectID "'.concat(t,'" passed to `clickedObjectIDsAfterSearch` in the returned hits. This is necessary to infer the absolute position and the query ID.'));return n}))}(r,i),s=function(e){var t=ke(e.map((function(e){return e.__queryID})));if(t.length>1)throw new Error("Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.");var n=t[0];if("string"!=typeof n)throw new Error("Could not infer `queryID`. Ensure InstantSearch is configured with `clickAnalytics: true`");return n}(a);switch(t){case"clickedObjectIDsAfterSearch":return{index:o,queryID:s,objectIDs:i,positions:function(e){return e.map((function(e){return e.__position}))}(a)};case"convertedObjectIDsAfterSearch":return{index:o,queryID:s,objectIDs:i};default:throw new Error('Unsupported method passed to insights: "'.concat(t,'".'))}};function it(e){var t=function(e){return function(t,n){var r=t.results,i=t.hits,o=t.instantSearchInstance;if(r&&i&&o&&o.insightsClient){var a=function(e,t,n){return function(r,i){if(!Array.isArray(i.objectIDs))throw new TypeError("Expected `objectIDs` to be an array.");var o=rt({method:r,results:t,hits:n,objectIDs:i.objectIDs});e(r,tt({},o,{},i))}}(o.insightsClient,r,i);return e(tt({},t,{insights:a}),n)}return e(t,n)}};return function(n,r){return e(t(n),r)}}function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st=function(e,t,n){return e.map((function(e,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(n,!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{__position:n*t+r+1})}))};function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ut=function(e,t){return t?e.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(n,!0).forEach((function(t){lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{__queryID:t})})):e},dt=_({name:"hits",connector:!0});var ft=it((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,dt()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.escapeHTML,i=void 0===r||r,o=n.transformItems,a=void 0===o?function(e){return e}:o;return{getConfiguration:function(){return i?p:void 0},init:function(t){var r=t.instantSearchInstance;e({hits:[],results:void 0,instantSearchInstance:r,widgetParams:n},!0)},render:function(t){var r=t.results,o=t.instantSearchInstance;i&&r.hits.length>0&&(r.hits=y(r.hits));var s=r.hits.__escaped;r.hits=st(r.hits,r.page,r.hitsPerPage),r.hits=ut(r.hits,r.queryID),r.hits=a(r.hits),r.hits.__escaped=s,e({hits:r.hits,results:r,instantSearchInstance:o,widgetParams:n},!1)},dispose:function(){t()}}}}));function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(n,!0).forEach((function(t){mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var gt=_({name:"hits-per-page",connector:!0});function bt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function yt(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(n,!0).forEach((function(t){_t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ct=_({name:"infinite-hits",connector:!0}),At=it((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Ct()),function(n){var r,i,o,a=n||{},s=a.escapeHTML,c=void 0===s||s,l=a.transformItems,u=void 0===l?function(e){return e}:l,d=a.showPrevious,f=void 0!==d&&d,h=[],m=1/0,v=-1;return{getConfiguration:function(){return c?p:{}},init:function(t){var r=t.instantSearchInstance,a=t.helper;i=function(e){return function(){e.overrideStateWithoutTriggeringChangeEvent(wt({},e.state,{page:m-1})).search()}}(a),o=function(e){return function(){e.setPage(v+1).search()}}(a),m=a.state.page,v=a.state.page,e({hits:h,results:void 0,showPrevious:i,showMore:o,isFirstPage:0===m,isLastPage:!0,instantSearchInstance:r,widgetParams:n},!0)},render:function(t){var a=t.results,s=t.state,l=t.instantSearchInstance,d=s.page,f=yt(s,["page"]);D(f,r)||(h=[],m=d,v=d,r=f),c&&a.hits.length>0&&(a.hits=y(a.hits));var p=a.hits.__escaped;a.hits=st(a.hits,a.page,a.hitsPerPage),a.hits=ut(a.hits,a.queryID),a.hits=u(a.hits),a.hits.__escaped=p,v<d||!h.length?(h=[].concat(bt(h),bt(a.hits)),v=d):m>d&&(h=[].concat(bt(a.hits),bt(h)),m=d);var g=0===m,b=a.nbPages<=a.page+1;e({hits:h,results:a,showPrevious:i,showMore:o,isFirstPage:g,isLastPage:b,instantSearchInstance:l,widgetParams:n},!1)},dispose:function(){t()},getWidgetState:function(e,t){var n=t.searchParameters.page;return f&&0!==n&&n+1!==e.page?wt({},e,{page:n+1}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState;if(!f)return e;var r=n.page;return r?e.setQueryParameter("page",r-1):e.setQueryParameter("page",0)}}}}));function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(n,!0).forEach((function(t){Mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Tt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Dt=_({name:"menu",connector:!0});function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Dt()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,i=n.limit,o=void 0===i?10:i,a=n.showMore,s=void 0!==a&&a,c=n.showMoreLimit,l=void 0===c?20:c,u=n.sortBy,d=void 0===u?["isRefined","name:asc"]:u,f=n.transformItems,h=void 0===f?function(e){return e}:f;if(!r)throw new Error(Dt("The `attribute` option is required."));if(!0===s&&l<=o)throw new Error(Dt("The `showMoreLimit` option must be greater than `limit`."));return{isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this,n=e.results,r=e.instantSearchInstance;return function(){t.isShowingMore=!t.isShowingMore,t.render({results:n,instantSearchInstance:r})}},getLimit:function(){return this.isShowingMore?l:o},refine:function(e){return function(t){var n=Tt(e.getHierarchicalFacetBreadcrumb(r),1)[0];e.toggleRefinement(r,t||n).search()}},getConfiguration:function(e){var t={hierarchicalFacets:[{name:r,attributes:[r]}]},n=e.maxValuesPerFacet||0;return t.maxValuesPerFacet=Math.max(n,s?l:o),t},init:function(t){var i=t.helper,o=t.createURL,a=t.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),this._createURL=function(e){return o(i.state.toggleRefinement(r,e))},this._refine=this.refine(i),e({items:[],createURL:this._createURL,refine:this._refine,instantSearchInstance:a,canRefine:!1,widgetParams:n,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:!1},!0)},render:function(t){var i=t.results,o=t.instantSearchInstance,a=i.getFacetValues(r,{sortBy:d}).data||[],c=h(a.slice(0,this.getLimit()).map((function(e){var t=e.name,n=e.path;return St({},Et(e,["name","path"]),{label:t,value:n})})));this.toggleShowMore=this.createToggleShowMore({results:i,instantSearchInstance:o}),e({items:c,createURL:this._createURL,refine:this._refine,instantSearchInstance:o,canRefine:c.length>0,widgetParams:n,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:s&&(this.isShowingMore||a.length>this.getLimit())},!1)},dispose:function(e){var n=e.state;t();var i=n;return n.isHierarchicalFacetRefined(r)&&(i=n.removeHierarchicalFacetRefinement(r)),((i=i.removeHierarchicalFacet(r)).maxValuesPerFacet===o||l&&i.maxValuesPerFacet===l)&&i.setQueryParameters("maxValuesPerFacet",void 0),i},getWidgetState:function(e,t){var n=Tt(t.searchParameters.getHierarchicalFacetBreadcrumb(r),1)[0];return!n||e.menu&&e.menu[r]===n?e:St({},e,{menu:St({},e.menu,Mt({},r,n))})},getWidgetSearchParameters:function(e,t){var n=t.uiState;if(n.menu&&n.menu[r]){var i=n.menu[r];return e.isHierarchicalFacetRefined(r,i)?e:e.toggleRefinement(r,i)}if(e.isHierarchicalFacetRefined(r)){var o=Tt(e.getHierarchicalFacetBreadcrumb(r),1)[0];return e.toggleRefinement(r,o)}return e}}}}var Pt=function(e){return"number"==typeof e&&isFinite(e)};function It(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(n,!0).forEach((function(t){Rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lt=_({name:"numeric-menu",connector:!0});function Bt(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end&&n.start===n.end?zt(r,"=",n.start):void 0!==n.start?zt(r,">=",n.start):void 0!==n.end?zt(r,"<=",n.end):void 0===n.start&&void 0===n.end?0===Object.keys(r).length:void 0}function Ft(e,t,n,r){var i=e,o=JSON.parse(window.decodeURI(r)),a=i.getNumericRefinements(t);if(void 0===o.start&&void 0===o.end)return i.clearRefinements(t);if(Bt(i,t,o)||(i=i.clearRefinements(t)),void 0!==o.start&&void 0!==o.end){if(o.start>o.end)throw new Error("option.start should be > to option.end");if(o.start===o.end)return i=zt(a,"=",o.start)?i.removeNumericRefinement(t,"=",o.start):i.addNumericRefinement(t,"=",o.start)}return void 0!==o.start&&(i=zt(a,">=",o.start)?i.removeNumericRefinement(t,">=",o.start):i.addNumericRefinement(t,">=",o.start)),void 0!==o.end&&(i=zt(a,"<=",o.end)?i.removeNumericRefinement(t,"<=",o.end):i.addNumericRefinement(t,"<=",o.end)),i.page=0,i}function zt(e,t,n){return void 0!==e[t]&&e[t].includes(n)}function Vt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var $t=function(e){var t=e.start,n=void 0===t?0:t,r=e.end,i=e.step,o=void 0===i?1:i,a=0===o?1:o,s=Math.round((r-n)/a);return Vt(Array(s)).map((function(e,t){return(n+t)*a}))};function Ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ut=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentPage=t.currentPage,this.total=t.total,this.padding=t.padding}var t,n,r;return t=e,(n=[{key:"pages",value:function(){var e=this.total,t=this.currentPage,n=this.padding;if(0===e)return[0];var r=this.nbPagesDisplayed(n,e);if(r===e)return $t({end:e});var i=this.calculatePaddingLeft(t,n,e,r);return $t({start:t-i,end:t+(r-i)})}},{key:"nbPagesDisplayed",value:function(e,t){return Math.min(2*e+1,t)}},{key:"calculatePaddingLeft",value:function(e,t,n,r){return e<=t?e:e>=n-t?r-(n-e):t}},{key:"isLastPage",value:function(){return this.currentPage===this.total-1}},{key:"isFirstPage",value:function(){return 0===this.currentPage}}])&&Ht(t.prototype,n),r&&Ht(t,r),e}();function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(n,!0).forEach((function(t){Yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kt=_({name:"pagination",connector:!0});function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Jt=_({name:"query-rules",connector:!0});function Zt(e){return[e.disjunctiveFacetsRefinements,e.facetsRefinements,e.hierarchicalFacetsRefinements,e.numericRefinements].some((function(e){return Boolean(e&&Object.keys(e).length>0)}))}function en(e){var t=this.helper,n=this.initialRuleContexts,r=this.trackedFilters,i=this.transformRuleContexts,o=e.ruleContexts||[],a=function(e){var t=e.helper,n=e.sharedHelperState,r=e.trackedFilters;return Object.keys(r).reduce((function(e,i){var o=B(t.lastResults||{},n).filter((function(e){return e.attributeName===i})).map((function(e){return e.numericValue||e.name})),a=(0,r[i])(o);return[].concat(Xt(e),Xt(o.filter((function(e){return a.includes(e)})).map((function(e){return"ais-".concat(i,"-").concat(e).replace(/[^a-z0-9-_]+/gi,"_")}))))}),[])}({helper:t,sharedHelperState:e,trackedFilters:r}),s=[].concat(Xt(n),Xt(a));E(s.length<=10,"\nThe maximum number of `ruleContexts` is 10. They have been sliced to that limit.\nConsider using `transformRuleContexts` to minimize the number of rules sent to Algolia.\n");var c=i(s).slice(0,10);D(o,c)||t.overrideStateWithoutTriggeringChangeEvent(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(n,!0).forEach((function(t){Qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{ruleContexts:c}))}var tn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Jt()),function(n){var r=n||{},i=r.trackedFilters,o=void 0===i?{}:i,a=r.transformRuleContexts,s=void 0===a?function(e){return e}:a,c=r.transformItems,l=void 0===c?function(e){return e}:c;Object.keys(o).forEach((function(e){if("function"!=typeof o[e])throw new Error(Jt("'The \"".concat(e,'" filter value in the `trackedFilters` option expects a function.')))}));var u,d=Object.keys(o).length>0,f=[];return{init:function(t){var r=t.helper,i=t.state,a=t.instantSearchInstance;f=i.ruleContexts||[],u=en.bind({helper:r,initialRuleContexts:f,trackedFilters:o,transformRuleContexts:s}),d&&((Zt(i)||Boolean(n.transformRuleContexts))&&u(i),r.on("change",u)),e({items:[],instantSearchInstance:a,widgetParams:n},!0)},render:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t){var r=t.results,i=t.instantSearchInstance,o=r.userData,a=l(void 0===o?[]:o);e({items:a,instantSearchInstance:i,widgetParams:n},!1)})),dispose:function(e){var n=e.helper,r=e.state;return t(),d?(n.removeListener("change",u),r.setQueryParameter("ruleContexts",f)):r}}}};function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(n,!0).forEach((function(t){on(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function on(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var sn=_({name:"range-input",connector:!0},{name:"range-slider",connector:!0});function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(n,!0).forEach((function(t){un(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dn=_({name:"rating-menu",connector:!0});function fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fn(n,!0).forEach((function(t){pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var vn=_({name:"refinement-list",connector:!0});function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gn(n,!0).forEach((function(t){yn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kn=_({name:"search-box",connector:!0});function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(n,!0).forEach((function(t){Cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var An=_({name:"sort-by",connector:!0});var xn=_({name:"stats",connector:!0});var Sn=function(e){return"number"==typeof e&&e<0&&(e=String(e).replace(/^-/,"\\-")),e};function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(n,!0).forEach((function(t){Tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dn=_({name:"toggle-refinement",connector:!0});function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(n,!0).forEach((function(t){In(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function In(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jn(e){var t,n=e.searchAsYouSpeak,r=e.onQueryChange,i=e.onStateChange,o=window.webkitSpeechRecognition||window.SpeechRecognition,a=function(e){return{status:e,transcript:"",isSpeechFinal:!1,errorCode:void 0}},s=a("initial"),c=function(){return Boolean(o)},l=function(){return"askingPermission"===s.status||"waiting"===s.status||"recognizing"===s.status},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s=Pn({},s,{},e),i()},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";u(a(e))},f=function(){u({status:"waiting"})},h=function(e){u({status:"error",errorCode:e.error})},p=function(e){u({status:"recognizing",transcript:e.results[0]&&e.results[0][0]&&e.results[0][0].transcript||"",isSpeechFinal:e.results[0]&&e.results[0].isFinal}),n&&s.transcript&&r(s.transcript)},m=function(){s.errorCode||!s.transcript||n||r(s.transcript),"error"!==s.status&&u({status:"finished"})},v=function(){t&&(t.stop(),t.removeEventListener("start",f),t.removeEventListener("error",h),t.removeEventListener("result",p),t.removeEventListener("end",m),t=void 0)};return{getState:function(){return s},isBrowserSupported:c,isListening:l,toggleListening:function(){c()&&(l()?(v(),d("finished")):(t=new o)&&(d("askingPermission"),t.interimResults=!0,t.addEventListener("start",f),t.addEventListener("error",h),t.addEventListener("result",p),t.addEventListener("end",m),t.start()))},dispose:v}}function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(n,!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bn=_({name:"voice-search",connector:!0}),Fn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Bn()),function(n){var r=function(t){var r=t.isFirstRendering,i=t.instantSearchInstance,o=t.voiceSearchHelper,a=o.isBrowserSupported,s=o.isListening,c=o.toggleListening,l=o.getState;e({isBrowserSupported:a(),isListening:s(),toggleListening:c,voiceListeningState:l(),widgetParams:n,instantSearchInstance:i},r)},i=n.searchAsYouSpeak,o=void 0!==i&&i;return{init:function(e){var t,n=this,i=e.helper,a=e.instantSearchInstance;this._refine=function(e){e!==i.state.query&&(t=i.state.query,i.setQuery(e)),void 0!==t&&t!==e&&i.search()},this._voiceSearchHelper=jn({searchAsYouSpeak:o,onQueryChange:function(e){return n._refine(e)},onStateChange:function(){r({isFirstRendering:!1,instantSearchInstance:a,voiceSearchHelper:n._voiceSearchHelper})}}),r({isFirstRendering:!0,instantSearchInstance:a,voiceSearchHelper:this._voiceSearchHelper})},render:function(e){var t=e.instantSearchInstance;r({isFirstRendering:!1,instantSearchInstance:t,voiceSearchHelper:this._voiceSearchHelper})},dispose:function(e){var n=e.state;return this._voiceSearchHelper.dispose(),t(),n.setQuery("")},getWidgetState:function(e,t){var n=t.searchParameters.query;return""===n||e&&e.query===n?e:Rn({},e,{query:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQuery(n.query||"")}}}},zn=n(35),Vn=n.n(zn),$n=function(e){return new Le(e)};$n.version="3.7.0",$n.snippet=me,$n.highlight=he,Object.defineProperty($n,"widgets",{get:function(){throw new ReferenceError("\"instantsearch.widgets\" are not available from the ES build.\n\nTo import the widgets:\n\nimport { searchBox } from 'instantsearch.js/es/widgets'")}}),Object.defineProperty($n,"connectors",{get:function(){throw new ReferenceError("\"instantsearch.connectors\" are not available from the ES build.\n\nTo import the connectors:\n\nimport { connectSearchBox } from 'instantsearch.js/es/connectors'")}});var Hn=$n,Un=function(e){var t=e.name;return{props:{classNames:{type:Object,default:void 0}},methods:{suit:function(e,n){var r=function(e,t,n){if(!e)throw new Error("You need to provide `widgetName` in your data");var r=["ais-"+e];return t&&r.push("-"+t),n&&r.push("--"+n),r.join("")}(t,e,n),i=this.classNames&&this.classNames[r];return i?[r,i].join(" "):r}}}},qn=new Set;function Wn(e){qn.has(e)||(qn.add(e),console.warn(e))}var Yn=function(e){void 0===e&&(e={});var t=e.connector;return{inject:{instantSearchInstance:{name:"instantSearchInstance",default:function(){var e=this.$options._componentTag;throw new TypeError('It looks like you forgot to wrap your Algolia search component "<'+e+'>" inside of an "<ais-instant-search>" component.')}}},data:function(){return{state:null}},created:function(){if("function"==typeof t){this.factory=t(this.updateState,(function(){})),this.widget=this.factory(this.widgetParams),this.instantSearchInstance.addWidget(this.widget);var e=this.instantSearchInstance,n=e.hydrated;if(!e.started&&n||this.$isServer){if("function"!=typeof this.instantSearchInstance.__forceRender)throw new Error("You are using server side rendering with <ais-instant-search> instead of <ais-instant-search-ssr>.");this.instantSearchInstance.__forceRender(this.widget)}}else!0!==t&&Wn("You are using the InstantSearch widget mixin, but didn't provide a connector.\nWhile this is technically possible, and will give you access to the Helper,\nit's not the recommended way of making custom components.\n\nIf you want to disable this message, pass { connector: true } to the mixin.\n\nRead more on using connectors: https://alg.li/vue-custom")},beforeDestroy:function(){this.widget&&this.widget.dispose&&this.instantSearchInstance.started&&this.instantSearchInstance.removeWidget(this.widget)},watch:{widgetParams:{handler:function(e){this.state=null,this.widget.dispose&&this.instantSearchInstance.started&&this.instantSearchInstance.removeWidget(this.widget),this.widget=this.factory(e),this.instantSearchInstance.addWidget(this.widget)},deep:!0}},methods:{updateState:function(e,t){void 0===e&&(e={}),t||(this.state=e)}}}},Kn={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("p",[e._v("This widget doesn't render anything without a filled in default slot.")]),e._v(" "),n("p",[e._v("query, function to refine and results are provided.")]),e._v(" "),n("pre",[e._v("refine: Function")]),e._v(" "),n("pre",[e._v('currentRefinement: "'+e._s(e.state.currentRefinement)+'"')]),e._v(" "),n("details",[e._m(0),e._v(" "),n("pre",[e._v(e._s(e.state.indices))])])],{refine:e.state.refine,currentRefinement:e.state.currentRefinement,indices:e.state.indices})],2):e._e()},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("summary",[t("code",[this._v("indices")]),this._v(":")])}],name:"AisAutocomplete",mixins:[Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,M()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.escapeHTML,i=void 0===r||r,o=n.indices,a=void 0===o?[]:o;if(!Array.isArray(a))throw new Error(M("The `indices` option expects an array of objects."));return{getConfiguration:function(){return i?p:void 0},init:function(e){var t=this,n=e.instantSearchInstance,r=e.helper;this._refine=this.refine(r),this.indices=[{helper:r,label:"primary",index:r.getIndex(),results:void 0,hits:[]}],a.forEach((function(e){var n=e.label,i=e.value,o=r.derive((function(e){return e.setIndex(i)}));t.indices.push({label:n,index:i,helper:o,results:void 0,hits:[]}),o.on("result",(function(e){return t.saveResults({results:e,label:n})}))})),this.instantSearchInstance=n,this.renderWithAllIndices({isFirstRendering:!0})},saveResults:function(e){var t=e.results,n=e.label,r=S(this.indices,(function(e){return e.label===n}));i&&t&&t.hits&&t.hits.length>0&&(t.hits=y(t.hits)),r.results=t,r.hits=t&&t.hits&&Array.isArray(t.hits)?t.hits:[],this.renderWithAllIndices()},refine:function(e){return function(t){return e.setQuery(t).search()}},render:function(e){var t=e.results;this.saveResults({results:t,label:this.indices[0].label})},renderWithAllIndices:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.isFirstRendering,i=void 0!==r&&r,o=this.indices[0].helper.state.query;e({widgetParams:n,currentRefinement:o,indices:this.indices.map((function(e){return{index:e.index,label:e.label,hits:e.hits,results:e.results}})),instantSearchInstance:this.instantSearchInstance,refine:this._refine},i)},dispose:function(){this.indices.slice(1).forEach((function(e){return e.helper.detach()})),t()}}}}}),Un({name:"Autocomplete"})],props:{indices:{type:Array,required:!1,default:void 0},escapeHTML:{type:Boolean,required:!1,default:!0}},computed:{widgetParams:function(){return{indices:this.indices,escapeHTML:this.escapeHTML}}}},Gn=function(e){var t=e.mapStateToCanRefine;return{inject:{emitter:{from:"instantSearchPanelEmitter",default:function(){return{$emit:function(){}}}}},data:function(){return{state:null,hasAlreadyEmitted:!1}},watch:{state:function(e,n){if(n&&e){var r=t(n),i=t(e);this.hasAlreadyEmitted&&r===i||(this.emitter.$emit("PANEL_CHANGE_EVENT",i),this.hasAlreadyEmitted=!0)}}}}},Qn={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("ul",{class:e.suit("list")},[n("li",{class:[e.suit("item"),!e.state.items.length&&e.suit("item","selected")]},[Boolean(e.state.items.length)?n("a",{class:e.suit("link"),attrs:{href:e.state.createURL()},on:{click:function(t){t.preventDefault(),e.state.refine()}}},[e._t("rootLabel",[e._v("Home")])],2):n("span",[e._t("rootLabel",[e._v("Home")])],2)]),e._v(" "),e._l(e.state.items,(function(t,r){return n("li",{key:t.label,class:[e.suit("item"),e.isLastItem(r)&&e.suit("item","selected")]},[n("span",{class:e.suit("separator"),attrs:{"aria-hidden":"true"}},[e._t("separator",[e._v(">")])],2),e._v(" "),e.isLastItem(r)?n("span",[e._v(e._s(t.label))]):n("a",{class:e.suit("link"),attrs:{href:e.state.createURL(t.value)},on:{click:function(n){n.preventDefault(),e.state.refine(t.value)}}},[e._v(e._s(t.label))])])}))],2)],{items:e.state.items,canRefine:e.state.canRefine,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisBreadcrumb",mixins:[Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,P()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attributes,i=n.separator,o=void 0===i?" > ":i,a=n.rootPath,s=void 0===a?null:a,c=n.transformItems,l=void 0===c?function(e){return e}:c;if(!r||!Array.isArray(r)||0===r.length)throw new Error(P("The `attributes` option expects an array of strings."));var u=O(r,1),d=u[0];return{getConfiguration:function(e){if(e.hierarchicalFacets){var t=S(e.hierarchicalFacets,(function(e){return e.name===d}));if(t)return E(D(t.attributes,r)&&t.separator===o&&t.rootPath===s,"Using Breadcrumb and HierarchicalMenu on the same facet with different options overrides the configuration of the HierarchicalMenu."),{}}return{hierarchicalFacets:[{attributes:r,name:d,separator:o,rootPath:s}]}},init:function(t){var r=t.createURL,i=t.helper,o=t.instantSearchInstance;this._createURL=function(e){if(!e){var t=i.getHierarchicalFacetBreadcrumb(d);if(t.length>0)return r(i.state.toggleRefinement(d,t[0]))}return r(i.state.toggleRefinement(d,e))},this._refine=function(e){if(e)i.toggleRefinement(d,e).search();else{var t=i.getHierarchicalFacetBreadcrumb(d);t.length>0&&i.toggleRefinement(d,t[0]).search()}},e({createURL:this._createURL,canRefine:!1,instantSearchInstance:o,items:[],refine:this._refine,widgetParams:n},!0)},render:function(t){var r=t.instantSearchInstance,i=t.results,o=O(t.state.hierarchicalFacets,1)[0].name,a=i.getFacetValues(o),s=Array.isArray(a.data)?a.data:[],c=l(j(I(s)));e({canRefine:c.length>0,createURL:this._createURL,instantSearchInstance:r,items:c,refine:this._refine,widgetParams:n},!1)},dispose:function(){t()}}}}}),Gn({mapStateToCanRefine:function(e){return e.canRefine}}),Un({name:"Breadcrumb"})],props:{attributes:{type:Array,required:!0},separator:{type:String,default:" > "},rootPath:{type:String,default:null},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attributes:this.attributes,separator:this.separator,rootPath:this.rootPath,transformItems:this.transformItems}}},methods:{isLastItem:function(e){return this.state.items.length-1===e}}},Xn={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("button",{class:[e.suit("button"),!e.canRefine&&e.suit("button","disabled")],attrs:{type:"reset",disabled:!e.canRefine},on:{click:function(t){return t.preventDefault(),e.state.refine(t)}}},[e._t("resetLabel",[e._v("Clear refinements")])],2)],{canRefine:e.canRefine,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisClearRefinements",mixins:[Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,F()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.includedAttributes&&n.excludedAttributes)throw new Error(F("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var r=n.includedAttributes,i=void 0===r?[]:r,o=n.excludedAttributes,a=void 0===o?["query"]:o,s=n.transformItems,c=void 0===s?function(e){return e}:s;return{init:function(t){var r=t.helper,o=t.instantSearchInstance,s=t.createURL,l=z({helper:r,includedAttributes:i,excludedAttributes:a,transformItems:c}).length>0;this._refine=function(){r.setState(N({helper:r,attributesToClear:z({helper:r,includedAttributes:i,excludedAttributes:a,transformItems:c})})).search()},this._createURL=function(){return s(N({helper:r,attributesToClear:z({helper:r,includedAttributes:i,excludedAttributes:a,transformItems:c})}))},e({hasRefinements:l,refine:this._refine,createURL:this._createURL,instantSearchInstance:o,widgetParams:n},!0)},render:function(t){var r=t.helper,o=t.instantSearchInstance,s=z({helper:r,includedAttributes:i,excludedAttributes:a,transformItems:c}).length>0;e({hasRefinements:s,refine:this._refine,createURL:this._createURL,instantSearchInstance:o,widgetParams:n},!1)},dispose:function(){t()}}}}}),Gn({mapStateToCanRefine:function(e){return e.hasRefinements}}),Un({name:"ClearRefinements"})],props:{excludedAttributes:{type:Array},includedAttributes:{type:Array},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}},canRefine:function(){return this.state.hasRefinements}}},Jn={inheritAttrs:!1,name:"AisConfigure",mixins:[Un({name:"Configure"}),Yn({connector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!u(n.searchParameters))throw new Error(Ve("The `searchParameters` option expects an object."));return{getConfiguration:function(){return n.searchParameters},init:function(t){var r=t.helper;this._refine=this.refine(r),e({refine:this._refine,widgetParams:n},!0)},refine:function(e){var t=this;return function(r){var i=Re(Fe({},t.removeSearchParameters(e.state)),{getConfiguration:function(){return r}});e.setState(i).search(),n.searchParameters=r}},render:function(){e({refine:this._refine,widgetParams:n},!1)},dispose:function(e){var n=e.state;return t(),this.removeSearchParameters(n)},removeSearchParameters:function(e){return e.mutateMe((function(e){Object.keys(n.searchParameters).forEach((function(t){delete e[t]}))}))}}}}})],computed:{widgetParams:function(){return{searchParameters:this.$attrs}}},render:function(e){return this.state&&this.$scopedSlots.default?e("div",{class:this.suit()},[this.$scopedSlots.default({refine:this.state.refine,searchParameters:this.state.widgetParams.searchParameters})]):null}},Zn={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),e.noRefinement&&e.suit("","noRefinement")]},[e._t("default",[n("ul",{class:e.suit("list")},e._l(e.state.items,(function(t){return n("li",{key:t.attribute,class:e.suit("item")},[e._t("item",[n("span",{class:e.suit("label")},[e._v(e._s(e._f("capitalize")(t.label))+": ")]),e._v(" "),e._l(t.refinements,(function(r){return n("span",{key:e.createItemKey(r),class:e.suit("category")},[e._t("refinement",[n("span",{class:e.suit("categoryLabel")},["query"===r.attribute?n("q",[e._v(e._s(r.label))]):[e._v(" "+e._s(r.label)+" ")]],2),e._v(" "),n("button",{class:e.suit("delete"),on:{click:function(e){t.refine(r)}}},[e._v(" ✕ ")])],{refine:t.refine,refinement:r,createURL:e.state.createURL})],2)}))],{refine:t.refine,item:t,createURL:e.state.createURL})],2)})))],{refine:e.state.refine,items:e.state.items,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisCurrentRefinements",mixins:[Un({name:"CurrentRefinements"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,He()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.includedAttributes&&n.excludedAttributes)throw new Error(He("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var r=n.includedAttributes,i=n.excludedAttributes,o=void 0===i?["query"]:i,a=n.transformItems,s=void 0===a?function(e){return e}:a;return{init:function(t){var i=t.helper,a=t.createURL,c=t.instantSearchInstance,l=s(Ue({results:{},state:i.state,helper:i,includedAttributes:r,excludedAttributes:o}));e({items:l,refine:function(e){return We(i,e)},createURL:function(e){return a(qe(i.state,e))},instantSearchInstance:c,widgetParams:n},!0)},render:function(t){var i=t.results,a=t.helper,c=t.state,l=t.createURL,u=t.instantSearchInstance,d=s(Ue({results:i,state:c,helper:a,includedAttributes:r,excludedAttributes:o}));e({items:d,refine:function(e){return We(a,e)},createURL:function(e){return l(qe(a.state,e))},instantSearchInstance:u,widgetParams:n},!1)},dispose:function(){t()}}}}}),Gn({mapStateToCanRefine:function(e){return e.items.length>0}})],props:{includedAttributes:{type:Array},excludedAttributes:{type:Array},transformItems:{type:Function,default:function(e){return e}}},computed:{noRefinement:function(){return this.state&&0===this.state.items.length},widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}}},methods:{createItemKey:function(e){var t=e.attribute,n=e.value;return[t,e.type,n,e.operator].join(":")}},filters:{capitalize:function(e){return e?e.toString().charAt(0).toLocaleUpperCase()+e.toString().slice(1):""}}},er={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{class:[e.suit("list"),e.level>0&&e.suit("list","child"),e.suit("list","lvl"+e.level)]},e._l(e.items,(function(t){return n("li",{key:t.value,class:[e.suit("item"),t.data&&e.suit("item","parent"),t.isRefined&&e.suit("item","selected")]},[n("a",{class:e.suit("link"),attrs:{href:e.createURL(t.value)},on:{click:function(n){n.preventDefault(),e.refine(t.value)}}},[n("span",{class:e.suit("label")},[e._v(e._s(t.label))]),e._v(" "),n("span",{class:e.suit("count")},[e._v(e._s(t.count))])]),e._v(" "),t.data?n("hierarchical-menu-list",{attrs:{items:t.data,level:e.level+1,refine:e.refine,createURL:e.createURL,suit:e.suit}}):e._e()],1)})))},staticRenderFns:[],name:"HierarchicalMenuList",props:{items:{type:Array,required:!0},level:{type:Number,required:!0},refine:{type:Function,required:!0},createURL:{type:Function,required:!0},suit:{type:Function,required:!0}}},tr=function(e){return e.items.length>0},nr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("hierarchical-menu-list",{attrs:{items:e.state.items,level:0,refine:e.state.refine,createURL:e.state.createURL,suit:e.suit}}),e._v(" "),e.showMore?n("button",{class:[e.suit("showMore"),!e.state.canToggleShowMore&&e.suit("showMore","disabled")],attrs:{disabled:!e.state.canToggleShowMore},on:{click:function(t){return t.preventDefault(),e.state.toggleShowMore(t)}}},[e._t("showMoreLabel",[e._v(e._s(e.state.isShowingMore?"Show less":"Show more"))],{isShowingMore:e.state.isShowingMore})],2):e._e()],{items:e.state.items,canRefine:e.canRefine,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,refine:e.state.refine,createURL:e.state.createURL,toggleShowMore:e.state.toggleShowMore})],2):e._e()},staticRenderFns:[],name:"AisHierarchicalMenu",mixins:[Un({name:"HierarchicalMenu"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Ze()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attributes,i=n.separator,o=void 0===i?" > ":i,a=n.rootPath,s=void 0===a?null:a,c=n.showParentLevel,l=void 0===c||c,u=n.limit,d=void 0===u?10:u,f=n.showMore,h=void 0!==f&&f,p=n.showMoreLimit,m=void 0===p?20:p,v=n.sortBy,g=void 0===v?["name:asc"]:v,b=n.transformItems,y=void 0===b?function(e){return e}:b;if(!r||!Array.isArray(r)||0===r.length)throw new Error(Ze("The `attributes` option expects an array of strings."));if(!0===h&&m<=d)throw new Error(Ze("The `showMoreLimit` option must be greater than `limit`."));var k=Je(r,1),w=k[0];return{isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this;return function(){t.isShowingMore=!t.isShowingMore,t.render(e)}},getLimit:function(){return this.isShowingMore?m:d},getConfiguration:function(e){if(e.hierarchicalFacets){var t=S(e.hierarchicalFacets,(function(e){return e.name===w})),n=t&&D(t.attributes,r),i=t&&t.separator===o,a=t&&t.rootPath===s;if(t&&!(n&&i&&a))return E(!1,"Using Breadcrumb and HierarchicalMenu on the same facet with different options overrides the configuration of the HierarchicalMenu."),{}}var c={hierarchicalFacets:[{name:w,attributes:r,separator:o,rootPath:s,showParentLevel:l}]},u=e.maxValuesPerFacet||0;return c.maxValuesPerFacet=Math.max(u,h?m:d),c},init:function(t){var r=t.helper,i=t.createURL,o=t.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),this._refine=function(e){r.toggleRefinement(w,e).search()},e({items:[],createURL:function(e){return i(r.state.toggleRefinement(w,e))},refine:this._refine,instantSearchInstance:o,widgetParams:n,isShowingMore:!1,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:!1},!0)},_prepareFacetValues:function(e,t){var n=this;return e.slice(0,this.getLimit()).map((function(e){var r=e.name,i=e.path,o=Xe(e,["name","path"]);return Array.isArray(o.data)&&(o.data=n._prepareFacetValues(o.data,t)),Ge({},o,{label:r,value:i})}))},render:function(t){var r=t.results,i=t.state,o=t.createURL,a=t.instantSearchInstance,s=r.getFacetValues(w,{sortBy:g}).data||[],c=y(this._prepareFacetValues(s),i);var l=i.getQueryParameter("maxValuesPerFacet"),u=this.getLimit(),d=l>u?s.length<=u:s.length<u;this.toggleShowMore=this.createToggleShowMore(t),e({items:c,refine:this._refine,createURL:function(e){return o(i.toggleRefinement(w,e))},instantSearchInstance:a,widgetParams:n,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:h&&(this.isShowingMore||!d)},!1)},dispose:function(e){var n=e.state;t();var r=n;return n.isHierarchicalFacetRefined(w)&&(r=n.removeHierarchicalFacetRefinement(w)),(r=r.removeHierarchicalFacet(w)).maxValuesPerFacet===d&&r.setQueryParameters("maxValuesPerFacet",void 0),r},getWidgetState:function(e,t){var n=t.searchParameters.getHierarchicalFacetBreadcrumb(w);return n&&0!==n.length?e.hierarchicalMenu&&D(n,e.hierarchicalMenu[w])?e:Ge({},e,{hierarchicalMenu:Ge({},e.hierarchicalMenu,Qe({},w,n))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState;return n.hierarchicalMenu&&n.hierarchicalMenu[w]?e.clearRefinements(w).toggleRefinement(w,n.hierarchicalMenu[w].join(o)):e}}}}}),Gn({mapStateToCanRefine:tr})],components:{HierarchicalMenuList:er},props:{attributes:{type:Array,required:!0},limit:{type:Number,default:10},showMoreLimit:{type:Number,default:20},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:function(){return["name:asc"]}},separator:{type:String,default:" > "},rootPath:{type:String,default:null},showParentLevel:{type:Boolean,default:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attributes:this.attributes,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,separator:this.separator,rootPath:this.rootPath,showParentLevel:this.showParentLevel,sortBy:this.sortBy,transformItems:this.transformItems}},canRefine:function(){return tr(this.state)}}},rr={render:function(){var e=this.$createElement;return(this._self._c||e)("span",{class:this.suit(),domProps:{innerHTML:this._s(this.innerHTML)}})},staticRenderFns:[],name:"AisHighlight",mixins:[Un({name:"Highlight"})],props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}},computed:{innerHTML:function(){return Hn.highlight({attribute:this.attribute,hit:this.hit,highlightedTagName:this.highlightedTagName})}}},ir={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("ol",{class:e.suit("list")},e._l(e.items,(function(t,r){return n("li",{key:t.objectID,class:e.suit("item")},[e._t("item",[e._v("objectID: "+e._s(t.objectID)+", index: "+e._s(r))],{item:t,index:r,insights:e.state.insights})],2)})))],{items:e.items,insights:e.state.insights})],2):e._e()},staticRenderFns:[],name:"AisHits",mixins:[Yn({connector:ft}),Un({name:"Hits"})],props:{escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{items:function(){return this.state.hits},widgetParams:function(){return{escapeHTML:this.escapeHTML,transformItems:this.transformItems}}}},or={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],class:e.suit("select"),on:{change:[function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.selected=t.target.multiple?n:n[0]},e.handleChange]}},e._l(e.state.items,(function(t){return n("option",{key:t.value,class:e.suit("option"),domProps:{value:t.value}},[e._v(e._s(t.label))])})))],{items:e.state.items,refine:e.state.refine,hasNoResults:e.state.hasNoResults})],2):e._e()},staticRenderFns:[],name:"AisHitsPerPage",mixins:[Un({name:"HitsPerPage"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,gt()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.items,i=n.transformItems,o=void 0===i?function(e){return e}:i,a=r;if(!Array.isArray(a))throw new Error(gt("The `items` option expects an array of objects."));var s=a.filter((function(e){return e.default}));if(s.length>1)throw new Error(gt("More than one default value is specified in `items`."));var c=S(r,(function(e){return!0===e.default}));return{getConfiguration:function(){return s.length>0?{hitsPerPage:s[0].value}:{}},init:function(t){var r=t.helper,i=t.createURL,s=t.state,c=t.instantSearchInstance;a.some((function(e){return Number(s.hitsPerPage)===Number(e.value)}))||(E(void 0!==s.hitsPerPage,"\n`hitsPerPage` is not defined.\nThe option `hitsPerPage` needs to be set using the `configure` widget.\n\nLearn more: https://community.algolia.com/instantsearch.js/v2/widgets/configure.html\n "),E(!1,'\nThe `items` option of `hitsPerPage` does not contain the "hits per page" value coming from the state: '.concat(s.hitsPerPage,".\n\nYou may want to add another entry to the `items` option with this value.")),a=[{value:"",label:""}].concat(vt(a))),this.setHitsPerPage=function(e){return e||0===e?r.setQueryParameter("hitsPerPage",e).search():r.setQueryParameter("hitsPerPage",void 0).search()},this.createURL=function(e){return function(t){return i(e.setQueryParameter("hitsPerPage",t||0===t?t:void 0))}},e({items:o(this._normalizeItems(s)),refine:this.setHitsPerPage,createURL:this.createURL(r.state),hasNoResults:!0,widgetParams:n,instantSearchInstance:c},!0)},render:function(t){var r=t.state,i=t.results,a=t.instantSearchInstance,s=0===i.nbHits;e({items:o(this._normalizeItems(r)),refine:this.setHitsPerPage,createURL:this.createURL(r),hasNoResults:s,widgetParams:n,instantSearchInstance:a},!1)},_normalizeItems:function(e){var t=e.hitsPerPage;return a.map((function(e){return pt({},e,{isRefined:Number(e.value)===Number(t)})}))},dispose:function(){t()},getWidgetState:function(e,t){var n=t.searchParameters.hitsPerPage;return c&&n===c.value||void 0===n||e.hitsPerPage===n?e:pt({},e,{hitsPerPage:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return n.hitsPerPage?e.setQueryParameter("hitsPerPage",n.hitsPerPage):c?e.setQueryParameter("hitsPerPage",c.value):e.setQueryParameter("hitsPerPage",void 0)}}}}}),Gn({mapStateToCanRefine:function(e){return!e.hasNoResults}})],props:{items:{type:Array,required:!0,default:function(){return[]}},transformItems:{type:Function,default:function(e){return e}}},data:function(){return{selected:this.items.find((function(e){return!0===e.default})).value}},computed:{widgetParams:function(){return{items:this.items,transformItems:this.transformItems}}},methods:{handleChange:function(){this.state.refine(this.selected)}}};function ar(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),i.forEach((function(t){sr(e,t,r[t])}))}return e}function sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cr=function(e){return ar({mixins:[Un({name:"InstantSearch"})],provide:function(){return{instantSearchInstance:this.instantSearchInstance}},watch:{searchClient:function(e){this.instantSearchInstance.helper.setClient(e).search()},indexName:function(e){this.instantSearchInstance.helper.setIndex(e).search()},stalledSearchDelay:function(e){this.instantSearchInstance._stalledSearchDelay=e},routing:function(){throw new Error("routing configuration can not be changed dynamically at this point.\n\nPlease open a new issue: https://github.com/algolia/vue-instantsearch/issues/new?template=feature.md")},searchFunction:function(e){this.instantSearchInstance._searchFunction=e}},created:function(){var e=this.instantSearchInstance.client;"function"==typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("Vue ("+Vn.a.version+")"),e.addAlgoliaAgent("Vue InstantSearch (2.7.0)"))},mounted:function(){var e=this;this.$nextTick((function(){e.instantSearchInstance.started||e.instantSearchInstance.start()}))},beforeDestroy:function(){this.instantSearchInstance.started&&(this.instantSearchInstance.dispose(),this.instantSearchInstance.started=!1,this.instantSearchInstance.helper=null),this.instantSearchInstance.hydrated=!1}},e)},lr="Vue InstantSearch: You used the prop api-key or app-id.\nThese have been replaced by search-client.\n\nSee more info here: https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-search-client",ur=cr({name:"AisInstantSearch",props:{searchClient:{type:Object,required:!0},insightsClient:{type:Function,required:!1},indexName:{type:String,required:!0},routing:{default:null,validator:function(e){return!("boolean"==typeof e||!e.router||!e.stateMapping)||(Wn("routing should be an object, with `router` and `stateMapping`. See https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-routing"),!1)}},stalledSearchDelay:{type:Number,default:200},searchFunction:{type:Function,default:null},apiKey:{type:String,default:null,validator:function(e){return e&&Wn(lr),!1}},appId:{type:String,default:null,validator:function(e){return e&&Wn(lr),!1}}},data:function(){return{instantSearchInstance:Hn({searchClient:this.searchClient,insightsClient:this.insightsClient,indexName:this.indexName,routing:this.routing,stalledSearchDelay:this.stalledSearchDelay,searchFunction:this.searchFunction})}},render:function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!1,t)},this.$slots.default)}}),dr=cr({name:"AisInstantSearchSsr",inject:{$_ais:{default:function(){throw new Error("`rootMixin` is required when using SSR.")}}},data:function(){return{instantSearchInstance:this.$_ais}},render:function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!0,t)},this.$slots.default)}}),fr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e.showPrevious?e._t("loadPrevious",[n("button",{class:[e.suit("loadPrevious"),e.state.isFirstPage&&e.suit("loadPrevious","disabled")],attrs:{disabled:e.state.isFirstPage},on:{click:function(t){e.refinePrevious()}}},[e._v("Show previous results")])],{refinePrevious:e.refinePrevious,page:e.state.results.page,isFirstPage:e.state.isFirstPage}):e._e(),e._v(" "),e._t("default",[n("ol",{class:e.suit("list")},e._l(e.items,(function(t,r){return n("li",{key:t.objectID,class:e.suit("item")},[e._t("item",[e._v("objectID: "+e._s(t.objectID)+", index: "+e._s(r))],{item:t,index:r,insights:e.state.insights})],2)}))),e._v(" "),e._t("loadMore",[n("button",{class:[e.suit("loadMore"),e.state.isLastPage&&e.suit("loadMore","disabled")],attrs:{disabled:e.state.isLastPage},on:{click:function(t){e.refineNext()}}},[e._v("Show more results")])],{refineNext:e.refineNext,refine:e.refineNext,page:e.state.results.page,isLastPage:e.state.isLastPage})],{items:e.items,results:e.state.results,isLastPage:e.state.isLastPage,refinePrevious:e.refinePrevious,refineNext:e.refineNext,refine:e.refineNext,insights:e.state.insights})],2):e._e()},staticRenderFns:[],name:"AisInfiniteHits",mixins:[Yn({connector:At}),Un({name:"InfiniteHits"})],props:{showPrevious:{type:Boolean,default:!1},escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{showPrevious:this.showPrevious,escapeHTML:this.escapeHTML,transformItems:this.transformItems}},items:function(){return this.state.hits}},methods:{refinePrevious:function(){this.state.showPrevious()},refineNext:function(){this.state.showMore()}}},hr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("ul",{class:e.suit("list")},e._l(e.state.items,(function(t){return n("li",{key:t.value,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[n("a",{class:e.suit("link"),attrs:{href:e.state.createURL(t.value)},on:{click:function(n){n.preventDefault(),e.state.refine(t.value)}}},[n("span",{class:e.suit("label")},[e._v(e._s(t.label))]),e._v(" "),n("span",{class:e.suit("count")},[e._v(e._s(t.count))])])])}))),e._v(" "),e.showShowMoreButton?n("button",{class:[e.suit("showMore"),!e.state.canToggleShowMore&&e.suit("showMore","disabled")],attrs:{disabled:!e.state.canToggleShowMore},on:{click:function(t){t.preventDefault(),e.state.toggleShowMore()}}},[e._t("showMoreLabel",[e._v(e._s(e.state.isShowingMore?"Show less":"Show more"))],{isShowingMore:e.state.isShowingMore})],2):e._e()],{items:e.state.items,canRefine:e.state.canRefine,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,refine:e.state.refine,createURL:e.state.createURL,toggleShowMore:e.state.toggleShowMore})],2):e._e()},staticRenderFns:[],name:"AisMenu",mixins:[Un({name:"Menu"}),Yn({connector:Ot}),Gn({mapStateToCanRefine:function(e){return e.canRefine}})],props:{attribute:{type:String,required:!0},limit:{type:Number,default:10},showMoreLimit:{type:Number,default:20},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:function(){return["count:desc","name:asc"]}},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,transformItems:this.transformItems}},showShowMoreButton:function(){return this.state.canRefine&&this.showMore}}},pr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("select",{class:e.suit("select"),on:{change:function(t){e.refine(t.currentTarget.value)}}},[n("option",{class:e.suit("option"),attrs:{value:""}},[e._t("defaultOption",[e._v("See all")])],2),e._v(" "),e._l(e.state.items,(function(t){return n("option",{key:t.value,class:e.suit("option"),domProps:{value:t.value,selected:t.isRefined}},[e._t("item",[e._v(e._s(t.label)+" ("+e._s(t.count)+")")],{item:t})],2)}))],2)],{items:e.state.items,canRefine:e.state.canRefine,refine:e.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisMenuSelect",mixins:[Un({name:"MenuSelect"}),Yn({connector:Ot}),Gn({mapStateToCanRefine:function(e){return e.canRefine}})],props:{attribute:{type:String,required:!0},limit:{type:Number,default:10},sortBy:{type:[Array,Function],default:function(){return["name:asc"]}},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,sortBy:this.sortBy,transformItems:this.transformItems}}},methods:{refine:function(e){this.state.refine(e)}}},mr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("ul",{class:[e.suit("list")]},e._l(e.state.items,(function(t){return n("li",{key:t.label,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[n("label",{class:e.suit("label")},[n("input",{class:e.suit("radio"),attrs:{type:"radio",name:e.attribute},domProps:{value:t.value,checked:t.isRefined},on:{change:function(t){e.state.refine(t.target.value)}}}),e._v(" "),n("span",{class:e.suit("labelText")},[e._v(e._s(t.label))])])])})))],{items:e.state.items,canRefine:e.canRefine,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisNumericMenu",mixins:[Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Lt()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,i=n.items,o=n.transformItems,a=void 0===o?function(e){return e}:o;if(!r)throw new Error(Lt("The `attribute` option is required."));if(!i)throw new Error(Lt("The `items` option expects an array of objects."));return{init:function(t){var o=t.helper,s=t.createURL,c=t.instantSearchInstance;this._refine=function(e){var t=Ft(o.state,r,i,e);o.setState(t).search()},this._createURL=function(e){return function(t){return s(Ft(e,r,i,t))}},this._prepareItems=function(e){return i.map((function(t){var n=t.start,i=t.end;return{label:t.label,value:window.encodeURI(JSON.stringify({start:n,end:i})),isRefined:Bt(e,r,{start:n,end:i})}}))},e({createURL:this._createURL(o.state),items:a(this._prepareItems(o.state)),hasNoResults:!0,refine:this._refine,instantSearchInstance:c,widgetParams:n},!0)},render:function(t){var r=t.results,i=t.state,o=t.instantSearchInstance;e({createURL:this._createURL(i),items:a(this._prepareItems(i)),hasNoResults:0===r.nbHits,refine:this._refine,instantSearchInstance:o,widgetParams:n},!1)},dispose:function(e){var n=e.state;return t(),n.clearRefinements(r)},getWidgetState:function(e,t){var n=t.searchParameters.getNumericRefinements(r),i=n["="]&&n["="][0];if(i||0===i)return Nt({},e,{numericMenu:Nt({},e.numericMenu,Rt({},r,"".concat(n["="])))});var o=n[">="]&&n[">="][0]||"",a=n["<="]&&n["<="][0]||"";return""!==o||""!==a?e.numericMenu&&e.numericMenu[r]==="".concat(o,":").concat(a)?e:Nt({},e,{numericMenu:Nt({},e.numericMenu,Rt({},r,"".concat(o,":").concat(a)))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,i=e.clearRefinements(r),o=n.numericMenu&&n.numericMenu[r];if(!o)return i;var a=-1===o.indexOf(":")&&o;if(a)return i.addNumericRefinement(r,"=",a);var s=It(o.split(":").map(parseFloat),2),c=s[0],l=s[1];return Pt(c)&&(i=i.addNumericRefinement(r,">=",c)),Pt(l)&&(i=i.addNumericRefinement(r,"<=",l)),i}}}}}),Un({name:"NumericMenu"}),Gn({mapStateToCanRefine:function(e){return!e.hasNoResults}})],props:{attribute:{type:String,required:!0},items:{type:Array,required:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attribute:this.attribute,transformItems:this.transformItems,items:this.items}},canRefine:function(){return!this.state.hasNoResults}}},vr={render:function(){var e,t,n,r,i=this,o=i.$createElement,a=i._self._c||o;return i.state?a("div",{class:i.suit()},[i._t("default",[a("ul",{class:i.suit("list")},[i.showFirst?a("li",{class:(e={},e[i.suit("item")]=!0,e[i.suit("item","firstPage")]=!0,e[i.suit("item","disabled")]=i.state.isFirstPage,e)},[i._t("first",[i.state.isFirstPage?[a("span",{class:i.suit("link"),attrs:{"aria-label":"First"}},[i._v("‹‹")])]:[a("a",{class:i.suit("link"),attrs:{"aria-label":"First",href:i.state.createURL(0)},on:{click:function(e){e.preventDefault(),i.refine(0)}}},[i._v("‹‹")])]],{createURL:function(){return i.state.createURL(0)},isFirstPage:i.state.isFirstPage,refine:function(){return i.refine(0)}})],2):i._e(),i._v(" "),i.showPrevious?a("li",{class:(t={},t[i.suit("item")]=!0,t[i.suit("item","previousPage")]=!0,t[i.suit("item","disabled")]=i.state.isFirstPage,t)},[i._t("previous",[i.state.isFirstPage?[a("span",{class:i.suit("link"),attrs:{"aria-label":"Previous"}},[i._v("‹")])]:[a("a",{class:i.suit("link"),attrs:{"aria-label":"Previous",href:i.state.createURL(i.state.currentRefinement-1)},on:{click:function(e){e.preventDefault(),i.refine(i.state.currentRefinement-1)}}},[i._v("‹")])]],{createURL:function(){return i.state.createURL(i.state.currentRefinement-1)},isFirstPage:i.state.isFirstPage,refine:function(){return i.refine(i.state.currentRefinement-1)}})],2):i._e(),i._v(" "),i._l(i.state.pages,(function(e){var t;return a("li",{key:e,class:(t={},t[i.suit("item")]=!0,t[i.suit("item","selected")]=i.state.currentRefinement===e,t)},[i._t("item",[a("a",{class:i.suit("link"),attrs:{href:i.state.createURL(e)},on:{click:function(t){t.preventDefault(),i.refine(e)}}},[i._v(i._s(e+1))])],{page:e,createURL:function(){return i.state.createURL(e)},isFirstPage:i.state.isFirstPage,isLastPage:i.state.isLastPage,refine:function(){return i.refine(e)}})],2)})),i._v(" "),i.showNext?a("li",{class:(n={},n[i.suit("item")]=!0,n[i.suit("item","nextPage")]=!0,n[i.suit("item","disabled")]=i.state.isLastPage,n)},[i._t("next",[i.state.isLastPage?[a("span",{class:i.suit("link"),attrs:{"aria-label":"Next"}},[i._v("›")])]:[a("a",{class:i.suit("link"),attrs:{"aria-label":"Next",href:i.state.createURL(i.state.currentRefinement+1)},on:{click:function(e){e.preventDefault(),i.refine(i.state.currentRefinement+1)}}},[i._v("›")])]],{createURL:function(){return i.state.createURL(i.state.currentRefinement+1)},isLastPage:i.state.isLastPage,refine:function(){return i.refine(i.state.currentRefinement+1)}})],2):i._e(),i._v(" "),i.showLast?a("li",{class:(r={},r[i.suit("item")]=!0,r[i.suit("item","lastPage")]=!0,r[i.suit("item","disabled")]=i.state.isLastPage,r)},[i._t("last",[i.state.isLastPage?[a("span",{class:i.suit("link"),attrs:{"aria-label":"Last"}},[i._v("››")])]:[a("a",{class:i.suit("link"),attrs:{"aria-label":"Last",href:i.state.createURL(i.state.nbPages-1)},on:{click:function(e){e.preventDefault(),i.refine(i.state.nbPages-1)}}},[i._v("››")])]],{createURL:function(){return i.state.createURL(i.state.nbPages-1)},isLastPage:i.state.isLastPage,refine:function(){return i.refine(i.state.nbPages-1)}})],2):i._e()],2)],{refine:i.refine,createURL:i.state.createURL,currentRefinement:i.state.currentRefinement,nbHits:i.state.nbHits,nbPages:i.state.nbPages,pages:i.state.pages,isFirstPage:i.state.isFirstPage,isLastPage:i.state.isLastPage})],2):i._e()},staticRenderFns:[],name:"AisPagination",mixins:[Un({name:"Pagination"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Kt()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.totalPages,i=n.padding,o=void 0===i?3:i,a=new Ut({currentPage:0,total:0,padding:o});return{init:function(t){var r=t.helper,i=t.createURL,o=t.instantSearchInstance;this.refine=function(e){r.setPage(e),r.search()},this.createURL=function(e){return function(t){return i(e.setPage(t))}},e({createURL:this.createURL(r.state),currentRefinement:r.getPage()||0,nbHits:0,nbPages:0,pages:[],isFirstPage:!0,isLastPage:!0,refine:this.refine,widgetParams:n,instantSearchInstance:o},!0)},getMaxPage:function(e){var t=e.nbPages;return void 0!==r?Math.min(r,t):t},render:function(t){var r=t.results,i=t.state,o=t.instantSearchInstance,s=this.getMaxPage(r);a.currentPage=i.page,a.total=s,e({createURL:this.createURL(i),currentRefinement:i.page,refine:this.refine,nbHits:r.nbHits,nbPages:s,pages:a.pages(),isFirstPage:a.isFirstPage(),isLastPage:a.isLastPage(),widgetParams:n,instantSearchInstance:o},!1)},dispose:function(){t()},getWidgetState:function(e,t){var n=t.searchParameters.page;return 0===n||n+1===e.page?e:Wt({},e,{page:n+1})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return n.page?e.setQueryParameter("page",n.page-1):e.setQueryParameter("page",0)}}}}}),Gn({mapStateToCanRefine:function(e){return e.nbPages>1}})],props:{padding:{type:Number,default:3,validator:function(e){return e>0}},totalPages:{type:Number,default:void 0,validator:function(e){return e>0}},showFirst:{type:Boolean,default:!0},showLast:{type:Boolean,default:!0},showNext:{type:Boolean,default:!0},showPrevious:{type:Boolean,default:!0}},computed:{widgetParams:function(){return{padding:this.padding,totalPages:this.totalPages}}},methods:{refine:function(e){var t=Math.min(Math.max(e,0),this.state.nbPages-1);this.state.refine(t),this.$emit("page-change",t)}}},gr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e.$slots.header||e.$scopedSlots.header?n("div",{class:e.suit("header")},[e._t("header",null,{hasRefinements:e.canRefine})],2):e._e(),e._v(" "),n("div",{class:e.suit("body")},[e._t("default",null,{hasRefinements:e.canRefine})],2),e._v(" "),e.$slots.footer||e.$scopedSlots.footer?n("div",{class:e.suit("footer")},[e._t("footer",null,{hasRefinements:e.canRefine})],2):e._e()])},staticRenderFns:[],name:"AisPanel",mixins:[Un({name:"Panel"}),{props:{emitter:{type:Object,required:!1,default:function(){return new Vn.a({name:"PanelProvider"})}}},provide:function(){var e;return(e={}).instantSearchPanelEmitter=this.emitter,e},data:function(){return{canRefine:!0}},created:function(){var e=this;this.emitter.$on("PANEL_CHANGE_EVENT",(function(t){e.updateCanRefine(t)}))},beforeDestroy:function(){this.emitter.$destroy()},methods:{updateCanRefine:function(e){this.canRefine=e}}}]},br={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.suit()},[n("a",{class:e.suit("link"),attrs:{href:e.algoliaUrl,target:"_blank",rel:"noopener","aria-label":"search by Algolia"}},[n("svg",{class:[e.suit("logo"),e.suit("",e.theme)],staticStyle:{height:"1.2em",width:"auto"},attrs:{viewBox:"0 0 168 24"}},[n("path",{attrs:{fill:"dark"===e.theme?"#FFF":"#5D6494",d:"M6.97 6.68V8.3a4.47 4.47 0 0 0-2.42-.67 2.2 2.2 0 0 0-1.38.4c-.34.26-.5.6-.5 1.02 0 .43.16.77.49 1.03.33.25.83.53 1.51.83a7.04 7.04 0 0 1 1.9 1.08c.34.24.58.54.73.89.15.34.23.74.23 1.18 0 .95-.33 1.7-1 2.24a4 4 0 0 1-2.6.81 5.71 5.71 0 0 1-2.94-.68v-1.71c.84.63 1.81.94 2.92.94.58 0 1.05-.14 1.39-.4.34-.28.5-.65.5-1.13 0-.29-.1-.55-.3-.8a2.2 2.2 0 0 0-.65-.53 23.03 23.03 0 0 0-1.64-.78 13.67 13.67 0 0 1-1.11-.64c-.12-.1-.28-.22-.46-.4a1.72 1.72 0 0 1-.39-.5 4.46 4.46 0 0 1-.22-.6c-.07-.23-.1-.48-.1-.75 0-.91.33-1.63 1-2.17a4 4 0 0 1 2.57-.8c.97 0 1.8.18 2.47.52zm7.47 5.7v-.3a2.26 2.26 0 0 0-.5-1.44c-.3-.35-.74-.53-1.32-.53-.53 0-.99.2-1.37.58-.38.39-.62.95-.72 1.68h3.91zm1 2.79v1.4c-.6.34-1.38.51-2.36.51a4.02 4.02 0 0 1-3-1.13 4.04 4.04 0 0 1-1.11-2.97c0-1.3.34-2.32 1.02-3.06a3.38 3.38 0 0 1 2.6-1.1c1.03 0 1.85.32 2.46.96.6.64.9 1.57.9 2.78 0 .33-.03.68-.09 1.04h-5.31c.1.7.4 1.24.89 1.61.49.38 1.1.56 1.85.56.86 0 1.58-.2 2.15-.6zm6.61-1.78h-1.21c-.6 0-1.05.12-1.35.36-.3.23-.46.53-.46.89 0 .37.12.66.36.88.23.2.57.32 1.02.32.5 0 .9-.15 1.2-.43.3-.28.44-.65.44-1.1v-.92zm-4.07-2.55V9.33a4.96 4.96 0 0 1 2.5-.55c2.1 0 3.17 1.03 3.17 3.08V17H22.1v-.96c-.42.68-1.15 1.02-2.19 1.02-.76 0-1.38-.22-1.84-.66-.46-.44-.7-1-.7-1.68 0-.78.3-1.38.88-1.81.59-.43 1.4-.65 2.46-.65h1.34v-.46c0-.55-.13-.97-.4-1.25-.26-.29-.7-.43-1.32-.43-.86 0-1.65.24-2.35.72zm9.34-1.93v1.42c.39-1 1.1-1.5 2.12-1.5.15 0 .31.02.5.05v1.53c-.23-.1-.48-.14-.76-.14-.54 0-.99.24-1.34.71a2.8 2.8 0 0 0-.52 1.71V17h-1.57V8.91h1.57zm5 4.09a3 3 0 0 0 .76 2.01c.47.53 1.14.8 2 .8.64 0 1.24-.18 1.8-.53v1.4c-.53.32-1.2.48-2 .48a3.98 3.98 0 0 1-4.17-4.18c0-1.16.38-2.15 1.14-2.98a4 4 0 0 1 3.1-1.23c.7 0 1.34.15 1.92.44v1.44a3.24 3.24 0 0 0-1.77-.5A2.65 2.65 0 0 0 32.33 13zm7.92-7.28v4.58c.46-1 1.3-1.5 2.5-1.5.8 0 1.42.24 1.9.73.48.5.72 1.17.72 2.05V17H43.8v-5.1c0-.56-.14-.99-.43-1.29-.28-.3-.65-.45-1.1-.45-.54 0-1 .2-1.42.6-.4.4-.61 1.02-.61 1.85V17h-1.56V5.72h1.56zM55.2 15.74c.6 0 1.1-.25 1.5-.76.4-.5.6-1.16.6-1.95 0-.92-.2-1.62-.6-2.12-.4-.5-.92-.74-1.55-.74-.56 0-1.05.22-1.5.67-.44.45-.66 1.13-.66 2.06 0 .96.22 1.67.64 2.14.43.47.95.7 1.57.7zM53 5.72v4.42a2.74 2.74 0 0 1 2.43-1.34c1.03 0 1.86.38 2.51 1.15.65.76.97 1.78.97 3.05 0 1.13-.3 2.1-.92 2.9-.62.81-1.47 1.21-2.54 1.21s-1.9-.45-2.46-1.34V17h-1.58V5.72H53zm9.9 11.1l-3.22-7.9h1.74l1 2.62 1.26 3.42c.1-.32.48-1.46 1.15-3.42l.91-2.63h1.66l-2.92 7.87c-.78 2.07-1.96 3.1-3.56 3.1-.28 0-.53-.02-.73-.07v-1.34c.17.04.35.06.54.06 1.03 0 1.76-.57 2.17-1.7z"}}),e._v(" "),n("path",{attrs:{fill:"#5468FF",d:"M78.99.94h16.6a2.97 2.97 0 0 1 2.96 2.96v16.6a2.97 2.97 0 0 1-2.97 2.96h-16.6a2.97 2.97 0 0 1-2.96-2.96V3.9A2.96 2.96 0 0 1 79 .94"}}),e._v(" "),n("path",{attrs:{fill:"#FFF",d:"M89.63 5.97v-.78a.98.98 0 0 0-.98-.97h-2.28a.98.98 0 0 0-.97.97V6c0 .09.08.15.17.13a7.13 7.13 0 0 1 3.9-.02c.08.02.16-.04.16-.13m-6.25 1L83 6.6a.98.98 0 0 0-1.38 0l-.46.46a.97.97 0 0 0 0 1.38l.38.39c.06.06.15.04.2-.02a7.49 7.49 0 0 1 1.63-1.62c.07-.04.08-.14.02-.2m4.16 2.45v3.34c0 .1.1.17.2.12l2.97-1.54c.06-.03.08-.12.05-.18a3.7 3.7 0 0 0-3.08-1.87c-.07 0-.14.06-.14.13m0 8.05a4.49 4.49 0 1 1 0-8.98 4.49 4.49 0 0 1 0 8.98m0-10.85a6.37 6.37 0 1 0 0 12.74 6.37 6.37 0 0 0 0-12.74"}}),e._v(" "),n("path",{attrs:{fill:"dark"===e.theme?"#FFF":"#5468FF",d:"M120.92 18.8c-4.38.02-4.38-3.54-4.38-4.1V1.36l2.67-.42v13.25c0 .32 0 2.36 1.71 2.37v2.24zm-10.84-2.18c.82 0 1.43-.04 1.85-.12v-2.72a5.48 5.48 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.11-.44.28-.58.49a.93.93 0 0 0-.22.65c0 .63.22 1 .61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.62.11 2.23.33.6.22 1.09.53 1.44.92.36.4.61.92.76 1.48.16.56.23 1.17.23 1.85v6.87c-.4.1-1.03.2-1.86.32-.84.12-1.78.18-2.82.18-.69 0-1.32-.07-1.9-.2a4 4 0 0 1-1.46-.63c-.4-.3-.72-.67-.96-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.39-1.53.26-.45.6-.82 1.04-1.1.45-.3.95-.5 1.54-.62a8.8 8.8 0 0 1 3.79.05v-.44c0-.3-.04-.6-.11-.87a1.78 1.78 0 0 0-1.1-1.22c-.31-.12-.7-.2-1.15-.2a9.75 9.75 0 0 0-2.95.46l-.33-2.19c.34-.12.84-.23 1.48-.35.65-.12 1.34-.18 2.08-.18zm52.84 9.63c.82 0 1.43-.05 1.85-.13V13.7a5.42 5.42 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.12-.44.28-.58.5a.93.93 0 0 0-.22.65c0 .63.22.99.61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.63.11 2.23.33.6.22 1.1.53 1.45.92.35.39.6.92.76 1.48.15.56.23 1.18.23 1.85v6.88c-.41.08-1.03.19-1.87.31-.83.12-1.77.18-2.81.18-.7 0-1.33-.06-1.9-.2a4 4 0 0 1-1.47-.63c-.4-.3-.72-.67-.95-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.38-1.53.26-.45.61-.82 1.05-1.1.44-.3.95-.5 1.53-.62a8.8 8.8 0 0 1 3.8.05v-.43c0-.31-.04-.6-.12-.88-.07-.28-.2-.52-.38-.73a1.78 1.78 0 0 0-.73-.5c-.3-.1-.68-.2-1.14-.2a9.85 9.85 0 0 0-2.95.47l-.32-2.19a11.63 11.63 0 0 1 3.55-.53zm-8.03-1.27a1.62 1.62 0 0 0 0-3.24 1.62 1.62 0 1 0 0 3.24zm1.35 13.22h-2.7V7.27l2.7-.42V18.8zm-4.72 0c-4.38.02-4.38-3.54-4.38-4.1l-.01-13.34 2.67-.42v13.25c0 .32 0 2.36 1.72 2.37v2.24zm-8.7-5.9a4.7 4.7 0 0 0-.74-2.79 2.4 2.4 0 0 0-2.07-1 2.4 2.4 0 0 0-2.06 1 4.7 4.7 0 0 0-.74 2.8c0 1.16.25 1.94.74 2.62a2.4 2.4 0 0 0 2.07 1.02c.88 0 1.57-.34 2.07-1.02.49-.68.73-1.46.73-2.63zm2.74 0a6.46 6.46 0 0 1-1.52 4.23c-.49.53-1.07.94-1.76 1.22-.68.29-1.73.45-2.26.45-.53 0-1.58-.15-2.25-.45a5.1 5.1 0 0 1-2.88-3.13 7.3 7.3 0 0 1-.01-4.84 5.13 5.13 0 0 1 2.9-3.1 5.67 5.67 0 0 1 2.22-.42c.81 0 1.56.14 2.24.42.69.29 1.28.69 1.75 1.22.49.52.87 1.15 1.14 1.89a7 7 0 0 1 .43 2.5zm-20.14 0c0 1.11.25 2.36.74 2.88.5.52 1.13.78 1.91.78a4.07 4.07 0 0 0 2.12-.6V9.33c-.19-.04-.99-.2-1.76-.23a2.67 2.67 0 0 0-2.23 1 4.73 4.73 0 0 0-.78 2.8zm7.44 5.27c0 1.82-.46 3.16-1.4 4-.94.85-2.37 1.27-4.3 1.27-.7 0-2.17-.13-3.34-.4l.43-2.11c.98.2 2.27.26 2.95.26 1.08 0 1.84-.22 2.3-.66.46-.43.68-1.08.68-1.94v-.44a5.2 5.2 0 0 1-2.54.6 5.6 5.6 0 0 1-2.01-.36 4.2 4.2 0 0 1-2.58-2.71 9.88 9.88 0 0 1 .02-5.35 4.92 4.92 0 0 1 2.93-2.96 6.6 6.6 0 0 1 2.43-.46 19.64 19.64 0 0 1 4.43.66v10.6z"}})])])])},staticRenderFns:[],name:"AisPoweredBy",mixins:[Un({name:"PoweredBy"})],props:{theme:{default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},computed:{algoliaUrl:function(){return"https://www.algolia.com/?utm_source=vue-instantsearch&utm_medium=website&utm_content="+(location?location.hostname:"")+"&utm_campaign=poweredby"}}},yr={name:"AisQueryRuleContext",mixins:[Un({name:"QueryRuleContext"}),Yn({connector:tn})],props:{trackedFilters:{type:Object,required:!0},transformRuleContexts:{type:Function,required:!1,default:function(e){return e}}},computed:{widgetParams:function(){return{trackedFilters:this.trackedFilters,transformRuleContexts:this.transformRuleContexts}}},render:function(){return null}},kr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",e._l(e.state.items,(function(t,r){return n("div",{key:r},[e._t("item",[n("pre",[e._v(e._s(t))])],{item:t})],2)})),{items:e.state.items})],2):e._e()},staticRenderFns:[],name:"AisQueryRuleCustomData",mixins:[Un({name:"QueryRuleCustomData"}),Yn({connector:tn})],props:{transformItems:{type:Function,required:!1,default:function(e){return e}}},computed:{widgetParams:function(){return{transformItems:this.transformItems}}}},wr=function(e){return e&&e.range&&e.range.min!==e.range.max},_r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("form",{class:e.suit("form"),on:{submit:function(t){t.preventDefault(),e.refine({min:e.minInput,max:e.maxInput})}}},[n("label",{class:e.suit("label")},[e._t("minLabel"),e._v(" "),n("input",{class:[e.suit("input"),e.suit("input","min")],attrs:{type:"number",step:e.step,min:e.state.range.min,max:e.state.range.max,placeholder:e.state.range.min},domProps:{value:e.values.min},on:{change:function(t){e.minInput=t.currentTarget.value}}})],2),e._v(" "),n("span",{class:e.suit("separator")},[e._t("separator",[e._v("to")])],2),e._v(" "),n("label",{class:e.suit("label")},[e._t("maxLabel"),e._v(" "),n("input",{class:[e.suit("input"),e.suit("input","max")],attrs:{type:"number",step:e.step,min:e.state.range.min,max:e.state.range.max,placeholder:e.state.range.max},domProps:{value:e.values.max},on:{change:function(t){e.maxInput=t.currentTarget.value}}})],2),e._v(" "),n("button",{class:e.suit("submit"),attrs:{type:"submit"}},[e._t("submitLabel",[e._v("Go")])],2)])],{currentRefinement:e.values,refine:e.refine,canRefine:e.canRefine,range:e.state.range})],2):e._e()},staticRenderFns:[],name:"AisRangeInput",mixins:[Un({name:"RangeInput"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,sn()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,i=n.min,o=n.max,a=n.precision,s=void 0===a?2:a;if(!r)throw new Error(sn("The `attribute` option is required."));var c=Pt(i),l=Pt(o),u=function(e){return Number(Number(e).toFixed(s))},d={from:function(e){return e},to:function(e){return u(e).toLocaleString()}};return{_getCurrentRange:function(e){var t,n,r=Math.pow(10,s);return t=c?i:Pt(e.min)?e.min:0,n=l?o:Pt(e.max)?e.max:0,{min:Math.floor(t*r)/r,max:Math.ceil(n*r)/r}},_getCurrentRefinement:function(e){var t=an(e.getNumericRefinement(r,">=")||[],1)[0],n=an(e.getNumericRefinement(r,"<=")||[],1)[0];return[Pt(t)?t:-1/0,Pt(n)?n:1/0]},_refine:function(e,t){return function(){var n,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],d=an(s,2),f=d[0],h=d[1],p=t.min,m=t.max,v=e.getNumericRefinement(r,">=")||[],g=an(v,1),b=g[0],y=e.getNumericRefinement(r,"<=")||[],k=an(y,1),w=k[0],_=void 0===f||""===f,C=void 0===h||""===h,A=_?void 0:parseFloat(f),x=C?void 0:parseFloat(h);a=l||m!==x?l&&C?o:x:void 0;var S=void 0===(n=c||p!==A?c&&_?i:A:void 0),M=Pt(n),E=Pt(p),T=E&&p<=n,D=S||M&&(!E||T),O=void 0===a,P=Pt(a),I=Pt(m),j=I&&m>=a,N=O||P&&(!I||j),R=b!==n,L=w!==a;(R||L)&&D&&N&&(e.clearRefinements(r),M&&e.addNumericRefinement(r,">=",u(n)),P&&e.addNumericRefinement(r,"<=",u(a)),e.search())}},getConfiguration:function(e){var t={disjunctiveFacets:[r]},n=c||l,a=e&&e.numericRefinements&&void 0!==e.numericRefinements[r],s=Pt(i),u=Pt(o);return n&&!a&&(s&&u?i<o:s||u)&&(t.numericRefinements=on({},r,{}),c&&(t.numericRefinements[r][">="]=[i]),l&&(t.numericRefinements[r]["<="]=[o])),t},init:function(t){var r=t.helper,i=t.instantSearchInstance,o=this._getCurrentRange({}),a=this._getCurrentRefinement(r);e({refine:this._refine(r,{}),format:d,range:o,widgetParams:rn({},n,{precision:s}),start:a,instantSearchInstance:i},!0)},render:function(t){var i=t.results,o=t.helper,a=t.instantSearchInstance,c=i.disjunctiveFacets||[],l=S(c,(function(e){return e.name===r})),u=l&&l.stats||{},f=this._getCurrentRange(u),h=this._getCurrentRefinement(o);e({refine:this._refine(o,f),format:d,range:f,widgetParams:rn({},n,{precision:s}),start:h,instantSearchInstance:a},!1)},dispose:function(e){var n=e.state;return t(),n.removeNumericRefinement(r).removeDisjunctiveFacet(r)},getWidgetState:function(e,t){var n=t.searchParameters.getNumericRefinements(r),i=n[">="],o=void 0===i?"":i,a=n["<="],s=void 0===a?"":a;return""===o&&""===s||e&&e.range&&e.range[r]==="".concat(o,":").concat(s)?e:rn({},e,{range:rn({},e.range,on({},r,"".concat(o,":").concat(s)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,i=n&&n.range&&n.range[r];if(!i||-1===i.indexOf(":"))return e;var o=e.getNumericRefinements(r),a=o[">="],s=void 0===a?[NaN]:a,c=o["<="],l=void 0===c?[NaN]:c,u=e.clearRefinements(r),d=an(i.split(":").map(parseFloat),2),f=d[0],h=d[1];return s.includes(f)&&l.includes(h)?e:(Pt(f)&&(u=u.addNumericRefinement(r,">=",f)),Pt(h)&&(u=u.addNumericRefinement(r,"<=",h)),u)}}}}}),Gn({mapStateToCanRefine:wr})],props:{attribute:{type:String,required:!0},min:{type:Number,required:!1,default:-1/0},max:{type:Number,required:!1,default:1/0},precision:{type:Number,required:!1,default:0}},data:function(){return{minInput:void 0,maxInput:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,min:this.min,max:this.max,precision:this.precision}},canRefine:function(){return wr(this.state)},step:function(){return 1/Math.pow(10,this.precision)},values:function(){var e=this.state.start,t=e[0],n=e[1],r=this.state.range,i=r.min,o=r.max;return{min:t!==-1/0&&t!==i?t:null,max:n!==1/0&&n!==o?n:null}}},methods:{refine:function(e){var t=e.min,n=e.max;this.state.refine([t,n])}}},Cr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("svg",{staticStyle:{display:"none"},attrs:{xmlns:"http://www.w3.org/2000/svg"}},[n("symbol",{attrs:{id:"ais-RatingMenu-starSymbol",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"}})]),e._v(" "),n("symbol",{attrs:{id:"ais-RatingMenu-starEmptySymbol",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"}})])]),e._v(" "),n("ul",{class:e.suit("list")},e._l(e.state.items,(function(t,r){return n("li",{key:r,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[n("a",{class:e.suit("link"),attrs:{href:e.state.createURL(t),"aria-label":t.value+" & Up"},on:{click:function(n){n.preventDefault(),e.state.refine(t.value)}}},[e._l(t.stars,(function(t,r){return[t?n("svg",{key:r,class:[e.suit("starIcon"),e.suit("starIcon--full")],attrs:{"aria-hidden":"true",width:"24",height:"24"}},[n("use",{attrs:{"xlink:href":"#ais-RatingMenu-starSymbol"}})]):n("svg",{key:r,class:[e.suit("starIcon"),e.suit("starIcon--empty")],attrs:{"aria-hidden":"true",width:"24",height:"24"}},[n("use",{attrs:{"xlink:href":"#ais-RatingMenu-starEmptySymbol"}})])]})),e._v(" "),n("span",{class:e.suit("label"),attrs:{"aria-hidden":"true"}},[e._t("andUp",[e._v("& Up")])],2),e._v(" "),n("span",{class:e.suit("count")},[e._v(e._s(t.count))])],2)])})))],{items:e.state.items,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisRatingMenu",mixins:[Un({name:"RatingMenu"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,dn()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,i=n.max,o=void 0===i?5:i;if(!r)throw new Error(dn("The `attribute` option is required."));return{getConfiguration:function(){return{disjunctiveFacets:[r]}},init:function(t){var i=t.helper,o=t.createURL,a=t.instantSearchInstance;this._toggleRefinement=this._toggleRefinement.bind(this,i),this._createURL=function(e){return function(t){return o(e.toggleRefinement(r,t))}},e({instantSearchInstance:a,items:[],hasNoResults:!0,refine:this._toggleRefinement,createURL:this._createURL(i.state),widgetParams:n},!0)},render:function(t){for(var i=t.helper,a=t.results,s=t.state,c=t.instantSearchInstance,l=[],u={},d=o;d>=0;--d)u[d]=0;a.getFacetValues(r).forEach((function(e){var t=Math.round(e.name);if(t&&!(t>o))for(var n=t;n>=1;--n)u[n]+=e.count}));for(var f=this._getRefinedStar(i.state),h=o-1;h>=1;--h){var p=u[h];if(!f||h===f||0!==p){for(var m=[],v=1;v<=o;++v)m.push(v<=h);l.push({stars:m,name:String(h),value:String(h),count:p,isRefined:f===h})}}e({instantSearchInstance:c,items:l,hasNoResults:0===a.nbHits,refine:this._toggleRefinement,createURL:this._createURL(s),widgetParams:n},!1)},dispose:function(e){var n=e.state;return t(),n.removeDisjunctiveFacetRefinement(r).removeDisjunctiveFacet(r)},getWidgetState:function(e,t){var n=t.searchParameters,i=this._getRefinedStar(n);return void 0===i||e&&e.ratingMenu&&e.ratingMenu[r]===i?e:ln({},e,{ratingMenu:ln({},e.ratingMenu,un({},r,i))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,i=n.ratingMenu&&n.ratingMenu[r];if(i===this._getRefinedStar(e))return e;var a=e.clearRefinements(r);if(void 0!==i)for(var s=Number(i);s<=o;++s)a=a.addDisjunctiveFacetRefinement(r,s);return a},_toggleRefinement:function(e,t){var n=this._getRefinedStar(e.state)===Number(t);if(e.clearRefinements(r),!n)for(var i=Number(t);i<=o;++i)e.addDisjunctiveFacetRefinement(r,i);e.search()},_getRefinedStar:function(e){var t=void 0;return e.getDisjunctiveRefinements(r).forEach((function(e){(!t||Number(e)<t)&&(t=Number(e))})),t}}}}}),Gn({mapStateToCanRefine:function(e){return!e.hasNoResults}})],props:{attribute:{type:String,required:!0},max:{type:Number,default:5}},computed:{widgetParams:function(){return{attribute:this.attribute,max:this.max}}}},Ar={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{class:e.suit("form"),attrs:{action:"",role:"search",novalidate:""},on:{submit:function(t){return t.preventDefault(),e.onFormSubmit(t)},reset:function(t){return t.preventDefault(),e.onFormReset(t)}}},[n("input",{ref:"input",class:e.suit("input"),attrs:{type:"search",autocorrect:"off",autocapitalize:"off",autocomplete:"off",spellcheck:"false",required:"",maxlength:"512","aria-label":"Search",placeholder:e.placeholder,autofocus:e.autofocus},domProps:{value:e.value},on:{focus:function(t){e.$emit("focus",t)},blur:function(t){e.$emit("blur",t)},input:function(t){e.$emit("input",t.target.value)}}}),e._v(" "),n("button",{class:e.suit("submit"),attrs:{type:"submit",title:e.submitTitle,hidden:e.showLoadingIndicator&&e.shouldShowLoadingIndicator}},[e._t("submit-icon",[n("svg",{class:e.suit("submitIcon"),attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40"}},[n("path",{attrs:{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z",fillRule:"evenodd"}})])])],2),e._v(" "),n("button",{class:e.suit("reset"),attrs:{type:"reset",title:e.resetTitle,hidden:!e.value||e.showLoadingIndicator&&e.shouldShowLoadingIndicator}},[e._t("reset-icon",[n("svg",{class:e.suit("resetIcon"),attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20"}},[n("path",{attrs:{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z",fillRule:"evenodd"}})])])],2),e._v(" "),e.showLoadingIndicator?n("span",{class:e.suit("loadingIndicator"),attrs:{hidden:!e.shouldShowLoadingIndicator}},[e._t("loading-indicator",[n("svg",{class:e.suit("loadingIcon"),attrs:{role:"img","aria-label":"Results are loading",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",viewBox:"0 0 38 38"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(1 1)","stroke-width":"2"}},[n("circle",{attrs:{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}}),e._v(" "),n("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}})],1)])])])])],2):e._e()])},staticRenderFns:[],name:"SearchInput",mixins:[Un({name:"SearchBox"})],props:{placeholder:{type:String,default:"Search here…"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},shouldShowLoadingIndicator:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,required:!0}},data:function(){return{query:""}},methods:{onFormSubmit:function(){this.$refs.input.blur()},onFormReset:function(){this.$emit("input",""),this.$emit("reset")}}},xr=function(){},Sr={render:function(){var e,t=this,n=t.$createElement,r=t._self._c||n;return t.state?r("div",{class:[t.suit(),!t.state.canRefine&&t.suit("","noRefinement")]},[t._t("default",[t.searchable?r("div",{class:t.suit("searchBox")},[r("search-input",{attrs:{placeholder:t.searchablePlaceholder,"class-names":t.classNames},model:{value:t.searchForFacetValues,callback:function(e){t.searchForFacetValues=e},expression:"searchForFacetValues"}})],1):t._e(),t._v(" "),t.state.isFromSearch&&0===t.items.length?t._t("noResults",[r("div",{class:t.suit("noResults")},[t._v("No results.")])],{query:t.searchForFacetValues}):t._e(),t._v(" "),r("ul",{class:t.suit("list")},t._l(t.items,(function(e){return r("li",{key:e.value,class:[t.suit("item"),e.isRefined&&t.suit("item","selected")]},[t._t("item",[r("label",{class:t.suit("label")},[r("input",{class:t.suit("checkbox"),attrs:{type:"checkbox"},domProps:{value:e.value,checked:e.isRefined},on:{change:function(n){t.refine(e.value)}}}),t._v(" "),t.searchable?r("span",{class:t.suit("labelText")},[r("ais-highlight",{attrs:{attribute:"item",hit:e}})],1):r("span",{class:t.suit("labelText")},[t._v(t._s(e.label))]),t._v(" "),r("span",{class:t.suit("count")},[t._v(t._s(e.count))])])],{item:e,refine:t.refine,createURL:t.state.createURL})],2)}))),t._v(" "),t.showMore?r("button",{class:[t.suit("showMore"),(e={},e[t.suit("showMore","disabled")]=!t.state.canToggleShowMore,e)],attrs:{disabled:!t.state.canToggleShowMore},on:{click:t.toggleShowMore}},[t._t("showMoreLabel",[t._v("Show "+t._s(t.state.isShowingMore?"less":"more"))],{isShowingMore:t.state.isShowingMore})],2):t._e()],{items:t.items,refine:t.refine,searchForItems:t.state.searchForItems,searchForItemsQuery:t.searchForFacetValuesQuery,toggleShowMore:t.toggleShowMore,canToggleShowMore:t.state.canToggleShowMore,isShowingMore:t.state.isShowingMore,createURL:t.state.createURL,isFromSearch:t.state.isFromSearch,canRefine:t.state.canRefine})],2):t._e()},staticRenderFns:[],name:"AisRefinementList",components:{SearchInput:Ar,AisHighlight:rr},mixins:[Un({name:"RefinementList"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,vn()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,i=n.operator,o=void 0===i?"or":i,a=n.limit,s=void 0===a?10:a,c=n.showMore,l=void 0!==c&&c,u=n.showMoreLimit,d=void 0===u?20:u,f=n.sortBy,h=void 0===f?["isRefined","count:desc","name:asc"]:f,g=n.escapeFacetValues,b=void 0===g||g,y=n.transformItems,w=void 0===y?function(e){return e}:y;if(!r)throw new Error(vn("The `attribute` option is required."));if(!/^(and|or)$/.test(o))throw new Error(vn('The `operator` must one of: `"and"`, `"or"` (got "'.concat(o,'").')));if(!0===l&&d<=s)throw new Error(vn("`showMoreLimit` should be greater than `limit`."));var _,C,A=function(e){var t=e.name;return hn({},mn(e,["name"]),{label:t,value:t,highlighted:t})},x=function(e){return e?d:s},S=[],M=!0,E=function(t){var i=t.items,o=t.state,a=t.createURL,c=t.helperSpecializedSearchFacetValues,u=t.refine,d=t.isFromSearch,f=t.isFirstSearch,h=t.isShowingMore,p=t.toggleShowMore,m=t.instantSearchInstance,v=c&&c(o,a,c,u,m,h),g=h&&S.length>s||l&&!d&&!M;e({createURL:function(e){return a(o.toggleRefinement(r,e))},items:i,refine:u,searchForItems:v,instantSearchInstance:m,isFromSearch:d,canRefine:d||i.length>0,widgetParams:n,isShowingMore:h,canToggleShowMore:g,toggleShowMore:p,hasExhaustiveItems:M},f)},T=function(e,t){return function(n,i,o,a,s,c){return function(l){if(""===l&&S)E({items:S,state:n,createURL:i,helperSpecializedSearchFacetValues:o,refine:a,isFromSearch:!1,isFirstSearch:!1,instantSearchInstance:s,toggleShowMore:t,isShowingMore:c});else{var u={highlightPreTag:b?p.highlightPreTag:m,highlightPostTag:b?p.highlightPostTag:v};e.searchForFacetValues(r,l,x(c),u).then((function(e){var t=b?k(e.facetHits):e.facetHits,r=w(t.map((function(e){var t=e.value;return hn({},mn(e,["value"]),{value:t,label:t})})));E({items:r,state:n,createURL:i,helperSpecializedSearchFacetValues:o,refine:a,isFromSearch:!0,isFirstSearch:!1,instantSearchInstance:s,isShowingMore:c})}))}}}};return{isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this;return function(){t.isShowingMore=!t.isShowingMore,t.render(e)}},getLimit:function(){return x(this.isShowingMore)},getConfiguration:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=pn({},"and"===o?"facets":"disjunctiveFacets",[r]),n=e.maxValuesPerFacet||0;return t.maxValuesPerFacet=Math.max(n,l?d:s),t},init:function(e){var t=e.helper,n=e.createURL,i=e.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),C=function(e){return t.toggleRefinement(r,e).search()},_=T(t,this.cachedToggleShowMore),E({items:[],state:t.state,createURL:n,helperSpecializedSearchFacetValues:_,refine:C,isFromSearch:!1,isFirstSearch:!0,instantSearchInstance:i,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore})},render:function(e){var t=e.results,n=e.state,i=e.createURL,o=e.instantSearchInstance,a=t.getFacetValues(r,{sortBy:h}),s=w(a.slice(0,this.getLimit()).map(A)),c=n.getQueryParameter("maxValuesPerFacet"),l=this.getLimit();M=c>l?a.length<=l:a.length<l,S=s,this.toggleShowMore=this.createToggleShowMore(e),E({items:s,state:n,createURL:i,helperSpecializedSearchFacetValues:_,refine:C,isFromSearch:!1,isFirstSearch:!1,instantSearchInstance:o,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore})},dispose:function(e){var n=e.state;return t(),"and"===o?n.removeFacetRefinement(r).removeFacet(r):n.removeDisjunctiveFacetRefinement(r).removeDisjunctiveFacet(r)},getWidgetState:function(e,t){var n=t.searchParameters,i="or"===o?n.getDisjunctiveRefinements(r):n.getConjunctiveRefinements(r);return 0===i.length||e.refinementList&&D(i,e.refinementList[r])?e:hn({},e,{refinementList:hn({},e.refinementList,pn({},r,i))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,i=n.refinementList&&n.refinementList[r];return void 0===i?e:i.reduce((function(e,t){return"or"===o?e.addDisjunctiveFacetRefinement(r,t):e.addFacetRefinement(r,t)}),e.clearRefinements(r))}}}}}),Gn({mapStateToCanRefine:function(e){return e.canRefine}})],props:{attribute:{type:String,required:!0},searchable:{type:Boolean,default:!1},searchablePlaceholder:{default:"Search here…",type:String,required:!1},operator:{default:"or",validator:function(e){return"and"===e||"or"===e},required:!1},limit:{type:Number,default:10,required:!1},showMoreLimit:{type:Number,default:20,required:!1},showMore:{type:Boolean,default:!1,required:!1},sortBy:{type:[Array,Function],default:function(){return["isRefined","count:desc","name:asc"]},required:!1},transformItems:{type:Function,default:function(e){return e},required:!1}},data:function(){return{searchForFacetValuesQuery:""}},computed:{searchForFacetValues:{get:function(){return this.searchForFacetValuesQuery},set:function(e){this.state.searchForItems(e),this.searchForFacetValuesQuery=e}},toggleShowMore:function(){return this.state.toggleShowMore||xr},items:function(){return this.state.items.map((function(e){return Object.assign({},e,{_highlightResult:{item:{value:e.highlighted}}})}))},widgetParams:function(){return{attribute:this.attribute,operator:this.operator,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,escapeFacetValues:!0,transformItems:this.transformItems}}},methods:{refine:function(e){this.state.refine(e),this.searchForFacetValuesQuery=""}}},Mr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state&&e.state.state&&e.state.results?n("div",{class:e.suit()},[e._t("default",[n("p",[e._v(" Use this component to have a different layout based on a certain state. ")]),e._v(" "),e._m(0),e._v(" "),n("pre",[e._v("results: "+e._s(Object.keys(e.state.results)))]),e._v(" "),n("pre",[e._v("state: "+e._s(Object.keys(e.state.state)))])],null,e.stateResults)],2):e._e()},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",[this._v(" Fill in the slot, and get access to the following things on the "),t("code",[this._v("slot-scope")]),this._v(": ")])}],name:"AisStateResults",mixins:[Yn({connector:function(e,t){return void 0===t&&(t=function(){}),function(n){return void 0===n&&(n={}),{init:function(t){var r=t.instantSearchInstance;e({state:void 0,results:void 0,instantSearchInstance:r,widgetParams:n},!0)},render:function(t){var r=t.results,i=t.instantSearchInstance,o=t.state,a=ar({},r),s=ar({},o);e({results:a,state:s,instantSearchInstance:i,widgetParams:n},!1)},dispose:function(){t()}}}}}),Un({name:"StateResults"})],computed:{stateResults:function(){var e=this.state,t=e.state,n=e.results;return ar({},n,{results:n,state:t})}}},Er={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("search-input",{attrs:{placeholder:e.placeholder,autofocus:e.autofocus,"show-loading-indicator":e.showLoadingIndicator,"should-show-loading-indicator":e.state.isSearchStalled,"submit-title":e.submitTitle,"reset-title":e.resetTitle,"class-names":e.classNames},on:{focus:function(t){e.$emit("focus",t)},blur:function(t){e.$emit("blur",t)},reset:function(t){e.$emit("reset")}},model:{value:e.currentRefinement,callback:function(t){e.currentRefinement=t},expression:"currentRefinement"}},[e._t("loading-indicator",null,{slot:"loading-indicator"}),e._v(" "),e._t("submit-icon",null,{slot:"submit-icon"}),e._v(" "),e._t("reset-icon",null,{slot:"reset-icon"})],2)],{currentRefinement:e.currentRefinement,isSearchStalled:e.state.isSearchStalled,refine:e.state.refine})],2):e._e()},staticRenderFns:[],name:"AisSearchBox",mixins:[Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,kn()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.queryHook;function i(e){return function(){e.setQuery(""),e.search()}}return{_clear:function(){},_cachedClear:function(){this._clear()},init:function(t){var o,a,s=t.helper,c=t.instantSearchInstance;this._cachedClear=this._cachedClear.bind(this),this._clear=i(s),this._refine=(a=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e!==s.state.query&&(o=s.state.query,s.setQuery(e)),t&&void 0!==o&&o!==e&&s.search()},r?function(e){return r(e,a)}:a),e({query:s.state.query,refine:this._refine,clear:this._cachedClear,widgetParams:n,instantSearchInstance:c},!0)},render:function(t){var r=t.helper,o=t.instantSearchInstance,a=t.searchMetadata;this._clear=i(r),e({query:r.state.query,refine:this._refine,clear:this._cachedClear,widgetParams:n,instantSearchInstance:o,isSearchStalled:a.isSearchStalled},!1)},dispose:function(e){var n=e.state;return t(),n.setQuery("")},getWidgetState:function(e,t){var n=t.searchParameters.query;return""===n||e&&e.query===n?e:bn({},e,{query:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQuery(n.query||"")}}}}}),Un({name:"SearchBox"})],components:{SearchInput:Ar},props:{placeholder:{type:String,default:"Search here…"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,default:void 0}},data:function(){return{localValue:""}},methods:{onFormSubmit:function(){this.$el.querySelector("input[type=search]").blur()},onFormReset:function(){this.state.refine("")}},computed:{isControlled:function(){return void 0!==this.value},currentRefinement:{get:function(){return this.isControlled&&this.value!==this.localValue&&(this.localValue=this.value,this.$emit("input",this.value),this.state.refine(this.value)),this.value||this.state.query||""},set:function(e){this.localValue=e,this.state.refine(e),this.isControlled&&this.$emit("input",e)}}}},Tr={render:function(){var e=this.$createElement;return(this._self._c||e)("span",{class:this.suit(),domProps:{innerHTML:this._s(this.innerHTML)}})},staticRenderFns:[],name:"AisSnippet",mixins:[Un({name:"Snippet"})],props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}},computed:{innerHTML:function(){return Hn.snippet({attribute:this.attribute,hit:this.hit,highlightedTagName:this.highlightedTagName})}}},Dr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("select",{class:e.suit("select"),on:{change:function(t){e.state.refine(t.currentTarget.value)}}},e._l(e.state.options,(function(t){return n("option",{key:t.value,class:e.suit("option"),domProps:{value:t.value,selected:t.value===e.state.currentRefinement}},[e._v(e._s(t.label))])})))],{items:e.state.options,hasNoResults:e.state.hasNoResults,refine:e.state.refine,currentRefinement:e.state.currentRefinement})],2):e._e()},staticRenderFns:[],name:"AisSortBy",mixins:[Un({name:"SortBy"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,An()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.items,i=n.transformItems,o=void 0===i?function(e){return e}:i;if(!Array.isArray(r))throw new Error(An("The `items` option expects an array of objects."));return{init:function(t){var i=t.helper,a=t.instantSearchInstance,s=i.state.index,c=S(r,(function(e){return e.value===s}));this.initialIndex=a.indexName,this.setIndex=function(e){i.setIndex(e).search()},E(c,'The index named "'.concat(s,'" is not listed in the `items` of `sortBy`.')),e({currentRefinement:s,options:o(r),refine:this.setIndex,hasNoResults:!0,widgetParams:n,instantSearchInstance:a},!0)},render:function(t){var i=t.helper,a=t.results,s=t.instantSearchInstance;e({currentRefinement:i.state.index,options:o(r),refine:this.setIndex,hasNoResults:0===a.nbHits,widgetParams:n,instantSearchInstance:s},!1)},dispose:function(e){var n=e.state;return t(),n.setIndex(this.initialIndex)},getWidgetState:function(e,t){var n=t.searchParameters,r=n.getQueryParameter("index");return r===this.initialIndex||e&&e.sortBy===r?e:_n({},e,{sortBy:n.getQueryParameter("index")})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQueryParameter("index",n.sortBy||this.initialIndex)}}}}}),Gn({mapStateToCanRefine:function(e){return!e.hasNoResults}})],props:{items:{type:Array,required:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{items:this.items,transformItems:this.transformItems}}}},Or={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("span",{class:e.suit("text")},[e._v(e._s(e.state.nbHits.toLocaleString())+" results found in "+e._s(e.state.processingTimeMS.toLocaleString())+"ms")])],{results:e.state.instantSearchInstance.helper.lastResults},e.state)],2):e._e()},staticRenderFns:[],name:"AisStats",mixins:[Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,xn()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{init:function(t){var r=t.helper,i=t.instantSearchInstance;e({instantSearchInstance:i,hitsPerPage:r.state.hitsPerPage,nbHits:0,nbPages:0,page:r.state.page,processingTimeMS:-1,query:r.state.query,widgetParams:n},!0)},render:function(t){var r=t.results,i=t.instantSearchInstance;e({instantSearchInstance:i,hitsPerPage:r.hitsPerPage,nbHits:r.nbHits,nbPages:r.nbPages,page:r.page,processingTimeMS:r.processingTimeMS,query:r.query,widgetParams:n},!1)},dispose:function(){t()}}}}}),Un({name:"Stats"})],computed:{widgetParams:function(){return{}}}},Pr=function(e){return Boolean(e.value.count)},Ir={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[n("label",{class:e.suit("label")},[n("input",{class:e.suit("checkbox"),attrs:{type:"checkbox",name:e.state.value.name},domProps:{value:e.on,checked:e.state.value.isRefined},on:{change:function(t){e.state.refine(e.state.value)}}}),e._v(" "),n("span",{class:e.suit("labelText")},[e._v(e._s(e.label))]),e._v(" "),null!==e.state.value.count?n("span",{class:e.suit("count")},[e._v(e._s(e.state.value.count.toLocaleString()))]):e._e()])],{value:e.state.value,canRefine:e.canRefine,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisToggleRefinement",mixins:[Un({name:"ToggleRefinement"}),Yn({connector:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;return x(e,Dn()),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,i=n.on,o=void 0===i||i,a=n.off;if(!r)throw new Error(Dn("The `attribute` option is required."));var s=void 0!==a,c=void 0!==o,l=c?Sn(o):void 0,u=s?Sn(a):void 0;return{getConfiguration:function(){return{disjunctiveFacets:[r]}},_toggleRefinement:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isRefined;n?(e.removeDisjunctiveFacetRefinement(r,l),s&&e.addDisjunctiveFacetRefinement(r,u)):(s&&e.removeDisjunctiveFacetRefinement(r,u),e.addDisjunctiveFacetRefinement(r,l)),e.search()},init:function(t){var i=this,o=t.state,a=t.helper,c=t.createURL,d=t.instantSearchInstance;this._createURL=function(e){return function(){return c(o.removeDisjunctiveFacetRefinement(r,e?l:u).addDisjunctiveFacetRefinement(r,e?u:l))}},this.toggleRefinement=function(e){i._toggleRefinement(a,e)};var f=o.isDisjunctiveFacetRefined(r,l);if(s&&!f){var h=a.getPage();a.addDisjunctiveFacetRefinement(r,u).setPage(h)}var p={name:r,isRefined:f,count:null,onFacetValue:{isRefined:f,count:0},offFacetValue:{isRefined:s&&!f,count:0}};e({value:p,createURL:this._createURL(p.isRefined),refine:this.toggleRefinement,instantSearchInstance:d,widgetParams:n},!0)},render:function(t){var i=t.helper,o=t.results,a=t.state,c=t.instantSearchInstance,d=i.state.isDisjunctiveFacetRefined(r,l),f=void 0!==u&&u,h=o.getFacetValues(r),p=S(h,(function(e){return e.name===R(l)})),m={isRefined:void 0!==p&&p.isRefined,count:void 0===p?null:p.count},v=s?S(h,(function(e){return e.name===R(f)})):void 0,g={isRefined:void 0!==v&&v.isRefined,count:void 0===v?h.reduce((function(e,t){return e+t.count}),0):v.count},b=d?g:m,y={name:r,isRefined:d,count:void 0===b?null:b.count,onFacetValue:m,offFacetValue:g};e({value:y,state:a,createURL:this._createURL(y.isRefined),refine:this.toggleRefinement,helper:i,instantSearchInstance:c,widgetParams:n},!1)},dispose:function(e){var n=e.state;return t(),n.removeDisjunctiveFacetRefinement(r).removeDisjunctiveFacet(r)},getWidgetState:function(e,t){var n=t.searchParameters.isDisjunctiveFacetRefined(r,l);return!n||e&&e.toggle&&e.toggle[r]===n?e:En({},e,{toggle:En({},e.toggle,Tn({},r,n))})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return Boolean(n.toggle&&n.toggle[r])?s?e.removeDisjunctiveFacetRefinement(r,u).addDisjunctiveFacetRefinement(r,l):e.addDisjunctiveFacetRefinement(r,l):s?e.removeDisjunctiveFacetRefinement(r,l).addDisjunctiveFacetRefinement(r,u):e.removeDisjunctiveFacetRefinement(r,l)}}}}}),Gn({mapStateToCanRefine:Pr})],props:{attribute:{type:String,required:!0},label:{type:String,required:!0},on:{type:[String,Number,Boolean],required:!1,default:!0},off:{type:[String,Number,Boolean],required:!1,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,label:this.label,on:this.on,off:this.off}},canRefine:function(){return Pr(this.state)}}},jr={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.state?n("div",{class:e.suit()},[e._t("default",[n("button",{class:e.suit("button"),attrs:{type:"button",title:e.state.isBrowserSupported?e.buttonTitle:e.disabledButtonTitle,disabled:!e.state.isBrowserSupported},on:{click:e.handleClick}},[e._t("buttonText",[e.errorNotAllowed?n("svg",e._b({},"svg",e.buttonSvgAttrs,!1),[n("line",{attrs:{x1:"1",y1:"1",x2:"23",y2:"23"}}),e._v(" "),n("path",{attrs:{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}}),e._v(" "),n("path",{attrs:{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}}),e._v(" "),n("line",{attrs:{x1:"12",y1:"19",x2:"12",y2:"23"}}),e._v(" "),n("line",{attrs:{x1:"8",y1:"23",x2:"16",y2:"23"}})]):n("svg",e._b({},"svg",e.buttonSvgAttrs,!1),[n("path",{attrs:{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",fill:e.state.isListening?"currentColor":"none"}}),e._v(" "),n("path",{attrs:{d:"M19 10v2a7 7 0 0 1-14 0v-2"}}),e._v(" "),n("line",{attrs:{x1:"12",y1:"19",x2:"12",y2:"23"}}),e._v(" "),n("line",{attrs:{x1:"8",y1:"23",x2:"16",y2:"23"}})])],null,e.innerSlotProps)],2),e._v(" "),n("div",{class:e.suit("status")},[e._t("status",[n("p",[e._v(e._s(e.state.voiceListeningState.transcript))])],null,e.innerSlotProps)],2)],null,e.rootSlotProps)],2):e._e()},staticRenderFns:[],name:"AisVoiceSearch",mixins:[Yn({connector:Fn}),Un({name:"VoiceSearch"})],props:{searchAsYouSpeak:{type:Boolean,required:!1,default:void 0},buttonTitle:{type:String,required:!1,default:"Search by voice"},disabledButtonTitle:{type:String,required:!1,default:"Search by voice (not supported on this browser)"}},data:function(){return{buttonSvgAttrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}}},computed:{widgetParams:function(){return{searchAsYouSpeak:this.searchAsYouSpeak}},errorNotAllowed:function(){return"error"===this.state.voiceListeningState.status&&"not-allowed"===this.state.voiceListeningState.errorCode},rootSlotProps:function(){return{isBrowserSupported:this.state.isBrowserSupported,isListening:this.state.isListening,toggleListening:this.state.toggleListening,voiceListeningState:this.state.voiceListeningState}},innerSlotProps:function(){return{status:this.state.voiceListeningState.status,errorCode:this.state.voiceListeningState.errorCode,isListening:this.state.isListening,transcript:this.state.voiceListeningState.transcript,isSpeechFinal:this.state.voiceListeningState.isSpeechFinal,isBrowserSupported:this.state.isBrowserSupported}}},methods:{handleClick:function(e){e.currentTarget.blur(),this.state.toggleListening()}}},Nr=Object.freeze({AisAutocomplete:Kn,AisBreadcrumb:Qn,AisClearRefinements:Xn,AisConfigure:Jn,AisCurrentRefinements:Zn,AisHierarchicalMenu:nr,AisHighlight:rr,AisHits:ir,AisHitsPerPage:or,AisInstantSearch:ur,AisInstantSearchSsr:dr,AisInfiniteHits:fr,AisMenu:hr,AisMenuSelect:pr,AisNumericMenu:mr,AisPagination:vr,AisPanel:gr,AisPoweredBy:br,AisQueryRuleContext:yr,AisQueryRuleCustomData:kr,AisRangeInput:_r,AisRatingMenu:Cr,AisRefinementList:Sr,AisStateResults:Mr,AisSearchBox:Er,AisSnippet:Tr,AisSortBy:Dr,AisStats:Or,AisToggleRefinement:Ir,AisVoiceSearch:jr}),Rr={install:function(e){Object.keys(Nr).forEach((function(t){e.component(Nr[t].name,Nr[t])}))}},Lr=($.a.SearchParameters,$.a.SearchResults,Rr),Br=(n(284),n(78)),Fr=n(279),zr=n.n(Fr);n(213),window.Vue=n(35),window.Vue.use(i.a),window.Vue.use(Lr),window.Vue.use(Br.MdProgress),window.Vue.use(zr.a);var Vr=n(171);Vr.keys().map((function(e){return Vue.component(e.split("/").pop().split(".")[0],Vr(e).default)}));new Vue({el:"#app",data:{publishState:{file:{title:"",slug:"",headlines:[]},email:{subject:"",content:"",link:"",type:0}}}})},,,,,,,,,,,,,,,,,,,,,,function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){}]);
\ No newline at end of file