@epigraph/configurator 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +98 -98
- package/dist/epigraph-configurator.css +2 -2
- package/dist/epigraph-configurator.js +3 -3
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see main.
|
|
2
|
-
!function(){var e={908:function(e,t,n){var r=n(8136)(n(7009),"DataView");e.exports=r},9676:function(e,t,n){var r=n(5403),i=n(2747),o=n(6037),a=n(4154),u=n(7728);function s(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])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=u,e.exports=s},8384:function(e,t,n){var r=n(3894),i=n(8699),o=n(4957),a=n(7184),u=n(7109);function s(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])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=u,e.exports=s},5797:function(e,t,n){var r=n(8136)(n(7009),"Map");e.exports=r},8059:function(e,t,n){var r=n(4086),i=n(9255),o=n(9186),a=n(3423),u=n(3739);function s(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])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=u,e.exports=s},8319:function(e,t,n){var r=n(8136)(n(7009),"Promise");e.exports=r},3924:function(e,t,n){var r=n(8136)(n(7009),"Set");e.exports=r},692:function(e,t,n){var r=n(8059),i=n(5774),o=n(1596);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},2854:function(e,t,n){var r=n(8384),i=n(511),o=n(835),a=n(707),u=n(8832),s=n(5077);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=u,l.prototype.set=s,e.exports=l},7197:function(e,t,n){var r=n(7009).Symbol;e.exports=r},6219:function(e,t,n){var r=n(7009).Uint8Array;e.exports=r},7091:function(e,t,n){var r=n(8136)(n(7009),"WeakMap");e.exports=r},4903:function(e){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}},7538:function(e,t,n){var r=n(6478),i=n(4963),o=n(3629),a=n(5174),u=n(6800),s=n(9102),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),p=!n&&!c&&a(e),f=!n&&!c&&!p&&s(e),d=n||c||p||f,h=d?r(e.length,String):[],y=h.length;for(var m in e)!t&&!l.call(e,m)||d&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||u(m,y))||h.push(m);return h}},1705:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},7897:function(e){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}},7112:function(e,t,n){var r=n(9231);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},1986:function(e,t,n){var r=n(1705),i=n(3629);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},9066:function(e,t,n){var r=n(7197),i=n(1587),o=n(3581),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)}},4906:function(e,t,n){var r=n(9066),i=n(3141);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},1848:function(e,t,n){var r=n(3355),i=n(3141);e.exports=function e(t,n,o,a,u){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,u))}},3355:function(e,t,n){var r=n(2854),i=n(5305),o=n(2206),a=n(8078),u=n(8383),s=n(3629),l=n(5174),c=n(9102),p="[object Arguments]",f="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,m,v){var g=s(e),D=s(t),b=g?f:u(e),E=D?f:u(t),x=(b=b==p?d:b)==d,C=(E=E==p?d:E)==d,A=b==E;if(A&&l(e)){if(!l(t))return!1;g=!0,x=!1}if(A&&!x)return v||(v=new r),g||c(e)?i(e,t,n,y,m,v):o(e,t,b,n,y,m,v);if(!(1&n)){var w=x&&h.call(e,"__wrapped__"),S=C&&h.call(t,"__wrapped__");if(w||S){var F=w?e.value():e,k=S?t.value():t;return v||(v=new r),m(F,k,n,y,v)}}return!!A&&(v||(v=new r),a(e,t,n,y,m,v))}},6703:function(e,t,n){var r=n(4786),i=n(257),o=n(8092),a=n(7907),u=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,c=s.toString,p=l.hasOwnProperty,f=RegExp("^"+c.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:u).test(a(e))}},8150:function(e,t,n){var r=n(9066),i=n(4635),o=n(3141),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)]}},3654:function(e,t,n){var r=n(2936),i=n(8836),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}},6478:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},6194:function(e){e.exports=function(e){return function(t){return e(t)}}},75:function(e){e.exports=function(e,t){return e.has(t)}},5525:function(e,t,n){var r=n(7009)["__core-js_shared__"];e.exports=r},5305:function(e,t,n){var r=n(692),i=n(7897),o=n(75);e.exports=function(e,t,n,a,u,s){var l=1&n,c=e.length,p=t.length;if(c!=p&&!(l&&p>c))return!1;var f=s.get(e),d=s.get(t);if(f&&d)return f==t&&d==e;var h=-1,y=!0,m=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h<c;){var v=e[h],g=t[h];if(a)var D=l?a(g,v,h,t,e,s):a(v,g,h,e,t,s);if(void 0!==D){if(D)continue;y=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(v===e||u(v,e,n,a,s)))return m.push(t)}))){y=!1;break}}else if(v!==g&&!u(v,g,n,a,s)){y=!1;break}}return s.delete(e),s.delete(t),y}},2206:function(e,t,n){var r=n(7197),i=n(6219),o=n(9231),a=n(5305),u=n(234),s=n(2230),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,p,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||!p(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 d=u;case"[object Set]":var h=1&r;if(d||(d=s),e.size!=t.size&&!h)return!1;var y=f.get(e);if(y)return y==t;r|=2,f.set(e,t);var m=a(d(e),d(t),r,l,p,f);return f.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},8078:function(e,t,n){var r=n(8248),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,u){var s=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!s)return!1;for(var p=c;p--;){var f=l[p];if(!(s?f in t:i.call(t,f)))return!1}var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var y=!0;u.set(e,t),u.set(t,e);for(var m=s;++p<c;){var v=e[f=l[p]],g=t[f];if(o)var D=s?o(g,v,f,t,e,u):o(v,g,f,e,t,u);if(!(void 0===D?v===g||a(v,g,n,o,u):D)){y=!1;break}m||(m="constructor"==f)}if(y&&!m){var b=e.constructor,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(y=!1)}return u.delete(e),u.delete(t),y}},1032:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8248:function(e,t,n){var r=n(1986),i=n(5918),o=n(2742);e.exports=function(e){return r(e,o,i)}},2799:function(e,t,n){var r=n(5964);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8136:function(e,t,n){var r=n(6703),i=n(40);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},1587:function(e,t,n){var r=n(7197),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(s){}var i=a.call(e);return r&&(t?e[u]=n:delete e[u]),i}},5918:function(e,t,n){var r=n(4903),i=n(8174),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=u},8383:function(e,t,n){var r=n(908),i=n(5797),o=n(8319),a=n(3924),u=n(7091),s=n(9066),l=n(7907),c="[object Map]",p="[object Promise]",f="[object Set]",d="[object WeakMap]",h="[object DataView]",y=l(r),m=l(i),v=l(o),g=l(a),D=l(u),b=s;(r&&b(new r(new ArrayBuffer(1)))!=h||i&&b(new i)!=c||o&&b(o.resolve())!=p||a&&b(new a)!=f||u&&b(new u)!=d)&&(b=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case y:return h;case m:return c;case v:return p;case g:return f;case D:return d}return t}),e.exports=b},40:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},5403:function(e,t,n){var r=n(9620);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2747:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6037:function(e,t,n){var r=n(9620),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}},4154:function(e,t,n){var r=n(9620),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},7728:function(e,t,n){var r=n(9620);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}},6800:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},5964:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},257:function(e,t,n){var r=n(5525),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},2936:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3894:function(e){e.exports=function(){this.__data__=[],this.size=0}},8699:function(e,t,n){var r=n(7112),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)}},4957:function(e,t,n){var r=n(7112);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7184:function(e,t,n){var r=n(7112);e.exports=function(e){return r(this.__data__,e)>-1}},7109:function(e,t,n){var r=n(7112);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}},4086:function(e,t,n){var r=n(9676),i=n(8384),o=n(5797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},9255:function(e,t,n){var r=n(2799);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},9186:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).get(e)}},3423:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).has(e)}},3739:function(e,t,n){var r=n(2799);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}},234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},9620:function(e,t,n){var r=n(8136)(Object,"create");e.exports=r},8836:function(e,t,n){var r=n(2709)(Object.keys,Object);e.exports=r},9494:function(e,t,n){e=n.nmd(e);var r=n(1032),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,u=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=u},3581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},7009:function(e,t,n){var r=n(1032),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},5774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1596:function(e){e.exports=function(e){return this.__data__.has(e)}},2230:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},511:function(e,t,n){var r=n(8384);e.exports=function(){this.__data__=new r,this.size=0}},835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},707:function(e){e.exports=function(e){return this.__data__.get(e)}},8832:function(e){e.exports=function(e){return this.__data__.has(e)}},5077:function(e,t,n){var r=n(8384),i=n(5797),o=n(8059);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}},7907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},9231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},4963:function(e,t,n){var r=n(4906),i=n(3141),o=Object.prototype,a=o.hasOwnProperty,u=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},3629:function(e){var t=Array.isArray;e.exports=t},1473:function(e,t,n){var r=n(4786),i=n(4635);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},5174:function(e,t,n){e=n.nmd(e);var r=n(7009),i=n(9488),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,u=a&&a.exports===o?r.Buffer:void 0,s=(u?u.isBuffer:void 0)||i;e.exports=s},8111:function(e,t,n){var r=n(1848);e.exports=function(e,t){return r(e,t)}},4786:function(e,t,n){var r=n(9066),i=n(8092);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}},4635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},9102:function(e,t,n){var r=n(8150),i=n(6194),o=n(9494),a=o&&o.isTypedArray,u=a?i(a):r;e.exports=u},2742:function(e,t,n){var r=n(7538),i=n(3654),o=n(1473);e.exports=function(e){return o(e)?r(e):i(e)}},8174:function(e){e.exports=function(){return[]}},9488:function(e){e.exports=function(){return!1}},1725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,u,s=i(e),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(s[c]=a[c]);if(t){u=t(a);for(var p=0;p<u.length;p++)r.call(a,u[p])&&(s[u[p]]=a[u[p]])}}return s}},3507:function(e,t,n){var r,i,o,a=n(3344).default,u=n(1588).default,s=n(3808).default,l=n(1655).default,c=n(6389).default,p=n(3496).default,f=n(8416).default,d=n(6690).default,h=n(9728).default,y=n(7424).default,m=n(1589).default,v=n(861).default,g=n(4704).default;e.exports=function(){"use strict";var D=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}},b=D((function(e,t){var r=function(e){return e&&e.Math==Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()})),E=D((function(e,t){t.exports=function(e){try{return!!e()}catch(t){return!0}}})),x=D((function(e,t){var n=E();t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),C=D((function(e,t){var n=E();t.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))})),A=D((function(e,t){var n=C(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}})),w=D((function(e){var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!t.call({1:2},1);e.f=r?function(e){var t=n(this,e);return!!t&&t.enumerable}:t})),S=D((function(e,t){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}})),F=D((function(e,t){var n=C(),r=Function.prototype,i=r.bind,o=r.call,a=n&&i.bind(o,o);t.exports=n?function(e){return e&&a(e)}:function(e){return e&&function(){return o.apply(e,arguments)}}})),k=D((function(e,t){var n=F(),r=n({}.toString),i=n("".slice);t.exports=function(e){return i(r(e),8,-1)}})),_=D((function(e,t){var n=b(),r=F(),i=E(),o=k(),a=n.Object,u=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?u(e,""):a(e)}:a})),T=D((function(e,t){var n=b().TypeError;t.exports=function(e){if(null==e)throw n("Can't call method on "+e);return e}})),O=D((function(e,t){var n=_(),r=T();t.exports=function(e){return n(r(e))}})),N=D((function(e,t){t.exports=function(e){return"function"==typeof e}})),j=D((function(e,t){var n=N();t.exports=function(e){return"object"==typeof e?null!==e:n(e)}})),P=D((function(e,t){var n=b(),r=N(),i=function(e){return r(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}})),B=D((function(e,t){var n=F();t.exports=n({}.isPrototypeOf)})),I=D((function(e,t){var n=P();t.exports=n("navigator","userAgent")||""})),L=D((function(e,t){var n,r,i=b(),o=I(),a=i.process,u=i.Deno,s=a&&a.versions||u&&u.version,l=s&&s.v8;l&&(r=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(r=+n[1]),t.exports=r})),M=D((function(e,t){var n=L(),r=E();t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))})),R=D((function(e,t){var n=M();t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),q=D((function(e,t){var n=b(),r=P(),i=N(),o=B(),a=R(),u=n.Object;t.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,u(e))}})),V=D((function(e,t){var n=b().String;t.exports=function(e){try{return n(e)}catch(t){return"Object"}}})),U=D((function(e,t){var n=b(),r=N(),i=V(),o=n.TypeError;t.exports=function(e){if(r(e))return e;throw o(i(e)+" is not a function")}})),z=D((function(e,t){var n=U();t.exports=function(e,t){var r=e[t];return null==r?void 0:n(r)}})),H=D((function(e,t){var n=b(),r=A(),i=N(),o=j(),a=n.TypeError;t.exports=function(e,t){var n,u;if("string"===t&&i(n=e.toString)&&!o(u=r(n,e))||i(n=e.valueOf)&&!o(u=r(n,e))||"string"!==t&&i(n=e.toString)&&!o(u=r(n,e)))return u;throw a("Can't convert object to primitive value")}})),W=D((function(e,t){t.exports=!1})),$=D((function(e,t){var n=b(),r=Object.defineProperty;t.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch(i){n[e]=t}return t}})),G=D((function(e,t){var n=b(),r=$(),i="__core-js_shared__",o=n[i]||r(i,{});t.exports=o})),K=D((function(e,t){var n=W(),r=G();(t.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.2",mode:n?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"})})),J=D((function(e,t){var n=b(),r=T(),i=n.Object;t.exports=function(e){return i(r(e))}})),X=D((function(e,t){var n=F(),r=J(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(r(e),t)}})),Y=D((function(e,t){var n=F(),r=0,i=Math.random(),o=n(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+i,36)}})),Q=D((function(e,t){var n=b(),r=K(),i=X(),o=Y(),a=M(),u=R(),s=r("wks"),l=n.Symbol,c=l&&l.for,p=u?l:l&&l.withoutSetter||o;t.exports=function(e){if(!i(s,e)||!a&&"string"!=typeof s[e]){var t="Symbol."+e;a&&i(l,e)?s[e]=l[e]:s[e]=u&&c?c(t):p(t)}return s[e]}})),Z=D((function(e,t){var n=b(),r=A(),i=j(),o=q(),a=z(),u=H(),s=Q(),l=n.TypeError,c=s("toPrimitive");t.exports=function(e,t){if(!i(e)||o(e))return e;var n,s=a(e,c);if(s){if(void 0===t&&(t="default"),n=r(s,e,t),!i(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}})),ee=D((function(e,t){var n=Z(),r=q();t.exports=function(e){var t=n(e,"string");return r(t)?t:t+""}})),te=D((function(e,t){var n=b(),r=j(),i=n.document,o=r(i)&&r(i.createElement);t.exports=function(e){return o?i.createElement(e):{}}})),ne=D((function(e,t){var n=x(),r=E(),i=te();t.exports=!n&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))})),re=D((function(e){var t=x(),n=A(),r=w(),i=S(),o=O(),a=ee(),u=X(),s=ne(),l=Object.getOwnPropertyDescriptor;e.f=t?l:function(e,t){if(e=o(e),t=a(t),s)try{return l(e,t)}catch(c){}if(u(e,t))return i(!n(r.f,e,t),e[t])}})),ie=D((function(e,t){var n=x(),r=E();t.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),oe=D((function(e,t){var n=b(),r=j(),i=n.String,o=n.TypeError;t.exports=function(e){if(r(e))return e;throw o(i(e)+" is not an object")}})),ae=D((function(e){var t=b(),n=x(),r=ne(),i=ie(),o=oe(),a=ee(),u=t.TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c="enumerable",p="configurable",f="writable";e.f=n?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=l(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:c in n?n[c]:r[c],writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(o(e),t=a(t),o(n),r)try{return s(e,t,n)}catch(i){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}})),ue=D((function(e,t){var n=x(),r=ae(),i=S();t.exports=n?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}})),se=D((function(e,t){var n=F(),r=N(),i=G(),o=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),t.exports=i.inspectSource})),le=D((function(e,t){var n=b(),r=N(),i=se(),o=n.WeakMap;t.exports=r(o)&&/native code/.test(i(o))})),ce=D((function(e,t){var n=K(),r=Y(),i=n("keys");t.exports=function(e){return i[e]||(i[e]=r(e))}})),pe=D((function(e,t){t.exports={}})),fe=D((function(e,t){var n,r,i,o,a,u,s,l,c=le(),p=b(),f=F(),d=j(),h=ue(),y=X(),m=G(),v=ce(),g=pe(),D="Object already initialized",E=p.TypeError,x=p.WeakMap,C=function(e){return i(e)?r(e):n(e,{})},A=function(e){return function(t){var n;if(!d(t)||(n=r(t)).type!==e)throw E("Incompatible receiver, "+e+" required");return n}};c||m.state?(o=m.state||(m.state=new x),a=f(o.get),u=f(o.has),s=f(o.set),n=function(e,t){if(u(o,e))throw new E(D);return t.facade=e,s(o,e,t),t},r=function(e){return a(o,e)||{}},i=function(e){return u(o,e)}):(g[l=v("state")]=!0,n=function(e,t){if(y(e,l))throw new E(D);return t.facade=e,h(e,l,t),t},r=function(e){return y(e,l)?e[l]:{}},i=function(e){return y(e,l)}),t.exports={set:n,get:r,has:i,enforce:C,getterFor:A}})),de=D((function(e,t){var n=x(),r=X(),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=r(i,"name"),u=a&&"something"===function(){}.name,s=a&&(!n||n&&o(i,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:s}})),he=D((function(e,t){var n=b(),r=N(),i=X(),o=ue(),a=$(),u=se(),s=fe(),l=de().CONFIGURABLE,c=s.get,p=s.enforce,f=String(String).split("String");(t.exports=function(e,t,u,s){var c,d=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,y=!!s&&!!s.noTargetGet,m=s&&void 0!==s.name?s.name:t;r(u)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(u,"name")||l&&u.name!==m)&&o(u,"name",m),(c=p(u)).source||(c.source=f.join("string"==typeof m?m:""))),e!==n?(d?!y&&e[t]&&(h=!0):delete e[t],h?e[t]=u:o(e,t,u)):h?e[t]=u:a(t,u)})(Function.prototype,"toString",(function(){return r(this)&&c(this).source||u(this)}))})),ye=D((function(e,t){var n=Math.ceil,r=Math.floor;t.exports=function(e){var t=+e;return t!==t||0===t?0:(t>0?r:n)(t)}})),me=D((function(e,t){var n=ye(),r=Math.max,i=Math.min;t.exports=function(e,t){var o=n(e);return o<0?r(o+t,0):i(o,t)}})),ve=D((function(e,t){var n=ye(),r=Math.min;t.exports=function(e){return e>0?r(n(e),9007199254740991):0}})),ge=D((function(e,t){var n=ve();t.exports=function(e){return n(e.length)}})),De=D((function(e,t){var n=O(),r=me(),i=ge(),o=function(e){return function(t,o,a){var u,s=n(t),l=i(s),c=r(a,l);if(e&&o!=o){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===o)return e||c||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}})),be=D((function(e,t){var n=F(),r=X(),i=O(),o=De().indexOf,a=pe(),u=n([].push);t.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&u(c,n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||u(c,n));return c}})),Ee=D((function(e,t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),xe=D((function(e){var t=be(),n=Ee().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,n)}})),Ce=D((function(e){e.f=Object.getOwnPropertySymbols})),Ae=D((function(e,t){var n=P(),r=F(),i=xe(),o=Ce(),a=oe(),u=r([].concat);t.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?u(t,n(e)):t}})),we=D((function(e,t){var n=X(),r=Ae(),i=re(),o=ae();t.exports=function(e,t,a){for(var u=r(t),s=o.f,l=i.f,c=0;c<u.length;c++){var p=u[c];!n(e,p)&&(!a||!n(a,p))&&s(e,p,l(t,p))}}})),Se=D((function(e,t){var n=E(),r=N(),i=/#|\.prototype\./,o=function(e,t){var i=u[a(e)];return i==l||i!=s&&(r(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=o.data={},s=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o})),Fe=D((function(e,t){var n=b(),r=re().f,i=ue(),o=he(),a=$(),u=we(),s=Se();t.exports=function(e,t){var l,c,p,f,d,h=e.target,y=e.global,m=e.stat;if(l=y?n:m?n[h]||a(h,{}):(n[h]||{}).prototype)for(c in t){if(f=t[c],p=e.noTargetGet?(d=r(l,c))&&d.value:l[c],!s(y?c:h+(m?".":"#")+c,e.forced)&&void 0!==p){if(typeof f==typeof p)continue;u(f,p)}(e.sham||p&&p.sham)&&i(f,"sham",!0),o(l,c,f,e)}}})),ke=D((function(e,t){var n=k();t.exports=Array.isArray||function(e){return"Array"==n(e)}})),_e=D((function(e,t){var n=F(),r=U(),i=C(),o=n(n.bind);t.exports=function(e,t){return r(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}})),Te=D((function(e,t){var n=b(),r=ke(),i=ge(),o=_e(),a=n.TypeError,u=function e(t,n,u,s,l,c,p,f){for(var d,h=l,y=0,m=!!p&&o(p,f);y<s;){if(y in u){if(d=m?m(u[y],y,n):u[y],c>0&&r(d))h=e(t,n,d,i(d),h,c-1)-1;else{if(h>=9007199254740991)throw a("Exceed the acceptable array length");t[h]=d}h++}y++}return h};t.exports=u})),Oe=D((function(e,t){var n={};n[Q()("toStringTag")]="z",t.exports="[object z]"===String(n)})),Ne=D((function(e,t){var n=b(),r=Oe(),i=N(),o=k(),a=Q()("toStringTag"),u=n.Object,s="Arguments"==o(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};t.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=u(e),a))?n:s?o(t):"Object"==(r=o(t))&&i(t.callee)?"Arguments":r}})),je=D((function(e,t){var n=F(),r=E(),i=N(),o=Ne(),a=P(),u=se(),s=function(){},l=[],c=a("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=n(p.exec),d=!p.exec(s),h=function(e){if(!i(e))return!1;try{return c(s,l,e),!0}catch(t){return!1}},y=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!f(p,u(e))}catch(t){return!0}};y.sham=!0,t.exports=!c||r((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?y:h})),Pe=D((function(e,t){var n=b(),r=ke(),i=je(),o=j(),a=Q()("species"),u=n.Array;t.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===u||r(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?u:t}})),Be=D((function(e,t){var n=Pe();t.exports=function(e,t){return new(n(e))(0===t?0:t)}})),Ie=D((function(){var e=Fe(),t=Te(),n=U(),r=J(),i=ge(),o=Be();e({target:"Array",proto:!0},{flatMap:function(e){var a,u=r(this),s=i(u);return n(e),(a=o(u,0)).length=t(a,u,u,s,0,1,e,arguments.length>1?arguments[1]:void 0),a}})})),Le=D((function(e,t){t.exports={}})),Me=D((function(e,t){var n=Q(),r=Le(),i=n("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}})),Re=D((function(e,t){var n=Ne(),r=z(),i=Le(),o=Q()("iterator");t.exports=function(e){if(null!=e)return r(e,o)||r(e,"@@iterator")||i[n(e)]}})),qe=D((function(e,t){var n=b(),r=A(),i=U(),o=oe(),a=V(),u=Re(),s=n.TypeError;t.exports=function(e,t){var n=arguments.length<2?u(e):t;if(i(n))return o(r(n,e));throw s(a(e)+" is not iterable")}})),Ve=D((function(e,t){var n=A(),r=oe(),i=z();t.exports=function(e,t,o){var a,u;r(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw o;return o}a=n(a,e)}catch(s){u=!0,a=s}if("throw"===t)throw o;if(u)throw a;return r(a),o}})),Ue=D((function(e,t){var n=b(),r=_e(),i=A(),o=oe(),a=V(),u=Me(),s=ge(),l=B(),c=qe(),p=Re(),f=Ve(),d=n.TypeError,h=function(e,t){this.stopped=e,this.result=t},y=h.prototype;t.exports=function(e,t,n){var m,v,g,D,b,E,x,C=n&&n.that,A=!(!n||!n.AS_ENTRIES),w=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),F=r(t,C),k=function(e){return m&&f(m,"normal",e),new h(!0,e)},_=function(e){return A?(o(e),S?F(e[0],e[1],k):F(e[0],e[1])):S?F(e,k):F(e)};if(w)m=e;else{if(!(v=p(e)))throw d(a(e)+" is not iterable");if(u(v)){for(g=0,D=s(e);D>g;g++)if((b=_(e[g]))&&l(y,b))return b;return new h(!1)}m=c(e,v)}for(E=m.next;!(x=i(E,m)).done;){try{b=_(x.value)}catch(T){f(m,"throw",T)}if("object"==typeof b&&b&&l(y,b))return b}return new h(!1)}})),ze=D((function(e,t){var n=ee(),r=ae(),i=S();t.exports=function(e,t,o){var a=n(t);a in e?r.f(e,a,i(0,o)):e[a]=o}})),He=D((function(){var e=Fe(),t=Ue(),n=ze();e({target:"Object",stat:!0},{fromEntries:function(e){var r={};return t(e,(function(e,t){n(r,e,t)}),{AS_ENTRIES:!0}),r}})})),We=D((function(){Fe()({global:!0},{globalThis:b()})})),$e=D((function(){We()})),Ge=D((function(){var e=Fe(),t=Te(),n=J(),r=ge(),i=ye(),o=Be();e({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,a=n(this),u=r(a),s=o(a,0);return s.length=t(s,a,a,u,0,void 0===e?1:i(e)),s}})})),Ke=D((function(n,D){var b,E,x,C,A,w,S=["cliName","cliCategory","cliDescription"],F=["_"],k=["languageId"];function _(e,t){if(null==e)return{};var n,r,i=T(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 T(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}function O(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Ie(),He(),$e(),Ge();var N,j=Object.create,P=Object.defineProperty,B=Object.getOwnPropertyDescriptor,I=Object.getOwnPropertyNames,L=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,R=function(e,t){return function(){return e&&(t=(0,e[I(e)[0]])(e=0)),t}},q=function(e,t){return function(){return t||(0,e[I(e)[0]])((t={exports:{}}).exports,t),t.exports}},V=function(e,t){for(var n in t)P(e,n,{get:t[n],enumerable:!0})},U=function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var i,o=g(I(t));try{var a=function(){var o=i.value;!M.call(e,o)&&o!==n&&P(e,o,{get:function(){return t[o]},enumerable:!(r=B(t,o))||r.enumerable})};for(o.s();!(i=o.n()).done;)a()}catch(u){o.e(u)}finally{o.f()}}return e},z=function(e,t,n){return n=null!=e?j(L(e)):{},U(!t&&e&&e.__esModule?n:P(n,"default",{value:e,enumerable:!0}),e)},H=function(e){return U(P({},"__esModule",{value:!0}),e)},W=R({"<define:process>":function(){N={env:{},argv:[]}}}),$=q({"package.json":function(e,t){t.exports={version:"2.7.1"}}}),G=q({"node_modules/diff/lib/diff/base.js":function(e){function t(){}function n(e,t,n,r,i){for(var o=0,a=t.length,u=0,s=0;o<a;o++){var l=t[o];if(l.removed){if(l.value=e.join(r.slice(s,s+l.count)),s+=l.count,o&&t[o-1].added){var c=t[o-1];t[o-1]=t[o],t[o]=c}}else{if(!l.added&&i){var p=n.slice(u,u+l.count);p=p.map((function(e,t){var n=r[s+t];return n.length>e.length?n:e})),l.value=e.join(p)}else l.value=e.join(n.slice(u,u+l.count));u+=l.count,l.added||(s+=l.count)}}var f=t[a-1];return a>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[a-2].value+=f.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}W(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.prototype={diff:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callback;"function"==typeof i&&(o=i,i={}),this.options=i;var a=this;function u(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,c=1,p=s+l,f=[{newPos:-1,components:[]}],d=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=s&&d+1>=l)return u([{value:this.join(t),count:t.length}]);function h(){for(var i=-1*c;i<=c;i+=2){var o=void 0,p=f[i-1],d=f[i+1],h=(d?d.newPos:0)-i;p&&(f[i-1]=void 0);var y=p&&p.newPos+1<s,m=d&&0<=h&&h<l;if(y||m){if(!y||m&&p.newPos<d.newPos?(o=r(d),a.pushComponent(o.components,void 0,!0)):((o=p).newPos++,a.pushComponent(o.components,!0,void 0)),h=a.extractCommon(o,t,e,i),o.newPos+1>=s&&h+1>=l)return u(n(a,o.components,t,e,a.useLongestToken));f[i]=o}else f[i]=void 0}c++}if(o)!function e(){setTimeout((function(){if(c>p)return o();h()||e()}),0)}();else for(;c<=p;){var y=h();if(y)return y}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,a=e.newPos,u=a-r,s=0;a+1<i&&u+1<o&&this.equals(t[a+1],n[u+1]);)a++,u++,s++;return s&&e.components.push({count:s}),e.newPos=a,u},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}}}),K=q({"node_modules/diff/lib/diff/array.js":function(e){function t(e){return e&&e.__esModule?e:{default:e}}W(),Object.defineProperty(e,"__esModule",{value:!0}),e.diffArrays=r,e.arrayDiff=void 0;var n=new(t(G()).default);function r(e,t,r){return n.diff(e,t,r)}e.arrayDiff=n,n.tokenize=function(e){return e.slice()},n.join=n.removeEmpty=function(e){return e}}}),J=q({"src/document/doc-builders.js":function(e,t){function n(e){return{type:"concat",parts:e}}function r(e){return{type:"indent",contents:e}}function i(e,t){return{type:"align",contents:t,n:e}}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"group",id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}function a(e){return i(Number.NEGATIVE_INFINITY,e)}function u(e){return i({type:"root"},e)}function s(e){return i(-1,e)}function l(e,t){return o(e[0],Object.assign(Object.assign({},t),{},{expandedStates:e}))}function c(e){return{type:"fill",parts:e}}function p(e,t){return{type:"if-break",breakContents:e,flatContents:t,groupId:(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).groupId}}function f(e,t){return{type:"indent-if-break",contents:e,groupId:t.groupId,negate:t.negate}}function d(e){return{type:"line-suffix",contents:e}}W();var h={type:"line-suffix-boundary"},y={type:"break-parent"},m={type:"trim"},v={type:"line",hard:!0},g={type:"line",hard:!0,literal:!0},D={type:"line"},b={type:"line",soft:!0},E=n([v,y]),x=n([g,y]),C={type:"cursor",placeholder:Symbol("cursor")};function A(e,t){for(var r=[],i=0;i<t.length;i++)0!==i&&r.push(e),r.push(t[i]);return n(r)}function w(e,t,n){var o=e;if(t>0){for(var a=0;a<Math.floor(t/n);++a)o=r(o);o=i(t%n,o),o=i(Number.NEGATIVE_INFINITY,o)}return o}function S(e,t){return{type:"label",label:e,contents:t}}t.exports={concat:n,join:A,line:D,softline:b,hardline:E,literalline:x,group:o,conditionalGroup:l,fill:c,lineSuffix:d,lineSuffixBoundary:h,cursor:C,breakParent:y,ifBreak:p,trim:m,indent:r,indentIfBreak:f,align:i,addAlignmentToDoc:w,markAsRoot:u,dedentToRoot:a,dedent:s,hardlineWithoutBreakParent:v,literallineWithoutBreakParent:g,label:S}}}),X=q({"src/common/end-of-line.js":function(e,t){function n(e){var t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}function r(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function i(e,t){var n;switch(t){case"\n":n=/\n/g;break;case"\r":n=/\r/g;break;case"\r\n":n=/\r\n/g;break;default:throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."))}var r=e.match(n);return r?r.length:0}function o(e){return e.replace(/\r\n?/g,"\n")}W(),t.exports={guessEndOfLine:n,convertEndOfLineToChars:r,countEndOfLineChars:i,normalizeEndOfLine:o}}}),Y=q({"src/utils/get-last.js":function(e,t){W();var n=function(e){return e[e.length-1]};t.exports=n}});function Q(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onlyFirst,t=void 0!==e&&e,n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")}var Z=R({"node_modules/strip-ansi/node_modules/ansi-regex/index.js":function(){W()}});function ee(e){if("string"!=typeof e)throw new TypeError("Expected a `string`, got `".concat(typeof e,"`"));return e.replace(Q(),"")}var te=R({"node_modules/strip-ansi/index.js":function(){W(),Z()}});function ne(e){return!!Number.isInteger(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)}var re=R({"node_modules/is-fullwidth-code-point/index.js":function(){W()}}),ie=q({"node_modules/emoji-regex/index.js":function(e,t){W(),t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}}),oe={};function ae(e){if("string"!=typeof e||0===e.length||0===(e=ee(e)).length)return 0;e=e.replace((0,ue.default)()," ");for(var t=0,n=0;n<e.length;n++){var r=e.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=ne(r)?2:1)}return t}V(oe,{default:function(){return ae}});var ue,se=R({"node_modules/string-width/index.js":function(){W(),te(),re(),ue=z(ie())}}),le=q({"src/utils/get-string-width.js":function(e,t){W();var n=(se(),H(oe)).default,r=/[^\x20-\x7F]/;function i(e){return e?r.test(e)?n(e):e.length:0}t.exports=i}}),ce=q({"src/document/doc-utils.js":function(e,t){W();var n=Y(),r=J(),i=r.literalline,o=r.join,a=function(e){return Array.isArray(e)||e&&"concat"===e.type},u=function(e){if(Array.isArray(e))return e;if("concat"!==e.type&&"fill"!==e.type)throw new Error("Expect doc type to be `concat` or `fill`.");return e.parts},s={};function l(e,t,n,r){for(var i=[e];i.length>0;){var o=i.pop();if(o!==s){if(n&&i.push(o,s),!t||!1!==t(o))if(a(o)||"fill"===o.type)for(var l=u(o),c=l.length-1;c>=0;--c)i.push(l[c]);else if("if-break"===o.type)o.flatContents&&i.push(o.flatContents),o.breakContents&&i.push(o.breakContents);else if("group"===o.type&&o.expandedStates)if(r)for(var p=o.expandedStates.length-1;p>=0;--p)i.push(o.expandedStates[p]);else i.push(o.contents);else o.contents&&i.push(o.contents)}else n(i.pop())}}function c(e,t){var n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);var t=i(e);return n.set(e,t),t}function i(e){if(Array.isArray(e))return t(e.map(r));if("concat"===e.type||"fill"===e.type){var n=e.parts.map(r);return t(Object.assign(Object.assign({},e),{},{parts:n}))}if("if-break"===e.type){var i=e.breakContents&&r(e.breakContents),o=e.flatContents&&r(e.flatContents);return t(Object.assign(Object.assign({},e),{},{breakContents:i,flatContents:o}))}if("group"===e.type&&e.expandedStates){var a=e.expandedStates.map(r),u=a[0];return t(Object.assign(Object.assign({},e),{},{contents:u,expandedStates:a}))}if(e.contents){var s=r(e.contents);return t(Object.assign(Object.assign({},e),{},{contents:s}))}return t(e)}}function p(e,t,n){var r=n,i=!1;function o(e){var n=t(e);if(void 0!==n&&(i=!0,r=n),i)return!1}return l(e,o),r}function f(e){if("group"===e.type&&e.break||"line"===e.type&&e.hard||"break-parent"===e.type)return!0}function d(e){return p(e,f,!1)}function h(e){if(e.length>0){var t=n(e);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function y(e){var t=new Set,n=[];function r(e){if("break-parent"===e.type&&h(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}function i(e){"group"===e.type&&n.pop().break&&h(n)}l(e,r,i,!0)}function D(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function b(e){return c(e,D)}var E=function(e,t){return e&&"line"===e.type&&e.hard&&t&&"break-parent"===t.type};function x(e){if(!e)return e;if(a(e)||"fill"===e.type){for(var t=u(e);t.length>1&&E.apply(void 0,v(t.slice(-2)));)t.length-=2;if(t.length>0){var r=x(n(t));t[t.length-1]=r}return Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})}switch(e.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":var i=x(e.contents);return Object.assign(Object.assign({},e),{},{contents:i});case"if-break":var o=x(e.breakContents),s=x(e.flatContents);return Object.assign(Object.assign({},e),{},{breakContents:o,flatContents:s})}return e}function C(e){return x(w(e))}function A(e){switch(e.type){case"fill":if(e.parts.every((function(e){return""===e})))return"";break;case"group":if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if("group"===e.contents.type&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!e.contents)return"";break;case"if-break":if(!e.flatContents&&!e.breakContents)return""}if(!a(e))return e;var t,r=[],i=g(u(e));try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o){var s=a(o)?u(o):[o],l=m(s),c=l[0],p=l.slice(1);"string"==typeof c&&"string"==typeof n(r)?r[r.length-1]+=c:r.push(c),r.push.apply(r,v(p))}}}catch(f){i.e(f)}finally{i.f()}return 0===r.length?"":1===r.length?r[0]:Array.isArray(e)?r:Object.assign(Object.assign({},e),{},{parts:r})}function w(e){return c(e,(function(e){return A(e)}))}function S(e){for(var t=[],r=e.filter(Boolean);r.length>0;){var i=r.shift();if(i){if(a(i)){r.unshift.apply(r,v(u(i)));continue}if(t.length>0&&"string"==typeof n(t)&&"string"==typeof i){t[t.length-1]+=i;continue}t.push(i)}}return t}function F(e){return c(e,(function(e){return Array.isArray(e)?S(e):e.parts?Object.assign(Object.assign({},e),{},{parts:S(e.parts)}):e}))}function k(e){return c(e,(function(e){return"string"==typeof e&&e.includes("\n")?_(e):e}))}function _(e){return o(arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,e.split("\n")).parts}function T(e){if("line"===e.type)return!0}function O(e){return p(e,T,!1)}t.exports={isConcat:a,getDocParts:u,willBreak:d,traverseDoc:l,findInDoc:p,mapDoc:c,propagateBreaks:y,removeLines:b,stripTrailingHardline:C,normalizeParts:S,normalizeDoc:F,cleanDoc:w,replaceTextEndOfLine:_,replaceEndOfLine:k,canBreak:O}}}),pe=q({"src/document/doc-printer.js":function(e,t){W();var n,r=X().convertEndOfLineToChars,i=Y(),o=le(),a=J(),u=a.fill,s=a.cursor,l=a.indent,c=ce(),p=c.isConcat,f=c.getDocParts,d=1,h=2;function m(){return{value:"",length:0,queue:[]}}function D(e,t){return E(e,{type:"indent"},t)}function b(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||m():t<0?E(e,{type:"dedent"},n):t?"root"===t.type?Object.assign(Object.assign({},e),{},{root:e}):E(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},n):e}function E(e,t,n){var r,i="dedent"===t.type?e.queue.slice(0,-1):[].concat(v(e.queue),[t]),o="",a=0,u=0,s=0,l=g(i);try{for(l.s();!(r=l.n()).done;){var c=r.value;switch(c.type){case"indent":d(),n.useTabs?p(1):f(n.tabWidth);break;case"stringAlign":d(),o+=c.n,a+=c.n.length;break;case"numberAlign":u+=1,s+=c.n;break;default:throw new Error("Unexpected type '".concat(c.type,"'"))}}}catch(D){l.e(D)}finally{l.f()}return y(),Object.assign(Object.assign({},e),{},{value:o,length:a,queue:i});function p(e){o+="\t".repeat(e),a+=n.tabWidth*e}function f(e){o+=" ".repeat(e),a+=e}function d(){n.useTabs?h():y()}function h(){u>0&&p(u),m()}function y(){s>0&&f(s),m()}function m(){u=0,s=0}}function x(e){if(0===e.length)return 0;for(var t=0;e.length>0&&"string"==typeof i(e)&&/^[\t ]*$/.test(i(e));)t+=e.pop().length;if(e.length>0&&"string"==typeof i(e)){var n=i(e).replace(/[\t ]*$/,"");t+=i(e).length-n.length,e[e.length-1]=n}return t}function C(e,t,r,a,u,s){for(var c=t.length,m=[e],v=[];r>=0;)if(0!==m.length){var g=m.pop(),E=y(g,3),C=E[0],A=E[1],w=E[2];if("string"==typeof w)v.push(w),r-=o(w);else if(p(w))for(var S=f(w),F=S.length-1;F>=0;F--)m.push([C,A,S[F]]);else switch(w.type){case"indent":m.push([D(C,a),A,w.contents]);break;case"align":m.push([b(C,w.n,a),A,w.contents]);break;case"trim":r+=x(v);break;case"group":if(s&&w.break)return!1;var k=w.break?d:A;m.push([C,k,w.expandedStates&&k===d?i(w.expandedStates):w.contents]),w.id&&(n[w.id]=k);break;case"fill":for(var _=w.parts.length-1;_>=0;_--)m.push([C,A,w.parts[_]]);break;case"if-break":case"indent-if-break":var T=w.groupId?n[w.groupId]:A;if(T===d){var O="if-break"===w.type?w.breakContents:w.negate?w.contents:l(w.contents);O&&m.push([C,A,O])}if(T===h){var N="if-break"===w.type?w.flatContents:w.negate?l(w.contents):w.contents;N&&m.push([C,A,N])}break;case"line":switch(A){case h:if(!w.hard){w.soft||(v.push(" "),r-=1);break}return!0;case d:return!0}break;case"line-suffix":u=!0;break;case"line-suffix-boundary":if(u)return!1;break;case"label":m.push([C,A,w.contents])}}else{if(0===c)return!0;m.push(t[c-1]),c--}return!1}function A(e,t){n={};for(var a=t.printWidth,c=r(t.endOfLine),g=0,E=[[m(),d,e]],A=[],w=!1,S=[];E.length>0;){var F=E.pop(),k=y(F,3),_=k[0],T=k[1],O=k[2];if("string"==typeof O){var N="\n"!==c?O.replace(/\n/g,c):O;A.push(N),g+=o(N)}else if(p(O))for(var j=f(O),P=j.length-1;P>=0;P--)E.push([_,T,j[P]]);else switch(O.type){case"cursor":A.push(s.placeholder);break;case"indent":E.push([D(_,t),T,O.contents]);break;case"align":E.push([b(_,O.n,t),T,O.contents]);break;case"trim":g-=x(A);break;case"group":switch(T){case h:if(!w){E.push([_,O.break?d:h,O.contents]);break}case d:w=!1;var B=[_,h,O.contents],I=a-g,L=S.length>0;if(!O.break&&C(B,E,I,t,L))E.push(B);else if(O.expandedStates){var M=i(O.expandedStates);if(O.break){E.push([_,d,M]);break}for(var R=1;R<O.expandedStates.length+1;R++){if(R>=O.expandedStates.length){E.push([_,d,M]);break}var q=O.expandedStates[R],V=[_,h,q];if(C(V,E,I,t,L)){E.push(V);break}}}else E.push([_,d,O.contents])}O.id&&(n[O.id]=i(E)[1]);break;case"fill":var U=a-g,z=O.parts;if(0===z.length)break;var H=y(z,2),W=H[0],$=H[1],G=[_,h,W],K=[_,d,W],J=C(G,[],U,t,S.length>0,!0);if(1===z.length){J?E.push(G):E.push(K);break}var X=[_,h,$],Y=[_,d,$];if(2===z.length){J?E.push(X,G):E.push(Y,K);break}z.splice(0,2);var Q=[_,T,u(z)],Z=z[0];C([_,h,[W,$,Z]],[],U,t,S.length>0,!0)?E.push(Q,X,G):J?E.push(Q,Y,G):E.push(Q,Y,K);break;case"if-break":case"indent-if-break":var ee=O.groupId?n[O.groupId]:T;if(ee===d){var te="if-break"===O.type?O.breakContents:O.negate?O.contents:l(O.contents);te&&E.push([_,T,te])}if(ee===h){var ne="if-break"===O.type?O.flatContents:O.negate?l(O.contents):O.contents;ne&&E.push([_,T,ne])}break;case"line-suffix":S.push([_,T,O.contents]);break;case"line-suffix-boundary":S.length>0&&E.push([_,T,{type:"line",hard:!0}]);break;case"line":switch(T){case h:if(!O.hard){O.soft||(A.push(" "),g+=1);break}w=!0;case d:if(S.length>0){E.push.apply(E,[[_,T,O]].concat(v(S.reverse()))),S=[];break}O.literal?_.root?(A.push(c,_.root.value),g=_.root.length):(A.push(c),g=0):(g-=x(A),A.push(c+_.value),g=_.length)}break;case"label":E.push([_,T,O.contents])}0===E.length&&S.length>0&&(E.push.apply(E,v(S.reverse())),S=[])}var re=A.indexOf(s.placeholder);if(-1!==re){var ie=A.indexOf(s.placeholder,re+1),oe=A.slice(0,re).join(""),ae=A.slice(re+1,ie).join("");return{formatted:oe+ae+A.slice(ie+1).join(""),cursorNodeStart:oe.length,cursorNodeText:ae}}return{formatted:A.join("")}}t.exports={printDocToString:A}}}),fe=q({"src/document/doc-debug.js":function(e,t){W();var n=ce(),r=n.isConcat,i=n.getDocParts;function o(e){if(!e)return"";if(r(e)){var t,n=[],a=g(i(e));try{for(a.s();!(t=a.n()).done;){var u=t.value;if(r(u))n.push.apply(n,v(o(u).parts));else{var s=o(u);""!==s&&n.push(s)}}}catch(l){a.e(l)}finally{a.f()}return{type:"concat",parts:n}}return"if-break"===e.type?Object.assign(Object.assign({},e),{},{breakContents:o(e.breakContents),flatContents:o(e.flatContents)}):"group"===e.type?Object.assign(Object.assign({},e),{},{contents:o(e.contents),expandedStates:e.expandedStates&&e.expandedStates.map(o)}):"fill"===e.type?{type:"fill",parts:e.parts.map(o)}:e.contents?Object.assign(Object.assign({},e),{},{contents:o(e.contents)}):e}function a(e){var t=Object.create(null),n=new Set;return a(o(e));function a(e,t,n){if("string"==typeof e)return JSON.stringify(e);if(r(e)){var o=i(e).map(a).filter(Boolean);return 1===o.length?o[0]:"[".concat(o.join(", "),"]")}if("line"===e.type){var s=Array.isArray(n)&&n[t+1]&&"break-parent"===n[t+1].type;return e.literal?s?"literalline":"literallineWithoutBreakParent":e.hard?s?"hardline":"hardlineWithoutBreakParent":e.soft?"softline":"line"}if("break-parent"===e.type)return Array.isArray(n)&&n[t-1]&&"line"===n[t-1].type&&n[t-1].hard?void 0:"breakParent";if("trim"===e.type)return"trim";if("indent"===e.type)return"indent("+a(e.contents)+")";if("align"===e.type)return e.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+a(e.contents)+")":e.n<0?"dedent("+a(e.contents)+")":"root"===e.n.type?"markAsRoot("+a(e.contents)+")":"align("+JSON.stringify(e.n)+", "+a(e.contents)+")";if("if-break"===e.type)return"ifBreak("+a(e.breakContents)+(e.flatContents?", "+a(e.flatContents):"")+(e.groupId?(e.flatContents?"":', ""')+", { groupId: ".concat(u(e.groupId)," }"):"")+")";if("indent-if-break"===e.type){var l=[];e.negate&&l.push("negate: true"),e.groupId&&l.push("groupId: ".concat(u(e.groupId)));var c=l.length>0?", { ".concat(l.join(", ")," }"):"";return"indentIfBreak(".concat(a(e.contents)).concat(c,")")}if("group"===e.type){var p=[];e.break&&"propagated"!==e.break&&p.push("shouldBreak: true"),e.id&&p.push("id: ".concat(u(e.id)));var f=p.length>0?", { ".concat(p.join(", ")," }"):"";return e.expandedStates?"conditionalGroup([".concat(e.expandedStates.map((function(e){return a(e)})).join(","),"]").concat(f,")"):"group(".concat(a(e.contents)).concat(f,")")}if("fill"===e.type)return"fill([".concat(e.parts.map((function(e){return a(e)})).join(", "),"])");if("line-suffix"===e.type)return"lineSuffix("+a(e.contents)+")";if("line-suffix-boundary"===e.type)return"lineSuffixBoundary";if("label"===e.type)return"label(".concat(JSON.stringify(e.label),", ").concat(a(e.contents),")");throw new Error("Unknown doc type "+e.type)}function u(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];for(var r=String(e).slice(7,-1)||"symbol",i=0;;i++){var o=r+(i>0?" #".concat(i):"");if(!n.has(o))return n.add(o),t[e]="Symbol.for(".concat(JSON.stringify(o),")")}}}t.exports={printDocToDebug:a}}}),de=q({"src/document/index.js":function(e,t){W(),t.exports={builders:J(),printer:pe(),utils:ce(),debug:fe()}}}),he={};function ye(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}V(he,{default:function(){return ye}});var me=R({"node_modules/escape-string-regexp/index.js":function(){W()}}),ve=q({"node_modules/semver/internal/debug.js":function(e,t){W();var n="object"==typeof N&&N.env&&N.env.NODE_DEBUG&&/\bsemver\b/i.test(N.env.NODE_DEBUG)?function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).error.apply(e,["SEMVER"].concat(n))}:function(){};t.exports=n}}),ge=q({"node_modules/semver/internal/constants.js":function(e,t){W();var n="2.0.0",r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=16;t.exports={SEMVER_SPEC_VERSION:n,MAX_LENGTH:r,MAX_SAFE_INTEGER:i,MAX_SAFE_COMPONENT_LENGTH:o}}}),De=q({"node_modules/semver/internal/re.js":function(e,t){W();var n=ge().MAX_SAFE_COMPONENT_LENGTH,r=ve(),i=(e=t.exports={}).re=[],o=e.src=[],a=e.t={},u=0,s=function(e,t,n){var s=u++;r(e,s,t),a[e]=s,o[s]=t,i[s]=new RegExp(t,n?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION","(".concat(o[a.NUMERICIDENTIFIER],")\\.(").concat(o[a.NUMERICIDENTIFIER],")\\.(").concat(o[a.NUMERICIDENTIFIER],")")),s("MAINVERSIONLOOSE","(".concat(o[a.NUMERICIDENTIFIERLOOSE],")\\.(").concat(o[a.NUMERICIDENTIFIERLOOSE],")\\.(").concat(o[a.NUMERICIDENTIFIERLOOSE],")")),s("PRERELEASEIDENTIFIER","(?:".concat(o[a.NUMERICIDENTIFIER],"|").concat(o[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASEIDENTIFIERLOOSE","(?:".concat(o[a.NUMERICIDENTIFIERLOOSE],"|").concat(o[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASE","(?:-(".concat(o[a.PRERELEASEIDENTIFIER],"(?:\\.").concat(o[a.PRERELEASEIDENTIFIER],")*))")),s("PRERELEASELOOSE","(?:-?(".concat(o[a.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(o[a.PRERELEASEIDENTIFIERLOOSE],")*))")),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD","(?:\\+(".concat(o[a.BUILDIDENTIFIER],"(?:\\.").concat(o[a.BUILDIDENTIFIER],")*))")),s("FULLPLAIN","v?".concat(o[a.MAINVERSION]).concat(o[a.PRERELEASE],"?").concat(o[a.BUILD],"?")),s("FULL","^".concat(o[a.FULLPLAIN],"$")),s("LOOSEPLAIN","[v=\\s]*".concat(o[a.MAINVERSIONLOOSE]).concat(o[a.PRERELEASELOOSE],"?").concat(o[a.BUILD],"?")),s("LOOSE","^".concat(o[a.LOOSEPLAIN],"$")),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE","".concat(o[a.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),s("XRANGEIDENTIFIER","".concat(o[a.NUMERICIDENTIFIER],"|x|X|\\*")),s("XRANGEPLAIN","[v=\\s]*(".concat(o[a.XRANGEIDENTIFIER],")(?:\\.(").concat(o[a.XRANGEIDENTIFIER],")(?:\\.(").concat(o[a.XRANGEIDENTIFIER],")(?:").concat(o[a.PRERELEASE],")?").concat(o[a.BUILD],"?)?)?")),s("XRANGEPLAINLOOSE","[v=\\s]*(".concat(o[a.XRANGEIDENTIFIERLOOSE],")(?:\\.(").concat(o[a.XRANGEIDENTIFIERLOOSE],")(?:\\.(").concat(o[a.XRANGEIDENTIFIERLOOSE],")(?:").concat(o[a.PRERELEASELOOSE],")?").concat(o[a.BUILD],"?)?)?")),s("XRANGE","^".concat(o[a.GTLT],"\\s*").concat(o[a.XRANGEPLAIN],"$")),s("XRANGELOOSE","^".concat(o[a.GTLT],"\\s*").concat(o[a.XRANGEPLAINLOOSE],"$")),s("COERCE","(^|[^\\d])(\\d{1,".concat(n,"})(?:\\.(\\d{1,").concat(n,"}))?(?:\\.(\\d{1,").concat(n,"}))?(?:$|[^\\d])")),s("COERCERTL",o[a.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM","(\\s*)".concat(o[a.LONETILDE],"\\s+"),!0),e.tildeTrimReplace="$1~",s("TILDE","^".concat(o[a.LONETILDE]).concat(o[a.XRANGEPLAIN],"$")),s("TILDELOOSE","^".concat(o[a.LONETILDE]).concat(o[a.XRANGEPLAINLOOSE],"$")),s("LONECARET","(?:\\^)"),s("CARETTRIM","(\\s*)".concat(o[a.LONECARET],"\\s+"),!0),e.caretTrimReplace="$1^",s("CARET","^".concat(o[a.LONECARET]).concat(o[a.XRANGEPLAIN],"$")),s("CARETLOOSE","^".concat(o[a.LONECARET]).concat(o[a.XRANGEPLAINLOOSE],"$")),s("COMPARATORLOOSE","^".concat(o[a.GTLT],"\\s*(").concat(o[a.LOOSEPLAIN],")$|^$")),s("COMPARATOR","^".concat(o[a.GTLT],"\\s*(").concat(o[a.FULLPLAIN],")$|^$")),s("COMPARATORTRIM","(\\s*)".concat(o[a.GTLT],"\\s*(").concat(o[a.LOOSEPLAIN],"|").concat(o[a.XRANGEPLAIN],")"),!0),e.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE","^\\s*(".concat(o[a.XRANGEPLAIN],")\\s+-\\s+(").concat(o[a.XRANGEPLAIN],")\\s*$")),s("HYPHENRANGELOOSE","^\\s*(".concat(o[a.XRANGEPLAINLOOSE],")\\s+-\\s+(").concat(o[a.XRANGEPLAINLOOSE],")\\s*$")),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),be=q({"node_modules/semver/internal/parse-options.js":function(e,t){W();var n=["includePrerelease","loose","rtl"],r=function(e){return e?"object"!=typeof e?{loose:!0}:n.filter((function(t){return e[t]})).reduce((function(e,t){return e[t]=!0,e}),{}):{}};t.exports=r}}),Ee=q({"node_modules/semver/internal/identifiers.js":function(e,t){W();var n=/^[0-9]+$/,r=function(e,t){var r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},i=function(e,t){return r(t,e)};t.exports={compareIdentifiers:r,rcompareIdentifiers:i}}}),xe=q({"node_modules/semver/classes/semver.js":function(e,t){W();var n=ve(),r=ge(),i=r.MAX_LENGTH,o=r.MAX_SAFE_INTEGER,a=De(),u=a.re,s=a.t,l=be(),c=Ee().compareIdentifiers,p=function(){function e(t,r){if(d(this,e),r=l(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: ".concat(t));if(t.length>i)throw new TypeError("version is longer than ".concat(i," characters"));n("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;var a=t.trim().match(r.loose?u[s.LOOSE]:u[s.FULL]);if(!a)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}return h(e,[{key:"format",value:function(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}},{key:"toString",value:function(){return this.version}},{key:"compare",value:function(t){if(n("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}},{key:"compareMain",value:function(t){return t instanceof e||(t=new e(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}},{key:"comparePre",value:function(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;var r=0;do{var i=this.prerelease[r],o=t.prerelease[r];if(n("prerelease compare",r,i,o),void 0===i&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===i)return-1;if(i!==o)return c(i,o)}while(++r)}},{key:"compareBuild",value:function(t){t instanceof e||(t=new e(t,this.options));var r=0;do{var i=this.build[r],o=t.build[r];if(n("prerelease compare",r,i,o),void 0===i&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===i)return-1;if(i!==o)return c(i,o)}while(++r)}},{key:"inc",value:function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}]),e}();t.exports=p}}),Ce=q({"node_modules/semver/functions/compare.js":function(e,t){W();var n=xe(),r=function(e,t,r){return new n(e,r).compare(new n(t,r))};t.exports=r}}),Ae=q({"node_modules/semver/functions/lt.js":function(e,t){W();var n=Ce(),r=function(e,t,r){return n(e,t,r)<0};t.exports=r}}),we=q({"node_modules/semver/functions/gte.js":function(e,t){W();var n=Ce(),r=function(e,t,r){return n(e,t,r)>=0};t.exports=r}}),Se=q({"src/utils/arrayify.js":function(e,t){W(),t.exports=function(e,t){return Object.entries(e).map((function(e){var n=y(e,2),r=n[0],i=n[1];return Object.assign(f({},t,r),i)}))}}}),Fe=q({"node_modules/outdent/lib/index.js":function(e,t){function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function r(){return typeof WeakMap<"u"?new WeakMap:i()}function i(){return{add:n,delete:n,get:n,set:n,has:function(e){return!1}}}W(),Object.defineProperty(e,"__esModule",{value:!0}),e.outdent=void 0;var o=Object.prototype.hasOwnProperty,a=function(e,t){return o.call(e,t)};function u(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return e}var s=/^[ \t]*(?:\r\n|\r|\n)/,l=/(?:\r\n|\r|\n)[ \t]*$/,c=/^(?:[\r\n]|$)/,p=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,f=/^[ \t]*[\r\n][ \t\r\n]*$/;function d(e,t,n){var r=0,i=e[0].match(p);i&&(r=i[1].length);var o=new RegExp("(\\r\\n|\\r|\\n).{0,"+r+"}","g");t&&(e=e.slice(1));var a=n.newline,u=n.trimLeadingNewline,c=n.trimTrailingNewline,f="string"==typeof a,d=e.length;return e.map((function(e,t){return e=e.replace(o,"$1"),0===t&&u&&(e=e.replace(s,"")),t===d-1&&c&&(e=e.replace(l,"")),f&&(e=e.replace(/\r\n|\n|\r/g,(function(e){return a}))),e}))}function h(e,t){for(var n="",r=0,i=e.length;r<i;r++)n+=e[r],r<i-1&&(n+=t[r]);return n}function y(e){return a(e,"raw")&&a(e,"length")}function m(e){var t=r(),n=r();function i(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];if(y(r)){var s=r,l=(o[0]===i||o[0]===v)&&f.test(s[0])&&c.test(s[1]),p=l?n:t,g=p.get(s);return g||(g=d(s,l,e),p.set(s,g)),0===o.length?g[0]:h(g,l?o.slice(1):o)}return m(u(u({},e),r||{}))}return u(i,{string:function(t){return d([t],!1,e)[0]}})}var v=m({trimLeadingNewline:!0,trimTrailingNewline:!0});if(e.outdent=v,e.default=v,typeof t<"u")try{t.exports=v,Object.defineProperty(v,"__esModule",{value:!0}),v.default=v,v.outdent=v}catch(g){}}}),ke=q({"src/main/core-options.js":function(e,t){W();var n=Fe().outdent,r="Config",i="Editor",o="Format",a="Other",u="Output",s="Global",l="Special",c={cursorOffset:{since:"1.4.0",category:l,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:n(b||(b=O(["\n Print (to stderr) where a cursor at the given position would move to after formatting.\n This option cannot be used with --range-start and --range-end.\n "]))),cliCategory:i},endOfLine:{since:"1.15.0",category:s,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:n(E||(E=O(["\n Maintain existing\n (mixed values within one file are normalised by looking at what's used after the first line)\n "])))}]},filepath:{since:"1.4.0",category:l,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:a,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:l,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:a},parser:{since:"0.0.10",category:s,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:function(e){return"string"==typeof e||"function"==typeof e},choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:s,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:function(e){return"string"==typeof e||"object"==typeof e},cliName:"plugin",cliCategory:r},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:s,description:n(x||(x=O(["\n Custom directory that contains prettier plugins in node_modules subdirectory.\n Overrides default behavior when plugins are searched relatively to the location of Prettier.\n Multiple values are accepted.\n "]))),exception:function(e){return"string"==typeof e||"object"==typeof e},cliName:"plugin-search-dir",cliCategory:r},printWidth:{since:"0.0.0",category:s,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:l,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:n(C||(C=O(["\n Format code ending at a given character offset (exclusive).\n The range will extend forwards to the end of the selected statement.\n This option cannot be used with --cursor-offset.\n "]))),cliCategory:i},rangeStart:{since:"1.4.0",category:l,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:n(A||(A=O(["\n Format code starting at a given character offset.\n The range will extend backwards to the start of the first line containing the selected statement.\n This option cannot be used with --cursor-offset.\n "]))),cliCategory:i},requirePragma:{since:"1.7.0",category:l,type:"boolean",default:!1,description:n(w||(w=O(["\n Require either '@prettier' or '@format' to be present in the file's first docblock comment\n in order for it to be formatted.\n "]))),cliCategory:a},tabWidth:{type:"int",category:s,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:s,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:s,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};t.exports={CATEGORY_CONFIG:r,CATEGORY_EDITOR:i,CATEGORY_FORMAT:o,CATEGORY_OTHER:a,CATEGORY_OUTPUT:u,CATEGORY_GLOBAL:s,CATEGORY_SPECIAL:l,options:c}}}),_e=q({"src/main/support.js":function(e,t){W();var n={compare:Ce(),lt:Ae(),gte:we()},r=Se(),i=$().version,o=ke().options;function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.plugins,a=void 0===t?[]:t,s=e.showUnreleased,l=void 0!==s&&s,c=e.showDeprecated,p=void 0!==c&&c,f=e.showInternal,d=void 0!==f&&f,h=i.split("-",1)[0],y=a.flatMap((function(e){return e.languages||[]})).filter(g),m=r(Object.assign.apply(Object,[{}].concat(v(a.map((function(e){return e.options}))),[o])),"name").filter((function(e){return g(e)&&D(e)})).sort((function(e,t){return e.name===t.name?0:e.name<t.name?-1:1})).map(b).map((function(e){e=Object.assign({},e),Array.isArray(e.default)&&(e.default=1===e.default.length?e.default[0].value:e.default.filter(g).sort((function(e,t){return n.compare(t.since,e.since)}))[0].value),Array.isArray(e.choices)&&(e.choices=e.choices.filter((function(e){return g(e)&&D(e)})),"parser"===e.name&&u(e,y,a));var t=Object.fromEntries(a.filter((function(t){return t.defaultOptions&&void 0!==t.defaultOptions[e.name]})).map((function(t){return[t.name,t.defaultOptions[e.name]]})));return Object.assign(Object.assign({},e),{},{pluginDefaults:t})}));return{languages:y,options:m};function g(e){return l||!("since"in e)||e.since&&n.gte(h,e.since)}function D(e){return p||!("deprecated"in e)||e.deprecated&&n.lt(h,e.deprecated)}function b(e){return d?e:(e.cliName,e.cliCategory,e.cliDescription,_(e,S))}}function u(e,t,n){var r,i=new Set(e.choices.map((function(e){return e.value}))),o=g(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.parsers){var u,s=g(a.parsers);try{var l=function(){var t=u.value;if(!i.has(t)){i.add(t);var r=n.find((function(e){return e.parsers&&e.parsers[t]})),o=a.name;r&&r.name&&(o+=" (plugin: ".concat(r.name,")")),e.choices.push({value:t,description:o})}};for(s.s();!(u=s.n()).done;)l()}catch(c){s.e(c)}finally{s.f()}}}}catch(c){o.e(c)}finally{o.f()}}t.exports={getSupportInfo:a}}}),Te=q({"src/utils/is-non-empty-array.js":function(e,t){function n(e){return Array.isArray(e)&&e.length>0}W(),t.exports=n}}),Oe=q({"src/utils/text/skip.js":function(e,t){function n(e){return function(t,n,r){var i=r&&r.backwards;if(!1===n)return!1;for(var o=t.length,a=n;a>=0&&a<o;){var u=t.charAt(a);if(e instanceof RegExp){if(!e.test(u))return a}else if(!e.includes(u))return a;i?a--:a++}return(-1===a||a===o)&&a}}W();var r=n(/\s/),i=n(" \t"),o=n(",; \t"),a=n(/[^\n\r]/);t.exports={skipWhitespace:r,skipSpaces:i,skipToLineEnd:o,skipEverythingButNewLine:a}}}),Ne=q({"src/utils/text/skip-inline-comment.js":function(e,t){function n(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(var n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2;return t}W(),t.exports=n}}),je=q({"src/utils/text/skip-trailing-comment.js":function(e,t){W();var n=Oe().skipEverythingButNewLine;function r(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?n(e,t):t)}t.exports=r}}),Pe=q({"src/utils/text/skip-newline.js":function(e,t){function n(e,t,n){var r=n&&n.backwards;if(!1===t)return!1;var i=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}W(),t.exports=n}}),Be=q({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js":function(e,t){W();var n=Ne(),r=Pe(),i=je(),o=Oe().skipSpaces;function a(e,t){for(var a=null,u=t;u!==a;)a=u,u=o(e,u),u=n(e,u),u=i(e,u),u=r(e,u);return u}t.exports=a}}),Le=q({"src/common/util.js":function(e,t){W();var n=(me(),H(he)).default,r=Y(),i=_e().getSupportInfo,o=Te(),a=le(),u=Oe(),s=u.skipWhitespace,l=u.skipSpaces,c=u.skipToLineEnd,p=u.skipEverythingButNewLine,f=Ne(),d=je(),h=Pe(),y=Be(),m=function(e){return e[e.length-2]};function v(e){return function(t,n,r){var i=r&&r.backwards;if(!1===n)return!1;for(var o=t.length,a=n;a>=0&&a<o;){var u=t.charAt(a);if(e instanceof RegExp){if(!e.test(u))return a}else if(!e.includes(u))return a;i?a--:a++}return(-1===a||a===o)&&a}}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=l(e,n.backwards?t-1:t,n);return r!==h(e,r,n)}function b(e,t,n){for(var r=t;r<n;++r)if("\n"===e.charAt(r))return!0;return!1}function E(e,t,n){var r=n(t)-1;return r=l(e,r,{backwards:!0}),r=h(e,r,{backwards:!0}),(r=l(e,r,{backwards:!0}))!==h(e,r,{backwards:!0})}function x(e,t){for(var n=null,r=t;r!==n;)n=r,r=c(e,r),r=f(e,r),r=l(e,r);return r=d(e,r),!1!==(r=h(e,r))&&D(e,r)}function C(e,t,n){return x(e,n(t))}function A(e,t,n){return y(e,n(t))}function w(e,t,n){return e.charAt(A(e,t,n))}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l(e,n.backwards?t-1:t,n)!==t}function F(e,t){for(var n=0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r<e.length;++r)"\t"===e[r]?n=n+t-n%t:n++;return n}function k(e,t){var n=e.lastIndexOf("\n");return-1===n?0:F(e.slice(n+1).match(/^[\t ]*/)[0],t)}function _(e,t){var n={quote:'"',regex:/"/g,escaped:"""},r={quote:"'",regex:/'/g,escaped:"'"},i="'"===t?r:n,o=i===r?n:r,a=i;return(e.includes(i.quote)||e.includes(o.quote))&&(a=(e.match(i.regex)||[]).length>(e.match(o.regex)||[]).length?o:i),a}function T(e,t){var n=e.slice(1,-1);return O(n,"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":_(n,t.singleQuote?"'":'"').quote,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))}function O(e,t,n){var r='"'===t?"'":'"',i=/\\([\s\S])|(["'])/g,o=e.replace(i,(function(e,i,o){return i===r?i:o===t?"\\"+o:o||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)}));return t+o+t}function N(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function j(e,t){var r=e.match(new RegExp("(".concat(n(t),")+"),"g"));return null===r?0:r.reduce((function(e,n){return Math.max(e,n.length/t.length)}),0)}function P(e,t){var r=e.match(new RegExp("(".concat(n(t),")+"),"g"));if(null===r)return 0;var i,o=new Map,a=0,u=g(r);try{for(u.s();!(i=u.n()).done;){var s=i.value.length/t.length;o.set(s,!0),s>a&&(a=s)}}catch(c){u.e(c)}finally{u.f()}for(var l=1;l<a;l++)if(!o.get(l))return l;return a+1}function B(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=U(e)}function I(e,t){t.leading=!0,t.trailing=!1,B(e,t)}function L(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),B(e,t)}function M(e,t){t.leading=!1,t.trailing=!0,B(e,t)}function R(e,t){var n=i({plugins:t.plugins}).languages,r=n.find((function(t){return t.name.toLowerCase()===e}))||n.find((function(t){var n=t.aliases;return Array.isArray(n)&&n.includes(e)}))||n.find((function(t){var n=t.extensions;return Array.isArray(n)&&n.includes(".".concat(e))}));return r&&r.parsers[0]}function q(e){return e&&"front-matter"===e.type}function V(e){var t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}function U(e){var t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"\u2026"),t+(n?" "+n:"")}t.exports={inferParserByLanguage:R,getStringWidth:a,getMaxContinuousCount:j,getMinNotPresentContinuousCount:P,getPenultimate:m,getLast:r,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:y,getNextNonSpaceNonCommentCharacterIndex:A,getNextNonSpaceNonCommentCharacter:w,skip:v,skipWhitespace:s,skipSpaces:l,skipToLineEnd:c,skipEverythingButNewLine:p,skipInlineComment:f,skipTrailingComment:d,skipNewline:h,isNextLineEmptyAfterIndex:x,isNextLineEmpty:C,isPreviousLineEmpty:E,hasNewline:D,hasNewlineInRange:b,hasSpaces:S,getAlignmentSize:F,getIndentSize:k,getPreferredQuote:_,printString:T,printNumber:N,makeString:O,addLeadingComment:I,addDanglingComment:L,addTrailingComment:M,isFrontMatterNode:q,isNonEmptyArray:o,createGroupIdMapper:V}}}),Me={};function Re(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function qe(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=Re(Ye(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function Ve(e){var t=Ue(e),n="/"===rt(e,-1);return!(e=Re(Ye(e.split("/"),(function(e){return!!e})),!t).join("/"))&&!t&&(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function Ue(e){return"/"===e.charAt(0)}function ze(){return Ve(Ye(Array.prototype.slice.call(arguments,0),(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function We(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=qe(e).substr(1),t=qe(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),o=Math.min(r.length,i.length),a=o,u=0;u<o;u++)if(r[u]!==i[u]){a=u;break}var s=[];for(u=a;u<r.length;u++)s.push("..");return(s=s.concat(i.slice(a))).join("/")}function Ke(e){var t=Ze(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function Je(e,t){var n=Ze(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function Xe(e){return Ze(e)[3]}function Ye(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}V(Me,{basename:function(){return Je},default:function(){return nt},delimiter:function(){return tt},dirname:function(){return Ke},extname:function(){return Xe},isAbsolute:function(){return Ue},join:function(){return ze},normalize:function(){return Ve},relative:function(){return We},resolve:function(){return qe},sep:function(){return et}});var Qe,Ze,et,tt,nt,rt,it=R({"node-modules-polyfills:path":function(){W(),Qe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Ze=function(e){return Qe.exec(e).slice(1)},nt={extname:Xe,basename:Je,dirname:Ke,sep:et="/",delimiter:tt=":",relative:We,join:ze,isAbsolute:Ue,normalize:Ve,resolve:qe},rt=function(e,t,n){return e.substr(t,n)}}}),ot=q({"node-modules-polyfills-commonjs:path":function(e,t){W();var n=(it(),H(Me));if(n&&n.default)for(var r in t.exports=n.default,n)t.exports[r]=n[r];else n&&(t.exports=n)}}),at=q({"src/common/errors.js":function(e,t){W();var n=function(e){l(n,e);var t=c(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n)}(p(Error)),r=function(e){l(n,e);var t=c(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n)}(p(Error)),i=function(e){l(n,e);var t=c(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n)}(p(Error)),o=function(e){l(n,e);var t=c(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n)}(p(Error));t.exports={ConfigError:n,DebugError:r,UndefinedParserError:i,ArgExpansionBailout:o}}}),ut={};function st(e,t){function n(){this.constructor=e}Tt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function lt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function ct(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function pt(e,t){return function(n,r){t(n,r,e)}}function ft(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function dt(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){e.done?n(e.value):i(e.value).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function ht(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function yt(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function mt(e,t){for(var n in e)"default"!==n&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function vt(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Dt(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(gt(arguments[t]));return e}function bt(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r}function Et(e){return this instanceof Et?(this.v=e,this):new Et(e)}function xt(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{s(i[e](t))}catch(n){p(o[0][3],n)}}function s(e){e.value instanceof Et?Promise.resolve(e.value.v).then(l,c):p(o[0][2],e)}function l(e){u("next",e)}function c(e){u("throw",e)}function p(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}}function Ct(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:Et(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function At(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof vt?vt(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){i(r,o,(t=e[n](t)).done,t.value)}))}}function i(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}}function wt(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function St(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function Ft(e){return e&&e.__esModule?e:{default:e}}function kt(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function _t(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}V(ut,{__assign:function(){return Ot},__asyncDelegator:function(){return Ct},__asyncGenerator:function(){return xt},__asyncValues:function(){return At},__await:function(){return Et},__awaiter:function(){return dt},__classPrivateFieldGet:function(){return kt},__classPrivateFieldSet:function(){return _t},__createBinding:function(){return yt},__decorate:function(){return ct},__exportStar:function(){return mt},__extends:function(){return st},__generator:function(){return ht},__importDefault:function(){return Ft},__importStar:function(){return St},__makeTemplateObject:function(){return wt},__metadata:function(){return ft},__param:function(){return pt},__read:function(){return gt},__rest:function(){return lt},__spread:function(){return Dt},__spreadArrays:function(){return bt},__values:function(){return vt}});var Tt,Ot,Nt=R({"node_modules/tslib/tslib.es6.js":function(){W(),Tt=function(e,t){return(Tt=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)},Ot=function(){return Ot=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ot.apply(this,arguments)}}}),jt=q({"node_modules/vnopts/lib/descriptors/api.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0}),e.apiDescriptor={key:function(e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)},value:function(t){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t))return"[".concat(t.map((function(t){return e.apiDescriptor.value(t)})).join(", "),"]");var n=Object.keys(t);return 0===n.length?"{}":"{ ".concat(n.map((function(n){return"".concat(e.apiDescriptor.key(n),": ").concat(e.apiDescriptor.value(t[n]))})).join(", ")," }")},pair:function(t){var n=t.key,r=t.value;return e.apiDescriptor.value(f({},n,r))}}}}),Pt=q({"node_modules/vnopts/lib/descriptors/index.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0}),(Nt(),H(ut)).__exportStar(jt(),e)}}),Bt=q({"scripts/build/shims/chalk.cjs":function(e,t){W();var n=function(e){return e};n.grey=n,n.red=n,n.bold=n,n.yellow=n,n.blue=n,n.default=n,t.exports=n}}),It=q({"node_modules/vnopts/lib/handlers/deprecated/common.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt();e.commonDeprecatedHandler=function(e,n,r){var i=r.descriptor,o=["".concat(t.default.yellow("string"==typeof e?i.key(e):i.pair(e))," is deprecated")];return n&&o.push("we now treat it as ".concat(t.default.blue("string"==typeof n?i.key(n):i.pair(n)))),o.join("; ")+"."}}}),Lt=q({"node_modules/vnopts/lib/handlers/deprecated/index.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0}),(Nt(),H(ut)).__exportStar(It(),e)}}),Mt=q({"node_modules/vnopts/lib/handlers/invalid/common.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt();e.commonInvalidHandler=function(e,n,r){return["Invalid ".concat(t.default.red(r.descriptor.key(e))," value."),"Expected ".concat(t.default.blue(r.schemas[e].expected(r)),","),"but received ".concat(t.default.red(r.descriptor.value(n)),".")].join(" ")}}}),Rt=q({"node_modules/vnopts/lib/handlers/invalid/index.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0}),(Nt(),H(ut)).__exportStar(Mt(),e)}}),qt=q({"node_modules/vnopts/node_modules/leven/index.js":function(e,t){W();var n=[],r=[];t.exports=function(e,t){if(e===t)return 0;var i=e;e.length>t.length&&(e=t,t=i);var o=e.length,a=t.length;if(0===o)return a;if(0===a)return o;for(;o>0&&e.charCodeAt(~-o)===t.charCodeAt(~-a);)o--,a--;if(0===o)return a;for(var u=0;u<o&&e.charCodeAt(u)===t.charCodeAt(u);)u++;if(a-=u,0===(o-=u))return a;for(var s,l,c,p,f=0,d=0;f<o;)r[u+f]=e.charCodeAt(u+f),n[f]=++f;for(;d<a;)for(s=t.charCodeAt(u+d),c=d++,l=d,f=0;f<o;f++)p=s===r[u+f]?c:c+1,c=n[f],l=n[f]=c>l?p>l?l+1:p:p>c?c+1:p;return l}}}),Vt=q({"node_modules/vnopts/lib/handlers/unknown/leven.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=Bt(),n=qt();e.levenUnknownHandler=function(e,r,i){var o=i.descriptor,a=i.logger,u=i.schemas,s=["Ignored unknown option ".concat(t.default.yellow(o.pair({key:e,value:r})),".")],l=Object.keys(u).sort().find((function(t){return n(e,t)<3}));l&&s.push("Did you mean ".concat(t.default.blue(o.key(l)),"?")),a.warn(s.join(" "))}}}),Ut=q({"node_modules/vnopts/lib/handlers/unknown/index.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0}),(Nt(),H(ut)).__exportStar(Vt(),e)}}),zt=q({"node_modules/vnopts/lib/handlers/index.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Nt(),H(ut));t.__exportStar(Lt(),e),t.__exportStar(Rt(),e),t.__exportStar(Ut(),e)}}),Ht=q({"node_modules/vnopts/lib/schema.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function n(e,n){var o,a=new e(n),u=Object.create(a),s=g(t);try{for(s.s();!(o=s.n()).done;){var l=o.value;l in n&&(u[l]=i(n[l],a,r.prototype[l].length))}}catch(c){s.e(c)}finally{s.f()}return u}e.createSchema=n;var r=function(){function e(t){d(this,e),this.name=t.name}return h(e,[{key:"default",value:function(e){}},{key:"expected",value:function(e){return"nothing"}},{key:"validate",value:function(e,t){return!1}},{key:"deprecated",value:function(e,t){return!1}},{key:"forward",value:function(e,t){}},{key:"redirect",value:function(e,t){}},{key:"overlap",value:function(e,t,n){return e}},{key:"preprocess",value:function(e,t){return e}},{key:"postprocess",value:function(e,t){return e}}],[{key:"create",value:function(e){return n(this,e)}}]),e}();function i(e,t,n){return"function"==typeof e?function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.apply(void 0,v(i.slice(0,n-1)).concat([t],v(i.slice(n-1))))}:function(){return e}}e.Schema=r}}),Wt=q({"node_modules/vnopts/lib/schemas/alias.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=function(e){l(n,e);var t=c(n);function n(e){var r;return d(this,n),(r=t.call(this,e))._sourceName=e.sourceName,r}return h(n,[{key:"expected",value:function(e){return e.schemas[this._sourceName].expected(e)}},{key:"validate",value:function(e,t){return t.schemas[this._sourceName].validate(e,t)}},{key:"redirect",value:function(e,t){return this._sourceName}}]),n}(Ht().Schema);e.AliasSchema=t}}),$t=q({"node_modules/vnopts/lib/schemas/any.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=function(e){l(n,e);var t=c(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n,[{key:"expected",value:function(){return"anything"}},{key:"validate",value:function(){return!0}}]),n}(Ht().Schema);e.AnySchema=t}}),Gt=q({"node_modules/vnopts/lib/schemas/array.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Nt(),H(ut)),n=function(e){l(i,e);var n=c(i);function i(e){var r;d(this,i);var o=e.valueSchema,a=e.name,u=void 0===a?o.name:a,s=t.__rest(e,["valueSchema","name"]);return(r=n.call(this,Object.assign({},s,{name:u})))._valueSchema=o,r}return h(i,[{key:"expected",value:function(e){return"an array of ".concat(this._valueSchema.expected(e))}},{key:"validate",value:function(e,t){if(!Array.isArray(e))return!1;var n,r=[],i=g(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=t.normalizeValidateResult(this._valueSchema.validate(o,t),o);!0!==a&&r.push(a.value)}}catch(u){i.e(u)}finally{i.f()}return 0===r.length||{value:r}}},{key:"deprecated",value:function(e,t){var n,r=[],i=g(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=t.normalizeDeprecatedResult(this._valueSchema.deprecated(o,t),o);!1!==a&&r.push.apply(r,v(a.map((function(e){return{value:[e.value]}}))))}}catch(u){i.e(u)}finally{i.f()}return r}},{key:"forward",value:function(e,t){var n,i=[],o=g(e);try{for(o.s();!(n=o.n()).done;){var a=n.value,u=t.normalizeForwardResult(this._valueSchema.forward(a,t),a);i.push.apply(i,v(u.map(r)))}}catch(s){o.e(s)}finally{o.f()}return i}},{key:"redirect",value:function(e,t){var n,i=[],o=[],a=g(e);try{for(a.s();!(n=a.n()).done;){var u=n.value,s=t.normalizeRedirectResult(this._valueSchema.redirect(u,t),u);"remain"in s&&i.push(s.remain),o.push.apply(o,v(s.redirect.map(r)))}}catch(l){a.e(l)}finally{a.f()}return 0===i.length?{redirect:o}:{redirect:o,remain:i}}},{key:"overlap",value:function(e,t){return e.concat(t)}}]),i}(Ht().Schema);function r(e){return{from:[e.from],to:e.to}}e.ArraySchema=n}}),Kt=q({"node_modules/vnopts/lib/schemas/boolean.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=function(e){l(n,e);var t=c(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n,[{key:"expected",value:function(){return"true or false"}},{key:"validate",value:function(e){return"boolean"==typeof e}}]),n}(Ht().Schema);e.BooleanSchema=t}}),Jt=q({"node_modules/vnopts/lib/utils.js":function(e){function t(e,t){var n,r=Object.create(null),i=g(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o[t];if(r[a])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(a)));r[a]=o}}catch(u){i.e(u)}finally{i.f()}return r}function n(e,t){var n,r=new Map,i=g(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o[t];if(r.has(a))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(a)));r.set(a,o)}}catch(u){i.e(u)}finally{i.f()}return r}function r(){var e=Object.create(null);return function(t){var n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}}function i(e,t){var n,r=[],i=[],o=g(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;t(a)?r.push(a):i.push(a)}}catch(u){o.e(u)}finally{o.f()}return[r,i]}function o(e){return e===Math.floor(e)}function a(e,t){if(e===t)return 0;var n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)}function u(e){return void 0===e?{}:e}function s(e,t){return!0===e||(!1===e?{value:t}:e)}function l(e,t){return!1!==e&&(!0===e?!!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function c(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function p(e,t){return void 0===e?[]:Array.isArray(e)?e.map((function(e){return c(e,t)})):[c(e,t)]}function f(e,t){var n=p("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}W(),Object.defineProperty(e,"__esModule",{value:!0}),e.recordFromArray=t,e.mapFromArray=n,e.createAutoChecklist=r,e.partition=i,e.isInt=o,e.comparePrimitive=a,e.normalizeDefaultResult=u,e.normalizeValidateResult=s,e.normalizeDeprecatedResult=l,e.normalizeTransferResult=c,e.normalizeForwardResult=p,e.normalizeRedirectResult=f}}),Xt=q({"node_modules/vnopts/lib/schemas/choice.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ht(),n=Jt(),r=function(e){l(r,e);var t=c(r);function r(e){var i;return d(this,r),(i=t.call(this,e))._choices=n.mapFromArray(e.choices.map((function(e){return e&&"object"==typeof e?e:{value:e}})),"value"),i}return h(r,[{key:"expected",value:function(e){var t=this,r=e.descriptor,i=Array.from(this._choices.keys()).map((function(e){return t._choices.get(e)})).filter((function(e){return!e.deprecated})).map((function(e){return e.value})).sort(n.comparePrimitive).map(r.value),o=i.slice(0,-2),a=i.slice(-2);return o.concat(a.join(" or ")).join(", ")}},{key:"validate",value:function(e){return this._choices.has(e)}},{key:"deprecated",value:function(e){var t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}},{key:"forward",value:function(e){var t=this._choices.get(e);return t?t.forward:void 0}},{key:"redirect",value:function(e){var t=this._choices.get(e);return t?t.redirect:void 0}}]),r}(t.Schema);e.ChoiceSchema=r}}),Yt=q({"node_modules/vnopts/lib/schemas/number.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=function(e){l(n,e);var t=c(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n,[{key:"expected",value:function(){return"a number"}},{key:"validate",value:function(e,t){return"number"==typeof e}}]),n}(Ht().Schema);e.NumberSchema=t}}),Qt=q({"node_modules/vnopts/lib/schemas/integer.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=Jt(),n=function(e){l(r,e);var n=c(r);function r(){return d(this,r),n.apply(this,arguments)}return h(r,[{key:"expected",value:function(){return"an integer"}},{key:"validate",value:function(e,n){return!0===n.normalizeValidateResult(u(s(r.prototype),"validate",this).call(this,e,n),e)&&t.isInt(e)}}]),r}(Yt().NumberSchema);e.IntegerSchema=n}}),Zt=q({"node_modules/vnopts/lib/schemas/string.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=function(e){l(n,e);var t=c(n);function n(){return d(this,n),t.apply(this,arguments)}return h(n,[{key:"expected",value:function(){return"a string"}},{key:"validate",value:function(e){return"string"==typeof e}}]),n}(Ht().Schema);e.StringSchema=t}}),en=q({"node_modules/vnopts/lib/schemas/index.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Nt(),H(ut));t.__exportStar(Wt(),e),t.__exportStar($t(),e),t.__exportStar(Gt(),e),t.__exportStar(Kt(),e),t.__exportStar(Xt(),e),t.__exportStar(Qt(),e),t.__exportStar(Yt(),e),t.__exportStar(Zt(),e)}}),tn=q({"node_modules/vnopts/lib/defaults.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=jt(),n=It(),r=Rt(),i=Vt();e.defaultDescriptor=t.apiDescriptor,e.defaultUnknownHandler=i.levenUnknownHandler,e.defaultInvalidHandler=r.commonInvalidHandler,e.defaultDeprecatedHandler=n.commonDeprecatedHandler}}),nn=q({"node_modules/vnopts/lib/normalize.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=tn(),n=Jt();e.normalize=function(e,t,n){return new r(t,n).normalize(e)};var r=function(){function e(r,i){d(this,e);var o=i||{},a=o.logger,u=void 0===a?console:a,s=o.descriptor,l=void 0===s?t.defaultDescriptor:s,c=o.unknown,p=void 0===c?t.defaultUnknownHandler:c,f=o.invalid,h=void 0===f?t.defaultInvalidHandler:f,y=o.deprecated,m=void 0===y?t.defaultDeprecatedHandler:y;this._utils={descriptor:l,logger:u||{warn:function(){}},schemas:n.recordFromArray(r,"name"),normalizeDefaultResult:n.normalizeDefaultResult,normalizeDeprecatedResult:n.normalizeDeprecatedResult,normalizeForwardResult:n.normalizeForwardResult,normalizeRedirectResult:n.normalizeRedirectResult,normalizeValidateResult:n.normalizeValidateResult},this._unknownHandler=p,this._invalidHandler=h,this._deprecatedHandler=m,this.cleanHistory()}return h(e,[{key:"cleanHistory",value:function(){this._hasDeprecationWarned=n.createAutoChecklist()}},{key:"normalize",value:function(e){var t=this,r={},i=[e],o=function(){for(;0!==i.length;){var e=i.shift(),n=t._applyNormalization(e,r);i.push.apply(i,v(n))}};o();for(var a=0,u=Object.keys(this._utils.schemas);a<u.length;a++){var s=u[a],l=this._utils.schemas[s];if(!(s in r)){var c=n.normalizeDefaultResult(l.default(this._utils));"value"in c&&i.push(f({},s,c.value))}}o();for(var p=0,d=Object.keys(this._utils.schemas);p<d.length;p++){var h=d[p],y=this._utils.schemas[h];h in r&&(r[h]=y.postprocess(r[h],this._utils))}return r}},{key:"_applyNormalization",value:function(e,t){var r,i=this,o=[],a=n.partition(Object.keys(e),(function(e){return e in i._utils.schemas})),u=y(a,2),s=u[0],l=u[1],c=g(s);try{var p=function(){var a=r.value,u=i._utils.schemas[a],s=u.preprocess(e[a],i._utils),l=n.normalizeValidateResult(u.validate(s,i._utils),s);if(!0!==l){var c=l.value,p=i._invalidHandler(a,c,i._utils);throw"string"==typeof p?new Error(p):p}var d=function(e){var t=e.from,n=e.to;o.push("string"==typeof n?f({},n,t):f({},n.key,n.value))},h=function(e){var t=e.value,r=e.redirectTo,o=n.normalizeDeprecatedResult(u.deprecated(t,i._utils),s,!0);if(!1!==o)if(!0===o)i._hasDeprecationWarned(a)||i._utils.logger.warn(i._deprecatedHandler(a,r,i._utils));else{var l,c=g(o);try{for(c.s();!(l=c.n()).done;){var p=l.value.value,f={key:a,value:p};if(!i._hasDeprecationWarned(f)){var d="string"==typeof r?{key:r,value:p}:r;i._utils.logger.warn(i._deprecatedHandler(f,d,i._utils))}}}catch(h){c.e(h)}finally{c.f()}}};n.normalizeForwardResult(u.forward(s,i._utils),s).forEach(d);var y=n.normalizeRedirectResult(u.redirect(s,i._utils),s);if(y.redirect.forEach(d),"remain"in y){var m=y.remain;t[a]=a in t?u.overlap(t[a],m,i._utils):m,h({value:m})}var v,D=g(y.redirect);try{for(D.s();!(v=D.n()).done;){var b=v.value;h({value:b.from,redirectTo:b.to})}}catch(E){D.e(E)}finally{D.f()}};for(c.s();!(r=c.n()).done;)p()}catch(A){c.e(A)}finally{c.f()}var d,h=g(l);try{for(h.s();!(d=h.n()).done;){var m=d.value,v=e[m],D=this._unknownHandler(m,v,this._utils);if(D)for(var b=0,E=Object.keys(D);b<E.length;b++){var x=E[b],C=f({},x,D[x]);x in this._utils.schemas?o.push(C):Object.assign(t,C)}}}catch(A){h.e(A)}finally{h.f()}return o}}]),e}();e.Normalizer=r}}),rn=q({"node_modules/vnopts/lib/index.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Nt(),H(ut));t.__exportStar(Pt(),e),t.__exportStar(zt(),e),t.__exportStar(en(),e),t.__exportStar(nn(),e),t.__exportStar(Ht(),e)}}),on=q({"src/main/options-normalizer.js":function(e,t){W();var n,r=rn(),i=Y(),o={key:function(e){return 1===e.length?"-".concat(e):"--".concat(e)},value:function(e){return r.apiDescriptor.value(e)},pair:function(e){var t=e.key,n=e.value;return!1===n?"--no-".concat(t):!0===n?o.key(t):""===n?"".concat(o.key(t)," without an argument"):"".concat(o.key(t),"=").concat(n)}},a=function(e){var t=e.colorsModule,n=e.levenshteinDistance;return function(e){l(i,e);var r=c(i);function i(e){var t;d(this,i);var n=e.name,o=e.flags;return(t=r.call(this,{name:n,choices:o}))._flags=v(o).sort(),t}return h(i,[{key:"preprocess",value:function(e,r){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){var i=this._flags.find((function(t){return n(t,e)<3}));if(i)return r.logger.warn(["Unknown flag ".concat(t.yellow(r.descriptor.value(e)),","),"did you mean ".concat(t.blue(r.descriptor.value(i)),"?")].join(" ")),i}return e}},{key:"expected",value:function(){return"a flag"}}]),i}(r.ChoiceSchema)};function u(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.logger,u=void 0!==a&&a,l=i.isCLI,c=void 0!==l&&l,p=i.passThrough,d=void 0!==p&&p,h=i.colorsModule,y=void 0===h?null:h,m=i.levenshteinDistance,v=void 0===m?null:m,g=d?Array.isArray(d)?function(e,t){return d.includes(e)?f({},e,t):void 0}:function(e,t){return f({},e,t)}:function(e,t,n){var i=n.schemas,o=(i._,_(i,F));return r.levenUnknownHandler(e,t,Object.assign(Object.assign({},n),{},{schemas:o}))},D=c?o:r.apiDescriptor,b=s(t,{isCLI:c,colorsModule:y,levenshteinDistance:v}),E=new r.Normalizer(b,{logger:u,unknown:g,descriptor:D}),x=!1!==u;x&&n&&(E._hasDeprecationWarned=n);var C=E.normalize(e);return x&&(n=E._hasDeprecationWarned),c&&!1===C["plugin-search"]&&(C["plugin-search-dir"]=!1),C}function s(e,t){var n=t.isCLI,i=t.colorsModule,o=t.levenshteinDistance,a=[];n&&a.push(r.AnySchema.create({name:"_"}));var u,s=g(e);try{for(s.s();!(u=s.n()).done;){var l=u.value;a.push(p(l,{isCLI:n,optionInfos:e,colorsModule:i,levenshteinDistance:o})),l.alias&&n&&a.push(r.AliasSchema.create({name:l.alias,sourceName:l.name}))}}catch(c){s.e(c)}finally{s.f()}return a}function p(e,t){var n=t.isCLI,o=t.optionInfos,u=t.colorsModule,s=t.levenshteinDistance,l=e.name;if("plugin-search-dir"===l||"pluginSearchDirs"===l)return r.AnySchema.create({name:l,preprocess:function(e){return!1===e||(e=Array.isArray(e)?e:[e]),e},validate:function(e){return!1===e||e.every((function(e){return"string"==typeof e}))},expected:function(){return"false or paths to plugin search dir"}});var c,p={name:l},f={};switch(e.type){case"int":c=r.IntegerSchema,n&&(p.preprocess=Number);break;case"string":case"path":c=r.StringSchema;break;case"choice":c=r.ChoiceSchema,p.choices=e.choices.map((function(t){return"object"==typeof t&&t.redirect?Object.assign(Object.assign({},t),{},{redirect:{to:{key:e.name,value:t.redirect}}}):t}));break;case"boolean":c=r.BooleanSchema;break;case"flag":c=a({colorsModule:u,levenshteinDistance:s}),p.flags=o.flatMap((function(e){return[e.alias,e.description&&e.name,e.oppositeDescription&&"no-".concat(e.name)].filter(Boolean)}));break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?p.validate=function(t,n,r){return e.exception(t)||n.validate(t,r)}:p.validate=function(e,t,n){return void 0===e||t.validate(e,n)},e.redirect&&(f.redirect=function(t){return t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0}),e.deprecated&&(f.deprecated=!0),n&&!e.array){var d=p.preprocess||function(e){return e};p.preprocess=function(e,t,n){return t.preprocess(d(Array.isArray(e)?i(e):e),n)}}return e.array?r.ArraySchema.create(Object.assign(Object.assign(Object.assign({},n?{preprocess:function(e){return Array.isArray(e)?e:[e]}}:{}),f),{},{valueSchema:c.create(p)})):c.create(Object.assign(Object.assign({},p),f))}function y(e,t,n){return u(e,t,n)}function m(e,t,n){return u(e,t,Object.assign({isCLI:!0},n))}t.exports={normalizeApiOptions:y,normalizeCliOptions:m}}}),an=q({"src/language-js/loc.js":function(e,t){W();var n=Te();function r(e,t){if(!(t||{}).ignoreDecorators){var i=e.declaration&&e.declaration.decorators||e.decorators;if(n(i))return r(i[0])}return e.range?e.range[0]:e.start}function i(e){return e.range?e.range[1]:e.end}function o(e,t){var n=r(e);return Number.isInteger(n)&&n===r(t)}function a(e,t){var n=i(e);return Number.isInteger(n)&&n===i(t)}function u(e,t){return o(e,t)&&a(e,t)}t.exports={locStart:r,locEnd:i,hasSameLocStart:o,hasSameLoc:u}}}),un=q({"src/main/load-parser.js":function(e,t){W(),t.exports=function(){}}}),sn=q({"scripts/build/shims/babel-highlight.cjs":function(e,t){W();var n=Bt(),r={shouldHighlight:function(){return!1},getChalk:function(){return n}};t.exports=r}}),ln=q({"node_modules/@babel/code-frame/lib/index.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=a,e.default=u;var t=sn(),n=!1;function r(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var i=/\r\n|[\n\r\u2028\u2029]/;function o(e,t,n){var r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),o=n||{},a=o.linesAbove,u=void 0===a?2:a,s=o.linesBelow,l=void 0===s?3:s,c=r.line,p=r.column,f=i.line,d=i.column,h=Math.max(c-(u+1),0),y=Math.min(t.length,f+l);-1===c&&(h=0),-1===f&&(y=t.length);var m=f-c,v={};if(m)for(var g=0;g<=m;g++){var D=g+c;if(p)if(0===g){var b=t[D-1].length;v[D]=[p,b-p+1]}else if(g===m)v[D]=[0,d];else{var E=t[D-g].length;v[D]=[0,E]}else v[D]=!0}else v[c]=p===d?!p||[p,0]:[p,d-p];return{start:h,end:y,markerLines:v}}function a(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=(a.highlightCode||a.forceColor)&&(0,t.shouldHighlight)(a),s=(0,t.getChalk)(a),l=r(s),c=function(e,t){return u?e(t):t},p=o(n,e.split(i),a),f=p.start,d=p.end,h=p.markerLines,y=n.start&&"number"==typeof n.start.column,m=String(d).length,v=(u?(0,t.default)(e,a):e).split(i,d).slice(f,d).map((function(e,t){var n=f+1+t,r=" ".concat(n).slice(-m),i=" ".concat(r," |"),o=h[n],u=!h[n+1];if(o){var s="";if(Array.isArray(o)){var p=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),d=o[1]||1;s=["\n ",c(l.gutter,i.replace(/\d/g," "))," ",p,c(l.marker,"^").repeat(d)].join(""),u&&a.message&&(s+=" "+c(l.message,a.message))}return[c(l.marker,">"),c(l.gutter,i),e.length>0?" ".concat(e):"",s].join("")}return" ".concat(c(l.gutter,i)).concat(e.length>0?" ".concat(e):"")})).join("\n");return a.message&&!y&&(v="".concat(" ".repeat(m+1)).concat(a.message,"\n").concat(v)),u?s.reset(v):v}function u(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!n){n=!0;var o="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";N.emitWarning?N.emitWarning(o,"DeprecationWarning"):(new Error(o).name="DeprecationWarning",console.warn(new Error(o)))}return a(e,{start:{column:r=Math.max(r,0),line:t}},i)}}}),cn=q({"src/main/parser.js":function(e,t){W();var n=at().ConfigError,r=an(),i=(un(),r.locStart),o=r.locEnd,a=Object.getOwnPropertyNames,u=Object.getOwnPropertyDescriptor;function s(e){var t,n={},r=g(e.plugins);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.parsers){var o,s=g(a(i.parsers));try{for(s.s();!(o=s.n()).done;){var l=o.value;Object.defineProperty(n,l,u(i.parsers,l))}}catch(c){s.e(c)}finally{s.f()}}}}catch(c){r.e(c)}finally{r.f()}return n}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s(e);if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:i,locEnd:o};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new n("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}function c(e,t){var n=s(t),r=Object.defineProperties({},Object.fromEntries(Object.keys(n).map((function(e){return[e,{enumerable:!0,get:function(){return n[e].parse}}]})))),i=l(t,n);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,r,t)}}catch(u){var o=u.loc;if(o){var a=ln().codeFrameColumns;throw u.codeFrame=a(e,o,{highlightCode:!0}),u.message+="\n"+u.codeFrame,u}throw u.stack}}t.exports={parse:c,resolveParser:l}}}),pn=q({"src/main/options.js":function(e,t){W();var n=ot(),r=at().UndefinedParserError,i=_e().getSupportInfo,o=on(),a=cn().resolveParser,u={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},e),s=i({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,p=Object.assign(Object.assign({},u),Object.fromEntries(s.filter((function(e){return void 0!==e.default})).map((function(e){return[e.name,e.default]}))));if(!n.parser)if(n.filepath){if(n.parser=c(n.filepath,n.plugins),!n.parser)throw new r("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";var f=a(o.normalizeApiOptions(n,[s.find((function(e){return"parser"===e.name}))],{passThrough:!0,logger:!1}));n.astFormat=f.astFormat,n.locEnd=f.locEnd,n.locStart=f.locStart;var d=l(n);n.printer=d.printers[n.astFormat];for(var h=Object.fromEntries(s.filter((function(e){return e.pluginDefaults&&void 0!==e.pluginDefaults[d.name]})).map((function(e){return[e.name,e.pluginDefaults[d.name]]}))),m=Object.assign(Object.assign({},p),h),v=0,g=Object.entries(m);v<g.length;v++){var D=y(g[v],2),b=D[0],E=D[1];(null===n[b]||void 0===n[b])&&(n[b]=E)}return"json"===n.parser&&(n.trailingComma="none"),o.normalizeApiOptions(n,s,Object.assign({passThrough:Object.keys(u)},t))}function l(e){var t=e.astFormat;if(!t)throw new Error("getPlugin() requires astFormat to be set");var n=e.plugins.find((function(e){return e.printers&&e.printers[t]}));if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}function c(e,t){var r=n.basename(e).toLowerCase(),o=i({plugins:t}).languages.filter((function(e){return null!==e.since})).find((function(e){return e.extensions&&e.extensions.some((function(e){return r.endsWith(e)}))||e.filenames&&e.filenames.some((function(e){return e.toLowerCase()===r}))}));return o&&o.parsers[0]}t.exports={normalize:s,hiddenDefaults:u,inferParser:c}}}),fn=q({"src/main/massage-ast.js":function(e,t){function n(e,t,r){if(Array.isArray(e))return e.map((function(e){return n(e,t,r)})).filter(Boolean);if(!e||"object"!=typeof e)return e;var i,o=t.printer.massageAstNode;i=o&&o.ignoredProperties?o.ignoredProperties:new Set;for(var a={},u=0,s=Object.entries(e);u<s.length;u++){var l=y(s[u],2),c=l[0],p=l[1];!i.has(c)&&"function"!=typeof p&&(a[c]=n(p,t,e))}if(o){var f=o(e,a,r);if(null===f)return;if(f)return f}return a}W(),t.exports=n}}),dn=q({"scripts/build/shims/assert.cjs":function(e,t){W();var n=function(){};n.ok=n,n.strictEqual=n,t.exports=n}}),hn=q({"src/main/comments.js":function(e,t){W();var n=dn(),r=de().builders,i=r.line,o=r.hardline,a=r.breakParent,u=r.indent,s=r.lineSuffix,l=r.join,c=r.cursor,p=Le(),f=p.hasNewline,d=p.skipNewline,h=p.skipSpaces,m=p.isPreviousLineEmpty,D=p.addLeadingComment,b=p.addDanglingComment,E=p.addTrailingComment,x=new WeakMap;function C(e,t,n){if(e){var r=t.printer,i=t.locStart,o=t.locEnd;if(n){if(r.canAttachComment&&r.canAttachComment(e)){var a;for(a=n.length-1;a>=0&&!(i(n[a])<=i(e)&&o(n[a])<=o(e));--a);return void n.splice(a+1,0,e)}}else if(x.has(e))return x.get(e);var u=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==typeof e&&Object.entries(e).filter((function(e){var t=y(e,1)[0];return"enclosingNode"!==t&&"precedingNode"!==t&&"followingNode"!==t&&"tokens"!==t&&"comments"!==t&&"parent"!==t})).map((function(e){return y(e,2)[1]}));if(u){n||(n=[],x.set(e,n));var s,l=g(u);try{for(l.s();!(s=l.n()).done;)C(s.value,t,n)}catch(c){l.e(c)}finally{l.f()}return n}}}function A(e,t,n,r){for(var i,o,a=n.locStart,u=n.locEnd,s=a(t),l=u(t),c=C(e,n),p=0,f=c.length;p<f;){var d=p+f>>1,h=c[d],y=a(h),m=u(h);if(y<=s&&l<=m)return A(h,t,n,h);if(m<=s)i=h,p=d+1;else{if(!(l<=y))throw new Error("Comment location overlaps with node location");o=h,f=d}}if(r&&"TemplateLiteral"===r.type){var v=r.quasis,g=N(v,t,n);i&&N(v,i,n)!==g&&(i=null),o&&N(v,o,n)!==g&&(o=null)}return{enclosingNode:r,precedingNode:i,followingNode:o}}var w=function(){return!1};function S(e,t,n,r){if(Array.isArray(e)){var i,o=[],a=r.locStart,u=r.locEnd,s=r.printer.handleComments,l=void 0===s?{}:s,c=l.avoidAstMutation,p=l.ownLine,f=void 0===p?w:p,d=l.endOfLine,h=void 0===d?w:d,m=l.remaining,x=void 0===m?w:m,C=e.map((function(i,o){return Object.assign(Object.assign({},A(t,i,r)),{},{comment:i,text:n,options:r,ast:t,isLastComment:e.length-1===o})})),S=g(C.entries());try{for(S.s();!(i=S.n()).done;){var F=y(i.value,2),O=F[0],N=F[1],j=N.comment,P=N.precedingNode,B=N.enclosingNode,I=N.followingNode,L=N.text,M=N.options,R=N.ast,q=N.isLastComment;if("json"===M.parser||"json5"===M.parser||"__js_expression"===M.parser||"__vue_expression"===M.parser||"__vue_ts_expression"===M.parser){if(a(j)-a(R)<=0){D(R,j);continue}if(u(j)-u(R)>=0){E(R,j);continue}}var V=void 0;if(c?V=[N]:(j.enclosingNode=B,j.precedingNode=P,j.followingNode=I,V=[j,L,M,R,q]),k(L,M,C,O))j.placement="ownLine",f.apply(void 0,v(V))||(I?D(I,j):P?E(P,j):b(B||R,j));else if(_(L,M,C,O))j.placement="endOfLine",h.apply(void 0,v(V))||(P?E(P,j):I?D(I,j):b(B||R,j));else if(j.placement="remaining",!x.apply(void 0,v(V)))if(P&&I){var U=o.length;U>0&&o[U-1].followingNode!==I&&T(o,L,M),o.push(N)}else P?E(P,j):I?D(I,j):b(B||R,j)}}catch($){S.e($)}finally{S.f()}if(T(o,n,r),!c){var z,H=g(e);try{for(H.s();!(z=H.n()).done;){var W=z.value;delete W.precedingNode,delete W.enclosingNode,delete W.followingNode}}catch($){H.e($)}finally{H.f()}}}}var F=function(e){return!/[\S\n\u2028\u2029]/.test(e)};function k(e,t,n,r){var i=n[r],o=i.comment,a=i.precedingNode,u=t.locStart,s=t.locEnd,l=u(o);if(a)for(var c=r-1;c>=0;c--){var p=n[c],d=p.comment;if(p.precedingNode!==a||!F(e.slice(s(d),l)))break;l=u(d)}return f(e,l,{backwards:!0})}function _(e,t,n,r){var i=n[r],o=i.comment,a=i.followingNode,u=t.locStart,s=t.locEnd,l=s(o);if(a)for(var c=r+1;c<n.length;c++){var p=n[c],d=p.comment;if(p.followingNode!==a||!F(e.slice(l,u(d))))break;l=s(d)}return f(e,l)}function T(e,t,r){var i=e.length;if(0!==i){var o,a=e[0],u=a.precedingNode,s=a.followingNode,l=a.enclosingNode,c=r.printer.getGapRegex&&r.printer.getGapRegex(l)||/^[\s(]*$/,p=r.locStart(s);for(o=i;o>0;--o){var f=e[o-1],d=f.comment,h=f.precedingNode,m=f.followingNode;n.strictEqual(h,u),n.strictEqual(m,s);var v=t.slice(r.locEnd(d),p);if(!c.test(v))break;p=r.locStart(d)}var b,x=g(e.entries());try{for(x.s();!(b=x.n()).done;){var C=y(b.value,2),A=C[0],w=C[1].comment;A<o?E(u,w):D(s,w)}}catch(_){x.e(_)}finally{x.f()}for(var S=0,F=[u,s];S<F.length;S++){var k=F[S];k.comments&&k.comments.length>1&&k.comments.sort((function(e,t){return r.locStart(e)-r.locStart(t)}))}e.length=0}}function O(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function N(e,t,n){for(var r=n.locStart(t)-1,i=1;i<e.length;++i)if(r<n.locStart(e[i]))return i-1;return 0}function j(e,t){var n=e.getValue(),r=[O(e,t)],a=t.printer,u=t.originalText,s=t.locStart,l=t.locEnd;if(a.isBlockComment&&a.isBlockComment(n)){var c=f(u,l(n))?f(u,s(n),{backwards:!0})?o:i:" ";r.push(c)}else r.push(o);var p=d(u,h(u,l(n)));return!1!==p&&f(u,p)&&r.push(o),r}function P(e,t){var n=e.getValue(),r=O(e,t),i=t.printer,u=t.originalText,l=t.locStart,c=i.isBlockComment&&i.isBlockComment(n);if(f(u,l(n),{backwards:!0})){var p=m(u,n,l);return s([o,p?o:"",r])}var d=[" ",r];return c||(d=[s(d),a]),d}function B(e,t,n,r){var i=[],a=e.getValue();return a&&a.comments&&(e.each((function(){var n=e.getValue();!n.leading&&!n.trailing&&(!r||r(n))&&i.push(O(e,t))}),"comments"),0!==i.length)?n?l(o,i):u([o,l(o,i)]):""}function I(e,t,n){var r=e.getValue();if(!r)return{};var i=r.comments||[];n&&(i=i.filter((function(e){return!n.has(e)})));var o=r===t.cursorNode;if(0===i.length){var a=o?c:"";return{leading:a,trailing:a}}var u=[],s=[];return e.each((function(){var r=e.getValue();if(!n||!n.has(r)){var i=r.leading,o=r.trailing;i?u.push(j(e,t)):o&&s.push(P(e,t))}}),"comments"),o&&(u.unshift(c),s.push(c)),{leading:u,trailing:s}}function L(e,t,n,r){var i=I(e,n,r),o=i.leading,a=i.trailing;return o||a?[o,t,a]:t}function M(e){if(e){var t,n=g(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!r.printed)throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}catch(i){n.e(i)}finally{n.f()}}}t.exports={attach:S,printComments:L,printCommentsSeparately:I,printDanglingComments:B,getSortedChildNodes:C,ensureAllCommentsPrinted:M}}}),yn=q({"src/common/ast-path.js":function(e,t){W();var n=Y();function r(e,t){var n=i(e.stack,t);return-1===n?null:e.stack[n]}function i(e,t){for(var n=e.length-1;n>=0;n-=2){var r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}var o=function(){function e(t){d(this,e),this.stack=[t]}return h(e,[{key:"getName",value:function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null}},{key:"getValue",value:function(){return n(this.stack)}},{key:"getNode",value:function(){return r(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"getParentNode",value:function(){return r(this,(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1)}},{key:"call",value:function(e){for(var t=this.stack,r=t.length,i=n(t),o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];for(var s=0,l=a;s<l.length;s++){var c=l[s];i=i[c],t.push(c,i)}var p=e(this);return t.length=r,p}},{key:"callParent",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=i(this.stack,n+1),o=this.stack.splice(r+1),a=e(this);return(t=this.stack).push.apply(t,v(o)),a}},{key:"each",value:function(e){for(var t=this.stack,r=t.length,i=n(t),o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];for(var s=0,l=a;s<l.length;s++){var c=l[s];i=i[c],t.push(c,i)}for(var p=0;p<i.length;++p)t.push(p,i[p]),e(this,p,i),t.length-=2;t.length=r}},{key:"map",value: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];return this.each.apply(this,[function(n,r,i){t[r]=e(n,r,i)}].concat(r)),t}},{key:"try",value:function(e){var t=this.stack,n=v(t);try{return e()}finally{t.length=0,t.push.apply(t,v(n))}}},{key:"match",value:function(){for(var e=this.stack.length-1,t=null,n=this.stack[e--],r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];for(var a=0,u=i;a<u.length;a++){var s=u[a];if(void 0===n)return!1;var l=null;if("number"==typeof t&&(l=t,t=this.stack[e--],n=this.stack[e--]),s&&!s(n,t,l))return!1;t=this.stack[e--],n=this.stack[e--]}return!0}},{key:"findAncestor",value:function(e){for(var t=this.stack.length-1,n=null,r=this.stack[t--];r;){var i=null;if("number"==typeof n&&(i=n,n=this.stack[t--],r=this.stack[t--]),null!==n&&e(r,n,i))return r;n=this.stack[t--],r=this.stack[t--]}}}]),e}();t.exports=o}}),mn=q({"src/main/multiparser.js":function(e,t){W();var n=de().utils.stripTrailingHardline,r=pn().normalize,i=hn();function o(e,t,n,r){if(n.printer.embed&&"auto"===n.embeddedLanguageFormatting)return n.printer.embed(e,t,(function(e,t,i){return a(e,t,n,r,i)}),n)}function a(e,t,o,a){var u=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}).stripTrailingHardline,s=void 0!==u&&u,l=r(Object.assign(Object.assign(Object.assign({},o),t),{},{parentParser:o.parser,originalText:e}),{passThrough:!0}),c=cn().parse(e,l),p=c.ast;e=c.text;var f=p.comments;delete p.comments,i.attach(f,p,e,l),l[Symbol.for("comments")]=f||[],l[Symbol.for("tokens")]=p.tokens||[];var d=a(p,l);return i.ensureAllCommentsPrinted(f),s?"string"==typeof d?d.replace(/(?:\r?\n)*$/,""):n(d):d}t.exports={printSubtree:o}}}),vn=q({"src/main/ast-to-doc.js":function(e,t){W();var n=yn(),r=de(),i=r.builders,o=i.hardline,a=i.addAlignmentToDoc,u=r.utils.propagateBreaks,s=hn().printComments,l=mn();function c(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=t.printer;i.preprocess&&(e=i.preprocess(e,t));var s=new Map,l=new n(e),c=p();return r>0&&(c=a([o,c],r,t.tabWidth)),u(c),c;function p(e,t){return void 0===e||e===l?d(t):Array.isArray(e)?l.call.apply(l,[function(){return d(t)}].concat(v(e))):l.call((function(){return d(t)}),e)}function d(e){var n=l.getValue(),r=n&&"object"==typeof n&&void 0===e;if(r&&s.has(n))return s.get(n);var i=f(l,t,p,e);return r&&s.set(n,i),i}}function p(e,t){var n,r=t.originalText,i=t[Symbol.for("comments")],o=t.locStart,a=t.locEnd,u=o(e),s=a(e),l=new Set,c=g(i);try{for(c.s();!(n=c.n()).done;){var p=n.value;o(p)>=u&&a(p)<=s&&(p.printed=!0,l.add(p))}}catch(f){c.e(f)}finally{c.f()}return{doc:r.slice(u,s),printedComments:l}}function f(e,t,n,r){var i,o,a=e.getValue(),u=t.printer;if(u.hasPrettierIgnore&&u.hasPrettierIgnore(e)){var f=p(a,t);i=f.doc,o=f.printedComments}else{if(a)try{i=l.printSubtree(e,n,t,c)}catch(d){if(globalThis.PRETTIER_DEBUG)throw d}i||(i=u.print(e,t,n,r))}return(!u.willPrintOwnComments||!u.willPrintOwnComments(e,t))&&(i=s(e,i,t,o)),i}t.exports=c}}),gn=q({"src/main/range-util.js":function(e,t){W();var n=dn(),r=hn(),i=function(e){var t=e.parser;return"json"===t||"json5"===t||"json-stringify"===t};function o(e,t){var n=[e.node].concat(v(e.parentNodes)),r=new Set([t.node].concat(v(t.parentNodes)));return n.find((function(e){return c.has(e.type)&&r.has(e)}))}function a(e){for(var t=e.length-1;;){var n=e[t];if(!n||"Program"!==n.type&&"File"!==n.type)break;t--}return e.slice(0,t+1)}function u(e,t,n){var r=n.locStart,i=n.locEnd,o=e.node,u=t.node;if(o===u)return{startNode:o,endNode:u};var s,l=r(e.node),c=g(a(t.parentNodes));try{for(c.s();!(s=c.n()).done;){var p=s.value;if(!(r(p)>=l))break;u=p}}catch(m){c.e(m)}finally{c.f()}var f,d=i(t.node),h=g(a(e.parentNodes));try{for(h.s();!(f=h.n()).done;){var y=f.value;if(!(i(y)<=d))break;o=y}}catch(m){h.e(m)}finally{h.f()}return{startNode:o,endNode:u}}function s(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5?arguments[5]:void 0,u=n.locStart,l=n.locEnd,c=u(e),p=l(e);if(!(t>p||t<c||"rangeEnd"===a&&t===c||"rangeStart"===a&&t===p)){var f,d=g(r.getSortedChildNodes(e,n));try{for(d.s();!(f=d.n()).done;){var h=s(f.value,t,n,i,[e].concat(v(o)),a);if(h)return h}}catch(y){d.e(y)}finally{d.f()}if(!i||i(e,o[0]))return{node:e,parentNodes:o}}}function l(e,t){return"DeclareExportDeclaration"!==t&&"TypeParameterDeclaration"!==e&&("Directive"===e||"TypeAlias"===e||"TSExportAssignment"===e||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var c=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),p=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function f(e,t,n){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return l(t.type,n&&n.type);case"json":case"json5":case"json-stringify":return c.has(t.type);case"graphql":return p.has(t.kind);case"vue":return"root"!==t.tag}return!1}function d(e,t,r){var a=t.rangeStart,l=t.rangeEnd,c=t.locStart,p=t.locEnd;n.ok(l>a);var d=e.slice(a,l).search(/\S/),h=-1===d;if(!h)for(a+=d;l>a&&!/\S/.test(e[l-1]);--l);var y,m,v=s(r,a,t,(function(e,n){return f(t,e,n)}),[],"rangeStart"),g=h?v:s(r,l,t,(function(e){return f(t,e)}),[],"rangeEnd");if(!v||!g)return{rangeStart:0,rangeEnd:0};if(i(t)){var D=o(v,g);y=D,m=D}else{var b=u(v,g,t);y=b.startNode,m=b.endNode}return{rangeStart:Math.min(c(y),c(m)),rangeEnd:Math.max(p(y),p(m))}}t.exports={calculateRange:d,findNodeAtOffset:s}}}),Dn=q({"src/main/core.js":function(e,t){W();var n=K().diffArrays,r=de(),i=r.printer.printDocToString,o=r.debug.printDocToDebug,a=Le().getAlignmentSize,u=X(),s=u.guessEndOfLine,l=u.convertEndOfLineToChars,c=u.countEndOfLineChars,p=u.normalizeEndOfLine,f=pn().normalize,d=fn(),h=hn(),y=cn(),m=vn(),D=gn(),b="\ufeff",E=Symbol("cursor");function x(e,t,n){var r=t.comments;return r&&(delete t.comments,h.attach(r,t,e,n)),n[Symbol.for("comments")]=r||[],n[Symbol.for("tokens")]=t.tokens||[],n.originalText=e,r}function C(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};var o=y.parse(e,t),a=o.ast,u=o.text;if(t.cursorOffset>=0){var s=D.findNodeAtOffset(a,t.cursorOffset,t);s&&s.node&&(t.cursorNode=s.node)}var c=x(u,a,t),p=m(a,t,r),f=i(p,t);if(h.ensureAllCommentsPrinted(c),r>0){var d=f.formatted.trim();void 0!==f.cursorNodeStart&&(f.cursorNodeStart-=f.formatted.indexOf(d)),f.formatted=d+l(t.endOfLine)}if(t.cursorOffset>=0){var b,C,A,w,S;if(t.cursorNode&&f.cursorNodeText?(b=t.locStart(t.cursorNode),C=u.slice(b,t.locEnd(t.cursorNode)),A=t.cursorOffset-b,w=f.cursorNodeStart,S=f.cursorNodeText):(b=0,C=u,A=t.cursorOffset,w=0,S=f.formatted),C===S)return{formatted:f.formatted,cursorOffset:w+A,comments:c};var F=v(C);F.splice(A,0,E);var k,_=v(S),T=n(F,_),O=w,N=g(T);try{for(N.s();!(k=N.n()).done;){var j=k.value;if(j.removed){if(j.value.includes(E))break}else O+=j.count}}catch(P){N.e(P)}finally{N.f()}return{formatted:f.formatted,cursorOffset:O,comments:c}}return{formatted:f.formatted,cursorOffset:-1,comments:c}}function A(e,t){var n=y.parse(e,t),r=n.ast,i=n.text,o=D.calculateRange(i,t,r),u=o.rangeStart,s=o.rangeEnd,p=i.slice(u,s),f=Math.min(u,i.lastIndexOf("\n",u)+1),d=i.slice(f,u).match(/^\s*/)[0],h=a(d,t.tabWidth),m=C(p,Object.assign(Object.assign({},t),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>u&&t.cursorOffset<=s?t.cursorOffset-u:-1,endOfLine:"lf"}),h),v=m.formatted.trimEnd(),g=t.cursorOffset;g>s?g+=v.length-p.length:m.cursorOffset>=0&&(g=m.cursorOffset+u);var b=i.slice(0,u)+v+i.slice(s);if("lf"!==t.endOfLine){var E=l(t.endOfLine);g>=0&&"\r\n"===E&&(g+=c(b.slice(0,g),"\n")),b=b.replace(/\n/g,E)}return{formatted:b,cursorOffset:g,comments:m.comments}}function w(e,t,n){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?n:t}function S(e,t){var n=t.cursorOffset,r=t.rangeStart,i=t.rangeEnd;return n=w(e,n,-1),r=w(e,r,0),i=w(e,i,e.length),Object.assign(Object.assign({},t),{},{cursorOffset:n,rangeStart:r,rangeEnd:i})}function F(e,t){var n=S(e,t),r=n.cursorOffset,i=n.rangeStart,o=n.rangeEnd,a=n.endOfLine,u=e.charAt(0)===b;if(u&&(e=e.slice(1),r--,i--,o--),"auto"===a&&(a=s(e)),e.includes("\r")){var l=function(t){return c(e.slice(0,Math.max(t,0)),"\r\n")};r-=l(r),i-=l(i),o-=l(o),e=p(e)}return{hasBOM:u,text:e,options:S(e,Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:i,rangeEnd:o,endOfLine:a}))}}function k(e,t){var n=y.resolveParser(t);return!n.hasPragma||n.hasPragma(e)}function _(e,t){var n,r=F(e,f(t)),i=r.hasBOM,o=r.text,a=r.options;return a.rangeStart>=a.rangeEnd&&""!==o||a.requirePragma&&!k(o,a)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(a.rangeStart>0||a.rangeEnd<o.length?n=A(o,a):(!a.requirePragma&&a.insertPragma&&a.printer.insertPragma&&!k(o,a)&&(o=a.printer.insertPragma(o)),n=C(o,a)),i&&(n.formatted=b+n.formatted,n.cursorOffset>=0&&n.cursorOffset++),n)}t.exports={formatWithCursor:_,parse:function(e,t,n){var r=F(e,f(t)),i=r.text,o=r.options,a=y.parse(i,o);return n&&(a.ast=d(a.ast,o)),a},formatAST:function(e,t){t=f(t);var n=m(e,t);return i(n,t)},formatDoc:function(e,t){return _(o(e),Object.assign(Object.assign({},t),{},{parser:"__js_expression"})).formatted},printToDoc:function(e,t){t=f(t);var n=y.parse(e,t),r=n.ast;return x(n.text,r,t),m(r,t)},printDocToString:function(e,t){return i(e,f(t))}}}}),bn=q({"src/common/util-shared.js":function(e,t){W();var n=Le(),r=n.getMaxContinuousCount,i=n.getStringWidth,o=n.getAlignmentSize,a=n.getIndentSize,u=n.skip,s=n.skipWhitespace,l=n.skipSpaces,c=n.skipNewline,p=n.skipToLineEnd,f=n.skipEverythingButNewLine,d=n.skipInlineComment,h=n.skipTrailingComment,y=n.hasNewline,m=n.hasNewlineInRange,v=n.hasSpaces,g=n.isNextLineEmpty,D=n.isNextLineEmptyAfterIndex,b=n.isPreviousLineEmpty,E=n.getNextNonSpaceNonCommentCharacterIndex,x=n.makeString,C=n.addLeadingComment,A=n.addDanglingComment,w=n.addTrailingComment;t.exports={getMaxContinuousCount:r,getStringWidth:i,getAlignmentSize:o,getIndentSize:a,skip:u,skipWhitespace:s,skipSpaces:l,skipNewline:c,skipToLineEnd:p,skipEverythingButNewLine:f,skipInlineComment:d,skipTrailingComment:h,hasNewline:y,hasNewlineInRange:m,hasSpaces:v,isNextLineEmpty:g,isNextLineEmptyAfterIndex:D,isPreviousLineEmpty:b,getNextNonSpaceNonCommentCharacterIndex:E,makeString:x,addLeadingComment:C,addDanglingComment:A,addTrailingComment:w}}}),En=q({"src/utils/create-language.js":function(e,t){W(),t.exports=function(e,t){var n=e.languageId,r=_(e,k);return Object.assign(Object.assign({linguistLanguageId:n},r),t(e))}}}),xn=q({"node_modules/esutils/lib/ast.js":function(e,t){W(),function(){function e(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function n(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function i(e){return r(e)||null!=e&&"FunctionDeclaration"===e.type}function o(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}function a(e){var t;if("IfStatement"!==e.type||null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=o(t)}while(t);return!1}t.exports={isExpression:e,isStatement:r,isIterationStatement:n,isSourceElement:i,isProblematicIfStatement:a,trailingStatement:o}}()}}),Cn=q({"node_modules/esutils/lib/code.js":function(e,t){W(),function(){var e,n,r,i,o,a;function u(e){return 48<=e&&e<=57}function s(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function l(e){return e>=48&&e<=55}function c(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0}function p(e){return 10===e||13===e||8232===e||8233===e}function f(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(o=new Array(128),a=0;a<128;++a)o[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;function d(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(f(e))}function h(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(f(e))}function y(t){return t<128?i[t]:e.NonAsciiIdentifierStart.test(f(t))}function m(t){return t<128?o[t]:e.NonAsciiIdentifierPart.test(f(t))}t.exports={isDecimalDigit:u,isHexDigit:s,isOctalDigit:l,isWhiteSpace:c,isLineTerminator:p,isIdentifierStartES5:d,isIdentifierPartES5:h,isIdentifierStartES6:y,isIdentifierPartES6:m}}()}}),An=q({"node_modules/esutils/lib/keyword.js":function(e,t){W(),function(){var e=Cn();function n(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,t){if(t&&n(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function o(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||i(e,t)}function u(e){return"eval"===e||"arguments"===e}function s(t){var n,r,i;if(0===t.length||(i=t.charCodeAt(0),!e.isIdentifierStartES5(i)))return!1;for(n=1,r=t.length;n<r;++n)if(i=t.charCodeAt(n),!e.isIdentifierPartES5(i))return!1;return!0}function l(e,t){return 1024*(e-55296)+(t-56320)+65536}function c(t){var n,r,i,o,a;if(0===t.length)return!1;for(a=e.isIdentifierStartES6,n=0,r=t.length;n<r;++n){if(55296<=(i=t.charCodeAt(n))&&i<=56319){if(++n>=r||!(56320<=(o=t.charCodeAt(n))&&o<=57343))return!1;i=l(i,o)}if(!a(i))return!1;a=e.isIdentifierPartES6}return!0}function p(e,t){return s(e)&&!o(e,t)}function f(e,t){return c(e)&&!a(e,t)}t.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:o,isReservedWordES6:a,isRestrictedWord:u,isIdentifierNameES5:s,isIdentifierNameES6:c,isIdentifierES5:p,isIdentifierES6:f}}()}}),wn=q({"node_modules/esutils/lib/utils.js":function(e){W(),e.ast=xn(),e.code=Cn(),e.keyword=An()}}),Sn=q({"src/language-js/utils/is-block-comment.js":function(e,t){W();var n=new Set(["Block","CommentBlock","MultiLine"]),r=function(e){return n.has(null==e?void 0:e.type)};t.exports=r}}),Fn=q({"src/language-js/utils/is-node-matches.js":function(e,t){function n(e,t){for(var n=t.split("."),r=n.length-1;r>=0;r--){var i=n[r];if(0===r)return"Identifier"===e.type&&e.name===i;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==i)return!1;e=e.object}}function r(e,t){return t.some((function(t){return n(e,t)}))}W(),t.exports=r}}),kn=q({"src/language-js/utils/index.js":function(e,t){W();var n=wn().keyword.isIdentifierNameES5,r=Le(),i=r.getLast,o=r.hasNewline,a=r.skipWhitespace,u=r.isNonEmptyArray,s=r.isNextLineEmptyAfterIndex,l=r.getStringWidth,c=an(),p=c.locStart,f=c.locEnd,d=c.hasSameLocStart,h=Sn(),y=Fn(),m="(?:(?=.)\\s)",D=new RegExp("^".concat(m,"*:")),b=new RegExp("^".concat(m,"*::"));function E(e){var t,n;return(null===(t=e.extra)||void 0===t?void 0:t.parenthesized)&&h(null===(n=e.trailingComments)||void 0===n?void 0:n[0])&&D.test(e.trailingComments[0].value)}function x(e){var t=null==e?void 0:e[0];return h(t)&&b.test(t.value)}function C(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e))return e.some((function(e){return C(e,t)}));var n=t(e);return"boolean"==typeof n?n:Object.values(e).some((function(e){return C(e,t)}))}function A(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||ee(e)||te(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type}function w(e){var t,n,r,i,o,a;return e.expressions?e.expressions[0]:null!==(t=null!==(n=null!==(r=null!==(i=null!==(o=null!==(a=e.left)&&void 0!==a?a:e.test)&&void 0!==o?o:e.callee)&&void 0!==i?i:e.object)&&void 0!==r?r:e.tag)&&void 0!==n?n:e.argument)&&void 0!==t?t:e.expression}function S(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function F(e){return e=new Set(e),function(t){return e.has(null==t?void 0:t.type)}}var k=F(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),_=F(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function T(e){var t=e.getParentNode();return"declaration"===e.getName()&&_(t)?t:null}var O=F(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function N(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function j(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&N(e.argument)}function P(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}var B=F(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),I=F(["FunctionExpression","ArrowFunctionExpression"]);function L(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}function M(e){return ee(e)&&"Identifier"===e.callee.type&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var R=F(["JSXElement","JSXFragment"]);function q(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;var n=t.getNode();if(!n.expression||!R(n.expression))return!1;var r=t.getParentNode();return"Program"===r.type&&1===r.body.length}function V(e){return"get"===e.kind||"set"===e.kind}function U(e){return V(e)||d(e,e.value)}function z(e){return("ObjectTypeProperty"===e.type||"ObjectTypeInternalSlot"===e.type)&&"FunctionTypeAnnotation"===e.value.type&&!e.static&&!U(e)}function H(e){return("TypeAnnotation"===e.type||"TSTypeAnnotation"===e.type)&&"FunctionTypeAnnotation"===e.typeAnnotation.type&&!e.static&&!d(e,e.typeAnnotation)}var $=F(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function G(e){return te(e)||"BindExpression"===e.type&&Boolean(e.object)}var K=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);function J(e){return!!e&&!(("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)&&!K.has(e.type))}function X(e){var t=/^(?:before|after)(?:Each|All)$/;return"Identifier"===e.callee.type&&t.test(e.callee.name)&&1===e.arguments.length}var Y=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function Q(e){return y(e,Y)}function Z(e,t){if("CallExpression"!==e.type)return!1;if(1===e.arguments.length){if(M(e)&&t&&Z(t))return I(e.arguments[0]);if(X(e))return M(e.arguments[0])}else if((2===e.arguments.length||3===e.arguments.length)&&("TemplateLiteral"===e.arguments[0].type||P(e.arguments[0]))&&Q(e.callee))return!(e.arguments[2]&&!N(e.arguments[2]))&&((2===e.arguments.length?I(e.arguments[1]):L(e.arguments[1])&&Te(e.arguments[1]).length<=1)||M(e.arguments[1]));return!1}var ee=F(["CallExpression","OptionalCallExpression"]),te=F(["MemberExpression","OptionalMemberExpression"]);function ne(e){var t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");var n=e[t];return 0!==n.length&&n.every((function(e){if(Ve(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(te(e)){for(var t=e;te(t);)if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type||Ve(t=t.object))return!1;return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))}function re(e,t){return"+"===e||"-"===e?e+t:t}function ie(e,t){var n=p(t),r=a(e,f(t));return!1!==r&&"/*"===e.slice(n,n+2)&&"*/"===e.slice(r,r+2)}function oe(e,t){return R(t)?Ie(t):Ve(t,Re.Leading,(function(t){return o(e,f(t))}))}function ae(e,t){return"json"!==t.parser&&P(e.key)&&ye(e.key).slice(1,-1)===e.key.value&&(n(e.key.value)&&!("babel-ts"===t.parser&&"ClassProperty"===e.type||"typescript"===t.parser&&"PropertyDefinition"===e.type)||ue(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))}function ue(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function se(e,t){var n=/^[fx]?(?:describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))}function le(e){return e.quasis.some((function(e){return e.value.raw.includes("\n")}))}function ce(e,t){return("TemplateLiteral"===e.type&&le(e)||"TaggedTemplateExpression"===e.type&&le(e.quasi))&&!o(t,p(e),{backwards:!0})}function pe(e){if(!Ve(e))return!1;var t=i(Ue(e,Re.Dangling));return t&&!h(t)}function fe(e){if(e.length<=1)return!1;var t,n=0,r=g(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(I(i)){if((n+=1)>1)return!0}else if(ee(i)){var o,a=g(i.arguments);try{for(a.s();!(o=a.n()).done;){var u=o.value;if(I(u))return!0}}catch(s){a.e(s)}finally{a.f()}}}}catch(s){r.e(s)}finally{r.f()}return!1}function de(e){var t=e.getValue(),n=e.getParentNode();return ee(t)&&ee(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0}function he(e,t){if(t>=2)return!1;var n=function(e){return he(e,t+1)},r="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return!(r&&l(r)>5)&&("Literal"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"BooleanLiteral"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"Identifier"===e.type||"ThisExpression"===e.type||"Super"===e.type||"PrivateName"===e.type||"PrivateIdentifier"===e.type||"ArgumentPlaceholder"===e.type||"Import"===e.type||("TemplateLiteral"===e.type?e.quasis.every((function(e){return!e.value.raw.includes("\n")}))&&e.expressions.every(n):"ObjectExpression"===e.type?e.properties.every((function(e){return!e.computed&&(e.shorthand||e.value&&n(e.value))})):"ArrayExpression"===e.type?e.elements.every((function(e){return null===e||n(e)})):He(e)?("ImportExpression"===e.type||he(e.callee,t))&&je(e).every(n):te(e)?he(e.object,t)&&he(e.property,t):"UnaryExpression"!==e.type||"!"!==e.operator&&"-"!==e.operator?"TSNonNullExpression"===e.type&&he(e.expression,t):he(e.argument,t)))}function ye(e){var t,n;return null!==(t=null===(n=e.extra)||void 0===n?void 0:n.raw)&&void 0!==t?t:e.raw}function me(e){return e}function ve(e){return e.filepath&&/\.tsx$/i.test(e.filepath)}function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)}function De(e,t){switch((e=Se(e)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return t;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return De(e.object,t);case"TaggedTemplateExpression":return"FunctionExpression"!==e.tag.type&&De(e.tag,t);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==e.callee.type&&De(e.callee,t);case"ConditionalExpression":return De(e.test,t);case"UpdateExpression":return!e.prefix&&De(e.argument,t);case"BindExpression":return e.object&&De(e.object,t);case"SequenceExpression":return De(e.expressions[0],t);case"TSAsExpression":case"TSNonNullExpression":return De(e.expression,t);default:return!1}}var be={"==":!0,"!=":!0,"===":!0,"!==":!0},Ee={"*":!0,"/":!0,"%":!0},xe={">>":!0,">>>":!0,"<<":!0};function Ce(e,t){return!(we(t)!==we(e)||"**"===e||be[e]&&be[t]||"%"===t&&Ee[e]||"%"===e&&Ee[t]||t!==e&&Ee[t]&&Ee[e]||xe[e]&&xe[t])}var Ae=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((function(e,t){return e.map((function(e){return[e,t]}))})));function we(e){return Ae.get(e)}function Se(e){for(;e.left;)e=e.left;return e}function Fe(e){return Boolean(xe[e])||"|"===e||"^"===e||"&"===e}function ke(e){var t;if(e.rest)return!0;var n=Te(e);return"RestElement"===(null===(t=i(n))||void 0===t?void 0:t.type)}var _e=new WeakMap;function Te(e){if(_e.has(e))return _e.get(e);var t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push.apply(t,v(e.parameters)):Array.isArray(e.params)&&t.push.apply(t,v(e.params)),e.rest&&t.push(e.rest),_e.set(e,t),t}function Oe(e,t){var n=e.getValue(),r=0,i=function(e){return t(e,r++)};n.this&&e.call(i,"this"),Array.isArray(n.parameters)?e.each(i,"parameters"):Array.isArray(n.params)&&e.each(i,"params"),n.rest&&e.call(i,"rest")}var Ne=new WeakMap;function je(e){if(Ne.has(e))return Ne.get(e);var t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes)),Ne.set(e,t),t}function Pe(e,t){var n=e.getValue();"ImportExpression"===n.type?(e.call((function(e){return t(e,0)}),"source"),n.attributes&&e.call((function(e){return t(e,1)}),"attributes")):e.each(t,"arguments")}function Be(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function Ie(e){return e&&(e.prettierIgnore||Ve(e,Re.PrettierIgnore))}function Me(e){return Ie(e.getValue())}var Re={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},qe=function(e,t){if("function"==typeof e&&(t=e,e=0),e||t)return function(n,r,i){return!(e&Re.Leading&&!n.leading||e&Re.Trailing&&!n.trailing||e&Re.Dangling&&(n.leading||n.trailing)||e&Re.Block&&!h(n)||e&Re.Line&&!k(n)||e&Re.First&&0!==r||e&Re.Last&&r!==i.length-1||e&Re.PrettierIgnore&&!Be(n)||t&&!t(n))}};function Ve(e,t,n){if(!u(null==e?void 0:e.comments))return!1;var r=qe(t,n);return!r||e.comments.some(r)}function Ue(e,t,n){if(!Array.isArray(null==e?void 0:e.comments))return[];var r=qe(t,n);return r?e.comments.filter(r):e.comments}var ze=function(e,t){var n=t.originalText;return s(n,f(e))};function He(e){return ee(e)||"NewExpression"===e.type||"ImportExpression"===e.type}function We(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!e.method&&"init"===e.kind)}function $e(e){return Boolean(e.__isUsingHackPipeline)}var Ge=Symbol("ifWithoutBlockAndSameLineComment");t.exports={getFunctionParameters:Te,iterateFunctionParametersPath:Oe,getCallArguments:je,iterateCallArgumentsPath:Pe,hasRestParameter:ke,getLeftSide:w,getLeftSidePathName:S,getParentExportDeclaration:T,getTypeScriptMappedTypeModifier:re,hasFlowAnnotationComment:x,hasFlowShorthandAnnotationComment:E,hasLeadingOwnLineComment:oe,hasNakedLeftSide:A,hasNode:C,hasIgnoreComment:Me,hasNodeIgnoreComment:Ie,identity:me,isBinaryish:$,isCallLikeExpression:He,isEnabledHackPipeline:$e,isLineComment:k,isPrettierIgnoreComment:Be,isCallExpression:ee,isMemberExpression:te,isExportDeclaration:_,isFlowAnnotationComment:ie,isFunctionCompositionArgs:fe,isFunctionNotation:U,isFunctionOrArrowExpression:I,isGetterOrSetter:V,isJestEachTemplateLiteral:se,isJsxNode:R,isLiteral:O,isLongCurriedCallExpression:de,isSimpleCallArgument:he,isMemberish:G,isNumericLiteral:N,isSignedNumericLiteral:j,isObjectProperty:We,isObjectType:B,isObjectTypePropertyAFunction:z,isSimpleType:J,isSimpleNumber:ue,isSimpleTemplateLiteral:ne,isStringLiteral:P,isStringPropSafeToUnquote:ae,isTemplateOnItsOwnLine:ce,isTestCall:Z,isTheOnlyJsxElementInMarkdown:q,isTSXFile:ve,isTypeAnnotationAFunction:H,isNextLineEmpty:ze,needsHardlineAfterDanglingComment:pe,rawText:ye,shouldPrintComma:ge,isBitwiseOperator:Fe,shouldFlatten:Ce,startsWithNoLookaheadToken:De,getPrecedence:we,hasComment:Ve,getComments:Ue,CommentCheckFlags:Re,markerForIfWithoutBlockAndSameLineComment:Ge}}}),_n=q({"src/language-js/print/template-literal.js":function(e,t){W();var n=Y(),r=Le(),i=r.getStringWidth,o=r.getIndentSize,a=de(),u=a.builders,s=u.join,l=u.hardline,c=u.softline,p=u.group,f=u.indent,d=u.align,h=u.lineSuffixBoundary,m=u.addAlignmentToDoc,D=a.printer.printDocToString,b=a.utils.mapDoc,E=kn(),x=E.isBinaryish,C=E.isJestEachTemplateLiteral,A=E.isSimpleTemplateLiteral,w=E.hasComment,S=E.isMemberExpression;function F(e,t,n){var r=e.getValue();if("TemplateLiteral"===r.type&&C(r,e.getParentNode())){var i=k(e,n,t);if(i)return i}var a="expressions";"TSTemplateLiteralType"===r.type&&(a="types");var u=[],s=e.map(t,a),l=A(r);return l&&(s=s.map((function(e){return D(e,Object.assign(Object.assign({},n),{},{printWidth:Number.POSITIVE_INFINITY})).formatted}))),u.push(h,"`"),e.each((function(e){var i=e.getName();if(u.push(t()),i<s.length){var y=n.tabWidth,v=e.getValue(),g=o(v.value.raw,y),D=s[i];if(!l){var b=r[a][i];(w(b)||S(b)||"ConditionalExpression"===b.type||"SequenceExpression"===b.type||"TSAsExpression"===b.type||x(b))&&(D=[f([c,D]),c])}var E=0===g&&v.value.raw.endsWith("\n")?d(Number.NEGATIVE_INFINITY,D):m(D,g,y);u.push(p(["${",E,h,"}"]))}}),"quasis"),u.push("`"),u}function k(e,t,r){var o=e.getNode(),a=o.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(a.length>1||a.some((function(e){return e.length>0}))){t.__inJestEach=!0;var u=e.map(r,"expressions");t.__inJestEach=!1;for(var c=[],p=u.map((function(e){return"${"+D(e,Object.assign(Object.assign({},t),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"})),d=[{hasLineBreak:!1,cells:[]}],m=1;m<o.quasis.length;m++){var b=n(d),E=p[m-1];b.cells.push(E),E.includes("\n")&&(b.hasLineBreak=!0),o.quasis[m].value.raw.includes("\n")&&d.push({hasLineBreak:!1,cells:[]})}var x,C=Math.max.apply(Math,[a.length].concat(v(d.map((function(e){return e.cells.length}))))),A=Array.from({length:C}).fill(0),w=[{cells:a}].concat(v(d.filter((function(e){return e.cells.length>0})))),S=g(w.filter((function(e){return!e.hasLineBreak})));try{for(S.s();!(x=S.n()).done;){var F,k=x.value.cells,_=g(k.entries());try{for(_.s();!(F=_.n()).done;){var T=y(F.value,2),O=T[0],N=T[1];A[O]=Math.max(A[O],i(N))}}catch(j){_.e(j)}finally{_.f()}}}catch(j){S.e(j)}finally{S.f()}return c.push(h,"`",f([l,s(l,w.map((function(e){return s(" | ",e.cells.map((function(t,n){return e.hasLineBreak?t:t+" ".repeat(A[n]-i(t))})))})))]),l,"`"),c}}function _(e,t){var n=e.getValue(),r=t();return w(n)&&(r=p([f([c,r]),c])),["${",r,h,"}"]}function T(e,t){return e.map((function(e){return _(e,t)}),"expressions")}function O(e,t){return b(e,(function(e){return"string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):N(e):e}))}function N(e){return e.replace(/([\\`]|\${)/g,"\\$1")}t.exports={printTemplateLiteral:F,printTemplateExpressions:T,escapeTemplateCharacters:O,uncookTemplateElementValue:N}}}),Tn=q({"src/language-js/embed/markdown.js":function(e,t){W();var n=de().builders,r=n.indent,i=n.softline,o=n.literalline,a=n.dedentToRoot,u=_n().escapeTemplateCharacters;function s(e,t,n){var s=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(function(e,t){return"\\".repeat(t.length/2)+"`"})),c=l(s),p=""!==c;p&&(s=s.replace(new RegExp("^".concat(c),"gm"),""));var f=u(n(s,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",p?r([i,f]):[o,a(f)],i,"`"]}function l(e){var t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}t.exports=s}}),On=q({"src/language-js/embed/css.js":function(e,t){W();var n=Le().isNonEmptyArray,r=de(),i=r.builders,o=i.indent,a=i.hardline,u=i.softline,s=r.utils,l=s.mapDoc,c=s.replaceEndOfLine,p=s.cleanDoc,f=_n().printTemplateExpressions;function d(e,t,n){var r=e.getValue(),i=r.quasis.map((function(e){return e.value.raw})),o=0;return h(n(i.reduce((function(e,t,n){return 0===n?t:e+"@prettier-placeholder-"+o+++"-id"+t}),""),{parser:"scss"},{stripTrailingHardline:!0}),r,f(e,t))}function h(e,t,n){if(1===t.quasis.length&&!t.quasis[0].value.raw.trim())return"``";var r=y(e,n);if(!r)throw new Error("Couldn't insert all the expressions");return["`",o([a,r]),u,"`"]}function y(e,t){if(!n(t))return e;var r=0,i=l(p(e),(function(e){return"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/).map((function(e,n){return n%2===0?c(e):(r++,t[e])})):e}));return t.length===r?i:null}t.exports=d}}),Nn=q({"src/language-js/embed/graphql.js":function(e,t){W();var n=de().builders,r=n.indent,i=n.join,o=n.hardline,a=_n(),u=a.escapeTemplateCharacters,s=a.printTemplateExpressions;function l(e,t,n){var a=e.getValue(),l=a.quasis.length;if(1===l&&""===a.quasis[0].value.raw.trim())return"``";for(var p=s(e,t),f=[],d=0;d<l;d++){var h=0===d,y=d===l-1,m=a.quasis[d].value.cooked,v=m.split("\n"),g=v.length,D=p[d],b=g>2&&""===v[0].trim()&&""===v[1].trim(),E=g>2&&""===v[g-1].trim()&&""===v[g-2].trim(),x=v.every((function(e){return/^\s*(?:#[^\n\r]*)?$/.test(e)}));if(!y&&/#[^\n\r]*$/.test(v[g-1]))return null;var C=null;(C=x?c(v):n(m,{parser:"graphql"},{stripTrailingHardline:!0}))?(C=u(C,!1),!h&&b&&f.push(""),f.push(C),!y&&E&&f.push("")):!h&&!y&&b&&f.push(""),D&&f.push(D)}return["`",r([o,i(o,f)]),o,"`"]}function c(e){var t,n=[],r=!1,a=e.map((function(e){return e.trim()})),u=g(a.entries());try{for(u.s();!(t=u.n()).done;){var s=y(t.value,2),l=s[0],c=s[1];""!==c&&(""===a[l-1]&&r?n.push([o,c]):n.push(c),r=!0)}}catch(p){u.e(p)}finally{u.f()}return 0===n.length?null:i(o,n)}t.exports=l}}),jn=q({"src/language-js/embed/html.js":function(e,t){W();var n=de(),r=n.builders,i=r.indent,o=r.line,a=r.hardline,u=r.group,s=n.utils.mapDoc,l=_n(),c=l.printTemplateExpressions,p=l.uncookTemplateElementValue,f=0;function d(e,t,n,r,l){var d=l.parser,h=e.getValue(),y=f;f=f+1>>>0;var m=function(e){return"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(y,"_IN_JS")},v=h.quasis.map((function(e,t,n){return t===n.length-1?e.value.cooked:e.value.cooked+m(t)})).join(""),g=c(e,t);if(0===g.length&&0===v.trim().length)return"``";var D=new RegExp(m("(\\d+)"),"g"),b=0,E=n(v,{parser:d,__onHtmlRoot:function(e){b=e.children.length}},{stripTrailingHardline:!0}),x=s(E,(function(e){if("string"!=typeof e)return e;for(var t=[],n=e.split(D),i=0;i<n.length;i++){var o=n[i];if(i%2!==0){var a=Number(o);t.push(g[a])}else o&&(o=p(o),r.__embeddedInHtml&&(o=o.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(o))}return t})),C=/^\s/.test(v)?" ":"",A=/\s$/.test(v)?" ":"",w="ignore"===r.htmlWhitespaceSensitivity?a:C&&A?o:null;return u(w?["`",i([w,u(x)]),w,"`"]:["`",C,b>1?i(u(x)):u(x),A,"`"])}t.exports=d}}),Pn=q({"src/language-js/embed.js":function(e,t){W();var n=kn(),r=n.hasComment,i=n.CommentCheckFlags,o=n.isObjectProperty,a=Tn(),u=On(),s=Nn(),l=jn();function c(e){return d(e)||v(e)||g(e)||h(e)?"css":E(e)?"graphql":C(e)?"html":y(e)?"angular":f(e)?"markdown":void 0}function p(e,t,n,r){var i=e.getValue();if("TemplateLiteral"===i.type&&!A(i)){var o=c(e);if(o){if("markdown"===o)return a(e,t,n);if("css"===o)return u(e,t,n);if("graphql"===o)return s(e,t,n);if("html"===o||"angular"===o)return l(e,t,n,r,{parser:o})}}}function f(e){var t=e.getValue(),n=e.getParentNode();return n&&"TaggedTemplateExpression"===n.type&&1===t.quasis.length&&"Identifier"===n.tag.type&&("md"===n.tag.name||"markdown"===n.tag.name)}function d(e){var t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}function h(e){return e.match.apply(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"ArrayExpression"===e.type&&"elements"===t},function(e,t){return o(e)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t}].concat(m))}function y(e){return e.match.apply(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return o(e)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t}].concat(m))}var m=[function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}];function v(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var n="ParenthesizedExpression"===t.tag.type?t.tag.expression:t.tag;switch(n.type){case"MemberExpression":return D(n.object)||b(n);case"CallExpression":return D(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(D(n.callee.object.object)||b(n.callee.object))||"CallExpression"===n.callee.object.type&&D(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function g(e){var t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function D(e){return"Identifier"===e.type&&"styled"===e.name}function b(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function E(e){var t=e.getValue(),n=e.getParentNode();return x(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}function x(e,t){return r(e,i.Block|i.Leading,(function(e){return e.value===" ".concat(t," ")}))}function C(e){return x(e.getValue(),"HTML")||e.match((function(e){return"TemplateLiteral"===e.type}),(function(e,t){return"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t}))}function A(e){return e.quasis.some((function(e){return null===e.value.cooked}))}t.exports=p}}),Bn=q({"src/language-js/clean.js":function(e,t){W();var n=Sn(),r=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),i=function(e){var t,n=g(e.quasis);try{for(n.s();!(t=n.n()).done;)delete t.value.value}catch(r){n.e(r)}finally{n.f()}};function o(e,t,r){if("Program"===e.type&&delete t.sourceType,("BigIntLiteral"===e.type||"BigIntLiteralTypeAnnotation"===e.type)&&t.value&&(t.value=t.value.toLowerCase()),("BigIntLiteral"===e.type||"Literal"===e.type)&&t.bigint&&(t.bigint=t.bigint.toLowerCase()),"DecimalLiteral"===e.type&&(t.value=Number(t.value)),"Literal"===e.type&&t.decimal&&(t.decimal=Number(t.decimal)),"EmptyStatement"===e.type||"JSXText"===e.type||"JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if(("Property"===e.type||"ObjectProperty"===e.type||"MethodDefinition"===e.type||"ClassProperty"===e.type||"ClassMethod"===e.type||"PropertyDefinition"===e.type||"TSDeclareMethod"===e.type||"TSPropertySignature"===e.type||"ObjectTypeProperty"===e.type)&&"object"==typeof e.key&&e.key&&("Literal"===e.key.type||"NumericLiteral"===e.key.type||"StringLiteral"===e.key.type||"Identifier"===e.key.type)&&delete t.key,"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))){var o,a=g(t.children);try{for(a.s();!(o=a.n()).done;){var u=o.value,s=u.type,l=u.expression;"JSXExpressionContainer"===s&&"TemplateLiteral"===l.type&&i(l)}}catch(b){a.e(b)}finally{a.f()}}"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&i(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));var c,p=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===p.type&&"Component"===p.callee.name&&1===p.arguments.length){var f,d=e.expression.arguments[0].properties,h=g(t.expression.arguments[0].properties.entries());try{for(h.s();!(f=h.n()).done;){var m=y(f.value,2),v=m[0],D=m[1];switch(d[v].key.name){case"styles":"ArrayExpression"===D.value.type&&i(D.value.elements[0]);break;case"template":"TemplateLiteral"===D.value.type&&i(D.value)}}}catch(b){h.e(b)}finally{h.f()}}return"TaggedTemplateExpression"===e.type&&("MemberExpression"===e.tag.type||"Identifier"===e.tag.type&&("gql"===e.tag.name||"graphql"===e.tag.name||"css"===e.tag.name||"md"===e.tag.name||"markdown"===e.tag.name||"html"===e.tag.name)||"CallExpression"===e.tag.type)&&i(t.quasi),"TemplateLiteral"===e.type&&((null===(c=e.leadingComments)||void 0===c?void 0:c.some((function(e){return n(e)&&["GraphQL","HTML"].some((function(t){return e.value===" ".concat(t," ")}))})))||"CallExpression"===r.type&&"graphql"===r.callee.name||!e.leadingComments)&&i(t),"InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),"TSIntersectionType"!==e.type&&"TSUnionType"!==e.type||1!==e.types.length?void 0:t.types[0]}o.ignoredProperties=r,t.exports=o}}),In={};function Ln(){if(typeof Yn>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])Yn="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");Yn="LE"}}return Yn}function Mn(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function Rn(){return[]}function qn(){return 0}function Vn(){return Number.MAX_VALUE}function Un(){return Number.MAX_VALUE}function zn(){return[]}function Hn(){return"Browser"}function Wn(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function $n(){}function Gn(){}function Kn(){return"javascript"}function Jn(){return"browser"}function Xn(){return"/tmp"}V(In,{EOL:function(){return Zn},arch:function(){return Kn},cpus:function(){return zn},default:function(){return er},endianness:function(){return Ln},freemem:function(){return Vn},getNetworkInterfaces:function(){return Gn},hostname:function(){return Mn},loadavg:function(){return Rn},networkInterfaces:function(){return $n},platform:function(){return Jn},release:function(){return Wn},tmpDir:function(){return Xn},tmpdir:function(){return Qn},totalmem:function(){return Un},type:function(){return Hn},uptime:function(){return qn}});var Yn,Qn,Zn,er,tr=R({"node-modules-polyfills:os":function(){W(),er={EOL:Zn="\n",tmpdir:Qn=Xn,tmpDir:Xn,networkInterfaces:$n,getNetworkInterfaces:Gn,release:Wn,type:Hn,cpus:zn,totalmem:Un,freemem:Vn,uptime:qn,loadavg:Rn,hostname:Mn,endianness:Ln}}}),nr=q({"node-modules-polyfills-commonjs:os":function(e,t){W();var n=(tr(),H(In));if(n&&n.default)for(var r in t.exports=n.default,n)t.exports[r]=n[r];else n&&(t.exports=n)}}),rr=q({"node_modules/detect-newline/index.js":function(e,t){W();var n=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0!==t.length){var n=t.filter((function(e){return"\r\n"===e})).length;return n>t.length-n?"\r\n":"\n"}};t.exports=n,t.exports.graceful=function(e){return"string"==typeof e&&n(e)||"\n"}}}),ir=q({"node_modules/jest-docblock/build/index.js":function(e){function t(){var e=nr();return t=function(){return e},e}function n(){var e=r(rr());return n=function(){return e},e}function r(e){return e&&e.__esModule?e:{default:e}}W(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=d,e.parse=y,e.parseWithComments=m,e.print=v,e.strip=h;var i=/\*\/$/,o=/^\/\*\*/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,u=/(^|\s+)\/\/([^\r\n]*)/g,s=/^(\r?\n)+/,l=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,c=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g,f=[];function d(e){var t=e.match(a);return t?t[0].trimLeft():""}function h(e){var t=e.match(a);return t&&t[0]?e.substring(t[0].length):e}function y(e){return m(e).pragmas}function m(e){var r=(0,n().default)(e)||t().EOL;e=e.replace(o,"").replace(i,"").replace(p,"$1");for(var a="";a!==e;)a=e,e=e.replace(l,"".concat(r,"$1 $2").concat(r));e=e.replace(s,"").trimRight();for(var d,h=Object.create(null),y=e.replace(c,"").replace(s,"").trimRight();d=c.exec(e);){var m=d[2].replace(u,"");"string"==typeof h[d[1]]||Array.isArray(h[d[1]])?h[d[1]]=f.concat(h[d[1]],m):h[d[1]]=m}return{comments:y,pragmas:h}}function v(e){var r=e.comments,i=void 0===r?"":r,o=e.pragmas,a=void 0===o?{}:o,u=(0,n().default)(i)||t().EOL,s="/**",l=" *",c=" */",p=Object.keys(a),f=p.map((function(e){return g(e,a[e])})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return l+" "+e+u})).join("");if(!i){if(0===p.length)return"";if(1===p.length&&!Array.isArray(a[p[0]])){var d=a[p[0]];return"".concat(s," ").concat(g(p[0],d)[0]).concat(c)}}var h=i.split(u).map((function(e){return"".concat(l," ").concat(e)})).join(u)+u;return s+u+(i?h:"")+(i&&p.length?l+u:"")+f+c}function g(e,t){return f.concat(t).map((function(t){return"@".concat(e," ").concat(t).trim()}))}}}),or=q({"src/language-js/utils/get-shebang.js":function(e,t){function n(e){if(!e.startsWith("#!"))return"";var t=e.indexOf("\n");return-1===t?e:e.slice(0,t)}W(),t.exports=n}}),ar=q({"src/language-js/pragma.js":function(e,t){W();var n=ir(),r=n.parseWithComments,i=n.strip,o=n.extract,a=n.print,u=X().normalizeEndOfLine,s=or();function l(e){var t=s(e);t&&(e=e.slice(t.length+1));var n=o(e),i=r(n);return{shebang:t,text:e,pragmas:i.pragmas,comments:i.comments}}function c(e){var t=Object.keys(l(e).pragmas);return t.includes("prettier")||t.includes("format")}function p(e){var t=l(e),n=t.shebang,r=t.text,o=t.pragmas,s=t.comments,c=i(r),p=a({pragmas:Object.assign({format:""},o),comments:s.trimStart()});return(n?"".concat(n,"\n"):"")+u(p)+(c.startsWith("\n")?"\n":"\n\n")+c}t.exports={hasPragma:c,insertPragma:p}}}),ur=q({"src/language-js/comments.js":function(e,t){W();var n=Le(),r=n.getLast,i=n.hasNewline,o=n.getNextNonSpaceNonCommentCharacterIndexWithStartIndex,a=n.getNextNonSpaceNonCommentCharacter,u=n.hasNewlineInRange,s=n.addLeadingComment,l=n.addTrailingComment,c=n.addDanglingComment,p=n.getNextNonSpaceNonCommentCharacterIndex,f=n.isNonEmptyArray,d=kn(),h=d.getFunctionParameters,y=d.isPrettierIgnoreComment,m=d.isJsxNode,g=d.hasFlowShorthandAnnotationComment,D=d.hasFlowAnnotationComment,b=d.hasIgnoreComment,E=d.isCallLikeExpression,x=d.getCallArguments,C=d.isCallExpression,A=d.isMemberExpression,w=d.isObjectProperty,S=d.isLineComment,F=d.getComments,k=d.CommentCheckFlags,_=d.markerForIfWithoutBlockAndSameLineComment,T=an(),O=T.locStart,N=T.locEnd,j=Sn();function P(e){return[ye,te,z,q,V,U,K,se,oe,ue,le,ce,X,ne,re].some((function(t){return t(e)}))}function B(e){return[R,te,H,le,q,V,U,K,ne,ie,ae,ue,de,re,ve].some((function(t){return t(e)}))}function I(e){return[ye,q,V,$,ee,X,ue,Z,Q,me,re,he].some((function(t){return t(e)}))}function L(e,t){var n=(e.body||e.properties).find((function(e){return"EmptyStatement"!==e.type}));n?s(n,t):c(e,t)}function M(e,t){"BlockStatement"===e.type?L(e,t):s(e,t)}function R(e){var t=e.comment,n=e.followingNode;return!(!n||!be(t))&&(s(n,t),!0)}function q(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode,o=e.text;if("IfStatement"!==(null==r?void 0:r.type)||!i)return!1;if(")"===a(o,t,N))return l(n,t),!0;if(n===r.consequent&&i===r.alternate){if("BlockStatement"===n.type)l(n,t);else{var u="SingleLine"===t.type||t.loc.start.line===t.loc.end.line,p=t.loc.start.line===n.loc.start.line;u&&p?c(n,t,_):c(r,t)}return!0}return"BlockStatement"===i.type?(L(i,t),!0):"IfStatement"===i.type?(M(i.consequent,t),!0):r.consequent===i&&(s(i,t),!0)}function V(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode,o=e.text;return!("WhileStatement"!==(null==r?void 0:r.type)||!i)&&(")"===a(o,t,N)?(l(n,t),!0):"BlockStatement"===i.type?(L(i,t),!0):r.body===i&&(s(i,t),!0))}function U(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode;return!("TryStatement"!==(null==r?void 0:r.type)&&"CatchClause"!==(null==r?void 0:r.type)||!i)&&("CatchClause"===r.type&&n?(l(n,t),!0):"BlockStatement"===i.type?(L(i,t),!0):"TryStatement"===i.type?(M(i.finalizer,t),!0):"CatchClause"===i.type&&(M(i.body,t),!0))}function z(e){var t=e.comment,n=e.enclosingNode,r=e.followingNode;return!(!A(n)||"Identifier"!==(null==r?void 0:r.type))&&(s(n,t),!0)}function H(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode,o=e.text,a=n&&!u(o,N(n),O(t));return!(n&&a||"ConditionalExpression"!==(null==r?void 0:r.type)&&"TSConditionalType"!==(null==r?void 0:r.type)||!i)&&(s(i,t),!0)}function $(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode;return!(!w(r)||!r.shorthand||r.key!==n||"AssignmentPattern"!==r.value.type)&&(l(r.value.left,t),!0)}var G=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function K(e){var t=e.comment,n=e.precedingNode,i=e.enclosingNode,o=e.followingNode;if(G.has(null==i?void 0:i.type)){if(f(i.decorators)&&(!o||"Decorator"!==o.type))return l(r(i.decorators),t),!0;if(i.body&&o===i.body)return L(i.body,t),!0;if(o){if(i.superClass&&o===i.superClass&&n&&(n===i.id||n===i.typeParameters))return l(n,t),!0;for(var a=0,u=["implements","extends","mixins"];a<u.length;a++){var s=u[a];if(i[s]&&o===i[s][0])return!n||n!==i.id&&n!==i.typeParameters&&n!==i.superClass?c(i,t,s):l(n,t),!0}}}return!1}var J=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition"]);function X(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.text;return!!(r&&n&&"("===a(i,t,N)&&("Property"===r.type||"TSDeclareMethod"===r.type||"TSAbstractMethodDefinition"===r.type)&&"Identifier"===n.type&&r.key===n&&":"!==a(i,n,N)||"Decorator"===(null==n?void 0:n.type)&&J.has(null==r?void 0:r.type))&&(l(n,t),!0)}var Y=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Q(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.text;return"("===a(i,t,N)&&!(!n||!Y.has(null==r?void 0:r.type))&&(l(n,t),!0)}function Z(e){var t=e.comment,n=e.enclosingNode,r=e.text;if("ArrowFunctionExpression"!==(null==n?void 0:n.type))return!1;var i=p(r,t,N);return!1!==i&&"=>"===r.slice(i,i+2)&&(c(n,t),!0)}function ee(e){var t=e.comment,n=e.enclosingNode,r=e.text;return")"===a(r,t,N)&&(n&&(ge(n)&&0===h(n).length||E(n)&&0===x(n).length)?(c(n,t),!0):("MethodDefinition"===(null==n?void 0:n.type)||"TSAbstractMethodDefinition"===(null==n?void 0:n.type))&&0===h(n.value).length&&(c(n.value,t),!0))}function te(e){var t=e.comment,n=e.precedingNode,i=e.enclosingNode,u=e.followingNode,s=e.text;if("FunctionTypeParam"===(null==n?void 0:n.type)&&"FunctionTypeAnnotation"===(null==i?void 0:i.type)&&"FunctionTypeParam"!==(null==u?void 0:u.type)||("Identifier"===(null==n?void 0:n.type)||"AssignmentPattern"===(null==n?void 0:n.type))&&i&&ge(i)&&")"===a(s,t,N))return l(n,t),!0;if("FunctionDeclaration"===(null==i?void 0:i.type)&&"BlockStatement"===(null==u?void 0:u.type)){var c=function(){var e=h(i);if(e.length>0)return o(s,N(r(e)));var t=o(s,N(i.id));return!1!==t&&o(s,t+1)}();if(O(t)>c)return L(u,t),!0}return!1}function ne(e){var t=e.comment,n=e.enclosingNode;return"LabeledStatement"===(null==n?void 0:n.type)&&(s(n,t),!0)}function re(e){var t=e.comment,n=e.enclosingNode;return!("ContinueStatement"!==(null==n?void 0:n.type)&&"BreakStatement"!==(null==n?void 0:n.type)||n.label)&&(l(n,t),!0)}function ie(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode;return!!(C(r)&&n&&r.callee===n&&r.arguments.length>0)&&(s(r.arguments[0],t),!0)}function oe(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode;return"UnionTypeAnnotation"===(null==r?void 0:r.type)||"TSUnionType"===(null==r?void 0:r.type)?(y(t)&&(i.prettierIgnore=!0,t.unignore=!0),!!n&&(l(n,t),!0)):(("UnionTypeAnnotation"===(null==i?void 0:i.type)||"TSUnionType"===(null==i?void 0:i.type))&&y(t)&&(i.types[0].prettierIgnore=!0,t.unignore=!0),!1)}function ae(e){var t=e.comment,n=e.enclosingNode;return!!w(n)&&(s(n,t),!0)}function ue(e){var t=e.comment,n=e.enclosingNode,r=e.followingNode,i=e.ast,o=e.isLastComment;return i&&i.body&&0===i.body.length?(o?c(i,t):s(i,t),!0):"Program"!==(null==n?void 0:n.type)||0!==(null==n?void 0:n.body.length)||f(n.directives)?"Program"===(null==r?void 0:r.type)&&0===(null==r?void 0:r.body.length)&&"ModuleExpression"===(null==n?void 0:n.type)&&(c(r,t),!0):(o?c(n,t):s(n,t),!0)}function se(e){var t=e.comment,n=e.enclosingNode;return("ForInStatement"===(null==n?void 0:n.type)||"ForOfStatement"===(null==n?void 0:n.type))&&(s(n,t),!0)}function le(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,o=e.text;if("ImportSpecifier"===(null==r?void 0:r.type)||"ExportSpecifier"===(null==r?void 0:r.type))return s(r,t),!0;var a="ImportSpecifier"===(null==n?void 0:n.type)&&"ImportDeclaration"===(null==r?void 0:r.type),u="ExportSpecifier"===(null==n?void 0:n.type)&&"ExportNamedDeclaration"===(null==r?void 0:r.type);return!(!a&&!u||!i(o,N(t)))&&(l(n,t),!0)}function ce(e){var t=e.comment,n=e.enclosingNode;return"AssignmentPattern"===(null==n?void 0:n.type)&&(s(n,t),!0)}var pe=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),fe=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function de(e){var t=e.comment,n=e.enclosingNode,r=e.followingNode;return!(!pe.has(null==n?void 0:n.type)||!r||!fe.has(r.type)&&!j(t))&&(s(r,t),!0)}function he(e){var t=e.comment,n=e.enclosingNode,r=e.followingNode,i=e.text;return!(r||"TSMethodSignature"!==(null==n?void 0:n.type)&&"TSDeclareFunction"!==(null==n?void 0:n.type)&&"TSAbstractMethodDefinition"!==(null==n?void 0:n.type)||";"!==a(i,t,N))&&(l(n,t),!0)}function ye(e){var t=e.comment,n=e.enclosingNode,r=e.followingNode;if(y(t)&&"TSMappedType"===(null==n?void 0:n.type)&&"TSTypeParameter"===(null==r?void 0:r.type)&&r.constraint)return n.prettierIgnore=!0,t.unignore=!0,!0}function me(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode;return"TSMappedType"===(null==r?void 0:r.type)&&("TSTypeParameter"===(null==i?void 0:i.type)&&i.name?(s(i.name,t),!0):!("TSTypeParameter"!==(null==n?void 0:n.type)||!n.constraint)&&(l(n.constraint,t),!0))}function ve(e){var t=e.comment,n=e.enclosingNode,r=e.followingNode;return!(!n||"SwitchCase"!==n.type||n.test)&&("BlockStatement"===r.type&&S(t)?L(r,t):c(n,t),!0)}function ge(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function De(e,t){if(("typescript"===t.parser||"flow"===t.parser||"acorn"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===h(e.value).length&&!e.value.returnType&&!f(e.value.typeParameters)&&e.value.body)return[].concat(v(e.decorators||[]),[e.key,e.value.body])}function be(e){return j(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}function Ee(e){var t=e.getValue(),n=e.getParentNode(),r=function(e){return D(F(e,k.Leading))||D(F(e,k.Trailing))};return(t&&(m(t)||g(t)||C(n)&&r(t))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!b(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)}t.exports={handleOwnLineComment:P,handleEndOfLineComment:B,handleRemainingComment:I,isTypeCastComment:be,getCommentChildNodes:De,willPrintOwnComments:Ee}}}),sr=q({"src/language-js/needs-parens.js":function(e,t){W();var n=Y(),r=Te(),i=kn(),o=i.getFunctionParameters,a=i.getLeftSidePathName,u=i.hasFlowShorthandAnnotationComment,s=i.hasNakedLeftSide,l=i.hasNode,c=i.isBitwiseOperator,p=i.startsWithNoLookaheadToken,f=i.shouldFlatten,d=i.getPrecedence,h=i.isCallExpression,y=i.isMemberExpression,m=i.isObjectProperty;function g(e,t){var n=e.getParentNode();if(!n)return!1;var i=e.getName(),a=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&x(a)&&C(e))return!0;if(D(a))return!1;if("flow"!==t.parser&&u(e.getValue()))return!0;if("Identifier"===a.type)return!!(a.extra&&a.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(a.name)||"left"===i&&"async"===a.name&&"ForOfStatement"===n.type&&!n.await);switch(n.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===i&&("ArrowFunctionExpression"===a.type||"AssignmentExpression"===a.type||"AwaitExpression"===a.type||"BinaryExpression"===a.type||"ConditionalExpression"===a.type||"LogicalExpression"===a.type||"NewExpression"===a.type||"ObjectExpression"===a.type||"SequenceExpression"===a.type||"TaggedTemplateExpression"===a.type||"UnaryExpression"===a.type||"UpdateExpression"===a.type||"YieldExpression"===a.type||"TSNonNullExpression"===a.type))return!0;break;case"ExportDefaultDeclaration":return A(e,t)||"SequenceExpression"===a.type;case"Decorator":if("expression"===i){for(var s=!1,l=!1,v=a;v;)switch(v.type){case"MemberExpression":l=!0,v=v.object;break;case"CallExpression":if(l||s)return"typescript"!==t.parser;s=!0,v=v.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return"typescript"!==t.parser;default:return!0}return!0}break;case"ExpressionStatement":if(p(a,!0))return!0;break;case"ArrowFunctionExpression":if("body"===i&&"SequenceExpression"!==a.type&&p(a,!1))return!0}switch(a.type){case"UpdateExpression":if("UnaryExpression"===n.type)return a.prefix&&("++"===a.operator&&"+"===n.operator||"--"===a.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return a.operator===n.operator&&("+"===a.operator||"-"===a.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===i;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===i;case"BinaryExpression":return"left"===i&&"**"===n.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===n.type||"in"===a.operator&&b(e))return!0;if("|>"===a.operator&&a.extra&&a.extra.parenthesized){var g=e.getParentNode(1);if("BinaryExpression"===g.type&&"|>"===g.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"TSAsExpression":return"TSAsExpression"!==a.type;case"ConditionalExpression":return"TSAsExpression"===a.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===i;case"ClassExpression":case"ClassDeclaration":return"superClass"===i;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===i;case"AssignmentExpression":case"AssignmentPattern":return"left"===i&&("TSTypeAssertion"===a.type||"TSAsExpression"===a.type);case"LogicalExpression":if("LogicalExpression"===a.type)return n.operator!==a.operator;case"BinaryExpression":var w=a.operator,S=a.type;if(!w&&"TSTypeAssertion"!==S)return!0;var F=d(w),k=n.operator,_=d(k);return _>F||"right"===i&&_===F||_===F&&!f(k,w)||(_<F&&"%"===w?"+"===k||"-"===k:!!c(k));default:return!1}case"SequenceExpression":switch(n.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==i;case"ArrowFunctionExpression":return"body"!==i;default:return!0}case"YieldExpression":if("UnaryExpression"===n.type||"AwaitExpression"===n.type||"TSAsExpression"===n.type||"TSNonNullExpression"===n.type)return!0;case"AwaitExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===i;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===i;case"ConditionalExpression":return"test"===i;case"BinaryExpression":return!(!a.argument&&"|>"===n.operator);default:return!1}case"TSConditionalType":if("extendsType"===i&&"TSConditionalType"===n.type)return!0;case"TSFunctionType":case"TSConstructorType":if("checkType"===i&&"TSConditionalType"===n.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===n.type||"TSIntersectionType"===n.type)&&n.types.length>1&&(!a.types||a.types.length>1))return!0;case"TSInferType":if("TSInferType"===a.type&&"TSRestType"===n.type)return!1;case"TSTypeOperator":return"TSArrayType"===n.type||"TSOptionalType"===n.type||"TSRestType"===n.type||"objectType"===i&&"TSIndexedAccessType"===n.type||"TSTypeOperator"===n.type||"TSTypeAnnotation"===n.type&&e.getParentNode(1).type.startsWith("TSJSDoc");case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"NullableTypeAnnotation"===n.type||"IntersectionTypeAnnotation"===n.type||"UnionTypeAnnotation"===n.type||"objectType"===i&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"objectType"===i&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"FunctionTypeAnnotation":var T="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===T.type||"IntersectionTypeAnnotation"===T.type||"ArrayTypeAnnotation"===T.type||"objectType"===i&&("IndexedAccessType"===T.type||"OptionalIndexedAccessType"===T.type)||"NullableTypeAnnotation"===T.type||"FunctionTypeParam"===n.type&&null===n.name&&o(a).some((function(e){return e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type}));case"OptionalIndexedAccessType":return"objectType"===i&&"IndexedAccessType"===n.type;case"TypeofTypeAnnotation":return"objectType"===i&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof a.value&&"ExpressionStatement"===n.type&&!n.directive){var O=e.getParentNode(1);return"Program"===O.type||"BlockStatement"===O.type}return"object"===i&&"MemberExpression"===n.type&&"number"==typeof a.value;case"AssignmentExpression":var N=e.getParentNode(1);return"body"===i&&"ArrowFunctionExpression"===n.type||("key"!==i||"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type||!n.computed)&&("init"!==i&&"update"!==i||"ForStatement"!==n.type)&&("ExpressionStatement"===n.type?"ObjectPattern"===a.left.type:!("key"===i&&"TSPropertySignature"===n.type||"AssignmentExpression"===n.type||"SequenceExpression"===n.type&&N&&"ForStatement"===N.type&&(N.init===n||N.update===n)||"value"===i&&"Property"===n.type&&N&&"ObjectPattern"===N.type&&N.properties.includes(n)||"NGChainedExpression"===n.type));case"ConditionalExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===i;case"ConditionalExpression":return"test"===i;case"MemberExpression":case"OptionalMemberExpression":return"object"===i;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===i;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"BinaryExpression":return"|>"!==n.operator||a.extra&&a.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===i;case"MemberExpression":case"OptionalMemberExpression":return"object"===i;case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===i;default:return!1}case"ClassExpression":return!!r(a.decorators)||"NewExpression"===n.type&&"callee"===i;case"OptionalMemberExpression":case"OptionalCallExpression":var j=e.getParentNode(1);if("object"===i&&"MemberExpression"===n.type||"callee"===i&&("CallExpression"===n.type||"NewExpression"===n.type)||"TSNonNullExpression"===n.type&&"MemberExpression"===j.type&&j.object===n)return!0;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===i&&("BindExpression"===n.type||"NewExpression"===n.type))for(var P=a;P;)switch(P.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":P=P.object;break;case"TaggedTemplateExpression":P=P.tag;break;case"TSNonNullExpression":P=P.expression;break;default:return!1}return!1;case"BindExpression":return"callee"===i&&("BindExpression"===n.type||"NewExpression"===n.type)||"object"===i&&y(n);case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type&&(!a.extra||!a.extra.parenthesized)||"ArrayExpression"===n.type||h(n)&&n.arguments[i]===a||"right"===i&&"NGPipeExpression"===n.type||"property"===i&&"MemberExpression"===n.type||"AssignmentExpression"===n.type);case"JSXFragment":case"JSXElement":return"callee"===i||"left"===i&&"BinaryExpression"===n.type&&"<"===n.operator||"ArrayExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"AssignmentExpression"!==n.type&&"AssignmentPattern"!==n.type&&"BinaryExpression"!==n.type&&"NewExpression"!==n.type&&"ConditionalExpression"!==n.type&&"ExpressionStatement"!==n.type&&"JsExpressionRoot"!==n.type&&"JSXAttribute"!==n.type&&"JSXElement"!==n.type&&"JSXExpressionContainer"!==n.type&&"JSXFragment"!==n.type&&"LogicalExpression"!==n.type&&!h(n)&&!m(n)&&"ReturnStatement"!==n.type&&"ThrowStatement"!==n.type&&"TypeCastExpression"!==n.type&&"VariableDeclarator"!==n.type&&"YieldExpression"!==n.type;case"TypeAnnotation":return"returnType"===i&&"ArrowFunctionExpression"===n.type&&E(a)}return!1}function D(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"PropertyDefinition"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}function b(e){for(var t=0,n=e.getValue();n;){var r=e.getParentNode(t++);if(r&&"ForStatement"===r.type&&r.init===n)return!0;n=r}return!1}function E(e){return l(e,(function(e){return"ObjectTypeAnnotation"===e.type&&l(e,(function(e){return"FunctionTypeAnnotation"===e.type||void 0}))||void 0}))}function x(e){return"ObjectExpression"===e.type}function C(e){var t=e.getValue(),r=e.getParentNode(),i=e.getName();switch(r.type){case"NGPipeExpression":if("number"==typeof i&&r.arguments[i]===t&&r.arguments.length-1===i)return e.callParent(C);break;case"ObjectProperty":if("value"===i){var o=e.getParentNode(1);return n(o.properties)===r}break;case"BinaryExpression":case"LogicalExpression":if("right"===i)return e.callParent(C);break;case"ConditionalExpression":if("alternate"===i)return e.callParent(C);break;case"UnaryExpression":if(r.prefix)return e.callParent(C)}return!1}function A(e,t){var n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!g(e,t):!(!s(n)||"ExportDefaultDeclaration"!==r.type&&g(e,t))&&e.call.apply(e,[function(e){return A(e,t)}].concat(v(a(e,n))))}t.exports=g}}),lr=q({"src/language-js/print-preprocess.js":function(e,t){function n(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return Object.assign(Object.assign({},e),{},{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}}W(),t.exports=n}}),cr=q({"src/language-js/print/html-binding.js":function(e,t){W();var n=de().builders,r=n.join,i=n.line,o=n.group,a=n.softline,u=n.indent;function s(e,t,n){var s=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(s,t),"File"===s.type){if(t.__isVueForBindingLeft)return e.call((function(e){var t=r([",",i],e.map(n,"params"));return 1===e.getValue().params.length?t:["(",u([a,o(t)]),a,")"]}),"program","body",0);if(t.__isVueBindings)return e.call((function(e){return r([",",i],e.map(n,"params"))}),"program","body",0)}}function l(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return l(e.object)}return!1;case"Identifier":return!0;default:return!1}}t.exports={isVueEventBindingExpression:l,printHtmlBinding:s}}}),pr=q({"src/language-js/print/binaryish.js":function(e,t){W();var n=hn().printComments,r=Le().getLast,i=de(),o=i.builders,a=o.join,u=o.line,s=o.softline,l=o.group,c=o.indent,p=o.align,f=o.ifBreak,d=o.indentIfBreak,h=i.utils,y=h.cleanDoc,m=h.getDocParts,g=h.isConcat,D=kn(),b=D.hasLeadingOwnLineComment,E=D.isBinaryish,x=D.isJsxNode,C=D.shouldFlatten,A=D.hasComment,w=D.CommentCheckFlags,S=D.isCallExpression,F=D.isMemberExpression,k=D.isObjectProperty,_=D.isEnabledHackPipeline,T=0;function O(e,t,n){var i=e.getValue(),o=e.getParentNode(),a=e.getParentNode(1),u=i!==o.body&&("IfStatement"===o.type||"WhileStatement"===o.type||"SwitchStatement"===o.type||"DoWhileStatement"===o.type),p=_(t)&&"|>"===i.operator,f=N(e,n,t,!1,u);if(u)return f;if(p)return l(f);if(S(o)&&o.callee===i||"UnaryExpression"===o.type||F(o)&&!o.computed)return l([c([s].concat(v(f))),s]);var h="ReturnStatement"===o.type||"ThrowStatement"===o.type||"JSXExpressionContainer"===o.type&&"JSXAttribute"===a.type||"|"!==i.operator&&"JsExpressionRoot"===o.type||"NGPipeExpression"!==i.type&&("NGRoot"===o.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===o.type&&"NGMicrosyntax"===a.type&&1===a.body.length)||i===o.body&&"ArrowFunctionExpression"===o.type||i!==o.body&&"ForStatement"===o.type||"ConditionalExpression"===o.type&&"ReturnStatement"!==a.type&&"ThrowStatement"!==a.type&&!S(a)||"TemplateLiteral"===o.type,y="AssignmentExpression"===o.type||"VariableDeclarator"===o.type||"ClassProperty"===o.type||"PropertyDefinition"===o.type||"TSAbstractPropertyDefinition"===o.type||"ClassPrivateProperty"===o.type||k(o),m=E(i.left)&&C(i.operator,i.left.operator);if(h||j(i)&&!m||!j(i)&&y)return l(f);if(0===f.length)return"";var g=x(i.right),D=f.findIndex((function(e){return"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type})),b=f.slice(0,-1===D?1:D+1),A=f.slice(b.length,g?-1:void 0),w=Symbol("logicalChain-"+ ++T),O=l([].concat(v(b),[c(A)]),{id:w});if(!g)return O;var P=r(f);return l([O,d(P,{groupId:w})])}function N(e,t,r,i,o){var d=e.getValue();if(!E(d))return[l(t())];var h=[];C(d.operator,d.left.operator)?h=e.call((function(e){return N(e,t,r,!0,o)}),"left"):h.push(l(t("left")));var v,D=j(d),x=("|>"===d.operator||"NGPipeExpression"===d.type||"|"===d.operator&&"__vue_expression"===r.parser)&&!b(r.originalText,d.right),S="NGPipeExpression"===d.type?"|":d.operator,F="NGPipeExpression"===d.type&&d.arguments.length>0?l(c([s,": ",a([s,":",f(" ")],e.map(t,"arguments").map((function(e){return p(2,l(e))})))])):"";if(D)v=[S," ",t("right"),F];else{var k=_(r)&&"|>"===S?e.call((function(e){return N(e,t,r,!0,o)}),"right"):t("right");v=[x?u:"",S,x?" ":u,k,F]}var T=e.getParentNode(),O=A(d.left,w.Trailing|w.Line),P=O||!(o&&"LogicalExpression"===d.type)&&T.type!==d.type&&d.left.type!==d.type&&d.right.type!==d.type;if(h.push(x?"":" ",P?l(v,{shouldBreak:O}):v),i&&A(d)){var B=y(n(e,h,r));return g(B)||"fill"===B.type?m(B):[B]}return h}function j(e){return"LogicalExpression"===e.type&&!!("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||x(e.right))}t.exports={printBinaryishExpression:O,shouldInlineLogicalExpression:j}}}),fr=q({"src/language-js/print/angular.js":function(e,t){W();var n=de().builders,r=n.join,i=n.line,o=n.group,a=kn(),u=a.hasNode,s=a.hasComment,l=a.getComments,c=pr().printBinaryishExpression;function p(e,t,n){var a=e.getValue();if(a.type.startsWith("NG"))switch(a.type){case"NGRoot":return[n("node"),s(a.node)?" //"+l(a.node)[0].value.trimEnd():""];case"NGPipeExpression":return c(e,t,n);case"NGChainedExpression":return o(r([";",i],e.map((function(e){return d(e)?n():["(",n(),")"]}),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[a.prefix,": ",a.value.trim()];case"NGMicrosyntax":return e.map((function(e,t){return[0===t?"":f(e.getValue(),t,a)?" ":[";",i],n()]}),"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(a.name)?a.name:JSON.stringify(a.name);case"NGMicrosyntaxExpression":return[n("expression"),null===a.alias?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":var u=e.getName(),p=e.getParentNode(),h=f(a,u,p)||(1===u&&("then"===a.key.name||"else"===a.key.name)||2===u&&"else"===a.key.name&&"NGMicrosyntaxKeyedExpression"===p.body[u-1].type&&"then"===p.body[u-1].key.name)&&"NGMicrosyntaxExpression"===p.body[0].type;return[n("key"),h?" ":": ",n("expression")];case"NGMicrosyntaxLet":return["let ",n("key"),null===a.value?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")];default:throw new Error("Unknown Angular node type: ".concat(JSON.stringify(a.type),"."))}}function f(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}function d(e){return u(e.getValue(),(function(e){switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))}t.exports={printAngular:p}}}),dr=q({"src/language-js/print/jsx.js":function(e,t){W();var n=hn(),r=n.printComments,i=n.printDanglingComments,o=de(),a=o.builders,u=a.line,s=a.hardline,l=a.softline,c=a.group,p=a.indent,f=a.conditionalGroup,d=a.fill,h=a.ifBreak,m=a.lineSuffixBoundary,D=a.join,b=o.utils.willBreak,E=Le(),x=E.getLast,C=E.getPreferredQuote,A=kn(),w=A.isJsxNode,S=A.rawText,F=A.isLiteral,k=A.isCallExpression,_=A.isStringLiteral,T=A.isBinaryish,O=A.hasComment,N=A.CommentCheckFlags,j=A.hasNodeIgnoreComment,P=sr(),B=ur().willPrintOwnComments,I=function(e){return""===e||e===u||e===s||e===l};function L(e,t,n){var r=e.getValue();if("JSXElement"===r.type&&ne(r))return[n("openingElement"),n("closingElement")];var i="JSXElement"===r.type?n("openingElement"):n("openingFragment"),o="JSXElement"===r.type?n("closingElement"):n("closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return[i].concat(v(e.map(n,"children")),[o]);r.children=r.children.map((function(e){return ie(e)?{type:"JSXText",value:" ",raw:" "}:e}));for(var a=r.children.some(w),u=r.children.filter((function(e){return"JSXExpressionContainer"===e.type})).length>1,m="JSXElement"===r.type&&r.openingElement.attributes.length>1,D=b(i)||a||m||u,E="mdx"===e.getParentNode().rootMarker,C=t.singleQuote?"{' '}":'{" "}',A=E?" ":h([C,l]," "),S=M(e,t,n,A,r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name),F=r.children.some((function(e){return re(e)})),k=S.length-2;k>=0;k--){var _=""===S[k]&&""===S[k+1],T=S[k]===s&&""===S[k+1]&&S[k+2]===s,O=(S[k]===l||S[k]===s)&&""===S[k+1]&&S[k+2]===A,N=S[k]===A&&""===S[k+1]&&(S[k+2]===l||S[k+2]===s),j=S[k]===A&&""===S[k+1]&&S[k+2]===A,P=S[k]===l&&""===S[k+1]&&S[k+2]===s||S[k]===s&&""===S[k+1]&&S[k+2]===l;T&&F||_||O||j||P?S.splice(k,2):N&&S.splice(k+1,2)}for(;S.length>0&&I(x(S));)S.pop();for(;S.length>1&&I(S[0])&&I(S[1]);)S.shift(),S.shift();var B,L=[],R=g(S.entries());try{for(R.s();!(B=R.n()).done;){var q=y(B.value,2),V=q[0],U=q[1];if(U===A){if(1===V&&""===S[V-1]){if(2===S.length){L.push(C);continue}L.push([C,s]);continue}if(V===S.length-1){L.push(C);continue}if(""===S[V-1]&&S[V-2]===s){L.push(C);continue}}L.push(U),b(U)&&(D=!0)}}catch(W){R.e(W)}finally{R.f()}var z=F?d(L):c(L,{shouldBreak:!0});if(E)return z;var H=c([i,p([s,z]),s,o]);return D?H:f([c([i].concat(v(S),[o])),H])}function M(e,t,n,r,i){var o=[];return e.each((function(e,t,a){var l=e.getValue();if(F(l)){var c=S(l);if(re(l)){var p,f=c.split(Z);if(""===f[0]){if(o.push(""),f.shift(),/\n/.test(f[0])){var d=a[t+1];o.push(q(i,f[1],l,d))}else o.push(r);f.shift()}if(""===x(f)&&(f.pop(),p=f.pop()),0===f.length)return;var h,m=g(f.entries());try{for(m.s();!(h=m.n()).done;){var v=y(h.value,2),D=v[0],b=v[1];D%2===1?o.push(u):o.push(b)}}catch(_){m.e(_)}finally{m.f()}if(void 0!==p)if(/\n/.test(p)){var E=a[t+1];o.push(q(i,x(o),l,E))}else o.push(r);else{var C=a[t+1];o.push(R(i,x(o),l,C))}}else/\n/.test(c)?c.match(/\n/g).length>1&&o.push("",s):o.push("",r)}else{var A=n();o.push(A);var w=a[t+1];if(w&&re(w)){var k=te(S(w)).split(Z)[0];o.push(R(i,k,l,w))}else o.push(s)}}),"children"),o}function R(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?l:s:l}function q(e,t,n,r){return e?s:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?s:l:s}function V(e,t,n){var r=e.getParentNode();if(!r||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;var i=e.match(void 0,(function(e){return"ArrowFunctionExpression"===e.type}),k,(function(e){return"JSXExpressionContainer"===e.type})),o=P(e,n);return c([o?"":h("("),p([l,t]),l,o?"":h(")")],{shouldBreak:i})}function U(e,t,n){var r=e.getValue(),i=[];if(i.push(n("name")),r.value){var o;if(_(r.value)){var a=S(r.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),u=C(a,t.jsxSingleQuote?"'":'"'),s=u.escaped,l=u.quote,c=u.regex;o=[l,a=a.replace(c,s),l]}else o=n("value");i.push("=",o)}return i}function z(e,t,n){return function e(t,n){return"JSXEmptyExpression"===t.type||!O(t)&&("ArrayExpression"===t.type||"ObjectExpression"===t.type||"ArrowFunctionExpression"===t.type||"AwaitExpression"===t.type&&(e(t.argument,t)||"JSXElement"===t.argument.type)||k(t)||"FunctionExpression"===t.type||"TemplateLiteral"===t.type||"TaggedTemplateExpression"===t.type||"DoExpression"===t.type||w(n)&&("ConditionalExpression"===t.type||T(t)))}(e.getValue().expression,e.getParentNode(0))?c(["{",n("expression"),m,"}"]):c(["{",p([l,n("expression")]),l,m,"}"])}function H(e,t,n){var r=e.getValue(),i=r.name&&O(r.name)||r.typeParameters&&O(r.typeParameters);if(r.selfClosing&&0===r.attributes.length&&!i)return["<",n("name"),n("typeParameters")," />"];if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&_(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!i&&!O(r.attributes[0]))return c(["<",n("name"),n("typeParameters")," "].concat(v(e.map(n,"attributes")),[r.selfClosing?" />":">"]));var o=r.attributes.length>0&&O(x(r.attributes),N.Trailing),a=0===r.attributes.length&&!i||(t.bracketSameLine||t.jsxBracketSameLine)&&(!i||r.attributes.length>0)&&!o,f=r.attributes&&r.attributes.some((function(e){return e.value&&_(e.value)&&e.value.value.includes("\n")})),d=t.singleAttributePerLine&&r.attributes.length>1?s:u;return c(["<",n("name"),n("typeParameters"),p(e.map((function(){return[d,n()]}),"attributes")),r.selfClosing?u:a?">":l,r.selfClosing?"/>":a?"":">"],{shouldBreak:f})}function $(e,t,n){var r=e.getValue(),i=[];i.push("</");var o=n("name");return O(r.name,N.Leading|N.Line)?i.push(p([s,o]),s):O(r.name,N.Leading|N.Block)?i.push(" ",o):i.push(o),i.push(">"),i}function G(e,t){var n=e.getValue(),r=O(n),o=O(n,N.Line),a="JSXOpeningFragment"===n.type;return[a?"<":"</",p([o?s:r&&!a?" ":"",i(e,t,!0)]),o?s:"",">"]}function K(e,t,n){return V(e,r(e,L(e,t,n),t),t)}function J(e,t){var n=e.getValue(),r=O(n,N.Line);return[i(e,t,!r),r?s:""]}function X(e,t,n){var i=e.getValue();return["{",e.call((function(e){var i=["...",n()],o=e.getValue();return O(o)&&B(e)?[p([l,r(e,i,t)]),l]:i}),"JSXSpreadAttribute"===i.type?"argument":"expression"),"}"]}function Y(e,t,n){var r=e.getValue();if(r.type.startsWith("JSX"))switch(r.type){case"JSXAttribute":return U(e,t,n);case"JSXIdentifier":return String(r.name);case"JSXNamespacedName":return D(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return D(".",[n("object"),n("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return X(e,t,n);case"JSXExpressionContainer":return z(e,t,n);case"JSXFragment":case"JSXElement":return K(e,t,n);case"JSXOpeningElement":return H(e,t,n);case"JSXClosingElement":return $(e,t,n);case"JSXOpeningFragment":case"JSXClosingFragment":return G(e,t);case"JSXEmptyExpression":return J(e,t);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");default:throw new Error("Unknown JSX node type: ".concat(JSON.stringify(r.type),"."))}}var Q=" \n\r\t",Z=new RegExp("(["+Q+"]+)"),ee=new RegExp("[^"+Q+"]"),te=function(e){return e.replace(new RegExp("(?:^"+Z.source+"|"+Z.source+"$)"),"")};function ne(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;var t=e.children[0];return F(t)&&!re(t)}function re(e){return F(e)&&(ee.test(S(e))||!/\n/.test(S(e)))}function ie(e){return"JSXExpressionContainer"===e.type&&F(e.expression)&&" "===e.expression.value&&!O(e.expression)}function oe(e){var t=e.getValue(),n=e.getParentNode();if(!n||!t||!w(t)||!w(n))return!1;for(var r=null,i=n.children.indexOf(t);i>0;i--){var o=n.children[i-1];if("JSXText"!==o.type||re(o)){r=o;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&j(r.expression)}t.exports={hasJsxIgnoreComment:oe,printJsx:Y}}}),hr=q({"src/language-js/print/misc.js":function(e,t){W();var n=Le().isNonEmptyArray,r=de().builders,i=r.indent,o=r.join,a=r.line,u=kn().isFlowAnnotationComment;function s(e){var t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"}function l(e){return e.getValue().definite||e.match(void 0,(function(e,t){return"id"===t&&"VariableDeclarator"===e.type&&e.definite}))?"!":""}function c(e,t,n){var r=e.getValue();return r.typeArguments?n("typeArguments"):r.typeParameters?n("typeParameters"):""}function p(e,t,n){var r=e.getValue();if(!r.typeAnnotation)return"";var i=e.getParentNode(),o="DeclareFunction"===i.type&&i.id===r;return u(t.originalText,r.typeAnnotation)?[" /*: ",n("typeAnnotation")," */"]:[o?"":": ",n("typeAnnotation")]}function f(e,t,n){return["::",n("callee")]}function d(e,t,r){var i=e.getValue();return n(i.modifiers)?[o(" ",e.map(r,"modifiers"))," "]:""}function h(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?[" ",t]:i([a,t])}function y(e,t,n){return["...",n("argument"),p(e,t,n)]}t.exports={printOptionalToken:s,printDefiniteToken:l,printFunctionTypeParameters:c,printBindExpressionCallee:f,printTypeScriptModifiers:d,printTypeAnnotation:p,printRestSpread:y,adjustClause:h}}}),yr=q({"src/language-js/print/array.js":function(e,t){W();var n=hn().printDanglingComments,r=de().builders,i=r.line,o=r.softline,a=r.hardline,u=r.group,s=r.indent,l=r.ifBreak,c=r.fill,p=Le(),f=p.getLast,d=p.hasNewline,h=kn(),y=h.shouldPrintComma,m=h.hasComment,v=h.CommentCheckFlags,g=h.isNextLineEmpty,D=h.isNumericLiteral,b=h.isSignedNumericLiteral,E=an().locStart,x=hr(),C=x.printOptionalToken,A=x.printTypeAnnotation;function w(e,t,r){var i=e.getValue(),a=[],c="TupleExpression"===i.type?"#[":"[",p="]";if(0===i.elements.length)m(i,v.Dangling)?a.push(u([c,n(e,t),o,p])):a.push(c,p);else{var d=f(i.elements),h=!(d&&"RestElement"===d.type),g=null===d,D=Symbol("array"),b=!t.__inJestEach&&i.elements.length>1&&i.elements.every((function(e,t,n){var r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;var i=n[t+1];if(i&&r!==i.type)return!1;var o="ArrayExpression"===r?"elements":"properties";return e[o]&&e[o].length>1})),E=S(i,t),x=h?g?",":y(t)?E?l(",","",{groupId:D}):l(","):"":"";a.push(u([c,s([o,E?k(e,t,r,x):[F(e,t,"elements",r),x],n(e,t,!0)]),o,p],{shouldBreak:b,id:D}))}return a.push(C(e),A(e,t,r)),a}function S(e,t){return e.elements.length>1&&e.elements.every((function(e){return e&&(D(e)||b(e)&&!m(e.argument))&&!m(e,v.Trailing|v.Line,(function(e){return!d(t.originalText,E(e),{backwards:!0})}))}))}function F(e,t,n,r){var a=[],s=[];return e.each((function(e){a.push(s,u(r())),s=[",",i],e.getValue()&&g(e.getValue(),t)&&s.push(o)}),n),a}function k(e,t,n,r){var o=[];return e.each((function(e,u,s){var l=u===s.length-1;o.push([n(),l?r:","]),l||o.push(g(e.getValue(),t)?[a,a]:m(s[u+1],v.Leading|v.Line)?a:i)}),"elements"),c(o)}t.exports={printArray:w,printArrayItems:F,isConciselyPrintedArray:S}}}),mr=q({"src/language-js/print/call-arguments.js":function(e,t){W();var n=hn().printDanglingComments,r=Le(),i=r.getLast,o=r.getPenultimate,a=kn(),u=a.getFunctionParameters,s=a.hasComment,l=a.CommentCheckFlags,c=a.isFunctionCompositionArgs,p=a.isJsxNode,f=a.isLongCurriedCallExpression,d=a.shouldPrintComma,h=a.getCallArguments,m=a.iterateCallArgumentsPath,g=a.isNextLineEmpty,D=a.isCallExpression,b=a.isStringLiteral,E=a.isObjectProperty,x=de(),C=x.builders,A=C.line,w=C.hardline,S=C.softline,F=C.group,k=C.indent,_=C.conditionalGroup,T=C.ifBreak,O=C.breakParent,N=x.utils.willBreak,j=at().ArgExpansionBailout,P=yr().isConciselyPrintedArray;function B(e,t,r){var o=e.getValue(),a="ImportExpression"===o.type,u=h(o);if(0===u.length)return["(",n(e,t,!0),")"];if(R(u))return["(",r(["arguments",0]),", ",r(["arguments",1]),")"];var s=!1,l=!1,p=u.length-1,y=[];m(e,(function(e,n){var i=e.getNode(),o=[r()];n===p||(g(i,t)?(0===n&&(l=!0),s=!0,o.push(",",w,w)):o.push(",",A)),y.push(o)}));var D=a||o.callee&&"Import"===o.callee.type||!d(t,"all")?"":",";function b(){return F(["(",k([A].concat(y)),D,A,")"],{shouldBreak:!0})}if(s||"Decorator"!==e.getParentNode().type&&c(u))return b();var E=M(u),x=L(u,t);if(E||x){if(E?y.slice(1).some(N):y.slice(0,-1).some(N))return b();var C=[];try{e.try((function(){m(e,(function(e,t){E&&0===t&&(C=[[r([],{expandFirstArg:!0}),y.length>1?",":"",l?w:A,l?w:""]].concat(v(y.slice(1)))),x&&t===p&&(C=[].concat(v(y.slice(0,-1)),[r([],{expandLastArg:!0})]))}))}))}catch(B){if(B instanceof j)return b();throw B}return[y.some(N)?O:"",_([["("].concat(v(C),[")"]),E?["(",F(C[0],{shouldBreak:!0})].concat(v(C.slice(1)),[")"]):["("].concat(v(y.slice(0,-1)),[F(i(C),{shouldBreak:!0}),")"]),b()])]}var P=["(",k([S].concat(y)),T(D),S,")"];return f(e)?P:F(P,{shouldBreak:y.some(N)||s})}function I(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"ObjectExpression"===e.type&&(e.properties.length>0||s(e))||"ArrayExpression"===e.type&&(e.elements.length>0||s(e))||"TSTypeAssertion"===e.type&&I(e.expression)||"TSAsExpression"===e.type&&I(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||q(e.body))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&I(e.body,!0)||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||!t&&(D(e.body)||"ConditionalExpression"===e.body.type)||p(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type}function L(e,t){var n=i(e),r=o(e);return!s(n,l.Leading)&&!s(n,l.Trailing)&&I(n)&&(!r||r.type!==n.type)&&(2!==e.length||"ArrowFunctionExpression"!==r.type||"ArrayExpression"!==n.type)&&!(e.length>1&&"ArrayExpression"===n.type&&P(n,t))}function M(e){if(2!==e.length)return!1;var t=y(e,2),n=t[0],r=t[1];return!("ModuleExpression"!==n.type||!V(r))||!s(n)&&("FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type&&"BlockStatement"===n.body.type)&&"FunctionExpression"!==r.type&&"ArrowFunctionExpression"!==r.type&&"ConditionalExpression"!==r.type&&!I(r)}function R(e){return 2===e.length&&"ArrowFunctionExpression"===e[0].type&&0===u(e[0]).length&&"BlockStatement"===e[0].body.type&&"ArrayExpression"===e[1].type&&!e.some((function(e){return s(e)}))}function q(e){return"BlockStatement"===e.type&&(e.body.some((function(e){return"EmptyStatement"!==e.type}))||s(e,l.Dangling))}function V(e){return"ObjectExpression"===e.type&&1===e.properties.length&&E(e.properties[0])&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&b(e.properties[0].value)&&"module"===e.properties[0].value.value}t.exports=B}}),vr=q({"src/language-js/print/member.js":function(e,t){W();var n=de().builders,r=n.softline,i=n.group,o=n.indent,a=n.label,u=kn(),s=u.isNumericLiteral,l=u.isMemberExpression,c=u.isCallExpression,p=hr().printOptionalToken;function f(e,t,n){var u,s=e.getValue(),p=e.getParentNode(),f=0;do{u=e.getParentNode(f),f++}while(u&&(l(u)||"TSNonNullExpression"===u.type));var h=n("object"),y=d(e,t,n),m=u&&("NewExpression"===u.type||"BindExpression"===u.type||"AssignmentExpression"===u.type&&"Identifier"!==u.left.type)||s.computed||"Identifier"===s.object.type&&"Identifier"===s.property.type&&!l(p)||("AssignmentExpression"===p.type||"VariableDeclarator"===p.type)&&(c(s.object)&&s.object.arguments.length>0||"TSNonNullExpression"===s.object.type&&c(s.object.expression)&&s.object.expression.arguments.length>0||"member-chain"===h.label);return a("member-chain"===h.label?"member-chain":"member",[h,m?y:i(o([r,y]))])}function d(e,t,n){var a=n("property"),u=e.getValue(),l=p(e);return u.computed?!u.property||s(u.property)?[l,"[",a,"]"]:i([l,"[",o([r,a]),r,"]"]):[l,".",a]}t.exports={printMemberExpression:f,printMemberLookup:d}}}),gr=q({"src/language-js/print/member-chain.js":function(e,t){W();var n=hn().printComments,r=Le(),i=r.getLast,o=r.isNextLineEmptyAfterIndex,a=r.getNextNonSpaceNonCommentCharacterIndex,u=sr(),s=kn(),l=s.isCallExpression,c=s.isMemberExpression,p=s.isFunctionOrArrowExpression,f=s.isLongCurriedCallExpression,d=s.isMemberish,h=s.isNumericLiteral,y=s.isSimpleCallArgument,m=s.hasComment,g=s.CommentCheckFlags,D=s.isNextLineEmpty,b=an().locEnd,E=de(),x=E.builders,C=x.join,A=x.hardline,w=x.group,S=x.indent,F=x.conditionalGroup,k=x.breakParent,_=x.label,T=E.utils.willBreak,O=mr(),N=vr().printMemberLookup,j=hr(),P=j.printOptionalToken,B=j.printFunctionTypeParameters,I=j.printBindExpressionCallee;function L(e,t,r){var s=e.getParentNode(),E=!s||"ExpressionStatement"===s.type,x=[];function j(e){var n=t.originalText,r=a(n,e,b);return")"===n.charAt(r)?!1!==r&&o(n,r+1):D(e,t)}function L(e){var i=e.getValue();l(i)&&(d(i.callee)||l(i.callee))?(x.unshift({node:i,printed:[n(e,[P(e),B(e,t,r),O(e,t,r)],t),j(i)?A:""]}),e.call((function(e){return L(e)}),"callee")):d(i)?(x.unshift({node:i,needsParens:u(e,t),printed:n(e,c(i)?N(e,t,r):I(e,t,r),t)}),e.call((function(e){return L(e)}),"object")):"TSNonNullExpression"===i.type?(x.unshift({node:i,printed:n(e,"!",t)}),e.call((function(e){return L(e)}),"expression")):x.unshift({node:i,printed:r()})}var M=e.getValue();x.unshift({node:M,printed:[P(e),B(e,t,r),O(e,t,r)]}),M.callee&&e.call((function(e){return L(e)}),"callee");for(var R=[],q=[x[0]],V=1;V<x.length&&("TSNonNullExpression"===x[V].node.type||l(x[V].node)||c(x[V].node)&&x[V].node.computed&&h(x[V].node.property));++V)q.push(x[V]);if(!l(x[0].node))for(;V+1<x.length&&d(x[V].node)&&d(x[V+1].node);++V)q.push(x[V]);R.push(q),q=[];for(var U=!1;V<x.length;++V){if(U&&d(x[V].node)){if(x[V].node.computed&&h(x[V].node.property)){q.push(x[V]);continue}R.push(q),q=[],U=!1}(l(x[V].node)||"ImportExpression"===x[V].node.type)&&(U=!0),q.push(x[V]),m(x[V].node,g.Trailing)&&(R.push(q),q=[],U=!1)}function z(e){return/^[A-Z]|^[$_]+$/.test(e)}function H(e){return e.length<=t.tabWidth}function W(e){var t=e[1].length>0&&e[1][0].node.computed;if(1===e[0].length){var n=e[0][0].node;return"ThisExpression"===n.type||"Identifier"===n.type&&(z(n.name)||E&&H(n.name)||t)}var r=i(e[0]).node;return c(r)&&"Identifier"===r.property.type&&(z(r.property.name)||t)}q.length>0&&R.push(q);var $=R.length>=2&&!m(R[1][0].node)&&W(R);function G(e){var t=e.map((function(e){return e.printed}));return e.length>0&&i(e).needsParens?["("].concat(v(t),[")"]):t}function K(e){return 0===e.length?"":S(w([A,C(A,e.map(G))]))}var J=R.map(G),X=J,Y=$?3:2,Q=R.flat(),Z=Q.slice(1,-1).some((function(e){return m(e.node,g.Leading)}))||Q.slice(0,-1).some((function(e){return m(e.node,g.Trailing)}))||R[Y]&&m(R[Y][0].node,g.Leading);if(R.length<=Y&&!Z)return f(e)?X:w(X);var ee,te=i(R[$?1:0]).node,ne=!l(te)&&j(te),re=[G(R[0]),$?R.slice(1,2).map(G):"",ne?A:"",K(R.slice($?2:1))],ie=x.map((function(e){return e.node})).filter(l);function oe(){var e=i(i(R)).node,t=i(J);return l(e)&&T(t)&&ie.slice(0,-1).some((function(e){return e.arguments.some(p)}))}return ee=Z||ie.length>2&&ie.some((function(e){return!e.arguments.every((function(e){return y(e,0)}))}))||J.slice(0,-1).some(T)||oe()?w(re):[T(X)||ne?k:"",F([X,re])],_("member-chain",ee)}t.exports=L}}),Dr=q({"src/language-js/print/call-expression.js":function(e,t){W();var n=de().builders,r=n.join,i=n.group,o=sr(),a=kn(),u=a.getCallArguments,s=a.hasFlowAnnotationComment,l=a.isCallExpression,c=a.isMemberish,p=a.isStringLiteral,f=a.isTemplateOnItsOwnLine,d=a.isTestCall,h=a.iterateCallArgumentsPath,y=gr(),m=mr(),v=hr(),g=v.printOptionalToken,D=v.printFunctionTypeParameters;function b(e,t,n){var a=e.getValue(),p=e.getParentNode(),v="NewExpression"===a.type,b="ImportExpression"===a.type,x=g(e),C=u(a);if(C.length>0&&(!b&&!v&&E(a,p)||1===C.length&&f(C[0],t.originalText)||!v&&d(a,p))){var A=[];return h(e,(function(){A.push(n())})),[v?"new ":"",n("callee"),x,D(e,t,n),"(",r(", ",A),")"]}var w=("babel"===t.parser||"babel-flow"===t.parser)&&a.callee&&"Identifier"===a.callee.type&&s(a.callee.trailingComments);if(w&&(a.callee.trailingComments[0].printed=!0),!b&&!v&&c(a.callee)&&!e.call((function(e){return o(e,t)}),"callee"))return y(e,t,n);var S=[v?"new ":"",b?"import":n("callee"),x,w?"/*:: ".concat(a.callee.trailingComments[0].value.slice(2).trim()," */"):"",D(e,t,n),m(e,t,n)];return b||l(a.callee)?i(S):S}function E(e,t){if("Identifier"!==e.callee.type)return!1;if("require"===e.callee.name)return!0;if("define"===e.callee.name){var n=u(e);return"ExpressionStatement"===t.type&&(1===n.length||2===n.length&&"ArrayExpression"===n[0].type||3===n.length&&p(n[0])&&"ArrayExpression"===n[1].type)}return!1}t.exports={printCallExpression:b}}}),br=q({"src/language-js/print/assignment.js":function(e,t){W();var n=Le(),r=n.isNonEmptyArray,i=n.getStringWidth,o=de(),a=o.builders,u=a.line,s=a.group,l=a.indent,c=a.indentIfBreak,p=a.lineSuffixBoundary,f=o.utils,d=f.cleanDoc,h=f.willBreak,y=f.canBreak,m=kn(),v=m.hasLeadingOwnLineComment,g=m.isBinaryish,D=m.isStringLiteral,b=m.isLiteral,E=m.isNumericLiteral,x=m.isCallExpression,C=m.isMemberExpression,A=m.getCallArguments,w=m.rawText,S=m.hasComment,F=m.isSignedNumericLiteral,k=m.isObjectProperty,_=pr().shouldInlineLogicalExpression,T=Dr().printCallExpression;function O(e,t,n,r,i,o){var a=P(e,t,n,r,o),f=n(o,{assignmentLayout:a});switch(a){case"break-after-operator":return s([s(r),i,s(l([u,f]))]);case"never-break-after-operator":return s([s(r),i," ",f]);case"fluid":var d=Symbol("assignment");return s([s(r),i,s(l(u),{id:d}),p,c(f,{groupId:d})]);case"break-lhs":return s([r,i," ",s(f)]);case"chain":return[s(r),i,u,f];case"chain-tail":return[s(r),i,l([u,f])];case"chain-tail-arrow-chain":return[s(r),i,f];case"only-left":return r}}function N(e,t,n){var r=e.getValue();return O(e,t,n,n("left"),[" ",r.operator],"right")}function j(e,t,n){return O(e,t,n,n("id")," =","init")}function P(e,t,n,r,i){var o=e.getValue(),a=o[i];if(!a)return"only-left";var u=!L(a);if(e.match(L,M,(function(e){return!u||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type})))return u?"ArrowFunctionExpression"===a.type&&"ArrowFunctionExpression"===a.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!u&&L(a.right)||v(t.originalText,a))return"break-after-operator";if("CallExpression"===a.type&&"require"===a.callee.name||"json5"===t.parser||"json"===t.parser)return"never-break-after-operator";if(I(o)||R(o)||U(o)||z(o)&&y(r))return"break-lhs";var s=X(o,r,t);return e.call((function(){return B(e,t,n,s)}),i)?"break-after-operator":s||"TemplateLiteral"===a.type||"TaggedTemplateExpression"===a.type||"BooleanLiteral"===a.type||E(a)||"ClassExpression"===a.type?"never-break-after-operator":"fluid"}function B(e,t,n,i){var o=e.getValue();if(g(o)&&!_(o))return!0;switch(o.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":var a=o.test;return g(a)&&!_(a);case"ClassExpression":return r(o.decorators)}if(i)return!1;for(var u=o,s=[];;)if("UnaryExpression"===u.type)u=u.argument,s.push("argument");else{if("TSNonNullExpression"!==u.type)break;u=u.expression,s.push("expression")}return!(!D(u)&&!e.call.apply(e,[function(){return G(e,t,n)}].concat(s)))}function I(e){if(M(e)){var t=e.left||e.id;return"ObjectPattern"===t.type&&t.properties.length>2&&t.properties.some((function(e){return k(e)&&(!e.shorthand||e.value&&"AssignmentPattern"===e.value.type)}))}return!1}function L(e){return"AssignmentExpression"===e.type}function M(e){return L(e)||"VariableDeclarator"===e.type}function R(e){var t=q(e);if(r(t)){var n="TSTypeAliasDeclaration"===e.type?"constraint":"bound";if(t.length>1&&t.some((function(e){return e[n]||e.default})))return!0}return!1}function q(e){return V(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function V(e){return"TSTypeAliasDeclaration"===e.type||"TypeAlias"===e.type}function U(e){if("VariableDeclarator"!==e.type)return!1;var t=e.id.typeAnnotation;if(!t||!t.typeAnnotation)return!1;var n=H(t.typeAnnotation);return r(n)&&n.length>1&&n.some((function(e){return r(H(e))||"TSConditionalType"===e.type}))}function z(e){return"VariableDeclarator"===e.type&&e.init&&"ArrowFunctionExpression"===e.init.type}function H(e){return $(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function $(e){return"TSTypeReference"===e.type||"GenericTypeAnnotation"===e.type}function G(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.getValue(),o=function(){return G(e,t,n,!0)};if("TSNonNullExpression"===i.type)return e.call(o,"expression");if(x(i)){if("member-chain"===T(e,t,n).label)return!1;var a=A(i);return!(!(0===a.length||1===a.length&&J(a[0],t))||Y(i,n))&&e.call(o,"callee")}return C(i)?e.call(o,"object"):r&&("Identifier"===i.type||"ThisExpression"===i.type)}var K=.25;function J(e,t){var n=t.printWidth;if(S(e))return!1;var r=n*K;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=r||F(e)&&!S(e.argument))return!0;var i="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return i?i.length<=r:D(e)?w(e).length<=r:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes("\n"):b(e)}function X(e,t,n){if(!k(e))return!1;var r=3;return"string"==typeof(t=d(t))&&i(t)<n.tabWidth+r}function Y(e,t){var n=Q(e);if(r(n)){if(n.length>1)return!0;if(1===n.length){var i=n[0];if("TSUnionType"===i.type||"UnionTypeAnnotation"===i.type||"TSIntersectionType"===i.type||"IntersectionTypeAnnotation"===i.type||"TSTypeLiteral"===i.type||"ObjectTypeAnnotation"===i.type)return!0}var o=e.typeParameters?"typeParameters":"typeArguments";if(h(t(o)))return!0}return!1}function Q(e){return e.typeParameters&&e.typeParameters.params||e.typeArguments&&e.typeArguments.params}t.exports={printVariableDeclarator:j,printAssignmentExpression:N,printAssignment:O,isArrowFunctionVariableDeclarator:z}}}),Er=q({"src/language-js/print/function-parameters.js":function(e,t){W();var n=Le().getNextNonSpaceNonCommentCharacter,r=hn().printDanglingComments,i=de(),o=i.builders,a=o.line,u=o.hardline,s=o.softline,l=o.group,c=o.indent,p=o.ifBreak,f=i.utils,d=f.removeLines,h=f.willBreak,m=kn(),v=m.getFunctionParameters,g=m.iterateFunctionParametersPath,D=m.isSimpleType,b=m.isTestCall,E=m.isTypeAnnotationAFunction,x=m.isObjectType,C=m.isObjectTypePropertyAFunction,A=m.hasRestParameter,w=m.shouldPrintComma,S=m.hasComment,F=m.isNextLineEmpty,k=an().locEnd,_=at().ArgExpansionBailout,T=hr().printFunctionTypeParameters;function O(e,t,i,o,f){var y=e.getValue(),m=v(y),x=f?T(e,i,t):"";if(0===m.length)return[x,"(",r(e,i,!0,(function(e){return")"===n(i.originalText,e,k)})),")"];var S=e.getParentNode(),O=b(S),j=N(y),P=[];if(g(e,(function(e,n){var r=n===m.length-1;r&&y.rest&&P.push("..."),P.push(t()),!r&&(P.push(","),O||j?P.push(" "):F(m[n],i)?P.push(u,u):P.push(a))})),o){if(h(x)||h(P))throw new _;return l([d(x),"(",d(P),")"])}var B=m.every((function(e){return!e.decorators}));return j&&B||O?[x,"("].concat(P,[")"]):(C(S)||E(S)||"TypeAlias"===S.type||"UnionTypeAnnotation"===S.type||"TSUnionType"===S.type||"IntersectionTypeAnnotation"===S.type||"FunctionTypeAnnotation"===S.type&&S.returnType===y)&&1===m.length&&null===m[0].name&&y.this!==m[0]&&m[0].typeAnnotation&&null===y.typeParameters&&D(m[0].typeAnnotation)&&!y.rest?"always"===i.arrowParens?["("].concat(P,[")"]):P:[x,"(",c([s].concat(P)),p(!A(y)&&w(i,"all")?",":""),s,")"]}function N(e){if(!e)return!1;var t=v(e);if(1!==t.length)return!1;var n=y(t,1)[0];return!S(n)&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&x(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&x(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}function j(e){var t;return e.returnType?(t=e.returnType).typeAnnotation&&(t=t.typeAnnotation):e.typeAnnotation&&(t=e.typeAnnotation),t}function P(e,t){var n=j(e);if(!n)return!1;var r=e.typeParameters&&e.typeParameters.params;if(r){if(r.length>1)return!1;if(1===r.length){var i=r[0];if(i.constraint||i.default)return!1}}return 1===v(e).length&&(x(n)||h(t))}t.exports={printFunctionParameters:O,shouldHugFunctionParameters:N,shouldGroupFunctionParameters:P}}}),xr=q({"src/language-js/print/type-annotation.js":function(e,t){W();var n=hn(),r=n.printComments,i=n.printDanglingComments,o=Le().isNonEmptyArray,a=de().builders,u=a.group,s=a.join,l=a.line,c=a.softline,p=a.indent,f=a.align,d=a.ifBreak,h=sr(),y=an().locStart,m=kn(),v=m.isSimpleType,g=m.isObjectType,D=m.hasLeadingOwnLineComment,b=m.isObjectTypePropertyAFunction,E=m.shouldPrintComma,x=br().printAssignment,C=Er(),A=C.printFunctionParameters,w=C.shouldGroupFunctionParameters,S=yr().printArrayItems;function F(e){if(v(e)||g(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){var t=e.types.filter((function(e){return"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type})).length,n=e.types.some((function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type}));if(e.types.length-1===t&&n)return!0}return!1}function k(e,t,n){var r=t.semi?";":"",i=e.getValue(),o=[];return o.push("opaque type ",n("id"),n("typeParameters")),i.supertype&&o.push(": ",n("supertype")),i.impltype&&o.push(" = ",n("impltype")),o.push(r),o}function _(e,t,n){var r=t.semi?";":"",i=e.getValue(),o=[];i.declare&&o.push("declare "),o.push("type ",n("id"),n("typeParameters"));var a="TSTypeAliasDeclaration"===i.type?"typeAnnotation":"right";return[x(e,t,n,o," =",a),r]}function T(e,t,n){for(var r=e.getValue(),i=e.map(n,"types"),o=[],a=!1,s=0;s<i.length;++s)0===s?o.push(i[s]):g(r.types[s-1])&&g(r.types[s])?o.push([" & ",a?p(i[s]):i[s]]):g(r.types[s-1])||g(r.types[s])?(s>1&&(a=!0),o.push(" & ",s>1?p(i[s]):i[s])):o.push(p([" &",l,i[s]]));return u(o)}function O(e,t,n){var i=e.getValue(),o=e.getParentNode(),a="TypeParameterInstantiation"!==o.type&&"TSTypeParameterInstantiation"!==o.type&&"GenericTypeAnnotation"!==o.type&&"TSTypeReference"!==o.type&&"TSTypeAssertion"!==o.type&&"TupleTypeAnnotation"!==o.type&&"TSTupleType"!==o.type&&!("FunctionTypeParam"===o.type&&!o.name&&e.getParentNode(1).this!==o)&&!(("TypeAlias"===o.type||"VariableDeclarator"===o.type||"TSTypeAliasDeclaration"===o.type)&&D(t.originalText,i)),y=F(i),m=e.map((function(e){var i=n();return y||(i=f(2,i)),r(e,i,t)}),"types");if(y)return s(" | ",m);var v=a&&!D(t.originalText,i),g=[d([v?l:"","| "]),s([l,"| "],m)];return h(e,t)?u([p(g),c]):"TupleTypeAnnotation"===o.type&&o.types.length>1||"TSTupleType"===o.type&&o.elementTypes.length>1?u([p([d(["(",c]),g]),c,d(")")]):u(a?p(g):g)}function N(e,t,n){var r=e.getValue(),i=[],o=e.getParentNode(0),a=e.getParentNode(1),s=e.getParentNode(2),l="TSFunctionType"===r.type||!(("ObjectTypeProperty"===o.type||"ObjectTypeInternalSlot"===o.type)&&!o.variance&&!o.optional&&y(o)===y(r)||"ObjectTypeCallProperty"===o.type||s&&"DeclareFunction"===s.type),c=l&&("TypeAnnotation"===o.type||"TSTypeAnnotation"===o.type),p=c&&l&&("TypeAnnotation"===o.type||"TSTypeAnnotation"===o.type)&&"ArrowFunctionExpression"===a.type;b(o)&&(l=!0,c=!0),p&&i.push("(");var f=A(e,n,t,!1,!0),d=r.returnType||r.predicate||r.typeAnnotation?[l?" => ":": ",n("returnType"),n("predicate"),n("typeAnnotation")]:"",h=w(r,d);return i.push(h?u(f):f),d&&i.push(d),p&&i.push(")"),u(i)}function j(e,t,n){var r=e.getValue(),a="TSTupleType"===r.type?"elementTypes":"types",s=r[a],l=o(s),f=l?c:"";return u(["[",p([f,S(e,t,a,n)]),d(l&&E(t,"all")?",":""),i(e,t,!0),f,"]"])}function P(e,t,n){var r=e.getValue(),i="OptionalIndexedAccessType"===r.type&&r.optional?"?.[":"[";return[n("objectType"),i,n("indexType"),"]"]}function B(e,t,n){var r=e.getValue();return[r.postfix?"":n,t("typeAnnotation"),r.postfix?n:""]}t.exports={printOpaqueType:k,printTypeAlias:_,printIntersectionType:T,printUnionType:O,printFunctionType:N,printTupleType:j,printIndexedAccessType:P,shouldHugType:F,printJSDocType:B}}}),Cr=q({"src/language-js/print/type-parameters.js":function(e,t){W();var n=hn().printDanglingComments,r=de().builders,i=r.join,o=r.line,a=r.hardline,u=r.softline,s=r.group,l=r.indent,c=r.ifBreak,p=kn(),f=p.isTestCall,d=p.hasComment,h=p.CommentCheckFlags,y=p.isTSXFile,m=p.shouldPrintComma,v=p.getFunctionParameters,g=p.isObjectType,D=Le().createGroupIdMapper,b=xr().shouldHugType,E=br().isArrowFunctionVariableDeclarator,x=D("typeParameters");function C(e,t,n,r){var a=e.getValue();if(!a[r])return"";if(!Array.isArray(a[r]))return n(r);var p=e.getNode(2),d=p&&f(p);if(!e.match((function(e){return!(1===e[r].length&&g(e[r][0]))}),void 0,(function(e,t){return"typeAnnotation"===t}),(function(e){return"Identifier"===e.type}),E)&&(d||0===a[r].length||1===a[r].length&&("NullableTypeAnnotation"===a[r][0].type||b(a[r][0]))))return["<",i(", ",e.map(n,r)),A(e,t),">"];var h="TSTypeParameterInstantiation"===a.type?"":1===v(a).length&&y(t)&&!a[r][0].constraint&&"ArrowFunctionExpression"===e.getParentNode().type?",":m(t,"all")?c(","):"";return s(["<",l([u,i([",",o],e.map(n,r))]),h,u,">"],{id:x(a)})}function A(e,t){var r=e.getValue();if(!d(r,h.Dangling))return"";var i=!d(r,h.Line),o=n(e,t,i);return i?o:[o,a]}function w(e,t,n){var r=e.getValue(),i=[],o=e.getParentNode();return"TSMappedType"===o.type?(i.push("[",n("name")),r.constraint&&i.push(" in ",n("constraint")),o.nameType&&i.push(" as ",e.callParent((function(){return n("nameType")}))),i.push("]"),i):(r.variance&&i.push(n("variance")),r.in&&i.push("in "),r.out&&i.push("out "),i.push(n("name")),r.bound&&i.push(": ",n("bound")),r.constraint&&i.push(" extends ",n("constraint")),r.default&&i.push(" = ",n("default")),i)}t.exports={printTypeParameter:w,printTypeParameters:C,getTypeParametersGroupId:x}}}),Ar=q({"src/language-js/print/property.js":function(e,t){W();var n=hn().printComments,r=Le(),i=r.printString,o=r.printNumber,a=kn(),u=a.isNumericLiteral,s=a.isSimpleNumber,l=a.isStringLiteral,c=a.isStringPropSafeToUnquote,p=a.rawText,f=br().printAssignment,d=new WeakMap;function h(e,t,r){var a=e.getNode();if(a.computed)return["[",r("key"),"]"];var f=e.getParentNode(),h=a.key;if("ClassPrivateProperty"===a.type&&"Identifier"===h.type)return["#",r("key")];if("consistent"===t.quoteProps&&!d.has(f)){var y=(f.properties||f.body||f.members).some((function(e){return!e.computed&&e.key&&l(e.key)&&!c(e,t)}));d.set(f,y)}if(("Identifier"===h.type||u(h)&&s(o(p(h)))&&String(h.value)===o(p(h))&&"typescript"!==t.parser&&"babel-ts"!==t.parser)&&("json"===t.parser||"consistent"===t.quoteProps&&d.get(f))){var m=i(JSON.stringify("Identifier"===h.type?h.name:h.value.toString()),t);return e.call((function(e){return n(e,m,t)}),"key")}return c(a,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!d.get(f))?e.call((function(e){return n(e,/^\d/.test(h.value)?o(h.value):h.value,t)}),"key"):r("key")}function y(e,t,n){return e.getValue().shorthand?n("value"):f(e,t,n,h(e,t,n),":","value")}t.exports={printProperty:y,printPropertyKey:h}}}),wr=q({"src/language-js/print/function.js":function(e,t){W();var n=dn(),r=hn(),i=r.printDanglingComments,o=r.printCommentsSeparately,a=Y(),u=Le().getNextNonSpaceNonCommentCharacterIndex,s=de(),l=s.builders,c=l.line,p=l.softline,f=l.group,d=l.indent,h=l.ifBreak,y=l.hardline,m=l.join,v=l.indentIfBreak,g=s.utils,D=g.removeLines,b=g.willBreak,E=at().ArgExpansionBailout,x=kn(),C=x.getFunctionParameters,A=x.hasLeadingOwnLineComment,w=x.isFlowAnnotationComment,S=x.isJsxNode,F=x.isTemplateOnItsOwnLine,k=x.shouldPrintComma,_=x.startsWithNoLookaheadToken,T=x.isBinaryish,O=x.isLineComment,N=x.hasComment,j=x.getComments,P=x.CommentCheckFlags,B=x.isCallLikeExpression,I=x.isCallExpression,L=x.getCallArguments,M=x.hasNakedLeftSide,R=x.getLeftSide,q=an().locEnd,V=Er(),U=V.printFunctionParameters,z=V.shouldGroupFunctionParameters,H=Ar().printPropertyKey,$=hr().printFunctionTypeParameters;function G(e,t,n,r){var i=e.getValue(),o=!1;if(("FunctionDeclaration"===i.type||"FunctionExpression"===i.type)&&r&&r.expandLastArg){var a=e.getParentNode();I(a)&&L(a).length>1&&(o=!0)}var u=[];"TSDeclareFunction"===i.type&&i.declare&&u.push("declare "),i.async&&u.push("async "),i.generator?u.push("function* "):u.push("function "),i.id&&u.push(t("id"));var s=U(e,t,n,o),l=ne(e,t,n),c=z(i,l);return u.push($(e,n,t),f([c?f(s):s,l]),i.body?" ":"",t("body")),n.semi&&(i.declare||!i.body)&&u.push(";"),u}function K(e,t,r){var i=e.getNode(),o=i.kind,a=i.value||i,u=[];return o&&"init"!==o&&"method"!==o&&"constructor"!==o?(n.ok("get"===o||"set"===o),u.push(o," ")):a.async&&u.push("async "),a.generator&&u.push("*"),u.push(H(e,t,r),i.optional||i.key.optional?"?":""),i===a?u.push(J(e,t,r)):"FunctionExpression"===a.type?u.push(e.call((function(e){return J(e,t,r)}),"value")):u.push(r("value")),u}function J(e,t,n){var r=e.getNode(),i=U(e,n,t),o=ne(e,n,t),a=z(r,o),u=[$(e,t,n),f([a?f(i):i,o])];return r.body?u.push(" ",n("body")):u.push(t.semi?";":""),u}function X(e,t,n,r){var o=[];if(e.getValue().async&&o.push("async "),te(e,t))o.push(n(["params",0]));else{var a=r&&(r.expandLastArg||r.expandFirstArg),s=ne(e,n,t);if(a){if(b(s))throw new E;s=f(D(s))}o.push(f([U(e,n,t,a,!0),s]))}var l=i(e,t,!0,(function(e){var n=u(t.originalText,e,q);return!1!==n&&"=>"===t.originalText.slice(n,n+2)}));return l&&o.push(" ",l),o}function Q(e,t,n,r,i,o){var a=e.getName(),u=e.getParentNode(),s=B(u)&&"callee"===a,l=Boolean(t&&t.assignmentLayout),y="BlockStatement"!==o.body.type&&"ObjectExpression"!==o.body.type&&"SequenceExpression"!==o.body.type,g=s&&y||t&&"chain-tail-arrow-chain"===t.assignmentLayout,D=Symbol("arrow-chain");return"SequenceExpression"===o.body.type&&(i=f(["(",d([p,i]),p,")"])),f([f(d([s||l?p:"",f(m([" =>",c],n),{shouldBreak:r})]),{id:D,shouldBreak:g})," =>",v(y?d([c,i]):[" ",i],{groupId:D}),s?h(p,"",{groupId:D}):""])}function Z(e,t,n,r){var i=e.getValue(),a=[],u=[],s=!1;if(function l(){var c=X(e,t,n,r);if(0===a.length)a.push(c);else{var p=o(e,t),f=p.leading,d=p.trailing;a.push([f,c]),u.unshift(d)}s=s||i.returnType&&C(i).length>0||i.typeParameters||C(i).some((function(e){return"Identifier"!==e.type})),"ArrowFunctionExpression"!==i.body.type||r&&r.expandLastArg?u.unshift(n("body",r)):(i=i.body,e.call(l,"body"))}(),a.length>1)return Q(e,r,a,s,u,i);var l=a;if(l.push(" =>"),!A(t.originalText,i.body)&&("ArrayExpression"===i.body.type||"ObjectExpression"===i.body.type||"BlockStatement"===i.body.type||S(i.body)||F(i.body,t.originalText)||"ArrowFunctionExpression"===i.body.type||"DoExpression"===i.body.type))return f([].concat(l,[" ",u]));if("SequenceExpression"===i.body.type)return f([].concat(l,[f([" (",d([p,u]),p,")"])]));var y=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!N(i),m=r&&r.expandLastArg&&k(t,"all"),v="ConditionalExpression"===i.body.type&&!_(i.body,!1);return f([].concat(l,[f([d([c,v?h("","("):"",u,v?h("",")"):""]),y?[h(m?",":""),p]:""])]))}function ee(e){var t=C(e);return 1===t.length&&!e.typeParameters&&!N(e,P.Dangling)&&"Identifier"===t[0].type&&!t[0].typeAnnotation&&!N(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function te(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&ee(e.getValue())}function ne(e,t,n){var r=e.getValue(),i=t("returnType");if(r.returnType&&w(n.originalText,r.returnType))return[" /*: ",i," */"];var o=[i];return r.returnType&&r.returnType.typeAnnotation&&o.unshift(": "),r.predicate&&o.push(r.returnType?" ":": ",t("predicate")),o}function re(e,t,n){var r=e.getValue(),o=t.semi?";":"",u=[];r.argument&&(ae(t,r.argument)?u.push([" (",d([y,n("argument")]),y,")"]):T(r.argument)||"SequenceExpression"===r.argument.type?u.push(f([h(" ("," "),d([p,n("argument")]),p,h(")")])):u.push(" ",n("argument")));var s=j(r),l=a(s),c=l&&O(l);return c&&u.push(o),N(r,P.Dangling)&&u.push(" ",i(e,t,!0)),c||u.push(o),u}function ie(e,t,n){return["return",re(e,t,n)]}function oe(e,t,n){return["throw",re(e,t,n)]}function ae(e,t){if(A(e.originalText,t))return!0;if(M(t))for(var n,r=t;n=R(r);)if(r=n,A(e.originalText,r))return!0;return!1}t.exports={printFunction:G,printArrowFunction:Z,printMethod:K,printReturnStatement:ie,printThrowStatement:oe,printMethodInternal:J,shouldPrintParamsWithoutParens:te}}}),Sr=q({"src/language-js/print/decorators.js":function(e,t){W();var n=Le(),r=n.isNonEmptyArray,i=n.hasNewline,o=de().builders,a=o.line,u=o.hardline,s=o.join,l=o.breakParent,c=o.group,p=an(),f=p.locStart,d=p.locEnd,h=kn().getParentExportDeclaration;function y(e,t,n){var r=e.getValue();return c([s(a,e.map(n,"decorators")),g(r,t)?u:a])}function m(e,t,n){return[s(u,e.map(n,"declaration","decorators")),u]}function v(e,t,n){var i=e.getValue(),o=i.decorators;if(r(o)&&!D(e.getParentNode())){var c="ClassExpression"===i.type||"ClassDeclaration"===i.type||g(i,t);return[h(e)?u:c?l:"",s(a,e.map(n,"decorators")),a]}}function g(e,t){return e.decorators.some((function(e){return i(t.originalText,d(e))}))}function D(e){if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;var t=e.declaration&&e.declaration.decorators;return r(t)&&f(e,{ignoreDecorators:!0})>f(t[0])}t.exports={printDecorators:v,printClassMemberDecorators:y,printDecoratorsBeforeExport:m,hasDecoratorsBeforeExport:D}}}),Fr=q({"src/language-js/print/class.js":function(e,t){W();var n=Le(),r=n.isNonEmptyArray,i=n.createGroupIdMapper,o=hn(),a=o.printComments,u=o.printDanglingComments,s=de().builders,l=s.join,c=s.line,p=s.hardline,f=s.softline,d=s.group,h=s.indent,y=s.ifBreak,m=kn(),v=m.hasComment,g=m.CommentCheckFlags,D=Cr().getTypeParametersGroupId,b=wr().printMethod,E=hr(),x=E.printOptionalToken,C=E.printTypeAnnotation,A=E.printDefiniteToken,w=Ar().printPropertyKey,S=br().printAssignment,F=Sr().printClassMemberDecorators;function k(e,t,n){var i=e.getValue(),o=[];i.declare&&o.push("declare "),i.abstract&&o.push("abstract "),o.push("class");var u,s=i.id&&v(i.id,g.Trailing)||i.typeParameters&&v(i.typeParameters,g.Trailing)||i.superClass&&v(i.superClass)||r(i.extends)||r(i.mixins)||r(i.implements),l=[],p=[];if(i.id&&l.push(" ",n("id")),l.push(n("typeParameters")),i.superClass){var f=[P(e,t,n),n("superTypeParameters")],y=e.call((function(e){return["extends ",a(e,f,t)]}),"superClass");s?p.push(c,d(y)):p.push(" ",y)}else p.push(j(e,t,n,"extends"));return p.push(j(e,t,n,"mixins"),j(e,t,n,"implements")),s?(u=N(i)?[].concat(l,[h(p)]):h([].concat(l,[p])),o.push(d(u,{id:_(i)}))):o.push.apply(o,l.concat(p)),o.push(" ",n("body")),o}var _=i("heritageGroup");function T(e){return y(p,"",{groupId:_(e)})}function O(e){return["superClass","extends","mixins","implements"].filter((function(t){return Boolean(e[t])})).length>1}function N(e){return e.typeParameters&&!v(e.typeParameters,g.Trailing|g.Line)&&!O(e)}function j(e,t,n,i){var o=e.getValue();if(!r(o[i]))return"";var a=u(e,t,!0,(function(e){return e.marker===i}));return[N(o)?y(" ",c,{groupId:D(o.typeParameters)}):c,a,a&&p,i,d(h([c,l([",",c],e.map(n,i))]))]}function P(e,t,n){var r=n("superClass");return"AssignmentExpression"===e.getParentNode().type?d(y(["(",h([f,r]),f,")"],r)):r}function B(e,t,n){var i=e.getValue(),o=[];return r(i.decorators)&&o.push(F(e,t,n)),i.accessibility&&o.push(i.accessibility+" "),i.readonly&&o.push("readonly "),i.declare&&o.push("declare "),i.static&&o.push("static "),("TSAbstractMethodDefinition"===i.type||i.abstract)&&o.push("abstract "),i.override&&o.push("override "),o.push(b(e,t,n)),o}function I(e,t,n){var i=e.getValue(),o=[],a=t.semi?";":"";return r(i.decorators)&&o.push(F(e,t,n)),i.accessibility&&o.push(i.accessibility+" "),i.declare&&o.push("declare "),i.static&&o.push("static "),("TSAbstractPropertyDefinition"===i.type||i.abstract)&&o.push("abstract "),i.override&&o.push("override "),i.readonly&&o.push("readonly "),i.variance&&o.push(n("variance")),"ClassAccessorProperty"===i.type&&o.push("accessor "),o.push(w(e,t,n),x(e),A(e),C(e,t,n)),[S(e,t,n,o," =","value"),a]}t.exports={printClass:k,printClassMethod:B,printClassProperty:I,printHardlineAfterHeritage:T}}}),kr=q({"src/language-js/print/interface.js":function(e,t){W();var n=Le().isNonEmptyArray,r=de().builders,i=r.join,o=r.line,a=r.group,u=r.indent,s=r.ifBreak,l=kn(),c=l.hasComment,p=l.identity,f=l.CommentCheckFlags,d=Cr().getTypeParametersGroupId,h=hr().printTypeScriptModifiers;function y(e,t,r){var l=e.getValue(),y=[];l.declare&&y.push("declare "),"TSInterfaceDeclaration"===l.type&&y.push(l.abstract?"abstract ":"",h(e,t,r)),y.push("interface");var m=[],v=[];"InterfaceTypeAnnotation"!==l.type&&m.push(" ",r("id"),r("typeParameters"));var g=l.typeParameters&&!c(l.typeParameters,f.Trailing|f.Line);return n(l.extends)&&v.push(g?s(" ",o,{groupId:d(l.typeParameters)}):o,"extends ",(1===l.extends.length?p:u)(i([",",o],e.map(r,"extends")))),l.id&&c(l.id,f.Trailing)||n(l.extends)?g?y.push(a([].concat(m,[u(v)]))):y.push(a(u([].concat(m,v)))):y.push.apply(y,m.concat(v)),y.push(" ",r("body")),a(y)}t.exports={printInterface:y}}}),_r=q({"src/language-js/print/module.js":function(e,t){W();var n=Le().isNonEmptyArray,r=de().builders,i=r.softline,o=r.group,a=r.indent,u=r.join,s=r.line,l=r.ifBreak,c=r.hardline,p=hn().printDanglingComments,f=kn(),d=f.hasComment,h=f.CommentCheckFlags,y=f.shouldPrintComma,m=f.needsHardlineAfterDanglingComment,v=f.isStringLiteral,g=f.rawText,D=an(),b=D.locStart,E=D.hasSameLoc,x=Sr(),C=x.hasDecoratorsBeforeExport,A=x.printDecoratorsBeforeExport;function w(e,t,n){var r=e.getValue(),i=t.semi?";":"",o=[],a=r.importKind;return o.push("import"),a&&"value"!==a&&o.push(" ",a),o.push(T(e,t,n),_(e,t,n),N(e,t,n),i),o}function S(e,t,n){var r=e.getValue(),i=[];C(r)&&i.push(A(e,t,n));var o=r.type,a=r.exportKind,u=r.declaration;return i.push("export"),(r.default||"ExportDefaultDeclaration"===o)&&i.push(" default"),d(r,h.Dangling)&&(i.push(" ",p(e,t,!0)),m(r)&&i.push(c)),u?i.push(" ",n("declaration")):i.push("type"===a?" type":"",T(e,t,n),_(e,t,n),N(e,t,n)),k(r,t)&&i.push(";"),i}function F(e,t,n){var r=e.getValue(),i=t.semi?";":"",o=[],a=r.exportKind,u=r.exported;return o.push("export"),"type"===a&&o.push(" type"),o.push(" *"),u&&o.push(" as ",n("exported")),o.push(_(e,t,n),N(e,t,n),i),o}function k(e,t){if(!t.semi)return!1;var n=e.type,r=e.declaration,i=e.default||"ExportDefaultDeclaration"===n;if(!r)return!0;var o=r.type;return!(!i||"ClassDeclaration"===o||"FunctionDeclaration"===o||"TSInterfaceDeclaration"===o||"DeclareClass"===o||"DeclareFunction"===o||"TSDeclareFunction"===o||"EnumDeclaration"===o)}function _(e,t,n){var r=e.getValue();if(!r.source)return"";var i=[];return O(r,t)||i.push(" from"),i.push(" ",n("source")),i}function T(e,t,r){var c=e.getValue();if(O(c,t))return"";var p=[" "];if(n(c.specifiers)){var f=[],h=[];e.each((function(){var t=e.getValue().type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)f.push(r());else{if("ExportSpecifier"!==t&&"ImportSpecifier"!==t)throw new Error("Unknown specifier type ".concat(JSON.stringify(t)));h.push(r())}}),"specifiers"),p.push(u(", ",f)),h.length>0&&(f.length>0&&p.push(", "),h.length>1||f.length>0||c.specifiers.some((function(e){return d(e)}))?p.push(o(["{",a([t.bracketSpacing?s:i,u([",",s],h)]),l(y(t)?",":""),t.bracketSpacing?s:i,"}"])):p.push(["{",t.bracketSpacing?" ":""].concat(h,[t.bracketSpacing?" ":"","}"])))}else p.push("{}");return p}function O(e,t){var r=e.type,i=e.importKind,o=e.source,a=e.specifiers;return"ImportDeclaration"===r&&!n(a)&&"type"!==i&&!/{\s*}/.test(t.originalText.slice(b(e),b(o)))}function N(e,t,r){var i=e.getNode();return n(i.assertions)?[" assert {",t.bracketSpacing?" ":"",u(", ",e.map(r,"assertions")),t.bracketSpacing?" ":"","}"]:""}function j(e,t,n){var r=e.getNode(),i=r.type,o=[],a="ImportSpecifier"===i?r.importKind:r.exportKind;a&&"value"!==a&&o.push(a," ");var u=i.startsWith("Import"),s=u?"imported":"local",l=u?"local":"exported",c=r[s],p=r[l],f="",d="";return"ExportNamespaceSpecifier"===i||"ImportNamespaceSpecifier"===i?f="*":c&&(f=n(s)),p&&!P(r)&&(d=n(l)),o.push(f,f&&d?" as ":"",d),o}function P(e){if("ImportSpecifier"!==e.type&&"ExportSpecifier"!==e.type)return!1;var t=e.local,n=e["ImportSpecifier"===e.type?"imported":"exported"];return!(t.type!==n.type||!E(t,n))&&(v(t)?t.value===n.value&&g(t)===g(n):"Identifier"===t.type&&t.name===n.name)}t.exports={printImportDeclaration:w,printExportDeclaration:S,printExportAllDeclaration:F,printModuleSpecifier:j}}}),Tr=q({"src/language-js/print/object.js":function(e,t){W();var n=hn().printDanglingComments,r=de().builders,i=r.line,o=r.softline,a=r.group,u=r.indent,s=r.ifBreak,l=r.hardline,c=Le(),p=c.getLast,f=c.hasNewlineInRange,d=c.hasNewline,h=c.isNonEmptyArray,y=kn(),m=y.shouldPrintComma,g=y.hasComment,D=y.getComments,b=y.CommentCheckFlags,E=y.isNextLineEmpty,x=an(),C=x.locStart,A=x.locEnd,w=hr(),S=w.printOptionalToken,F=w.printTypeAnnotation,k=Er().shouldHugFunctionParameters,_=xr().shouldHugType,T=Fr().printHardlineAfterHeritage;function O(e,t,r){var c,y=t.semi?";":"",x=e.getValue();c="TSTypeLiteral"===x.type?"members":"TSInterfaceBody"===x.type?"body":"properties";var w="ObjectTypeAnnotation"===x.type,O=[c];w&&O.push("indexers","callProperties","internalSlots");for(var N=O.map((function(e){return x[e][0]})).sort((function(e,t){return C(e)-C(t)}))[0],j=e.getParentNode(0),P=w&&j&&("InterfaceDeclaration"===j.type||"DeclareInterface"===j.type||"DeclareClass"===j.type)&&"body"===e.getName(),B="TSInterfaceBody"===x.type||P||"ObjectPattern"===x.type&&"FunctionDeclaration"!==j.type&&"FunctionExpression"!==j.type&&"ArrowFunctionExpression"!==j.type&&"ObjectMethod"!==j.type&&"ClassMethod"!==j.type&&"ClassPrivateMethod"!==j.type&&"AssignmentPattern"!==j.type&&"CatchClause"!==j.type&&x.properties.some((function(e){return e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)}))||"ObjectPattern"!==x.type&&N&&f(t.originalText,C(x),C(N)),I=P?";":"TSInterfaceBody"===x.type||"TSTypeLiteral"===x.type?s(y,";"):",",L="RecordExpression"===x.type?"#{":x.exact?"{|":"{",M=x.exact?"|}":"}",R=[],q=0,V=O;q<V.length;q++){var U=V[q];e.each((function(e){var t=e.getValue();R.push({node:t,printed:r(),loc:C(t)})}),U)}O.length>1&&R.sort((function(e,t){return e.loc-t.loc}));var z=[],H=R.map((function(e){var n=[].concat(v(z),[a(e.printed)]);return z=[I,i],("TSPropertySignature"===e.node.type||"TSMethodSignature"===e.node.type||"TSConstructSignatureDeclaration"===e.node.type)&&g(e.node,b.PrettierIgnore)&&z.shift(),E(e.node,t)&&z.push(l),n}));if(x.inexact){var W;if(g(x,b.Dangling)){var $=g(x,b.Line);W=[n(e,t,!0),$||d(t.originalText,A(p(D(x))))?l:i,"..."]}else W=["..."];H.push([].concat(v(z),v(W)))}var G,K=p(x[c]),J=!(x.inexact||K&&"RestElement"===K.type||K&&("TSPropertySignature"===K.type||"TSCallSignatureDeclaration"===K.type||"TSMethodSignature"===K.type||"TSConstructSignatureDeclaration"===K.type)&&g(K,b.PrettierIgnore));if(0===H.length){if(!g(x,b.Dangling))return[L,M,F(e,t,r)];G=a([L,n(e,t),o,M,S(e),F(e,t,r)])}else G=[P&&h(x.properties)?T(j):"",L,u([t.bracketSpacing?i:o].concat(v(H))),s(J&&(","!==I||m(t))?I:""),t.bracketSpacing?i:o,M,S(e),F(e,t,r)];return e.match((function(e){return"ObjectPattern"===e.type&&!e.decorators}),(function(e,t,n){return k(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n}))||e.match(_,(function(e,t){return"typeAnnotation"===t}),(function(e,t){return"typeAnnotation"===t}),(function(e,t,n){return k(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n}))||!B&&e.match((function(e){return"ObjectPattern"===e.type}),(function(e){return"AssignmentExpression"===e.type||"VariableDeclarator"===e.type}))?G:a(G,{shouldBreak:B})}t.exports={printObject:O}}}),Or=q({"src/language-js/print/flow.js":function(e,t){W();var n=dn(),r=hn().printDanglingComments,i=Le(),o=i.printString,a=i.printNumber,u=de().builders,s=u.hardline,l=u.softline,c=u.group,p=u.indent,f=kn(),d=f.getParentExportDeclaration,h=f.isFunctionNotation,y=f.isGetterOrSetter,m=f.rawText,g=f.shouldPrintComma,D=an(),b=D.locStart,E=D.locEnd,x=Fr().printClass,C=xr(),A=C.printOpaqueType,w=C.printTypeAlias,S=C.printIntersectionType,F=C.printUnionType,k=C.printFunctionType,_=C.printTupleType,T=C.printIndexedAccessType,O=kr().printInterface,N=Cr(),j=N.printTypeParameter,P=N.printTypeParameters,B=_r(),I=B.printExportDeclaration,L=B.printExportAllDeclaration,M=yr().printArrayItems,R=Tr().printObject,q=Ar().printPropertyKey,V=hr(),U=V.printOptionalToken,z=V.printTypeAnnotation,H=V.printRestSpread;function $(e,t,i){var u=e.getValue(),f=t.semi?";":"",d=[];switch(u.type){case"DeclareClass":return G(e,x(e,t,i));case"DeclareFunction":return G(e,["function ",i("id"),u.predicate?" ":"",i("predicate"),f]);case"DeclareModule":return G(e,["module ",i("id")," ",i("body")]);case"DeclareModuleExports":return G(e,["module.exports",": ",i("typeAnnotation"),f]);case"DeclareVariable":return G(e,["var ",i("id"),f]);case"DeclareOpaqueType":return G(e,A(e,t,i));case"DeclareInterface":return G(e,O(e,t,i));case"DeclareTypeAlias":return G(e,w(e,t,i));case"DeclareExportDeclaration":return G(e,I(e,t,i));case"DeclareExportAllDeclaration":return G(e,L(e,t,i));case"OpaqueType":return A(e,t,i);case"TypeAlias":return w(e,t,i);case"IntersectionTypeAnnotation":return S(e,t,i);case"UnionTypeAnnotation":return F(e,t,i);case"FunctionTypeAnnotation":return k(e,t,i);case"TupleTypeAnnotation":return _(e,t,i);case"GenericTypeAnnotation":return[i("id"),P(e,t,i,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return T(e,t,i);case"TypeAnnotation":return i("typeAnnotation");case"TypeParameter":return j(e,t,i);case"TypeofTypeAnnotation":return["typeof ",i("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[i("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(u.value);case"EnumDeclaration":return["enum ",i("id")," ",i("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===u.type||u.explicitType){var D=null;switch(u.type){case"EnumBooleanBody":D="boolean";break;case"EnumNumberBody":D="number";break;case"EnumStringBody":D="string";break;case"EnumSymbolBody":D="symbol"}d.push("of ",D," ")}if(0!==u.members.length||u.hasUnknownMembers){var C=u.members.length>0?[s,M(e,t,"members",i),u.hasUnknownMembers||g(t)?",":""]:[];d.push(c(["{",p([].concat(C,v(u.hasUnknownMembers?[s,"..."]:[]))),r(e,t,!0),s,"}"]))}else d.push(c(["{",r(e,t),l,"}"]));return d;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[i("id")," = ","object"==typeof u.init?i("init"):String(u.init)];case"EnumDefaultedMember":return i("id");case"FunctionTypeParam":var N=u.name?i("name"):e.getParentNode().this===u?"this":"";return[N,U(e),N?": ":"",i("typeAnnotation")];case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return O(e,t,i);case"ClassImplements":case"InterfaceExtends":return[i("id"),i("typeParameters")];case"NullableTypeAnnotation":return["?",i("typeAnnotation")];case"Variance":var B=u.kind;return n.ok("plus"===B||"minus"===B),"plus"===B?"+":"-";case"ObjectTypeCallProperty":return u.static&&d.push("static "),d.push(i("value")),d;case"ObjectTypeIndexer":return[u.static?"static ":"",u.variance?i("variance"):"","[",i("id"),u.id?": ":"",i("key"),"]: ",i("value")];case"ObjectTypeProperty":var V="";return u.proto?V="proto ":u.static&&(V="static "),[V,y(u)?u.kind+" ":"",u.variance?i("variance"):"",q(e,t,i),U(e),h(u)?"":": ",i("value")];case"ObjectTypeAnnotation":return R(e,t,i);case"ObjectTypeInternalSlot":return[u.static?"static ":"","[[",i("id"),"]]",U(e),u.method?"":": ",i("value")];case"ObjectTypeSpreadProperty":return H(e,t,i);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[i("qualification"),".",i("id")];case"StringLiteralTypeAnnotation":return o(m(u),t);case"NumberLiteralTypeAnnotation":n.strictEqual(typeof u.value,"number");case"BigIntLiteralTypeAnnotation":return u.extra?a(u.extra.raw):a(u.raw);case"TypeCastExpression":return["(",i("expression"),z(e,t,i),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":var W=P(e,t,i,"params");if("flow"===t.parser){var $=b(u),K=E(u),J=t.originalText.lastIndexOf("/*",$),X=t.originalText.indexOf("*/",K);if(-1!==J&&-1!==X){var Y=t.originalText.slice(J+2,X).trim();if(Y.startsWith("::")&&!Y.includes("/*")&&!Y.includes("*/"))return["/*:: ",W," */"]}}return W;case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",i("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(u.type))}}function G(e,t){var r=d(e);return r?(n.strictEqual(r.type,"DeclareExportDeclaration"),t):["declare ",t]}t.exports={printFlow:$}}}),Nr=q({"src/language-js/utils/is-ts-keyword-type.js":function(e,t){function n(e){var t=e.type;return t.startsWith("TS")&&t.endsWith("Keyword")}W(),t.exports=n}}),jr=q({"src/language-js/print/ternary.js":function(e,t){W();var n=Le().hasNewlineInRange,r=kn(),i=r.isJsxNode,o=r.getComments,a=r.isCallExpression,u=r.isMemberExpression,s=an(),l=s.locStart,c=s.locEnd,p=Sn(),f=de().builders,d=f.line,h=f.softline,y=f.group,m=f.indent,g=f.align,D=f.ifBreak,b=f.dedent,E=f.breakParent;function x(e){for(var t=[e],n=0;n<t.length;n++)for(var r=t[n],o=0,a=["test","consequent","alternate"];o<a.length;o++){var u=r[a[o]];if(i(u))return!0;"ConditionalExpression"===u.type&&t.push(u)}return!1}function C(e,t,n){var r=e.getValue(),i="ConditionalExpression"===r.type,o=i?"alternate":"falseType",a=e.getParentNode(),u=i?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return a.type===r.type&&a[o]===r?g(2,u):u}var A=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);function w(e){var t=e.getValue();if("ConditionalExpression"!==t.type)return!1;for(var n,r=t,i=0;!n;i++){var o=e.getParentNode(i);a(o)&&o.callee===r||u(o)&&o.object===r||"TSNonNullExpression"===o.type&&o.expression===r?r=o:"NewExpression"===o.type&&o.callee===r||"TSAsExpression"===o.type&&o.expression===r?(n=e.getParentNode(i+1),r=o):n=o}return r!==t&&n[A.get(n.type)]===r}function S(e,t,r){var a,s,f=e.getValue(),A="ConditionalExpression"===f.type,S=A?"consequent":"trueType",F=A?"alternate":"falseType",k=A?["test"]:["checkType","extendsType"],_=f[S],T=f[F],O=[],N=!1,j=e.getParentNode(),P=j.type===f.type&&k.some((function(e){return j[e]===f})),B=j.type===f.type&&!P,I=0;do{s=a||f,a=e.getParentNode(I),I++}while(a&&a.type===f.type&&k.every((function(e){return a[e]!==s})));var L=a||j,M=s;if(A&&(i(f[k[0]])||i(_)||i(T)||x(M))){N=!0,B=!0;var R=function(e){return[D("("),m([h,e]),h,D(")")]},q=function(e){return"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name};O.push(" ? ",q(_)?r(S):R(r(S))," : ",T.type===f.type||q(T)?r(F):R(r(F)))}else{var V=[d,"? ",_.type===f.type?D("","("):"",g(2,r(S)),_.type===f.type?D("",")"):"",d,": ",T.type===f.type?r(F):g(2,r(F))];O.push(j.type!==f.type||j[F]===f||P?V:t.useTabs?b(m(V)):g(Math.max(0,t.tabWidth-2),V))}var U=[].concat(v(k.map((function(e){return o(f[e])}))),[o(_),o(T)]).flat().some((function(e){return p(e)&&n(t.originalText,l(e),c(e))})),z=function(e){return j===L?y(e,{shouldBreak:U}):U?[e,E]:e},H=!N&&(u(j)||"NGPipeExpression"===j.type&&j.left===f)&&!j.computed,W=w(e),$=z([C(e,t,r),B?O:m(O),A&&H&&!W?h:""]);return P||W?y([m([h,$]),h]):$}t.exports={printTernary:S}}}),Pr=q({"src/language-js/print/statement.js":function(e,t){W();var n=de().builders.hardline,r=sr(),i=kn(),o=i.getLeftSidePathName,a=i.hasNakedLeftSide,u=i.isJsxNode,s=i.isTheOnlyJsxElementInMarkdown,l=i.hasComment,c=i.CommentCheckFlags,p=i.isNextLineEmpty,f=wr().shouldPrintParamsWithoutParens;function d(e,t,r,i){var o=e.getValue(),a=[],u="ClassBody"===o.type,f=h(o[i]);return e.each((function(e,i,o){var d=e.getValue();if("EmptyStatement"!==d.type){var h=r();t.semi||u||s(t,e)||!y(e,t)?a.push(h):l(d,c.Leading)?a.push(r([],{needsSemi:!0})):a.push(";",h),!t.semi&&u&&b(d)&&E(d,o[i+1])&&a.push(";"),d!==f&&(a.push(n),p(d,t)&&a.push(n))}}),i),a}function h(e){for(var t=e.length-1;t>=0;t--){var n=e[t];if("EmptyStatement"!==n.type)return n}}function y(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((function(e){return m(e,t)}),"expression")}function m(e,t){var n=e.getValue();switch(n.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!f(e,t))return!0;break;case"UnaryExpression":var i=n.prefix,s=n.operator;if(i&&("+"===s||"-"===s))return!0;break;case"BindExpression":if(!n.object)return!0;break;case"Literal":if(n.regex)return!0;break;default:if(u(n))return!0}return!!r(e,t)||!!a(n)&&e.call.apply(e,[function(e){return m(e,t)}].concat(v(o(e,n))))}function g(e,t,n){return d(e,t,n,"body")}function D(e,t,n){return d(e,t,n,"consequent")}var b=function(e){var t=e.type;return"ClassProperty"===t||"PropertyDefinition"===t||"ClassPrivateProperty"===t||"ClassAccessorProperty"===t};function E(e,t){var n=e.key&&e.key.name;if(("static"===n||"get"===n||"set"===n)&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility)return!1;if(!t.computed){var r=t.key&&t.key.name;if("in"===r||"instanceof"===r)return!0}if(b(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;var i=t.value?t.value.generator:t.generator;return!(!t.computed&&!i);case"TSIndexSignature":return!0}return!1}t.exports={printBody:g,printSwitchCaseConsequent:D}}}),Br=q({"src/language-js/print/block.js":function(e,t){W();var n=hn().printDanglingComments,r=Le().isNonEmptyArray,i=de().builders,o=i.hardline,a=i.indent,u=kn(),s=u.hasComment,l=u.CommentCheckFlags,c=u.isNextLineEmpty,p=Fr().printHardlineAfterHeritage,f=Pr().printBody;function d(e,t,n){var i=e.getValue(),u=[];if("StaticBlock"===i.type&&u.push("static "),"ClassBody"===i.type&&r(i.body)){var s=e.getParentNode();u.push(p(s))}u.push("{");var l=h(e,t,n);if(l)u.push(a([o,l]),o);else{var c=e.getParentNode(),f=e.getParentNode(1);"ArrowFunctionExpression"===c.type||"FunctionExpression"===c.type||"FunctionDeclaration"===c.type||"ObjectMethod"===c.type||"ClassMethod"===c.type||"ClassPrivateMethod"===c.type||"ForStatement"===c.type||"WhileStatement"===c.type||"DoWhileStatement"===c.type||"DoExpression"===c.type||"CatchClause"===c.type&&!f.finalizer||"TSModuleDeclaration"===c.type||"TSDeclareFunction"===c.type||"StaticBlock"===i.type||"ClassBody"===i.type||u.push(o)}return u.push("}"),u}function h(e,t,i){var a=e.getValue(),u=r(a.directives),p=a.body.some((function(e){return"EmptyStatement"!==e.type})),d=s(a,l.Dangling);if(!u&&!p&&!d)return"";var h=[];if(u&&e.each((function(e,n,r){h.push(i()),(n<r.length-1||p||d)&&(h.push(o),c(e.getValue(),t)&&h.push(o))}),"directives"),p&&h.push(f(e,t,i)),d&&h.push(n(e,t,!0)),"Program"===a.type){var y=e.getParentNode();(!y||"ModuleExpression"!==y.type)&&h.push(o)}return h}t.exports={printBlock:d,printBlockBody:h}}}),Ir=q({"src/language-js/print/typescript.js":function(e,t){W();var n=hn().printDanglingComments,r=Le().hasNewlineInRange,i=de().builders,o=i.join,a=i.line,u=i.hardline,s=i.softline,l=i.group,c=i.indent,p=i.conditionalGroup,f=i.ifBreak,d=kn(),h=d.isLiteral,y=d.getTypeScriptMappedTypeModifier,m=d.shouldPrintComma,v=d.isCallExpression,g=d.isMemberExpression,D=Nr(),b=an(),E=b.locStart,x=b.locEnd,C=hr(),A=C.printOptionalToken,w=C.printTypeScriptModifiers,S=jr().printTernary,F=Er(),k=F.printFunctionParameters,_=F.shouldGroupFunctionParameters,T=_n().printTemplateLiteral,O=yr().printArrayItems,N=Tr().printObject,j=Fr(),P=j.printClassProperty,B=j.printClassMethod,I=Cr(),L=I.printTypeParameter,M=I.printTypeParameters,R=Ar().printPropertyKey,q=wr(),V=q.printFunction,U=q.printMethodInternal,z=kr().printInterface,H=Br().printBlock,$=xr(),G=$.printTypeAlias,K=$.printIntersectionType,J=$.printUnionType,X=$.printFunctionType,Y=$.printTupleType,Q=$.printIndexedAccessType,Z=$.printJSDocType;function ee(e,t,i){var d=e.getValue();if(d.type.startsWith("TS")){if(D(d))return d.type.slice(2,-7).toLowerCase();var b=t.semi?";":"",C=[];switch(d.type){case"TSThisType":return"this";case"TSTypeAssertion":var F=!("ArrayExpression"===d.expression.type||"ObjectExpression"===d.expression.type),j=l(["<",c([s,i("typeAnnotation")]),s,">"]),I=[f("("),c([s,i("expression")]),s,f(")")];return F?p([[j,i("expression")],[j,l(I,{shouldBreak:!0})],[j,i("expression")]]):l([j,i("expression")]);case"TSDeclareFunction":return V(e,i,t);case"TSExportAssignment":return["export = ",i("expression"),b];case"TSModuleBlock":return H(e,t,i);case"TSInterfaceBody":case"TSTypeLiteral":return N(e,t,i);case"TSTypeAliasDeclaration":return G(e,t,i);case"TSQualifiedName":return o(".",[i("left"),i("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return B(e,t,i);case"TSAbstractPropertyDefinition":return P(e,t,i);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return C.push(i("expression")),d.typeParameters&&C.push(i("typeParameters")),C;case"TSTemplateLiteralType":return T(e,i,t);case"TSNamedTupleMember":return[i("label"),d.optional?"?":"",": ",i("elementType")];case"TSRestType":return["...",i("typeAnnotation")];case"TSOptionalType":return[i("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return z(e,t,i);case"TSClassImplements":case"TSInstantiationExpression":return[i("expression"),i("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return M(e,t,i,"params");case"TSTypeParameter":return L(e,t,i);case"TSAsExpression":C.push(i("expression")," as ",i("typeAnnotation"));var q=e.getParentNode();return v(q)&&q.callee===d||g(q)&&q.object===d?l([c([s].concat(C)),s]):C;case"TSArrayType":return[i("elementType"),"[]"];case"TSPropertySignature":return d.readonly&&C.push("readonly "),C.push(R(e,t,i),A(e)),d.typeAnnotation&&C.push(": ",i("typeAnnotation")),d.initializer&&C.push(" = ",i("initializer")),C;case"TSParameterProperty":return d.accessibility&&C.push(d.accessibility+" "),d.export&&C.push("export "),d.static&&C.push("static "),d.override&&C.push("override "),d.readonly&&C.push("readonly "),C.push(i("parameter")),C;case"TSTypeQuery":return["typeof ",i("exprName"),i("typeParameters")];case"TSIndexSignature":var W=e.getParentNode(),$=d.parameters.length>1?f(m(t)?",":""):"",ee=l([c([s,o([", ",s],e.map(i,"parameters"))]),$,s]);return[d.export?"export ":"",d.accessibility?[d.accessibility," "]:"",d.static?"static ":"",d.readonly?"readonly ":"",d.declare?"declare ":"","[",d.parameters?ee:"",d.typeAnnotation?"]: ":"]",d.typeAnnotation?i("typeAnnotation"):"","ClassBody"===W.type?b:""];case"TSTypePredicate":return[d.asserts?"asserts ":"",i("parameterName"),d.typeAnnotation?[" is ",i("typeAnnotation")]:""];case"TSNonNullExpression":return[i("expression"),"!"];case"TSImportType":return[d.isTypeOf?"typeof ":"","import(",i(d.parameter?"parameter":"argument"),")",d.qualifier?[".",i("qualifier")]:"",M(e,t,i,"typeParameters")];case"TSLiteralType":return i("literal");case"TSIndexedAccessType":return Q(e,t,i);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSConstructorType"===d.type&&d.abstract&&C.push("abstract "),"TSCallSignatureDeclaration"!==d.type&&C.push("new "),C.push(l(k(e,i,t,!1,!0))),d.returnType||d.typeAnnotation){var te="TSConstructorType"===d.type;C.push(te?" => ":": ",i("returnType"),i("typeAnnotation"))}return C;case"TSTypeOperator":return[d.operator," ",i("typeAnnotation")];case"TSMappedType":var ne=r(t.originalText,E(d),x(d));return l(["{",c([t.bracketSpacing?a:s,d.readonly?[y(d.readonly,"readonly")," "]:"",w(e,t,i),i("typeParameter"),d.optional?y(d.optional,"?"):"",d.typeAnnotation?": ":"",i("typeAnnotation"),f(b)]),n(e,t,!0),t.bracketSpacing?a:s,"}"],{shouldBreak:ne});case"TSMethodSignature":var re=d.kind&&"method"!==d.kind?"".concat(d.kind," "):"";C.push(d.accessibility?[d.accessibility," "]:"",re,d.export?"export ":"",d.static?"static ":"",d.readonly?"readonly ":"",d.abstract?"abstract ":"",d.declare?"declare ":"",d.computed?"[":"",i("key"),d.computed?"]":"",A(e));var ie=k(e,i,t,!1,!0),oe=d.returnType?"returnType":"typeAnnotation",ae=d[oe],ue=ae?i(oe):"",se=_(d,ue);return C.push(se?l(ie):ie),ae&&C.push(": ",l(ue)),l(C);case"TSNamespaceExportDeclaration":return C.push("export as namespace ",i("id")),t.semi&&C.push(";"),l(C);case"TSEnumDeclaration":return d.declare&&C.push("declare "),d.modifiers&&C.push(w(e,t,i)),d.const&&C.push("const "),C.push("enum ",i("id")," "),0===d.members.length?C.push(l(["{",n(e,t),s,"}"])):C.push(l(["{",c([u,O(e,t,"members",i),m(t,"es5")?",":""]),n(e,t,!0),u,"}"])),C;case"TSEnumMember":return d.computed?C.push("[",i("id"),"]"):C.push(i("id")),d.initializer&&C.push(" = ",i("initializer")),C;case"TSImportEqualsDeclaration":return d.isExport&&C.push("export "),C.push("import "),d.importKind&&"value"!==d.importKind&&C.push(d.importKind," "),C.push(i("id")," = ",i("moduleReference")),t.semi&&C.push(";"),l(C);case"TSExternalModuleReference":return["require(",i("expression"),")"];case"TSModuleDeclaration":var le=e.getParentNode(),ce=h(d.id),pe="TSModuleDeclaration"===le.type,fe=d.body&&"TSModuleDeclaration"===d.body.type;if(pe)C.push(".");else{d.declare&&C.push("declare "),C.push(w(e,t,i));var de=t.originalText.slice(E(d),E(d.id));"Identifier"===d.id.type&&"global"===d.id.name&&!/namespace|module/.test(de)||C.push(ce||/(?:^|\s)module(?:\s|$)/.test(de)?"module ":"namespace ")}return C.push(i("id")),fe?C.push(i("body")):d.body?C.push(" ",l(i("body"))):C.push(b),C;case"TSConditionalType":return S(e,t,i);case"TSInferType":return["infer"," ",i("typeParameter")];case"TSIntersectionType":return K(e,t,i);case"TSUnionType":return J(e,t,i);case"TSFunctionType":return X(e,t,i);case"TSTupleType":return Y(e,t,i);case"TSTypeReference":return[i("typeName"),M(e,t,i,"typeParameters")];case"TSTypeAnnotation":return i("typeAnnotation");case"TSEmptyBodyFunctionExpression":return U(e,t,i);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Z(e,i,"?");case"TSJSDocNonNullableType":return Z(e,i,"!");default:throw new Error("Unknown TypeScript node type: ".concat(JSON.stringify(d.type),"."))}}}t.exports={printTypescript:ee}}}),Lr=q({"src/language-js/print/comment.js":function(e,t){W();var n=Le().hasNewline,r=de(),i=r.builders,o=i.join,a=i.hardline,u=r.utils.replaceTextEndOfLine,s=kn().isLineComment,l=an(),c=l.locStart,p=l.locEnd,f=Sn();function d(e,t){var r=e.getValue();if(s(r))return t.originalText.slice(c(r),p(r)).trimEnd();if(f(r)){if(h(r)){var i=y(r);return r.trailing&&!n(t.originalText,c(r),{backwards:!0})?[a,i]:i}var o=p(r),l="*-/"===t.originalText.slice(o-3,o);return["/*",u(r.value),l?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(r))}function h(e){var t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((function(e){return"*"===e.trim()[0]}))}function y(e){var t=e.value.split("\n");return["/*",o(a,t.map((function(e,n){return 0===n?e.trimEnd():" "+(n<t.length-1?e.trim():e.trimStart())}))),"*/"]}t.exports={printComment:d}}}),Mr=q({"src/language-js/print/literal.js":function(e,t){W();var n=Le(),r=n.printString,i=n.printNumber;function o(e,t){var n=e.getNode();switch(n.type){case"RegExpLiteral":return u(n);case"BigIntLiteral":return a(n.bigint||n.extra.raw);case"NumericLiteral":return i(n.extra.raw);case"StringLiteral":return r(n.extra.raw,t);case"NullLiteral":return"null";case"BooleanLiteral":return String(n.value);case"DecimalLiteral":return i(n.value)+"m";case"Literal":if(n.regex)return u(n.regex);if(n.bigint)return a(n.raw);if(n.decimal)return i(n.decimal)+"m";var o=n.value;return"number"==typeof o?i(n.raw):"string"==typeof o?r(n.raw,t):String(o)}}function a(e){return e.toLowerCase()}function u(e){var t=e.pattern,n=e.flags;return n=v(n).sort().join(""),"/".concat(t,"/").concat(n)}t.exports={printLiteral:o}}}),Rr=q({"src/language-js/printer-estree.js":function(e,t){W();var n=hn().printDanglingComments,r=Le().hasNewline,i=de(),o=i.builders,a=o.join,u=o.line,s=o.hardline,l=o.softline,c=o.group,p=o.indent,f=i.utils.replaceTextEndOfLine,d=Pn(),h=Bn(),m=ar().insertPragma,g=ur(),D=sr(),b=lr(),E=kn(),x=E.hasFlowShorthandAnnotationComment,C=E.hasComment,A=E.CommentCheckFlags,w=E.isTheOnlyJsxElementInMarkdown,S=E.isLineComment,F=E.isNextLineEmpty,k=E.needsHardlineAfterDanglingComment,_=E.rawText,T=E.hasIgnoreComment,O=E.isCallExpression,N=E.isMemberExpression,j=E.markerForIfWithoutBlockAndSameLineComment,P=an(),B=P.locStart,I=P.locEnd,L=Sn(),M=cr(),R=M.printHtmlBinding,q=M.isVueEventBindingExpression,V=fr().printAngular,U=dr(),z=U.printJsx,H=U.hasJsxIgnoreComment,$=Or().printFlow,G=Ir().printTypescript,K=hr(),J=K.printOptionalToken,X=K.printBindExpressionCallee,Y=K.printTypeAnnotation,Q=K.adjustClause,Z=K.printRestSpread,ee=K.printDefiniteToken,te=_r(),ne=te.printImportDeclaration,re=te.printExportDeclaration,ie=te.printExportAllDeclaration,oe=te.printModuleSpecifier,ae=jr().printTernary,ue=_n().printTemplateLiteral,se=yr().printArray,le=Tr().printObject,ce=Fr(),pe=ce.printClass,fe=ce.printClassMethod,he=ce.printClassProperty,ye=Ar().printProperty,me=wr(),ve=me.printFunction,ge=me.printArrowFunction,De=me.printMethod,be=me.printReturnStatement,Ee=me.printThrowStatement,xe=Dr().printCallExpression,Ce=br(),Ae=Ce.printVariableDeclarator,we=Ce.printAssignmentExpression,Se=pr().printBinaryishExpression,Fe=Pr().printSwitchCaseConsequent,ke=vr().printMemberExpression,_e=Br(),Te=_e.printBlock,Oe=_e.printBlockBody,Ne=Lr().printComment,je=Mr().printLiteral,Pe=Sr().printDecorators;function Be(e,t,n,r){var i=Ie(e,t,n,r);if(!i)return"";var o=e.getValue(),a=o.type;if("ClassMethod"===a||"ClassPrivateMethod"===a||"ClassProperty"===a||"ClassAccessorProperty"===a||"PropertyDefinition"===a||"TSAbstractPropertyDefinition"===a||"ClassPrivateProperty"===a||"MethodDefinition"===a||"TSAbstractMethodDefinition"===a||"TSDeclareMethod"===a)return i;var s=[i],l=Pe(e,t,n),f="ClassExpression"===o.type&&l;if(l&&(s=[].concat(v(l),[i]),!f))return c(s);if(!D(e,t))return r&&r.needsSemi&&s.unshift(";"),1===s.length&&s[0]===i?i:s;if(f&&(s=[p([u].concat(v(s)))]),s.unshift("("),r&&r.needsSemi&&s.unshift(";"),x(o)){var d=y(o.trailingComments,1)[0];s.push(" /*",d.value.trimStart(),"*/"),d.printed=!0}return f&&s.push(u),s.push(")"),s}function Ie(e,t,i,o){var d=e.getValue(),h=t.semi?";":"";if(!d)return"";if("string"==typeof d)return d;for(var y=0,m=[je,R,V,z,$,G];y<m.length;y++){var g=(0,m[y])(e,t,i);if(typeof g<"u")return g}var D=[];switch(d.type){case"JsExpressionRoot":return i("node");case"JsonRoot":return[i("node"),s];case"File":return d.program&&d.program.interpreter&&D.push(i(["program","interpreter"])),D.push(i("program")),D;case"Program":return Oe(e,t,i);case"EmptyStatement":return"";case"ExpressionStatement":if(d.directive)return[Me(d.expression,t),h];if("__vue_event_binding"===t.parser||"__vue_ts_event_binding"===t.parser){var b=e.getParentNode();if("Program"===b.type&&1===b.body.length&&b.body[0]===d)return[i("expression"),q(d.expression)?";":""]}var E=n(e,t,!0,(function(e){return e.marker===j}));return[i("expression"),w(t,e)?"":h,E?[" ",E]:""];case"ParenthesizedExpression":return C(d.expression)||"ObjectExpression"!==d.expression.type&&"ArrayExpression"!==d.expression.type?c(["(",p([l,i("expression")]),l,")"]):["(",i("expression"),")"];case"AssignmentExpression":return we(e,t,i);case"VariableDeclarator":return Ae(e,t,i);case"BinaryExpression":case"LogicalExpression":return Se(e,t,i);case"AssignmentPattern":return[i("left")," = ",i("right")];case"OptionalMemberExpression":case"MemberExpression":return ke(e,t,i);case"MetaProperty":return[i("meta"),".",i("property")];case"BindExpression":return d.object&&D.push(i("object")),D.push(c(p([l,X(e,t,i)]))),D;case"Identifier":return[d.name,J(e),ee(e),Y(e,t,i)];case"V8IntrinsicIdentifier":return["%",d.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return Z(e,t,i);case"FunctionDeclaration":case"FunctionExpression":return ve(e,i,t,o);case"ArrowFunctionExpression":return ge(e,t,i,o);case"YieldExpression":return D.push("yield"),d.delegate&&D.push("*"),d.argument&&D.push(" ",i("argument")),D;case"AwaitExpression":if(D.push("await"),d.argument){D.push(" ",i("argument"));var x=e.getParentNode();if(O(x)&&x.callee===d||N(x)&&x.object===d){D=[p([l].concat(v(D))),l];var S=e.findAncestor((function(e){return"AwaitExpression"===e.type||"BlockStatement"===e.type}));if(!S||"AwaitExpression"!==S.type)return c(D)}}return D;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return re(e,t,i);case"ExportAllDeclaration":return ie(e,t,i);case"ImportDeclaration":return ne(e,t,i);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return oe(e,t,i);case"ImportAttribute":return[i("key"),": ",i("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return Te(e,t,i);case"ThrowStatement":return Ee(e,t,i);case"ReturnStatement":return be(e,t,i);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return xe(e,t,i);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return le(e,t,i);case"ObjectProperty":case"Property":return d.method||"get"===d.kind||"set"===d.kind?De(e,t,i):ye(e,t,i);case"ObjectMethod":return De(e,t,i);case"Decorator":return["@",i("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return se(e,t,i);case"SequenceExpression":var _=e.getParentNode(0);if("ExpressionStatement"===_.type||"ForStatement"===_.type){var T=[];return e.each((function(e,t){0===t?T.push(i()):T.push(",",p([u,i()]))}),"expressions"),c(T)}return c(a([",",u],e.map(i,"expressions")));case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[i("value"),h];case"DirectiveLiteral":return Me(d,t);case"UnaryExpression":return D.push(d.operator),/[a-z]$/.test(d.operator)&&D.push(" "),C(d.argument)?D.push(c(["(",p([l,i("argument")]),l,")"])):D.push(i("argument")),D;case"UpdateExpression":return D.push(i("argument"),d.operator),d.prefix&&D.reverse(),D;case"ConditionalExpression":return ae(e,t,i);case"VariableDeclaration":var P,M=e.map(i,"declarations"),U=e.getParentNode(),H="ForStatement"===U.type||"ForInStatement"===U.type||"ForOfStatement"===U.type,W=d.declarations.some((function(e){return e.init}));return 1!==M.length||C(d.declarations[0])?M.length>0&&(P=p(M[0])):P=M[0],D=[d.declare?"declare ":"",d.kind,P?[" ",P]:"",p(M.slice(1).map((function(e){return[",",W&&!H?s:u,e]})))],H&&U.body!==d||D.push(h),c(D);case"WithStatement":return c(["with (",i("object"),")",Q(d.body,i("body"))]);case"IfStatement":var K=Q(d.consequent,i("consequent")),te=c(["if (",c([p([l,i("test")]),l]),")",K]);if(D.push(te),d.alternate){var ce=C(d.consequent,A.Trailing|A.Line)||k(d),de="BlockStatement"===d.consequent.type&&!ce;D.push(de?" ":s),C(d,A.Dangling)&&D.push(n(e,t,!0),ce?s:" "),D.push("else",c(Q(d.alternate,i("alternate"),"IfStatement"===d.alternate.type)))}return D;case"ForStatement":var me=Q(d.body,i("body")),Ce=n(e,t,!0),_e=Ce?[Ce,l]:"";return d.init||d.test||d.update?[_e,c(["for (",c([p([l,i("init"),";",u,i("test"),";",u,i("update")]),l]),")",me])]:[_e,c(["for (;;)",me])];case"WhileStatement":return c(["while (",c([p([l,i("test")]),l]),")",Q(d.body,i("body"))]);case"ForInStatement":return c(["for (",i("left")," in ",i("right"),")",Q(d.body,i("body"))]);case"ForOfStatement":return c(["for",d.await?" await":""," (",i("left")," of ",i("right"),")",Q(d.body,i("body"))]);case"DoWhileStatement":var Ne=Q(d.body,i("body"));return D=[c(["do",Ne])],"BlockStatement"===d.body.type?D.push(" "):D.push(s),D.push("while (",c([p([l,i("test")]),l]),")",h),D;case"DoExpression":return[d.async?"async ":"","do ",i("body")];case"BreakStatement":return D.push("break"),d.label&&D.push(" ",i("label")),D.push(h),D;case"ContinueStatement":return D.push("continue"),d.label&&D.push(" ",i("label")),D.push(h),D;case"LabeledStatement":return"EmptyStatement"===d.body.type?[i("label"),":;"]:[i("label"),": ",i("body")];case"TryStatement":return["try ",i("block"),d.handler?[" ",i("handler")]:"",d.finalizer?[" finally ",i("finalizer")]:""];case"CatchClause":if(d.param){var Pe=C(d.param,(function(e){return!L(e)||e.leading&&r(t.originalText,I(e))||e.trailing&&r(t.originalText,B(e),{backwards:!0})})),Be=i("param");return["catch ",Pe?["(",p([l,Be]),l,") "]:["(",Be,") "],i("body")]}return["catch ",i("body")];case"SwitchStatement":return[c(["switch (",p([l,i("discriminant")]),l,")"])," {",d.cases.length>0?p([s,a(s,e.map((function(e,n,r){var o=e.getValue();return[i(),n!==r.length-1&&F(o,t)?s:""]}),"cases"))]):"",s,"}"];case"SwitchCase":d.test?D.push("case ",i("test"),":"):D.push("default:"),C(d,A.Dangling)&&D.push(" ",n(e,t,!0));var Ie=d.consequent.filter((function(e){return"EmptyStatement"!==e.type}));if(Ie.length>0){var Le=Fe(e,t,i);D.push(1===Ie.length&&"BlockStatement"===Ie[0].type?[" ",Le]:p([s,Le]))}return D;case"DebuggerStatement":return["debugger",h];case"ClassDeclaration":case"ClassExpression":return pe(e,t,i);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return fe(e,t,i);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":return he(e,t,i);case"TemplateElement":return f(d.value.raw);case"TemplateLiteral":return ue(e,i,t);case"TaggedTemplateExpression":return[i("tag"),i("typeParameters"),i("quasi")];case"PrivateIdentifier":return["#",i("name")];case"PrivateName":return["#",i("id")];case"InterpreterDirective":return D.push("#!",d.value,s),F(d,t)&&D.push(s),D;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":D.push("module {");var Re=i("body");return Re&&D.push(p([s,Re]),s),D.push("}"),D;default:throw new Error("unknown type: "+JSON.stringify(d.type))}}function Me(e,t){var n=_(e),r=n.slice(1,-1);if(r.includes('"')||r.includes("'"))return n;var i=t.singleQuote?"'":'"';return i+r+i}function Re(e){return e.type&&!L(e)&&!S(e)&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&"TSEmptyBodyFunctionExpression"!==e.type}t.exports={preprocess:b,print:Be,embed:d,insertPragma:m,massageAstNode:h,hasPrettierIgnore:function(e){return T(e)||H(e)},willPrintOwnComments:g.willPrintOwnComments,canAttachComment:Re,printComment:Ne,isBlockComment:L,handleComments:{avoidAstMutation:!0,ownLine:g.handleOwnLineComment,endOfLine:g.handleEndOfLineComment,remaining:g.handleRemainingComment},getCommentChildNodes:g.getCommentChildNodes}}}),qr=q({"src/language-js/printer-estree-json.js":function(e,t){W();var n=de().builders,r=n.hardline,i=n.indent,o=n.join,a=lr();function u(e,t,n){var a=e.getValue();switch(a.type){case"JsonRoot":return[n("node"),r];case"ArrayExpression":if(0===a.elements.length)return"[]";var u=e.map((function(){return null===e.getValue()?"null":n()}),"elements");return["[",i([r,o([",",r],u)]),r,"]"];case"ObjectExpression":return 0===a.properties.length?"{}":["{",i([r,o([",",r],e.map(n,"properties"))]),r,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return["+"===a.operator?"":a.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return a.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(a.value);case"Identifier":var s=e.getParentNode();return s&&"ObjectProperty"===s.type&&s.key===a?JSON.stringify(a.name):a.name;case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(a.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(a.type))}}var s=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function l(e,t){var n=e.type;if("ObjectProperty"!==n||"Identifier"!==e.key.type){if("UnaryExpression"===n&&"+"===e.operator)return t.argument;if("ArrayExpression"!==n)return"TemplateLiteral"===n?{type:"StringLiteral",value:e.quasis[0].value.cooked}:void 0;var r,i=g(e.elements.entries());try{for(i.s();!(r=i.n()).done;){var o=y(r.value,2),a=o[0];null===o[1]&&t.elements.splice(a,0,{type:"NullLiteral"})}}catch(u){i.e(u)}finally{i.f()}}else t.key={type:"StringLiteral",value:e.key.name}}l.ignoredProperties=s,t.exports={preprocess:a,print:u,massageAstNode:l}}}),Vr=q({"src/common/common-options.js":function(e,t){W();var n="Common";t.exports={bracketSpacing:{since:"0.0.0",category:n,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:n,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:n,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:n,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:n,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),Ur=q({"src/language-js/options.js":function(e,t){W();var n=Vr(),r="JavaScript";t.exports={arrowParens:{since:"1.9.0",category:r,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:n.bracketSameLine,bracketSpacing:n.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:r,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:r,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:n.singleQuote,jsxSingleQuote:{since:"1.15.0",category:r,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:r,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:r,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]},singleAttributePerLine:n.singleAttributePerLine}}}),zr=q({"src/language-js/parse/parsers.js":function(){W()}}),Hr=q({"node_modules/linguist-languages/data/JavaScript.json":function(e,t){t.exports={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183}}}),Wr=q({"node_modules/linguist-languages/data/TypeScript.json":function(e,t){t.exports={name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}}),$r=q({"node_modules/linguist-languages/data/TSX.json":function(e,t){t.exports={name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}}),Gr=q({"node_modules/linguist-languages/data/JSON.json":function(e,t){t.exports={name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174}}}),Kr=q({"node_modules/linguist-languages/data/JSON with Comments.json":function(e,t){t.exports={name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423}}}),Jr=q({"node_modules/linguist-languages/data/JSON5.json":function(e,t){t.exports={name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}}),Xr=q({"src/language-js/index.js":function(e,t){W();var n=En(),r=Rr(),i=qr(),o=Ur(),a=zr(),u=[n(Hr(),(function(e){return{since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[].concat(v(e.interpreters),["zx"]),extensions:[].concat(v(e.extensions.filter((function(e){return".jsx"!==e}))),[".wxs"])}})),n(Hr(),(function(){return{name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}})),n(Hr(),(function(){return{name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0}})),n(Wr(),(function(){return{since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}})),n($r(),(function(){return{since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}})),n(Gr(),(function(){return{name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]}})),n(Gr(),(function(e){return{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:e.extensions.filter((function(e){return".jsonl"!==e}))}})),n(Kr(),(function(e){return{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[].concat(v(e.filenames),[".eslintrc",".swcrc"])}})),n(Jr(),(function(){return{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}}))],s={estree:r,"estree-json":i};t.exports={languages:u,options:o,printers:s,parsers:a}}}),Yr=q({"src/language-css/clean.js":function(e,t){W();var n=Le().isFrontMatterNode,r=Y(),i=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function o(e,t,i){if(n(e)&&"yaml"===e.lang&&delete t.value,"css-comment"===e.type&&"css-root"===i.type&&i.nodes.length>0&&((i.nodes[0]===e||n(i.nodes[0])&&i.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||"css-root"===i.type&&r(i.nodes)===e))return null;if("value-root"===e.type&&delete t.text,("media-query"===e.type||"media-query-list"===e.type||"media-feature-expression"===e.type)&&delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),("css-atrule"===e.type||"css-import"===e.type)&&(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),("media-feature"===e.type||"media-keyword"===e.type||"media-type"===e.type||"media-unknown"===e.type||"media-url"===e.type||"media-value"===e.type||"selector-attribute"===e.type||"selector-string"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"value-string"===e.type)&&t.value&&(t.value=a(t.value)),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),("media-value"===e.type||"media-type"===e.type||"value-number"===e.type||"selector-root-invalid"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"selector-tag"===e.type)&&t.value&&(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(function(e,t,n){var r=Number(t);return Number.isNaN(r)?e:r+n.toLowerCase()}))),"selector-tag"===e.type){var o=e.value.toLowerCase();["from","to"].includes(o)&&(t.value=o)}if("css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value,"value-comma_group"===e.type){var u=e.groups.findIndex((function(e){return"value-number"===e.type&&"..."===e.unit}));-1!==u&&(t.groups[u].unit="",t.groups.splice(u+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}}function a(e){return e.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}o.ignoredProperties=i,t.exports=o}}),Qr=q({"src/utils/front-matter/print.js":function(e,t){W();var n=de().builders,r=n.hardline,i=n.markAsRoot;function o(e,t){if("yaml"===e.lang){var n=e.value.trim(),o=n?t(n,{parser:"yaml"},{stripTrailingHardline:!0}):"";return i([e.startDelimiter,r,o,o?r:"",e.endDelimiter])}}t.exports=o}}),Zr=q({"src/language-css/embed.js":function(e,t){W();var n=de().builders.hardline,r=Qr();function i(e,t,i){var o=e.getValue();if("front-matter"===o.type){var a=r(o,i);return a?[a,n]:""}}t.exports=i}}),ei=q({"src/utils/front-matter/parse.js":function(e,t){W();var n=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function r(e){var t=e.match(n);if(!t)return{content:e};var r=t.groups,i=r.startDelimiter,o=r.language,a=r.value,u=void 0===a?"":a,s=r.endDelimiter,l=o.trim()||"yaml";if("+++"===i&&(l="toml"),"yaml"!==l&&i!==s)return{content:e};var c=y(t,1)[0];return{frontMatter:{type:"front-matter",lang:l,value:u,startDelimiter:i,endDelimiter:s,raw:c.replace(/\n$/,"")},content:c.replace(/[^\n]/g," ")+e.slice(c.length)}}t.exports=r}}),ti=q({"src/language-css/pragma.js":function(e,t){W();var n=ar(),r=ei();function i(e){return n.hasPragma(r(e).content)}function o(e){var t=r(e),i=t.frontMatter,o=t.content;return(i?i.raw+"\n\n":"")+n.insertPragma(o)}t.exports={hasPragma:i,insertPragma:o}}}),ni=q({"src/language-css/utils/index.js":function(e,t){W();var n=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function r(e,t){for(var n,r=Array.isArray(t)?t:[t],i=-1;n=e.getParentNode(++i);)if(r.includes(n.type))return i;return-1}function i(e,t){var n=r(e,t);return-1===n?null:e.getParentNode(n)}function o(e){var t,n=i(e,"css-decl");return null==n||null===(t=n.prop)||void 0===t?void 0:t.toLowerCase()}var a=new Set(["initial","inherit","unset","revert"]);function u(e){return a.has(e.toLowerCase())}function s(e,t){var n=i(e,"css-atrule");return(null==n?void 0:n.name)&&n.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())}function l(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function c(e,t){var n,r=i(e,"value-func");return(null==r||null===(n=r.value)||void 0===n?void 0:n.toLowerCase())===t}function p(e){var t,n=i(e,"css-rule"),r=null==n||null===(t=n.raws)||void 0===t?void 0:t.selector;return r&&(r.startsWith(":import")||r.startsWith(":export"))}function f(e,t){var n=Array.isArray(t)?t:[t],r=i(e,"css-atrule");return r&&n.includes(r.name.toLowerCase())}function d(e){var t=e.getValue(),n=i(e,"css-atrule");return"import"===(null==n?void 0:n.name)&&"url"===t.groups[0].value&&2===t.groups.length}function h(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()}function y(e,t){var n,r=null===(n=e.getParentNode())||void 0===n?void 0:n.nodes;return r&&r.indexOf(t)===r.length-1}function m(e){var t=e.selector;return!!t&&("string"==typeof t&&/^@.+:.*$/.test(t)||t.value&&/^@.+:.*$/.test(t.value))}function v(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)}function g(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)}function D(e){return"value-word"===e.type&&"in"===e.value}function b(e){return"value-operator"===e.type&&"*"===e.value}function E(e){return"value-operator"===e.type&&"/"===e.value}function x(e){return"value-operator"===e.type&&"+"===e.value}function C(e){return"value-operator"===e.type&&"-"===e.value}function A(e){return"value-operator"===e.type&&"%"===e.value}function w(e){return b(e)||E(e)||x(e)||C(e)||A(e)}function S(e){return"value-word"===e.type&&["==","!="].includes(e.value)}function F(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)}function k(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)}function _(e){var t;return(null===(t=e.raws)||void 0===t?void 0:t.params)&&/^\(\s*\)$/.test(e.raws.params)}function T(e){return e.name.startsWith("prettier-placeholder")}function O(e){return e.prop.startsWith("@prettier-placeholder")}function N(e,t){return"$$"===e.value&&"value-func"===e.type&&"value-word"===(null==t?void 0:t.type)&&!t.raws.before}function j(e){var t,n;return"value-root"===(null===(t=e.value)||void 0===t?void 0:t.type)&&"value-value"===(null===(n=e.value.group)||void 0===n?void 0:n.type)&&"composes"===e.prop.toLowerCase()}function P(e){var t,n,r;return"value-paren_group"===(null===(t=e.value)||void 0===t||null===(n=t.group)||void 0===n||null===(r=n.group)||void 0===r?void 0:r.type)&&null!==e.value.group.group.open&&null!==e.value.group.group.close}function B(e){var t;return""===(null===(t=e.raws)||void 0===t?void 0:t.before)}function I(e){var t,n;return"value-comma_group"===e.type&&"value-colon"===(null===(t=e.groups)||void 0===t||null===(n=t[1])||void 0===n?void 0:n.type)}function L(e){var t;return"value-paren_group"===e.type&&(null===(t=e.groups)||void 0===t?void 0:t[0])&&I(e.groups[0])}function M(e){var t,n=e.getValue();if(0===n.groups.length)return!1;var r=e.getParentNode(1);if(!L(n)&&(!r||!L(r)))return!1;var o=i(e,"css-decl");return!!(null!=o&&null!==(t=o.prop)&&void 0!==t&&t.startsWith("$")||L(r)||"value-func"===r.type)}function R(e){return"value-comment"===e.type&&e.inline}function q(e){return"value-word"===e.type&&"#"===e.value}function V(e){return"value-word"===e.type&&"{"===e.value}function U(e){return"value-word"===e.type&&"}"===e.value}function z(e){return["value-word","value-atword"].includes(e.type)}function H(e){return"value-colon"===(null==e?void 0:e.type)}function $(e,t){if(!I(t))return!1;var n=t.groups,r=n.indexOf(e);return-1!==r&&H(n[r+1])}function G(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function K(e){return"value-func"===e.type&&n.has(e.value.toLowerCase())}function J(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function X(e){return"value-atword"===(null==e?void 0:e.type)&&e.value.startsWith("prettier-placeholder-")}function Y(e,t){var n,r;if("("!==(null===(n=e.open)||void 0===n?void 0:n.value)||")"!==(null===(r=e.close)||void 0===r?void 0:r.value)||e.groups.some((function(e){return"value-comma_group"!==e.type})))return!1;if("value-comma_group"===t.type){var i=t.groups.indexOf(e)-1,o=t.groups[i];if("value-word"===(null==o?void 0:o.type)&&"with"===o.value)return!0}return!1}function Q(e){var t,n;return"value-paren_group"===e.type&&"("===(null===(t=e.open)||void 0===t?void 0:t.value)&&")"===(null===(n=e.close)||void 0===n?void 0:n.value)}t.exports={getAncestorCounter:r,getAncestorNode:i,getPropOfDeclNode:o,maybeToLowerCase:l,insideValueFunctionNode:c,insideICSSRuleNode:p,insideAtRuleNode:f,insideURLFunctionInImportAtRuleNode:d,isKeyframeAtRuleKeywords:s,isWideKeywords:u,isLastNode:y,isSCSSControlDirectiveNode:k,isDetachedRulesetDeclarationNode:m,isRelationalOperatorNode:F,isEqualityOperatorNode:S,isMultiplicationNode:b,isDivisionNode:E,isAdditionNode:x,isSubtractionNode:C,isModuloNode:A,isMathOperatorNode:w,isEachKeywordNode:D,isForKeywordNode:v,isURLFunctionNode:h,isIfElseKeywordNode:g,hasComposesNode:j,hasParensAroundNode:P,hasEmptyRawBefore:B,isDetachedRulesetCallNode:_,isTemplatePlaceholderNode:T,isTemplatePropNode:O,isPostcssSimpleVarNode:N,isKeyValuePairNode:I,isKeyValuePairInParenGroupNode:L,isKeyInValuePairNode:$,isSCSSMapItemNode:M,isInlineValueCommentNode:R,isHashNode:q,isLeftCurlyBraceNode:V,isRightCurlyBraceNode:U,isWordNode:z,isColonNode:H,isMediaAndSupportsKeywords:G,isColorAdjusterFuncNode:K,lastLineHasInlineComment:J,isAtWordPlaceholderNode:X,isConfigurationNode:Y,isParenGroupNode:Q}}}),ri=q({"src/utils/line-column-to-index.js":function(e,t){W(),t.exports=function(e,t){for(var n=0,r=0;r<e.line-1;++r)n=t.indexOf("\n",n)+1;return n+e.column}}}),ii=q({"src/language-css/loc.js":function(e,t){W();var n=Oe().skipEverythingButNewLine,r=Y(),i=ri();function o(e,t){return"number"==typeof e.sourceIndex?e.sourceIndex:e.source?i(e.source.start,t)-1:null}function a(e,t){if("css-comment"===e.type&&e.inline)return n(t,e.source.startOffset);var o=e.nodes&&r(e.nodes);return o&&e.source&&!e.source.end&&(e=o),e.source&&e.source.end?i(e.source.end,t):null}function u(e,t){for(var n in e.source&&(e.source.startOffset=o(e,t),e.source.endOffset=a(e,t)),e){var r=e[n];"source"===n||!r||"object"!=typeof r||("value-root"===r.type||"value-unknown"===r.type?s(r,l(e),r.text||r.value):u(r,t))}}function s(e,t,n){for(var r in e.source&&(e.source.startOffset=o(e,n)+t,e.source.endOffset=a(e,n)+t),e){var i=e[r];"source"===r||!i||"object"!=typeof i||s(i,t,n)}}function l(e){var t=e.source.startOffset;return"string"==typeof e.prop&&(t+=e.prop.length),"css-atrule"===e.type&&"string"==typeof e.name&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),"css-atrule"!==e.type&&e.raws&&"string"==typeof e.raws.between&&(t+=e.raws.between.length),t}function c(e){for(var t,n="initial",r="initial",i=!1,o=[],a=0;a<e.length;a++){var u=e[a];switch(n){case"initial":if("'"===u){n="single-quotes";continue}if('"'===u){n="double-quotes";continue}if(("u"===u||"U"===u)&&"url("===e.slice(a,a+4).toLowerCase()){n="url",a+=3;continue}if("*"===u&&"/"===e[a-1]){n="comment-block";continue}if("/"===u&&"/"===e[a-1]){n="comment-inline",t=a-1;continue}continue;case"single-quotes":if("'"===u&&"\\"!==e[a-1]&&(n=r,r="initial"),"\n"===u||"\r"===u)return e;continue;case"double-quotes":if('"'===u&&"\\"!==e[a-1]&&(n=r,r="initial"),"\n"===u||"\r"===u)return e;continue;case"url":if(")"===u&&(n="initial"),"\n"===u||"\r"===u)return e;if("'"===u){n="single-quotes",r="url";continue}if('"'===u){n="double-quotes",r="url";continue}continue;case"comment-block":"/"===u&&"*"===e[a-1]&&(n="initial");continue;case"comment-inline":('"'===u||"'"===u||"*"===u)&&(i=!0),("\n"===u||"\r"===u)&&(i&&o.push([t,a]),n="initial",i=!1);continue}}for(var s=0,l=o;s<l.length;s++){var c=y(l[s],2),p=c[0],f=c[1];e=e.slice(0,p)+e.slice(p,f).replace(/["'*]/g," ")+e.slice(f)}return e}function p(e){return e.source.startOffset}function f(e){return e.source.endOffset}t.exports={locStart:p,locEnd:f,calculateLoc:u,replaceQuotesInInlineComments:c}}}),oi=q({"src/language-css/utils/is-less-parser.js":function(e,t){function n(e){return"css"===e.parser||"less"===e.parser}W(),t.exports=n}}),ai=q({"src/language-css/utils/is-scss.js":function(e,t){function n(e,t){return"less"===e||"scss"===e?"scss"===e:/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(t)}W(),t.exports=n}}),ui=q({"src/language-css/utils/css-units.evaluate.js":function(e,t){t.exports={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"}}}),si=q({"src/language-css/utils/print-unit.js":function(e,t){W();var n=ui();function r(e){var t=e.toLowerCase();return Object.prototype.hasOwnProperty.call(n,t)?n[t]:e}t.exports=r}}),li=q({"src/language-css/printer-postcss.js":function(e,t){W();var n=Y(),r=Le(),i=r.printNumber,o=r.printString,a=r.hasNewline,u=r.isFrontMatterNode,s=r.isNextLineEmpty,l=r.isNonEmptyArray,c=de(),p=c.builders,f=p.join,d=p.line,h=p.hardline,y=p.softline,m=p.group,g=p.fill,D=p.indent,b=p.dedent,E=p.ifBreak,x=p.breakParent,C=c.utils,A=C.removeLines,w=C.getDocParts,S=Yr(),F=Zr(),k=ti().insertPragma,_=ni(),T=_.getAncestorNode,O=_.getPropOfDeclNode,N=_.maybeToLowerCase,j=_.insideValueFunctionNode,P=_.insideICSSRuleNode,B=_.insideAtRuleNode,I=_.insideURLFunctionInImportAtRuleNode,L=_.isKeyframeAtRuleKeywords,M=_.isWideKeywords,R=_.isLastNode,q=_.isSCSSControlDirectiveNode,V=_.isDetachedRulesetDeclarationNode,U=_.isRelationalOperatorNode,z=_.isEqualityOperatorNode,H=_.isMultiplicationNode,$=_.isDivisionNode,G=_.isAdditionNode,K=_.isSubtractionNode,J=_.isMathOperatorNode,X=_.isEachKeywordNode,Q=_.isForKeywordNode,Z=_.isURLFunctionNode,ee=_.isIfElseKeywordNode,te=_.hasComposesNode,ne=_.hasParensAroundNode,re=_.hasEmptyRawBefore,ie=_.isKeyValuePairNode,oe=_.isKeyInValuePairNode,ae=_.isDetachedRulesetCallNode,ue=_.isTemplatePlaceholderNode,se=_.isTemplatePropNode,le=_.isPostcssSimpleVarNode,ce=_.isSCSSMapItemNode,pe=_.isInlineValueCommentNode,fe=_.isHashNode,he=_.isLeftCurlyBraceNode,ye=_.isRightCurlyBraceNode,me=_.isWordNode,ve=_.isColonNode,ge=_.isMediaAndSupportsKeywords,De=_.isColorAdjusterFuncNode,be=_.lastLineHasInlineComment,Ee=_.isAtWordPlaceholderNode,xe=_.isConfigurationNode,Ce=_.isParenGroupNode,Ae=ii(),we=Ae.locStart,Se=Ae.locEnd,Fe=oi(),ke=ai(),_e=si();function Te(e){return"es5"===e.trailingComma||"all"===e.trailingComma}function Oe(e,t,r){var i=e.getValue();if(!i)return"";if("string"==typeof i)return i;switch(i.type){case"front-matter":return[i.raw,h];case"css-root":var a=Ne(e,t,r),u=i.raws.after.trim();return[a,u?" ".concat(u):"",w(a).length>0?h:""];case"css-comment":var c=i.inline||i.raws.inline,p=t.originalText.slice(we(i),Se(i));return c?p.trimEnd():p;case"css-rule":return[r("selector"),i.important?" !important":"",i.nodes?[i.selector&&"selector-unknown"===i.selector.type&&be(i.selector.value)?d:" ","{",i.nodes.length>0?D([h,Ne(e,t,r)]):"",h,"}",V(i)?";":""]:";"];case"css-decl":var C=e.getParentNode(),S=i.raws.between.trim(),F=":"===S,k=te(i)?A(r("value")):r("value");return!F&&be(S)&&(k=D([h,b(k)])),[i.raws.before.replace(/[\s;]/g,""),P(e)?i.prop:N(i.prop),S.startsWith("//")?" ":"",S,i.extend?"":" ",Fe(t)&&i.extend&&i.selector?["extend(",r("selector"),")"]:"",k,i.raws.important?i.raws.important.replace(/\s*!\s*important/i," !important"):i.important?" !important":"",i.raws.scssDefault?i.raws.scssDefault.replace(/\s*!default/i," !default"):i.scssDefault?" !default":"",i.raws.scssGlobal?i.raws.scssGlobal.replace(/\s*!global/i," !global"):i.scssGlobal?" !global":"",i.nodes?[" {",D([y,Ne(e,t,r)]),y,"}"]:se(i)&&!C.raws.semicolon&&";"!==t.originalText[Se(i)-1]?"":t.__isHTMLStyleAttribute&&R(e,i)?E(";"):";"];case"css-atrule":var _=e.getParentNode(),W=ue(i)&&!_.raws.semicolon&&";"!==t.originalText[Se(i)-1];if(Fe(t)){if(i.mixin)return[r("selector"),i.important?" !important":"",W?"":";"];if(i.function)return[i.name,r("params"),W?"":";"];if(i.variable)return["@",i.name,": ",i.value?r("value"):"",i.raws.between.trim()?i.raws.between.trim()+" ":"",i.nodes?["{",D([i.nodes.length>0?y:"",Ne(e,t,r)]),y,"}"]:"",W?"":";"]}return["@",ae(i)||i.name.endsWith(":")?i.name:N(i.name),i.params?[ae(i)?"":ue(i)?""===i.raws.afterName?"":i.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(i.raws.afterName)?[h,h]:/^\s*\n/.test(i.raws.afterName)?h:" ":" ",r("params")]:"",i.selector?D([" ",r("selector")]):"",i.value?m([" ",r("value"),q(i)?ne(i)?" ":d:""]):"else"===i.name?" ":"",i.nodes?[q(i)?"":i.selector&&!i.selector.nodes&&"string"==typeof i.selector.value&&be(i.selector.value)||!i.selector&&"string"==typeof i.params&&be(i.params)?d:" ","{",D([i.nodes.length>0?y:"",Ne(e,t,r)]),y,"}"]:W?"":";"];case"media-query-list":var Y=[];return e.each((function(e){var t=e.getValue();"media-query"===t.type&&""===t.value||Y.push(r())}),"nodes"),m(D(f(d,Y)));case"media-query":return[f(" ",e.map(r,"nodes")),R(e,i)?"":","];case"media-type":case"media-value":return Ve(Re(i.value,t));case"media-feature-expression":return i.nodes?["("].concat(v(e.map(r,"nodes")),[")"]):i.value;case"media-feature":return N(Re(i.value.replace(/ +/g," "),t));case"media-colon":case"value-comma":return[i.value," "];case"media-keyword":case"selector-string":return Re(i.value,t);case"media-url":return Re(i.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return i.value;case"selector-root":return m([B(e,"custom-selector")?[T(e,"css-atrule").customSelector,d]:"",f([",",B(e,["extend","custom-selector","nest"])?d:h],e.map(r,"nodes"))]);case"selector-selector":return m(D(e.map(r,"nodes")));case"selector-tag":var de=e.getParentNode(),Ae=de&&de.nodes.indexOf(i),Oe=Ae&&de.nodes[Ae-1];return[i.namespace?[!0===i.namespace?"":i.namespace.trim(),"|"]:"","selector-nesting"===Oe.type?i.value:Ve(L(e,i.value)?i.value.toLowerCase():i.value)];case"selector-id":return["#",i.value];case"selector-class":return[".",Ve(Re(i.value,t))];case"selector-attribute":return["[",i.namespace?[!0===i.namespace?"":i.namespace.trim(),"|"]:"",i.attribute.trim(),i.operator?i.operator:"",i.value?qe(Re(i.value.trim(),t),t):"",i.insensitive?" i":"","]"];case"selector-combinator":if("+"===i.value||">"===i.value||"~"===i.value||">>>"===i.value){var je=e.getParentNode();return["selector-selector"===je.type&&je.nodes[0]===i?"":d,i.value,R(e,i)?"":" "]}return[i.value.trim().startsWith("(")?d:"",Ve(Re(i.value.trim(),t))||d];case"selector-universal":return[i.namespace?[!0===i.namespace?"":i.namespace.trim(),"|"]:"",i.value];case"selector-pseudo":return[N(i.value),l(i.nodes)?["(",f(", ",e.map(r,"nodes")),")"]:""];case"selector-unknown":var Pe=T(e,"css-rule");if(Pe&&Pe.isSCSSNesterProperty)return Ve(Re(N(i.value),t));var Be=e.getParentNode();if(Be.raws&&Be.raws.selector){var Ie=we(Be),Le=Ie+Be.raws.selector.length;return t.originalText.slice(Ie,Le).trim()}var Me=e.getParentNode(1);if("value-paren_group"===Be.type&&Me&&"value-func"===Me.type&&"selector"===Me.value){var ze=Se(Be.open)+1,He=we(Be.close),We=t.originalText.slice(ze,He).trim();return be(We)?[x,We]:We}return i.value;case"value-value":case"value-root":return r("group");case"value-comment":return t.originalText.slice(we(i),Se(i));case"value-comma_group":for(var $e=e.getParentNode(),Ge=e.getParentNode(1),Ke=O(e),Je=Ke&&"value-value"===$e.type&&("grid"===Ke||Ke.startsWith("grid-template")),Xe=T(e,"css-atrule"),Ye=Xe&&q(Xe),Qe=i.groups.some((function(e){return pe(e)})),Ze=e.map(r,"groups"),et=[],tt=j(e,"url"),nt=!1,rt=!1,it=0;it<i.groups.length;++it){et.push(Ze[it]);var ot=i.groups[it-1],at=i.groups[it],ut=i.groups[it+1],st=i.groups[it+2];if(tt)(ut&&G(ut)||G(at))&&et.push(" ");else if(!(B(e,"forward")&&"value-word"===at.type&&at.value&&void 0!==ot&&"value-word"===ot.type&&"as"===ot.value&&"value-operator"===ut.type&&"*"===ut.value||!ut||"value-word"===at.type&&at.value.endsWith("-")&&Ee(ut))){var lt="value-string"===at.type&&at.value.startsWith("#{"),ct=nt&&"value-string"===ut.type&&ut.value.endsWith("}");if(lt||ct)nt=!nt;else if(!(nt||ve(at)||ve(ut)||"value-atword"===at.type&&""===at.value||"~"===at.value||at.value&&at.value.includes("\\")&&ut&&"value-comment"!==ut.type||ot&&ot.value&&ot.value.indexOf("\\")===ot.value.length-1&&"value-operator"===at.type&&"/"===at.value||"\\"===at.value||le(at,ut)||fe(at)||he(at)||ye(ut)||he(ut)&&re(ut)||ye(at)&&re(ut)||"--"===at.value&&fe(ut))){var pt=J(at),ft=J(ut);if(!((pt&&fe(ut)||ft&&ye(at))&&re(ut)||!ot&&$(at)||j(e,"calc")&&(G(at)||G(ut)||K(at)||K(ut))&&re(ut))){var dt=(G(at)||K(at))&&0===it&&("value-number"===ut.type||ut.isHex)&&Ge&&De(Ge)&&!re(ut),ht=st&&"value-func"===st.type||st&&me(st)||"value-func"===at.type||me(at),yt="value-func"===ut.type||me(ut)||ot&&"value-func"===ot.type||ot&&me(ot);if(H(ut)||H(at)||j(e,"calc")||dt||!($(ut)&&!ht||$(at)&&!yt||G(ut)&&!ht||G(at)&&!yt||K(ut)||K(at))||!(re(ut)||pt&&(!ot||ot&&J(ot)))){if(pe(at)){if("value-paren_group"===$e.type){et.push(b(h));continue}et.push(h);continue}if(Ye&&(z(ut)||U(ut)||ee(ut)||X(at)||Q(at))){et.push(" ");continue}if(Xe&&"namespace"===Xe.name.toLowerCase()){et.push(" ");continue}if(Je){at.source&&ut.source&&at.source.start.line!==ut.source.start.line?(et.push(h),rt=!0):et.push(" ");continue}if(ft){et.push(" ");continue}if((!ut||"..."!==ut.value)&&(!Ee(at)||!Ee(ut)||Se(at)!==we(ut))){if(Ee(at)&&Ce(ut)&&Se(at)===we(ut.open)){et.push(y);continue}if("with"===at.value&&Ce(ut)){et.push(" ");continue}et.push(d)}}}}}}return Qe&&et.push(x),rt&&et.unshift(h),Ye?m(D(et)):I(e)?m(g(et)):m(D(g(et)));case"value-paren_group":var mt=e.getParentNode();if(mt&&Z(mt)&&(1===i.groups.length||i.groups.length>0&&"value-comma_group"===i.groups[0].type&&i.groups[0].groups.length>0&&"value-word"===i.groups[0].groups[0].type&&i.groups[0].groups[0].value.startsWith("data:")))return[i.open?r("open"):"",f(",",e.map(r,"groups")),i.close?r("close"):""];if(!i.open){for(var vt=e.map(r,"groups"),gt=[],Dt=0;Dt<vt.length;Dt++)0!==Dt&>.push([",",d]),gt.push(vt[Dt]);return m(D(g(gt)))}var bt=ce(e),Et=n(i.groups),xt=Et&&"value-comment"===Et.type,Ct=oe(i,mt),At=xe(i,mt),wt=At||bt&&!Ct,St=At||Ct,Ft=m([i.open?r("open"):"",D([y,f([d],e.map((function(e,o){var a=e.getValue(),u=o===i.groups.length-1,c=[r(),u?"":","];if(ie(a)&&"value-comma_group"===a.type&&a.groups&&"value-paren_group"!==a.groups[0].type&&a.groups[2]&&"value-paren_group"===a.groups[2].type){var p=w(c[0].contents.contents);return p[1]=m(p[1]),m(b(c))}if(!u&&"value-comma_group"===a.type&&l(a.groups)){var f=n(a.groups);f.source&&s(t.originalText,f,Se)&&c.push(h)}return c}),"groups"))]),E(!xt&&ke(t.parser,t.originalText)&&bt&&Te(t)?",":""),y,i.close?r("close"):""],{shouldBreak:wt});return St?b(Ft):Ft;case"value-func":return[i.value,B(e,"supports")&&ge(i)?" ":"",r("group")];case"value-number":return[Ue(i.value),_e(i.unit)];case"value-word":return i.isColor&&i.isHex||M(i.value)?i.value.toLowerCase():i.value;case"value-colon":var kt=e.getParentNode(),_t=kt&&kt.groups.indexOf(i),Tt=_t&&kt.groups[_t-1];return[i.value,Tt&&"string"==typeof Tt.value&&"\\"===n(Tt.value)||j(e,"url")?"":d];case"value-string":return o(i.raws.quote+i.value+i.raws.quote,t);case"value-atword":return["@",i.value];default:throw new Error("Unknown postcss type ".concat(JSON.stringify(i.type)))}}function Ne(e,t,n){var r=[];return e.each((function(e,i,o){var l=o[i-1];if(l&&"css-comment"===l.type&&"prettier-ignore"===l.text.trim()){var c=e.getValue();r.push(t.originalText.slice(we(c),Se(c)))}else r.push(n());i!==o.length-1&&("css-comment"===o[i+1].type&&!a(t.originalText,we(o[i+1]),{backwards:!0})&&!u(o[i])||"css-atrule"===o[i+1].type&&"else"===o[i+1].name&&"css-comment"!==o[i].type?r.push(" "):(r.push(t.__isHTMLStyleAttribute?d:h),s(t.originalText,e.getValue(),Se)&&!u(o[i])&&r.push(h)))}),"nodes"),r}var je=/(["'])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,Pe=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,Be=/[A-Za-z]+/g,Ie=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,Me=new RegExp(je.source+"|(".concat(Ie.source,")?(").concat(Pe.source,")(").concat(Be.source,")?"),"g");function Re(e,t){return e.replace(je,(function(e){return o(e,t)}))}function qe(e,t){var n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function Ve(e){return e.replace(Me,(function(e,t,n,r,i){return!n&&r?Ue(r)+N(i||""):e}))}function Ue(e){return i(e).replace(/\.0(?=$|e)/,"")}t.exports={print:Oe,embed:F,insertPragma:k,massageAstNode:S}}}),ci=q({"src/language-css/options.js":function(e,t){W();var n=Vr();t.exports={singleQuote:n.singleQuote}}}),pi=q({"src/language-css/parsers.js":function(){W()}}),fi=q({"node_modules/linguist-languages/data/CSS.json":function(e,t){t.exports={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50}}}),di=q({"node_modules/linguist-languages/data/PostCSS.json":function(e,t){t.exports={name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437}}}),hi=q({"node_modules/linguist-languages/data/Less.json":function(e,t){t.exports={name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198}}}),yi=q({"node_modules/linguist-languages/data/SCSS.json":function(e,t){t.exports={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329}}}),mi=q({"src/language-css/index.js":function(e,t){W();var n=En(),r=li(),i=ci(),o=pi(),a=[n(fi(),(function(e){return{since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[].concat(v(e.extensions),[".wxss"])}})),n(di(),(function(){return{since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]}})),n(hi(),(function(){return{since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]}})),n(yi(),(function(){return{since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}}))],u={postcss:r};t.exports={languages:a,options:i,printers:u,parsers:o}}}),vi=q({"src/language-handlebars/loc.js":function(e,t){function n(e){return e.loc.start.offset}function r(e){return e.loc.end.offset}W(),t.exports={locStart:n,locEnd:r}}}),gi=q({"src/language-handlebars/clean.js":function(e,t){function n(e,t){if("TextNode"===e.type){var n=e.chars.trim();if(!n)return null;t.chars=n.replace(/[\t\n\f\r ]+/g," ")}"AttrNode"===e.type&&"class"===e.name.toLowerCase()&&delete t.value}W(),n.ignoredProperties=new Set(["loc","selfClosing"]),t.exports=n}}),Di=q({"vendors/html-void-elements.json":function(e,t){t.exports={htmlVoidElements:["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]}}}),bi=q({"src/language-handlebars/utils.js":function(e,t){W();var n=Di().htmlVoidElements,r=Y();function i(e){var t=e.getValue(),n=e.getParentNode(0);return!!(p(e,["ElementNode"])&&r(n.children)===t||p(e,["Block"])&&r(n.body)===t)}function o(e){return e.toUpperCase()===e}function a(e){return c(e,["ElementNode"])&&"string"==typeof e.tag&&!e.tag.startsWith(":")&&(o(e.tag[0])||e.tag.includes("."))}var u=new Set(n);function s(e){return u.has(e.tag)||a(e)&&e.children.every((function(e){return l(e)}))}function l(e){return c(e,["TextNode"])&&!/\S/.test(e.chars)}function c(e,t){return e&&t.includes(e.type)}function p(e,t){return c(e.getParentNode(0),t)}function f(e,t){return c(y(e),t)}function d(e,t){return c(m(e),t)}function h(e,t){var n,r,i,o,a=e.getValue(),u=null!==(n=e.getParentNode(0))&&void 0!==n?n:{},s=null!==(r=null!==(i=null!==(o=u.children)&&void 0!==o?o:u.body)&&void 0!==i?i:u.parts)&&void 0!==r?r:[],l=s.indexOf(a);return-1!==l&&s[l+t]}function y(e){return h(e,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function m(e){return h(e,1)}function v(e){return c(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}function g(e){var t=e.getValue(),n=y(e,2);return v(t)||v(n)}t.exports={getNextNode:m,getPreviousNode:y,hasPrettierIgnore:g,isLastNodeOfSiblings:i,isNextNodeOfSomeType:d,isNodeOfSomeType:c,isParentOfSomeType:p,isPreviousNodeOfSomeType:f,isVoid:s,isWhitespaceNode:l}}}),Ei=q({"src/language-handlebars/printer-glimmer.js":function(e,t){W();var n=de(),r=n.builders,i=r.dedent,o=r.fill,a=r.group,u=r.hardline,s=r.ifBreak,l=r.indent,c=r.join,p=r.line,f=r.softline,d=n.utils,h=d.getDocParts,m=d.replaceTextEndOfLine,D=Le(),b=D.getPreferredQuote,E=D.isNonEmptyArray,x=vi(),C=x.locStart,A=x.locEnd,w=gi(),S=bi(),F=S.getNextNode,k=S.getPreviousNode,_=S.hasPrettierIgnore,T=S.isLastNodeOfSiblings,O=S.isNextNodeOfSomeType,N=S.isNodeOfSomeType,j=S.isParentOfSomeType,P=S.isPreviousNodeOfSomeType,B=S.isVoid,I=S.isWhitespaceNode,L=2;function M(e,t,n){var r=e.getValue();if(!r)return"";if(_(e))return t.originalText.slice(C(r),A(r));var s=t.singleQuote?"'":'"';switch(r.type){case"Block":case"Program":case"Template":return a(e.map(n,"body"));case"ElementNode":var d=a(q(e,n)),h="ignore"===t.htmlWhitespaceSensitivity&&O(e,["ElementNode"])?f:"";if(B(r))return[d,h];var g=["</",r.tag,">"];return 0===r.children.length?[d,l(g),h]:"ignore"===t.htmlWhitespaceSensitivity?[d,l(V(e,t,n)),u,l(g),h]:[d,l(a(V(e,t,n))),l(g),h];case"BlockStatement":var D=e.getParentNode(1);return D&&D.inverse&&1===D.inverse.body.length&&D.inverse.body[0]===r&&"if"===D.inverse.body[0].path.parts[0]?[ee(e,n),oe(e,n,t),ae(e,n,t)]:[Q(e,n),a([oe(e,n,t),ae(e,n,t),te(e,n,t)])];case"ElementModifierStatement":return a(["{{",ge(e,n),"}}"]);case"MustacheStatement":return a([z(r),ge(e,n),H(r)]);case"SubExpression":return a(["(",ve(e,n),f,")"]);case"AttrNode":var E="TextNode"===r.value.type;if(E&&""===r.value.chars&&C(r.value)===A(r.value))return r.name;var x=E?b(r.value.chars,s).quote:"ConcatStatement"===r.value.type?b(r.value.parts.filter((function(e){return"TextNode"===e.type})).map((function(e){return e.chars})).join(""),s).quote:"",w=n("value");return[r.name,"=",x,"class"===r.name&&x?a(l(w)):w,x];case"ConcatStatement":return e.map(n,"parts");case"Hash":return c(p,e.map(n,"pairs"));case"HashPair":return[r.key,"=",n("value")];case"TextNode":var S=r.chars.replace(/{{/g,"\\{{"),N=le(e);if(N){if("class"===N){var I=S.trim().split(/\s+/).join(" "),M=!1,R=!1;return j(e,["ConcatStatement"])&&(P(e,["MustacheStatement"])&&/^\s/.test(S)&&(M=!0),O(e,["MustacheStatement"])&&/\s$/.test(S)&&""!==I&&(R=!0)),[M?p:"",I,R?p:""]}return m(S)}var U=/^[\t\n\f\r ]*$/.test(S),W=!k(e),$=!F(e);if("ignore"!==t.htmlWhitespaceSensitivity){var G=/^[\t\n\f\r ]*/,K=/[\t\n\f\r ]*$/,J=$&&j(e,["Template"]),X=W&&j(e,["Template"]);if(U){if(X||J)return"";var Y=[p],Z=ce(S);return Z&&(Y=he(Z)),T(e)&&(Y=Y.map((function(e){return i(e)}))),Y}var ne=S.match(G),re=y(ne,1)[0],ie=S.match(K),se=y(ie,1)[0],de=[];if(re){de=[p];var De=ce(re);De&&(de=he(De)),S=S.replace(G,"")}var be=[];if(se){if(!J){be=[p];var Ee=ce(se);Ee&&(be=he(Ee)),T(e)&&(be=be.map((function(e){return i(e)})))}S=S.replace(K,"")}return[].concat(v(de),[o(ue(S))],v(be))}var xe=ce(S),Ce=pe(S),Ae=fe(S);if((W||$)&&U&&j(e,["Block","ElementNode","Template"]))return"";U&&xe?(Ce=Math.min(xe,L),Ae=0):(O(e,["BlockStatement","ElementNode"])&&(Ae=Math.max(Ae,1)),P(e,["BlockStatement","ElementNode"])&&(Ce=Math.max(Ce,1)));var we="",Se="";return 0===Ae&&O(e,["MustacheStatement"])&&(Se=" "),0===Ce&&P(e,["MustacheStatement"])&&(we=" "),W&&(Ce=0,we=""),$&&(Ae=0,Se=""),S=S.replace(/^[\t\n\f\r ]+/g,we).replace(/[\t\n\f\r ]+$/,Se),[].concat(v(he(Ce)),[o(ue(S))],v(he(Ae)));case"MustacheCommentStatement":var Fe=C(r),ke=A(r),_e="~"===t.originalText.charAt(Fe+2),Te="~"===t.originalText.charAt(ke-3),Oe=r.value.includes("}}")?"--":"";return["{{",_e?"~":"","!",Oe,r.value,Oe,Te?"~":"","}}"];case"PathExpression":return r.original;case"BooleanLiteral":case"NumberLiteral":return String(r.value);case"CommentStatement":return["\x3c!--",r.value,"--\x3e"];case"StringLiteral":if(me(e)){var Ne=t.singleQuote?'"':"'";return ye(r.value,Ne)}return ye(r.value,s);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}}function R(e,t){return C(e)-C(t)}function q(e,t){var n,r=e.getValue(),i=["attributes","modifiers","comments"].filter((function(e){return E(r[e])})),o=i.flatMap((function(e){return r[e]})).sort(R),a=g(i);try{for(a.s();!(n=a.n()).done;){var u=n.value;e.each((function(e){var n=o.indexOf(e.getValue());o.splice(n,1,[p,t()])}),u)}}catch(s){a.e(s)}finally{a.f()}return E(r.blockParams)&&o.push(p,Ee(r)),["<",r.tag,l(o),U(r)]}function V(e,t,n){var r=e.getValue().children.every((function(e){return I(e)}));return"ignore"===t.htmlWhitespaceSensitivity&&r?"":e.map((function(e,r){var i=n();return 0===r&&"ignore"===t.htmlWhitespaceSensitivity?[f,i]:i}),"children")}function U(e){return B(e)?s([f,"/>"],[" />",f]):s([f,">"],">")}function z(e){return[!1===e.escaped?"{{{":"{{",e.strip&&e.strip.open?"~":""]}function H(e){var t=!1===e.escaped?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function $(e){return[z(e),e.openStrip.open?"~":"","#"]}function G(e){var t=H(e);return[e.openStrip.close?"~":"",t]}function K(e){return[z(e),e.closeStrip.open?"~":"","/"]}function J(e){var t=H(e);return[e.closeStrip.close?"~":"",t]}function X(e){return[z(e),e.inverseStrip.open?"~":""]}function Y(e){var t=H(e);return[e.inverseStrip.close?"~":"",t]}function Q(e,t){var n=e.getValue(),r=$(n),i=G(n),o=[De(e,t)],u=be(e,t);if(u&&o.push(p,u),E(n.program.blockParams)){var s=Ee(n.program);o.push(p,s)}return a([r,l(o),f,i])}function Z(e,t){return["ignore"===t.htmlWhitespaceSensitivity?u:"",X(e),"else",Y(e)]}function ee(e,t){var n=e.getParentNode(1);return[X(n),"else if ",be(e,t),Y(n)]}function te(e,t,n){var r=e.getValue();return"ignore"===n.htmlWhitespaceSensitivity?[ne(r)?f:u,K(r),t("path"),J(r)]:[K(r),t("path"),J(r)]}function ne(e){return N(e,["BlockStatement"])&&e.program.body.every((function(e){return I(e)}))}function re(e){return ie(e)&&1===e.inverse.body.length&&N(e.inverse.body[0],["BlockStatement"])&&"if"===e.inverse.body[0].path.parts[0]}function ie(e){return N(e,["BlockStatement"])&&e.inverse}function oe(e,t,n){if(ne(e.getValue()))return"";var r=t("program");return"ignore"===n.htmlWhitespaceSensitivity?l([u,r]):l(r)}function ae(e,t,n){var r=e.getValue(),i=t("inverse"),o="ignore"===n.htmlWhitespaceSensitivity?[u,i]:i;return re(r)?o:ie(r)?[Z(r,n),l(o)]:""}function ue(e){return h(c(p,se(e)))}function se(e){return e.split(/[\t\n\f\r ]+/)}function le(e){for(var t=0;t<2;t++){var n=e.getParentNode(t);if(n&&"AttrNode"===n.type)return n.name.toLowerCase()}}function ce(e){return(e="string"==typeof e?e:"").split("\n").length-1}function pe(e){return ce(((e="string"==typeof e?e:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}function fe(e){return ce(((e="string"==typeof e?e:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}function he(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.from({length:Math.min(e,L)}).fill(u)}function ye(e,t){var n=b(e,t),r=n.quote,i=n.regex;return[r,e.replace(i,"\\".concat(r)),r]}function me(e){for(var t=0,n=e.getParentNode(t);n&&N(n,["SubExpression"]);)t++,n=e.getParentNode(t);return!!(n&&N(e.getParentNode(t+1),["ConcatStatement"])&&N(e.getParentNode(t+2),["AttrNode"]))}function ve(e,t){var n=De(e,t),r=be(e,t);return r?l([n,p,a(r)]):n}function ge(e,t){var n=De(e,t),r=be(e,t);return r?[l([n,p,r]),f]:n}function De(e,t){return t("path")}function be(e,t){var n=e.getValue(),r=[];if(n.params.length>0){var i=e.map(t,"params");r.push.apply(r,v(i))}if(n.hash&&n.hash.pairs.length>0){var o=t("hash");r.push(o)}return 0===r.length?"":c(p,r)}function Ee(e){return["as |",e.blockParams.join(" "),"|"]}t.exports={print:M,massageAstNode:w}}}),xi=q({"src/language-handlebars/parsers.js":function(){W()}}),Ci=q({"node_modules/linguist-languages/data/Handlebars.json":function(e,t){t.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),Ai=q({"src/language-handlebars/index.js":function(e,t){W();var n=En(),r=Ei(),i=xi(),o=[n(Ci(),(function(){return{since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}}))],a={glimmer:r};t.exports={languages:o,printers:a,parsers:i}}}),wi=q({"src/language-graphql/pragma.js":function(e,t){function n(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)}function r(e){return"# @format\n\n"+e}W(),t.exports={hasPragma:n,insertPragma:r}}}),Si=q({"src/language-graphql/loc.js":function(e,t){function n(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start}function r(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}W(),t.exports={locStart:n,locEnd:r}}}),Fi=q({"src/language-graphql/printer-graphql.js":function(e,t){W();var n=de().builders,r=n.join,i=n.hardline,o=n.line,a=n.softline,u=n.group,s=n.indent,l=n.ifBreak,c=Le(),p=c.isNextLineEmpty,f=c.isNonEmptyArray,d=wi().insertPragma,h=Si(),y=h.locStart,m=h.locEnd;function g(e,t,n){var c=e.getValue();if(!c)return"";if("string"==typeof c)return c;switch(c.kind){case"Document":var d=[];return e.each((function(e,r,o){d.push(n()),r!==o.length-1&&(d.push(i),p(t.originalText,e.getValue(),m)&&d.push(i))}),"definitions"),[].concat(d,[i]);case"OperationDefinition":var h="{"!==t.originalText[y(c)],g=Boolean(c.name);return[h?c.operation:"",h&&g?[" ",n("name")]:"",h&&!g&&f(c.variableDefinitions)?" ":"",f(c.variableDefinitions)?u(["(",s([a,r([l("",", "),a],e.map(n,"variableDefinitions"))]),a,")"]):"",D(e,n,c),c.selectionSet&&(h||g)?" ":"",n("selectionSet")];case"FragmentDefinition":return["fragment ",n("name"),f(c.variableDefinitions)?u(["(",s([a,r([l("",", "),a],e.map(n,"variableDefinitions"))]),a,")"]):""," on ",n("typeCondition"),D(e,n,c)," ",n("selectionSet")];case"SelectionSet":return["{",s([i,r(i,b(e,t,n,"selections"))]),i,"}"];case"Field":return u([c.alias?[n("alias"),": "]:"",n("name"),c.arguments.length>0?u(["(",s([a,r([l("",", "),a],b(e,t,n,"arguments"))]),a,")"]):"",D(e,n,c),c.selectionSet?" ":"",n("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return c.value;case"StringValue":if(c.block){var E=c.value.replace(/"""/g,"\\$&").split("\n");return 1===E.length&&(E[0]=E[0].trim()),E.every((function(e){return""===e}))&&(E.length=0),r(i,['"""'].concat(v(E),['"""']))}return['"',c.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"BooleanValue":return c.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return u(["[",s([a,r([l("",", "),a],e.map(n,"values"))]),a,"]"]);case"ObjectValue":return u(["{",t.bracketSpacing&&c.fields.length>0?" ":"",s([a,r([l("",", "),a],e.map(n,"fields"))]),a,l("",t.bracketSpacing&&c.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),c.arguments.length>0?u(["(",s([a,r([l("",", "),a],b(e,t,n,"arguments"))]),a,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),c.defaultValue?[" = ",n("defaultValue")]:"",D(e,n,c)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[n("description"),c.description?i:"","ObjectTypeExtension"===c.kind?"extend ":"","type ",n("name"),c.interfaces.length>0?[" implements "].concat(v(C(e,t,n))):"",D(e,n,c),c.fields.length>0?[" {",s([i,r(i,b(e,t,n,"fields"))]),i,"}"]:""];case"FieldDefinition":return[n("description"),c.description?i:"",n("name"),c.arguments.length>0?u(["(",s([a,r([l("",", "),a],b(e,t,n,"arguments"))]),a,")"]):"",": ",n("type"),D(e,n,c)];case"DirectiveDefinition":return[n("description"),c.description?i:"","directive ","@",n("name"),c.arguments.length>0?u(["(",s([a,r([l("",", "),a],b(e,t,n,"arguments"))]),a,")"]):"",c.repeatable?" repeatable":""," on ",r(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[n("description"),c.description?i:"","EnumTypeExtension"===c.kind?"extend ":"","enum ",n("name"),D(e,n,c),c.values.length>0?[" {",s([i,r(i,b(e,t,n,"values"))]),i,"}"]:""];case"EnumValueDefinition":return[n("description"),c.description?i:"",n("name"),D(e,n,c)];case"InputValueDefinition":return[n("description"),c.description?c.description.block?i:o:"",n("name"),": ",n("type"),c.defaultValue?[" = ",n("defaultValue")]:"",D(e,n,c)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[n("description"),c.description?i:"","InputObjectTypeExtension"===c.kind?"extend ":"","input ",n("name"),D(e,n,c),c.fields.length>0?[" {",s([i,r(i,b(e,t,n,"fields"))]),i,"}"]:""];case"SchemaExtension":return["extend schema",D(e,n,c)].concat(v(c.operationTypes.length>0?[" {",s([i,r(i,b(e,t,n,"operationTypes"))]),i,"}"]:[]));case"SchemaDefinition":return[n("description"),c.description?i:"","schema",D(e,n,c)," {",c.operationTypes.length>0?s([i,r(i,b(e,t,n,"operationTypes"))]):"",i,"}"];case"OperationTypeDefinition":return[n("operation"),": ",n("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[n("description"),c.description?i:"","InterfaceTypeExtension"===c.kind?"extend ":"","interface ",n("name"),c.interfaces.length>0?[" implements "].concat(v(C(e,t,n))):"",D(e,n,c),c.fields.length>0?[" {",s([i,r(i,b(e,t,n,"fields"))]),i,"}"]:""];case"FragmentSpread":return["...",n("name"),D(e,n,c)];case"InlineFragment":return["...",c.typeCondition?[" on ",n("typeCondition")]:"",D(e,n,c)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return u([n("description"),c.description?i:"",u(["UnionTypeExtension"===c.kind?"extend ":"","union ",n("name"),D(e,n,c),c.types.length>0?[" =",l(""," "),s([l([o," "]),r([o,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[n("description"),c.description?i:"","ScalarTypeExtension"===c.kind?"extend ":"","scalar ",n("name"),D(e,n,c)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(c.kind))}}function D(e,t,n){if(0===n.directives.length)return"";var i=r(o,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?u([o,i]):[" ",u(s([a,i]))]}function b(e,t,n,r){return e.map((function(e,r,o){var a=n();return r<o.length-1&&p(t.originalText,e.getValue(),m)?[a,i]:a}),r)}function E(e){return e.kind&&"Comment"!==e.kind}function x(e){var t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function C(e,t,n){for(var r=[],i=e.getNode().interfaces,a=e.map((function(e){return n(e)}),"interfaces"),u=0;u<i.length;u++){var s=i[u];r.push(a[u]);var l=i[u+1];if(l){var c=t.originalText.slice(s.loc.end,l.loc.start),p=c.includes("#"),f=c.replace(/#.*/g,"").trim();r.push(","===f?",":" &",p?o:" ")}}return r}function A(e,t){"StringValue"===e.kind&&e.block&&!e.value.includes("\n")&&(t.value=t.value.trim())}function w(e){var t,n=e.getValue();return null==n||null===(t=n.comments)||void 0===t?void 0:t.some((function(e){return"prettier-ignore"===e.value.trim()}))}A.ignoredProperties=new Set(["loc","comments"]),t.exports={print:g,massageAstNode:A,hasPrettierIgnore:w,insertPragma:d,printComment:x,canAttachComment:E}}}),ki=q({"src/language-graphql/options.js":function(e,t){W();var n=Vr();t.exports={bracketSpacing:n.bracketSpacing}}}),_i=q({"src/language-graphql/parsers.js":function(){W()}}),Ti=q({"node_modules/linguist-languages/data/GraphQL.json":function(e,t){t.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),Oi=q({"src/language-graphql/index.js":function(e,t){W();var n=En(),r=Fi(),i=ki(),o=_i(),a=[n(Ti(),(function(){return{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}}))],u={graphql:r};t.exports={languages:a,options:i,printers:u,parsers:o}}}),Ni=q({"src/language-markdown/loc.js":function(e,t){function n(e){return e.position.start.offset}function r(e){return e.position.end.offset}W(),t.exports={locStart:n,locEnd:r}}}),ji=q({"src/language-markdown/constants.evaluate.js":function(e,t){t.exports={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"}}}),Pi=q({"src/language-markdown/utils.js":function(e,t){W();var n=Le().getLast,r=Ni(),i=r.locStart,o=r.locEnd,a=ji(),u=a.cjkPattern,s=a.kPattern,l=a.punctuationPattern,c=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],p=[].concat(c,["tableCell","paragraph","heading"]),f=new RegExp(s),d=new RegExp(l);function h(e,t){var r,i="non-cjk",o="cj-letter",a="k-letter",s="cjk-punctuation",l=[],c=("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(u,")\n(").concat(u,")"),"g"),"$1$2")).split(/([\t\n ]+)/),p=g(c.entries());try{for(p.s();!(r=p.n()).done;){var h=y(r.value,2),m=h[0],v=h[1];if(m%2!==1){if(0!==m&&m!==c.length-1||""!==v){var D,b=v.split(new RegExp("(".concat(u,")"))),E=g(b.entries());try{for(E.s();!(D=E.n()).done;){var x=y(D.value,2),C=x[0],A=x[1];if(0!==C&&C!==b.length-1||""!==A){if(C%2===0){""!==A&&w({type:"word",value:A,kind:i,hasLeadingPunctuation:d.test(A[0]),hasTrailingPunctuation:d.test(n(A))});continue}w(d.test(A)?{type:"word",value:A,kind:s,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:A,kind:f.test(A)?a:o,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}}catch(S){E.e(S)}finally{E.f()}}}else l.push({type:"whitespace",value:/\n/.test(v)?"\n":" "})}}catch(S){p.e(S)}finally{p.f()}return l;function w(e){var t=n(l);function r(n,r){return t.kind===n&&e.kind===r||t.kind===r&&e.kind===n}t&&"word"===t.type&&(t.kind===i&&e.kind===o&&!t.hasTrailingPunctuation||t.kind===o&&e.kind===i&&!e.hasLeadingPunctuation?l.push({type:"whitespace",value:" "}):!r(i,s)&&![t.value,e.value].some((function(e){return/\u3000/.test(e)}))&&l.push({type:"whitespace",value:""})),l.push(e)}}function m(e,t){var n=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/),r=y(n,4);return{numberText:r[1],marker:r[2],leadingSpaces:r[3]}}function D(e,t){if(!e.ordered||e.children.length<2)return!1;var n=Number(m(e.children[0],t.originalText).numberText),r=Number(m(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){var i=Number(m(e.children[2],t.originalText).numberText);return 1===r&&1===i}return 1===r}function b(e,t){var n=e.value;return e.position.end.offset===t.length&&n.endsWith("\n")&&t.endsWith("\n")?n.slice(0,-1):n}function E(e,t){return function e(n,r,i){var o=Object.assign({},t(n,r,i));return o.children&&(o.children=o.children.map((function(t,n){return e(t,n,[o].concat(v(i)))}))),o}(e,null,[])}function x(e){if("link"!==(null==e?void 0:e.type)||1!==e.children.length)return!1;var t=y(e.children,1)[0];return i(e)===i(t)&&o(e)===o(t)}t.exports={mapAst:E,splitText:h,punctuationPattern:l,getFencedCodeBlockValue:b,getOrderedListItemInfo:m,hasGitDiffFriendlyOrderedList:D,INLINE_NODE_TYPES:c,INLINE_NODE_WRAPPER_TYPES:p,isAutolink:x}}}),Bi=q({"src/language-markdown/embed.js":function(e,t){W();var n=Le(),r=n.inferParserByLanguage,i=n.getMaxContinuousCount,o=de(),a=o.builders,u=a.hardline,s=a.markAsRoot,l=o.utils.replaceEndOfLine,c=Qr(),p=Pi().getFencedCodeBlockValue;function f(e,t,n,o){var a=e.getValue();if("code"===a.type&&null!==a.lang){var f=r(a.lang,o);if(f){var d=o.__inJsTemplate?"~":"`",h=d.repeat(Math.max(3,i(a.value,d)+1)),y={parser:f};"tsx"===a.lang&&(y.filepath="dummy.tsx");var m=n(p(a,o.originalText),y,{stripTrailingHardline:!0});return s([h,a.lang,a.meta?" "+a.meta:"",u,l(m),u,h])}}switch(a.type){case"front-matter":return c(a,n);case"importExport":return[n(a.value,{parser:"babel"},{stripTrailingHardline:!0}),u];case"jsx":return n("<$>".concat(a.value,"</$>"),{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}t.exports=f}}),Ii=q({"src/language-markdown/pragma.js":function(e,t){W();var n=ei(),r=["format","prettier"];function i(e){var t="@(".concat(r.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"{\\s*\\/\\*\\s*".concat(t,"\\s*\\*\\/\\s*}"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),i=e.match(n);return 0===(null==i?void 0:i.index)}t.exports={startWithPragma:i,hasPragma:function(e){return i(n(e).content.trimStart())},insertPragma:function(e){var t=n(e),i="\x3c!-- @".concat(r[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(i,"\n\n").concat(t.content):"".concat(i,"\n\n").concat(t.content)}}}}),Li=q({"src/language-markdown/print-preprocess.js":function(e,t){W();var n=Y(),r=Pi(),i=r.getOrderedListItemInfo,o=r.mapAst,a=r.splitText,u=/^(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])$/;function s(e,t){return e=f(e=l(e=m(e=g(e=v(e=c(e=h(e=p(e,t))),t),t),t)))}function l(e){return o(e,(function(e){return"import"!==e.type&&"export"!==e.type?e:Object.assign(Object.assign({},e),{},{type:"importExport"})}))}function c(e){return o(e,(function(e){return"inlineCode"!==e.type?e:Object.assign(Object.assign({},e),{},{value:e.value.replace(/\s+/g," ")})}))}function p(e,t){return o(e,(function(e){return"text"===e.type&&"*"!==e.value&&"_"!==e.value&&u.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?Object.assign(Object.assign({},e),{},{value:t.originalText.slice(e.position.start.offset,e.position.end.offset)}):e}))}function f(e){return d(e,(function(e,t){return"importExport"===e.type&&"importExport"===t.type}),(function(e,t){return{type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}}))}function d(e,t,r){return o(e,(function(e){if(!e.children)return e;var i=e.children.reduce((function(e,i){var o=n(e);return o&&t(o,i)?e.splice(-1,1,r(o,i)):e.push(i),e}),[]);return Object.assign(Object.assign({},e),{},{children:i})}))}function h(e){return d(e,(function(e,t){return"text"===e.type&&"text"===t.type}),(function(e,t){return{type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}}}))}function m(e,t){return o(e,(function(e,n,r){var i=y(r,1)[0];if("text"!==e.type)return e;var o=e.value;return"paragraph"===i.type&&(0===n&&(o=o.trimStart()),n===i.children.length-1&&(o=o.trimEnd())),{type:"sentence",position:e.position,children:a(o,t)}}))}function v(e,t){return o(e,(function(e,n,r){if("code"===e.type){var i=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=i,i)for(var o=0;o<r.length;o++){var a=r[o];if(a.hasIndentedCodeblock)break;"list"===a.type&&(a.hasIndentedCodeblock=!0)}}return e}))}function g(e,t){return o(e,(function(e,t,n){if("list"===e.type&&e.children.length>0){for(var i=0;i<n.length;i++){var o=n[i];if("list"===o.type&&!o.isAligned)return e.isAligned=!1,e}e.isAligned=r(e)}return e}));function n(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}function r(e){if(!e.ordered)return!0;var r=y(e.children,2),o=r[0],a=r[1];if(i(o,t.originalText).leadingSpaces.length>1)return!0;var u=n(o);return-1!==u&&(1===e.children.length?u%t.tabWidth===0:u===n(a)&&(u%t.tabWidth===0||i(a,t.originalText).leadingSpaces.length>1))}}t.exports=s}}),Mi=q({"src/language-markdown/clean.js":function(e,t){W();var n=Le().isFrontMatterNode,r=Ii().startWithPragma,i=new Set(["position","raw"]);function o(e,t,i){if(("front-matter"===e.type||"code"===e.type||"yaml"===e.type||"import"===e.type||"export"===e.type||"jsx"===e.type)&&delete t.value,"list"===e.type&&delete t.isAligned,("list"===e.type||"listItem"===e.type)&&(delete t.spread,delete t.loose),"text"===e.type||("inlineCode"===e.type&&(t.value=e.value.replace(/[\t\n ]+/g," ")),"wikiLink"===e.type&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),("definition"===e.type||"linkReference"===e.type)&&(t.label=e.label.trim().replace(/[\t\n ]+/g," ").toLowerCase()),("definition"===e.type||"link"===e.type||"image"===e.type)&&e.title&&(t.title=e.title.replace(/\\(["')])/g,"$1")),i&&"root"===i.type&&i.children.length>0&&(i.children[0]===e||n(i.children[0])&&i.children[1]===e)&&"html"===e.type&&r(e.value)))return null}o.ignoredProperties=i,t.exports=o}}),Ri=q({"src/language-markdown/printer-markdown.js":function(e,t){W();var n=Le(),r=n.getLast,i=n.getMinNotPresentContinuousCount,o=n.getMaxContinuousCount,a=n.getStringWidth,u=n.isNonEmptyArray,s=de(),l=s.builders,c=l.breakParent,p=l.join,f=l.line,d=l.literalline,h=l.markAsRoot,m=l.hardline,D=l.softline,b=l.ifBreak,E=l.fill,x=l.align,C=l.indent,A=l.group,w=l.hardlineWithoutBreakParent,S=s.utils,F=S.normalizeDoc,k=S.replaceTextEndOfLine,_=s.printer.printDocToString,T=Bi(),O=Ii().insertPragma,N=Ni(),j=N.locStart,P=N.locEnd,B=Li(),I=Mi(),L=Pi(),M=L.getFencedCodeBlockValue,R=L.hasGitDiffFriendlyOrderedList,q=L.splitText,V=L.punctuationPattern,U=L.INLINE_NODE_TYPES,z=L.INLINE_NODE_WRAPPER_TYPES,H=L.isAutolink,$=new Set(["importExport"]),G=["heading","tableCell","link","wikiLink"],K=new Set(["listItem","definition","footnoteDefinition"]);function J(e,t,n){var a=e.getValue();if(pe(e))return q(t.originalText.slice(a.position.start.offset,a.position.end.offset),t).map((function(n){return"word"===n.type?n.value:""===n.value?"":ne(e,n.value,t)}));switch(a.type){case"front-matter":return t.originalText.slice(a.position.start.offset,a.position.end.offset);case"root":return 0===a.children.length?"":[F(ie(e,t,n)),$.has(ae(a).type)?"":m];case"paragraph":return oe(e,t,n,{postprocessor:E});case"sentence":return oe(e,t,n);case"word":var u=a.value.replace(/\*/g,"\\$&").replace(new RegExp(["(^|".concat(V,")(_+)"),"(_+)(".concat(V,"|$)")].join("|"),"g"),(function(e,t,n,r,i){return(n?"".concat(t).concat(n):"".concat(r).concat(i)).replace(/_/g,"\\_")})),s=function(e,t,n){return"sentence"===e.type&&0===n},l=function(e,t,n){return H(e.children[n-1])};return u!==a.value&&(e.match(void 0,s,l)||e.match(void 0,s,(function(e,t,n){return"emphasis"===e.type&&0===n}),l))&&(u=u.replace(/^(\\?[*_])+/,(function(e){return e.replace(/\\/g,"")}))),u;case"whitespace":var c=e.getParentNode(),p=c.children.indexOf(a),y=c.children[p+1],g=y&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(y.value)?"never":t.proseWrap;return ne(e,a.value,{proseWrap:g});case"emphasis":var b;if(H(a.children[0]))b=t.originalText[a.position.start.offset];else{var w=e.getParentNode(),S=w.children.indexOf(a),_=w.children[S-1],T=w.children[S+1];b=_&&"sentence"===_.type&&_.children.length>0&&"word"===r(_.children).type&&!r(_.children).hasTrailingPunctuation||T&&"sentence"===T.type&&T.children.length>0&&"word"===T.children[0].type&&!T.children[0].hasLeadingPunctuation||te(e,"emphasis")?"*":"_"}return[b,oe(e,t,n),b];case"strong":return["**",oe(e,t,n),"**"];case"delete":return["~~",oe(e,t,n),"~~"];case"inlineCode":var O=i(a.value,"`"),N="`".repeat(O||1),B=O&&!/^\s/.test(a.value)?" ":"";return[N,B,a.value,B,N];case"wikiLink":return["[[","preserve"===t.proseWrap?a.value:a.value.replace(/[\t\n]+/g," "),"]]"];case"link":switch(t.originalText[a.position.start.offset]){case"<":var I="mailto:";return["<",a.url.startsWith(I)&&t.originalText.slice(a.position.start.offset+1,a.position.start.offset+1+I.length)!==I?a.url.slice(I.length):a.url,">"];case"[":return["[",oe(e,t,n),"](",fe(a.url,")"),he(a.title,t),")"];default:return t.originalText.slice(a.position.start.offset,a.position.end.offset)}case"image":return[""),he(a.title,t),")"];case"blockquote":return["> ",x("> ",oe(e,t,n))];case"heading":return["#".repeat(a.depth)+" ",oe(e,t,n)];case"code":if(a.isIndented){var L=" ".repeat(4);return x(L,[L].concat(v(k(a.value,m))))}var U=t.__inJsTemplate?"~":"`",z=U.repeat(Math.max(3,o(a.value,U)+1));return[z,a.lang||"",a.meta?" "+a.meta:"",m].concat(v(k(M(a,t.originalText),m)),[m,z]);case"html":var W=e.getParentNode(),G="root"===W.type&&r(W.children)===a?a.value.trimEnd():a.value,K=/^<!\x2D\x2D[\s\S]*\x2D\x2D>$/.test(G);return k(G,K?m:h(d));case"list":var J=Q(a,e.getParentNode()),Z=R(a,t);return oe(e,t,n,{processor:function(e,r){var i=u(),o=e.getValue();return 2===o.children.length&&"html"===o.children[1].type&&o.children[0].position.start.column!==o.children[1].position.start.column?[i,X(e,t,n,i)]:[i,x(" ".repeat(i.length),X(e,t,n,i))];function u(){var e=a.ordered?(0===r?a.start:Z?1:a.start+r)+(J%2===0?". ":") "):J%2===0?"- ":"* ";return a.isAligned||a.hasIndentedCodeblock?Y(e,t):e}}});case"thematicBreak":var ue=ee(e,"list");return-1===ue?"---":Q(e.getParentNode(ue),e.getParentNode(ue+1))%2===0?"***":"---";case"linkReference":return["[",oe(e,t,n),"]","full"===a.referenceType?["[",a.identifier,"]"]:"collapsed"===a.referenceType?"[]":""];case"imageReference":return"full"===a.referenceType?["![",a.alt||"","][",a.identifier,"]"]:["![",a.alt,"]","collapsed"===a.referenceType?"[]":""];case"definition":var se="always"===t.proseWrap?f:" ";return A(["[",a.identifier,"]:",C([se,fe(a.url),null===a.title?"":[se,he(a.title,t,!1)]])]);case"footnote":return["[^",oe(e,t,n),"]"];case"footnoteReference":return["[^",a.identifier,"]"];case"footnoteDefinition":var le=e.getParentNode().children[e.getName()+1],ce=1===a.children.length&&"paragraph"===a.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&a.children[0].position.start.line===a.children[0].position.end.line);return["[^",a.identifier,"]: ",ce?oe(e,t,n):A([x(" ".repeat(4),oe(e,t,n,{processor:function(e,t){return 0===t?A([D,n()]):n()}})),le&&"footnoteDefinition"===le.type?D:""])];case"table":return re(e,t,n);case"tableCell":return oe(e,t,n);case"break":return/\s/.test(t.originalText[a.position.start.offset])?[" ",h(d)]:["\\",m];case"liquidNode":return k(a.value,m);case"importExport":return[a.value,m];case"esComment":return["{/* ",a.value," */}"];case"jsx":return a.value;case"math":return["$$",m,a.value?[].concat(v(k(a.value,m)),[m]):"","$$"];case"inlineMath":return t.originalText.slice(j(a),P(a));default:throw new Error("Unknown markdown type ".concat(JSON.stringify(a.type)))}}function X(e,t,n,r){var i=e.getValue(),o=null===i.checked?"":i.checked?"[x] ":"[ ] ";return[o,oe(e,t,n,{processor:function(e,i){if(0===i&&"list"!==e.getValue().type)return x(" ".repeat(o.length),n());var a=" ".repeat(ye(t.tabWidth-r.length,0,3));return[a,x(a,n())]}})]}function Y(e,t){var n=r();return e+" ".repeat(n>=4?0:n);function r(){var n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}}function Q(e,t){return Z(e,t,(function(t){return t.ordered===e.ordered}))}function Z(e,t,n){var r,i=-1,o=g(t.children);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.type===e.type&&n(a)?i++:i=-1,a===e)return i}}catch(u){o.e(u)}finally{o.f()}}function ee(e,t){for(var n,r=Array.isArray(t)?t:[t],i=-1;n=e.getParentNode(++i);)if(r.includes(n.type))return i;return-1}function te(e,t){var n=ee(e,t);return-1===n?null:e.getParentNode(n)}function ne(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return m;var r="always"===n.proseWrap&&!te(e,G);return""!==t?r?f:" ":r?D:""}function re(e,t,n){var r=e.getValue(),i=[],o=e.map((function(e){return e.map((function(e,r){var o=_(n(),t).formatted,u=a(o);return i[r]=Math.max(i[r]||3,u),{text:o,width:u}}),"children")}),"children"),u=l(!1);if("never"!==t.proseWrap)return[c,u];var s=l(!0);return[c,A(b(s,u))];function l(e){var t=[d(o[0],e),f(e)];return o.length>1&&t.push(p(w,o.slice(1).map((function(t){return d(t,e)})))),p(w,t)}function f(e){var t=i.map((function(t,n){var i=r.align[n],o="center"===i||"left"===i?":":"-",a="center"===i||"right"===i?":":"-",u=e?"-":"-".repeat(t-2);return"".concat(o).concat(u).concat(a)}));return"| ".concat(t.join(" | ")," |")}function d(e,t){var n=e.map((function(e,n){var o=e.text,a=e.width;if(t)return o;var u=i[n]-a,s=r.align[n],l=0;"right"===s?l=u:"center"===s&&(l=Math.floor(u/2));var c=u-l;return"".concat(" ".repeat(l)).concat(o).concat(" ".repeat(c))}));return"| ".concat(n.join(" | ")," |")}}function ie(e,t,n){var r,i=[],o=null,a=e.getValue().children,u=g(a.entries());try{for(u.s();!(r=u.n()).done;){var s=y(r.value,2),l=s[0],c=s[1];switch(ue(c)){case"start":null===o&&(o={index:l,offset:c.position.end.offset});break;case"end":null!==o&&(i.push({start:o,end:{index:l,offset:c.position.start.offset}}),o=null)}}}catch(p){u.e(p)}finally{u.f()}return oe(e,t,n,{processor:function(e,r){if(i.length>0){var o=i[0];if(r===o.start.index)return[a[o.start.index].value,t.originalText.slice(o.start.offset,o.end.offset),a[o.end.index].value];if(o.start.index<r&&r<o.end.index)return!1;if(r===o.end.index)return i.shift(),!1}return n()}})}function oe(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.postprocessor,a=i.processor||function(){return n()},u=e.getValue(),s=[];return e.each((function(e,n){var i=e.getValue(),o=a(e,n);if(!1!==o){var l={parts:s,prevNode:r,parentNode:u,options:t};se(i,l)&&(s.push(m),r&&$.has(r.type)||(le(i,l)||ce(i,l))&&s.push(m),ce(i,l)&&s.push(m)),s.push(o),r=i}}),"children"),o?o(s):s}function ae(e){for(var t=e;u(t.children);)t=r(t.children);return t}function ue(e){var t,n;return"html"===e.type?t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/):("esComment"===e.type?n=e:"paragraph"===e.type&&1===e.children.length&&"esComment"===e.children[0].type&&(n=e.children[0]),n&&(t=n.value.match(/^prettier-ignore(?:-(start|end))?$/))),!!t&&(t[1]||"next")}function se(e,t){var n=0===t.parts.length,r=U.includes(e.type),i="html"===e.type&&z.includes(t.parentNode.type);return!n&&!r&&!i}function le(e,t){var n,r,i,o=(t.prevNode&&t.prevNode.type)===e.type&&K.has(e.type),a="listItem"===t.parentNode.type&&!t.parentNode.loose,u="listItem"===(null===(n=t.prevNode)||void 0===n?void 0:n.type)&&t.prevNode.loose,s="next"===ue(t.prevNode),l="html"===e.type&&"html"===(null===(r=t.prevNode)||void 0===r?void 0:r.type)&&t.prevNode.position.end.line+1===e.position.start.line,c="html"===e.type&&"listItem"===t.parentNode.type&&"paragraph"===(null===(i=t.prevNode)||void 0===i?void 0:i.type)&&t.prevNode.position.end.line+1===e.position.start.line;return u||!(o||a||s||l||c)}function ce(e,t){var n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function pe(e){var t=te(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}function fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[" "].concat(v(Array.isArray(t)?t:[t]));return new RegExp(n.map((function(e){return"\\".concat(e)})).join("|")).test(e)?"<".concat(e,">"):e}function he(e,t){if(!e)return"";if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])return" "+he(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");var n=e.split("'").length-1,r=e.split('"').length-1,i=n>r?'"':r>n||t.singleQuote?"'":'"';return e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp("(".concat(i,")"),"g"),"\\$1"),"".concat(i).concat(e).concat(i)}function ye(e,t,n){return e<t?t:e>n?n:e}function me(e){var t=Number(e.getName());return 0!==t&&"next"===ue(e.getParentNode().children[t-1])}t.exports={preprocess:B,print:J,embed:T,massageAstNode:I,hasPrettierIgnore:me,insertPragma:O}}}),qi=q({"src/language-markdown/options.js":function(e,t){W();var n=Vr();t.exports={proseWrap:n.proseWrap,singleQuote:n.singleQuote}}}),Vi=q({"src/language-markdown/parsers.js":function(){W()}}),Ui=q({"node_modules/linguist-languages/data/Markdown.json":function(e,t){t.exports={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222}}}),zi=q({"src/language-markdown/index.js":function(e,t){W();var n=En(),r=Ri(),i=qi(),o=Vi(),a=[n(Ui(),(function(e){return{since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[].concat(v(e.filenames),["README"]),extensions:e.extensions.filter((function(e){return".mdx"!==e}))}})),n(Ui(),(function(){return{name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}}))],u={mdast:r};t.exports={languages:a,options:i,printers:u,parsers:o}}}),Hi=q({"src/language-html/clean.js":function(e,t){W();var n=Le().isFrontMatterNode,r=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function i(e,t){if("text"===e.type||"comment"===e.type||n(e)||"yaml"===e.type||"toml"===e.type)return null;"attribute"===e.type&&delete t.value,"docType"===e.type&&delete t.value}i.ignoredProperties=r,t.exports=i}}),Wi=q({"src/language-html/constants.evaluate.js":function(e,t){t.exports={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"}}}),$i=q({"src/language-html/utils/is-unknown-namespace.js":function(e,t){function n(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}W(),t.exports=n}}),Gi=q({"src/language-html/utils/index.js":function(e,t){W();var n=Le(),r=n.inferParserByLanguage,i=n.isFrontMatterNode,o=de(),a=o.builders,u=a.line,s=a.hardline,l=a.join,c=o.utils,p=c.getDocParts,f=c.replaceTextEndOfLine,d=Wi(),h=d.CSS_DISPLAY_TAGS,m=d.CSS_DISPLAY_DEFAULT,v=d.CSS_WHITE_SPACE_TAGS,D=d.CSS_WHITE_SPACE_DEFAULT,b=$i(),E=new Set(["\t","\n","\f","\r"," "]),x=function(e){return e.replace(/^[\t\n\f\r ]+/,"")},C=function(e){return e.replace(/[\t\n\f\r ]+$/,"")},A=function(e){return x(C(e))},w=function(e){return e.replace(/^[\t\f\r ]*\n/g,"")},S=function(e){return w(C(e))},F=function(e){return e.split(/[\t\n\f\r ]+/)},k=function(e){return e.match(/^[\t\n\f\r ]*/)[0]},_=function(e){var t=e.match(/^([\t\n\f\r ]*)([\s\S]*?)([\t\n\f\r ]*)$/),n=y(t,4),r=n[1],i=n[2];return{leadingWhitespace:r,trailingWhitespace:n[3],text:i}},T=function(e){return/[\t\n\f\r ]/.test(e)};function O(e,t){return!!("ieConditionalComment"===e.type&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||"ieConditionalComment"===e.type&&!e.complete||le(e)&&e.children.some((function(e){return"text"!==e.type&&"interpolation"!==e.type}))||xe(e,t)&&!B(e)&&"interpolation"!==e.type)}function N(e){return!("attribute"===e.type||!e.parent||!e.prev)&&j(e.prev)}function j(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}function P(e){return"text"===e.type||"comment"===e.type}function B(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||b(e)&&("script"===e.name||"style"===e.name))}function I(e){return e.children&&!B(e)}function L(e){return B(e)||"interpolation"===e.type||M(e)}function M(e){return he(e).startsWith("pre")}function R(e,t){var n=r();return n&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:n;function r(){return!i(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!le(e.parent)||!(!e.prev&&("root"===e.parent.type||le(e)&&e.parent||B(e.parent)||be(e.parent,t)||!ie(e.parent.cssDisplay))||e.prev&&!ue(e.prev.cssDisplay))))}}function q(e,t){return!i(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!le(e.parent)||!(!e.next&&("root"===e.parent.type||le(e)&&e.parent||B(e.parent)||be(e.parent,t)||!oe(e.parent.cssDisplay))||e.next&&!ae(e.next.cssDisplay))))}function V(e){return se(e.cssDisplay)&&!B(e)}function U(e){return i(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function z(e){return H(e)||"element"===e.type&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some((function(e){return Z(e)})))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&J(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||X(e.lastChild))}function H(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function $(e){return Y(e)||e.prev&&G(e.prev)||K(e)}function G(e){return Y(e)||"element"===e.type&&"br"===e.fullName||K(e)}function K(e){return J(e)&&X(e)}function J(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function X(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Y(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Q(e){return e.lastChild?Q(e.lastChild):e}function Z(e){return e.children&&e.children.some((function(e){return"text"!==e.type}))}function ee(e){var t=e.attrMap,n=t.type,r=t.lang;return"module"===n||"text/javascript"===n||"text/babel"===n||"application/javascript"===n||"jsx"===r?"babel":"application/x-typescript"===n||"ts"===r||"tsx"===r?"typescript":"text/markdown"===n?"markdown":"text/html"===n?"html":n&&(n.endsWith("json")||n.endsWith("importmap"))||"speculationrules"===n?"json":"text/x-handlebars-template"===n?"glimmer":void 0}function te(e,t){var n=e.attrMap.lang;return n&&"postcss"!==n&&"css"!==n?"scss"===n?"scss":"less"===n?"less":"stylus"===n?r("stylus",t):void 0:"css"}function ne(e,t){return"script"!==e.name||e.attrMap.src?"style"===e.name?te(e,t):t&&xe(e,t)?ee(e)||!("src"in e.attrMap)&&r(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?ee(e):"babel"}function re(e){return"block"===e||"list-item"===e||e.startsWith("table")}function ie(e){return!re(e)&&"inline-block"!==e}function oe(e){return!re(e)&&"inline-block"!==e}function ae(e){return!re(e)}function ue(e){return!re(e)}function se(e){return!re(e)&&"inline-block"!==e}function le(e){return he(e).startsWith("pre")}function ce(e,t){for(var n=0,r=e.stack.length-1;r>=0;r--){var i=e.stack[r];i&&"object"==typeof i&&!Array.isArray(i)&&t(i)&&n++}return n}function pe(e,t){for(var n=e;n;){if(t(n))return!0;n=n.parent}return!1}function fe(e,t){if(e.prev&&"comment"===e.prev.type){var n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(n)return n[1]}var r=!1;if("element"===e.type&&"svg"===e.namespace){if(!pe(e,(function(e){return"svg:foreignObject"===e.fullName})))return"svg"===e.name?"inline-block":"block";r=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"vue"===t.parser&&e.parent&&"root"===e.parent.type?"block":"element"===e.type&&(!e.namespace||r||b(e))&&h[e.name]||m}}function he(e){return"element"===e.type&&(!e.namespace||b(e))&&v[e.name]||D}function ye(e){var t,n=Number.POSITIVE_INFINITY,r=g(e.split("\n"));try{for(r.s();!(t=r.n()).done;){var i=t.value;if(0!==i.length){if(!E.has(i[0]))return 0;var o=k(i).length;i.length!==o&&o<n&&(n=o)}}}catch(a){r.e(a)}finally{r.f()}return n===Number.POSITIVE_INFINITY?0:n}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye(e);return 0===t?e:e.split("\n").map((function(e){return e.slice(t)})).join("\n")}function ve(e,t){for(var n=0,r=0;r<e.length;r++)e[r]===t&&n++;return n}function ge(e){return e.replace(/'/g,"'").replace(/"/g,'"')}var De=new Set(["template","style","script"]);function be(e,t){return Ee(e,t)&&!De.has(e.fullName)}function Ee(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function xe(e,t){return Ee(e,t)&&(be(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}function Ce(e){var t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")}function Ae(e,t){var n=e.parent;if(!Ee(n,t))return!1;var r=n.fullName,i=e.fullName;return"script"===r&&"setup"===i||"style"===r&&"vars"===i}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?f(t):f(me(S(t)),s):p(l(u,F(t)))}function Se(e,t){return Ee(e,t)&&"script"===e.name}t.exports={htmlTrim:A,htmlTrimPreserveIndentation:S,hasHtmlWhitespace:T,getLeadingAndTrailingHtmlWhitespace:_,canHaveInterpolation:I,countChars:ve,countParents:ce,dedentString:me,forceBreakChildren:H,forceBreakContent:z,forceNextEmptyLine:U,getLastDescendant:Q,getNodeCssStyleDisplay:fe,getNodeCssStyleWhiteSpace:he,hasPrettierIgnore:N,inferScriptParser:ne,isVueCustomBlock:be,isVueNonHtmlBlock:xe,isVueScriptTag:Se,isVueSlotAttribute:Ce,isVueSfcBindingsAttribute:Ae,isVueSfcBlock:Ee,isDanglingSpaceSensitiveNode:V,isIndentationSensitiveNode:M,isLeadingSpaceSensitiveNode:R,isPreLikeNode:le,isScriptLikeTag:B,isTextLikeNode:P,isTrailingSpaceSensitiveNode:q,isWhitespaceSensitiveNode:L,isUnknownNamespace:b,preferHardlineAsLeadingSpaces:$,preferHardlineAsTrailingSpaces:G,shouldPreserveContent:O,unescapeQuoteEntities:ge,getTextValueParts:we}}}),Ki=q({"node_modules/angular-html-parser/lib/compiler/src/chars.js":function(e){function t(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP}function n(t){return e.$0<=t&&t<=e.$9}function r(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z}function i(t){return t>=e.$a&&t<=e.$f||t>=e.$A&&t<=e.$F||n(t)}function o(t){return t===e.$LF||t===e.$CR}function a(t){return e.$0<=t&&t<=e.$7}W(),Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=t,e.isDigit=n,e.isAsciiLetter=r,e.isAsciiHexDigit=i,e.isNewLine=o,e.isOctalDigit=a}}),Ji=q({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(t,n,r){d(this,e),this.filePath=t,this.name=n,this.members=r}return h(e,[{key:"assertNoMembers",value:function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}]),e}();e.StaticSymbol=t;var n=function(){function e(){d(this,e),this.cache=new Map}return h(e,[{key:"get",value:function(e,n,r){var i=(r=r||[]).length?".".concat(r.join(".")):"",o='"'.concat(e,'".').concat(n).concat(i),a=this.cache.get(o);return a||(a=new t(e,n,r),this.cache.set(o,a)),a}}]),e}();e.StaticSymbolCache=n}}),Xi=q({"node_modules/angular-html-parser/lib/compiler/src/util.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=/-+([a-z0-9])/g;function n(e){return e.replace(t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()}))}function r(e,t){return o(e,":",t)}function i(e,t){return o(e,".",t)}function o(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function a(e,t,n){return Array.isArray(e)?t.visitArray(e,n):b(e)?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n)}function u(e){return null!=e}function s(e){return void 0===e?null:e}e.dashCaseToCamelCase=n,e.splitAtColon=r,e.splitAtPeriod=i,e.visitValue=a,e.isDefined=u,e.noUndefined=s;var l=function(){function e(){d(this,e)}return h(e,[{key:"visitArray",value:function(e,t){var n=this;return e.map((function(e){return a(e,n,t)}))}},{key:"visitStringMap",value:function(e,t){var n=this,r={};return Object.keys(e).forEach((function(i){r[i]=a(e[i],n,t)})),r}},{key:"visitPrimitive",value:function(e,t){return e}},{key:"visitOther",value:function(e,t){return e}}]),e}();function c(e){throw new Error("Internal Error: ".concat(e))}function p(e,t){var n=Error(e);return n[f]=!0,t&&(n[y]=t),n}e.ValueTransformer=l,e.SyncAsync={assertSync:function(e){if(A(e))throw new Error("Illegal state: value cannot be a promise");return e},then:function(e,t){return A(e)?e.then(t):t(e)},all:function(e){return e.some(A)?Promise.all(e):e}},e.error=c,e.syntaxError=p;var f="ngSyntaxError",y="ngParseErrors";function m(e){return e[f]}function v(e){return e[y]||[]}function g(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}e.isSyntaxError=m,e.getParseErrors=v,e.escapeRegExp=g;var D=Object.getPrototypeOf({});function b(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===D}function E(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}function x(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(x).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);if(!e.toString)return"object";var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function C(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function A(e){return!!e&&"function"==typeof e.then}e.utf8Encode=E,e.stringify=x,e.resolveForwardRef=C,e.isPromise=A;var w=h((function e(t){d(this,e),this.full=t;var n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}));e.Version=w;var S=typeof window<"u"&&window,F=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,k=typeof globalThis<"u"&&globalThis||S||F;e.global=k}}),Yi=q({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ji(),n=Xi(),r=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function i(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=i;var o,a,u=0;function s(e){if(!e||!e.reference)return null;var r=e.reference;if(r instanceof t.StaticSymbol)return r.name;if(r.__anonymousType)return r.__anonymousType;var o=n.stringify(r);return o.indexOf("(")>=0?(o="anonymous_".concat(u++),r.__anonymousType=o):o=i(o),o}function l(e){var r=e.reference;return r instanceof t.StaticSymbol?r.filePath:"./".concat(n.stringify(r))}function c(e,t){return"View_".concat(s({reference:e}),"_").concat(t)}function p(e){return"RenderType_".concat(s({reference:e}))}function f(e){return"HostView_".concat(s({reference:e}))}function y(e){return"".concat(s({reference:e}),"NgFactory")}function m(e){return null!=e.value?i(e.value):s(e.identifier)}function v(e){return null!=e.identifier?e.identifier.reference:e.value}e.identifierName=s,e.identifierModuleUrl=l,e.viewClassName=c,e.rendererTypeName=p,e.hostViewClassName=f,e.componentFactoryName=y,(a=o=e.CompileSummaryKind||(e.CompileSummaryKind={}))[a.Pipe=0]="Pipe",a[a.Directive=1]="Directive",a[a.NgModule=2]="NgModule",a[a.Injectable=3]="Injectable",e.tokenName=m,e.tokenReference=v;var g=h((function e(){d(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.moduleUrl,r=t.styles,i=t.styleUrls;this.moduleUrl=n||null,this.styles=w(r),this.styleUrls=w(i)}));e.CompileStylesheetMetadata=g;var D=function(){function e(t){d(this,e);var n=t.encapsulation,r=t.template,i=t.templateUrl,o=t.htmlAst,a=t.styles,u=t.styleUrls,s=t.externalStylesheets,l=t.animations,c=t.ngContentSelectors,p=t.interpolation,f=t.isInline,h=t.preserveWhitespaces;if(this.encapsulation=n,this.template=r,this.templateUrl=i,this.htmlAst=o,this.styles=w(a),this.styleUrls=w(u),this.externalStylesheets=w(s),this.animations=l?F(l):[],this.ngContentSelectors=c||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p,this.isInline=f,this.preserveWhitespaces=h}return h(e,[{key:"toSummary",value:function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}]),e}();e.CompileTemplateMetadata=D;var b=function(){function e(t){d(this,e);var n=t.isHost,r=t.type,i=t.isComponent,o=t.selector,a=t.exportAs,u=t.changeDetection,s=t.inputs,l=t.outputs,c=t.hostListeners,p=t.hostProperties,f=t.hostAttributes,h=t.providers,y=t.viewProviders,m=t.queries,v=t.guards,g=t.viewQueries,D=t.entryComponents,b=t.template,E=t.componentViewType,x=t.rendererType,C=t.componentFactory;this.isHost=!!n,this.type=r,this.isComponent=i,this.selector=o,this.exportAs=a,this.changeDetection=u,this.inputs=s,this.outputs=l,this.hostListeners=c,this.hostProperties=p,this.hostAttributes=f,this.providers=w(h),this.viewProviders=w(y),this.queries=w(m),this.guards=v,this.viewQueries=w(g),this.entryComponents=w(D),this.template=b,this.componentViewType=E,this.rendererType=x,this.componentFactory=C}return h(e,[{key:"toSummary",value:function(){return{summaryKind:o.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}],[{key:"create",value:function(t){var i=t.isHost,o=t.type,a=t.isComponent,u=t.selector,s=t.exportAs,l=t.changeDetection,c=t.inputs,p=t.outputs,f=t.host,d=t.providers,h=t.viewProviders,y=t.queries,m=t.guards,v=t.viewQueries,g=t.entryComponents,D=t.template,b=t.componentViewType,E=t.rendererType,x=t.componentFactory,C={},A={},w={};null!=f&&Object.keys(f).forEach((function(e){var t=f[e],n=e.match(r);null===n?w[e]=t:null!=n[1]?A[n[1]]=t:null!=n[2]&&(C[n[2]]=t)}));var S={};null!=c&&c.forEach((function(e){var t=n.splitAtColon(e,[e,e]);S[t[0]]=t[1]}));var F={};return null!=p&&p.forEach((function(e){var t=n.splitAtColon(e,[e,e]);F[t[0]]=t[1]})),new e({isHost:i,type:o,isComponent:!!a,selector:u,exportAs:s,changeDetection:l,inputs:S,outputs:F,hostListeners:C,hostProperties:A,hostAttributes:w,providers:d,viewProviders:h,queries:y,guards:m,viewQueries:v,entryComponents:g,template:D,componentViewType:b,rendererType:E,componentFactory:x})}}]),e}();e.CompileDirectiveMetadata=b;var E=function(){function e(t){d(this,e);var n=t.type,r=t.name,i=t.pure;this.type=n,this.name=r,this.pure=!!i}return h(e,[{key:"toSummary",value:function(){return{summaryKind:o.Pipe,type:this.type,name:this.name,pure:this.pure}}}]),e}();e.CompilePipeMetadata=E;var x=h((function e(){d(this,e)}));e.CompileShallowModuleMetadata=x;var C=function(){function e(t){d(this,e);var n=t.type,r=t.providers,i=t.declaredDirectives,o=t.exportedDirectives,a=t.declaredPipes,u=t.exportedPipes,s=t.entryComponents,l=t.bootstrapComponents,c=t.importedModules,p=t.exportedModules,f=t.schemas,h=t.transitiveModule,y=t.id;this.type=n||null,this.declaredDirectives=w(i),this.exportedDirectives=w(o),this.declaredPipes=w(a),this.exportedPipes=w(u),this.providers=w(r),this.entryComponents=w(s),this.bootstrapComponents=w(l),this.importedModules=w(c),this.exportedModules=w(p),this.schemas=w(f),this.id=y||null,this.transitiveModule=h||null}return h(e,[{key:"toSummary",value:function(){var e=this.transitiveModule;return{summaryKind:o.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}}]),e}();e.CompileNgModuleMetadata=C;var A=function(){function e(){d(this,e),this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return h(e,[{key:"addProvider",value:function(e,t){this.providers.push({provider:e,module:t})}},{key:"addDirective",value:function(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}},{key:"addExportedDirective",value:function(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}},{key:"addPipe",value:function(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}},{key:"addExportedPipe",value:function(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}},{key:"addModule",value:function(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}},{key:"addEntryComponent",value:function(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}}]),e}();function w(e){return e||[]}e.TransitiveCompileNgModuleMetadata=A;var S=h((function e(t,n){d(this,e);var r=n.useClass,i=n.useValue,o=n.useExisting,a=n.useFactory,u=n.deps,s=n.multi;this.token=t,this.useClass=r||null,this.useValue=i,this.useExisting=o,this.useFactory=a||null,this.dependencies=u||null,this.multi=!!s}));function F(e){return e.reduce((function(e,t){var n=Array.isArray(t)?F(t):t;return e.concat(n)}),[])}function k(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function _(e,n,r){var i;return i=r.isInline?n.type.reference instanceof t.StaticSymbol?"".concat(n.type.reference.filePath,".").concat(n.type.reference.name,".html"):"".concat(s(e),"/").concat(s(n.type),".html"):r.templateUrl,n.type.reference instanceof t.StaticSymbol?i:k(i)}function T(e,t){var n=e.moduleUrl.split(/\/\\/g),r=n[n.length-1];return k("css/".concat(t).concat(r,".ngstyle.js"))}function O(e){return k("".concat(s(e.type),"/module.ngfactory.js"))}function N(e,t){return k("".concat(s(e),"/").concat(s(t.type),".ngfactory.js"))}e.ProviderMeta=S,e.flatten=F,e.templateSourceUrl=_,e.sharedStylesheetJitUrl=T,e.ngModuleJitUrl=O,e.templateJitUrl=N}}),Qi=q({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js":function(e){W(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ki(),n=Yi(),r=function(){function e(t,n,r,i){d(this,e),this.file=t,this.offset=n,this.line=r,this.col=i}return h(e,[{key:"toString",value:function(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function(n){for(var r=this.file.content,i=r.length,o=this.offset,a=this.line,u=this.col;o>0&&n<0;)if(o--,n++,r.charCodeAt(o)==t.$LF){a--;var s=r.substr(0,o-1).lastIndexOf(String.fromCharCode(t.$LF));u=s>0?o-s:o}else u--;for(;o<i&&n>0;){var l=r.charCodeAt(o);o++,n--,l==t.$LF?(a++,u=0):u++}return new e(this.file,o,a,u)}},{key:"getContext",value:function(e,t){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,a=0;o<e&&r>0&&(o++,"\n"!=n[--r]||++a!=t););for(o=0,a=0;o<e&&i<n.length-1&&(o++,"\n"!=n[++i]||++a!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null}}]),e}();e.ParseLocation=r;var i=h((function e(t,n){d(this,e),this.content=t,this.url=n}));e.ParseSourceFile=i;var o,a,u=function(){function e(t,n){d(this,e);var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.start=t,this.end=n,this.details=r}return h(e,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),e}();e.ParseSourceSpan=u,e.EMPTY_PARSE_LOCATION=new r(new i("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new u(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),(a=o=e.ParseErrorLevel||(e.ParseErrorLevel={}))[a.WARNING=0]="WARNING",a[a.ERROR=1]="ERROR";var s=function(){function e(t,n){d(this,e);var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.ERROR;this.span=t,this.msg=n,this.level=r}return h(e,[{key:"contextualMessage",value:function(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(o[this.level]," ->]").concat(e.after,'")'):this.msg}},{key:"toString",value:function(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}}]),e}();function l(e,t){var o=n.identifierModuleUrl(t),a=null!=o?"in ".concat(e," ").concat(n.identifierName(t)," in ").concat(o):"in ".concat(e," ").concat(n.identifierName(t)),s=new i("",a);return new u(new r(s,-1,-1,-1),new r(s,-1,-1,-1))}function c(e,t,n){var o="in ".concat(e," ").concat(t," in ").concat(n),a=new i("",o);return new u(new r(a,-1,-1,-1),new r(a,-1,-1,-1))}e.ParseError=s,e.typeSourceSpan=l,e.r3JitTypeSourceSpan=c}}),Zi=q({"src/language-html/print-preprocess.js":function(e,t){W();var n=Qi().ParseSourceSpan,r=Gi(),i=r.htmlTrim,o=r.getLeadingAndTrailingHtmlWhitespace,a=r.hasHtmlWhitespace,u=r.canHaveInterpolation,s=r.getNodeCssStyleDisplay,l=r.isDanglingSpaceSensitiveNode,c=r.isIndentationSensitiveNode,p=r.isLeadingSpaceSensitiveNode,f=r.isTrailingSpaceSensitiveNode,d=r.isWhitespaceSensitiveNode,h=r.isVueScriptTag,y=[v,D,E,C,A,F,w,S,k,x,_];function m(e,t){var n,r=g(y);try{for(r.s();!(n=r.n()).done;)(0,n.value)(e,t)}catch(i){r.e(i)}finally{r.f()}return e}function v(e){e.walk((function(e){if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){var t=e.children[0];1===t.value.length?e.removeChild(t):t.value=t.value.slice(1)}}))}function D(e){var t=function(e){return"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset};e.walk((function(e){if(e.children)for(var r=0;r<e.children.length;r++){var i=e.children[r];if(t(i)){var o=i.prev,a=i.firstChild;e.removeChild(o),r--;var u=new n(o.sourceSpan.start,a.sourceSpan.end),s=new n(u.start,i.sourceSpan.end);i.condition=o.condition,i.sourceSpan=s,i.startSourceSpan=u,i.removeChild(a)}}}))}function b(e,t,r){e.walk((function(e){if(e.children)for(var i=0;i<e.children.length;i++){var o=e.children[i];if("text"===o.type||t(o)){"text"!==o.type&&(o.type="text",o.value=r(o));var a=o.prev;!a||"text"!==a.type||(a.value+=o.value,a.sourceSpan=new n(a.sourceSpan.start,o.sourceSpan.end),e.removeChild(o),i--)}}}))}function E(e){return b(e,(function(e){return"cdata"===e.type}),(function(e){return"<![CDATA[".concat(e.value,"]]>")}))}function x(e){var t=function(e){return"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!a(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type};e.walk((function(e){if(e.children)for(var r=0;r<e.children.length;r++){var i=e.children[r];if(t(i)){var o=i.prev,a=i.next;o.value+="<".concat(i.rawName,">")+i.firstChild.value+"</".concat(i.rawName,">")+a.value,o.sourceSpan=new n(o.sourceSpan.start,a.sourceSpan.end),o.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,o.hasTrailingSpaces=a.hasTrailingSpaces,e.removeChild(i),r--,e.removeChild(a)}}}))}function C(e,t){if("html"!==t.parser){var r=/\{\{([\s\S]+?)\}\}/;e.walk((function(e){if(u(e)){var t,i=g(e.children);try{for(i.s();!(t=i.n()).done;){var o=t.value;if("text"===o.type){for(var a=o.sourceSpan.start,s=null,l=o.value.split(r),c=0;c<l.length;c++,a=s){var p=l[c];c%2!==0?(s=a.moveBy(p.length+4),e.insertChildBefore(o,{type:"interpolation",sourceSpan:new n(a,s),children:0===p.length?[]:[{type:"text",value:p,sourceSpan:new n(a.moveBy(2),s.moveBy(-2))}]})):(s=a.moveBy(p.length),p.length>0&&e.insertChildBefore(o,{type:"text",value:p,sourceSpan:new n(a,s)}))}e.removeChild(o)}}}catch(f){i.e(f)}finally{i.f()}}}))}}function A(e){e.walk((function(e){if(e.children){if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===i(e.children[0].value).length)return e.hasDanglingSpaces=e.children.length>0,void(e.children=[]);var t=d(e),r=c(e);if(!t)for(var a=0;a<e.children.length;a++){var u=e.children[a];if("text"===u.type){var s=o(u.value),l=s.leadingWhitespace,p=s.text,f=s.trailingWhitespace,h=u.prev,y=u.next;p?(u.value=p,u.sourceSpan=new n(u.sourceSpan.start.moveBy(l.length),u.sourceSpan.end.moveBy(-f.length)),l&&(h&&(h.hasTrailingSpaces=!0),u.hasLeadingSpaces=!0),f&&(u.hasTrailingSpaces=!0,y&&(y.hasLeadingSpaces=!0))):(e.removeChild(u),a--,(l||f)&&(h&&(h.hasTrailingSpaces=!0),y&&(y.hasLeadingSpaces=!0)))}}e.isWhitespaceSensitive=t,e.isIndentationSensitive=r}}))}function w(e){e.walk((function(e){e.isSelfClosing=!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)}))}function S(e,t){e.walk((function(e){"element"===e.type&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))}))}function F(e,t){e.walk((function(e){e.cssDisplay=s(e,t)}))}function k(e,t){e.walk((function(e){var n=e.children;if(n){if(0===n.length)return void(e.isDanglingSpaceSensitive=l(e));var r,i=g(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.isLeadingSpaceSensitive=p(o,t),o.isTrailingSpaceSensitive=f(o,t)}}catch(s){i.e(s)}finally{i.f()}for(var a=0;a<n.length;a++){var u=n[a];u.isLeadingSpaceSensitive=(0===a||u.prev.isTrailingSpaceSensitive)&&u.isLeadingSpaceSensitive,u.isTrailingSpaceSensitive=(a===n.length-1||u.next.isLeadingSpaceSensitive)&&u.isTrailingSpaceSensitive}}}))}function _(e,t){if("vue"===t.parser){var n=e.children.find((function(e){return h(e,t)}));if(!n)return;var r=n.attrMap.lang;("ts"===r||"typescript"===r)&&(t.__should_parse_vue_template_with_ts=!0)}}t.exports=m}}),eo=q({"src/language-html/pragma.js":function(e,t){function n(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(e)}function r(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}W(),t.exports={hasPragma:n,insertPragma:r}}}),to=q({"src/language-html/loc.js":function(e,t){function n(e){return e.sourceSpan.start.offset}function r(e){return e.sourceSpan.end.offset}W(),t.exports={locStart:n,locEnd:r}}}),no=q({"src/language-html/print/tag.js":function(e,t){W();var n=dn(),r=Le().isNonEmptyArray,i=de(),o=i.builders,a=o.indent,u=o.join,s=o.line,l=o.softline,c=o.hardline,p=i.utils.replaceTextEndOfLine,f=to(),d=f.locStart,h=f.locEnd,y=Gi(),m=y.isTextLikeNode,v=y.getLastDescendant,g=y.isPreLikeNode,D=y.hasPrettierIgnore,b=y.shouldPreserveContent,E=y.isVueSfcBlock;function x(e,t){return[e.isSelfClosing?"":C(e,t),A(e,t)]}function C(e,t){return e.lastChild&&N(e.lastChild)?"":[w(e,t),F(e,t)]}function A(e,t){return(e.next?T(e.next):O(e.parent))?"":[k(e,t),S(e,t)]}function w(e,t){return O(e)?k(e.lastChild,t):""}function S(e,t){return N(e)?F(e.parent,t):j(e)?V(e.next):""}function F(e,t){if(n(!e.isSelfClosing),_(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName)}}function k(e,t){if(_(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function _(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(D(e)||b(e.parent,t))}function T(e){return e.prev&&"docType"!==e.prev.type&&!m(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function O(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!m(v(e.lastChild))&&!g(e)}function N(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&m(v(e))}function j(e){return e.next&&!m(e.next)&&m(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function P(e){var t=e.trim().match(/^prettier\x2Dignore\x2Dattribute(?:\s+([\s\S]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))}function B(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function I(e,t,n){var i=e.getValue();if(!r(i.attrs))return i.isSelfClosing?" ":"";var o=i.prev&&"comment"===i.prev.type&&P(i.prev.value),f="boolean"==typeof o?function(){return o}:Array.isArray(o)?function(e){return o.includes(e.rawName)}:function(){return!1},y=e.map((function(e){var r=e.getValue();return f(r)?p(t.originalText.slice(d(r),h(r))):n()}),"attrs"),m="element"===i.type&&"script"===i.fullName&&1===i.attrs.length&&"src"===i.attrs[0].fullName&&0===i.children.length,v=t.singleAttributePerLine&&i.attrs.length>1&&!E(i,t)?c:s,g=[a([m?" ":s,u(v,y)])];return i.firstChild&&B(i.firstChild)||i.isSelfClosing&&O(i.parent)||m?g.push(i.isSelfClosing?" ":""):g.push(t.bracketSameLine?i.isSelfClosing?" ":"":i.isSelfClosing?s:l),g}function L(e){return e.firstChild&&B(e.firstChild)?"":U(e)}function M(e,t,n){var r=e.getValue();return[R(r,t),I(e,t,n),r.isSelfClosing?"":L(r)]}function R(e,t){return e.prev&&j(e.prev)?"":[q(e,t),V(e)]}function q(e,t){return B(e)?U(e.parent):T(e)?k(e.prev,t):""}function V(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return"\x3c!--[if ".concat(e.condition,"]>\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function U(e){switch(n(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}t.exports={printClosingTag:x,printClosingTagStart:C,printClosingTagStartMarker:F,printClosingTagEndMarker:k,printClosingTagSuffix:S,printClosingTagEnd:A,needsToBorrowLastChildClosingTagEndMarker:O,needsToBorrowParentClosingTagStartMarker:N,needsToBorrowPrevClosingTagEndMarker:T,printOpeningTag:M,printOpeningTagStart:R,printOpeningTagPrefix:q,printOpeningTagStartMarker:V,printOpeningTagEndMarker:U,needsToBorrowNextOpeningTagStartMarker:j,needsToBorrowParentOpeningTagEndMarker:B}}}),ro=q({"node_modules/parse-srcset/src/parse-srcset.js":function(n,a){var u;W(),u=function(){return function(e,t){var n=t&&t.logger||console;function r(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function i(t){var n,r=t.exec(e.substring(v));if(r)return n=r[0],v+=n.length,n}for(var o,a,u,s,l,c=e.length,p=/^[ \t\n\r\u000c]+/,f=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,y=/^\d+$/,m=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,v=0,g=[];;){if(i(f),v>=c)return g;o=i(d),a=[],","===o.slice(-1)?(o=o.replace(h,""),b()):D()}function D(){for(i(p),u="",s="in descriptor";;){if(l=e.charAt(v),"in descriptor"===s)if(r(l))u&&(a.push(u),u="",s="after descriptor");else{if(","===l)return v+=1,u&&a.push(u),void b();if("("===l)u+=l,s="in parens";else{if(""===l)return u&&a.push(u),void b();u+=l}}else if("in parens"===s)if(")"===l)u+=l,s="in descriptor";else{if(""===l)return a.push(u),void b();u+=l}else if("after descriptor"===s&&!r(l)){if(""===l)return void b();s="in descriptor",v-=1}v+=1}}function b(){var t,r,i,u,s,l,c,p,f,d=!1,h={};for(u=0;u<a.length;u++)l=(s=a[u])[s.length-1],c=s.substring(0,s.length-1),p=parseInt(c,10),f=parseFloat(c),y.test(c)&&"w"===l?((t||r)&&(d=!0),0===p?d=!0:t=p):m.test(c)&&"x"===l?((t||r||i)&&(d=!0),f<0?d=!0:r=f):y.test(c)&&"h"===l?((i||r)&&(d=!0),0===p?d=!0:i=p):d=!0;d?n&&n.error&&n.error("Invalid srcset descriptor found in '"+e+"' at '"+s+"'."):(h.url=o,t&&(h.w=t),r&&(h.d=r),i&&(h.h=i),g.push(h))}}},i=[],void 0===(o="function"===typeof(r=u)?r.apply(t,i):r)||(e.exports=o)}}),io=q({"src/language-html/syntax-attribute.js":function(e,t){W();var n=ro(),r=de().builders,i=r.ifBreak,o=r.join,a=r.line;function u(e){var t=n(e,{logger:{error:function(e){throw new Error(e)}}}),r=t.some((function(e){return e.w})),u=t.some((function(e){return e.h}));if(r+u+t.some((function(e){return e.d}))>1)throw new Error("Mixed descriptor in srcset is not supported");var s=r?"w":u?"h":"d",l=r?"w":u?"h":"x",c=function(e){return Math.max.apply(Math,v(e))},p=t.map((function(e){return e.url})),f=c(p.map((function(e){return e.length}))),d=t.map((function(e){return e[s]})).map((function(e){return e?e.toString():""})),h=d.map((function(e){var t=e.indexOf(".");return-1===t?e.length:t})),y=c(h);return o([",",a],p.map((function(e,t){var n=[e],r=d[t];if(r){var o=f-e.length+1,a=y-h[t],u=" ".repeat(o+a);n.push(i(u," "),r+l)}return n})))}function s(e){return e.trim().split(/\s+/).join(" ")}t.exports={printImgSrcset:u,printClassNames:s}}}),oo=q({"src/language-html/syntax-vue.js":function(e,t){W();var n=de().builders.group;function r(e,t){var r=i(e),o=r.left,a=r.operator,u=r.right;return[n(t("function _(".concat(o,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",a," ",t(u,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function i(e){var t=/([\s\S]*?)\s+(in|of)\s+([\s\S]*)/,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/,r=/^\(|\)$/g,i=e.match(t);if(i){var o={};if(o.for=i[3].trim(),o.for){var a=i[1].trim().replace(r,""),u=a.match(n);u?(o.alias=a.replace(n,""),o.iterator1=u[1].trim(),u[2]&&(o.iterator2=u[2].trim())):o.alias=a;var s=[o.alias,o.iterator1,o.iterator2];return s.some((function(e,t){return!e&&(0===t||s.slice(t+1).some(Boolean))}))?void 0:{left:s.filter(Boolean).join(","),operator:i[2],right:o.for}}}}function o(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0})}function a(e){var t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,n=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,r=e.trim();return t.test(r)||n.test(r)}t.exports={isVueEventBindingExpression:a,printVueFor:r,printVueBindings:o}}}),ao=q({"src/language-html/get-node-content.js":function(e,t){W();var n=no(),r=n.needsToBorrowParentClosingTagStartMarker,i=n.printClosingTagStartMarker,o=n.needsToBorrowLastChildClosingTagEndMarker,a=n.printClosingTagEndMarker,u=n.needsToBorrowParentOpeningTagEndMarker,s=n.printOpeningTagEndMarker;function l(e,t){var n=e.startSourceSpan.end.offset;e.firstChild&&u(e.firstChild)&&(n-=s(e).length);var l=e.endSourceSpan.start.offset;return e.lastChild&&r(e.lastChild)?l+=i(e,t).length:o(e)&&(l-=a(e.lastChild,t).length),t.originalText.slice(n,l)}t.exports=l}}),uo=q({"src/language-html/embed.js":function(e,t){W();var n=de(),r=n.builders,i=r.breakParent,o=r.group,a=r.hardline,u=r.indent,s=r.line,l=r.fill,c=r.softline,p=n.utils,f=p.mapDoc,d=p.replaceTextEndOfLine,h=Qr(),m=no(),v=m.printClosingTag,D=m.printClosingTagSuffix,b=m.needsToBorrowPrevClosingTagEndMarker,E=m.printOpeningTagPrefix,x=m.printOpeningTag,C=io(),A=C.printImgSrcset,w=C.printClassNames,S=oo(),F=S.printVueFor,k=S.printVueBindings,_=S.isVueEventBindingExpression,T=Gi(),O=T.isScriptLikeTag,N=T.isVueNonHtmlBlock,j=T.inferScriptParser,P=T.htmlTrimPreserveIndentation,B=T.dedentString,I=T.unescapeQuoteEntities,L=T.isVueSlotAttribute,M=T.isVueSfcBindingsAttribute,R=T.getTextValueParts,q=ao();function V(e,t,n){var r=function(t){return new RegExp(t.join("|")).test(e.fullName)},i=function(){return I(e.value)},a=!1,p=function(e,t){var n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;n&&("ObjectExpression"===n.type||"ArrayExpression"===n.type||"__vue_expression"===t.parser&&("TemplateLiteral"===n.type||"StringLiteral"===n.type))&&(a=!0)},f=function(e){return o(e)},h=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o([u([c,e]),t?c:""])},m=function(e){return a?f(e):h(e)},v=function(e,n){return t(e,Object.assign({__onHtmlBindingRoot:p,__embeddedInHtml:!0},n))};if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return h(A(i()));if("class"===e.fullName&&!n.parentParser){var D=i();if(!D.includes("{{"))return w(D)}if("style"===e.fullName&&!n.parentParser){var b=i();if(!b.includes("{{"))return h(v(b,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return F(i(),v);if(L(e)||M(e,n))return k(i(),v);var E=["^:","^v-bind:"],x=["^v-"];if(r(["^@","^v-on:"])){var C=i(),S=_(C)?"__js_expression":n.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return m(v(C,{parser:S}))}if(r(E))return m(v(i(),{parser:"__vue_expression"}));if(r(x))return m(v(i(),{parser:"__js_expression"}))}if("angular"===n.parser){var T=function(e,t){return v(e,Object.assign(Object.assign({},t),{},{trailingComma:"none"}))},O=["^\\*"],N=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],j=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return m(T(i(),{parser:"__ng_action"}));if(r(N))return m(T(i(),{parser:"__ng_binding"}));if(r(j)){var P=i().trim();return h(l(R(e,P)),!P.includes("@@"))}if(r(O))return m(T(i(),{parser:"__ng_directive"}));var B=/\{\{([\s\S]+?)\}\}/,q=i();if(B.test(q)){var V,U=[],z=g(q.split(B).entries());try{for(z.s();!(V=z.n()).done;){var H=y(V.value,2),W=H[0],$=H[1];if(W%2===0)U.push(d($));else try{U.push(o(["{{",u([s,T($,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),s,"}}"]))}catch(G){U.push("{{",d($),"}}")}}}catch(K){z.e(K)}finally{z.f()}return o(U)}}return null}function U(e,t,n,r){var l=e.getValue();switch(l.type){case"element":if(O(l)||"interpolation"===l.type)return;if(!l.isSelfClosing&&N(l,r)){var c=j(l,r);if(!c)return;var p=q(l,r),d=/^\s*$/.test(p),y="";return d||(d=""===(y=n(P(p),{parser:c,__embeddedInHtml:!0},{stripTrailingHardline:!0}))),[E(l,r),o(x(e,r,t)),d?"":a,y,d?"":a,v(l,r),D(l,r)]}break;case"text":if(O(l.parent)){var m=j(l.parent,r);if(m){var g="markdown"===m?B(l.value.replace(/^[^\S\n]*\n/,"")):l.value,C={parser:m,__embeddedInHtml:!0};if("html"===r.parser&&"babel"===m){var A="script",w=l.parent.attrMap;w&&("module"===w.type||"text/babel"===w.type&&"module"===w["data-type"])&&(A="module"),C.__babelSourceType=A}return[i,E(l,r),n(g,C,{stripTrailingHardline:!0}),D(l,r)]}}else if("interpolation"===l.parent.type){var S={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===r.parser?(S.parser="__ng_interpolation",S.trailingComma="none"):"vue"===r.parser?S.parser=r.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":S.parser="__js_expression",[u([s,n(l.value,S,{stripTrailingHardline:!0})]),l.parent.next&&b(l.parent.next)?" ":s]}break;case"attribute":if(!l.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.originalText.slice(l.valueSpan.start.offset,l.valueSpan.end.offset)))return[l.rawName,"=",l.value];if("lwc"===r.parser&&/^\{[\s\S]*\}$/.test(r.originalText.slice(l.valueSpan.start.offset,l.valueSpan.end.offset)))return[l.rawName,"=",l.value];var F=V(l,(function(e,t){return n(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0})}),r);if(F)return[l.rawName,'="',o(f(F,(function(e){return"string"==typeof e?e.replace(/"/g,"""):e}))),'"'];break;case"front-matter":return h(l,n)}}t.exports=U}}),so=q({"src/language-html/print/children.js":function(e,t){W();var n=de(),r=n.builders,i=r.breakParent,o=r.group,a=r.ifBreak,u=r.line,s=r.softline,l=r.hardline,c=n.utils.replaceTextEndOfLine,p=to(),f=p.locStart,d=p.locEnd,h=Gi(),y=h.forceBreakChildren,m=h.forceNextEmptyLine,g=h.isTextLikeNode,D=h.hasPrettierIgnore,b=h.preferHardlineAsLeadingSpaces,E=no(),x=E.printOpeningTagPrefix,C=E.needsToBorrowNextOpeningTagStartMarker,A=E.printOpeningTagStartMarker,w=E.needsToBorrowPrevClosingTagEndMarker,S=E.printClosingTagEndMarker,F=E.printClosingTagSuffix,k=E.needsToBorrowParentClosingTagStartMarker;function _(e,t,n){var r=e.getValue();return D(r)?[x(r,t)].concat(v(c(t.originalText.slice(f(r)+(r.prev&&C(r.prev)?A(r).length:0),d(r)-(r.next&&w(r.next)?S(r,t).length:0)))),[F(r,t)]):n()}function T(e,t){return g(e)&&g(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?b(t)?l:u:"":b(t)?l:s:C(e)&&(D(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&w(t)?"":!t.isLeadingSpaceSensitive||b(t)||w(t)&&e.lastChild&&k(e.lastChild)&&e.lastChild.lastChild&&k(e.lastChild.lastChild)?l:t.hasLeadingSpaces?u:s}function O(e,t,n){var r=e.getValue();if(y(r))return[i].concat(v(e.map((function(e){var r=e.getValue(),i=r.prev?T(r.prev,r):"";return[i?[i,m(r.prev)?l:""]:"",_(e,t,n)]}),"children")));var u=r.children.map((function(){return Symbol("")}));return e.map((function(e,r){var i=e.getValue();if(g(i)){if(i.prev&&g(i.prev)){var c=T(i.prev,i);if(c)return m(i.prev)?[l,l,_(e,t,n)]:[c,_(e,t,n)]}return _(e,t,n)}var p=[],f=[],d=[],h=[],y=i.prev?T(i.prev,i):"",v=i.next?T(i,i.next):"";return y&&(m(i.prev)?p.push(l,l):y===l?p.push(l):g(i.prev)?f.push(y):f.push(a("",s,{groupId:u[r-1]}))),v&&(m(i)?g(i.next)&&h.push(l,l):v===l?g(i.next)&&h.push(l):d.push(v)),[].concat(p,[o([].concat(f,[o([_(e,t,n)].concat(d),{id:u[r]})]))],h)}),"children")}t.exports={printChildren:O}}}),lo=q({"src/language-html/print/element.js":function(e,t){W();var n=de(),r=n.builders,i=r.breakParent,o=r.dedentToRoot,a=r.group,u=r.ifBreak,s=r.indentIfBreak,l=r.indent,c=r.line,p=r.softline,f=n.utils.replaceTextEndOfLine,d=ao(),h=Gi(),y=h.shouldPreserveContent,m=h.isScriptLikeTag,g=h.isVueCustomBlock,D=h.countParents,b=h.forceBreakContent,E=no(),x=E.printOpeningTagPrefix,C=E.printOpeningTag,A=E.printClosingTagSuffix,w=E.printClosingTag,S=E.needsToBorrowPrevClosingTagEndMarker,F=E.needsToBorrowLastChildClosingTagEndMarker,k=so().printChildren;function _(e,t,n){var r=e.getValue();if(y(r,t))return[x(r,t),a(C(e,t,n))].concat(v(f(d(r,t))),v(w(r,t)),[A(r,t)]);var h=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,E=Symbol("element-attr-group-id"),_=function(i){return a([a(C(e,t,n),{id:E}),i,w(r,t)])},T=function(e){return h?s(e,{groupId:E}):!m(r)&&!g(r,t)||"root"!==r.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?l(e):e},O=function(){return h?u(p,"",{groupId:E}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?c:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?o(p):p},N=function(){return(r.next?S(r.next):F(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":h?u(p,"",{groupId:E}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?c:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(t.tabWidth*D(e,(function(e){return e.parent&&"root"!==e.parent.type})),"}$")).test(r.lastChild.value)?"":p};return 0===r.children.length?_(r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?c:""):_([b(r)?i:"",T([O(),k(e,t,n)]),N()])}t.exports={printElement:_}}}),co=q({"src/language-html/printer-html.js":function(e,t){W();var n=de(),r=n.builders,i=r.fill,o=r.group,a=r.hardline,u=r.literalline,s=n.utils,l=s.cleanDoc,c=s.getDocParts,p=s.isConcat,f=s.replaceTextEndOfLine,d=Hi(),h=Gi(),y=h.countChars,m=h.unescapeQuoteEntities,g=h.getTextValueParts,D=Zi(),b=eo().insertPragma,E=to(),x=E.locStart,C=E.locEnd,A=uo(),w=no(),S=w.printClosingTagSuffix,F=w.printClosingTagEnd,k=w.printOpeningTagPrefix,_=w.printOpeningTagStart,T=lo().printElement,O=so().printChildren;function N(e,t,n){var r=e.getValue();switch(r.type){case"front-matter":return f(r.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),[o(O(e,t,n)),a];case"element":case"ieConditionalComment":return T(e,t,n);case"ieConditionalStartComment":case"ieConditionalEndComment":return[_(r),F(r)];case"interpolation":return[_(r,t)].concat(v(e.map(n,"children")),[F(r,t)]);case"text":if("interpolation"===r.parent.type){var s=/\n[^\S\n]*$/,d=s.test(r.value),h=d?r.value.replace(s,""):r.value;return[].concat(v(f(h)),[d?a:""])}var D=l([k(r,t)].concat(v(g(r)),[S(r,t)]));return p(D)||"fill"===D.type?i(c(D)):D;case"docType":return[o([_(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),F(r,t)];case"comment":return[k(r,t)].concat(v(f(t.originalText.slice(x(r),C(r)),u)),[S(r,t)]);case"attribute":if(null===r.value)return r.rawName;var b=m(r.value),E=y(b,"'")<y(b,'"')?"'":'"';return[r.rawName,"=",E].concat(v(f('"'===E?b.replace(/"/g,"""):b.replace(/'/g,"'"))),[E]);default:throw new Error("Unexpected node type ".concat(r.type))}}t.exports={preprocess:D,print:N,insertPragma:b,massageAstNode:d,embed:A}}}),po=q({"src/language-html/options.js":function(e,t){W();var n=Vr(),r="HTML";t.exports={bracketSameLine:n.bracketSameLine,htmlWhitespaceSensitivity:{since:"1.15.0",category:r,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:n.singleAttributePerLine,vueIndentScriptAndStyle:{since:"1.19.0",category:r,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}}}}),fo=q({"src/language-html/parsers.js":function(){W()}}),ho=q({"node_modules/linguist-languages/data/HTML.json":function(e,t){t.exports={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146}}}),yo=q({"node_modules/linguist-languages/data/Vue.json":function(e,t){t.exports={name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391}}}),mo=q({"src/language-html/index.js":function(e,t){W();var n=En(),r=co(),i=po(),o=fo(),a=[n(ho(),(function(){return{name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}})),n(ho(),(function(e){return{since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[].concat(v(e.extensions),[".mjml"])}})),n(ho(),(function(){return{name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}})),n(yo(),(function(){return{since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}}))],u={html:r};t.exports={languages:a,printers:u,options:i,parsers:o}}}),vo=q({"src/language-yaml/pragma.js":function(e,t){function n(e){return/^\s*@(?:prettier|format)\s*$/.test(e)}function r(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)}function i(e){return"# @format\n\n".concat(e)}W(),t.exports={isPragma:n,hasPragma:r,insertPragma:i}}}),go=q({"src/language-yaml/loc.js":function(e,t){function n(e){return e.position.start.offset}function r(e){return e.position.end.offset}W(),t.exports={locStart:n,locEnd:r}}}),Do=q({"src/language-yaml/embed.js":function(e,t){function n(e,t,n,r){if("root"===e.getValue().type&&r.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint)rc$/.test(r.filepath))return n(r.originalText,Object.assign(Object.assign({},r),{},{parser:"json"}))}W(),t.exports=n}}),bo=q({"src/language-yaml/utils.js":function(e,t){W();var n=Le(),r=n.getLast,i=n.isNonEmptyArray;function o(e,t){for(var n=0,r=e.stack.length-1,i=0;i<r;i++){var o=e.stack[i];u(o)&&t(o)&&n++}return n}function u(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function s(e,t,n){return t("children"in e?Object.assign(Object.assign({},e),{},{children:e.children.map((function(n){return s(n,t,e)}))}):e,n)}function l(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})}function c(e,t){for(var n=0,r=t.length,i=e.position.end.offset-1;i<r;i++){var o=t[i];if("\n"===o&&n++,1===n&&/\S/.test(o))return!1;if(2===n)return!0}return!1}function p(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}for(var t=e.stack.length,n=1;n<t;n++){var r=e.stack[n],i=e.stack[n-1];if(Array.isArray(i)&&"number"==typeof r&&r!==i.length-1)return!1}return!0}function f(e){return i(e.children)?f(r(e.children)):e}function d(e){return"prettier-ignore"===e.value.trim()}function h(e){var t=e.getValue();if("documentBody"===t.type){var n=e.getParentNode();return C(n.head)&&d(r(n.head.endComments))}return D(t)&&d(r(t.leadingComments))}function y(e){return!i(e.children)&&!m(e)}function m(e){return D(e)||b(e)||E(e)||x(e)||C(e)}function D(e){return i(null==e?void 0:e.leadingComments)}function b(e){return i(null==e?void 0:e.middleComments)}function E(e){return null==e?void 0:e.indicatorComment}function x(e){return null==e?void 0:e.trailingComment}function C(e){return i(null==e?void 0:e.endComments)}function A(e){var t,n,r=[],i=g(e.split(/( +)/));try{for(i.s();!(n=i.n()).done;){var o=n.value;" "!==o?" "===t?r.push(o):r.push((r.pop()||"")+o):void 0===t&&r.unshift(""),t=o}}catch(a){i.e(a)}finally{i.f()}return" "===t&&r.push((r.pop()||"")+" "),""===r[0]&&(r.shift(),r.unshift(" "+(r.shift()||""))),r}function w(e,t,n){var i=t.split("\n").map((function(e,t,n){return 0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart()}));return"preserve"===n.proseWrap?i.map((function(e){return 0===e.length?[]:[e]})):i.map((function(e){return 0===e.length?[]:A(e)})).reduce((function(t,n,o){return 0!==o&&i[o-1].length>0&&n.length>0&&("quoteDouble"!==e||!r(r(t)).endsWith("\\"))?[].concat(v(t.slice(0,-1)),[[].concat(v(r(t)),v(n))]):[].concat(v(t),[n])}),[]).map((function(e){return"never"===n.proseWrap?[e.join(" ")]:e}))}function S(e,t){var n,i=t.parentIndent,o=t.isLastDescendant,u=t.options,s=e.position.start.line===e.position.end.line?"":u.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n([\s\S]*)$/)[1];if(null===e.indent){var l=s.match(a(/^( *)[^\n\r ]/m,{leadingSpace:1}));n=l?l.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else n=e.indent-1+i;var c=s.split("\n").map((function(e){return e.slice(n)}));return"preserve"===u.proseWrap||"blockLiteral"===e.type?p(c.map((function(e){return 0===e.length?[]:[e]}))):p(c.map((function(e){return 0===e.length?[]:A(e)})).reduce((function(e,t,n){return 0!==n&&c[n-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(r(e))?[].concat(v(e.slice(0,-1)),[[].concat(v(r(e)),v(t))]):[].concat(v(e),[t])}),[]).map((function(e){return e.reduce((function(e,t){return e.length>0&&/\s$/.test(r(e))?[].concat(v(e.slice(0,-1)),[r(e)+" "+t]):[].concat(v(e),[t])}),[])})).map((function(e){return"never"===u.proseWrap?[e.join(" ")]:e})));function p(t){if("keep"===e.chomping)return 0===r(t).length?t.slice(0,-1):t;for(var n=0,i=t.length-1;i>=0&&0===t[i].length;i--)n++;return 0===n?t:n>=2&&!o?t.slice(0,-(n-1)):t.slice(0,-n)}}function F(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}t.exports={getLast:r,getAncestorCount:o,isNode:u,isEmptyNode:y,isInlineNode:F,mapNode:s,defineShortcut:l,isNextLineEmpty:c,isLastDescendantNode:p,getBlockValueLineContents:S,getFlowScalarLineContents:w,getLastDescendantNode:f,hasPrettierIgnore:h,hasLeadingComments:D,hasMiddleComments:b,hasIndicatorComment:E,hasTrailingComment:x,hasEndComments:C}}}),Eo=q({"src/language-yaml/print-preprocess.js":function(e,t){W();var n=bo(),r=n.defineShortcut,i=n.mapNode;function o(e){return i(e,a)}function a(e){switch(e.type){case"document":r(e,"head",(function(){return e.children[0]})),r(e,"body",(function(){return e.children[1]}));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":r(e,"content",(function(){return e.children[0]}));break;case"mappingItem":case"flowMappingItem":r(e,"key",(function(){return e.children[0]})),r(e,"value",(function(){return e.children[1]}))}return e}t.exports=o}}),xo=q({"src/language-yaml/print/misc.js":function(e,t){W();var n=de().builders,r=n.softline,i=n.align,o=bo(),a=o.hasEndComments,u=o.isNextLineEmpty,s=o.isNode,l=new WeakMap;function c(e,t){var n,i=e.getValue(),o=e.stack[0];return l.has(o)?n=l.get(o):(n=new Set,l.set(o,n)),n.has(i.position.end.line)||(n.add(i.position.end.line),!u(i,t)||p(e.getParentNode()))?"":r}function p(e){return a(e)&&!s(e,["documentHead","documentBody","flowMapping","flowSequence"])}function f(e,t){return i(" ".repeat(e),t)}t.exports={alignWithSpaces:f,shouldPrintEndComments:p,printNextEmptyLine:c}}}),Co=q({"src/language-yaml/print/flow-mapping-sequence.js":function(e,t){W();var n=de().builders,r=n.ifBreak,i=n.line,o=n.softline,a=n.hardline,u=n.join,s=bo(),l=s.isEmptyNode,c=s.getLast,p=s.hasEndComments,f=xo(),d=f.printNextEmptyLine,h=f.alignWithSpaces;function y(e,t,n){var s=e.getValue(),f="flowMapping"===s.type,d=f?"{":"[",y=f?"}":"]",v=o;f&&s.children.length>0&&n.bracketSpacing&&(v=i);var g=c(s.children),D=g&&"flowMappingItem"===g.type&&l(g.key)&&l(g.value);return[d,h(n.tabWidth,[v,m(e,t,n),"none"===n.trailingComma?"":r(","),p(s)?[a,u(a,e.map(t,"endComments"))]:""]),D?"":v,y]}function m(e,t,n){var r=e.getValue();return e.map((function(e,o){return[t(),o===r.children.length-1?"":[",",i,r.children[o].position.start.line!==r.children[o+1].position.start.line?d(e,n.originalText):""]]}),"children")}t.exports={printFlowMapping:y,printFlowSequence:y}}}),Ao=q({"src/language-yaml/print/mapping-item.js":function(e,t){W();var n=de().builders,r=n.conditionalGroup,i=n.group,o=n.hardline,a=n.ifBreak,u=n.join,s=n.line,l=bo(),c=l.hasLeadingComments,p=l.hasMiddleComments,f=l.hasTrailingComment,d=l.hasEndComments,h=l.isNode,y=l.isEmptyNode,m=l.isInlineNode,v=xo().alignWithSpaces;function g(e,t,n,l,g){var x=e.key,C=e.value,A=y(x),w=y(C);if(A&&w)return": ";var S=l("key"),F=b(e)?" ":"";if(w)return"flowMappingItem"===e.type&&"flowMapping"===t.type?S:"mappingItem"!==e.type||!D(x.content,g)||f(x.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?["? ",v(2,S)]:[S,F,":"];var k=l("value");if(A)return[": ",v(2,k)];if(c(C)||!m(x.content))return["? ",v(2,S),o,u("",n.map(l,"value","leadingComments").map((function(e){return[e,o]}))),": ",v(2,k)];if(E(x.content)&&!c(x.content)&&!p(x.content)&&!f(x.content)&&!d(x)&&!c(C.content)&&!p(C.content)&&!d(C)&&D(C.content,g))return[S,F,": ",k];var _=Symbol("mappingKey"),T=i([a("? "),i(v(2,S),{id:_})]),O=[o,": ",v(2,k)],N=[F,":"];c(C.content)||d(C)&&C.content&&!h(C.content,["mapping","sequence"])||"mapping"===t.type&&f(x.content)&&m(C.content)||h(C.content,["mapping","sequence"])&&null===C.content.tag&&null===C.content.anchor?N.push(o):C.content&&N.push(s),N.push(k);var j=v(g.tabWidth,N);return!D(x.content,g)||c(x.content)||p(x.content)||d(x)?r([[T,a(O,j,{groupId:_})]]):r([[S,j]])}function D(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function b(e){return e.key.content&&"alias"===e.key.content.type}function E(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}t.exports=g}}),wo=q({"src/language-yaml/print/block.js":function(e,t){W();var n=de(),r=n.builders,i=r.dedent,o=r.dedentToRoot,a=r.fill,u=r.hardline,s=r.join,l=r.line,c=r.literalline,p=r.markAsRoot,f=n.utils.getDocParts,d=bo(),h=d.getAncestorCount,m=d.getBlockValueLineContents,v=d.hasIndicatorComment,D=d.isLastDescendantNode,b=d.isNode,E=xo().alignWithSpaces;function x(e,t,n){var r=e.getValue(),d=h(e,(function(e){return b(e,["sequence","mapping"])})),x=D(e),C=["blockFolded"===r.type?">":"|"];null!==r.indent&&C.push(r.indent.toString()),"clip"!==r.chomping&&C.push("keep"===r.chomping?"+":"-"),v(r)&&C.push(" ",t("indicatorComment"));var A,w=m(r,{parentIndent:d,isLastDescendant:x,options:n}),S=[],F=g(w.entries());try{for(F.s();!(A=F.n()).done;){var k=y(A.value,2),_=k[0],T=k[1];0===_&&S.push(u),S.push(a(f(s(l,T)))),_!==w.length-1?S.push(0===T.length?u:p(c)):"keep"===r.chomping&&x&&S.push(o(0===T.length?u:c))}}catch(O){F.e(O)}finally{F.f()}return null===r.indent?C.push(i(E(n.tabWidth,S))):C.push(o(E(r.indent-1+d,S))),C}t.exports=x}}),So=q({"src/language-yaml/printer-yaml.js":function(e,t){W();var n=de(),r=n.builders,i=r.breakParent,o=r.fill,a=r.group,u=r.hardline,s=r.join,l=r.line,c=r.lineSuffix,p=r.literalline,f=n.utils,d=f.getDocParts,h=f.replaceTextEndOfLine,y=Le().isPreviousLineEmpty,m=vo(),g=m.insertPragma,D=m.isPragma,b=go().locStart,E=Do(),x=bo(),C=x.getFlowScalarLineContents,A=x.getLastDescendantNode,w=x.hasLeadingComments,S=x.hasMiddleComments,F=x.hasTrailingComment,k=x.hasEndComments,_=x.hasPrettierIgnore,T=x.isLastDescendantNode,O=x.isNode,N=x.isInlineNode,j=Eo(),P=xo(),B=P.alignWithSpaces,I=P.printNextEmptyLine,L=P.shouldPrintEndComments,M=Co(),R=M.printFlowMapping,q=M.printFlowSequence,V=Ao(),U=wo();function z(e,t,n){var r=e.getValue(),o=[];"mappingValue"!==r.type&&w(r)&&o.push([s(u,e.map(n,"leadingComments")),u]);var l=r.tag,f=r.anchor;l&&o.push(n("tag")),l&&f&&o.push(" "),f&&o.push(n("anchor"));var d="";O(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!T(e)&&(d=I(e,t.originalText)),(l||f)&&(O(r,["sequence","mapping"])&&!S(r)?o.push(u):o.push(" ")),S(r)&&o.push([1===r.middleComments.length?"":u,s(u,e.map(n,"middleComments")),u]);var m=e.getParentNode();return _(e)?o.push(h(t.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd(),p)):o.push(a(H(r,m,e,t,n))),F(r)&&!O(r,["document","documentHead"])&&o.push(c(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===m.type&&"mapping"===e.getParentNode(2).type&&N(r)?"":i,n("trailingComment")])),L(r)&&o.push(B("sequenceItem"===r.type?2:0,[u,s(u,e.map((function(e){return[y(t.originalText,e.getValue(),b)?u:"",n()]}),"endComments"))])),o.push(d),o}function H(e,t,n,r,i){switch(e.type){case"root":var o=e.children,a=[];n.each((function(e,t){var n=o[t],r=o[t+1];0!==t&&a.push(u),a.push(i()),G(n,r)?(a.push(u,"..."),F(n)&&a.push(" ",i("trailingComment"))):r&&!F(r.head)&&a.push(u,"---")}),"children");var l=A(e);return(!O(l,["blockLiteral","blockFolded"])||"keep"!==l.chomping)&&a.push(u),a;case"document":var c=[];return"head"===K(e,t.children[n.getName()+1],t,r)&&((e.head.children.length>0||e.head.endComments.length>0)&&c.push(i("head")),F(e.head)?c.push(["---"," ",i(["head","trailingComment"])]):c.push("---")),$(e)&&c.push(i("body")),s(u,c);case"documentHead":return s(u,[].concat(v(n.map(i,"children")),v(n.map(i,"endComments"))));case"documentBody":var p=e.children,f=e.endComments,d="";if(p.length>0&&f.length>0){var h=A(e);O(h,["blockFolded","blockLiteral"])?"keep"!==h.chomping&&(d=[u,u]):d=u}return[s(u,n.map(i,"children")),d,s(u,n.map(i,"endComments"))];case"directive":return["%",s(" ",[e.name].concat(v(e.parameters)))];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return J(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":var y="'",m='"',g=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&g.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(g)){var D="quoteDouble"===e.type?m:y;return[D,J(e.type,g,r),D]}if(g.includes(m))return[y,J(e.type,"quoteDouble"===e.type?g.replace(/\\"/g,m).replace(/'/g,y.repeat(2)):g,r),y];if(g.includes(y))return[m,J(e.type,"quoteSingle"===e.type?g.replace(/''/g,y):g,r),m];var b=r.singleQuote?y:m;return[b,J(e.type,g,r),b];case"blockFolded":case"blockLiteral":return U(n,i,r);case"mapping":case"sequence":return s(u,n.map(i,"children"));case"sequenceItem":return["- ",B(2,e.content?i("content"):"")];case"mappingKey":case"mappingValue":return e.content?i("content"):"";case"mappingItem":case"flowMappingItem":return V(e,t,n,i,r);case"flowMapping":return R(n,i,r);case"flowSequence":return q(n,i,r);case"flowSequenceItem":return i("content");default:throw new Error("Unexpected node type ".concat(e.type))}}function $(e){return e.body.children.length>0||k(e.body)}function G(e,t){return F(e)||t&&(t.head.children.length>0||k(t.head))}function K(e,t,n,r){return n.children[0]===e&&/---(?:\s|$)/.test(r.originalText.slice(b(e),b(e)+4))||e.head.children.length>0||k(e.head)||F(e.head)?"head":!G(e,t)&&!!t&&"root"}function J(e,t,n){var r=C(e,t,n);return s(u,r.map((function(e){return o(d(s(l,e)))})))}function X(e,t){if(O(t))switch(delete t.position,t.type){case"comment":if(D(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}}t.exports={preprocess:j,embed:E,print:z,massageAstNode:X,insertPragma:g}}}),Fo=q({"src/language-yaml/options.js":function(e,t){W();var n=Vr();t.exports={bracketSpacing:n.bracketSpacing,singleQuote:n.singleQuote,proseWrap:n.proseWrap}}}),ko=q({"src/language-yaml/parsers.js":function(){W()}}),_o=q({"node_modules/linguist-languages/data/YAML.json":function(e,t){t.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),To=q({"src/language-yaml/index.js":function(e,t){W();var n=En(),r=So(),i=Fo(),o=ko(),a=[n(_o(),(function(e){return{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[].concat(v(e.filenames.filter((function(e){return"yarn.lock"!==e}))),[".prettierrc",".stylelintrc"])}}))];t.exports={languages:a,printers:{yaml:r},options:i,parsers:o}}}),Oo=q({"src/languages.js":function(e,t){W(),t.exports=[Xr(),mi(),Ai(),Oi(),zi(),mo(),To()]}});W();var No=$().version,jo=Dn(),Po=_e().getSupportInfo,Bo=bn(),Io=Oo(),Lo=de();function Mo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r[t]||{},a=o.plugins||[];return r[t]=Object.assign(Object.assign({},o),{},{plugins:[].concat(v(Io),v(Array.isArray(a)?a:Object.values(a)))}),e.apply(void 0,r)}}var Ro=Mo(jo.formatWithCursor);D.exports={formatWithCursor:Ro,format:function(e,t){return Ro(e,t).formatted},check:function(e,t){return Ro(e,t).formatted===e},doc:Lo,getSupportInfo:Mo(Po,0),version:No,util:Bo,__debug:{parse:Mo(jo.parse),formatAST:Mo(jo.formatAST),formatDoc:Mo(jo.formatDoc),printToDoc:Mo(jo.printToDoc),printDocToString:Mo(jo.printDocToString)}}}));return Ke()}()},6921:function(e){var t;"undefined"!==typeof self&&self,t=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=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),u=n(46),s=n(47),l=n(48),c=n(49),p=n(12),f=n(32),d=n(33),h=n(31),y=n(1),m={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:l.default,Scroll:a.default,Block:s.default,Inline:u.default,Text:c.default,Attributor:{Attribute:p.default,Class:f.default,Style:d.default,Store:h.default}};t.default=m},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var o,a={},u={},s={},l={};function c(e,t){var n;if(void 0===t&&(t=o.ANY),"string"===typeof e)n=l[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=l.text;else if("number"===typeof e)e&o.LEVEL&o.BLOCK?n=l.block:e&o.LEVEL&o.INLINE&&(n=l.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=u[r[i]])break;n=n||s[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=function(e,t){var n=c(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=c,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!==typeof r.blotName&&"string"!==typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");if(l[r.blotName||r.attrName]=r,"string"===typeof r.keyName)a[r.keyName]=r;else if(null!=r.className&&(u[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var o=Array.isArray(r.tagName)?r.tagName:[r.tagName];o.forEach((function(e){null!=s[e]&&null!=r.className||(s[e]=r)}))}return r}},function(e,t,n){var r=n(51),i=n(11),o=n(3),a=n(20),u=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"===typeof n){if("number"===typeof e.delete&&"number"===typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"===typeof n.delete&&null!=e.insert&&(t-=1,"object"!==typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i<t&&r.hasNext();){var o;i<e?o=r.next(e-i):(o=r.next(t-i),n.push(o)),i+=a.length(o)}return new s(n)},s.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],o=n.peek();if(null!=o&&"number"===typeof o.retain&&null==o.attributes){for(var u=o.retain;"insert"===t.peekType()&&t.peekLength()<=u;)u-=t.peekLength(),r.push(t.next());o.retain-u>0&&n.next(o.retain-u)}for(var l=new s(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())l.push(n.next());else if("delete"===t.peekType())l.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),p=t.next(c),f=n.next(c);if("number"===typeof f.retain){var d={};"number"===typeof p.retain?d.retain=c:d.insert=p.insert;var h=a.attributes.compose(p.attributes,f.attributes,"number"===typeof p.retain);if(h&&(d.attributes=h),l.push(d),!n.hasNext()&&i(l.ops[l.ops.length-1],d)){var y=new s(t.rest());return l.concat(y).chop()}}else"number"===typeof f.delete&&"number"===typeof p.retain&&l.push(f)}return l.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:u;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),o=new s,l=r(n[0],n[1],t),c=a.iterator(this.ops),p=a.iterator(e.ops);return l.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(p.peekLength(),t),o.push(p.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),p.peekLength(),t);var u=c.next(n),s=p.next(n);i(u.insert,s.insert)?o.retain(n,a.attributes.diff(u.attributes,s.attributes)):o.push(s).delete(n)}t-=n}})),o.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new s,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),u=a.length(o)-n.peekLength(),l="string"===typeof o.insert?o.insert.indexOf(t,u)-u:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new s}}r.length()>0&&e(r,{},i)},s.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),u=n.next(o),l=r.next(o);if(u.delete)continue;l.delete?i.push(l):i.retain(o,a.attributes.transform(u.attributes,l.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<e||!t)&&(e+=i),r+=i):e-=Math.min(i,e-r)}return e},e.exports=s},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},u=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,i=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)},s=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,c,p=arguments[0],f=1,d=arguments.length,h=!1;for("boolean"===typeof p&&(h=p,p=arguments[1]||{},f=2),(null==p||"object"!==typeof p&&"function"!==typeof p)&&(p={});f<d;++f)if(null!=(t=arguments[f]))for(n in t)r=l(p,n),p!==(i=l(t,n))&&(h&&i&&(u(i)||(o=a(i)))?(o?(o=!1,c=r&&a(r)?r:[]):c=r&&u(r)?r:{},s(p,{name:n,newValue:e(h,c,i)})):"undefined"!==typeof i&&s(p,{name:n,newValue:i}));return p}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=p(n(3)),a=p(n(2)),u=p(n(0)),s=p(n(16)),l=p(n(6)),c=p(n(7));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"attach",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new u.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=u.default.query(e,u.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"===typeof n&&n.endsWith("\n")){var o=u.default.create(m.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(u.default.Embed);y.scope=u.default.Scope.BLOCK_BLOT;var m=function(e){function t(e){f(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(u.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),v(t))}),new a.default).insert("\n",v(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,o){n<=0||(u.default.query(r,u.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,o):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,o),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var u=this;o.reduce((function(e,t){return(u=u.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof s.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(u.default.Block);function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,o.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:v(e.parent,t))}m.blotName="block",m.tagName="P",m.defaultChild="break",m.allowedChildren=[l.default,u.default.Embed,c.default],t.bubbleFormats=v,t.BlockEmbed=y,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var 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,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=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}}();n(50);var a=m(n(2)),u=m(n(14)),s=m(n(8)),l=m(n(9)),c=m(n(0)),p=n(15),f=m(p),d=m(n(3)),h=m(n(10)),y=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var D=(0,h.default)("quill"),b=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(g(this,e),this.options=E(t,r),this.container=this.options.container,null==this.container)return D.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;x.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&D.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var i=e.attrName||e.blotName;"string"===typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||D.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=C(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return x.call(this,(function(){var r=n.getSelection(!0),i=new a.default;if(null==r)return i;if(c.default.query(e,c.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,v({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,v({},e,t))}return n.setSelection(r,s.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var a,u=this,s=C(e,t,n,r,o),l=i(s,4);return e=l[0],t=l[1],a=l[2],o=l[3],x.call(this,(function(){return u.editor.formatLine(e,t,a)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var a,u=this,s=C(e,t,n,r,o),l=i(s,4);return e=l[0],t=l[1],a=l[2],o=l[3],x.call(this,(function(){return u.editor.formatText(e,t,a)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=C(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=C(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return x.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,o){var a,u=this,s=C(e,0,n,r,o),l=i(s,4);return e=l[0],a=l[2],o=l[3],x.call(this,(function(){return u.editor.insertText(e,t,a)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=C(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return x.call(this,(function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];return null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=C(t,n,r),a=i(o,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new p.Range(t,n),r),r!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return x.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function E(e,t){if((t=(0,d.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==b.DEFAULTS.theme){if(t.theme=b.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=y.default;var n=(0,d.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=b.import("modules/"+t);return null==n?D.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,d.default)(!0,{},b.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function x(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,u=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=A(i,u,t):0!==r&&(i=A(i,n,r,t)),this.setSelection(i,s.default.sources.SILENT)),u.length()>0){var l,c,p=[s.default.events.TEXT_CHANGE,u,o,t];(l=this.emitter).emit.apply(l,[s.default.events.EDITOR_CHANGE].concat(p)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,p)}return u}function C(e,t,n,i,o){var a={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(o=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(o=i,i=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),[e,t,a,o=o||s.default.sources.API]}function A(e,t,n,r){if(null==e)return null;var o=void 0,u=void 0;if(t instanceof a.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==s.default.sources.USER)})),c=i(l,2);o=c[0],u=c[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),d=i(f,2);o=d[0],u=d[1]}return new p.Range(o,u-o)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=s.default.events,b.sources=s.default.sources,b.version="1.3.7",b.imports={delta:a.default,parchment:c.default,"core/module":l.default,"core/theme":y.default},t.expandConfig=E,t.overload=C,t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(7)),a=u(n(0));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,o){if(t.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var u=this.isolate(e,n);o&&u.wrap(r,o)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o)}},{key:"optimize",value:function(e){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);c.allowedChildren=[c,a.default.Embed,o.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default.Text);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}var u=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var s=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",u.error),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){u.log.apply(u,arguments),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,i=t.handler;(e.target===r||r.contains(e.target))&&i.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(o.default);s.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},s.sources={API:"api",SILENT:"silent",USER:"user"},t.default=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];(t=console)[e].apply(t,o)}}function a(e){return r.reduce((function(t,n){return t[n]=o.bind(console,n,e),t}),{})}o.level=a.level=function(e){i=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,i=n(52),o=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var l,c;if(u(e)||u(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(s(e)){if(!s(t))return!1;if(e.length!==t.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==t[l])return!1;return!0}try{var p=i(e),f=i(t)}catch(d){return!1}if(p.length!=f.length)return!1;for(p.sort(),f.sort(),l=p.length-1;l>=0;l--)if(p[l]!=f[l])return!1;for(l=p.length-1;l>=0;l--)if(c=p[l],!a(e[c],t[c],n))return!1;return typeof e===typeof t}(e,t,n))};function u(e){return null===e||void 0===e}function s(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&"function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=p(n(2)),u=p(n(0)),s=p(n(4)),l=p(n(6)),c=p(n(7));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(l.default);y.blotName="code",y.tagName="CODE";var m=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),i(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var i=this.descendant(c.default,this.length()-1),a=r(i,1)[0];null!=a&&a.deleteAt(a.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,i){if(0!==n&&null!=u.default.query(r,u.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+n)){var a=this.newlineIndex(e,!0)+1,s=o-a+1,l=this.isolate(a,s),c=l.next;l.format(r,i),c instanceof t&&c.formatAt(0,e-a+n-s,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(c.default,e),o=r(i,2),a=o[0],u=o[1];a.insertAt(u,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=u.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof u.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=y,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=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}}(),a=v(n(2)),u=v(n(20)),s=v(n(0)),l=v(n(13)),c=v(n(24)),p=n(4),f=v(p),d=v(n(16)),h=v(n(21)),y=v(n(11)),m=v(n(3));function v(e){return e&&e.__esModule?e:{default:e}}var g=/^[ -~]*$/,D=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return o(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new a.default)}(e)).reduce((function(e,a){var l=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var d=a.insert;d.endsWith("\n")&&n&&(n=!1,d=d.slice(0,-1)),e>=o&&!d.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,d);var h=t.scroll.line(e),y=i(h,2),v=y[0],g=y[1],D=(0,m.default)({},(0,p.bubbleFormats)(v));if(v instanceof f.default){var b=v.descendant(s.default.Leaf,g),E=i(b,1)[0];D=(0,m.default)(D,(0,p.bubbleFormats)(E))}c=u.default.attributes.diff(D,c)||{}}else if("object"===r(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,a.insert[x])}o+=l}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,l,n,c[n])})),e+l}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(e,Math.max(t,1)),a=t;o.forEach((function(t){var o=t.length();if(t instanceof l.default){var u=e-t.offset(n.scroll),s=t.newlineIndex(u+a)-u+1;t.formatAt(u,s,i,r[i])}else t.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1)[0];t instanceof f.default?n.push(t):t instanceof s.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(s.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,p.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=b((0,p.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof d.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=i(r,2),u=o[0],s=o[1],c=0,p=new a.default;null!=u&&(c=u instanceof l.default?u.newlineIndex(s)-s+1:u.length()-s,p=u.delta().slice(s,s+c-1).insert("\n"));var f=this.getContents(e,t+c).diff((new a.default).insert(n).concat(p)),d=(new a.default).retain(e).concat(f);return this.applyDelta(d)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(g)&&s.default.find(t[0].target)){var i=s.default.find(t[0].target),o=(0,p.bubbleFormats)(i),u=i.offset(this.scroll),l=t[0].oldValue.replace(c.default.CONTENTS,""),f=(new a.default).insert(l),d=(new a.default).insert(i.value()),h=(new a.default).retain(u).concat(f.diff(d,n));e=h.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,y.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function b(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=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}}(),o=l(n(0)),a=l(n(21)),u=l(n(11)),s=l(n(8));function l(e){return e&&e.__esModule?e:{default:e}}function c(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)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,l(n(10)).default)("quill:selection"),d=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;p(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new d(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&r.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,a=n.endNode,u=n.endOffset;r.setNativeRange(i,o,a,u)}})),this.update(s.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(e,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,o=this.scroll.leaf(e),a=r(o,2),u=a[0],s=a[1];if(null==u)return null;var l=u.position(s,!0),c=r(l,2);i=c[0],s=c[1];var p=document.createRange();if(t>0){p.setStart(i,s);var f=this.scroll.leaf(e+t),d=r(f,2);if(u=d[0],s=d[1],null==u)return null;var h=u.position(s,!0),y=r(h,2);return i=y[0],s=y[1],p.setEnd(i,s),p.getBoundingClientRect()}var m="left",v=void 0;return i instanceof Text?(s<i.data.length?(p.setStart(i,s),p.setEnd(i,s+1)):(p.setStart(i,s-1),p.setEnd(i,s),m="right"),v=p.getBoundingClientRect()):(v=u.domNode.getBoundingClientRect(),s>0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],a=n[1],u=o.default.find(i,!0),s=u.offset(t.scroll);return 0===a?s:u instanceof o.default.Container?s+u.length():s+u.index(i,a)})),a=Math.min(Math.max.apply(Math,c(i)),this.scroll.length()-1),u=Math.min.apply(Math,[a].concat(c(i)));return new d(u,a-u)}},{key:"normalizeNative",value:function(e){if(!y(this.root,e.startContainer)||!e.collapsed&&!y(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var a,u=t.scroll.leaf(e),s=r(u,2),l=s[0],c=s[1],p=l.position(c,0!==n),f=r(p,2);a=f[0],c=f[1],i.push(a,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,i)),a=r(o,1)[0],u=a;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,i));u=r(s,1)[0]}if(null!=a&&null!=u){var l=e.getBoundingClientRect();n.top<l.top?e.scrollTop-=l.top-n.top:n.bottom>l.bottom&&(e.scrollTop+=n.bottom-l.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var u=document.createRange();u.setStart(e,t),u.setEnd(n,r),o.removeAllRanges(),o.addRange(u)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"===typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],l=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,u.default)(t,this.lastRange)){var c;!this.composing&&null!=l&&l.native.collapsed&&l.start.node!==this.cursor.textNode&&this.cursor.restore();var p,f=[s.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(f)),e!==s.default.sources.SILENT&&(p=this.emitter).emit.apply(p,f)}}}]),e}();function y(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=d,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"insertInto",value:function(e,n){0===e.children.length?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default.Embed);l.blotName="break",l.tagName="BR",t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),o=n(30),a=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=s(t);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),i=r[0],o=r[1];return null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e?[i,o]:i instanceof t?i.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,r,o))),o-=a})),i},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,i){e.formatAt(t,i,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),i=r[0],o=r[1];if(i)i.insertAt(o,t,n);else{var u=null==n?a.create("text",t):a.create(t,n);this.appendChild(u)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),i=r[0],o=r[1],a=[[this,e]];return i instanceof t?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,i){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],i=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),i.push.apply(i,e.removedNodes))})),i.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var r=s(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(o.default);function s(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=u},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),o=n(31),a=n(17),u=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new o.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=u.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var i=e.prototype.wrap.call(this,n,r);return i instanceof t&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},t}(a.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=n(11),i=n(3),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e.delete?e.delete:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t.delete)return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index].delete?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(u){t=function(){}}try{n=Set}catch(u){n=function(){}}try{r=Promise}catch(u){r=function(){}}function i(o,u,s,l,c){"object"===typeof u&&(s=u.depth,l=u.prototype,c=u.includeNonEnumerable,u=u.circular);var p=[],f=[],d="undefined"!=typeof Buffer;return"undefined"==typeof u&&(u=!0),"undefined"==typeof s&&(s=1/0),function o(s,h){if(null===s)return null;if(0===h)return s;var y,m;if("object"!=typeof s)return s;if(e(s,t))y=new t;else if(e(s,n))y=new n;else if(e(s,r))y=new r((function(e,t){s.then((function(t){e(o(t,h-1))}),(function(e){t(o(e,h-1))}))}));else if(i.__isArray(s))y=[];else if(i.__isRegExp(s))y=new RegExp(s.source,a(s)),s.lastIndex&&(y.lastIndex=s.lastIndex);else if(i.__isDate(s))y=new Date(s.getTime());else{if(d&&Buffer.isBuffer(s))return y=Buffer.allocUnsafe?Buffer.allocUnsafe(s.length):new Buffer(s.length),s.copy(y),y;e(s,Error)?y=Object.create(s):"undefined"==typeof l?(m=Object.getPrototypeOf(s),y=Object.create(m)):(y=Object.create(l),m=l)}if(u){var v=p.indexOf(s);if(-1!=v)return f[v];p.push(s),f.push(y)}for(var g in e(s,t)&&s.forEach((function(e,t){var n=o(t,h-1),r=o(e,h-1);y.set(n,r)})),e(s,n)&&s.forEach((function(e){var t=o(e,h-1);y.add(t)})),s){var D;m&&(D=Object.getOwnPropertyDescriptor(m,g)),D&&null==D.set||(y[g]=o(s[g],h-1))}if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(s);for(g=0;g<b.length;g++){var E=b[g];(!(C=Object.getOwnPropertyDescriptor(s,E))||C.enumerable||c)&&(y[E]=o(s[E],h-1),C.enumerable||Object.defineProperty(y,E,{enumerable:!1}))}}if(c){var x=Object.getOwnPropertyNames(s);for(g=0;g<x.length;g++){var C,A=x[g];(C=Object.getOwnPropertyDescriptor(s,A))&&C.enumerable||(y[A]=o(s[A],h-1),Object.defineProperty(y,A,{enumerable:!1}))}}return y}(o,s)}function o(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return i.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},i.__objToStr=o,i.__isDate=function(e){return"object"===typeof e&&"[object Date]"===o(e)},i.__isArray=function(e){return"object"===typeof e&&"[object Array]"===o(e)},i.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===o(e)},i.__getRegExpFlags=a,i}();"object"===typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=d(n(0)),u=d(n(8)),s=n(4),l=d(s),c=d(n(16)),p=d(n(13)),f=d(n(25));function d(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof l.default||e instanceof s.BlockEmbed}var y=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var i=this.line(e),a=r(i,2),u=a[0],l=a[1],f=this.line(e+n),d=r(f,1)[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=d&&u!==d&&l>0){if(u instanceof s.BlockEmbed||d instanceof s.BlockEmbed)return void this.optimize();if(u instanceof p.default){var h=u.newlineIndex(u.length(),!0);if(h>-1&&(u=u.split(h+1))===d)return void this.optimize()}else if(d instanceof p.default){var y=d.newlineIndex(0);y>-1&&d.split(y+1)}var m=d.children.head instanceof c.default?null:d.children.head;u.moveChildren(d,m),u.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var i=a.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var u=a.default.create(n,r);this.appendChild(u)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],o=r;return t.children.forEachAt(n,r,(function(t,n,r){h(t)?i.push(t):t instanceof a.default.Container&&(i=i.concat(e(t,n,o))),o-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=u.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[l.default,s.BlockEmbed,f.default],t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var 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,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=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}}(),a=y(n(21)),u=y(n(11)),s=y(n(3)),l=y(n(2)),c=y(n(20)),p=y(n(0)),f=y(n(5)),d=y(n(10)),h=y(n(9));function y(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,d.default)("quill:keyboard"),g=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",D=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},A),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},E),r.addBinding({key:t.keys.DELETE},{collapsed:!0},x)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},E),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},C),r.addBinding({key:t.keys.DELETE},{collapsed:!1},C),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},E),r.listen(),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"match",value:function(e,t){return t=F(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=F(e);if(null==r||null==r.key)return v.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,s.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var l=e.quill.getLine(s.index),c=i(l,2),f=c[0],d=c[1],h=e.quill.getLeaf(s.index),y=i(h,2),m=y[0],v=y[1],g=0===s.length?[m,v]:e.quill.getLeaf(s.index+s.length),D=i(g,2),b=D[0],E=D[1],x=m instanceof p.default.Text?m.value().slice(0,v):"",C=b instanceof p.default.Text?b.value().slice(E):"",A={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:e.quill.getFormat(s),offset:d,prefix:x,suffix:C};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==A.collapsed)return!1;if(null!=t.empty&&t.empty!==A.empty)return!1;if(null!=t.offset&&t.offset!==A.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==A.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=A.format[e]:!1===t.format[e]?null==A.format[e]:(0,u.default)(t.format[e],A.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(A.prefix))&&!(null!=t.suffix&&!t.suffix.test(A.suffix))&&!0!==t.handler.call(e,s,A)}))&&n.preventDefault()}}}}))}}]),t}(h.default);function b(e,t){var n,r=e===D.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},r,/^$/),m(n,"handler",(function(n){var r=n.index;e===D.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof p.default.Embed)||(e===D.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),!1)})),n}function E(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1)[0],o={};if(0===t.offset){var a=this.quill.getLine(e.index-1),u=i(a,1)[0];if(null!=u&&u.length()>1){var s=r.formats(),l=this.quill.getFormat(e.index-1,1);o=c.default.attributes.diff(s,l)||{}}}var p=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-p,p,f.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index-p,p,o,f.default.sources.USER),this.quill.focus()}}function x(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(e.index),u=i(a,1)[0];if(t.offset>=u.length()-1){var s=this.quill.getLine(e.index+1),l=i(s,1)[0];if(l){var p=u.formats(),d=this.quill.getFormat(e.index,1);r=c.default.attributes.diff(p,d)||{},o=l.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+o-1,n,r,f.default.sources.USER)}}function C(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=c.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function A(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return p.default.query(n,p.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function w(e){return{key:D.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=p.default.query("code-block"),r=t.index,o=t.length,a=this.quill.scroll.descendant(n,r),u=i(a,2),s=u[0],l=u[1];if(null!=s){var c=this.quill.getIndex(s),d=s.newlineIndex(l,!0)+1,h=s.newlineIndex(c+l+o),y=s.domNode.textContent.slice(d,h).split("\n");l=0,y.forEach((function(t,i){e?(s.insertAt(d+l,n.TAB),l+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(d+l,n.TAB.length),l-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),l+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(r,o,f.default.sources.SILENT)}}}}function S(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function F(e){if("string"===typeof e||"number"===typeof e)return F({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"===typeof e.key)if(null!=D.keys[e.key.toUpperCase()])e.key=D.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[g]=e.shortKey,delete e.shortKey),e}D.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},D.DEFAULTS={bindings:{bold:S("bold"),italic:S("italic"),underline:S("underline"),indent:{key:D.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:D.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:D.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":w(!0),"outdent code-block":w(!1),"remove tab":{key:D.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:D.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new l.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:D.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:D.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(0,s.default)({},r.formats(),{list:"checked"}),u=(new l.default).retain(e.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(u,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:D.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),o=r[0],a=r[1],u=(new l.default).retain(e.index).insert("\n",t.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(u,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),o=i(r,2),a=o[0],u=o[1];if(u>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var c=(new l.default).retain(e.index-u).delete(n+1).retain(a.length()-2-u).retain(1,{list:s});this.quill.updateContents(c,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:D.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(new l.default).retain(e.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,f.default.sources.USER)}},"embed left":b(D.keys.LEFT,!1),"embed left shift":b(D.keys.LEFT,!0),"embed right":b(D.keys.RIGHT,!1),"embed right shift":b(D.keys.RIGHT,!0)}},t.default=D,t.SHORTKEY=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=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}}(),a=s(n(0)),u=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,o=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(o,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var l=[e,n.start.offset,n.end.offset];i=l[0],o=l[1],s=l[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof u.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var p=[o,s].map((function(e){return Math.max(0,Math.min(i.data.length,e-1))})),f=r(p,2);return o=f[0],s=f[1],{startNode:i,startOffset:o,endNode:i,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\ufeff",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),i=n(4),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);l.allowedChildren=[o.default,i.BlockEmbed,l],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),u=(r=a)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"value",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(u.default.Attributor.Style),p=new u.default.Attributor.Class("color","ql-color",{scope:u.default.Scope.INLINE}),f=new c("color","color",{scope:u.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=p,t.ColorStyle=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);function c(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=l,t.sanitize=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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(){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}}(),o=u(n(23)),a=u(n(107));function u(e){return e&&e.__esModule?e:{default:e}}var s=0;function l(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return i(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),l(this.label,"aria-expanded"),l(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case o.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+s,s+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n(0)),i=v(n(5)),o=n(4),a=v(o),u=v(n(16)),s=v(n(25)),l=v(n(24)),c=v(n(35)),p=v(n(6)),f=v(n(22)),d=v(n(7)),h=v(n(55)),y=v(n(42)),m=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}i.default.register({"blots/block":a.default,"blots/block/embed":o.BlockEmbed,"blots/break":u.default,"blots/container":s.default,"blots/cursor":l.default,"blots/embed":c.default,"blots/inline":p.default,"blots/scroll":f.default,"blots/text":d.default,"modules/clipboard":h.default,"modules/history":y.default,"modules/keyboard":m.default}),r.default.register(a.default,u.default,l.default,p.default,f.default,d.default),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),u=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),u=o.default.keys(this.domNode);t.concat(n).concat(u).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=u},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(0)),a=u(n(7));function u(e){return e&&e.__esModule?e:{default:e}}var s="\ufeff",l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(s),n.rightGuard=document.createTextNode(s),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(s).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var i=this.prev.length();this.prev.insertAt(i,r),t={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=s,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(o.default.Embed);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},u=new o.default.Attributor.Attribute("align","align",a),s=new o.default.Attributor.Class("align","ql-align",a),l=new o.default.Attributor.Style("align","text-align",a);t.AlignAttribute=u,t.AlignClass=s,t.AlignStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=n(26),u=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),s=new a.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=u,t.BackgroundStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},u=new o.default.Attributor.Attribute("direction","dir",a),s=new o.default.Attributor.Class("direction","ql-direction",a),l=new o.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=u,t.DirectionClass=s,t.DirectionStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),u=(r=a)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c={scope:u.default.Scope.INLINE,whitelist:["serif","monospace"]},p=new u.default.Attributor.Class("font","ql-font",c),f=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"value",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(u.default.Attributor.Style),d=new f("font","font-family",c);t.FontStyle=d,t.FontClass=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),u=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=u},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=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}}(),i=a(n(0)),o=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(o.default.events.EDITOR_CHANGE,(function(e,t,n,i){e!==o.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==o.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],o.default.sources.USER),this.ignoreChange=!1;var r=s(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function s(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=i.default.query(e,i.default.Scope.BLOCK)})))}(e)&&(n-=1),n}u.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=u,t.getLastChangeIndex=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=h(n(3)),a=h(n(2)),u=h(n(8)),s=h(n(23)),l=h(n(34)),c=h(n(59)),p=h(n(60)),f=h(n(28)),d=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function v(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[!1,"center","right","justify"],D=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],b=[!1,"serif","monospace"],E=["1","2","3",!1],x=["small",!1,"large","huge"],C=function(e){function t(e,n){y(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),r}return v(t,e),r(t,[{key:"addModule",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"===typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&w(e,g),new p.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&w(e,D,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?w(e,b):e.classList.contains("ql-header")?w(e,E):e.classList.contains("ql-size")&&w(e,x)),new f.default(e)})),this.quill.on(u.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(l.default);C.DEFAULTS=(0,o.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),u.default.sources.USER),e.quill.setSelection(r.index+1,u.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var A=function(e){function t(e,n){y(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return v(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,u.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,u.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",u.default.sources.USER),this.quill.setSelection(r+2,u.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(d.default);function w(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=A,t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(e<i||t&&e===i&&(null==n.next||0!==n.next.length()))return[n,e];e-=i}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,i=this.find(e),o=i[0],a=e-i[1],u=this.iterator(o);(r=u())&&a<e+t;){var s=r.length();e>a?n(r,e-a,Math.min(t,a+s-e)):n(r,0,Math.min(s,e+t-a)),a+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)t.push(a.pop());for(var u=function e(t,n){void 0===n&&(n=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[o.DATA_KEY].mutations&&(t.domNode[o.DATA_KEY].mutations=[]),n&&e(t.parent))},s=function e(t){null!=t.domNode[o.DATA_KEY]&&null!=t.domNode[o.DATA_KEY].mutations&&(t instanceof i.default&&t.children.forEach(e),t.optimize(n))},l=t,c=0;l.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(u(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);u(t,!1),t instanceof i.default&&t.children.forEach((function(e){u(e,!1)}))}))):"attributes"===e.type&&u(t.prev)),u(t))})),this.children.forEach(s),a=(l=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)t.push(a.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=o.find(e.target,!0);return null==t?null:null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=u},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=o.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=o.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),a=o.create(n,r);i.parent.insertBefore(a,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(t=n[o],e.call(i,t,o,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function r(e,t,s){if(e==t)return e?[[0,e]]:[];(s<0||e.length<s)&&(s=null);var c=o(e,t),p=e.substring(0,c);c=a(e=e.substring(c),t=t.substring(c));var f=e.substring(e.length-c),d=function(e,t){var u;if(!e)return[[1,t]];if(!t)return[[n,e]];var s=e.length>t.length?e:t,l=e.length>t.length?t:e,c=s.indexOf(l);if(-1!=c)return u=[[1,s.substring(0,c)],[0,l],[1,s.substring(c+l.length)]],e.length>t.length&&(u[0][0]=u[2][0]=n),u;if(1==l.length)return[[n,e],[1,t]];var p=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function i(e,t,n){for(var r,i,u,s,l=e.substring(n,n+Math.floor(e.length/4)),c=-1,p="";-1!=(c=t.indexOf(l,c+1));){var f=o(e.substring(n),t.substring(c)),d=a(e.substring(0,n),t.substring(0,c));p.length<d+f&&(p=t.substring(c-d,c)+t.substring(c,c+f),r=e.substring(0,n-d),i=e.substring(n+f),u=t.substring(0,c-d),s=t.substring(c+f))}return 2*p.length>=e.length?[r,i,u,s,p]:null}var u,s,l,c,p,f=i(n,r,Math.ceil(n.length/4)),d=i(n,r,Math.ceil(n.length/2));if(!f&&!d)return null;u=d?f&&f[4].length>d[4].length?f:d:f,e.length>t.length?(s=u[0],l=u[1],c=u[2],p=u[3]):(c=u[0],p=u[1],s=u[2],l=u[3]);var h=u[4];return[s,l,c,p,h]}(e,t);if(p){var f=p[0],d=p[1],h=p[2],y=p[3],m=p[4],v=r(f,h),g=r(d,y);return v.concat([[0,m]],g)}return function(e,t){for(var r=e.length,o=t.length,a=Math.ceil((r+o)/2),u=a,s=2*a,l=new Array(s),c=new Array(s),p=0;p<s;p++)l[p]=-1,c[p]=-1;l[u+1]=0,c[u+1]=0;for(var f=r-o,d=f%2!=0,h=0,y=0,m=0,v=0,g=0;g<a;g++){for(var D=-g+h;D<=g-y;D+=2){for(var b=u+D,E=(S=D==-g||D!=g&&l[b-1]<l[b+1]?l[b+1]:l[b-1]+1)-D;S<r&&E<o&&e.charAt(S)==t.charAt(E);)S++,E++;if(l[b]=S,S>r)y+=2;else if(E>o)h+=2;else if(d&&(A=u+f-D)>=0&&A<s&&-1!=c[A]&&S>=(C=r-c[A]))return i(e,t,S,E)}for(var x=-g+m;x<=g-v;x+=2){for(var C,A=u+x,w=(C=x==-g||x!=g&&c[A-1]<c[A+1]?c[A+1]:c[A-1]+1)-x;C<r&&w<o&&e.charAt(r-C-1)==t.charAt(o-w-1);)C++,w++;if(c[A]=C,C>r)v+=2;else if(w>o)m+=2;else if(!d){var S;if((b=u+f-x)>=0&&b<s&&-1!=l[b])if(E=u+(S=l[b])-b,S>=(C=r-C))return i(e,t,S,E)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-c),t=t.substring(0,t.length-c));return p&&d.unshift([0,p]),f&&d.push([0,f]),u(d),null!=s&&(d=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,i=0;i<e.length;i++){var o=e[i];if(o[0]===n||0===o[0]){var a=r+o[1].length;if(t===a)return[i+1,e];if(t<a){e=e.slice();var u=t-r,s=[o[0],o[1].slice(0,u)],l=[o[0],o[1].slice(u)];return e.splice(i,1,s,l),[i+1,e]}r=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),i=r[1],o=r[0],a=i[o],u=i[o+1];if(null==a)return e;if(0!==a[0])return e;if(null!=u&&a[1]+u[1]===u[1]+a[1])return i.splice(o,2,u,a),l(i,o,2);if(null!=u&&0===u[1].indexOf(a[1])){i.splice(o,2,[u[0],a[1]],[0,a[1]]);var s=u[1].slice(a[1].length);return s.length>0&&i.splice(o+2,0,[u[0],s]),l(i,o,3)}return e}(d,s)),d=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},i=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},o=2;o<e.length;o+=1)0===e[o-2][0]&&i(e[o-2][1])&&e[o-1][0]===n&&r(e[o-1][1])&&1===e[o][0]&&r(e[o][1])&&(t=!0,e[o-1][1]=e[o-2][1].slice(-1)+e[o-1][1],e[o][1]=e[o-2][1].slice(-1)+e[o][1],e[o-2][1]=e[o-2][1].slice(0,-1));if(!t)return e;var a=[];for(o=0;o<e.length;o+=1)e[o][1].length>0&&a.push(e[o]);return a}(d)}function i(e,t,n,i){var o=e.substring(0,n),a=t.substring(0,i),u=e.substring(n),s=t.substring(i),l=r(o,a),c=r(u,s);return l.concat(c)}function o(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function u(e){e.push([0,""]);for(var t,r=0,i=0,s=0,l="",c="";r<e.length;)switch(e[r][0]){case 1:s++,c+=e[r][1],r++;break;case n:i++,l+=e[r][1],r++;break;case 0:i+s>1?(0!==i&&0!==s&&(0!==(t=o(c,l))&&(r-i-s>0&&0==e[r-i-s-1][0]?e[r-i-s-1][1]+=c.substring(0,t):(e.splice(0,0,[0,c.substring(0,t)]),r++),c=c.substring(t),l=l.substring(t)),0!==(t=a(c,l))&&(e[r][1]=c.substring(c.length-t)+e[r][1],c=c.substring(0,c.length-t),l=l.substring(0,l.length-t))),0===i?e.splice(r-s,i+s,[1,c]):0===s?e.splice(r-i,i+s,[n,l]):e.splice(r-i-s,i+s,[n,l],[1,c]),r=r-i-s+(i?1:0)+(s?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,s=0,i=0,l="",c=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),p=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),p=!0)),r++;p&&u(e)}var s=r;function l(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var i=e[r],o=e[r+1];i[0]===o[1]&&e.splice(r,2,[i[0],i[1]+o[1]])}return e}s.INSERT=1,s.DELETE=n,s.EQUAL=0,e.exports=s},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"===typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:i).supported=r,t.unsupported=i},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e,t){var n=r?r+e:e,i=this._events[n];if(t)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,u=new Array(a);o<a;o++)u[o]=i[o].fn;return u},a.prototype.emit=function(e,t,n,i,o,a){var u=r?r+e:e;if(!this._events[u])return!1;var s,l,c=this._events[u],p=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),p){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,o),!0;case 6:return c.fn.call(c.context,t,n,i,o,a),!0}for(l=1,s=new Array(p-1);l<p;l++)s[l-1]=arguments[l];c.fn.apply(c.context,s)}else{var f,d=c.length;for(l=0;l<d;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),p){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,t);break;case 3:c[l].fn.call(c[l].context,t,n);break;case 4:c[l].fn.call(c[l].context,t,n,i);break;default:if(!s)for(f=1,s=new Array(p-1);f<p;f++)s[f-1]=arguments[f];c[l].fn.apply(c[l].context,s)}}return!0},a.prototype.on=function(e,t,n){var i=new o(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(e,t,n){var i=new o(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,o){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0===--this._eventsCount?this._events=new i:delete this._events[a],this;var u=this._events[a];if(u.fn)u.fn!==t||o&&!u.once||n&&u.context!==n||(0===--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var s=0,l=[],c=u.length;s<c;s++)(u[s].fn!==t||o&&!u[s].once||n&&u[s].context!==n)&&l.push(u[s]);l.length?this._events[a]=1===l.length?l[0]:l:0===--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var 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,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=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}}(),a=D(n(3)),u=D(n(2)),s=D(n(0)),l=D(n(5)),c=D(n(10)),p=D(n(9)),f=n(36),d=n(37),h=D(n(13)),y=n(26),m=n(38),v=n(39),g=n(40);function D(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=(0,c.default)("quill:clipboard"),x="__ql-matcher",C=[[Node.TEXT_NODE,L],[Node.TEXT_NODE,B],["br",function(e,t){return _(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,B],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===k(e).fontStyle&&(n.italic=!0),r.fontWeight&&(k(e).fontWeight.startsWith("bold")||parseInt(k(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=F(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new u.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!_(t,"\n"))return t;for(var r=-1,i=e.parentNode;!i.classList.contains("ql-clipboard");)"list"===(s.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new u.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",N.bind(N,"bold")],["i",N.bind(N,"italic")],["style",function(){return new u.default}]],A=[f.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),w=[f.AlignStyle,d.BackgroundStyle,y.ColorStyle,m.DirectionStyle,v.FontStyle,g.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],C.concat(r.options.matchers).forEach((function(e){var t=i(e,2),o=t[0],a=t[1];(n.matchVisual||a!==I)&&r.addMatcher(o,a)})),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(n,b({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],s=o[1],l=O(this.container,a,s);return _(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new u.default).retain(l.length()-1).delete(1))),E.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,l.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new u.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new u.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,l.default.sources.USER),t.quill.setSelection(r.length()-n.length,l.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],u=o[1];switch(a){case Node.TEXT_NODE:n.push(u);break;case Node.ELEMENT_NODE:t.push(u);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[x]=e[x]||[],e[x].push(u)}))}})),[t,n]}}]),t}(p.default);function F(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return F(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},b({},t,n),r.attributes))}),new u.default)}function k(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function _(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var i=e.ops[r];if("string"!==typeof i.insert)break;n=i.insert+n}return n.slice(-1*t.length)===t}function T(e){if(0===e.childNodes.length)return!1;var t=k(e);return["block","list-item"].indexOf(t.display)>-1}function O(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new u.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var o=O(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(i,e)}),o),o=(i[x]||[]).reduce((function(e,t){return t(i,e)}),o)),r.concat(o)}),new u.default):new u.default}function N(e,t,n){return F(n,e,!0)}function j(e,t){var n=s.default.Attributor.Attribute.keys(e),r=s.default.Attributor.Class.keys(e),i=s.default.Attributor.Style.keys(e),o={};return n.concat(r).concat(i).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(null==(n=A[t])||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),null==(n=w[t])||n.attrName!==t&&n.keyName!==t||(n=w[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=F(t,o)),t}function P(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new u.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(t=F(t,n.blotName,n.formats(e)));return t}function B(e,t){return _(t,"\n")||(T(e)||t.length()>0&&e.nextSibling&&T(e.nextSibling))&&t.insert("\n"),t}function I(e,t){if(T(e)&&null!=e.nextElementSibling&&!_(t,"\n\n")){var n=e.offsetHeight+parseFloat(k(e).marginTop)+parseFloat(k(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function L(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!k(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&T(e.parentNode)||null!=e.previousSibling&&T(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&T(e.parentNode)||null!=e.nextSibling&&T(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}S.DEFAULTS={matchers:[],matchVisual:!0},t.default=S,t.matchAttributor=j,t.matchBlot=P,t.matchNewline=B,t.matchSpacing=I,t.matchText=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="bold",l.tagName=["STRONG","B"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=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}}(),o=c(n(2)),a=c(n(0)),u=c(n(5)),s=c(n(10)),l=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var f=(0,s.default)("quill:toolbar"),d=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");y(a,o.options.container),e.container.parentNode.insertBefore(a,e.container),o.container=a}else"string"===typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(u.default.events.EDITOR_CHANGE,(function(e,t){e===u.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(u.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=r(e,1)[0];o.update(t)})),o):(i=f.error("Container required for toolbar",o.options),p(o,i))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void f.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void f.warn("ignoring attaching to nonexistent format",n,e)}var i="SELECT"===e.tagName?"change":"click";e.addEventListener(i,(function(i){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var l=e.options[e.selectedIndex];s=!l.hasAttribute("selected")&&(l.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),i.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),p=r(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new o.default).retain(p.index).delete(p.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,s)),u.default.sources.USER)}else t.quill.format(n,s,u.default.sources.USER);t.update(p)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var u=void 0;if(null==e)u=null;else if(null==t[o])u=a.querySelector("option[selected]");else if(!Array.isArray(t[o])){var s=t[o];"string"===typeof s&&(s=s.replace(/\"/g,'\\"')),u=a.querySelector('option[value="'+s+'"]')}null==u?(a.value="",a.selectedIndex=-1):u.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var l=t[o]===a.getAttribute("value")||null!=t[o]&&t[o].toString()===a.getAttribute("value")||null==t[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",l)}else a.classList.toggle("ql-active",null!=t[o])}))}}]),t}(l.default);function h(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function y(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"===typeof e)h(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):h(n,t,r)}})),e.appendChild(n)}))}d.DEFAULTS={},d.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,u.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",u.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",e,u.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var i="+1"===e?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,u.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,u.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",e,u.default.sources.USER)}}},t.default=d,t.addControls=y},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(28),u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"buildItem",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(28),u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"selectItem",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=t+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=t+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,u=e.bottom-e.top+a;this.root.style.top=n-u+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=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}}(),a=d(n(3)),u=d(n(8)),s=n(43),l=d(s),c=d(n(27)),p=n(15),f=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function m(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],g=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return m(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new D(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(l.default);g.DEFAULTS=(0,a.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var D=function(e){function t(e,n){h(this,t);var r=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return m(t,e),o(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,u.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(u.default.events.SELECTION_CHANGE,(function(t,n,i){if(null!=t){if(0===t.length&&i===u.default.sources.USER){var o=e.quill.scroll.descendant(c.default,t.index),a=r(o,2),s=a[0],l=a[1];if(null!=s){e.linkRange=new p.Range(t.index-l,s.length());var f=c.default.formats(s.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);D.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=B(n(29)),i=n(36),o=n(38),a=n(64),u=B(n(65)),s=B(n(66)),l=n(67),c=B(l),p=n(37),f=n(26),d=n(39),h=n(40),y=B(n(56)),m=B(n(68)),v=B(n(27)),g=B(n(69)),D=B(n(70)),b=B(n(71)),E=B(n(72)),x=B(n(73)),C=n(13),A=B(C),w=B(n(74)),S=B(n(75)),F=B(n(57)),k=B(n(41)),_=B(n(28)),T=B(n(59)),O=B(n(60)),N=B(n(61)),j=B(n(108)),P=B(n(62));function B(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":d.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":d.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":a.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":d.FontClass,"formats/size":h.SizeClass,"formats/blockquote":u.default,"formats/code-block":A.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":y.default,"formats/code":C.Code,"formats/italic":m.default,"formats/link":v.default,"formats/script":g.default,"formats/strike":D.default,"formats/underline":b.default,"formats/image":E.default,"formats/video":x.default,"formats/list/item":l.ListItem,"modules/formula":w.default,"modules/syntax":S.default,"modules/toolbar":F.default,"themes/bubble":j.default,"themes/snow":P.default,"ui/icons":k.default,"ui/picker":_.default,"ui/icon-picker":O.default,"ui/color-picker":T.default,"ui/tooltip":N.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),u=(r=a)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(u.default.Attributor.Class),p=new c("indent","ql-indent",{scope:u.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(4);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);u.blotName="blockquote",u.tagName="blockquote",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=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}}(),o=n(4);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return a(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=o)&&r.__esModule?r:{default:r}).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(0)),a=s(n(4)),u=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),r(t,[{key:"format",value:function(e,n){e!==d.blotName||n?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:i(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);f.blotName="list-item",f.tagName="LI";var d=function(e){function t(e){l(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),i=o.default.find(t.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return p(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof f)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(u.default);d.blotName="list",d.scope=o.default.Scope.BLOCK_BLOT,d.tagName=["OL","UL"],d.defaultChild="list-item",d.allowedChildren=[f],t.ListItem=f,t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(56);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);u.blotName="italic",u.tagName=["EM","I"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="script",l.tagName=["SUB","SUP"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(6);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);u.blotName="strike",u.tagName="S",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(6);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);u.blotName="underline",u.tagName="U",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),u=(r=a)&&r.__esModule?r:{default:r},s=n(27);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var p=["alt","height","width"],f=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"format",value:function(e,n){p.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return p.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(u.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(4),u=n(27),s=(r=u)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var p=["height","width"],f=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"format",value:function(e,n){p.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return p.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(35)),a=s(n(5)),u=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),r(t,null,[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(o.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var d=function(e){function t(){l(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return p(t,e),r(t,null,[{key:"register",value:function(){a.default.register(f,!0)}}]),t}(u.default);t.FormulaBlot=f,t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(0)),a=s(n(5)),u=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);f.className="ql-syntax";var d=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),h=function(e){function t(e,n){l(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return p(t,e),r(t,null,[{key:"register",value:function(){a.default.register(d,!0),a.default.register(f,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(u.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=d,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=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}}(),o=p(n(3)),a=p(n(8)),u=n(43),s=p(u),l=n(15),c=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return h(t,e),i(t,[{key:"extendToolbar",value:function(e){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(s.default);m.DEFAULTS=(0,o.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var v=function(e){function t(e,n){f(this,t);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,i){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&i===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(t.index,t.length);if(1===o.length)r.position(r.quill.getBounds(t));else{var u=o[o.length-1],s=r.quill.getIndex(u),c=Math.min(u.length()-1,t.index+t.length-s),p=r.quill.getBounds(new l.Range(s,c));r.position(p)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(u.BaseTooltip);v.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=v,t.default=m},function(e,t,n){e.exports=n(63)}]).default},e.exports=t()},4463:function(e,t,n){"use strict";var r=n(2791),i=n(1725),o=n(5296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var u=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)u.add(t[e])}var p=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,h={},y={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function D(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(y,e)||!d.call(h,e)&&(f.test(e)?y[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,D);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,D);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,D);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,C=60106,A=60107,w=60108,S=60114,F=60109,k=60110,_=60112,T=60113,O=60120,N=60115,j=60116,P=60121,B=60128,I=60129,L=60130,M=60131;if("function"===typeof Symbol&&Symbol.for){var R=Symbol.for;x=R("react.element"),C=R("react.portal"),A=R("react.fragment"),w=R("react.strict_mode"),S=R("react.profiler"),F=R("react.provider"),k=R("react.context"),_=R("react.forward_ref"),T=R("react.suspense"),O=R("react.suspense_list"),N=R("react.memo"),j=R("react.lazy"),P=R("react.block"),R("react.scope"),B=R("react.opaque.id"),I=R("react.debug_trace_mode"),L=R("react.offscreen"),M=R("react.legacy_hidden")}var q,V="function"===typeof Symbol&&Symbol.iterator;function U(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=V&&e[V]||e["@@iterator"])?e:null}function z(e){if(void 0===q)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||""}return"\n"+q+e}var H=!1;function W(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var i=s.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,u=o.length-1;1<=a&&0<=u&&i[a]!==o[u];)u--;for(;1<=a&&0<=u;a--,u--)if(i[a]!==o[u]){if(1!==a||1!==u)do{if(a--,0>--u||i[a]!==o[u])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=u);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function $(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 22:return e=W(e.type._render,!1);case 1:return e=W(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case A:return"Fragment";case C:return"Portal";case S:return"Profiler";case w:return"StrictMode";case T:return"Suspense";case O:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case F:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return G(e.type);case P:return G(e._render);case j:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function J(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=J(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=J(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function le(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var pe="http://www.w3.org/1999/xhtml",fe="http://www.w3.org/2000/svg";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ye,me,ve=(me=function(e,t){if(e.namespaceURI!==fe||"innerHTML"in e)e.innerHTML=t;else{for((ye=ye||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ye.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var De={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function Ee(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||De.hasOwnProperty(e)&&De[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Ee(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(De).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),De[t]=De[e]}))}));var Ce=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ae(e,t){if(t){if(Ce[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Fe=null,ke=null,_e=null;function Te(e){if(e=ri(e)){if("function"!==typeof Fe)throw Error(a(280));var t=e.stateNode;t&&(t=oi(t),Fe(e.stateNode,e.type,t))}}function Oe(e){ke?_e?_e.push(e):_e=[e]:ke=e}function Ne(){if(ke){var e=ke,t=_e;if(_e=ke=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function je(e,t){return e(t)}function Pe(e,t,n,r,i){return e(t,n,r,i)}function Be(){}var Ie=je,Le=!1,Me=!1;function Re(){null===ke&&null===_e||(Be(),Ne())}function qe(e,t){var n=e.stateNode;if(null===n)return null;var r=oi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Ve=!1;if(p)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){Ve=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(me){Ve=!1}function ze(e,t,n,r,i,o,a,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var He=!1,We=null,$e=!1,Ge=null,Ke={onError:function(e){He=!0,We=e}};function Je(e,t,n,r,i,o,a,u,s){He=!1,We=null,ze.apply(Ke,arguments)}function Xe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Qe(e){if(Xe(e)!==e)throw Error(a(188))}function Ze(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Qe(i),e;if(o===r)return Qe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,s=i.child;s;){if(s===n){u=!0,n=i,r=o;break}if(s===r){u=!0,r=i,n=o;break}s=s.sibling}if(!u){for(s=o.child;s;){if(s===n){u=!0,n=o,r=i;break}if(s===r){u=!0,r=o,n=i;break}s=s.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,ot=!1,at=[],ut=null,st=null,lt=null,ct=new Map,pt=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function yt(e,t){switch(e){case"focusin":case"focusout":ut=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pt.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=ht(t,n,r,i,o),null!==t&&(null!==(t=ri(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=ni(e.target);if(null!==t){var n=Xe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ri(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function Dt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(ot=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ri(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==ut&>(ut)&&(ut=null),null!==st&>(st)&&(st=null),null!==lt&>(lt)&&(lt=null),ct.forEach(Dt),pt.forEach(Dt)}function Et(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function xt(e){function t(t){return Et(t,e)}if(0<at.length){Et(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ut&&Et(ut,e),null!==st&&Et(st,e),null!==lt&&Et(lt,e),ct.forEach(t),pt.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function Ct(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var At={animationend:Ct("Animation","AnimationEnd"),animationiteration:Ct("Animation","AnimationIteration"),animationstart:Ct("Animation","AnimationStart"),transitionend:Ct("Transition","TransitionEnd")},wt={},St={};function Ft(e){if(wt[e])return wt[e];if(!At[e])return e;var t,n=At[e];for(t in n)if(n.hasOwnProperty(t)&&t in St)return wt[e]=n[t];return e}p&&(St=document.createElement("div").style,"AnimationEvent"in window||(delete At.animationend.animation,delete At.animationiteration.animation,delete At.animationstart.animation),"TransitionEvent"in window||delete At.transitionend.transition);var kt=Ft("animationend"),_t=Ft("animationiteration"),Tt=Ft("animationstart"),Ot=Ft("transitionend"),Nt=new Map,jt=new Map,Pt=["abort","abort",kt,"animationEnd",_t,"animationIteration",Tt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ot,"transitionEnd","waiting","waiting"];function Bt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),jt.set(r,t),Nt.set(r,i),l(i,[r])}}(0,o.unstable_now)();var It=8;function Lt(e){if(0!==(1&e))return It=15,1;if(0!==(2&e))return It=14,2;if(0!==(4&e))return It=13,4;var t=24&e;return 0!==t?(It=12,t):0!==(32&e)?(It=11,32):0!==(t=192&e)?(It=10,t):0!==(256&e)?(It=9,256):0!==(t=3584&e)?(It=8,t):0!==(4096&e)?(It=7,4096):0!==(t=4186112&e)?(It=6,t):0!==(t=62914560&e)?(It=5,t):67108864&e?(It=4,67108864):0!==(134217728&e)?(It=3,134217728):0!==(t=805306368&e)?(It=2,t):0!==(1073741824&e)?(It=1,1073741824):(It=8,e)}function Mt(e,t){var n=e.pendingLanes;if(0===n)return It=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,u=e.pingedLanes;if(0!==o)r=o,i=It=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=Lt(s),i=It):0!==(u&=o)&&(r=Lt(u),i=It)}else 0!==(o=n&~a)?(r=Lt(o),i=It):0!==u&&(r=Lt(u),i=It);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Lt(t),i<=It)return t;It=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ht(t)),r|=e[n],t&=~i;return r}function Rt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function qt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?qt(10,t):e;case 10:return 0===(e=Vt(192&~t))?qt(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&(0===(e=Vt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Vt(e){return e&-e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/$t|0)|0},Wt=Math.log,$t=Math.LN2;var Gt=o.unstable_UserBlockingPriority,Kt=o.unstable_runWithPriority,Jt=!0;function Xt(e,t,n,r){Le||Be();var i=Qt,o=Le;Le=!0;try{Pe(i,e,t,n,r)}finally{(Le=o)||Re()}}function Yt(e,t,n,r){Kt(Gt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var i;if(Jt)if((i=0===(4&t))&&0<at.length&&-1<dt.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var o=Zt(e,t,n,r);if(null===o)i&&yt(e,r);else{if(i){if(-1<dt.indexOf(e))return e=ht(o,e,t,n,r),void at.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return ut=mt(ut,e,t,n,r,i),!0;case"dragenter":return st=mt(st,e,t,n,r,i),!0;case"mouseover":return lt=mt(lt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,pt.set(o,mt(pt.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;yt(e,r)}Br(e,t,r,null,n)}}}function Zt(e,t,n,r){var i=Se(r);if(null!==(i=ni(i))){var o=Xe(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ye(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Br(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return nn=i.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function un(){return!1}function sn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?an:un,this.isPropagationStopped=un,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var ln,cn,pn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=sn(fn),hn=i({},fn,{view:0,detail:0}),yn=sn(hn),mn=i({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pn&&(pn&&"mousemove"===e.type?(ln=e.screenX-pn.screenX,cn=e.screenY-pn.screenY):cn=ln=0,pn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),vn=sn(mn),gn=sn(i({},mn,{dataTransfer:0})),Dn=sn(i({},hn,{relatedTarget:0})),bn=sn(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),En=i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xn=sn(En),Cn=sn(i({},fn,{data:0})),An={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function kn(){return Fn}var _n=i({},hn,{key:function(e){if(e.key){var t=An[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=sn(_n),On=sn(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=sn(i({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),jn=sn(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Bn=sn(Pn),In=[9,13,27,32],Ln=p&&"CompositionEvent"in window,Mn=null;p&&"documentMode"in document&&(Mn=document.documentMode);var Rn=p&&"TextEvent"in window&&!Mn,qn=p&&(!Ln||Mn&&8<Mn&&11>=Mn),Vn=String.fromCharCode(32),Un=!1;function zn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Kn(e,t,n,r){Oe(r),0<(t=Lr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Jn=null,Xn=null;function Yn(e){_r(e,0)}function Qn(e){if(Y(ii(e)))return e}function Zn(e,t){if("change"===e)return t}var er=!1;if(p){var tr;if(p){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function ir(){Jn&&(Jn.detachEvent("onpropertychange",or),Xn=Jn=null)}function or(e){if("value"===e.propertyName&&Qn(Xn)){var t=[];if(Kn(t,Xn,e,Se(e)),e=Yn,Le)e(t);else{Le=!0;try{je(e,t)}finally{Le=!1,Re()}}}}function ar(e,t,n){"focusin"===e?(ir(),Xn=n,(Jn=t).attachEvent("onpropertychange",or)):"focusout"===e&&ir()}function ur(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Xn)}function sr(e,t){if("click"===e)return Qn(t)}function lr(e,t){if("input"===e||"change"===e)return Qn(t)}var cr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},pr=Object.prototype.hasOwnProperty;function fr(e,t){if(cr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!pr.call(t,n[r])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=dr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dr(r)}}function yr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?yr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gr=p&&"documentMode"in document&&11>=document.documentMode,Dr=null,br=null,Er=null,xr=!1;function Cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;xr||null==Dr||Dr!==Q(r)||("selectionStart"in(r=Dr)&&vr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Er&&fr(Er,r)||(Er=r,0<(r=Lr(br,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}Bt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Bt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Bt(Pt,2);for(var Ar="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wr=0;wr<Ar.length;wr++)jt.set(Ar[wr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function kr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,u,s,l){if(Je.apply(this,arguments),He){if(!He)throw Error(a(198));var c=We;He=!1,We=null,$e||($e=!0,Ge=c)}}(r,t,void 0,e),e.currentTarget=null}function _r(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],s=u.instance,l=u.currentTarget;if(u=u.listener,s!==o&&i.isPropagationStopped())break e;kr(i,u,l),o=s}else for(a=0;a<r.length;a++){if(s=(u=r[a]).instance,l=u.currentTarget,u=u.listener,s!==o&&i.isPropagationStopped())break e;kr(i,u,l),o=s}}}if($e)throw e=Ge,$e=!1,Ge=null,e}function Tr(e,t){var n=ai(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Or="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){e[Or]||(e[Or]=!0,u.forEach((function(t){Fr.has(t)||jr(t,!1,e,null),jr(t,!0,e,null)})))}function jr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Fr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ai(o),u=e+"__"+(t?"capture":"bubble");a.has(u)||(t&&(i|=4),Pr(o,e,i,t),a.add(u))}function Pr(e,t,n,r){var i=jt.get(t);switch(void 0===i?2:i){case 0:i=Xt;break;case 1:i=Yt;break;default:i=Qt}n=i.bind(null,t,n,e),i=void 0,!Ve||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var u=r.stateNode.containerInfo;if(u===i||8===u.nodeType&&u.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;a=a.return}for(;null!==u;){if(null===(a=ni(u)))return;if(5===(s=a.tag)||6===s){r=o=a;continue e}u=u.parentNode}}r=r.return}!function(e,t,n){if(Me)return e(t,n);Me=!0;try{Ie(e,t,n)}finally{Me=!1,Re()}}((function(){var r=o,i=Se(n),a=[];e:{var u=Nt.get(e);if(void 0!==u){var s=dn,l=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":s=Tn;break;case"focusin":l="focus",s=Dn;break;case"focusout":l="blur",s=Dn;break;case"beforeblur":case"afterblur":s=Dn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Nn;break;case kt:case _t:case Tt:s=bn;break;case Ot:s=jn;break;case"scroll":s=yn;break;case"wheel":s=Bn;break;case"copy":case"cut":case"paste":s=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=On}var c=0!==(4&t),p=!c&&"scroll"===e,f=c?null!==u?u+"Capture":null:u;c=[];for(var d,h=r;null!==h;){var y=(d=h).stateNode;if(5===d.tag&&null!==y&&(d=y,null!==f&&(null!=(y=qe(h,f))&&c.push(Ir(h,y,d)))),p)break;h=h.return}0<c.length&&(u=new s(u,l,null,n,i),a.push({event:u,listeners:c}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(l=n.relatedTarget||n.fromElement)||!ni(l)&&!l[ei])&&(s||u)&&(u=i.window===i?i:(u=i.ownerDocument)?u.defaultView||u.parentWindow:window,s?(s=r,null!==(l=(l=n.relatedTarget||n.toElement)?ni(l):null)&&(l!==(p=Xe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(s=null,l=r),s!==l)){if(c=vn,y="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,y="onPointerLeave",f="onPointerEnter",h="pointer"),p=null==s?u:ii(s),d=null==l?u:ii(l),(u=new c(y,h+"leave",s,n,i)).target=p,u.relatedTarget=d,y=null,ni(i)===r&&((c=new c(f,h+"enter",l,n,i)).target=d,c.relatedTarget=p,y=c),p=y,s&&l)e:{for(f=l,h=0,d=c=s;d;d=Mr(d))h++;for(d=0,y=f;y;y=Mr(y))d++;for(;0<h-d;)c=Mr(c),h--;for(;0<d-h;)f=Mr(f),d--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Mr(c),f=Mr(f)}c=null}else c=null;null!==s&&Rr(a,u,s,c,!1),null!==l&&null!==p&&Rr(a,p,l,c,!0)}if("select"===(s=(u=r?ii(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var m=Zn;else if(Gn(u))if(er)m=lr;else{m=ur;var v=ar}else(s=u.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(m=sr);switch(m&&(m=m(e,r))?Kn(a,m,n,i):(v&&v(e,u,r),"focusout"===e&&(v=u._wrapperState)&&v.controlled&&"number"===u.type&&ie(u,"number",u.value)),v=r?ii(r):window,e){case"focusin":(Gn(v)||"true"===v.contentEditable)&&(Dr=v,br=r,Er=null);break;case"focusout":Er=br=Dr=null;break;case"mousedown":xr=!0;break;case"contextmenu":case"mouseup":case"dragend":xr=!1,Cr(a,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":Cr(a,n,i)}var g;if(Ln)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else Wn?zn(e,n)&&(D="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(D="onCompositionStart");D&&(qn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==D?"onCompositionEnd"===D&&Wn&&(g=rn()):(tn="value"in(en=i)?en.value:en.textContent,Wn=!0)),0<(v=Lr(r,D)).length&&(D=new Cn(D,e,null,n,i),a.push({event:D,listeners:v}),g?D.data=g:null!==(g=Hn(n))&&(D.data=g))),(g=Rn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Un=!0,Vn);case"textInput":return(e=t.data)===Vn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Ln&&zn(e,t)?(e=rn(),nn=tn=en=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Lr(r,"onBeforeInput")).length&&(i=new Cn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=g))}_r(a,t)}))}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=qe(e,n))&&r.unshift(Ir(e,o,i)),null!=(o=qe(e,t))&&r.push(Ir(e,o,i))),e=e.return}return r}function Mr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Rr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var u=n,s=u.alternate,l=u.stateNode;if(null!==s&&s===r)break;5===u.tag&&null!==l&&(u=l,i?null!=(s=qe(n,o))&&a.unshift(Ir(n,s,u)):i||null!=(s=qe(n,o))&&a.push(Ir(n,s,u))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function qr(){}var Vr=null,Ur=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Wr="function"===typeof setTimeout?setTimeout:void 0,$r="function"===typeof clearTimeout?clearTimeout:void 0;function Gr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Kr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Jr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Xr=0;var Yr=Math.random().toString(36).slice(2),Qr="__reactFiber$"+Yr,Zr="__reactProps$"+Yr,ei="__reactContainer$"+Yr,ti="__reactEvents$"+Yr;function ni(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ei]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Jr(e);null!==e;){if(n=e[Qr])return n;e=Jr(e)}return t}n=(e=n).parentNode}return null}function ri(e){return!(e=e[Qr]||e[ei])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ii(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function oi(e){return e[Zr]||null}function ai(e){var t=e[ti];return void 0===t&&(t=e[ti]=new Set),t}var ui=[],si=-1;function li(e){return{current:e}}function ci(e){0>si||(e.current=ui[si],ui[si]=null,si--)}function pi(e,t){si++,ui[si]=e.current,e.current=t}var fi={},di=li(fi),hi=li(!1),yi=fi;function mi(e,t){var n=e.type.contextTypes;if(!n)return fi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gi(){ci(hi),ci(di)}function Di(e,t,n){if(di.current!==fi)throw Error(a(168));pi(di,t),pi(hi,n)}function bi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,G(t)||"Unknown",o));return i({},n,r)}function Ei(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fi,yi=di.current,pi(di,e),pi(hi,hi.current),!0}function xi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=bi(e,t,yi),r.__reactInternalMemoizedMergedChildContext=e,ci(hi),ci(di),pi(di,e)):ci(hi),pi(hi,n)}var Ci=null,Ai=null,wi=o.unstable_runWithPriority,Si=o.unstable_scheduleCallback,Fi=o.unstable_cancelCallback,ki=o.unstable_shouldYield,_i=o.unstable_requestPaint,Ti=o.unstable_now,Oi=o.unstable_getCurrentPriorityLevel,Ni=o.unstable_ImmediatePriority,ji=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,Bi=o.unstable_LowPriority,Ii=o.unstable_IdlePriority,Li={},Mi=void 0!==_i?_i:function(){},Ri=null,qi=null,Vi=!1,Ui=Ti(),zi=1e4>Ui?Ti:function(){return Ti()-Ui};function Hi(){switch(Oi()){case Ni:return 99;case ji:return 98;case Pi:return 97;case Bi:return 96;case Ii:return 95;default:throw Error(a(332))}}function Wi(e){switch(e){case 99:return Ni;case 98:return ji;case 97:return Pi;case 96:return Bi;case 95:return Ii;default:throw Error(a(332))}}function $i(e,t){return e=Wi(e),wi(e,t)}function Gi(e,t,n){return e=Wi(e),Si(e,t,n)}function Ki(){if(null!==qi){var e=qi;qi=null,Fi(e)}Ji()}function Ji(){if(!Vi&&null!==Ri){Vi=!0;var e=0;try{var t=Ri;$i(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ri=null}catch(n){throw null!==Ri&&(Ri=Ri.slice(e+1)),Si(Ni,Ki),n}finally{Vi=!1}}}var Xi=E.ReactCurrentBatchConfig;function Yi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qi=li(null),Zi=null,eo=null,to=null;function no(){to=eo=Zi=null}function ro(e){var t=Qi.current;ci(Qi),e.type._context._currentValue=t}function io(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function oo(e,t){Zi=e,to=eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(La=!0),e.firstContext=null)}function ao(e,t){if(to!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(to=e,t=1073741823),t={context:e,observedBits:t,next:null},null===eo){if(null===Zi)throw Error(a(308));eo=t,Zi.dependencies={lanes:0,firstContext:t,responders:null}}else eo=eo.next=t;return e._currentValue}var uo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function po(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ho(e,t,n,r){var o=e.updateQueue;uo=!1;var a=o.firstBaseUpdate,u=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===u?a=c:u.next=c,u=l;var p=e.alternate;if(null!==p){var f=(p=p.updateQueue).lastBaseUpdate;f!==u&&(null===f?p.firstBaseUpdate=c:f.next=c,p.lastBaseUpdate=l)}}if(null!==a){for(f=o.baseState,u=0,p=c=l=null;;){s=a.lane;var d=a.eventTime;if((r&s)===s){null!==p&&(p=p.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,y=a;switch(s=t,d=n,y.tag){case 1:if("function"===typeof(h=y.payload)){f=h.call(d,f,s);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(s="function"===typeof(h=y.payload)?h.call(d,f,s):h)||void 0===s)break e;f=i({},f,s);break e;case 2:uo=!0}}null!==a.callback&&(e.flags|=32,null===(s=o.effects)?o.effects=[a]:s.push(a))}else d={eventTime:d,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===p?(c=p=d,l=f):p=p.next=d,u|=s;if(null===(a=a.next)){if(null===(s=o.shared.pending))break;a=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}null===p&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=p,Vu|=u,e.lanes=u,e.memoizedState=f}}function yo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var mo=(new r.Component).refs;function vo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var go={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fs(),i=ds(e),o=co(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),po(e,o),hs(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fs(),i=ds(e),o=co(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),po(e,o),hs(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fs(),r=ds(e),i=co(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),po(e,i),hs(e,r,n)}};function Do(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!fr(n,r)||!fr(i,o))}function bo(e,t,n){var r=!1,i=fi,o=t.contextType;return"object"===typeof o&&null!==o?o=ao(o):(i=vi(t)?yi:di.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?mi(e,i):fi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=go,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Eo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&go.enqueueReplaceState(t,t.state,null)}function xo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=mo,so(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=ao(o):(o=vi(t)?yi:di.current,i.context=mi(e,o)),ho(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(vo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&go.enqueueReplaceState(i,i.state,null),ho(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var Co=Array.isArray;function Ao(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===mo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function wo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function So(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=$s(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function u(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Xs(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Ao(e,t,n),r.return=e,r):((r=Gs(n.type,n.key,n.props,null,e.mode,r)).ref=Ao(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ys(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function p(e,t,n,r,o){return null===t||7!==t.tag?((t=Ks(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Xs(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Gs(t.type,t.key,t.props,null,e.mode,n)).ref=Ao(e,null,t),n.return=e,n;case C:return(t=Ys(t,e.mode,n)).return=e,t}if(Co(t)||U(t))return(t=Ks(t,e.mode,n,null)).return=e,t;wo(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?n.type===A?p(e,t,n.props.children,r,i):l(e,t,n,r):null;case C:return n.key===i?c(e,t,n,r):null}if(Co(n)||U(n))return null!==i?null:p(e,t,n,r,null);wo(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return e=e.get(null===r.key?n:r.key)||null,r.type===A?p(t,e,r.props.children,i,r.key):l(t,e,r,i);case C:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(Co(r)||U(r))return p(t,e=e.get(n)||null,r,i,null);wo(t,r)}return null}function y(i,a,u,s){for(var l=null,c=null,p=a,y=a=0,m=null;null!==p&&y<u.length;y++){p.index>y?(m=p,p=null):m=p.sibling;var v=d(i,p,u[y],s);if(null===v){null===p&&(p=m);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,y),null===c?l=v:c.sibling=v,c=v,p=m}if(y===u.length)return n(i,p),l;if(null===p){for(;y<u.length;y++)null!==(p=f(i,u[y],s))&&(a=o(p,a,y),null===c?l=p:c.sibling=p,c=p);return l}for(p=r(i,p);y<u.length;y++)null!==(m=h(p,i,y,u[y],s))&&(e&&null!==m.alternate&&p.delete(null===m.key?y:m.key),a=o(m,a,y),null===c?l=m:c.sibling=m,c=m);return e&&p.forEach((function(e){return t(i,e)})),l}function m(i,u,s,l){var c=U(s);if("function"!==typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var p=c=null,y=u,m=u=0,v=null,g=s.next();null!==y&&!g.done;m++,g=s.next()){y.index>m?(v=y,y=null):v=y.sibling;var D=d(i,y,g.value,l);if(null===D){null===y&&(y=v);break}e&&y&&null===D.alternate&&t(i,y),u=o(D,u,m),null===p?c=D:p.sibling=D,p=D,y=v}if(g.done)return n(i,y),c;if(null===y){for(;!g.done;m++,g=s.next())null!==(g=f(i,g.value,l))&&(u=o(g,u,m),null===p?c=g:p.sibling=g,p=g);return c}for(y=r(i,y);!g.done;m++,g=s.next())null!==(g=h(y,i,m,g.value,l))&&(e&&null!==g.alternate&&y.delete(null===g.key?m:g.key),u=o(g,u,m),null===p?c=g:p.sibling=g,p=g);return e&&y.forEach((function(e){return t(i,e)})),c}return function(e,r,o,s){var l="object"===typeof o&&null!==o&&o.type===A&&null===o.key;l&&(o=o.props.children);var c="object"===typeof o&&null!==o;if(c)switch(o.$$typeof){case x:e:{for(c=o.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(o.type===A){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}}else if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=Ao(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===A?((r=Ks(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=Gs(o.type,o.key,o.props,null,e.mode,s)).ref=Ao(e,r,o),s.return=e,e=s)}return u(e);case C:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ys(o,e.mode,s)).return=e,e=r}return u(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Xs(o,e.mode,s)).return=e,e=r),u(e);if(Co(o))return y(e,r,o,s);if(U(o))return m(e,r,o,s);if(c&&wo(e,o),"undefined"===typeof o&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(e.type)||"Component"))}return n(e,r)}}var Fo=So(!0),ko=So(!1),_o={},To=li(_o),Oo=li(_o),No=li(_o);function jo(e){if(e===_o)throw Error(a(174));return e}function Po(e,t){switch(pi(No,t),pi(Oo,e),pi(To,_o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ci(To),pi(To,t)}function Bo(){ci(To),ci(Oo),ci(No)}function Io(e){jo(No.current);var t=jo(To.current),n=he(t,e.type);t!==n&&(pi(Oo,e),pi(To,n))}function Lo(e){Oo.current===e&&(ci(To),ci(Oo))}var Mo=li(0);function Ro(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qo=null,Vo=null,Uo=!1;function zo(e,t){var n=Hs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ho(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Wo(e){if(Uo){var t=Vo;if(t){var n=t;if(!Ho(e,t)){if(!(t=Kr(n.nextSibling))||!Ho(e,t))return e.flags=-1025&e.flags|2,Uo=!1,void(qo=e);zo(qo,n)}qo=e,Vo=Kr(t.firstChild)}else e.flags=-1025&e.flags|2,Uo=!1,qo=e}}function $o(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;qo=e}function Go(e){if(e!==qo)return!1;if(!Uo)return $o(e),Uo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=Vo;t;)zo(e,t),t=Kr(t.nextSibling);if($o(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Vo=Kr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Vo=null}}else Vo=qo?Kr(e.stateNode.nextSibling):null;return!0}function Ko(){Vo=qo=null,Uo=!1}var Jo=[];function Xo(){for(var e=0;e<Jo.length;e++)Jo[e]._workInProgressVersionPrimary=null;Jo.length=0}var Yo=E.ReactCurrentDispatcher,Qo=E.ReactCurrentBatchConfig,Zo=0,ea=null,ta=null,na=null,ra=!1,ia=!1;function oa(){throw Error(a(321))}function aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function ua(e,t,n,r,i,o){if(Zo=o,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yo.current=null===e||null===e.memoizedState?ja:Pa,e=n(r,i),ia){o=0;do{if(ia=!1,!(25>o))throw Error(a(301));o+=1,na=ta=null,t.updateQueue=null,Yo.current=Ba,e=n(r,i)}while(ia)}if(Yo.current=Na,t=null!==ta&&null!==ta.next,Zo=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function la(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function ca(e,t){return"function"===typeof t?t(e):t}function pa(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var u=i.next;i.next=o.next,o.next=u}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=u=o=null,l=i;do{var c=l.lane;if((Zo&c)===c)null!==s&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var p={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===s?(u=s=p,o=r):s=s.next=p,ea.lanes|=c,Vu|=c}l=l.next}while(null!==l&&l!==i);null===s?o=r:s.next=u,cr(r,t.memoizedState)||(La=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function fa(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{o=e(o,u.action),u=u.next}while(u!==i);cr(o,t.memoizedState)||(La=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function da(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Zo&e)===e)&&(t._workInProgressVersionPrimary=r,Jo.push(t))),e)return n(t._source);throw Jo.push(t),Error(a(350))}function ha(e,t,n,r){var i=ju;if(null===i)throw Error(a(349));var o=t._getVersion,u=o(t._source),s=Yo.current,l=s.useState((function(){return da(i,t,n)})),c=l[1],p=l[0];l=na;var f=e.memoizedState,d=f.refs,h=d.getSnapshot,y=f.source;f=f.subscribe;var m=ea;return e.memoizedState={refs:d,source:t,subscribe:r},s.useEffect((function(){d.getSnapshot=n,d.setSnapshot=c;var e=o(t._source);if(!cr(u,e)){e=n(t._source),cr(p,e)||(c(e),e=ds(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var s=31-Ht(a),l=1<<s;r[s]|=e,a&=~l}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=d.getSnapshot,n=d.setSnapshot;try{n(e(t._source));var r=ds(m);i.mutableReadLanes|=r&i.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),cr(h,n)&&cr(y,t)&&cr(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:p}).dispatch=c=Oa.bind(null,ea,e),l.queue=e,l.baseQueue=null,p=da(i,t,n),l.memoizedState=l.baseState=p),p}function ya(e,t,n){return ha(la(),e,t,n)}function ma(e){var t=sa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e}).dispatch=Oa.bind(null,ea,e),[t.memoizedState,e]}function va(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ga(e){return e={current:e},sa().memoizedState=e}function Da(){return la().memoizedState}function ba(e,t,n,r){var i=sa();ea.flags|=e,i.memoizedState=va(1|t,n,void 0,void 0===r?null:r)}function Ea(e,t,n,r){var i=la();r=void 0===r?null:r;var o=void 0;if(null!==ta){var a=ta.memoizedState;if(o=a.destroy,null!==r&&aa(r,a.deps))return void va(t,n,o,r)}ea.flags|=e,i.memoizedState=va(1|t,n,o,r)}function xa(e,t){return ba(516,4,e,t)}function Ca(e,t){return Ea(516,4,e,t)}function Aa(e,t){return Ea(4,2,e,t)}function wa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Sa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ea(4,2,wa.bind(null,t,e),n)}function Fa(){}function ka(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _a(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ta(e,t){var n=Hi();$i(98>n?98:n,(function(){e(!0)})),$i(97<n?97:n,(function(){var n=Qo.transition;Qo.transition=1;try{e(!1),t()}finally{Qo.transition=n}}))}function Oa(e,t,n){var r=fs(),i=ds(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===ea||null!==a&&a===ea)ia=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var u=t.lastRenderedState,s=a(u,n);if(o.eagerReducer=a,o.eagerState=s,cr(s,u))return}catch(l){}hs(e,i,r)}}var Na={readContext:ao,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},ja={readContext:ao,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:ao,useEffect:xa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ba(4,2,wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ba(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Oa.bind(null,ea,e),[r.memoizedState,e]},useRef:ga,useState:ma,useDebugValue:Fa,useDeferredValue:function(e){var t=ma(e),n=t[0],r=t[1];return xa((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=ma(!1),t=e[0];return ga(e=Ta.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(Uo){var e=!1,t=function(e){return{$$typeof:B,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Xr++).toString(36))),Error(a(355))})),n=ma(t)[1];return 0===(2&ea.mode)&&(ea.flags|=516,va(5,(function(){n("r:"+(Xr++).toString(36))}),void 0,null)),t}return ma(t="r:"+(Xr++).toString(36)),t},unstable_isNewReconciler:!1},Pa={readContext:ao,useCallback:ka,useContext:ao,useEffect:Ca,useImperativeHandle:Sa,useLayoutEffect:Aa,useMemo:_a,useReducer:pa,useRef:Da,useState:function(){return pa(ca)},useDebugValue:Fa,useDeferredValue:function(e){var t=pa(ca),n=t[0],r=t[1];return Ca((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=pa(ca)[0];return[Da().current,e]},useMutableSource:ya,useOpaqueIdentifier:function(){return pa(ca)[0]},unstable_isNewReconciler:!1},Ba={readContext:ao,useCallback:ka,useContext:ao,useEffect:Ca,useImperativeHandle:Sa,useLayoutEffect:Aa,useMemo:_a,useReducer:fa,useRef:Da,useState:function(){return fa(ca)},useDebugValue:Fa,useDeferredValue:function(e){var t=fa(ca),n=t[0],r=t[1];return Ca((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=fa(ca)[0];return[Da().current,e]},useMutableSource:ya,useOpaqueIdentifier:function(){return fa(ca)[0]},unstable_isNewReconciler:!1},Ia=E.ReactCurrentOwner,La=!1;function Ma(e,t,n,r){t.child=null===e?ko(t,null,n,r):Fo(t,e.child,n,r)}function Ra(e,t,n,r,i){n=n.render;var o=t.ref;return oo(t,i),r=ua(e,t,n,r,o,i),null===e||La?(t.flags|=1,Ma(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ou(e,t,i))}function qa(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||Ws(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gs(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Va(e,t,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:fr)(i,r)&&e.ref===t.ref)?ou(e,t,o):(t.flags|=1,(e=$s(a,r)).ref=t.ref,e.return=t,t.child=e)}function Va(e,t,n,r,i,o){if(null!==e&&fr(e.memoizedProps,r)&&e.ref===t.ref){if(La=!1,0===(o&i))return t.lanes=e.lanes,ou(e,t,o);0!==(16384&e.flags)&&(La=!0)}return Ha(e,t,n,r,o)}function Ua(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},xs(t,n);else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},xs(t,e),null;t.memoizedState={baseLanes:0},xs(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,xs(t,r);return Ma(e,t,i,n),t.child}function za(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ha(e,t,n,r,i){var o=vi(n)?yi:di.current;return o=mi(t,o),oo(t,i),n=ua(e,t,n,r,o,i),null===e||La?(t.flags|=1,Ma(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ou(e,t,i))}function Wa(e,t,n,r,i){if(vi(n)){var o=!0;Ei(t)}else o=!1;if(oo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bo(t,n,r),xo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var s=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=ao(l):l=mi(t,l=vi(n)?yi:di.current);var c=n.getDerivedStateFromProps,p="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;p||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(u!==r||s!==l)&&Eo(t,a,r,l),uo=!1;var f=t.memoizedState;a.state=f,ho(t,r,a,i),s=t.memoizedState,u!==r||f!==s||hi.current||uo?("function"===typeof c&&(vo(t,n,c,r),s=t.memoizedState),(u=uo||Do(t,n,u,r,f,s,l))?(p||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=u):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,lo(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:Yi(t.type,u),a.props=l,p=t.pendingProps,f=a.context,"object"===typeof(s=n.contextType)&&null!==s?s=ao(s):s=mi(t,s=vi(n)?yi:di.current);var d=n.getDerivedStateFromProps;(c="function"===typeof d||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(u!==p||f!==s)&&Eo(t,a,r,s),uo=!1,f=t.memoizedState,a.state=f,ho(t,r,a,i);var h=t.memoizedState;u!==p||f!==h||hi.current||uo?("function"===typeof d&&(vo(t,n,d,r),h=t.memoizedState),(l=uo||Do(t,n,l,r,f,h,s))?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=l):("function"!==typeof a.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return $a(e,t,n,r,o,i)}function $a(e,t,n,r,i,o){za(e,t);var a=0!==(64&t.flags);if(!r&&!a)return i&&xi(t,n,!1),ou(e,t,o);r=t.stateNode,Ia.current=t;var u=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Fo(t,e.child,null,o),t.child=Fo(t,null,u,o)):Ma(e,t,u,o),t.memoizedState=r.state,i&&xi(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?Di(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Di(0,t.context,!1),Po(e,t.containerInfo)}var Ka,Ja,Xa,Ya={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,i=t.pendingProps,o=Mo.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),pi(Mo,1&o),null===e?(void 0!==i.fallback&&Wo(t),e=i.children,o=i.fallback,a?(e=Za(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ya,e):"number"===typeof i.unstable_expectedLoadTime?(e=Za(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ya,t.lanes=33554432,e):((n=Js({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=tu(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ya,i):(n=eu(e,t,i.children,n),t.memoizedState=null,n))}function Za(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Js(t,i,0,null),n=Ks(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function eu(e,t,n,r){var i=e.child;return e=i.sibling,n=$s(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function tu(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var u={mode:"hidden",children:n};return 0===(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=u,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=$s(a,u),null!==e?r=$s(e,r):(r=Ks(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function nu(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),io(e.return,t)}function ru(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function iu(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ma(e,t,r.children,n),0!==(2&(r=Mo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&nu(e,n);else if(19===e.tag)nu(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(pi(Mo,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ro(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ru(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ro(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ru(t,!0,n,null,o,t.lastEffect);break;case"together":ru(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ou(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Vu|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=$s(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$s(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function au(e,t){if(!Uo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function uu(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return vi(t.type)&&gi(),null;case 3:return Bo(),ci(hi),ci(di),Xo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Go(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Lo(t);var o=jo(No.current);if(n=t.type,null!==e&&null!=t.stateNode)Ja(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=jo(To.current),Go(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[Qr]=t,r[Zr]=u,n){case"dialog":Tr("cancel",r),Tr("close",r);break;case"iframe":case"object":case"embed":Tr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Tr(Sr[e],r);break;case"source":Tr("error",r);break;case"img":case"image":case"link":Tr("error",r),Tr("load",r);break;case"details":Tr("toggle",r);break;case"input":ee(r,u),Tr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Tr("invalid",r);break;case"textarea":se(r,u),Tr("invalid",r)}for(var l in Ae(n,u),e=null,u)u.hasOwnProperty(l)&&(o=u[l],"children"===l?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):s.hasOwnProperty(l)&&null!=o&&"onScroll"===l&&Tr("scroll",r));switch(n){case"input":X(r),re(r,u,!0);break;case"textarea":X(r),ce(r);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(r.onclick=qr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===o.nodeType?o:o.ownerDocument,e===pe&&(e=de(n)),e===pe?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Qr]=t,e[Zr]=r,Ka(e,t),t.stateNode=e,l=we(n,r),n){case"dialog":Tr("cancel",e),Tr("close",e),o=r;break;case"iframe":case"object":case"embed":Tr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Sr.length;o++)Tr(Sr[o],e);o=r;break;case"source":Tr("error",e),o=r;break;case"img":case"image":case"link":Tr("error",e),Tr("load",e),o=r;break;case"details":Tr("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),Tr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Tr("invalid",e);break;case"textarea":se(e,r),o=ue(e,r),Tr("invalid",e);break;default:o=r}Ae(n,o);var c=o;for(u in c)if(c.hasOwnProperty(u)){var p=c[u];"style"===u?xe(e,p):"dangerouslySetInnerHTML"===u?null!=(p=p?p.__html:void 0)&&ve(e,p):"children"===u?"string"===typeof p?("textarea"!==n||""!==p)&&ge(e,p):"number"===typeof p&&ge(e,""+p):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?null!=p&&"onScroll"===u&&Tr("scroll",e):null!=p&&b(e,u,p,l))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?ae(e,!!r.multiple,u,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=qr)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Xa(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=jo(No.current),jo(To.current),Go(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return ci(Mo),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Go(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Mo.current)?0===Mu&&(Mu=3):(0!==Mu&&3!==Mu||(Mu=4),null===ju||0===(134217727&Vu)&&0===(134217727&Uu)||gs(ju,Bu))),(r||n)&&(t.flags|=4),null);case 4:return Bo(),null===e&&Nr(t.stateNode.containerInfo),null;case 10:return ro(t),null;case 19:if(ci(Mo),null===(r=t.memoizedState))return null;if(u=0!==(64&t.flags),null===(l=r.rendering))if(u)au(r,!1);else{if(0!==Mu||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Ro(e))){for(t.flags|=64,au(r,!1),null!==(u=l.updateQueue)&&(t.updateQueue=u,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(u=n).flags&=2,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null,null===(l=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=l.childLanes,u.lanes=l.lanes,u.child=l.child,u.memoizedProps=l.memoizedProps,u.memoizedState=l.memoizedState,u.updateQueue=l.updateQueue,u.type=l.type,e=l.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return pi(Mo,1&Mo.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>$u&&(t.flags|=64,u=!0,au(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=Ro(l))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),au(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Uo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>$u&&1073741824!==n&&(t.flags|=64,u=!0,au(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=Mo.current,pi(Mo,u?1&t|2:1&t),n):null;case 23:case 24:return Cs(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function su(e){switch(e.tag){case 1:vi(e.type)&&gi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Bo(),ci(hi),ci(di),Xo(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Lo(e),null;case 13:return ci(Mo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ci(Mo),null;case 4:return Bo(),null;case 10:return ro(e),null;case 23:case 24:return Cs(),null;default:return null}}function lu(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function cu(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ka=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ja=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,jo(To.current);var a,u=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),u=[];break;case"option":o=oe(e,o),r=oe(e,r),u=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),u=[];break;case"textarea":o=ue(e,o),r=ue(e,r),u=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=qr)}for(p in Ae(n,r),n=null,o)if(!r.hasOwnProperty(p)&&o.hasOwnProperty(p)&&null!=o[p])if("style"===p){var l=o[p];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==p&&"children"!==p&&"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&"autoFocus"!==p&&(s.hasOwnProperty(p)?u||(u=[]):(u=u||[]).push(p,null));for(p in r){var c=r[p];if(l=null!=o?o[p]:void 0,r.hasOwnProperty(p)&&c!==l&&(null!=c||null!=l))if("style"===p)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(u||(u=[]),u.push(p,n)),n=c;else"dangerouslySetInnerHTML"===p?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(u=u||[]).push(p,c)):"children"===p?"string"!==typeof c&&"number"!==typeof c||(u=u||[]).push(p,""+c):"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&(s.hasOwnProperty(p)?(null!=c&&"onScroll"===p&&Tr("scroll",e),u||l===c||(u=[])):"object"===typeof c&&null!==c&&c.$$typeof===B?c.toString():(u=u||[]).push(p,c))}n&&(u=u||[]).push("style",n);var p=u;(t.updateQueue=p)&&(t.flags|=4)}},Xa=function(e,t,n,r){n!==r&&(t.flags|=4)};var pu="function"===typeof WeakMap?WeakMap:Map;function fu(e,t,n){(n=co(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xu||(Xu=!0,Yu=r),cu(0,t)},n}function du(e,t,n){(n=co(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return cu(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Qu?Qu=new Set([this]):Qu.add(this),cu(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hu="function"===typeof WeakSet?WeakSet:Set;function yu(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){qs(e,n)}else t.current=null}function mu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Yi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo))}throw Error(a(163))}function vu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Ls(n,e),Is(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Yi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&yo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}yo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&xt(n)))))}throw Error(a(163))}function gu(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=Ee("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Du(e,t){if(Ai&&"function"===typeof Ai.onCommitFiberUnmount)try{Ai.onCommitFiberUnmount(Ci,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Ls(t,n);else{r=t;try{i()}catch(o){qs(r,o)}}n=n.next}while(n!==e)}break;case 1:if(yu(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){qs(t,o)}break;case 5:yu(t);break;case 4:wu(e,t)}}function bu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Eu(e){return 5===e.tag||3===e.tag||4===e.tag}function xu(e){e:{for(var t=e.return;null!==t;){if(Eu(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Eu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Cu(e,n,t):Au(e,n,t)}function Cu(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=qr));else if(4!==r&&null!==(e=e.child))for(Cu(e,t,n),e=e.sibling;null!==e;)Cu(e,t,n),e=e.sibling}function Au(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Au(e,t,n),e=e.sibling;null!==e;)Au(e,t,n),e=e.sibling}function wu(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var u=e,s=i,l=s;;)if(Du(u,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===s)break e;for(;null===l.sibling;){if(null===l.return||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(u=n,s=i.stateNode,8===u.nodeType?u.parentNode.removeChild(s):u.removeChild(s)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Du(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Su(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Zr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),we(e,i),t=we(e,r),i=0;i<o.length;i+=2){var u=o[i],s=o[i+1];"style"===u?xe(n,s):"dangerouslySetInnerHTML"===u?ve(n,s):"children"===u?ge(n,s):b(n,u,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Wu=zi(),gu(t.child,!0)),void Fu(t);case 19:return void Fu(t);case 23:case 24:return void gu(t,null!==t.memoizedState)}throw Error(a(163))}function Fu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hu),t.forEach((function(t){var r=Us.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ku(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var _u=Math.ceil,Tu=E.ReactCurrentDispatcher,Ou=E.ReactCurrentOwner,Nu=0,ju=null,Pu=null,Bu=0,Iu=0,Lu=li(0),Mu=0,Ru=null,qu=0,Vu=0,Uu=0,zu=0,Hu=null,Wu=0,$u=1/0;function Gu(){$u=zi()+500}var Ku,Ju=null,Xu=!1,Yu=null,Qu=null,Zu=!1,es=null,ts=90,ns=[],rs=[],is=null,os=0,as=null,us=-1,ss=0,ls=0,cs=null,ps=!1;function fs(){return 0!==(48&Nu)?zi():-1!==us?us:us=zi()}function ds(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Hi()?1:2;if(0===ss&&(ss=qu),0!==Xi.transition){0!==ls&&(ls=null!==Hu?Hu.pendingLanes:0),e=ss;var t=4186112&~ls;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Hi(),0!==(4&Nu)&&98===e?e=qt(12,ss):e=qt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ss),e}function hs(e,t,n){if(50<os)throw os=0,as=null,Error(a(185));if(null===(e=ys(e,t)))return null;zt(e,t,n),e===ju&&(Uu|=t,4===Mu&&gs(e,Bu));var r=Hi();1===t?0!==(8&Nu)&&0===(48&Nu)?Ds(e):(ms(e,n),0===Nu&&(Gu(),Ki())):(0===(4&Nu)||98!==r&&99!==r||(null===is?is=new Set([e]):is.add(e)),ms(e,n)),Hu=e}function ys(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function ms(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes;0<u;){var s=31-Ht(u),l=1<<s,c=o[s];if(-1===c){if(0===(l&r)||0!==(l&i)){c=t,Lt(l);var p=It;o[s]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);u&=~l}if(r=Mt(e,e===ju?Bu:0),t=It,0===r)null!==n&&(n!==Li&&Fi(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Li&&Fi(n)}15===t?(n=Ds.bind(null,e),null===Ri?(Ri=[n],qi=Si(Ni,Ji)):Ri.push(n),n=Li):14===t?n=Gi(99,Ds.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Gi(n,vs.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function vs(e){if(us=-1,ls=ss=0,0!==(48&Nu))throw Error(a(327));var t=e.callbackNode;if(Bs()&&e.callbackNode!==t)return null;var n=Mt(e,e===ju?Bu:0);if(0===n)return null;var r=n,i=Nu;Nu|=16;var o=Ss();for(ju===e&&Bu===r||(Gu(),As(e,r));;)try{_s();break}catch(s){ws(e,s)}if(no(),Tu.current=o,Nu=i,null!==Pu?r=0:(ju=null,Bu=0,r=Mu),0!==(qu&Uu))As(e,0);else if(0!==r){if(2===r&&(Nu|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=Rt(e))&&(r=Fs(e,n))),1===r)throw t=Ru,As(e,0),gs(e,n),ms(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Ns(e);break;case 3:if(gs(e,n),(62914560&n)===n&&10<(r=Wu+500-zi())){if(0!==Mt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){fs(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Wr(Ns.bind(null,e),r);break}Ns(e);break;case 4:if(gs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var u=31-Ht(n);o=1<<u,(u=r[u])>i&&(i=u),n&=~o}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_u(n/1960))-n)){e.timeoutHandle=Wr(Ns.bind(null,e),n);break}Ns(e);break;default:throw Error(a(329))}}return ms(e,zi()),e.callbackNode===t?vs.bind(null,e):null}function gs(e,t){for(t&=~zu,t&=~Uu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function Ds(e){if(0!==(48&Nu))throw Error(a(327));if(Bs(),e===ju&&0!==(e.expiredLanes&Bu)){var t=Bu,n=Fs(e,t);0!==(qu&Uu)&&(n=Fs(e,t=Mt(e,t)))}else n=Fs(e,t=Mt(e,0));if(0!==e.tag&&2===n&&(Nu|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=Rt(e))&&(n=Fs(e,t))),1===n)throw n=Ru,As(e,0),gs(e,t),ms(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ns(e),ms(e,zi()),null}function bs(e,t){var n=Nu;Nu|=1;try{return e(t)}finally{0===(Nu=n)&&(Gu(),Ki())}}function Es(e,t){var n=Nu;Nu&=-2,Nu|=8;try{return e(t)}finally{0===(Nu=n)&&(Gu(),Ki())}}function xs(e,t){pi(Lu,Iu),Iu|=t,qu|=t}function Cs(){Iu=Lu.current,ci(Lu)}function As(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,$r(n)),null!==Pu)for(n=Pu.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&gi();break;case 3:Bo(),ci(hi),ci(di),Xo();break;case 5:Lo(r);break;case 4:Bo();break;case 13:case 19:ci(Mo);break;case 10:ro(r);break;case 23:case 24:Cs()}n=n.return}ju=e,Pu=$s(e.current,null),Bu=Iu=qu=t,Mu=0,Ru=null,zu=Uu=Vu=0}function ws(e,t){for(;;){var n=Pu;try{if(no(),Yo.current=Na,ra){for(var r=ea.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ra=!1}if(Zo=0,na=ta=ea=null,ia=!1,Ou.current=null,null===n||null===n.return){Mu=1,Ru=t,Pu=null;break}e:{var o=e,a=n.return,u=n,s=t;if(t=Bu,u.flags|=2048,u.firstEffect=u.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var l=s;if(0===(2&u.mode)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=0!==(1&Mo.current),f=a;do{var d;if(d=13===f.tag){var h=f.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var y=f.memoizedProps;d=void 0!==y.fallback&&(!0!==y.unstable_avoidThisFallback||!p)}}if(d){var m=f.updateQueue;if(null===m){var v=new Set;v.add(l),f.updateQueue=v}else m.add(l);if(0===(2&f.mode)){if(f.flags|=64,u.flags|=16384,u.flags&=-2981,1===u.tag)if(null===u.alternate)u.tag=17;else{var g=co(-1,1);g.tag=2,po(u,g)}u.lanes|=1;break e}s=void 0,u=t;var D=o.pingCache;if(null===D?(D=o.pingCache=new pu,s=new Set,D.set(l,s)):void 0===(s=D.get(l))&&(s=new Set,D.set(l,s)),!s.has(u)){s.add(u);var b=Vs.bind(null,o,l,u);l.then(b,b)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);s=Error((G(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Mu&&(Mu=2),s=lu(s,u),f=a;do{switch(f.tag){case 3:o=s,f.flags|=4096,t&=-t,f.lanes|=t,fo(f,fu(0,o,t));break e;case 1:o=s;var E=f.type,x=f.stateNode;if(0===(64&f.flags)&&("function"===typeof E.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===Qu||!Qu.has(x)))){f.flags|=4096,t&=-t,f.lanes|=t,fo(f,du(f,o,t));break e}}f=f.return}while(null!==f)}Os(n)}catch(C){t=C,Pu===n&&null!==n&&(Pu=n=n.return);continue}break}}function Ss(){var e=Tu.current;return Tu.current=Na,null===e?Na:e}function Fs(e,t){var n=Nu;Nu|=16;var r=Ss();for(ju===e&&Bu===t||As(e,t);;)try{ks();break}catch(i){ws(e,i)}if(no(),Nu=n,Tu.current=r,null!==Pu)throw Error(a(261));return ju=null,Bu=0,Mu}function ks(){for(;null!==Pu;)Ts(Pu)}function _s(){for(;null!==Pu&&!ki();)Ts(Pu)}function Ts(e){var t=Ku(e.alternate,e,Iu);e.memoizedProps=e.pendingProps,null===t?Os(e):Pu=t,Ou.current=null}function Os(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=uu(n,t,Iu)))return void(Pu=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Iu)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=su(t)))return n.flags&=2047,void(Pu=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Pu=t);Pu=t=e}while(null!==t);0===Mu&&(Mu=5)}function Ns(e){var t=Hi();return $i(99,js.bind(null,e,t)),null}function js(e,t){do{Bs()}while(null!==es);if(0!==(48&Nu))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var u=e.eventTimes,s=e.expirationTimes;0<o;){var l=31-Ht(o),c=1<<l;i[l]=0,u[l]=-1,s[l]=-1,o&=~c}if(null!==is&&0===(24&r)&&is.has(e)&&is.delete(e),e===ju&&(Pu=ju=null,Bu=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Nu,Nu|=32,Ou.current=null,Vr=Jt,vr(u=mr())){if("selectionStart"in u)s={start:u.selectionStart,end:u.selectionEnd};else e:if(s=(s=u.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,o=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{s.nodeType,l.nodeType}catch(S){s=null;break e}var p=0,f=-1,d=-1,h=0,y=0,m=u,v=null;t:for(;;){for(var g;m!==s||0!==o&&3!==m.nodeType||(f=p+o),m!==l||0!==c&&3!==m.nodeType||(d=p+c),3===m.nodeType&&(p+=m.nodeValue.length),null!==(g=m.firstChild);)v=m,m=g;for(;;){if(m===u)break t;if(v===s&&++h===o&&(f=p),v===l&&++y===c&&(d=p),null!==(g=m.nextSibling))break;v=(m=v).parentNode}m=g}s=-1===f||-1===d?null:{start:f,end:d}}else s=null;s=s||{start:0,end:0}}else s=null;Ur={focusedElem:u,selectionRange:s},Jt=!1,cs=null,ps=!1,Ju=r;do{try{Ps()}catch(S){if(null===Ju)throw Error(a(330));qs(Ju,S),Ju=Ju.nextEffect}}while(null!==Ju);cs=null,Ju=r;do{try{for(u=e;null!==Ju;){var D=Ju.flags;if(16&D&&ge(Ju.stateNode,""),128&D){var b=Ju.alternate;if(null!==b){var E=b.ref;null!==E&&("function"===typeof E?E(null):E.current=null)}}switch(1038&D){case 2:xu(Ju),Ju.flags&=-3;break;case 6:xu(Ju),Ju.flags&=-3,Su(Ju.alternate,Ju);break;case 1024:Ju.flags&=-1025;break;case 1028:Ju.flags&=-1025,Su(Ju.alternate,Ju);break;case 4:Su(Ju.alternate,Ju);break;case 8:wu(u,s=Ju);var x=s.alternate;bu(s),null!==x&&bu(x)}Ju=Ju.nextEffect}}catch(S){if(null===Ju)throw Error(a(330));qs(Ju,S),Ju=Ju.nextEffect}}while(null!==Ju);if(E=Ur,b=mr(),D=E.focusedElem,u=E.selectionRange,b!==D&&D&&D.ownerDocument&&yr(D.ownerDocument.documentElement,D)){null!==u&&vr(D)&&(b=u.start,void 0===(E=u.end)&&(E=b),"selectionStart"in D?(D.selectionStart=b,D.selectionEnd=Math.min(E,D.value.length)):(E=(b=D.ownerDocument||document)&&b.defaultView||window).getSelection&&(E=E.getSelection(),s=D.textContent.length,x=Math.min(u.start,s),u=void 0===u.end?x:Math.min(u.end,s),!E.extend&&x>u&&(s=u,u=x,x=s),s=hr(D,x),o=hr(D,u),s&&o&&(1!==E.rangeCount||E.anchorNode!==s.node||E.anchorOffset!==s.offset||E.focusNode!==o.node||E.focusOffset!==o.offset)&&((b=b.createRange()).setStart(s.node,s.offset),E.removeAllRanges(),x>u?(E.addRange(b),E.extend(o.node,o.offset)):(b.setEnd(o.node,o.offset),E.addRange(b))))),b=[];for(E=D;E=E.parentNode;)1===E.nodeType&&b.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"===typeof D.focus&&D.focus(),D=0;D<b.length;D++)(E=b[D]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Jt=!!Vr,Ur=Vr=null,e.current=n,Ju=r;do{try{for(D=e;null!==Ju;){var C=Ju.flags;if(36&C&&vu(D,Ju.alternate,Ju),128&C){b=void 0;var A=Ju.ref;if(null!==A){var w=Ju.stateNode;Ju.tag,b=w,"function"===typeof A?A(b):A.current=b}}Ju=Ju.nextEffect}}catch(S){if(null===Ju)throw Error(a(330));qs(Ju,S),Ju=Ju.nextEffect}}while(null!==Ju);Ju=null,Mi(),Nu=i}else e.current=n;if(Zu)Zu=!1,es=e,ts=t;else for(Ju=r;null!==Ju;)t=Ju.nextEffect,Ju.nextEffect=null,8&Ju.flags&&((C=Ju).sibling=null,C.stateNode=null),Ju=t;if(0===(r=e.pendingLanes)&&(Qu=null),1===r?e===as?os++:(os=0,as=e):os=0,n=n.stateNode,Ai&&"function"===typeof Ai.onCommitFiberRoot)try{Ai.onCommitFiberRoot(Ci,n,void 0,64===(64&n.current.flags))}catch(S){}if(ms(e,zi()),Xu)throw Xu=!1,e=Yu,Yu=null,e;return 0!==(8&Nu)||Ki(),null}function Ps(){for(;null!==Ju;){var e=Ju.alternate;ps||null===cs||(0!==(8&Ju.flags)?et(Ju,cs)&&(ps=!0):13===Ju.tag&&ku(e,Ju)&&et(Ju,cs)&&(ps=!0));var t=Ju.flags;0!==(256&t)&&mu(e,Ju),0===(512&t)||Zu||(Zu=!0,Gi(97,(function(){return Bs(),null}))),Ju=Ju.nextEffect}}function Bs(){if(90!==ts){var e=97<ts?97:ts;return ts=90,$i(e,Ms)}return!1}function Is(e,t){ns.push(t,e),Zu||(Zu=!0,Gi(97,(function(){return Bs(),null})))}function Ls(e,t){rs.push(t,e),Zu||(Zu=!0,Gi(97,(function(){return Bs(),null})))}function Ms(){if(null===es)return!1;var e=es;if(es=null,0!==(48&Nu))throw Error(a(331));var t=Nu;Nu|=32;var n=rs;rs=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],u=i.destroy;if(i.destroy=void 0,"function"===typeof u)try{u()}catch(l){if(null===o)throw Error(a(330));qs(o,l)}}for(n=ns,ns=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var s=i.create;i.destroy=s()}catch(l){if(null===o)throw Error(a(330));qs(o,l)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Nu=t,Ki(),!0}function Rs(e,t,n){po(e,t=fu(0,t=lu(n,t),1)),t=fs(),null!==(e=ys(e,1))&&(zt(e,1,t),ms(e,t))}function qs(e,t){if(3===e.tag)Rs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Rs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Qu||!Qu.has(r))){var i=du(n,e=lu(t,e),1);if(po(n,i),i=fs(),null!==(n=ys(n,1)))zt(n,1,i),ms(n,i);else if("function"===typeof r.componentDidCatch&&(null===Qu||!Qu.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function Vs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=fs(),e.pingedLanes|=e.suspendedLanes&n,ju===e&&(Bu&n)===n&&(4===Mu||3===Mu&&(62914560&Bu)===Bu&&500>zi()-Wu?As(e,0):zu|=n),ms(e,t)}function Us(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Hi()?1:2:(0===ss&&(ss=qu),0===(t=Vt(62914560&~ss))&&(t=4194304))),n=fs(),null!==(e=ys(e,t))&&(zt(e,t,n),ms(e,n))}function zs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hs(e,t,n,r){return new zs(e,t,n,r)}function Ws(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $s(e,t){var n=e.alternate;return null===n?((n=Hs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gs(e,t,n,r,i,o){var u=2;if(r=e,"function"===typeof e)Ws(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case A:return Ks(n.children,i,o,t);case I:u=8,i|=16;break;case w:u=8,i|=1;break;case S:return(e=Hs(12,n,t,8|i)).elementType=S,e.type=S,e.lanes=o,e;case T:return(e=Hs(13,n,t,i)).type=T,e.elementType=T,e.lanes=o,e;case O:return(e=Hs(19,n,t,i)).elementType=O,e.lanes=o,e;case L:return Js(n,i,o,t);case M:return(e=Hs(24,n,t,i)).elementType=M,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case F:u=10;break e;case k:u=9;break e;case _:u=11;break e;case N:u=14;break e;case j:u=16,r=null;break e;case P:u=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Hs(u,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Ks(e,t,n,r){return(e=Hs(7,e,r,t)).lanes=n,e}function Js(e,t,n,r){return(e=Hs(23,e,r,t)).elementType=L,e.lanes=n,e}function Xs(e,t,n){return(e=Hs(6,e,null,t)).lanes=n,e}function Ys(e,t,n){return(t=Hs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Zs(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function el(e,t,n,r){var i=t.current,o=fs(),u=ds(i);e:if(n){t:{if(Xe(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(vi(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var l=n.type;if(vi(l)){n=bi(n,l,s);break e}}n=s}else n=fi;return null===t.context?t.context=n:t.pendingContext=n,(t=co(o,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),po(i,t),hs(i,u,o),u}function tl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rl(e,t){nl(e,t),(e=e.alternate)&&nl(e,t)}function il(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Qs(e,t,null!=n&&!0===n.hydrate),t=Hs(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[ei]=n.current,Nr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function ol(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function al(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var u=i;i=function(){var e=tl(a);u.call(e)}}el(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new il(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var s=i;i=function(){var e=tl(a);s.call(e)}}Es((function(){el(t,a,e,i)}))}return tl(a)}function ul(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ol(t))throw Error(a(200));return Zs(e,t,null,n)}Ku=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||hi.current)La=!0;else{if(0===(n&r)){switch(La=!1,t.tag){case 3:Ga(t),Ko();break;case 5:Io(t);break;case 1:vi(t.type)&&Ei(t);break;case 4:Po(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;pi(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Qa(e,t,n):(pi(Mo,1&Mo.current),null!==(t=ou(e,t,n))?t.sibling:null);pi(Mo,1&Mo.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return iu(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),pi(Mo,Mo.current),r)break;return null;case 23:case 24:return t.lanes=0,Ua(e,t,n)}return ou(e,t,n)}La=0!==(16384&e.flags)}else La=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=mi(t,di.current),oo(t,n),i=ua(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)){var o=!0;Ei(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(t);var u=r.getDerivedStateFromProps;"function"===typeof u&&vo(t,r,u,e),i.updater=go,t.stateNode=i,i._reactInternals=t,xo(t,r,e,n),t=$a(null,t,r,!0,o,n)}else t.tag=0,Ma(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"===typeof e)return Ws(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===_)return 11;if(e===N)return 14}return 2}(i),e=Yi(i,e),o){case 0:t=Ha(null,t,i,e,n);break e;case 1:t=Wa(null,t,i,e,n);break e;case 11:t=Ra(null,t,i,e,n);break e;case 14:t=qa(null,t,i,Yi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ha(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Wa(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 3:if(Ga(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,lo(e,t),ho(t,r,null,n),(r=t.memoizedState.element)===i)Ko(),t=ou(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Vo=Kr(t.stateNode.containerInfo.firstChild),qo=t,o=Uo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Jo.push(o);for(n=ko(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ma(e,t,r,n),Ko();t=t.child}return t;case 5:return Io(t),null===e&&Wo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,u=i.children,Hr(r,i)?u=null:null!==o&&Hr(r,o)&&(t.flags|=16),za(e,t),Ma(e,t,u,n),t.child;case 6:return null===e&&Wo(t),null;case 13:return Qa(e,t,n);case 4:return Po(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Fo(t,null,r,n):Ma(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ra(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 7:return Ma(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ma(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,u=t.memoizedProps,o=i.value;var s=t.type._context;if(pi(Qi,s._currentValue),s._currentValue=o,null!==u)if(s=u.value,0===(o=cr(s,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(u.children===i.children&&!hi.current){t=ou(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){u=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===s.tag&&((c=co(-1,n&-n)).tag=2,po(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),io(s.return,n),l.lanes|=n;break}c=c.next}}else u=10===s.tag&&s.type===t.type?null:s.child;if(null!==u)u.return=s;else for(u=s;null!==u;){if(u===t){u=null;break}if(null!==(s=u.sibling)){s.return=u.return,u=s;break}u=u.return}s=u}Ma(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,oo(t,n),r=r(i=ao(i,o.unstable_observedBits)),t.flags|=1,Ma(e,t,r,n),t.child;case 14:return o=Yi(i=t.type,t.pendingProps),qa(e,t,i,o=Yi(i.type,o),r,n);case 15:return Va(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,vi(r)?(e=!0,Ei(t)):e=!1,oo(t,n),bo(t,r,i),xo(t,r,i,n),$a(null,t,r,!0,e,n);case 19:return iu(e,t,n);case 23:case 24:return Ua(e,t,n)}throw Error(a(156,t.tag))},il.prototype.render=function(e){el(e,this._internalRoot,null,null)},il.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;el(null,e,null,(function(){t[ei]=null}))},tt=function(e){13===e.tag&&(hs(e,4,fs()),rl(e,4))},nt=function(e){13===e.tag&&(hs(e,67108864,fs()),rl(e,67108864))},rt=function(e){if(13===e.tag){var t=fs(),n=ds(e);hs(e,n,t),rl(e,n)}},it=function(e,t){return t()},Fe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=oi(r);if(!i)throw Error(a(90));Y(r),ne(r,i)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},je=bs,Pe=function(e,t,n,r,i){var o=Nu;Nu|=4;try{return $i(98,e.bind(null,t,n,r,i))}finally{0===(Nu=o)&&(Gu(),Ki())}},Be=function(){0===(49&Nu)&&(function(){if(null!==is){var e=is;is=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,ms(e,zi())}))}Ki()}(),Bs())},Ie=function(e,t){var n=Nu;Nu|=2;try{return e(t)}finally{0===(Nu=n)&&(Gu(),Ki())}};var sl={Events:[ri,ii,oi,Oe,Ne,Bs,{current:!1}]},ll={findFiberByHostInstance:ni,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cl={bundleType:ll.bundleType,version:ll.version,rendererPackageName:ll.rendererPackageName,rendererConfig:ll.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:ll.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var pl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pl.isDisabled&&pl.supportsFiber)try{Ci=pl.inject(cl),Ai=pl}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl,t.createPortal=ul,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Nu;if(0!==(48&n))return e(t);Nu|=1;try{if(e)return $i(99,e.bind(null,t))}finally{Nu=n,Ki()}},t.hydrate=function(e,t,n){if(!ol(t))throw Error(a(200));return al(null,e,t,!0,n)},t.render=function(e,t,n){if(!ol(t))throw Error(a(200));return al(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ol(e))throw Error(a(40));return!!e._reactRootContainer&&(Es((function(){al(null,null,e,!1,(function(){e._reactRootContainer=null,e[ei]=null}))})),!0)},t.unstable_batchedUpdates=bs,t.unstable_createPortal=function(e,t){return ul(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ol(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return al(e,t,n,!1,r)},t.version="17.0.2"},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},6770:function(e,t,n){"use strict";var r=this&&this.__extends||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])},e(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)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},u=a(n(2791)),s=a(n(4164)),l=a(n(8111)),c=a(n(6921)),p=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,i){var o,a,u,s;"text-change"===e?null===(a=(o=n).onEditorChangeText)||void 0===a||a.call(o,n.editor.root.innerHTML,t,i,n.unprivilegedEditor):"selection-change"===e&&(null===(s=(u=n).onEditorChangeSelection)||void 0===s||s.call(u,t,i,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=null!==r&&void 0!==r?r:"",n}return r(t,e),t.prototype.validateProps=function(e){var t;if(u.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(u.default.Children.count(e.children)&&"textarea"===(null===(t=u.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var i=this.getEditorContents(),a=null!==(n=e.value)&&void 0!==n?n:"";this.isEqualValue(a,i)||this.setEditorContents(this.editor,a)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),o(this.cleanProps,this.dirtyProps).some((function(t){return!l.default(e[t],r.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!l.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var o=this.regenerationSnapshot,a=(r=o.delta,o.selection);delete this.regenerationSnapshot,this.instantiateEditor();var u=this.editor;u.setContents(r),f((function(){return n.setEditorSelection(u,a)}))}},t.prototype.instantiateEditor=function(){this.editor||(this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig()))},t.prototype.destroyEditor=function(){this.editor&&(this.unhookEditor(this.editor),delete this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new c.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?l.default(e.ops,t.ops):l.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"===typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),f((function(){return n.setEditorSelection(e,r)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=s.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,r=t.preserveWhitespace,o={key:this.state.generation,ref:function(t){e.editingArea=t}};return u.default.Children.count(n)?u.default.cloneElement(u.default.Children.only(n),o):r?u.default.createElement("pre",i({},o)):u.default.createElement("div",i({},o))},t.prototype.render=function(){var e;return u.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!==e&&void 0!==e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,r){var i,o;if(this.editor){var a=this.isDelta(this.value)?r.getContents():r.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(o=(i=this.props).onChange)||void 0===o||o.call(i,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,i,o,a,u,s;if(this.editor){var c=this.getEditorSelection(),p=!c&&e,f=c&&!e;l.default(e,c)||(this.selection=e,null===(i=(r=this.props).onChangeSelection)||void 0===i||i.call(r,e,t,n),p?null===(a=(o=this.props).onFocus)||void 0===a||a.call(o,e,t,n):f&&(null===(s=(u=this.props).onBlur)||void 0===s||s.call(u,c,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=c.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(u.default.Component);function f(e){Promise.resolve().then(e)}e.exports=p},6374:function(e,t,n){"use strict";n(1725);var r=n(2791),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)u.call(t,r)&&!s.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:o,_owner:a.current}}t.jsx=l,t.jsxs=l},9117:function(e,t,n){"use strict";var r=n(1725),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,u=60110,s=60112;t.Suspense=60113;var l=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var p=Symbol.for;i=p("react.element"),o=p("react.portal"),t.Fragment=p("react.fragment"),t.StrictMode=p("react.strict_mode"),t.Profiler=p("react.profiler"),a=p("react.provider"),u=p("react.context"),s=p("react.forward_ref"),t.Suspense=p("react.suspense"),l=p("react.memo"),c=p("react.lazy")}var f="function"===typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function m(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function v(){}function g(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var D=g.prototype=new v;D.constructor=g,r(D,m.prototype),D.isPureReactComponent=!0;var b={current:null},E=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,o={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,r)&&!x.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:u,props:o,_owner:b.current}}function A(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var w=/\/+/g;function S(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function F(e,t,n,r,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case o:s=!0}}if(s)return a=a(s=e),e=""===r?"."+S(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(w,"$&/")+"/"),F(a,t,n,"",(function(e){return e}))):null!=a&&(A(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(w,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=r+S(u=e[l],l);s+=F(u,t,n,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),l=0;!(u=e.next()).done;)s+=F(u=u.value,t,n,c=r+S(u,l++),a);else if("object"===u)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function k(e,t,n){if(null==e)return e;var r=[],i=0;return F(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function _(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function O(){var e=T.current;if(null===e)throw Error(d(321));return e}var N={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:k,forEach:function(e,t,n){k(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error(d(143));return e}},t.Component=m,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(d(267,e));var o=r({},e.props),a=e.key,u=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,s=b.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)E.call(t,c)&&!x.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){l=Array(c);for(var p=0;p<c;p++)l[p]=arguments[p+2];o.children=l}return{$$typeof:i,type:e.type,key:a,ref:u,props:o,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:_}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return O().useCallback(e,t)},t.useContext=function(e,t){return O().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return O().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return O().useLayoutEffect(e,t)},t.useMemo=function(e,t){return O().useMemo(e,t)},t.useReducer=function(e,t,n){return O().useReducer(e,t,n)},t.useRef=function(e){return O().useRef(e)},t.useState=function(e){return O().useState(e)},t.version="17.0.2"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";var n,r,i,o;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,c=null,p=function e(){if(null!==l)try{var n=t.unstable_now();l(!0,n),l=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(p,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,d=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,m=null,v=-1,g=5,D=0;t.unstable_shouldYield=function(){return t.unstable_now()>=D},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<e?Math.floor(1e3/e):5};var b=new MessageChannel,E=b.port2;b.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();D=e+g;try{m(!0,e)?E.postMessage(null):(y=!1,m=null)}catch(n){throw E.postMessage(null),n}}else y=!1},n=function(e){m=e,y||(y=!0,E.postMessage(null))},r=function(e,n){v=f((function(){e(t.unstable_now())}),n)},i=function(){d(v),v=-1}}function x(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<w(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function A(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],u=o+1,s=e[u];if(void 0!==a&&0>w(a,n))void 0!==s&&0>w(s,a)?(e[r]=s,e[u]=n,r=u):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>w(s,n)))break e;e[r]=s,e[u]=n,r=u}}}return t}return null}function w(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var S=[],F=[],k=1,_=null,T=3,O=!1,N=!1,j=!1;function P(e){for(var t=C(F);null!==t;){if(null===t.callback)A(F);else{if(!(t.startTime<=e))break;A(F),t.sortIndex=t.expirationTime,x(S,t)}t=C(F)}}function B(e){if(j=!1,P(e),!N)if(null!==C(S))N=!0,n(I);else{var t=C(F);null!==t&&r(B,t.startTime-e)}}function I(e,n){N=!1,j&&(j=!1,i()),O=!0;var o=T;try{for(P(n),_=C(S);null!==_&&(!(_.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=_.callback;if("function"===typeof a){_.callback=null,T=_.priorityLevel;var u=a(_.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?_.callback=u:_===C(S)&&A(S),P(n)}else A(S);_=C(S)}if(null!==_)var s=!0;else{var l=C(F);null!==l&&r(B,l.startTime-n),s=!1}return s}finally{_=null,T=o,O=!1}}var L=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||O||(N=!0,n(I))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return C(S)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=L,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,o,a){var u=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?u+a:u:a=u,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:k++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>u?(e.sortIndex=a,x(F,e),null===C(S)&&e===C(F)&&(j?i():j=!0,r(B,a-u))):(e.sortIndex=s,x(S,e),N||O||(N=!0,n(I))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},3897:function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports},5372:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},3405:function(e,t,n){var r=n(3897);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3515:function(e,t,n){var r=n(6015),i=n(9617);function o(t,n,a){return i()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},9728:function(e){function t(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)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},4704:function(e,t,n){var r=n(6116);e.exports=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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 a,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},6389:function(e,t,n){var r=n(3808),i=n(9617),o=n(4993);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},8416:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},1588:function(e,t,n){var r=n(1753);function i(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=i=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(this,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},3808:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:function(e,t,n){var r=n(6015);e.exports=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},6035:function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},9617:function(e){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},9498:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8872:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(s){u=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},2218:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},2281:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},4993:function(e,t,n){var r=n(8698).default,i=n(6115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7424:function(e,t,n){var r=n(5372),i=n(8872),o=n(6116),a=n(2218);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},1753:function(e,t,n){var r=n(3808);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},1589:function(e,t,n){var r=n(5372),i=n(9498),o=n(6116),a=n(2218);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,n){var r=n(3405),i=n(9498),o=n(6116),a=n(2281);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6116:function(e,t,n){var r=n(3897);e.exports=function(e,t){if(e){if("string"===typeof e)return r(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)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},3496:function(e,t,n){var r=n(3808),i=n(6015),o=n(6035),a=n(3515);function u(t){var n="function"===typeof Map?new Map:void 0;return e.exports=u=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,u(t)}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},3344:function(e,t,n){var r=n(8698).default,i=n(6015),o=n(1655);function a(){e.exports=a=function(e,t){return new u(e,void 0,t)},e.exports.__esModule=!0,e.exports.default=e.exports;var t=RegExp.prototype,n=new WeakMap;function u(e,t,r){var o=new RegExp(e,t);return n.set(o,r||n.get(e)),i(o,u.prototype)}function s(e,t){var r=n.get(t);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return o(u,RegExp),u.prototype.exec=function(e){var n=t.exec.call(this,e);return n&&(n.groups=s(n,this)),n},u.prototype[Symbol.replace]=function(e,i){if("string"==typeof i){var o=n.get(this);return t[Symbol.replace].call(this,e,i.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+o[t]})))}if("function"==typeof i){var a=this;return t[Symbol.replace].call(this,e,(function(){var e=arguments;return"object"!=r(e[e.length-1])&&(e=[].slice.call(e)).push(s(e,a)),i.apply(this,e)}))}return t[Symbol.replace].call(this,e,i)},a.apply(this,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";function e(t){return e="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)}function t(){t=function(){return n};var n={},r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(k){l=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 w(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 F()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=x(a,n);if(u){if(u===f)continue;return u}}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 s=p(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(e,n,a),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}n.wrap=c;var f={};function d(){}function h(){}function y(){}var m={};l(m,a,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==r&&i.call(g,a)&&(m=g);var D=y.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(t,n){function r(o,a,u,s){var l=p(t[o],t,a);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==e(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,u,s)}),(function(e){r("throw",e,u,s)})):n.resolve(f).then((function(e){c.value=e,u(c)}),(function(e){return r("throw",e,u,s)}))}s(l.arg)}var o;this._invoke=function(e,t){function i(){return new n((function(n,i){r(e,t,n,i)}))}return o=o?o.then(i,i):i()}}function x(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,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;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,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function C(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:F}}function F(){return{value:void 0,done:!0}}return h.prototype=y,l(D,"constructor",y),l(y,"constructor",h),h.displayName=l(y,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(D),e},n.awrap=function(e){return{__await:e}},b(E.prototype),l(E.prototype,u,(function(){return this})),n.AsyncIterator=E,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new E(c(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(D),l(D,s,"Generator"),l(D,a,(function(){return this})),l(D,"toString",(function(){return"[object Generator]"})),n.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}},n.values=S,w.prototype={constructor:w,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(A),!e)for(var t in this)"t"===t.charAt(0)&&i.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 n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;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,f):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),f},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),A(n),f}},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;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},n}function r(e,t,n,r,i,o,a){try{var u=e[o](a),s=u.value}catch(l){return void n(l)}u.done?t(s):Promise.resolve(s).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function u(e){r(a,i,o,u,s,"next",e)}function s(e){r(a,i,o,u,s,"throw",e)}u(void 0)}))}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 u(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function d(t,n){if(n&&("object"===e(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return s(t)}function h(e){var t=f();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function y(e,t,n){return y=f()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&l(i,n.prototype),i},y.apply(null,arguments)}function m(e){var t="function"===typeof Map?new Map:void 0;return m=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("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return y(e,arguments,p(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)},m(e)}function v(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var g=0;function D(e){return"__private_"+g+++"_"+e}var b=n(2791),E=n(4164);function x(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 C(e,t){if(e){if("string"===typeof e)return x(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)?x(e,t):void 0}}function A(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(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 w(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){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?S(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(s){u=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(e,t)||C(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 _(e){var t,n=new Set,r=function(e,r){var i="function"===typeof e?e(t):e;if(i!==t){var o=t;t=r?i:Object.assign({},t,i),n.forEach((function(e){return e(t,o)}))}},i=function(){return t},o={setState:r,getState:i,subscribe:function(e,r,o){return r||o?function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.is;console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");var a=r(t);function u(){var n=r(t);if(!o(a,n)){var i=a;e(a=n,i)}}return n.add(u),function(){return n.delete(u)}}(e,r,o):(n.add(e),function(){return n.delete(e)})},destroy:function(){return n.clear()}};return t=e(r,i,o),o}var T="undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?b.useEffect:b.useLayoutEffect;function O(e){var t="function"===typeof e?_(e):e,n=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.getState,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.is,i=(0,b.useReducer)((function(e){return e+1}),0),o=k(i,2),a=o[1],u=t.getState(),s=(0,b.useRef)(u),l=(0,b.useRef)(n),c=(0,b.useRef)(r),p=(0,b.useRef)(!1),f=(0,b.useRef)();void 0===f.current&&(f.current=n(u));var d=!1;(s.current!==u||l.current!==n||c.current!==r||p.current)&&(e=n(u),d=!r(f.current,e)),T((function(){d&&(f.current=e),s.current=u,l.current=n,c.current=r,p.current=!1}));var h=(0,b.useRef)(u);T((function(){var e=function(){try{var e=t.getState(),n=l.current(e);c.current(f.current,n)||(s.current=e,f.current=n,a())}catch(r){p.current=!0,a()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);var y=d?e:f.current;return(0,b.useDebugValue)(y),y};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");var e=[n,t];return{next:function(){var t=e.length<=0;return{value:e.shift(),done:t}}}},n}var N=O((function(e,t){return{CORE_API:null,sideMenuState:0,cssLoaded:!1,materialOverrideExists:!1,tabSpawnCount:[],coreWcRef:null,removeOpen:!1,setRemoveOpen:function(t){return e({removeOpen:t})},setSideMenuState:function(n){e((function(){return{sideMenuState:n}}));var r=t().CORE_API;2!==n?r.exitHotspot():r.showAllHotspots()}}})),j=function(e,t){var n=N((function(e){return e.coreWcRef})),r=(0,b.useCallback)((function(e){t(e.data)}),[e,t,n]);(0,b.useEffect)((function(){if(n)return n.addEventListener(e,r),function(){n.removeEventListener(e,r)}}),[e,n])},P=D("levels"),B=D("forceDevLogs"),I=D("level"),L=D("scope"),M=D("reformattedScope"),R=D("defaultLogStyle"),q=D("defaultGroupTitleStyle"),V=D("levelColours"),U=D("getReformattedScope"),z=D("isAllowedInCurrentLevel"),H=function(){function e(){o(this,e),Object.defineProperty(this,z,{value:$}),Object.defineProperty(this,U,{value:W}),Object.defineProperty(this,P,{writable:!0,value:{release:{name:"release",allows:["error"]},staging:{name:"staging",allows:["warn","error"]},dev:{name:"dev",allows:["log","warn","error"]}}}),Object.defineProperty(this,B,{writable:!0,value:!1}),Object.defineProperty(this,I,{writable:!0,value:"release"}),Object.defineProperty(this,L,{writable:!0,value:"LOGGER"}),Object.defineProperty(this,M,{writable:!0,value:""}),Object.defineProperty(this,R,{writable:!0,value:"font-weight: 100; font-size: 12px;"}),Object.defineProperty(this,q,{writable:!0,value:"font-weight: bold; font-size: 15px"}),Object.defineProperty(this,V,{writable:!0,value:{log:"green",warn:"#dd9b34",error:"#de6c6e"}}),v(this,M)[M]=v(this,U)[U](),new URL(window.location).searchParams.has("showEpigraphLogs")&&(v(this,B)[B]=!0,v(this,I)[I]=v(this,P)[P].dev.name)}return u(e,[{key:"levels",get:function(){return v(this,P)[P]}},{key:"setLevel",value:function(e){v(this,B)[B]||(Object.keys(v(this,P)[P]).includes(e)?v(this,I)[I]=e:console.warn('"'.concat(e,'": is not a valid logger level')))}},{key:"setScope",value:function(e){v(this,L)[L]="".concat(e),v(this,M)[M]=v(this,U)[U]()}},{key:"log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;v(this,z)[z]("log")&&(void 0===t&&(t=v(this,R)[R]),console.groupCollapsed("%c ".concat(v(this,M)[M]," INFO %c ").concat(e),"font-weight: bold; font-size: 15px;",t),console.groupCollapsed("\t Traceback"),console.trace(),console.groupEnd(),console.groupEnd())}},{key:"warn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;v(this,z)[z]("warn")&&(void 0===t&&(t=v(this,R)[R]),console.groupCollapsed("%c ".concat(v(this,M)[M]," WARNING %c ").concat(e),"font-weight: bold; font-size: 15px; color: ".concat(v(this,V)[V].warn,";"),t),console.groupCollapsed("\t Traceback"),console.trace(),console.groupEnd(),console.groupEnd())}},{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;v(this,z)[z]("error")&&(void 0===t&&(t=v(this,R)[R]),console.groupCollapsed("%c ".concat(v(this,M)[M]," ERROR &c ").concat(e),"font-weight: bold; font-size: 15px; color: ".concat(v(this,V)[V].error,";"),t),console.groupCollapsed("\t Traceback"),console.trace(),console.groupEnd(),console.groupEnd())}},{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;v(this,z)[z]("log")&&(void 0===t&&(t=v(this,q)[q]),console.group("%c ".concat(v(this,M)[M]," GROUP"),t,e))}},{key:"groupCollapsed",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;v(this,z)[z]("log")&&(void 0===t&&(t=v(this,q)[q]),console.groupCollapsed("%c ".concat(v(this,M)[M]," GROUP"),t,e))}},{key:"groupEnd",value:function(){v(this,z)[z]("log")&&(console.log("----------------------------------"),console.groupEnd())}},{key:"table",value:function(e){v(this,z)[z]("log")&&console.table(e)}}]),e}();function W(){return"[".concat(v(this,L)[L],"]:")}function $(e){return v(this,P)[P][v(this,I)[I]].allows.includes(e)}var G=null;(G=new H).setScope("CONFIGURATOR"),G.setLevel(G.levels.release.name);var K="".concat("https://storage.googleapis.com/epigraph-configurator","/projects-asset-data"),J="".concat(K,"/generic"),X="https://storage.googleapis.com/gsc-epigraph-design/product-assets",Y=document.createElement("template");Y.id="drawerTemplate",Y.innerHTML='\n <style>\n .drawer {\n display: none;\n position: fixed;\n z-index: 30;\n overscroll-behavior: none;\n touch-action: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: none;\n }\n\n .drawer .drawerDialog {\n z-index: 9;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n background: white;\n border-top-left-radius: 1rem;\n border-top-right-radius: 1rem;\n display: flex;\n flex-direction: column;\n pointer-events: all;\n }\n\n .drawer .drawerDialog .drawerContainer {\n width: 100%;\n }\n\n .drawer .draggableBar {\n box-shadow: none;\n padding: 1rem 0;\n pointer-events: all;\n }\n\n .drawer .draggableBar:before {\n position: absolute;\n content: "";\n display: block;\n width: 20%;\n height: 8px;\n top: calc(1rem - (8px / 2));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 12px;\n background-color: rgba(0, 0, 0, 0.14);\n }\n\n .drawer .drawerOverlay {\n background-color: rgba(0, 0, 0, 0.6);\n will-change: opacity;\n opacity: 0;\n position: fixed;\n top: -100vh;\n left: 0;\n height: 200vh;\n width: 100vw;\n z-index: 6;\n pointer-events: none;\n transition: 300ms ease-out;\n }\n\n @media only screen and (max-width: 768px) {\n .drawer {\n display: block;\n }\n \n }\n </style>\n\n\n <div class="drawer">\n \x3c!-- The actual drawer --\x3e\n <div class="drawerDialog" id="drawerDialog">\n <div class="draggableBar" id="dragBar"></div>\n <div class="drawerContainer">\n <div class="drawerContent" id="bottomDrawerContent">\n <slot name="bottom-drawer-content">\n <div style="padding: 2rem">\n <h1 style="">Testing Content</h1>\n </div>\n </slot>\n </div>\n </div>\n </div>\n\n \x3c!-- The overlay/backdrop in the background --\x3e\n <div class="drawerOverlay" id="drawerOverlay"></div>\n </div>\n';var Q=D("dragBar"),Z=D("drawerDialog"),ee=D("drawerOverlay"),te=D("drawerContent"),ne=D("drawerClosedEvent"),re=D("setupDrawer"),ie=D("initializeDrawer"),oe=D("onTouchStart"),ae=D("onTouchMove"),ue=D("onTouchEnd"),se=function(e){c(n,e);var t=h(n);function n(){var e;return o(this,n),e=t.call(this),Object.defineProperty(s(e),ue,{value:de}),Object.defineProperty(s(e),ae,{value:fe}),Object.defineProperty(s(e),oe,{value:pe}),Object.defineProperty(s(e),ie,{value:ce}),Object.defineProperty(s(e),re,{value:le}),Object.defineProperty(s(e),Q,{writable:!0,value:void 0}),Object.defineProperty(s(e),Z,{writable:!0,value:void 0}),Object.defineProperty(s(e),ee,{writable:!0,value:void 0}),Object.defineProperty(s(e),te,{writable:!0,value:void 0}),Object.defineProperty(s(e),ne,{writable:!0,value:new CustomEvent("drawerClosed")}),e.attachShadow({mode:"open"}),v(s(e),re)[re](),e}return u(n,[{key:"connectedCallback",value:function(){v(this,ie)[ie]()}},{key:"disconnectedCallback",value:function(){var e=this;v(this,Q)[Q].removeEventListener("touchstart",(function(t){v(e,oe)[oe](t)})),v(this,Q)[Q].removeEventListener("touchmove",(function(t){v(e,ae)[ae](t)})),v(this,Q)[Q].removeEventListener("touchend",(function(t){v(e,ue)[ue](t)})),v(this,ee)[ee].removeEventListener("click",(function(t){e.closeDrawer()}))}},{key:"attributeChangedCallback",value:function(e,t,n){if("open"===e)t!==n&&("false"===n.toLowerCase()?(this.closeDrawer(),this.dispatchEvent(v(this,ne)[ne])):"true"===n.toLowerCase()&&this.openDrawer())}},{key:"openDrawer",value:function(){v(this,ee)[ee].style.opacity="1",v(this,Z)[Z].style.transition="transform 300ms ease-out",v(this,Z)[Z].style.transform="translate(0px, 0px)",v(this,ee)[ee].style.pointerEvents="all",this.setAttribute("open","true")}},{key:"closeDrawer",value:function(){v(this,ee)[ee].style.opacity="0",v(this,Z)[Z].style.transition="transform 300ms ease-out",v(this,Z)[Z].style.transform="translate(0px, ".concat(v(this,Z)[Z].clientHeight,"px)"),v(this,ee)[ee].style.pointerEvents="none",this.setAttribute("open","false")}}],[{key:"observedAttributes",get:function(){return["open"]}}]),n}(m(HTMLElement));function le(){var e=this;this.shadowRoot.appendChild(Y.content.cloneNode(!0)),v(this,Q)[Q]=this.shadowRoot.getElementById("dragBar"),v(this,Z)[Z]=this.shadowRoot.getElementById("drawerDialog"),v(this,ee)[ee]=this.shadowRoot.getElementById("drawerOverlay"),v(this,te)[te]=this.shadowRoot.getElementById("bottomDrawerContent"),v(this,Q)[Q].addEventListener("touchstart",(function(t){v(e,oe)[oe](t)})),v(this,Q)[Q].addEventListener("touchmove",(function(t){v(e,ae)[ae](t)})),v(this,Q)[Q].addEventListener("touchend",(function(t){v(e,ue)[ue](t)})),v(this,ee)[ee].addEventListener("click",(function(t){e.closeDrawer()}))}function ce(){v(this,Z)[Z].style.transform="translateY(80vh)"}function pe(e){v(this,Z)[Z].style.transition="none"}function fe(e){var t=e.touches[0].clientY,n=window.screen.height-t,r=n/v(this,Z)[Z].clientHeight;n<=v(this,Z)[Z].clientHeight&&(v(this,Z)[Z].style.transform="translate(0px, ".concat(v(this,Z)[Z].clientHeight-n,"px)")),v(this,ee)[ee].style.opacity=r}function de(e){var t=e.changedTouches[0].clientY,n=window.screen.height-t,r=n/v(this,Z)[Z].clientHeight;n<=v(this,Z)[Z].clientHeight&&(r<.5?this.closeDrawer():this.openDrawer())}window.customElements.define("bottom-drawer",se);var he=n(184),ye=function(e){var t=e.zIndex,n=e.open,r=e.setOpen,i=e.heading,o=e.inputValue,a=e.buttonText,u=e.inputPlaceholder,s=e.formFieldExists,l=e.dualOptions,c=e.modalText,p=e.onSubmit,f=e.shareModal,d=e.loading,h=N((function(e){return e.CORE_API})),y=k((0,b.useState)(n),2),m=(y[0],y[1],k((0,b.useState)(n),2)),v=m[0],g=m[1],D=k((0,b.useState)(""),2),E=D[0],x=D[1],C=(0,b.useRef)(null),A=k((0,b.useState)(d||null),2),w=A[0],S=A[1];function F(e){x(e.target.value)}return(0,b.useEffect)((function(){N.getState().CORE_API.isMobile&&C&&C.current.addEventListener("drawerClosed",(function(){r(!1),G.log("UI Drawer Dismissed!!")}))}),[C]),(0,b.useEffect)((function(){return S(d),function(){}}),[d]),(0,b.useEffect)((function(){return g(n),function(){}}),[n]),(0,he.jsx)(he.Fragment,{children:h.isMobile?(0,he.jsx)("bottom-drawer",{style:{zIndex:t,position:"absolute"},id:"hotspotDrawer",ref:C,open:"".concat(v),children:(0,he.jsx)("div",{className:"epigraphDrawer uiModalDrawer",slot:"bottom-drawer-content",children:(0,he.jsxs)("div",{className:"modalDialog",children:[(0,he.jsx)("div",{className:"modalCloseContainer",children:(0,he.jsx)("button",{onClick:function(){r(!1)},children:(0,he.jsx)("img",{src:X+"/Icon/X.svg"})})}),(0,he.jsx)("h2",{className:"modalHeading",children:i}),c&&(0,he.jsx)("p",{className:"modalText",children:c}),(0,he.jsx)("div",{style:{position:"relative"},className:f?"shareModal":"",children:w?(0,he.jsx)("div",{style:{width:"100%",display:"flex",justifyContent:"center"},children:(0,he.jsx)("img",{style:{width:"5rem"},src:X+"/Animation/Loading.svg"})}):(0,he.jsxs)(he.Fragment,{children:[s&&(void 0!==o?(0,he.jsx)("input",{type:"text",value:o,readOnly:!0}):(0,he.jsx)("input",{placeholder:u||"",type:"text",value:E,onChange:function(e){F(e)}})),l?(0,he.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"1.5rem"},children:[(0,he.jsx)("button",{role:"button",onClick:function(){r(!1),p&&p()},children:a}),(0,he.jsx)("button",{role:"button",onClick:function(){r(!1)},style:{background:"white",border:"1px solid #222222",color:"#222222"},children:"Cancel"})]}):(0,he.jsx)("button",{role:"button",onClick:function(){r(!1),p&&p()},children:a})]})})]})})}):(0,he.jsxs)("div",{className:!0===n?"uiModal open":"uiModal",children:[(0,he.jsxs)("div",{className:"modalDialog",children:[(0,he.jsx)("div",{className:"modalCloseContainer",children:(0,he.jsx)("button",{onClick:function(){r(!1)},children:(0,he.jsx)("img",{src:X+"/Icon/X.svg"})})}),(0,he.jsx)("h2",{className:"modalHeading",children:i}),c&&(0,he.jsx)("p",{className:"modalText",children:c}),(0,he.jsx)("div",{style:{position:"relative",width:"100%"},className:f?"shareModal":"",children:w?(0,he.jsx)("div",{style:{width:"100%",display:"flex",justifyContent:"center"},children:(0,he.jsx)("img",{style:{width:"5rem"},src:X+"/Animation/Loading.svg"})}):(0,he.jsxs)(he.Fragment,{children:[s&&(void 0!==o?(0,he.jsx)("input",{type:"text",value:o,readOnly:!0}):(0,he.jsx)("input",{placeholder:u||"",type:"text",value:E,onChange:function(e){F(e)}})),l?(0,he.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"1.5rem"},children:[(0,he.jsx)("button",{role:"button",onClick:function(){r(!1),p&&p()},children:a}),(0,he.jsx)("button",{role:"button",onClick:function(){r(!1)},style:{background:"white",border:"1px solid #222222",color:"#222222"},children:"Cancel"})]}):(0,he.jsx)("button",{role:"button",onClick:function(){r(!1),p&&p()},children:a})]})})]}),(0,he.jsx)("div",{className:"modalOverlay"})]})})};function me(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 ve=["children","className"],ge="splide",De="data-".concat(ge),be={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5};function Ee(e){e.length=0}function xe(e){return!Se(e)&&"object"===typeof e}function Ce(e){return Array.isArray(e)}function Ae(e){return"string"===typeof e}function we(e){return"undefined"===typeof e}function Se(e){return null===e}function Fe(e){return e instanceof HTMLElement}function ke(e){return Ce(e)?e:[e]}function _e(e,t){ke(e).forEach(t)}function Te(e,t){return e.indexOf(t)>-1}function Oe(e,t){return e.push.apply(e,A(ke(t))),e}var Ne=Array.prototype;function je(e,t,n){return Ne.slice.call(e,t,n)}function Pe(e,t,n){e&&_e(t,(function(t){t&&e.classList[n?"add":"remove"](t)}))}function Be(e,t){Pe(e,Ae(t)?t.split(" "):t,!0)}function Ie(e,t){_e(t,e.appendChild.bind(e))}function Le(e,t){_e(e,(function(e){var n=t.parentNode;n&&n.insertBefore(e,t)}))}function Me(e,t){return Fe(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function Re(e,t){return e?je(e.children).filter((function(e){return Me(e,t)})):[]}function qe(e,t){return t?Re(e,t)[0]:e.firstElementChild}function Ve(e,t,n){if(e){var r=Object.keys(e);r=n?r.reverse():r;for(var i=0;i<r.length;i++){var o=r[i];if("__proto__"!==o&&!1===t(e[o],o))break}}return e}function Ue(e){return je(arguments,1).forEach((function(t){Ve(t,(function(n,r){e[r]=t[r]}))})),e}function ze(e,t){return Ve(t,(function(t,n){Ce(t)?e[n]=t.slice():xe(t)?e[n]=ze(xe(e[n])?e[n]:{},t):e[n]=t})),e}function He(e,t){e&&_e(t,(function(t){e.removeAttribute(t)}))}function We(e,t,n){xe(t)?Ve(t,(function(t,n){We(e,n,t)})):Se(n)?He(e,t):e.setAttribute(t,String(n))}function $e(e,t,n){var r=document.createElement(e);return t&&(Ae(t)?Be(r,t):We(r,t)),n&&Ie(n,r),r}function Ge(e,t,n){if(we(n))return getComputedStyle(e)[t];if(!Se(n)){var r=e.style;n="".concat(n),r[t]!==n&&(r[t]=n)}}function Ke(e,t){Ge(e,"display",t)}function Je(e,t){return e.getAttribute(t)}function Xe(e,t){return e&&e.classList.contains(t)}function Ye(e){return e.getBoundingClientRect()}function Qe(e){_e(e,(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}))}function Ze(e){return qe((new DOMParser).parseFromString(e,"text/html").body)}function et(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function tt(e,t){return e&&e.querySelector(t)}function nt(e,t){return je(e.querySelectorAll(t))}function rt(e,t){Pe(e,t,!1)}function it(e){return Ae(e)?e:e?"".concat(e,"px"):""}function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)throw new Error("[".concat(ge,"] ").concat(t))}function at(e){setTimeout(e)}var ut=function(){};function st(e){return requestAnimationFrame(e)}var lt=Math.min,ct=Math.max,pt=Math.floor,ft=Math.ceil,dt=Math.abs;function ht(e,t,n,r){var i=lt(t,n),o=ct(t,n);return r?i<e&&e<o:i<=e&&e<=o}function yt(e,t,n){var r=lt(t,n),i=ct(t,n);return lt(ct(r,e),i)}function mt(e){return+(e>0)-+(e<0)}function vt(e,t){return _e(t,(function(t){e=e.replace("%s","".concat(t))})),e}function gt(e){return e<10?"0".concat(e):"".concat(e)}var Dt={};var bt="mounted",Et="ready",xt="move",Ct="moved",At="shifted",wt="click",St="active",Ft="inactive",kt="visible",_t="hidden",Tt="slide:keydown",Ot="refresh",Nt="updated",jt="resize",Pt="resized",Bt="repositioned",It="drag",Lt="dragging",Mt="dragged",Rt="scroll",qt="scrolled",Vt="destroy",Ut="arrows:mounted",zt="arrows:updated",Ht="pagination:mounted",Wt="pagination:updated",$t="navigation:mounted",Gt="autoplay:play",Kt="autoplay:playing",Jt="autoplay:pause",Xt="lazyload:loaded";function Yt(e){var t=e.event,n={},r=[];function i(e,t,n){o(e,t,(function(e,t){r=r.filter((function(r){return!!(r[0]!==e||r[1]!==t||n&&r[2]!==n)||(e.removeEventListener(t,r[2],r[3]),!1)}))}))}function o(e,t,n){_e(e,(function(e){e&&t.split(" ").forEach(n.bind(null,e))}))}function a(){r=r.filter((function(e){return i(e[0],e[1])})),t.offBy(n)}return t.on(Vt,a,n),{on:function(e,r,i){t.on(e,r,n,i)},off:function(e){t.off(e,n)},emit:t.emit,bind:function(e,t,n,i){o(e,t,(function(e,t){r.push([e,t,n,i]),e.addEventListener(t,n,i)}))},unbind:i,destroy:a}}function Qt(e,t,n,r){var i,o,a=Date.now,u=0,s=!0,l=0;function c(){if(!s){var o=a()-i;if(o>=e?(u=1,i=a()):u=o/e,n&&n(u),1===u&&(t(),r&&++l>=r))return p();st(c)}}function p(){s=!0}function f(){cancelAnimationFrame(o),u=0,o=0,s=!0}return{start:function(t){!t&&f(),i=a()-(t?u*e:0),s=!1,st(c)},rewind:function(){i=a(),u=0,n&&n(u)},pause:p,cancel:f,set:function(t){e=t},isPaused:function(){return s}}}function Zt(e,t){var n;return function(){var r=arguments,i=this;n||(n=Qt(t||0,(function(){e.apply(i,r),n=null}),null,1)).start()}}var en="ttb",tn={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]};var nn=ge,rn="".concat(ge,"__slider"),on="".concat(ge,"__track"),an="".concat(ge,"__list"),un="".concat(ge,"__slide"),sn="".concat(un,"--clone"),ln="".concat(un,"__container"),cn="".concat(ge,"__arrows"),pn="".concat(ge,"__arrow"),fn="".concat(pn,"--prev"),dn="".concat(pn,"--next"),hn="".concat(ge,"__pagination"),yn="".concat(hn,"__page"),mn="".concat(ge,"__progress"),vn="".concat(mn,"__bar"),gn="".concat(ge,"__autoplay"),Dn="".concat(ge,"__play"),bn="".concat(ge,"__pause"),En="".concat(ge,"__spinner"),xn="is-active",Cn="is-prev",An="is-next",wn="is-visible",Sn="is-loading",Fn=[xn,wn,Cn,An,Sn],kn={slide:un,clone:sn,arrows:cn,arrow:pn,prev:fn,next:dn,pagination:hn,page:yn,spinner:En};var _n="role",Tn="aria-controls",On="aria-current",Nn="aria-label",jn="aria-hidden",Pn="tabindex",Bn="aria-orientation",In=[_n,Tn,On,Nn,jn,Bn,Pn,"disabled"],Ln="slide",Mn="loop",Rn="fade";function qn(e,t,n,r){var i,o=Yt(e),a=o.on,u=o.emit,s=o.bind,l=o.destroy,c=e.Components,p=e.root,f=e.options,d=f.isNavigation,h=f.updateOnMove,y=c.Direction.resolve,m=Je(r,"style"),v=n>-1,g=qe(r,".".concat(ln)),D=f.focusableNodes&&nt(r,f.focusableNodes);function b(){var i=v?n:t,o=vt(f.i18n.slideX,i+1),a=e.splides.map((function(e){return e.splide.root.id})).join(" ");We(r,Nn,o),We(r,Tn,a),We(r,_n,"menuitem"),C(A())}function E(){i||x()}function x(){if(!i){var n=e.index;C(A()),function(e){var t=!e&&(!A()||v);We(r,jn,t||null),We(r,Pn,!t&&f.slideFocus?0:null),D&&D.forEach((function(e){We(e,Pn,t?-1:null)}));e!==Xe(r,wn)&&(Pe(r,wn,e),u(e?kt:_t,w))}(function(){if(e.is(Rn))return A();var t=Ye(c.Elements.track),n=Ye(r),i=y("left"),o=y("right");return pt(t[i])<=ft(n[i])&&pt(n[o])<=ft(t[o])}()),Pe(r,Cn,t===n-1),Pe(r,An,t===n+1)}}function C(e){e!==Xe(r,xn)&&(Pe(r,xn,e),d&&We(r,On,e||null),u(e?St:Ft,w))}function A(){var r=e.index;return r===t||f.cloneStatus&&r===n}var w={index:t,slideIndex:n,slide:r,container:g,isClone:v,mount:function(){v||(r.id="".concat(p.id,"-slide").concat(gt(t+1))),s(r,"click keydown",(function(e){u("click"===e.type?wt:Tt,w,e)})),a([Ot,Bt,At,Ct,qt],x),a($t,b),h&&a(xt,E)},destroy:function(){i=!0,l(),rt(r,Fn),He(r,In),We(r,"style",m)},update:x,style:function(e,t,n){Ge(n&&g||r,e,t)},isWithin:function(n,r){var i=dt(n-t);return v||!f.rewind&&!e.is(Mn)||(i=lt(i,e.length-i)),i<=r}};return w}var Vn="".concat(De,"-interval");var Un={passive:!1,capture:!0},zn="touchmove mousemove",Hn="touchend touchcancel mouseup";var Wn=["Left","Right","Up","Down"],$n="keydown";var Gn="".concat(De,"-lazy"),Kn="".concat(Gn,"-srcset"),Jn="[".concat(Gn,"], [").concat(Kn,"]");var Xn=[" ","Enter","Spacebar"];var Yn=Object.freeze({__proto__:null,Options:function(e,t,n){var r,i,o,a=Zt(s);function u(e){e&&removeEventListener("resize",a)}function s(){var t,a=(t=function(e){return e[1].matches},je(i).filter(t)[0]||[]);a[0]!==o&&function(t){var i=n.breakpoints[t]||r;i.destroy?(e.options=r,e.destroy("completely"===i.destroy)):(e.state.is(5)&&(u(!0),e.mount()),e.options=i)}(o=a[0])}return{setup:function(){try{ze(n,JSON.parse(Je(e.root,De)))}catch(a){ot(!1,a.message)}r=ze({},n);var t=n.breakpoints;if(t){var o="min"===n.mediaQuery;i=Object.keys(t).sort((function(e,t){return o?+t-+e:+e-+t})).map((function(e){return[e,matchMedia("(".concat(o?"min":"max","-width:").concat(e,"px)"))]})),s()}},mount:function(){i&&addEventListener("resize",a)},destroy:u}},Direction:function(e,t,n){return{resolve:function(e,t){var r=n.direction;return tn[e]["rtl"!==r||t?r===en?0:-1:1]||e},orient:function(e){return e*("rtl"===n.direction?1:-1)}}},Elements:function(e,t,n){var r,i,o,a,u=Yt(e).on,s=e.root,l={},c=[];function p(){!function(){i=qe(s,".".concat(rn)),o=tt(s,".".concat(on)),a=qe(o,".".concat(an)),ot(o&&a,"A track/list element is missing."),Oe(c,Re(a,".".concat(un,":not(.").concat(sn,")")));var e=y(".".concat(gn)),t=y(".".concat(cn));Ue(l,{root:s,slider:i,track:o,list:a,slides:c,arrows:t,autoplay:e,prev:tt(t,".".concat(fn)),next:tt(t,".".concat(dn)),bar:tt(y(".".concat(mn)),".".concat(vn)),play:tt(e,".".concat(Dn)),pause:tt(e,".".concat(bn))})}(),function(){var e=s.id||(t=ge,"".concat(t).concat(gt(Dt[t]=(Dt[t]||0)+1)));var t;s.id=e,o.id=o.id||"".concat(e,"-track"),a.id=a.id||"".concat(e,"-list")}(),Be(s,r=m())}function f(){[s,o,a].forEach((function(e){He(e,"style")})),Ee(c),rt(s,r)}function d(){f(),p()}function h(){rt(s,r),Be(s,r=m())}function y(e){return qe(s,e)||qe(i,e)}function m(){return["".concat(nn,"--").concat(n.type),"".concat(nn,"--").concat(n.direction),n.drag&&"".concat(nn,"--draggable"),n.isNavigation&&"".concat(nn,"--nav"),xn]}return Ue(l,{setup:p,mount:function(){u(Ot,d,8),u(Nt,h)},destroy:f})},Slides:function(e,t,n){var r=Yt(e),i=r.on,o=r.emit,a=r.bind,u=t.Elements,s=u.slides,l=u.list,c=[];function p(){s.forEach((function(e,t){h(e,t,-1)}))}function f(){m((function(e){e.destroy()})),Ee(c)}function d(){f(),p()}function h(t,n,r){var i=qn(e,n,r,t);i.mount(),c.push(i)}function y(e){return e?v((function(e){return!e.isClone})):c}function m(e,t){y(t).forEach(e)}function v(e){return c.filter("function"===typeof e?e:function(t){return Ae(e)?Me(t.slide,e):Te(ke(e),t.index)})}return{mount:function(){p(),i(Ot,d),i([bt,Ot],(function(){c.sort((function(e,t){return e.index-t.index}))}))},destroy:f,update:function(){m((function(e){e.update()}))},register:h,get:y,getIn:function(e){var r=t.Controller,i=r.toIndex(e),o=r.hasFocus()?1:n.perPage;return v((function(e){return ht(e.index,i,i+o-1)}))},getAt:function(e){return v(e)[0]},add:function(e,t){_e(e,(function(e){if(Ae(e)&&(e=Ze(e)),Fe(e)){var r=s[t];r?Le(e,r):Ie(l,e),Be(e,n.classes.slide),function(e,t){var n=nt(e,"img"),r=n.length;r?n.forEach((function(e){a(e,"load error",(function(){--r||t()}))})):t()}(e,o.bind(null,jt))}})),o(Ot)},remove:function(e){Qe(v(e).map((function(e){return e.slide}))),o(Ot)},forEach:m,filter:v,style:function(e,t,n){m((function(r){r.style(e,t,n)}))},getLength:function(e){return e?s.length:c.length},isEnough:function(){return c.length>n.perPage}}},Layout:function(e,t,n){var r,i,o=Yt(e),a=o.on,u=o.bind,s=o.emit,l=t.Slides,c=t.Direction.resolve,p=t.Elements,f=p.root,d=p.track,h=p.list,y=l.getAt;function m(){i=null,r=n.direction===en,Ge(f,"maxWidth",it(n.width)),Ge(d,c("paddingLeft"),g(!1)),Ge(d,c("paddingRight"),g(!0)),v()}function v(){var e=Ye(f);i&&i.width===e.width&&i.height===e.height||(Ge(d,"height",function(){var e="";r&&(ot(e=D(),"height or heightRatio is missing."),e="calc(".concat(e," - ").concat(g(!1)," - ").concat(g(!0),")"));return e}()),l.style(c("marginRight"),it(n.gap)),l.style("width",(n.autoWidth?"":it(n.fixedWidth)||(r?"":b()))||null),l.style("height",it(n.fixedHeight)||(r?n.autoHeight?"":b():D())||null,!0),i=e,s(Pt))}function g(e){var t=n.padding,r=c(e?"right":"left");return t&&it(t[r]||(xe(t)?0:t))||"0px"}function D(){return it(n.height||Ye(h).width*n.heightRatio)}function b(){var e=it(n.gap);return"calc((100%".concat(e&&" + ".concat(e),")/").concat(n.perPage||1).concat(e&&" - ".concat(e),")")}function E(e,t){var n=y(e);if(n){var r=Ye(n.slide)[c("right")],i=Ye(h)[c("left")];return dt(r-i)+(t?0:x())}return 0}function x(){var e=y(0);return e&&parseFloat(Ge(e.slide,c("marginRight")))||0}return{mount:function(){m(),u(window,"resize load",Zt(s.bind(this,jt))),a([Nt,Ot],m),a(jt,v)},listSize:function(){return Ye(h)[c("width")]},slideSize:function(e,t){var n=y(e||0);return n?Ye(n.slide)[c("width")]+(t?0:x()):0},sliderSize:function(){return E(e.length-1,!0)-E(-1,!0)},totalSize:E,getPadding:function(e){return parseFloat(Ge(d,c("padding".concat(e?"Right":"Left"))))||0}}},Clones:function(e,t,n){var r,i=Yt(e),o=i.on,a=i.emit,u=t.Elements,s=t.Slides,l=t.Direction.resolve,c=[];function p(){(r=y())&&(!function(t){var r=s.get().slice(),i=r.length;if(i){for(;r.length<t;)Oe(r,r);Oe(r.slice(-t),r.slice(0,t)).forEach((function(o,a){var l=a<t,p=function(t,r){var i=t.cloneNode(!0);return Be(i,n.classes.clone),i.id="".concat(e.root.id,"-clone").concat(gt(r+1)),i}(o.slide,a);l?Le(p,r[0].slide):Ie(u.list,p),Oe(c,p),s.register(p,a-t+(l?0:i),o.index)}))}}(r),a(jt))}function f(){Qe(c),Ee(c)}function d(){f(),p()}function h(){r<y()&&a(Ot)}function y(){var t=n.clones;if(e.is(Mn)){if(!t){var r=function(e,t){if(Ae(t)){var n=$e("div",{style:"width: ".concat(t,"; position: absolute;")},e);t=Ye(n).width,Qe(n)}return t}(u.list,n[l("fixedWidth")]);t=(r&&ft(Ye(u.track)[l("width")]/r)||n[l("autoWidth")]&&e.length||n.perPage)*(n.drag?(n.flickMaxPages||1)+1:2)}}else t=0;return t}return{mount:function(){p(),o(Ot,d),o([Nt,jt],h)},destroy:f}},Move:function(e,t,n){var r,i=Yt(e),o=i.on,a=i.emit,u=t.Layout,s=u.slideSize,l=u.getPadding,c=u.totalSize,p=u.listSize,f=u.sliderSize,d=t.Direction,h=d.resolve,y=d.orient,m=t.Elements,v=m.list,g=m.track;function D(){S()||(t.Scroll.cancel(),b(e.index),a(Bt))}function b(e){E(C(e,!0))}function E(t,n){if(!e.is(Rn)){var r=n?t:function(t){if(e.is(Mn)){var n=y(t-A()),r=F(!1,t)&&n<0,i=F(!0,t)&&n>0;(r||i)&&(t=x(t,i))}return t}(t);v.style.transform="translate".concat(h("X"),"(").concat(r,"px)"),t!==r&&a(At)}}function x(e,t){var n=e-w(t),r=f();return e-=y(r*(ft(dt(n)/r)||1))*(t?1:-1)}function C(t,r){var i=y(c(t-1)-function(e){var t=n.focus;return"center"===t?(p()-s(e,!0))/2:+t*s(e)||0}(t));return r?function(t){n.trimSpace&&e.is(Ln)&&(t=yt(t,0,y(f()-p())));return t}(i):i}function A(){var e=h("left");return Ye(v)[e]-Ye(g)[e]+y(l(!1))}function w(e){return C(e?t.Controller.getEnd():0,!!n.trimSpace)}function S(){return e.state.is(4)&&n.waitForTransition}function F(e,t){t=we(t)?A():t;var n=!0!==e&&y(t)<y(w(!1)),r=!1!==e&&y(t)>y(w(!0));return n||r}return{mount:function(){r=t.Transition,o([bt,Pt,Nt,Ot],D)},destroy:function(){He(v,"style")},move:function(i,o,u,s){if(!S()){var l=e.state.set,c=A();i!==o&&(r.cancel(),E(x(c,i>o),!0)),l(4),a(xt,o,u,i),r.start(o,(function(){l(3),a(Ct,o,u,i),"move"===n.trimSpace&&i!==u&&c===A()?t.Controller.go(i>u?">":"<",!1,s):s&&s()}))}},jump:b,translate:E,shift:x,cancel:function(){E(A()),r.cancel()},toIndex:function(e){for(var n=t.Slides.get(),r=0,i=1/0,o=0;o<n.length;o++){var a=n[o].index,u=dt(C(a,!0)-e);if(!(u<=i))break;i=u,r=a}return r},toPosition:C,getPosition:A,getLimit:w,isBusy:S,exceededLimit:F}},Controller:function(e,t,n){var r,i,o,a=Yt(e).on,u=t.Move,s=u.getPosition,l=u.getLimit,c=t.Slides,p=c.isEnough,f=c.getLength,d=e.is(Mn),h=e.is(Ln),y=n.start||0,m=y;function v(){r=f(!0),i=n.perMove,o=n.perPage,y=yt(y,0,r-1)}function g(e,n,r,i,o){var a=n?e:F(e);t.Scroll.scroll(n||r?u.toPosition(a,!0):e,i,(function(){_(u.toIndex(u.getPosition())),o&&o()}))}function D(e){return E(!1,e)}function b(e){return E(!0,e)}function E(e,t){var n,r,a,u=i||(T()?1:o),c=x(y+u*(e?-1:1),y);return-1!==c||!h||(n=s(),r=l(!e),a=1,dt(n-r)<a)?t?c:A(c):e?0:C()}function x(e,t,a){if(p()){var u=C();e<0||e>u?e=ht(0,e,t,!0)||ht(u,t,e,!0)?w(S(e)):d?i||T()?e:e<0?-(r%o||o):r:n.rewind?e<0?u:0:-1:a||e===t||(e=i?e:w(S(t)+(e<t?-1:1)))}else e=-1;return e}function C(){var e=r-o;return(T()||d&&i)&&(e=r-1),ct(e,0)}function A(e){return d?p()?e%r+(e<0?r:0):-1:e}function w(e){return yt(T()?e:o*e,0,C())}function S(e){return T()||(e=ht(e,r-o,r-1)?r-1:e,e=pt(e/o)),e}function F(e){var t=u.toIndex(e);return h?yt(t,0,C()):t}function _(e){e!==y&&(m=y,y=e)}function T(){return!we(n.focus)||n.isNavigation}return{mount:function(){v(),a([Nt,Ot],v,9)},go:function(e,t,r){var i=function(e){var t=y;if(Ae(e)){var n=k(e.match(/([+\-<>])(\d+)?/)||[],3),r=n[1],i=n[2];"+"===r||"-"===r?t=x(y+ +"".concat(r).concat(+i||1),y,!0):">"===r?t=i?w(+i):D(!0):"<"===r&&(t=b(!0))}else t=d?e:yt(e,0,C());return t}(e);if(n.useScroll)g(i,!0,!0,n.speed,r);else{var o=A(i);o>-1&&!u.isBusy()&&(t||o!==y)&&(_(o),u.move(i,o,m,r))}},scroll:g,getNext:D,getPrev:b,getAdjacent:E,getEnd:C,setIndex:_,getIndex:function(e){return e?m:y},toIndex:w,toPage:S,toDest:F,hasFocus:T}},Arrows:function(e,t,n){var r,i=Yt(e),o=i.on,a=i.bind,u=i.emit,s=n.classes,l=n.i18n,c=t.Elements,p=t.Controller,f=c.arrows,d=c.prev,h=c.next,y={};function m(){if(n.arrows&&(d&&h||(f=$e("div",s.arrows),d=v(!0),h=v(!1),r=!0,Ie(f,[d,h]),Le(f,qe("slider"===n.arrows&&c.slider||e.root)))),d&&h)if(y.prev)Ke(f,!1===n.arrows?"none":"");else{var t=c.track.id;We(d,Tn,t),We(h,Tn,t),y.prev=d,y.next=h,function(){var e=p.go;o([bt,Ct,Nt,Ot,qt],g),a(h,"click",(function(){e(">",!0)})),a(d,"click",(function(){e("<",!0)}))}(),u(Ut,d,h)}}function v(e){return Ze('<button class="'.concat(s.arrow," ").concat(e?s.prev:s.next,'" type="button"><svg xmlns="').concat("http://www.w3.org/2000/svg",'" viewBox="0 0 ').concat(40," ").concat(40,'" width="').concat(40,'" height="').concat(40,'"><path d="').concat(n.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",'" />'))}function g(){var t=e.index,n=p.getPrev(),r=p.getNext(),i=n>-1&&t<n?l.last:l.prev,o=r>-1&&t>r?l.first:l.next;d.disabled=n<0,h.disabled=r<0,We(d,Nn,i),We(h,Nn,o),u(zt,d,h,n,r)}return{arrows:y,mount:function(){m(),o(Nt,m)},destroy:function(){r?Qe(f):(He(d,In),He(h,In))}}},Autoplay:function(e,t,n){var r,i,o,a=Yt(e),u=a.on,s=a.bind,l=a.emit,c=Qt(n.interval,e.go.bind(e,">"),(function(e){var t=f.bar;t&&Ge(t,"width","".concat(100*e,"%")),l(Kt,e)})),p=c.isPaused,f=t.Elements;function d(e){var t=e?"pause":"play",r=f[t];r&&(We(r,Tn,f.track.id),We(r,Nn,n.i18n[t]),s(r,"click",e?y:h))}function h(){p()&&t.Slides.isEnough()&&(c.start(!n.resetProgress),i=r=o=!1,l(Gt))}function y(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];p()||(c.pause(),l(Jt)),o=e}function m(){o||(r||i?y(!1):h())}function v(){var r=t.Slides.getAt(e.index);c.set(r&&+Je(r.slide,Vn)||n.interval)}return{mount:function(){var e=n.autoplay;e&&(d(!0),d(!1),function(){var e=f.root;n.pauseOnHover&&s(e,"mouseenter mouseleave",(function(e){r="mouseenter"===e.type,m()}));n.pauseOnFocus&&s(e,"focusin focusout",(function(e){i="focusin"===e.type,m()}));u([xt,Rt,Ot],c.rewind),u(xt,v)}(),"pause"!==e&&h())},destroy:c.cancel,play:h,pause:y,isPaused:p}},Cover:function(e,t,n){var r=Yt(e).on;function i(e){t.Slides.forEach((function(t){var n=qe(t.container||t.slide,"img");n&&n.src&&o(e,n,t)}))}function o(e,t,n){n.style("background",e?'center/cover no-repeat url("'.concat(t.src,'")'):"",!0),Ke(t,e?"none":"")}return{mount:function(){n.cover&&(r(Xt,(function(e,t){o(!0,e,t)})),r([bt,Nt,Ot],i.bind(null,!0)))},destroy:function(){i(!1)}}},Scroll:function(e,t,n){var r,i,o=Yt(e),a=o.on,u=o.emit,s=t.Move,l=s.getPosition,c=s.getLimit,p=s.exceededLimit;function f(t,o,a,y){var m,v=l(),g=1;o=o||(m=dt(t-v),ct(m/1.5,800)),i=a,h(),r=Qt(o,d,(function(r){var i,o=l(),a=(v+(t-v)*function(e){var t=n.easingFunc;return t?t(e):1-Math.pow(1-e,4)}(r)-l())*g;s.translate(o+a),e.is(Ln)&&!y&&p()&&(g*=.6,dt(a)<10&&(i=p(!1),f(c(!i),600,null,!0)))}),1),u(Rt),r.start()}function d(){var t=l(),n=s.toIndex(t);ht(n,0,e.length-1)||s.translate(s.shift(t,n>0),!0),i&&i(),u(qt)}function h(){r&&r.cancel()}function y(){r&&!r.isPaused()&&(h(),d())}return{mount:function(){a(xt,h),a([Nt,Ot],y)},destroy:h,scroll:f,cancel:y}},Drag:function(e,t,n){var r,i,o,a,u,s,l,c,p,f=Yt(e),d=f.on,h=f.emit,y=f.bind,m=f.unbind,v=t.Move,g=t.Scroll,D=t.Controller,b=t.Elements.track,E=t.Direction,x=E.resolve,C=E.orient,A=v.getPosition,w=v.exceededLimit,S=!1;function F(){var e=n.drag;L(!e),u="free"===e}function k(e){if(!c){var t=n.noDrag,r=I(e),i=!t||!Me(e.target,t);l=!1,!i||!r&&e.button||(v.isBusy()?et(e,!0):(p=r?b:window,o=null,a=null,y(p,zn,_,Un),y(p,Hn,T,Un),v.cancel(),g.cancel(),O(e)))}}function _(t){if(a||h(It),a=t,t.cancelable){var o=P(t)-P(i);if(s){v.translate(r+function(t){return t/(S&&e.is(Ln)?5:1)}(o));var u=B(t)-B(i)>200,c=S!==(S=w());(u||c)&&O(t),h(Lt),l=!0,et(t)}else{var p=n.dragMinThreshold;p=xe(p)?p:{mouse:0,touch:+p||10},s=dt(o)>(I(t)?p.touch:p.mouse),j()&&et(t)}}}function T(r){m(p,zn,_),m(p,Hn,T);var l=e.index;if(a){if(s||r.cancelable&&j()){var c=function(t){if(e.is(Mn)||!S){var n=i===a&&o||i,r=P(a)-P(n),u=B(t)-B(n),s=B(t)-B(a)<200;if(u&&s)return r/u}return 0}(r),f=function(e){return A()+mt(e)*lt(dt(e)*(n.flickPower||600),u?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(c);u?D.scroll(f):e.is(Rn)?D.go(l+C(mt(c))):D.go(D.toDest(f),!0),et(r)}h(Mt)}else u||A()===v.toPosition(l)||D.go(l,!0);s=!1}function O(e){o=i,i=e,r=A()}function N(e){!c&&l&&et(e,!0)}function j(){return dt(P(a)-P(i))>dt(P(a,!0)-P(i,!0))}function P(e,t){return(I(e)?e.touches[0]:e)["page".concat(x(t?"Y":"X"))]}function B(e){return e.timeStamp}function I(e){return"undefined"!==typeof TouchEvent&&e instanceof TouchEvent}function L(e){c=e}return{mount:function(){y(b,zn,ut,Un),y(b,Hn,ut,Un),y(b,"touchstart mousedown",k,Un),y(b,"click",N,{capture:!0}),y(b,"dragstart",et),d([bt,Nt],F)},disable:L,isDragging:function(){return s}}},Keyboard:function(e,t,n){var r,i,o=Yt(e),a=o.on,u=o.bind,s=o.unbind,l=e.root,c=t.Direction.resolve;function p(){var e=n.keyboard;e&&("focused"===e?(r=l,We(l,Pn,0)):r=window,u(r,$n,y))}function f(){s(r,$n),Fe(r)&&He(r,Pn)}function d(){var e=i;i=!0,at((function(){i=e}))}function h(){f(),p()}function y(t){if(!i){var n=t.key,r=Te(Wn,n)?"Arrow".concat(n):n;r===c("ArrowLeft")?e.go("<"):r===c("ArrowRight")&&e.go(">")}}return{mount:function(){p(),a(Nt,h),a(xt,d)},destroy:f,disable:function(e){i=e}}},LazyLoad:function(e,t,n){var r=Yt(e),i=r.on,o=r.off,a=r.bind,u=r.emit,s="sequential"===n.lazyLoad,l=[],c=0;function p(){d(),f()}function f(){t.Slides.forEach((function(e){nt(e.slide,Jn).forEach((function(t){var r=Je(t,Gn),i=Je(t,Kn);if(r!==t.src||i!==t.srcset){var o=n.classes.spinner,a=t.parentElement,u=qe(a,".".concat(o))||$e("span",o,a);We(u,_n,"presentation"),l.push({_img:t,_Slide:e,src:r,srcset:i,_spinner:u}),!t.src&&Ke(t,"none")}}))})),s&&m()}function d(){c=0,l=[]}function h(){(l=l.filter((function(t){var r=n.perPage*((n.preloadPages||1)+1)-1;return!t._Slide.isWithin(e.index,r)||y(t)}))).length||o(Ct)}function y(e){var t=e._img;Be(e._Slide.slide,Sn),a(t,"load error",(function(t){!function(e,t){var n=e._Slide;rt(n.slide,Sn),t||(Qe(e._spinner),Ke(e._img,""),u(Xt,e._img,n),u(jt));s&&m()}(e,"error"===t.type)})),["srcset","src"].forEach((function(n){e[n]&&(We(t,n,e[n]),He(t,"src"===n?Gn:Kn))}))}function m(){c<l.length&&y(l[c++])}return{mount:function(){n.lazyLoad&&(f(),i(Ot,p),s||i([bt,Ot,Ct,qt],h))},destroy:d}},Pagination:function(e,t,n){var r,i=Yt(e),o=i.on,a=i.emit,u=i.bind,s=i.unbind,l=t.Slides,c=t.Elements,p=t.Controller,f=p.hasFocus,d=p.getIndex,h=[];function y(){m(),n.pagination&&l.isEnough()&&(!function(){var t=e.length,i=n.classes,o=n.i18n,a=n.perPage,s="slider"===n.pagination&&c.slider||c.root,p=f()?t:ft(t/a);r=$e("ul",i.pagination,s);for(var d=0;d<p;d++){var y=$e("li",null,r),m=$e("button",{class:i.page,type:"button"},y),g=l.getIn(d).map((function(e){return e.slide.id})),D=!f()&&a>1?o.pageX:o.slideX;u(m,"click",v.bind(null,d)),We(m,Tn,g.join(" ")),We(m,Nn,vt(D,d+1)),h.push({li:y,button:m,page:d})}}(),a(Ht,{list:r,items:h},g(e.index)),D())}function m(){r&&(Qe(r),h.forEach((function(e){s(e.button,"click")})),Ee(h),r=null)}function v(e){p.go(">".concat(e),!0,(function(){var t,n=l.getAt(p.toIndex(e));n&&((t=n.slide).setActive&&t.setActive()||t.focus({preventScroll:!0}))}))}function g(e){return h[p.toPage(e)]}function D(){var e=g(d(!0)),t=g(d());e&&(rt(e.button,xn),He(e.button,On)),t&&(Be(t.button,xn),We(t.button,On,!0)),a(Wt,{list:r,items:h},e,t)}return{items:h,mount:function(){y(),o([Nt,Ot],y),o([xt,qt],D)},destroy:m,getAt:g,update:D}},Sync:function(e,t,n){var r=t.Elements.list,i=[];function o(){e.splides.forEach((function(t){var n;!t.isParent&&(n=t.splide,[e,n].forEach((function(t){var r=Yt(t),o=t===e?n:e;r.on(xt,(function(e,t,n){o.go(o.is(Mn)?n:e)})),i.push(r)})))})),n.isNavigation&&function(){var t=Yt(e),n=t.on;n(wt,s),n(Tt,l),n([bt,Nt],u),We(r,_n,"menu"),i.push(t),t.emit($t,e.splides)}()}function a(){He(r,In),i.forEach((function(e){e.destroy()})),Ee(i)}function u(){We(r,Bn,n.direction!==en?"horizontal":null)}function s(t){e.go(t.index)}function l(e,t){Te(Xn,t.key)&&(s(e),et(t))}return{mount:o,destroy:a,remount:function(){a(),o()}}},Wheel:function(e,t,n){var r=Yt(e).bind;function i(r){if(r.cancelable){var i=r.deltaY;if(i){var o=i<0;e.go(o?"<":">"),function(r){return!n.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(r)}(o)&&et(r)}}}return{mount:function(){n.wheel&&r(t.Elements.track,"wheel",i,Un)}}}}),Qn={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:kn,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function Zn(e,t,n){var r=Yt(e).on;return{mount:function(){r([bt,Ot],(function(){at((function(){t.Slides.style("transition","opacity ".concat(n.speed,"ms ").concat(n.easing))}))}))},start:function(e,n){var r=t.Elements.track;Ge(r,"height",it(Ye(r).height)),at((function(){n(),Ge(r,"height","")}))},cancel:ut}}function er(e,t,n){var r,i=Yt(e).bind,o=t.Move,a=t.Controller,u=t.Elements.list;function s(){l("")}function l(e){Ge(u,"transition",e)}return{mount:function(){i(u,"transitionend",(function(e){e.target===u&&r&&(s(),r())}))},start:function(t,i){var u=o.toPosition(t,!0),s=o.getPosition(),c=function(t){var r=n.rewindSpeed;if(e.is(Ln)&&r){var i=a.getIndex(!0),o=a.getEnd();if(0===i&&t>=o||i>=o&&0===t)return r}return n.speed}(t);dt(u-s)>=1&&c>=1?(l("transform ".concat(c,"ms ").concat(n.easing)),o.translate(u,!0),r=i):(o.jump(t),i())},cancel:s}}var tr=function(){function e(t,n){o(this,e),this.event=function(){var e={};function t(t,r){n(t,(function(t,n){var i=e[t];e[t]=i&&i.filter((function(e){return e._key?e._key!==r:r||e._namespace!==n}))}))}function n(e,t){ke(e).join(" ").split(" ").forEach((function(e){var n=e.split(".");t(n[0],n[1])}))}return{on:function(t,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;n(t,(function(t,n){e[t]=e[t]||[],Oe(e[t],{_event:t,_callback:r,_namespace:n,_priority:o,_key:i}).sort((function(e,t){return e._priority-t._priority}))}))},off:t,offBy:function(n){Ve(e,(function(e,r){t(r,n)}))},emit:function(t){var n=arguments;(e[t]||[]).forEach((function(e){e._callback.apply(e,je(n,1))}))},destroy:function(){e={}}}}(),this.Components={},this.state=function(e){var t=e;return{set:function(e){t=e},is:function(e){return Te(ke(e),t)}}}(1),this.splides=[],this._options={},this._Extensions={};var r=Ae(t)?tt(document,t):t;ot(r,"".concat(r," is invalid.")),this.root=r,ze(Qn,e.defaults),ze(ze(this._options,Qn),n||{})}return u(e,[{key:"mount",value:function(e,t){var n=this,r=this.state,i=this.Components;return ot(r.is([1,5]),"Already mounted!"),r.set(1),this._Components=i,this._Transition=t||this._Transition||(this.is(Rn)?Zn:er),this._Extensions=e||this._Extensions,Ve(Ue({},Yn,this._Extensions,{Transition:this._Transition}),(function(e,t){var r=e(n,i,n._options);i[t]=r,r.setup&&r.setup()})),Ve(i,(function(e){e.mount&&e.mount()})),this.emit(bt),Be(this.root,"is-initialized"),r.set(3),this.emit(Et),this}},{key:"sync",value:function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._Components.Sync.remount(),e.Components.Sync.remount()),this}},{key:"go",value:function(e){return this._Components.Controller.go(e),this}},{key:"on",value:function(e,t){return this.event.on(e,t,null,20),this}},{key:"off",value:function(e){return this.event.off(e),this}},{key:"emit",value:function(e){var t;return(t=this.event).emit.apply(t,[e].concat(A(je(arguments,1)))),this}},{key:"add",value:function(e,t){return this._Components.Slides.add(e,t),this}},{key:"remove",value:function(e){return this._Components.Slides.remove(e),this}},{key:"is",value:function(e){return this._options.type===e}},{key:"refresh",value:function(){return this.emit(Ot),this}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.event,n=this.state;return n.is(1)?t.on(Et,this.destroy.bind(this,e),this):(Ve(this._Components,(function(t){t.destroy&&t.destroy(e)}),!0),t.emit(Vt),t.destroy(),e&&Ee(this.splides),n.set(5)),this}},{key:"options",get:function(){return this._options},set:function(e){var t=this._options;ze(t,e),this.state.is(1)||this.emit(Nt,t)}},{key:"length",get:function(){return this._Components.Slides.getLength(!0)}},{key:"index",get:function(){return this._Components.Controller.getIndex()}}]),e}(),nr=tr;nr.defaults={},nr.STATES=be;var rr=[[bt,"onMounted"],[Et,"onReady"],[xt,"onMove"],[Ct,"onMoved"],[wt,"onClick"],[St,"onActive"],[Ft,"onInactive"],[kt,"onVisible"],[_t,"onHidden"],[Ot,"onRefresh"],[Nt,"onUpdated"],[jt,"onResize"],[Pt,"onResized"],[It,"onDrag"],[Lt,"onDragging"],[Mt,"onDragged"],[Rt,"onScroll"],[qt,"onScrolled"],[Vt,"onDestroy"],[Ut,"onArrowsMounted"],[zt,"onArrowsUpdated"],[Ht,"onPaginationMounted"],[Wt,"onPaginationUpdated"],[$t,"onNavigationMounted"],[Gt,"onAutoplayPlay"],[Kt,"onAutoplayPlaying"],[Jt,"onAutoplayPause"],[Xt,"onLazyLoadLoaded"]];function ir(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function or(e){return null!==e&&"object"===typeof e}function ar(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some((function(e,n){return!ar(e,t[n])}));if(or(e)&&or(t)){var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&!n.some((function(n){return!Object.prototype.hasOwnProperty.call(t,n)||!ar(e[n],t[n])}))}return e===t}function ur(e,t){var n=e;return function(e,t){if(e)for(var n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];if("__proto__"!==i&&!1===t(e[i],i))break}}(t,(function(e,t){Array.isArray(e)?n[t]=e.slice():or(e)?n[t]=ur(or(n[t])?n[t]:{},e):n[t]=e})),n}var sr=function(e){c(n,e);var t=h(n);function n(){var e;return o(this,n),(e=t.apply(this,arguments)).splideRef=b.createRef(),e.slides=[],e}return u(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.options,n=e.Extensions,r=e.Transition,i=this.splideRef.current;i&&(this.splide=new nr(i,t),this.bind(this.splide),this.splide.mount(n,r),this.options=ur({},t||{}),this.slides=this.getSlides())}},{key:"componentWillUnmount",value:function(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}},{key:"componentDidUpdate",value:function(){if(this.splide){var e=this.props.options;e&&!ar(this.options,e)&&(this.splide.options=e,this.options=ur({},e));var t,n,r=this.getSlides();t=this.slides,n=r,(t.length!==n.length||t.some((function(e,t){return e!==n[t]})))&&(this.splide.refresh(),this.slides=r)}}},{key:"sync",value:function(e){var t;null==(t=this.splide)||t.sync(e)}},{key:"go",value:function(e){var t;null==(t=this.splide)||t.go(e)}},{key:"getSlides",value:function(){var e;if(this.splide){var t=null==(e=this.splide.Components.Elements)?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}},{key:"bind",value:function(e){var t=this;rr.forEach((function(n){var r=k(n,2),i=r[0],o=r[1],a=t.props[o];"function"===typeof a&&e.on(i,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];a.apply(void 0,[e].concat(n))}))}))}},{key:"renderTrack",value:function(){return b.createElement("div",{className:"splide__track"},b.createElement("ul",{className:"splide__list"},this.props.children))}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.hasSliderWrapper,i=e.hasAutoplayProgress,o=e.hasAutoplayControls,a=e.playButtonLabel,u=void 0===a?"Play":a,s=e.pauseButtonLabel,l=void 0===s?"Pause":s,c=e.renderControls;return b.createElement("div",{id:t,className:ir("splide",n),ref:this.splideRef},r?b.createElement("div",{className:"splide__slider"},this.renderTrack()):this.renderTrack(),i&&b.createElement("div",{className:"splide__progress"},b.createElement("div",{className:"splide__progress__bar"})),o&&b.createElement("div",{className:"splide__autoplay"},b.createElement("button",{className:"splide__play"},u),b.createElement("button",{className:"splide__pause"},l)),c&&c())}}]),n}(b.Component),lr=function(e){var t=e.children,n=e.className,r=me(e,ve);return b.createElement("li",F({className:ir("splide__slide",n)},r),t)},cr=n(6770),pr=n.n(cr),fr=function(e){var t=e.open,n=e.dataObject,r=e.dismissDrawer,i=N((function(e){return e.CORE_API})),o=k((0,b.useState)(t),2),a=o[0],u=o[1],s=(0,b.useRef)(null);return(0,b.useEffect)((function(){return u(t),function(){}}),[t]),(0,b.useEffect)((function(){s.current.addEventListener("drawerClosed",(function(){r(),G.log("Hotspot Drawer Dismissed!!")}))}),[s]),(0,he.jsx)(he.Fragment,{children:(0,he.jsx)("bottom-drawer",{id:"hotspotDrawer",ref:s,open:"".concat(a),children:(0,he.jsx)("div",{className:"epigraphDrawer hotspotDrawer",slot:"bottom-drawer-content",children:(0,he.jsxs)("div",{className:"drawerContent",children:[(0,he.jsx)("h2",{children:n.title}),(0,he.jsx)(pr(),{className:"ignore",modules:{toolbar:!1},theme:"bubble",readOnly:!0,value:n.description}),(0,he.jsx)("div",{className:"carousel",children:n.carousel&&(0,he.jsx)(sr,{children:n.carousel.map((function(e,t){return(0,he.jsx)(he.Fragment,{children:""!==e.type&&""!=e.link&&(0,he.jsx)(lr,{children:(0,he.jsxs)("div",{className:"carouselTabParent",children:["img"===e.type&&(0,he.jsx)("img",{src:i.getResolvedAssetUrl(e.link),alt:"".concat(e.title," image")}),"video"===e.type&&(0,he.jsx)("video",{src:i.getResolvedAssetUrl(e.link),muted:e.muted,loop:e.loop,controls:e.controls})]})},"SplideSlide-".concat(t))})}))})})]})})})})},dr=O((function(e,t){return{infoObject:{},populateInfoObject:function(t){e((function(e){return{infoObject:t}}))},infoModalOpen:!1,updateInfoModalOpen:function(t){e((function(e){return{infoModalOpen:t}}))}}}));function hr(e){return yr.apply(this,arguments)}function yr(){return(yr=i(t().mark((function e(n){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G.log("Waiting for ".concat(n,"ms")),e.abrupt("return",new Promise((function(e,t){setTimeout((function(){e(!0)}),n)})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var mr=function(e){return e&&e[0].toUpperCase()+e.slice(1)||""},vr=function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")};var gr=function(e){var t,n,r=e.open,i=e.dismissDrawer,o=N((function(e){return e.CORE_API})),a=(0,b.useRef)(null),u=k((0,b.useState)(!1),2),s=u[0],l=u[1],c=dr((function(e){return e.infoObject}));return(0,b.useEffect)((function(){return l(r),function(){}}),[r]),(0,b.useEffect)((function(){a.current.addEventListener("drawerClosed",(function(){i()}))}),[a]),(0,he.jsx)("bottom-drawer",{ref:a,id:"bottomDrawer",open:"".concat(s),children:(0,he.jsx)("div",{className:"infoDrawer epigraphDrawer",slot:"bottom-drawer-content",children:(0,he.jsxs)("div",{className:"drawerContent",children:[(0,he.jsxs)("a",{href:null===c||void 0===c?void 0:c.productPageUrl,className:"categoryLink",target:"_blank",style:null!==c&&void 0!==c&&c.productPageUrl?{pointerEvents:"all"}:{pointerEvents:"none"},children:[(0,he.jsx)("h2",{className:"categoryTitle",children:null===c||void 0===c||null===(t=c.productCategory)||void 0===t?void 0:t.label}),c.productPageUrl&&(0,he.jsx)("img",{src:X+"/Icon/OpenTab.svg"})]}),(0,he.jsx)("div",{className:"infoDrawerImageContainer",children:(0,he.jsx)("img",{className:"itemImage",src:null!==c&&void 0!==c&&null!==(n=c.thumbnails)&&void 0!==n&&n.high?o.getResolvedAssetUrl(c.thumbnails.high):""})}),(0,he.jsx)("h2",{className:"itemTitle",children:c.title}),(0,he.jsx)("p",{className:"itemDescription",children:c.description}),c.boundingBoxSize?(0,he.jsxs)("p",{className:"infoModalDimensions",children:[c.boundingBoxSize.x.toFixed(1),"\u201d W x"," ",c.boundingBoxSize.y.toFixed(1),"\u201d D x"," ",c.boundingBoxSize.z.toFixed(1),"\u201d H"]}):"",(0,he.jsx)("div",{className:"infoModalActions",style:{width:"100%"},children:(0,he.jsx)("button",{className:"addToCart",disabled:!0,children:c.price&&"$".concat(vr(parseFloat(c.price).toFixed(2)))})})]})})})},Dr=O((function(e){return{productData:{},setProductData:function(t){return e((function(){return{productData:t}}))},categoryData:{},setCategoryData:function(t){return e((function(){return{categoryData:t}}))},lookData:{},setLookData:function(t){return e((function(){return{lookData:t}}))},hotspotsData:{},setHotspotsData:function(t){return e((function(){return{hotspotsData:t}}))},assetsData:{},setAssetsData:function(t){return e((function(){return{assetsData:t}}))}}})),br=function(e){var t=e.buttonAction,n=e.buttonLabel,r=e.hoverLabel,i=e.icon,o=e.activeCondition,a=k((0,b.useState)(o),2),u=a[0],s=a[1];return(0,b.useEffect)((function(){return s(o),function(){}}),[o]),(0,he.jsxs)("div",{className:void 0!==u&&u?"shellButtonContainer active":"shellButtonContainer",onClick:function(){t()},children:[(0,he.jsxs)("div",{className:"buttonContent",children:[(0,he.jsx)("img",{className:"button",src:i,alt:r}),(0,he.jsx)("span",{children:n})]}),(0,he.jsx)("div",{className:"hoverDescriptor",children:(0,he.jsx)("span",{children:r})})]})},Er=function(e){var t,n,r,i,o,a,u,s,l,c,p,f,d,h,y,m,v,g,D,E,x,C,A,w,S=e.handleShareButtonTrigger,F=e.handleSaveButtonTrigger,_=e.handleRestartButtonClick,T=e.handleShowHotspots,O=e.handleDimensionClick,N=e.utilityMenuVisible,j=e.hotspotsVisibility,P=e.viewInYourSpaceMenuBtnVisible,B=e.restartMenuBtnVisible,I=e.saveMenuBtnVisible,L=e.hotspotsMenuBtnVisible,M=e.dimensionsMenuBtnVisible,R=e.shareMenuBtnVisible,q=e.dimensionsVisible,V=e.position,U=e.CORE_API,z=k((0,b.useState)("bottom"),2),H=z[0],W=z[1],$=Dr((function(e){return e.assetsData})),G="https://storage.googleapis.com/gsc-epigraph-design/product-assets/Icon/AR.svg",K="https://storage.googleapis.com/gsc-epigraph-design/product-assets/Icon/Restart.svg",J="https://storage.googleapis.com/gsc-epigraph-design/product-assets/Icon/save.svg",X="https://storage.googleapis.com/gsc-epigraph-design/product-assets/Icon/Share.svg",Y="https://storage.googleapis.com/gsc-epigraph-design/product-assets/Icon/Ruler.svg",Q="https://storage.googleapis.com/gsc-epigraph-design/product-assets/Icon/Eye.svg";return(0,b.useEffect)((function(){switch(V){case"top":W("top");break;case"bottom":W("bottom");break;case"left":W("left");break;case"right":W("right")}return function(){}}),[V]),(0,he.jsx)("div",{className:"shellCanvasContainerParent",id:H,children:(0,he.jsxs)("div",{className:1==(N&&(R||P||B||M||L))?"shellCanvasContainer":"shellCanvasContainer shellCanvasContainerInactive",children:[P&&(0,he.jsx)(br,{buttonAction:function(){U.viewInYourSpace()},buttonLabel:"AR",hoverLabel:"View in Your Space",icon:null!==$&&void 0!==$&&null!==(t=$.icons)&&void 0!==t&&null!==(n=t.utilityMenu)&&void 0!==n&&n.viewInYourSpace?U.getResolvedAssetUrl(null===$||void 0===$||null===(r=$.icons)||void 0===r||null===(i=r.utilityMenu)||void 0===i?void 0:i.viewInYourSpace):G}),B&&(0,he.jsx)(br,{buttonAction:function(){_()},buttonLabel:"Restart",hoverLabel:"Restart",icon:null!==$&&void 0!==$&&null!==(o=$.icons)&&void 0!==o&&null!==(a=o.utilityMenu)&&void 0!==a&&a.restart?U.getResolvedAssetUrl(null===$||void 0===$||null===(u=$.icons)||void 0===u||null===(s=u.utilityMenu)||void 0===s?void 0:s.restart):K}),I&&(0,he.jsx)(br,{buttonAction:function(){F()},buttonLabel:"Save",hoverLabel:"Save",icon:null!==$&&void 0!==$&&null!==(l=$.icons)&&void 0!==l&&null!==(c=l.utilityMenu)&&void 0!==c&&c.save?U.getResolvedAssetUrl(null===$||void 0===$||null===(p=$.icons)||void 0===p||null===(f=p.utilityMenu)||void 0===f?void 0:f.save):J}),R&&(0,he.jsx)(br,{buttonAction:function(){S()},buttonLabel:"Share",hoverLabel:"Share",icon:null!==$&&void 0!==$&&null!==(d=$.icons)&&void 0!==d&&null!==(h=d.utilityMenu)&&void 0!==h&&h.share?U.getResolvedAssetUrl(null===$||void 0===$||null===(y=$.icons)||void 0===y||null===(m=y.utilityMenu)||void 0===m?void 0:m.share):X}),M&&(0,he.jsx)(br,{buttonAction:function(){O()},buttonLabel:"Size",hoverLabel:"Size",icon:null!==$&&void 0!==$&&null!==(v=$.icons)&&void 0!==v&&null!==(g=v.utilityMenu)&&void 0!==g&&g.dimensions?U.getResolvedAssetUrl(null===$||void 0===$||null===(D=$.icons)||void 0===D||null===(E=D.utilityMenu)||void 0===E?void 0:E.dimensions):Y,activeCondition:q}),L&&(0,he.jsx)(br,{buttonAction:function(){T()},buttonLabel:"Hotspots",hoverLabel:"Hotspots",icon:null!==$&&void 0!==$&&null!==(x=$.icons)&&void 0!==x&&null!==(C=x.utilityMenu)&&void 0!==C&&C.hotspots?U.getResolvedAssetUrl(null===$||void 0===$||null===(A=$.icons)||void 0===A||null===(w=A.utilityMenu)||void 0===w?void 0:w.hotspots):Q,activeCondition:j})]})})};function xr(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var Cr=xr("Tab"),Ar=xr("TabList"),wr=xr("TabPanel");function Sr(){return Sr=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},Sr.apply(this,arguments)}function Fr(e,t){return b.Children.map(e,(function(e){return null===e?null:function(e){return Cr(e)||Ar(e)||wr(e)}(e)?t(e):e.props&&e.props.children&&"object"===typeof e.props.children?(0,b.cloneElement)(e,Sr({},e.props,{children:Fr(e.props.children,t)})):e}))}function kr(e,t){return b.Children.forEach(e,(function(e){null!==e&&(Cr(e)||wr(e)?t(e):e.props&&e.props.children&&"object"===typeof e.props.children&&(Ar(e)&&t(e),kr(e.props.children,t)))}))}function _r(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=_r(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}var Tr=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=_r(e))&&(r&&(r+=" "),r+=t);return r},Or=0;function Nr(){return"react-tabs-"+Or++}function jr(e){var t=0;return kr(e,(function(e){Cr(e)&&t++})),t}var Pr,Br=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys"];function Ir(){return Ir=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},Ir.apply(this,arguments)}function Lr(e){return e&&"getAttribute"in e}function Mr(e){return Lr(e)&&e.getAttribute("data-rttab")}function Rr(e){return Lr(e)&&"true"===e.getAttribute("aria-disabled")}var qr=function(e){var t=(0,b.useRef)([]),n=(0,b.useRef)([]),r=(0,b.useRef)([]),i=(0,b.useRef)();function o(t,n){t<0||t>=s()||(0,e.onSelect)(t,e.selectedIndex,n)}function a(e){for(var t=s(),n=e+1;n<t;n++)if(!Rr(l(n)))return n;for(var r=0;r<e;r++)if(!Rr(l(r)))return r;return e}function u(e){for(var t=e;t--;)if(!Rr(l(t)))return t;for(t=s();t-- >e;)if(!Rr(l(t)))return t;return e}function s(){return jr(e.children)}function l(e){return t.current["tabs-"+e]}function c(e){var t=e.target;do{if(p(t)){if(Rr(t))return;return void o([].slice.call(t.parentNode.children).filter(Mr).indexOf(t),e)}}while(null!=(t=t.parentNode))}function p(e){if(!Mr(e))return!1;var t=e.parentElement;do{if(t===i.current)return!0;if(t.getAttribute("data-rttabs"))break;t=t.parentElement}while(t);return!1}e.children;var f=e.className,d=(e.disabledTabClassName,e.domRef),h=(e.focus,e.forceRenderTabPanel,e.onSelect,e.selectedIndex,e.selectedTabClassName,e.selectedTabPanelClassName,e.environment,e.disableUpDownKeys,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,Br));return b.createElement("div",Ir({},h,{className:Tr(f),onClick:c,onKeyDown:function(t){var n=e.direction,r=e.disableUpDownKeys;if(p(t.target)){var i=e.selectedIndex,f=!1,d=!1;"Space"!==t.code&&32!==t.keyCode&&"Enter"!==t.code&&13!==t.keyCode||(f=!0,d=!1,c(t)),"ArrowLeft"!==t.code&&37!==t.keyCode&&(r||38!==t.keyCode&&"ArrowUp"!==t.code)?"ArrowRight"!==t.code&&39!==t.keyCode&&(r||40!==t.keyCode&&"ArrowDown"!==t.code)?35===t.keyCode||"End"===t.code?(i=function(){for(var e=s();e--;)if(!Rr(l(e)))return e;return null}(),f=!0,d=!0):36!==t.keyCode&&"Home"!==t.code||(i=function(){for(var e=s(),t=0;t<e;t++)if(!Rr(l(t)))return t;return null}(),f=!0,d=!0):(i="rtl"===n?u(i):a(i),f=!0,d=!0):(i="rtl"===n?a(i):u(i),f=!0,d=!0),f&&t.preventDefault(),d&&o(i,t)}},ref:function(e){i.current=e,d&&d(e)},"data-rttabs":!0}),function(){var i=0,o=e.children,a=e.disabledTabClassName,u=e.focus,c=e.forceRenderTabPanel,p=e.selectedIndex,f=e.selectedTabClassName,d=e.selectedTabPanelClassName,h=e.environment;n.current=n.current||[],r.current=r.current||[];for(var y=n.current.length-s();y++<0;)n.current.push(Nr()),r.current.push(Nr());return Fr(o,(function(e){var o=e;if(Ar(e)){var s=0,y=!1;null==Pr&&function(e){var t=e||("undefined"!==typeof window?window:void 0);try{Pr=!("undefined"===typeof t||!t.document||!t.document.activeElement)}catch(n){Pr=!1}}(h);var m=h||("undefined"!==typeof window?window:void 0);Pr&&m&&(y=b.Children.toArray(e.props.children).filter(Cr).some((function(e,t){return m.document.activeElement===l(t)}))),o=(0,b.cloneElement)(e,{children:Fr(e.props.children,(function(e){var i="tabs-"+s,o=p===s,l={tabRef:function(e){t.current[i]=e},id:n.current[s],panelId:r.current[s],selected:o,focus:o&&(u||y)};return f&&(l.selectedClassName=f),a&&(l.disabledClassName=a),s++,(0,b.cloneElement)(e,l)}))})}else if(wr(e)){var v={id:r.current[i],tabId:n.current[i],selected:p===i};c&&(v.forceRender=c),d&&(v.selectedClassName=d),i++,o=(0,b.cloneElement)(e,v)}return o}))}())};qr.defaultProps={className:"react-tabs",focus:!1},qr.propTypes={};var Vr=qr;function Ur(){return Ur=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},Ur.apply(this,arguments)}var zr=function(e){var t=e.children,n=e.defaultFocus,r=e.defaultIndex,i=e.focusTabOnClick,o=e.onSelect,a=(0,b.useState)(n),u=a[0],s=a[1],l=(0,b.useState)(function(e){return null===e.selectedIndex?1:0}(e)),c=l[0],p=(0,b.useState)(1===c?r||0:null),f=p[0],d=p[1];if((0,b.useEffect)((function(){s(!1)}),[]),1===c){var h=jr(t);(0,b.useEffect)((function(){if(null!=f){var e=Math.max(0,h-1);d(Math.min(f,e))}}),[h])}var y=Ur({},e);return y.focus=u,y.onSelect=function(e,t,n){"function"===typeof o&&!1===o(e,t,n)||(i&&s(!0),1===c&&d(e))},null!=f&&(y.selectedIndex=f),delete y.defaultFocus,delete y.defaultIndex,delete y.focusTabOnClick,b.createElement(Vr,y,t)};zr.propTypes={},zr.defaultProps={defaultFocus:!1,focusTabOnClick:!0,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:!1},zr.tabsRole="Tabs";var Hr=zr,Wr=["children","className"];function $r(){return $r=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},$r.apply(this,arguments)}var Gr=function(e){var t=e.children,n=e.className,r=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,Wr);return b.createElement("ul",$r({},r,{className:Tr(n),role:"tablist"}),t)};Gr.tabsRole="TabList",Gr.propTypes={},Gr.defaultProps={className:"react-tabs__tab-list"};var Kr=Gr,Jr=["children","className","disabled","disabledClassName","focus","id","panelId","selected","selectedClassName","tabIndex","tabRef"];function Xr(){return Xr=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},Xr.apply(this,arguments)}var Yr="react-tabs__tab",Qr={className:Yr,disabledClassName:Yr+"--disabled",focus:!1,id:null,panelId:null,selected:!1,selectedClassName:Yr+"--selected"},Zr=function(e){var t,n=(0,b.useRef)(),r=e.children,i=e.className,o=e.disabled,a=e.disabledClassName,u=e.focus,s=e.id,l=e.panelId,c=e.selected,p=e.selectedClassName,f=e.tabIndex,d=e.tabRef,h=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,Jr);return(0,b.useEffect)((function(){c&&u&&n.current.focus()}),[c,u]),b.createElement("li",Xr({},h,{className:Tr(i,(t={},t[p]=c,t[a]=o,t)),ref:function(e){n.current=e,d&&d(e)},role:"tab",id:s,"aria-selected":c?"true":"false","aria-disabled":o?"true":"false","aria-controls":l,tabIndex:f||(c?"0":null),"data-rttab":!0}),r)};Zr.propTypes={},Zr.tabsRole="Tab",Zr.defaultProps=Qr;var ei=Zr,ti=["children","className","forceRender","id","selected","selectedClassName","tabId"];function ni(){return ni=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},ni.apply(this,arguments)}var ri="react-tabs__tab-panel",ii={className:ri,forceRender:!1,selectedClassName:"react-tabs__tab-panel--selected"},oi=function(e){var t,n=e.children,r=e.className,i=e.forceRender,o=e.id,a=e.selected,u=e.selectedClassName,s=e.tabId,l=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,ti);return b.createElement("div",ni({},l,{className:Tr(r,(t={},t[u]=a,t)),role:"tabpanel",id:o,"aria-labelledby":s}),i||a?n:null)};oi.tabsRole="TabPanel",oi.propTypes={},oi.defaultProps=ii;var ai=oi,ui=O((function(e){return{allActiveVariants:{}}})),si=O((function(e,t){return{itemsSpawned:{},fittingSKUIDS:[],setItemsSpawned:function(t){return e((function(){return{itemsSpawned:t,itemsCount:Object.keys(t).length}}))}}})),li=function(e){var t=e.spawnGhosts,n=e.spawnItem,r=e.removeAllGhosts,i=e.skuID,o=(e.categoryID,e.active),a=N((function(e){return e.CORE_API})),u=(0,b.useRef)(null),s=dr((function(e){return e.populateInfoObject})),l=dr((function(e){return e.updateInfoModalOpen})),c=k((0,b.useState)(""),2),p=c[0],f=c[1],d=ui((function(e){return e.allActiveVariants})),h=Dr((function(e){return e})),y=si((function(e){return e.fittingSKUIDS})),m=k((0,b.useState)(h.productData[i]?h.productData[i]:{}),2),v=m[0],g=(m[1],k((0,b.useState)(h.productData[i].name?h.productData[i].name:"Not Set"),2)),D=g[0],E=(g[1],k((0,b.useState)(h.productData[i].lookDetails.default.thumbnails.low?h.productData[i].lookDetails.default.thumbnails.low:""),2)),x=E[0],C=E[1],A=k((0,b.useState)(h.productData[i].price?h.productData[i].price:""),2),w=(A[0],A[1],k((0,b.useState)(h.productData[i].thumbnail?h.productData[i].thumbnail:""),2)),S=(w[0],w[1],k((0,b.useState)(!1),2)),F=(S[0],S[1],k((0,b.useState)(null),2)),_=F[0],T=F[1],O=k((0,b.useState)([]),2),j=O[0],P=O[1],B=k((0,b.useState)(!1),2),I=B[0],L=B[1],M=k((0,b.useState)(!1),2),R=M[0],q=M[1];(0,b.useEffect)((function(){if(y.includes(i))L(!0);else{if(L(!1),!a.sceneSettings.showDependencyOnHover)return;var e=a.getSpawningRequirementForSkuID(i);if(e.length<=0)return;var t=a.getCartItems(),n=!1;t.cartItems.map((function(t){e.includes(t.skuID)&&(n=!0)})),e.includes("Root")&&1==e.length&&(n=!0,e=[]),T(n?"No space available to spawn the item.":"This item requires a dependency to be added to the scene first."),P(e)}}),[y]),(0,b.useEffect)((function(){Object.keys(h.productData).length}),[h.productData]);var V=(0,b.useCallback)((function(){for(var e=v.looks,t="default",n=0,r=Object.entries(d);n<r.length;n++){var i=k(r[n],2),o=(i[0],i[1]);if(e.includes(o)){t=o;break}}return f(t),t}),[v,d]);var U=(0,b.useCallback)((function(e){var t=V();C(v.lookDetails[t].thumbnails.low)}),[v]);(0,b.useEffect)((function(){return U(d),function(){}}),[d]);var z=function(e){e.stopPropagation(),N.getState().CORE_API.sceneSettings.draggableUI||(I||!_?n(i,!0):a.alert({alertMsg:""+_,alertTime:4e3,alertType:"warn",alertLabel:"Action Unavailable:"}))};return(0,he.jsx)(he.Fragment,{children:(0,he.jsx)("div",{onMouseEnter:function(){a.isMobile||(q(!0),N.getState().CORE_API.sceneSettings.draggableUI||I&&t&&t(i))},onMouseLeave:function(){a.isMobile||(q(!1),N.getState().CORE_API.sceneSettings.draggableUI||window.mouseDragging||I&&r&&r())},onMouseDown:function(e){a.isMobile||N.getState().CORE_API.sceneSettings.draggableUI&&I&&(window.pointerDownPos=e.offsetX,window.mouseDragging=!1,window.mouseDownImgSrc=a.getResolvedAssetUrl(x),window.mouseDownSkuID=i)},onClick:function(e){return z(e)},onTouchStart:function(e){return z(e)},className:o?"imageContainer active":"imageContainer",draggable:!1,children:(0,he.jsxs)("div",{className:"contentContainer",children:[(0,he.jsx)("div",{id:"itemCard"+i,className:"contentOverlay",ref:u,onTouchStart:function(e){!1!==N.getState().CORE_API.sceneSettings.draggableUI&&!1!==I&&(window.pointerDownPos=e.touches[0].screenX,window.mouseDragging=!1,window.mouseDownImgSrc=a.getResolvedAssetUrl(x),window.mouseDownSkuID=i)},style:!1===I?{pointerEvents:"none"}:{pointerEvents:"all"},children:(0,he.jsx)("img",{draggable:!1,className:"addIcon",src:X+"/Icon/Plus.svg"})}),(0,he.jsx)("img",{style:I?{opacity:"1"}:{opacity:"0.5",cursor:"not-allowed"},draggable:!1,alt:D,src:a.getResolvedAssetUrl(x)}),(0,he.jsx)("div",{className:"itemDetails",onClick:function(e){var t=v.lookDetails[p];t.productCategory={id:v.categoryID,label:v.categoryLabel},a.isMobile?(s(t),l(!0)):(e.stopPropagation(),I&&r&&r(),s(t),l(!0))},children:(0,he.jsx)("p",{className:"truncate",style:{width:a.isMobile?"70px":"100px"},children:a.isMobile?function(e){var t=e;return t.includes("-")?t=t.replace(/-/g," "):t}(D):D})}),!I&&R&&_&&(0,he.jsx)(he.Fragment,{children:(0,he.jsx)("div",{className:"spawningRequirementDiv",children:(0,he.jsxs)("p",{className:"truncate",style:{width:"100%",padding:"0.2rem",whiteSpace:"pre-line"},children:[_,j.length>0&&(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("br",{}),(0,he.jsx)("br",{}),(0,he.jsx)("b",{children:"Dependency:"}),j.map((function(e){return"\n"+h.productData[e].name})),(0,he.jsx)("br",{})]})]})})})]})})})};function ci(e){if(null==e)throw new TypeError("Cannot destructure undefined")}var pi=function(e){var t,n;ci(e);var r=Dr((function(e){return e})),i=ui((function(e){return e.allActiveVariants})),o=dr((function(e){return e.infoObject})),a=dr((function(e){return e.infoModalOpen})),u=dr((function(e){return e.updateInfoModalOpen})),s=k((0,b.useState)(""),2),l=(s[0],s[1]),c=k((0,b.useState)([]),2),p=(c[0],c[1]),f=N((function(e){return e.CORE_API}));return(0,b.useEffect)((function(){0!=Object.keys(r.categoryData).length&&p(r.categoryData.build)}),[r.categoryData]),(0,b.useEffect)((function(){return l(i[Object.keys(i)[0]]),function(){}}),[i]),(0,he.jsx)(he.Fragment,{children:(0,he.jsxs)("div",{className:a?"infoModal open":"infoModal",children:[(0,he.jsx)("button",{className:"closeButton",onClick:function(){u(!1)},children:(0,he.jsx)("img",{src:X+"/Icon/X.svg"})}),(0,he.jsxs)("a",{href:o.productPageUrl,className:"categoryLink",target:"_blank",style:null!==o&&void 0!==o&&o.productPageUrl?{pointerEvents:"all"}:{pointerEvents:"none"},children:[(0,he.jsx)("h2",{className:"categoryTitle",children:null===o||void 0===o||null===(t=o.productCategory)||void 0===t?void 0:t.label}),o.productPageUrl&&(0,he.jsx)("img",{src:X+"/Icon/OpenTab.svg"})]}),(0,he.jsx)("div",{className:"infoModalImageContainer",children:null!==o&&void 0!==o&&null!==(n=o.thumbnails)&&void 0!==n&&n.high?(0,he.jsx)("img",{className:"itemImage",src:f.getResolvedAssetUrl(o.thumbnails.high)}):""}),(0,he.jsxs)("div",{style:{textAlign:"center",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",marginTop:"1rem"},children:[(0,he.jsx)("h2",{className:"itemTitle",children:o.title}),(0,he.jsx)("p",{className:"itemDescription",children:o.description}),o.boundingBoxSize?(0,he.jsxs)("p",{className:"infoModalDimensions",children:[o.boundingBoxSize.x.toFixed(1),"\u201d W x"," ",o.boundingBoxSize.y.toFixed(1),"\u201d D x"," ",o.boundingBoxSize.z.toFixed(1),"\u201d H"]}):""]}),(0,he.jsx)("div",{className:"infoModalActions",style:{width:"100%"},children:(0,he.jsx)("button",{className:"addToCart",disabled:!0,children:o.price&&"$".concat(vr(parseFloat(o.price).toFixed(2)))})})]})})},fi=(n(3507),function(){var e=Dr((function(e){return e})),t=k((0,b.useState)([]),2),n=t[0],r=t[1],i=dr((function(e){return e.infoModalOpen})),o=k((0,b.useState)(0),2),a=o[0],u=o[1],s=k((0,b.useState)(!1),2),l=(s[0],s[1]),c=k((0,b.useState)([]),2),p=c[0],f=c[1],d=dr((function(e){return e.populateInfoObject})),h=dr((function(e){return e.updateInfoModalOpen})),y=N((function(e){return e.CORE_API})),m=(0,b.useRef)(null),v=(0,b.useCallback)((function(e){for(var t=[],n=0,r=Object.entries(e);n<r.length;n++){var i=k(r[n],2),o=(i[0],i[1]);t.push(o)}f(t)}),[]);function g(e){if(m.current.scrollLeft!==e){var t,n,r,i=!1;window.requestAnimationFrame((function o(a){void 0===t&&(t=a);var u=a-t;if(n!==a){var s=u/200;m.current.scrollLeft>e?(r=(m.current.scrollLeft-e)*Math.min(s,1),m.current.scrollLeft-=r,m.current.scrollLeft===e&&(i=!0)):m.current.scrollLeft<e&&(r=(e-m.current.scrollLeft)*Math.min(s,1),m.current.scrollLeft+=r,m.current.scrollLeft===e&&(i=!0))}u<200&&(n=a,!i&&window.requestAnimationFrame(o))}))}}j(y.EVENTS.UI.ContextMenu_InfoBtnClicked,(function(e){var t=e.itemData.lookDetails[e.currentVariant],n=t;n.price=t.price,n.id=e.currentVariant,n.productCategory={id:e.itemData.categoryID,label:e.itemData.categoryLabel},d(n),h(!0)})),j(y.EVENTS.UI.ContextMenu_Hide,(function(e){G.log("Context Menu Closed")})),j(y.EVENTS.SCENE.ReplaceableCategory_Updated,v),(0,b.useEffect)((function(){var e=y.getCurrentItemsInReplaceableCategory();return v(e),function(){}}),[y]),(0,b.useEffect)((function(){0!=Object.keys(e.categoryData).length&&r(e.categoryData.build)}),[e.categoryData]);var D=(0,b.useCallback)((function(e,t){N.getState().CORE_API.spawnItemBySkuID(e,t)}),[]),E=(0,b.useCallback)((function(e){N.getState().CORE_API.spawnGhostsForSkuID(e,!1,1)}),[]),x=(0,b.useCallback)((function(e){i||N.getState().CORE_API.removeAllGhosts(e)}),[i]),C=(0,b.useRef)([]);function A(e,t){if(e.getBoundingClientRect().left<=28)for(var r=0;r<n.length;r++)t===r&&u(r)}function w(e,t){switch(n[n.length-1].skus.length){case 1:e.getBoundingClientRect().left<=304&&e===C.current[n.length-1]&&u(n.length-1);break;case 2:e.getBoundingClientRect().left<=208&&e===C.current[n.length-1]&&u(n.length-1);case 3:e.getBoundingClientRect().left<=108&&e===C.current[n.length-1]&&u(n.length-1);default:(null===e||void 0===e?void 0:e.getBoundingClientRect().left)<=108&&e===C.current[n.length-1]&&u(n.length-1)}}function S(e){var t=e.categoryID,r=e.index;return(0,he.jsx)(he.Fragment,{children:(0,he.jsx)("a",{className:a===r?"mobileTab scrolled":"mobileTab",onClick:function(){for(var e=0;e<n.length;e++)e===r&&g(C.current[e].offsetLeft)},children:n[t].label})})}function F(e){var t=e.element,n=e.index,r=e.elementsLength;return(0,he.jsxs)("div",{className:"subContainer topContainer",children:[(0,he.jsx)("h4",{className:"subheading",children:t.label}),(0,he.jsx)("div",{className:"sidemenuContent",children:(0,he.jsx)("div",{className:"item-grid",children:t.skus.map((function(e){return(0,he.jsx)(li,{skuID:e,categoryID:t.categoryID,spawnGhosts:E,spawnItem:D,removeAllGhosts:x,modalOpen:i,categoryDataIndex:n,setItemAllowed:l,active:p.includes(e)},"itemCardB"+e)}))})}),n!==r-1?(0,he.jsx)("div",{className:"itemGridDivider"}):""]})}function _(e){var t=e.element,n=e.index,r=e.elementsLength;return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("section",{id:"section-".concat(t.categoryID),style:{display:"flex",width:"auto",gap:"1rem"},ref:function(e){return C.current[n]=e},children:t.skus.map((function(e){return(0,he.jsx)(li,{skuID:e,categoryID:t.categoryID,spawnGhosts:E,spawnItem:D,removeAllGhosts:x,modalOpen:i,setItemAllowed:l,active:p.includes(e)},"itemCardB"+e)}))},"mobileGridSection"+n),n!==r-1?(0,he.jsx)("div",{className:"itemGridDivider"}):""]})}return(0,b.useEffect)((function(){C.current=C.current.slice(0,n.length)}),[n]),(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(pi,{}),(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("div",{className:"mobileTabContent",children:(0,he.jsxs)("div",{className:"scrollSpyTabs",children:[(0,he.jsx)("div",{className:"secondMobileTabs",children:Object.keys(n).map((function(e,t){return(0,he.jsx)(S,{categoryID:e,index:t},"mobileTabs"+e)}))}),(0,he.jsx)("div",{className:"mobileGrid",ref:m,onScroll:function(){for(var e=0;e<n.length;e++)e!=n.length-1?A(C.current[e],e):e==n.length-1&&w(C.current[e])},children:n.map((function(e,t){return(0,he.jsx)(_,{element:e,index:t,elementsLength:n.length},"mobileGrid"+t)}))})]})}),(0,he.jsx)("div",{className:"container desktop",children:n.map((function(e,t){return(0,he.jsx)(F,{element:e,index:t,elementsLength:n.length},"category_"+e.categoryID+"_"+t)}))})]})]})});function di(e){var t=e.element,n=e.handleGlobalVariantSwitch,r=e.allActiveVariants,i=N((function(e){return e.CORE_API}));function o(e,o){var a,u;return(0,he.jsxs)("div",{onClick:function(){return n(t.id,e.color)},className:r[t.id]==e.color?"colorSelector selected":"colorSelector",children:[(0,he.jsx)("div",{className:"colorThumbnailContainer",children:(0,he.jsxs)("div",{className:"colorThumbnail",children:[(0,he.jsx)("div",{className:"checkMark",children:(0,he.jsx)("img",{src:X+"/Icon/Check.svg"})}),(0,he.jsx)("img",{src:i.getResolvedAssetUrl(null===(a=Dr.getState().lookData[e.color])||void 0===a?void 0:a.thumbnail),style:{height:"100%",width:"100%",opacity:"1"}})]})}),(0,he.jsx)("div",{className:"colorDetails",children:(0,he.jsx)("p",{className:"truncate",style:{width:"100px"},children:mr(null===(u=Dr.getState().lookData[e.color])||void 0===u?void 0:u.label)})})]},"Color-"+o)}return(0,he.jsx)(he.Fragment,{children:t.looks.map((function(e,t){return(0,he.jsx)(o,{color:e,index:t},"MobileGridInternal_"+t)}))})}var hi=function(){var e=Dr.getState().categoryData.color,t=ui((function(e){return e.allActiveVariants})),n=N((function(e){return e.materialOverrideExists})),r=N((function(e){return e.CORE_API})),i=k((0,b.useState)(0),2),o=i[0],a=i[1],u=k((0,b.useState)([]),2),s=(u[0],u[1],function(e,t){N.getState().CORE_API.switchGlobalVariant(e,t)}),l=function(){N.getState().CORE_API.removeAllVariantOverrides(),N.getState().CORE_API.alert({alertMsg:"Removed all overrides!",alertTime:4e3,alertType:"success",alertLabel:"Removed:"})};function c(e){if(f.current.scrollLeft!==e){var t,n,r,i=!1;window.requestAnimationFrame((function o(a){void 0===t&&(t=a);var u=a-t;if(n!==a){var s=u/200;f.current.scrollLeft>e?(r=(f.current.scrollLeft-e)*Math.min(s,1),f.current.scrollLeft-=r,f.current.scrollLeft===e&&(i=!0)):f.current.scrollLeft<e&&(r=(e-f.current.scrollLeft)*Math.min(s,1),f.current.scrollLeft+=r,f.current.scrollLeft===e&&(i=!0))}u<200&&(n=a,!i&&window.requestAnimationFrame(o))}))}}var p=(0,b.useRef)([]);(0,b.useEffect)((function(){p.current=p.current.slice(0,e.length)}),[e]);var f=(0,b.useRef)(null);function d(t,n){if(t.getBoundingClientRect().left<=28)for(var r=0;r<e.length;r++)n===r&&a(r)}function h(t,n){switch(e[e.length-1].looks.length){case 1:t.getBoundingClientRect().left<=304&&t===p.current[e.length-1]&&a(e.length-1);break;case 2:t.getBoundingClientRect().left<=208&&t===p.current[e.length-1]&&a(e.length-1);case 3:t.getBoundingClientRect().left<=108&&t===p.current[e.length-1]&&a(e.length-1);default:(null===t||void 0===t?void 0:t.getBoundingClientRect().left)<=108&&t===p.current[e.length-1]&&a(e.length-1)}}function y(t){var n=t.categoryID,r=t.index;return(0,he.jsx)(he.Fragment,{children:(0,he.jsx)("a",{className:o===r?"mobileTab scrolled":"mobileTab",onClick:function(){for(var t=0;t<e.length;t++)t===r&&c(p.current[t].offsetLeft)},children:e[n].label})})}function m(e,t){return(0,he.jsx)(he.Fragment,{children:e!==t.length-1?(0,he.jsx)("div",{className:"itemGridDivider"}):""})}return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(pi,{}),(0,he.jsx)("div",{className:"mobileTabContent",children:(0,he.jsxs)("div",{className:"scrollSpyTabs",children:[(0,he.jsx)("div",{className:"secondMobileTabs",children:Object.keys(e).map((function(e,t){return(0,he.jsx)(y,{categoryID:e,index:t},"mobileTabs"+e)}))}),(0,he.jsx)("div",{children:(0,he.jsx)("div",{className:"mobileGrid",ref:f,style:{alignItems:"center"},onScroll:function(){for(var t=0;t<e.length;t++)t!=e.length-1?d(p.current[t],t):t==e.length-1&&h(p.current[t])},children:(0,he.jsxs)("section",{style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[n&&(0,he.jsxs)("button",{onClick:function(){return l()},className:"removeAllColorOverridesButton",disabled:!n,children:[(0,he.jsx)("div",{className:"iconContainer",children:(0,he.jsx)("img",{src:X+"/Icon/TrashSimple.svg",alt:"Remove"})}),"Remove all",(0,he.jsx)("br",{}),"overrides"]}),e.map((function(n,r){return(0,he.jsxs)("section",{style:{display:"flex",alignItems:"center",gap:"0.75rem"},id:"section-".concat(n.categoryID),ref:function(e){return p.current[r]=e},children:[(0,he.jsx)(di,{element:n,index:r,handleGlobalVariantSwitch:s,allActiveVariants:t},"mobileGrid-".concat(n.categoryID)),(0,he.jsx)(m,{index:r,categories:e},"divider"+n.categoryID)]},"sectionz-".concat(n.categoryID,"-").concat(r))}))]})})})]})}),(0,he.jsxs)("div",{className:"container desktop",children:[n&&(0,he.jsx)("button",{className:"removeAllColorOverridesButton",onClick:function(){return l()},disabled:!n,children:"Remove all overrides"}),e.map((function(n,i){return(0,he.jsxs)("div",{className:"subContainer topContainer",children:[(0,he.jsx)("h4",{className:"subheading",children:n.label}),(0,he.jsx)("div",{className:"sidemenuContent",children:(0,he.jsx)("div",{className:"color-grid",children:n.looks.map((function(e,i){var o,a,u;return(0,he.jsxs)("div",{onClick:function(){return s(n.id,e)},className:t[n.id]==e?"colorSelector selected":"colorSelector",children:[(0,he.jsx)("div",{className:"colorThumbnailContainer",children:(0,he.jsxs)("div",{className:"colorThumbnail",children:[(0,he.jsx)("div",{className:"checkMark",children:(0,he.jsx)("img",{src:X+"/Icon/Check.svg"})}),(0,he.jsx)("img",{src:r.getResolvedAssetUrl(null===(o=Dr.getState().lookData[e])||void 0===o?void 0:o.thumbnail),style:{height:"100%",width:"100%",opacity:"1"}})]})}),(0,he.jsxs)("div",{className:"colorDetails",children:[(0,he.jsx)("p",{className:"truncate",style:{width:"100px"},children:mr(null===(a=Dr.getState().lookData[e])||void 0===a?void 0:a.label)}),(0,he.jsx)("p",{className:"truncate",style:{width:"100px"},children:mr(null===(u=Dr.getState().lookData[e])||void 0===u?void 0:u.accent)})]})]},"Color-"+i)}))})}),i!==e.length-1?(0,he.jsx)("div",{className:"itemGridDivider"}):(0,he.jsx)(he.Fragment,{})]},"".concat(n.label,"-").concat(i))}))]})]})},yi=O((function(e,t){return{activeHotspotData:null,activeFeatureID:"",actions:{enterHotspotInFeaturesTab:function(t){2!==N.getState().sideMenuState&&N.setState({sideMenuState:2}),e({activeFeatureID:t})},exitHotspot:function(){e({activeFeatureID:null})}}}}));function mi(e){var t=e.carouselTabKey,n=(0,b.useRef)(null),r=N((function(e){return e.CORE_API}));return(0,he.jsx)(lr,{children:(0,he.jsxs)("div",{className:"carouselTabParent",children:["img"===t.type&&(0,he.jsx)("img",{ref:n,src:r.getResolvedAssetUrl(t.link),alt:t.alt?t.alt:t.type}),"video"===t.type&&(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("p",{style:{position:"absolute"},children:t.alt?t.alt:t.type}),(0,he.jsx)("video",{ref:n,src:r.getResolvedAssetUrl(t.link),muted:!0,loop:!0,autoPlay:!0,playsInline:!0,controls:!1})]})]})},"SplideSlide-"+t.link)}function vi(e){var t=e.tabs,n=e.tabKey,r=e.index,i=e.activeFeatureID,o=k((0,b.useState)([]),2),a=o[0],u=o[1],s=(0,b.useRef)(null),l=(0,b.useRef)(null),c=N((function(e){return e.CORE_API})),p=(0,b.useCallback)((function(e){N.getState().CORE_API.clickHotspot("hotspot3D_"+e,{ignoreUI:!0})}),[]);(0,b.useEffect)((function(){for(var e=[],t=n.hotspotData,r=0;r<t.carousel.length;r++)""!==t.carousel[r].type&&""!==t.carousel[r].link&&(e=[].concat(A(e),[F(F({},t.carousel[r]),{},{index:r})]));u(e)}),[n]),(0,b.useEffect)((function(){var e=l.current;e&&(i===e.id?f(e):d(e))}),[i]);var f=(0,b.useCallback)((function(e){e.checked=!0,e.nextElementSibling.nextElementSibling.setAttribute("style","max-height: 800px;");var n=e.nextElementSibling.clientHeight;!function(e,t){if(e.current.scrollTop!==t){var n,r,i,o=!1;window.requestAnimationFrame((function a(u){void 0===n&&(n=u);var s=u-n;if(r!==u){var l=s/200;e.current.scrollTop>t?(i=(e.current.scrollTop-t)*Math.min(l,1),e.current.scrollTop-=i,e.current.scrollTop===t&&(o=!0)):e.current.scrollTop<t&&(i=(t-e.current.scrollTop)*Math.min(l,1),e.current.scrollTop+=i,e.current.scrollTop===t&&(o=!0))}s<200&&(r=u,!o&&window.requestAnimationFrame(a))}))}}(t,n*r)}),[]),d=(0,b.useCallback)((function(e){e.nextElementSibling.nextElementSibling.setAttribute("style","max-height: 0px;"),e.checked=!1}),[]);return(0,he.jsx)(he.Fragment,{children:n.hotspotData&&(0,he.jsxs)("div",{className:"accordionTab",children:[(0,he.jsx)("input",{type:"checkbox",name:"accordion",id:"rd_"+n.itemData.skuID+"_"+n.hotspotData.hotspotID,defaultChecked:!1,ref:l,onClick:function(e){p(n.itemData.skuID+"_"+n.hotspotData.hotspotID,{ignoreUI:!1})}}),(0,he.jsxs)("label",{className:"tab-label",htmlFor:"rd_"+n.itemData.skuID+"_"+n.hotspotData.hotspotID,children:[(0,he.jsx)("span",{children:n.hotspotData.title}),(0,he.jsx)("img",{className:"accordion-closed",src:X+"/Icon/Plus.svg"}),(0,he.jsx)("img",{className:"accordion-open",src:X+"/Icon/Minus.svg"})]}),(0,he.jsx)("div",{className:"tab-content",children:(0,he.jsxs)("div",{className:"hotspot-content",children:[(0,he.jsx)(pr(),{className:"ignore",modules:{toolbar:!1},theme:"bubble",readOnly:!0,value:n.hotspotData.description}),1==a.length&&(0,he.jsx)(he.Fragment,{children:""!=a[0].type&&""!=a[0].link&&(0,he.jsx)("div",{className:"carousel",children:(0,he.jsxs)("div",{className:"",children:["img"===a[0].type&&(0,he.jsx)("img",{src:c.getResolvedAssetUrl(a[0].link),alt:a[0].type}),"video"===a[0].type&&(0,he.jsx)("video",{src:a[0].link,muted:a[0].muted,loop:a[0].loop,controls:a[0].controls})]})},"carouselTabs_"+n.itemData.skuID+"_"+n.hotspotData.hotspotID+"_"+a[0].index)}),a.length>1&&(0,he.jsx)("div",{className:"carousel",children:(0,he.jsx)(sr,{options:{perPage:1,preloadPages:3},ref:s,children:a.map((function(e,t){return""!=e.type&&""!=e.link&&(0,he.jsx)(mi,{carouselTabKey:e,index:t},"carouselTabs_"+n.itemData.skuID+"_"+n.hotspotData.hotspotID+"_"+e.index)}))})})]})})]})})}var gi=function(){var e=N((function(e){return e.tabSpawnCount})),t=(0,b.useRef)(null),n=yi((function(e){return e.activeFeatureID}));return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(pi,{}),(0,he.jsx)("div",{className:"col desktop",style:{position:"relative"},ref:t,children:(0,he.jsxs)("div",{className:"tabs",children:[0==e.length&&(0,he.jsx)("div",{style:{"padding-top":"2rem","text-align":"center",color:"#818181","font-size":"0.9rem"},children:"*Please add an item to the scene to see the features"}),e.map((function(e,r){return(0,he.jsx)(vi,{tabs:t,activeFeatureID:n,tabKey:e,index:r},"tabs_"+e.itemData.skuID+"_"+e.hotspotData.hotspotID)}))]})})]})},Di=function(e,t){return e.filter((function(e,n){return t!==n}))},bi=function(e,t,n){var r=e.slice();return r[t].quantity=n,r},Ei=O((function(e,t){return{cart:[],cartTotalPrice:0,deleteCartItem:function(t){e((function(e){return{cart:Di(e.cart,t)}}))},addToCart:function(t){e((function(e){return{cart:[].concat(A(e.cart),[t])}}))},updateQuantity:function(t,n){e((function(e){return{cart:bi(e.cart,t,n)}}))},previewCartModalOpen:!1,togglePreviewCartModal:function(){e((function(e){return{previewCartModalOpen:!e.previewCartModalOpen}}))},actions:{setCartTotalPrice:function(t){e((function(){return{cartTotalPrice:t}}))}}}})),xi=function(e){var t=e.itemObject,n=N((function(e){return e.CORE_API})),r=k((0,b.useState)(n.sceneSettings.currency),2),i=r[0];r[1];return(0,he.jsx)(he.Fragment,{children:(0,he.jsxs)("div",{className:"0"==t.countUnavailable?"cartItem":"cartItem cartItemOutOfStock",draggable:!1,style:{display:t?"":"none"},children:[(0,he.jsx)("div",{className:"cartItemImage",children:(0,he.jsx)("img",{draggable:!1,src:n.getResolvedAssetUrl(t.thumbnails.review?t.thumbnails.review:t.thumbnails.low),alt:t.title})}),(0,he.jsxs)("div",{className:"cartItemDetails",children:[(0,he.jsx)("h4",{children:t.title}),(0,he.jsxs)("div",{className:"cartRow",children:[(0,he.jsxs)("span",{className:"itemCount",children:["qty: ",t.count]}),(0,he.jsxs)("h3",{className:"itemPrice",children:[i,parseFloat(t.price).toFixed(2)]})]}),"0"==!t.countUnavailable&&(0,he.jsxs)("div",{className:"cartRow",style:{color:"red",gap:"0.25rem"},children:[(0,he.jsx)("img",{src:X+"/Icon/Info_red.png",style:{height:"0.8rem"}}),(0,he.jsxs)("h3",{className:"itemPrice",style:{fontSize:"0.5rem"},children:[t.countAvailable," IN STOCK"]}),(0,he.jsx)("span",{className:"itemCount",style:{fontSize:"0.4rem"},children:"- quantities requested not available"})]})]})]})})},Ci=function(e){ci(e);var t=Ei((function(e){return e.cart})),n=Ei((function(e){return e.previewCartModalOpen})),r=Ei((function(e){return e.togglePreviewCartModal})),i=N((function(e){return e.CORE_API})),o=(0,b.useCallback)((function(){i.checkout()}),[]);return(0,he.jsx)(he.Fragment,{children:(0,he.jsxs)("div",{className:n?"previewCartModal open":"previewCartModal",children:[(0,he.jsxs)("div",{style:{width:"100%",height:"100%"},children:[(0,he.jsx)("button",{className:"closeButton",onClick:function(){r()},children:(0,he.jsx)("img",{src:X+"/Icon/X.svg"})}),t.length<=0&&(0,he.jsx)("h3",{style:{padding:"2rem"},children:"Your cart is currently empty"}),t.length>0&&(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("h2",{className:"cartTitle",children:"Review Products"}),(0,he.jsx)("div",{style:{position:"relative",paddingTop:"0.5rem",width:"100%",height:"100%"},children:(0,he.jsx)("div",{className:"previewCartContent",children:t.map((function(e,t){return(0,he.jsx)(xi,{itemObject:e,index:t},"Cart Item-".concat(t))}))})})]})]}),(0,he.jsx)("div",{style:{background:"#fff",display:"flex",justifyContent:"center",alignItems:"center",height:"5rem",width:"100%",boxShadow:"0px 2px 12px rgba(0, 0, 0, 0.1)"},children:(0,he.jsx)("button",{className:"checkoutButton",onClick:o,children:(0,he.jsx)("span",{children:"Add To Cart"})})})]})})},Ai=function(e){var t=e.configuratorWcRef,n=e.sideMenuOpen,r=e.sideMenuRef,i=e.toggleSideMenuOpen,o=e.PUBLIC_DESIGN_ASSETS_ENDPOINT,a=e.handleSideButtonClick,u=e.useTabIcon,s=e.GENERIC_PROJECT_ASSET_DATA_ROOT_URL,l=e.sideMenuState,c=e.togglePreviewCartModal,p=e.getItemCount,f=e.currency,d=e.numberWithCommas,h=Dr((function(e){return e.hotspotsData})),y=Dr.getState().categoryData.color;return(0,b.useEffect)((function(){if(N.getState().CORE_API.isMobile){var e=r.current;if(e){var n=t.shadowRoot.getElementById("_leftShell");n&&(n.style="height: calc(100% - ".concat(e.clientHeight+2,"px) !important"))}}}),[n,r]),(0,he.jsxs)("div",{className:n?"sideMenu open interactable":"sideMenu interactable",ref:r,children:[(0,he.jsxs)("div",{className:n?"mobileExpandButton sideMenuOpen":"mobileExpandButton",children:[(0,he.jsx)("span",{children:"EXPAND CONFIGURATOR"}),(0,he.jsx)("button",{role:"button",onClick:function(){i()},children:(0,he.jsx)("img",{src:o+"/Icon/CaretDoubleDown.svg"})})]}),(0,he.jsx)("div",{className:"sideMenuTabContainer",children:(0,he.jsxs)(Hr,{style:{width:"100%"},children:[(0,he.jsxs)(Kr,{className:"firstMobileTabs",children:[(0,he.jsx)(ei,{children:(0,he.jsxs)("div",{className:"mobileTab",onClick:function(){a(0)},children:[u?(0,he.jsx)("img",{className:"icon",alt:"null",src:s+"/thumbnails/common-ui/BuildTabIcon.svg"}):"","Build"]})}),y.length>0&&(0,he.jsx)(ei,{children:(0,he.jsxs)("div",{className:"mobileTab",onClick:function(){a(1)},children:[u?(0,he.jsx)("img",{className:"icon",alt:"null",src:s+"/thumbnails/common-ui/ColorTabIcon.svg"}):"","Color"]})})]}),(0,he.jsx)(ai,{children:(0,he.jsx)(fi,{sideMenuState:0},"BuildUI1")}),y.length>0&&(0,he.jsx)(ai,{children:(0,he.jsx)(hi,{sideMenuState:1})})]})}),(0,he.jsxs)("div",{className:"desktopSideMenu",style:{width:"100%",height:"100%",position:"relative"},children:[(0,he.jsxs)("div",{className:"sideMenuTabs",children:[(0,he.jsxs)("div",{className:0===l?"activeSideMenuTab rightTopBarButton button":"inactiveSideMenuTab rightTopBarButton button",onClick:function(){a(0)},children:[u?(0,he.jsx)("img",{className:"icon",alt:"null",src:s+"BuildTabIcon.png"}):"",(0,he.jsx)("span",{children:"Build"})]}),y.length>0&&(0,he.jsxs)("div",{className:1===l?"activeSideMenuTab rightTopBarButton button":"inactiveSideMenuTab rightTopBarButton button",onClick:function(){a(1)},children:[u?(0,he.jsx)("img",{className:"icon",alt:"null",src:s+"/thumbnails/common-ui/ColorTabIcon.svg"}):"",(0,he.jsx)("span",{children:"Color"})]}),Object.keys(h).length>0&&(0,he.jsxs)("div",{className:2===l?"activeSideMenuTab rightTopBarButton button":"inactiveSideMenuTab rightTopBarButton button",onClick:function(){a(2)},children:[u?(0,he.jsx)("img",{className:"icon",alt:"null",src:s+"/thumbnails/common-ui/ProductFeaturesTabIcon.png"}):"",(0,he.jsx)("span",{children:"Features"})]})]}),(0,he.jsxs)("div",{className:"sideMenuContent",children:[(0,he.jsx)(Ci,{}),0===l&&(0,he.jsx)(fi,{},"BuildUI2"),1===l&&(0,he.jsx)(hi,{}),2===l&&(0,he.jsx)(gi,{})]})]}),(0,he.jsxs)("div",{className:"bottomBar right button",onClick:function(){c()},children:[(0,he.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,he.jsx)("span",{children:"Review"}),(0,he.jsx)("div",{className:"cartNumber",children:p()})]}),(0,he.jsx)("div",{style:{display:"flex",alignItems:"center",color:"#fff"},children:(0,he.jsx)("div",{className:"button reviewButton",children:(0,he.jsx)("div",{className:"",children:"".concat(f).concat(d(Ei.getState().cartTotalPrice))})})})]})]})},wi=function(e){var t=e.previewCartModalOpen,n=e.togglePreviewCartModal,r=e.PUBLIC_DESIGN_ASSETS_ENDPOINT,i=e.cart;return(0,he.jsxs)("div",{className:t?"previewCartModal mobile open":"previewCartModal mobile",children:[(0,he.jsx)("button",{className:"closeButton",onClick:function(){n()},children:(0,he.jsx)("img",{src:r+"/Icon/X.svg"})}),(0,he.jsx)("h2",{className:"cartTitle",children:"Review Products"}),i.length>0?(0,he.jsxs)("div",{style:{position:"relative",paddingTop:"0.5rem",width:"100%",height:"100%"},children:[(0,he.jsx)("div",{className:"previewCartContent",children:i.map((function(e,t){return(0,he.jsx)(xi,{itemObject:e,index:t},"Cart Item - ".concat(t))}))}),(0,he.jsx)("div",{className:"previewCartButtonContainer",children:(0,he.jsxs)("button",{className:"checkoutButton",children:[(0,he.jsx)("span",{children:"Add To Cart"}),(0,he.jsx)("img",{src:r+"/Icon/ArrowRight.svg"})]})})]}):(0,he.jsx)("h3",{style:{padding:"2rem"},children:"Your cart is currently empty"})]})},Si=function(e){var t=e.selectedItemData,n=N((function(e){return e.CORE_API})),r=k((0,b.useState)(null),2),i=r[0],o=r[1],a=k((0,b.useState)([]),2),u=a[0],s=a[1],l=k((0,b.useState)(0),2),c=l[0],p=l[1],f=k((0,b.useState)(0),2),d=f[0],h=f[1],y=k((0,b.useState)(null),2),m=y[0],v=y[1],g=(0,b.useRef)(null),D=(0,b.useCallback)((function(){n.fireEvent(n.EVENTS.UI.ContextMenu_InfoBtnClicked,t)}),[t]);return(0,b.useEffect)((function(){s([]),v(null),t&&(v(F({},t)),t.overrideVariant?o(t.overrideVariant):o(t.currentVariant),s(n.getSelectedItemColors()))}),[t]),(0,b.useEffect)((function(){if(m&&t&&g.current){var e=n.getCanvasSize(),r=t.offsetX+g.current.children[0].clientWidth,i=t.offsetY+g.current.children[0].clientHeight,o=e.width-r;p(o<0?t.offsetX+o-10:t.offsetX);var a=e.height-i;h(a<0?t.offsetY+a-10:t.offsetY)}}),[m,t,g]),(0,he.jsx)("div",{ref:g,children:null!==t&&(0,he.jsx)("div",{className:"contextMenuParent interactable",style:{left:c+"px",top:d+"px"},children:(0,he.jsx)("div",{style:{display:"flex",alignItems:"flex-start"},children:(0,he.jsxs)("div",{className:"contextContent",children:[(0,he.jsxs)("div",{style:{width:"100%",display:"flex",justifyContent:"space-between"},children:[(0,he.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,he.jsx)("h3",{children:t.itemData.name}),(0,he.jsx)("img",{className:"infoButton",src:X+"/Icon/Info.svg",onClick:function(){return D()}})]}),(0,he.jsx)("div",{className:"closeContainer",onClick:function(){return n.exitSelectedItem()},children:(0,he.jsx)("button",{role:"button",title:"Close",children:(0,he.jsx)("img",{src:X+"/Icon/X.svg"})})})]}),(0,he.jsxs)("div",{style:{marginTop:"0.75rem",display:"flex",flexDirection:"column"},children:[(0,he.jsx)("span",{className:"colorSwatchTitle",children:"Select exterior color"}),(0,he.jsx)("div",{className:"color-grid",children:u.map((function(e,t){return(0,he.jsxs)("div",{onClick:function(){n.overrideSelectedItemMaterial(e.id),o(e.id)},asgaga:e.id,asd:i,className:i==e.id?"colorSelector selected":"colorSelector",children:[(0,he.jsx)("div",{className:"colorThumbnailContainer",children:(0,he.jsxs)("div",{className:"colorThumbnail",children:[(0,he.jsx)("div",{className:"checkMark",children:(0,he.jsx)("img",{src:X+"/Icon/Check.svg"})}),(0,he.jsx)("img",{src:n.getResolvedAssetUrl(e.thumbnail),style:{height:"100%",width:"100%",opacity:"1"}})]})}),(0,he.jsx)("div",{className:"colorDetails",children:(0,he.jsx)("p",{className:"truncate",style:{width:"100px"},children:mr(e.label)})})]},"Color-"+t)}))})]}),(0,he.jsxs)("div",{className:"contextButtons",children:[n.canSelectedItemDrag()&&(0,he.jsxs)("button",{role:"button",style:{width:"100%"},onClick:function(){n.doesSelectedItemHasAttachedDependency()?N.getState().setRemoveOpen(!0):n.removeSelectedItem()},children:[(0,he.jsx)("img",{src:X+"/Icon/TrashSimple.svg",alt:"Remove"}),(0,he.jsx)("span",{children:"Remove"})]}),n.canSelectedItemRotate()&&(0,he.jsxs)("button",{role:"button",onClick:function(){return n.rotateSelectedItem()},children:[(0,he.jsx)("img",{src:X+"/Icon/Rotate.svg"}),(0,he.jsx)("span",{children:"Rotate"})]})]})]})})})})},Fi=function(e){var t=e.selectedItemData,n=e.contextMenuDrawerOpen,r=e.dismissContextMenuDrawer,i=k((0,b.useState)(n),2),o=i[0],a=i[1],u=(0,b.useRef)(null),s=N((function(e){return e.CORE_API})),l=k((0,b.useState)(null),2),c=l[0],p=l[1],f=k((0,b.useState)([]),2),d=f[0],h=f[1];return(0,b.useEffect)((function(){u.current.addEventListener("drawerClosed",(function(){r(),G.log("Context Drawer Dismissed!!")}))}),[u]),(0,b.useEffect)((function(){return G.log(n),a(n),function(){}}),[n]),(0,b.useEffect)((function(){if(h([]),t&&t.itemData){var e=[],n=t.itemData.looks;if(n){var r=Dr.getState().lookData;n.map((function(t){r.hasOwnProperty(t)&&e.push(r[t])})),t.overrideVariant?p(t.overrideVariant):p(t.currentVariant),h(e)}}}),[t]),(0,he.jsx)("bottom-drawer",{id:"contextDrawer",ref:u,open:"".concat(o),children:(0,he.jsx)("div",{className:"contextMenuDrawer epigraphDrawer",slot:"bottom-drawer-content",children:(0,he.jsxs)("div",{className:"contextMenuParent interactable",children:[(0,he.jsx)("div",{className:"contextContent",children:t&&t.itemData?(0,he.jsx)(he.Fragment,{children:(0,he.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:(0,he.jsx)("h3",{children:t.itemData.name})})}):""}),(0,he.jsx)("p",{style:{fontWeight:"300",fontSize:"0.75rem",marginTop:"1rem"},children:"Select exterior color"}),(0,he.jsx)("div",{className:"color-grid",style:{marginTop:"0.5rem"},children:d.map((function(e,t){return(0,he.jsxs)("div",{onClick:function(){N.getState().CORE_API.overrideSelectedItemMaterial(e.id),p(e.id)},className:c==e.id?"colorSelector selected":"colorSelector",children:[(0,he.jsxs)("div",{className:"colorThumbnailContainer",children:[(0,he.jsx)("div",{className:"colorThumbnail",children:(0,he.jsx)("img",{src:s.getResolvedAssetUrl(e.thumbnail),style:{height:"100%",width:"100%",opacity:"1"}})}),(0,he.jsx)("div",{className:"checkMark",children:(0,he.jsx)("img",{src:X+"/Icon/Check.svg"})})]}),(0,he.jsx)("div",{className:"colorDetails",children:(0,he.jsx)("p",{className:"truncate",style:{width:"100px"},children:mr(e.label)})})]},"Color-"+t)}))}),(0,he.jsx)("div",{className:"contextButtons",children:(0,he.jsxs)("button",{role:"button",onClick:function(){s.doesSelectedItemHasAttachedDependency()?N.getState().setRemoveOpen(!0):(s.removeSelectedItem(),r())},children:[(0,he.jsx)("img",{src:X+"/Icon/Trash.svg"}),(0,he.jsx)("span",{children:"Remove"})]})})]})})})},ki=function(e){var t=e.selectedItemData,n=e.contextMenuOpen,r=e.dismissContextMenuDrawer,i=N((function(e){return e.CORE_API})),o=k((0,b.useState)(!1),2),a=o[0],u=o[1];return(0,b.useEffect)((function(){return u(n),function(){}}),[n]),(0,he.jsx)(he.Fragment,{children:i.isMobile?(0,he.jsx)(Fi,{selectedItemData:t,contextMenuDrawerOpen:a,dismissContextMenuDrawer:r}):a&&(0,he.jsx)(Si,{contextMenuDesktopOpen:a,selectedItemData:t})})},_i=function(e){var t=e.configuratorWcRef,n=e.coreRef,r=e.viewInYourSpaceRef,i=e.disableUi,o=(Dr((function(e){return e})),N((function(e){return e.setSideMenuState}))),a=N((function(e){return e.sideMenuState})),u=k((0,b.useState)(!0),2),s=u[0],l=u[1],c=k((0,b.useState)(!1),2),p=(c[0],c[1]),f=k((0,b.useState)(!1),2),d=f[0],h=f[1],y=dr((function(e){return e.infoModalOpen})),m=dr((function(e){return e.updateInfoModalOpen})),v=k((0,b.useState)(!1),2),g=v[0],D=v[1],E=k((0,b.useState)(!1),2),x=E[0],C=E[1],A=k((0,b.useState)("Link not generated!"),2),w=A[0],S=A[1],F=k((0,b.useState)(!1),2),_=F[0],T=F[1],O=N((function(e){return e.removeOpen})),P=N((function(e){return e.setRemoveOpen})),B=(0,b.useRef)(null),I=(0,b.useRef)(null),L=(0,b.useRef)(null),M=k((0,b.useState)({}),2),R=M[0],q=M[1],V=k((0,b.useState)({}),2),U=V[0],z=V[1],H=k((0,b.useState)(!1),2),W=H[0],$=(H[1],Ei((function(e){return e.cart}))),K=Ei((function(e){return e.previewCartModalOpen})),Y=Ei((function(e){return e.togglePreviewCartModal})),Q=k((0,b.useState)(!1),2),Z=Q[0],ee=Q[1],te=k((0,b.useState)(!1),2),ne=te[0],re=te[1],ie=k((0,b.useState)(!0),2),oe=ie[0],ae=ie[1],ue=yi((function(e){return e})),se=N((function(e){return e.CORE_API})),le=k((0,b.useState)(!1),2),ce=le[0],pe=le[1],fe=k((0,b.useState)(!0),2),de=fe[0],me=fe[1],ve=k((0,b.useState)(se.getSceneItemCount()>0),2),ge=ve[0],De=ve[1],be=k((0,b.useState)(se.sceneSettings.showSaveButton),2),Ee=be[0],xe=(be[1],k((0,b.useState)(se.sceneSettings.showContextMenu),2)),Ce=xe[0],Ae=(xe[1],k((0,b.useState)(se.getSceneItemCount()>0),2)),we=Ae[0],Se=Ae[1],Fe=k((0,b.useState)(se.sceneSettings.showResetBtn),2),ke=Fe[0],_e=(Fe[1],k((0,b.useState)(se.sceneSettings.showDimensionBtn),2)),Te=_e[0],Oe=(_e[1],k((0,b.useState)(se.sceneSettings.showHotspotsBtn),2)),Ne=Oe[0],je=(Oe[1],k((0,b.useState)(se.sceneSettings.currency),2)),Pe=je[0];je[1];(0,b.useEffect)((function(){return ae(se.areHotspotsVisible()),function(){}}),[a]);var Be=(0,b.useCallback)((function(){ae(!se.areHotspotsVisible()),se.areHotspotsVisible()?se.hideAllHotspots():se.showAllHotspots()}),[]),Ie=(0,b.useCallback)((function(){pe(!se.areDimensionsVisible()),se.areDimensionsVisible()?se.hideDimensions():se.showDimensions()}),[]);var Le=(0,b.useCallback)((function(){re(!0),C(!0);se.shareScene().then((function(e){S(e),re(!1),se.alert({alertMsg:"Configuration saved succesfully!",alertTime:5e3,alertType:"info",alertLabel:"Success!"})})).catch((function(e){re(!1),se.alert({alertMsg:"Couldn't save the Configuration!",alertTime:5e3,alertType:"error",alertLabel:"Error:"})}))}),[]);function Me(){p(!1),N.getState().CORE_API.closeContextMenu()}(0,b.useEffect)((function(){I.current&&I.current.appendChild(n.current)}),[I]),(0,b.useEffect)((function(){L.current&&L.current.appendChild(r.current)}),[L]),j(se.EVENTS.SCENE.Hotspot_Enter,(function(e){if(N.getState().CORE_API.isMobile)G.log(se.getActiveHotspot()),z(se.getActiveHotspot().hotspotData),h(!0);else{var t=e.hotspotAbsID;ue.actions.enterHotspotInFeaturesTab(t)}})),j(se.EVENTS.SCENE.Hotspot_Exit,(function(e){ue.actions.exitHotspot()})),j(se.EVENTS.SCENE.MaterialOverrides_Exists,(function(e){N.setState({materialOverrideExists:e})})),j(se.EVENTS.UI.UtilityMenu_Hide,(function(e){me(!1)})),j(se.EVENTS.UI.UtilityMenu_Show,(function(e){me(!0)})),j(se.EVENTS.UI.ShareButton_Hide,(function(e){De(!1)})),j(se.EVENTS.UI.ShareButton_Show,(function(e){De(!0)})),j(se.EVENTS.UI.ViewInYourSpaceButton_Hide,(function(e){Se(!1)})),j(se.EVENTS.UI.ViewInYourSpaceButton_Show,(function(e){Se(!0)})),j(se.EVENTS.UI.ContextMenu_Show,(function(e){q(null===e||void 0===e?void 0:e.primary.data),ee(!0)})),j(se.EVENTS.UI.ContextMenu_Hide,(function(e){ee(!1)}));var Re=(0,b.useCallback)((function(){navigator.clipboard.writeText(w),se.alert({alertMsg:"Copied to Clipboard!",alertTime:4e3,alertType:"success",alertLabel:"Copied!"})}),[w]),qe=(0,b.useCallback)((function(){var e=0;return $.map((function(t){return e+=t.count})),e}),[$]);return(0,he.jsxs)(he.Fragment,{children:[Ce&&(0,he.jsx)(ki,{selectedItemData:R,contextMenuOpen:Z,dismissContextMenuDrawer:Me}),(0,he.jsxs)("div",{className:"overlayUI",children:[(0,he.jsxs)("div",{className:"uiModals",children:[(0,he.jsx)("div",{id:"view-in-your-space-slot",ref:L}),(0,he.jsx)(ye,{open:g,setOpen:D,heading:"Save This Configuration",inputPlaceholder:"Email Address",buttonText:"Send",dualOptions:!1,formFieldExists:!0}),(0,he.jsx)(ye,{open:x,setOpen:C,heading:"Share Configuration",inputValue:w,buttonText:(0,he.jsx)("img",{src:X+"/Icon/Copy.svg"}),dualOptions:!1,modalText:"Your design has been saved via the unique link below.",shareModal:!0,formFieldExists:!0,onSubmit:function(){Re(),C(!1)},loading:ne}),(0,he.jsx)(ye,{open:_,setOpen:T,heading:"Are you sure you want to restart?",buttonText:"Restart",dualOptions:!0,modalText:"All changes will be lost.",formFieldExists:!1,onSubmit:function(){return se.restartScene()}}),(0,he.jsx)(ye,{zIndex:31,open:O,setOpen:P,heading:"Are you sure you want to remove?",buttonText:"Remove",dualOptions:!0,modalText:"All changes made to this item will be lost.",formFieldExists:!1,onSubmit:function(){se.removeSelectedItem(),Me()}})]}),(0,he.jsx)(fr,{open:d,dataObject:U,dismissDrawer:function(){h(!1),N.getState().CORE_API.exitHotspot()}}),(0,he.jsx)(gr,{open:y,dismissDrawer:function(){m(!1)}}),(0,he.jsxs)("div",{className:"leftShell",id:"_leftShell",style:{width:i?"100%":"69%"},children:[(Ee||ge||Te||ke||Ne)&&(0,he.jsx)(Er,{utilityMenuVisible:de,dimensionsVisible:ce,viewInYourSpaceMenuBtnVisible:we,saveMenuBtnVisible:Ee,shareMenuBtnVisible:ge,dimensionsMenuBtnVisible:Te,restartMenuBtnVisible:ke,hotspotsMenuBtnVisible:Ne,hotspotsVisibility:oe,handleRestartButtonClick:function(){T(!0)},handleShareButtonTrigger:Le,handleDimensionClick:Ie,handleShowHotspots:Be,position:"bottom",CORE_API:se}),s?"":(0,he.jsxs)("div",{className:"title",children:[(0,he.jsx)("h1",{children:"Craftsman"}),(0,he.jsx)("h1",{children:"Build your Own Tool Storage"})]}),(0,he.jsx)("div",{id:"epigraph-configurator-core-slot",ref:I})]}),!i&&(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(wi,{previewCartModalOpen:K,togglePreviewCartModal:Y,PUBLIC_DESIGN_ASSETS_ENDPOINT:X,cart:$}),(0,he.jsx)(Ai,{configuratorWcRef:t,sideMenuOpen:s,sideMenuRef:B,toggleSideMenuOpen:function(){l(!s)},PUBLIC_DESIGN_ASSETS_ENDPOINT:X,handleSideButtonClick:function(e){o(e)},useTabIcon:W,GENERIC_PROJECT_ASSET_DATA_ROOT_URL:J,sideMenuState:a,togglePreviewCartModal:Y,getItemCount:qe,currency:Pe,numberWithCommas:vr})]})]})]})};var Ti=[{id:"configuratorStyles",url:"https://cdn.jsdelivr.net/npm/@epigraph/configurator/dist/epigraph-configurator.css"}],Oi=function(){var e=k((0,b.useState)(0),2),n=e[0],r=e[1],o=Dr((function(e){return e.assetsData})),a=N((function(e){return e.CORE_API})),u=k((0,b.useState)([]),2),s=u[0],l=u[1];return(0,b.useEffect)((function(){if(a&&a.assetsData.uiStyles){var e=Ti;if(null!==o&&void 0!==o&&o.uiStyles){var t,n=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=C(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,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}(o.uiStyles);try{for(n.s();!(t=n.n()).done;){var r=t.value;r&&!0===(null===r||void 0===r?void 0:r.enabled)&&e.push(r)}}catch(i){n.e(i)}finally{n.f()}}l(e)}}),[o,a]),(0,b.useEffect)(i(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a&&a.assetsData.uiStyles&&!(s.length<=0)){e.next=2;break}return e.abrupt("return");case 2:n===s.length&&N.setState({cssLoaded:!0});case 3:case"end":return e.stop()}}),e)}))),[n,s,a]),(0,he.jsx)(he.Fragment,{children:s&&s.map((function(e){return(0,he.jsx)(b.Fragment,{children:(0,he.jsx)("link",{href:a.getResolvedAssetUrl(e.url),id:"dynamic-".concat(e.id),rel:"stylesheet",onLoad:function(){r(n+1)}})},e.id)}))})};function Ni(e){var t=e.disableUi,n=e.launchInAR,r=e.configuratorWcRef,i=e.gaCode,o=e.thumbComputedStyle,a=void 0===o?null:o,u=Dr((function(e){return e})),s=(0,b.useRef)(null),l=(0,b.useRef)(null),c=(0,b.useRef)(null),p=(0,b.useRef)(null),f=k((0,b.useState)(!1),2),d=f[0],h=f[1],y=N((function(e){return e.CORE_API})),m=N((function(e){return e.cssLoaded})),v=(0,b.useRef)(null);j("coreApi:ready",(function(e){u.setProductData(e.productData),u.setCategoryData(e.categoryData),u.setLookData(e.lookData),u.setHotspotsData(e.hotspotsData),u.setAssetsData(e.assetsData);var t=e.categoryData.color;if(0==Object.keys(ui.getState().allActiveVariants).length&&t.map((function(e){return ui.getState().allActiveVariants[e.id]=e.looks[0]})),e.configuration&&e.configuration.globalVariants){var n=e.configuration.globalVariants;Object.keys(n).map((function(e){ui.getState().allActiveVariants[e]=n[e]})),ui.setState({allActiveVariants:F({},ui.getState().allActiveVariants)})}p.current.coreApi=s.current.api,h(!0)})),j("coreApi:failed",(function(e){r.showHiccupScreen("AUTHENTICATION FAILED FOR: ".concat(window.location.href)),h(!1)})),j("globalVariant:updated",(function(e){ui.setState({allActiveVariants:F({},e)})})),j("fittingSkuIds:updated",(function(e){si.setState({fittingSKUIDS:A(e.skuids)})}));j("items:updated",(function(e){G.log("Items changed");var t=F({},e.itemsSpawned);si.getState().setItemsSpawned(t),function(e){var t=[];Object.keys(e).map((function(n){var r=e[n];r.hotspotSpawned&&r.hotspotsData&&r.hotspotsData.map((function(r){t=[].concat(A(t),[{itemData:F({},e[n].itemData),hotspotData:F({},r)}])}))})),N.setState({tabSpawnCount:t})}(t)}));var g=(0,b.useCallback)((function(e){var t=[],n=Dr.getState().productData;e.cartItems.forEach((function(e){var r=F({},e),i=n[e.skuID];r.title=i.lookDetails[e.currentVariant].title,r.thumbnails=i.lookDetails[e.currentVariant].thumbnails,t.push(r)})),Ei.setState({cart:[].concat(t)}),Ei.getState().actions.setCartTotalPrice(e.details.total)}),[]),D=(0,b.useCallback)((function(){y&&g(y.getCartItems())}),[y]),E=function(){return j(y.EVENTS.UI.PreloadScreen_Hide,(function(){r.api.ui.hidePreloadScreen()})),j(y.EVENTS.UI.PreloadScreen_Show,(function(){r.api.ui.showPreloadScreen()})),j(y.EVENTS.SCENE.CartItems_Updated,g),j(y.EVENTS.SCENE.Inventory_Updated,D),(0,he.jsx)(he.Fragment,{})};return(0,b.useEffect)((function(){var e=s.current;e&&(N.setState({coreWcRef:e}),r.api.core=e.api,r.api.core.clientAccessKey=r.clientAccessKey,N.setState({CORE_API:e.api}))}),[s]),(0,b.useEffect)((function(){!1!==m&&!1!==d&&(g(y.getCartItems()),r.api.ui.hidePreloadScreen(),n&&(G.log("Attempting to auto launch view in your space"),y.viewInYourSpace()))}),[m,d]),(0,b.useEffect)((function(){var e=v.current;e&&(a=window.getComputedStyle(e),window.addEventListener("mousemove",(function(t){if(t.preventDefault(),window.mouseDownImgSrc){if(Math.abs(t.offsetX-window.pointerDownPos)<=10)return;var n={x:t.offsetX,y:t.offsetY},r=e;r.src=window.mouseDownImgSrc,r.style.opacity=.75,r.style.left="calc(".concat(n.x,"px - ").concat(a.width,")"),r.style.top="calc(".concat(n.y,"px - ").concat(a.height,")"),window.mouseDragging||(window.mouseDragging=!0,N.getState().CORE_API.itemDragStart(window.mouseDownSkuID))}})),window.addEventListener("mouseup",(function(){if(window.mouseDownImgSrc){var t=e;t.style.left="0px",t.style.top="0px",t.style.opacity=0,window.mouseDragging&&N.getState().CORE_API.itemDragEnd(),window.mouseDownImgSrc=null,window.mouseDragging=!1}})),window.addEventListener("touchmove",(function(t){if(window.mouseDownImgSrc){if(Math.abs(t.touches[0].screenX-window.pointerDownPos)<=10)return;var n={x:t.touches[0].clientX,y:t.touches[0].clientY},r=e;if(r.src=window.mouseDownImgSrc,r.style.opacity=.75,r.style.left="calc(".concat(n.x,"px - ").concat(a.width,")"),r.style.top="calc(".concat(n.y,"px - ").concat(a.height,")"),!window.mouseDragging){window.mouseDragging=!0;for(var i=l.current.getElementsByClassName("mobileGrid"),o=0;o<i.length;o++)i[o].style="overflow-x:hidden !important";N.getState().CORE_API.itemDragStart(window.mouseDownSkuID)}}})),window.addEventListener("touchend",(function(t){if(window.mouseDownImgSrc){var n=e;if(n.style.left="0px",n.style.top="0px",n.style.opacity=0,window.mouseDragging){N.getState().CORE_API.itemDragEnd();for(var r=l.current.getElementsByClassName("mobileGrid"),i=0;i<r.length;i++)r[i].style="overflow-x:auto !important"}window.mouseDownImgSrc=null,window.mouseDragging=!1}})))}),[v,l,y]),(0,b.useEffect)((function(){c&&(G.log("Analytics web component ready within the configurator"),s.current.setAttribute("epigraph-analytics-ref",c.current.id))}),[c]),(0,b.useEffect)((function(){p&&(G.log("SENDING VIEW IN YOUR SPACE ID: ",p.current.id),s.current.setAttribute("view-in-your-space-elem-id",p.current.id))}),[p]),(0,he.jsxs)("div",{className:"configuratorParentDiv",ref:l,style:{display:"flex",width:"100%",height:"100%",justifyContent:"center",alignItems:"center"},children:[d&&(0,he.jsx)(E,{}),(0,he.jsx)(Oi,{}),(0,he.jsx)("img",{id:"dragImgElRef",ref:v,alt:"",style:{opacity:"0",position:"absolute",zIndex:"1000",width:"3rem",height:"3rem",pointerEvents:"none",borderRadius:"0.6rem"}}),(0,he.jsx)("epigraph-analytics",{ref:c,"ua-code":"UA-189030533-2","tracker-name":"configuratorAnalyticsTracker","default-event-category":"Epigraph-Configurator-Analytics",id:"epigraphAnalyticsTacker"}),(0,he.jsx)("epigraph-configurator-core",{ref:s,id:"epigraphConfiguratorCore",style:n?{opacity:"0",pointerEvents:"none"}:{width:"100%",height:"100%"},"ga-code":i,"configurator-wc-id":r.configuratorWcId,"initial-config-id":r.initialConfigId,"client-access-key":r.clientAccessKey}),(0,he.jsx)("view-in-your-space",{id:"viewInYourSpaceWc","hide-button":!0===n?"false":"true","launch-in-ar":!0===n?"true":"false",ref:p,class:!0===n?"viewInYourSpace-AR":"viewInYourSpace"}),d&&m&&!n&&(0,he.jsx)("div",{className:"shadowRoot",children:(0,he.jsx)(_i,{configuratorWcRef:r,coreRef:s,viewInYourSpaceRef:p,disableUi:t})})]})}var ji=document.createElement("template");ji.innerHTML="\n <style>\n .preload-main-container{\n width: 100%;\n height: 100%;\n position: absolute;\n background-color: white;\n z-index: 9999998;\n transition: 2s;\n // pointer-events: none;\n // transform: translateY(-100vh);\n opacity: 0;\n user-select: none;\n transition-delay: 1s;\n overflow:hidden;\n }\n \n .no-pointer-events {\n pointer-events: none;\n }\n \n .showPreload {\n opacity: 1;\n transition: 0.5s !important;\n // transition-delay: 0s !important;\n // pointer-event: all !important;\n // transform: translateY(0%);\n }\n </style>\n ";var Pi=document.createElement("template");Pi.innerHTML='\n <style>\n .preloadContainer {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n // pointer-events: all;\n flex-direction: column;\n overflow:hidden;\n }\n \n .preloadLogo {\n \n background-repeat: no-repeat;\n background-size: contain;\n background-position: center;\n opacity: 1;\n width: 65px;\n height: 65px;\n display:flex;\n justify-content:center;\n align-items:center;\n }\n \n .preloadLoader {\n position:absolute;\n animation: spin 1s linear infinite;\n -webkit-animation: spin 1s linear infinite;\n -moz-animation: spin 1s linear infinite;\n -o-animation: spin 1s linear infinite;\n }\n\n .circular-loader{\n border: 8px solid #0000001a;\n border-top: 8px solid #000000;\n border-radius: 50%;\n width: 140px;\n height: 140px;\n }\n\n .preloadLogo > slot > img{\n width: 100%;\n height: 100%;\n }\n\n @-webkit-keyframes spin {\n 0% { -webkit-transform: rotate(0deg);}\n 100% { -webkit-transform: rotate(360deg); }\n }\n \n @-moz-keyframes spin {\n 0% { -moz-transform: rotate(0deg);}\n 100% { -moz-transform: rotate(360deg); }\n }\n \n @-o-keyframes spin {\n 0% { -o-transform: rotate(0deg);}\n 100% { -o-transform: rotate(360deg); }\n }\n \n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n </style>\n \n <div class="preloadContainer" id="preloadContainer"> \n <div class="preloadLogo" part="preload-logo">\n <slot name="loading-logo">\n <img src="https://hosted.myepigraph.com/static/epigraph-brand/epigraph-preload-logo.png" style="width: 100%;" slot="loading-logo" />\n </slot>\n </div>\n <div class="preloadLoader">\n <div part="circular-loader" class="circular-loader" ></div>\n </div>\n </div>\n ';var Bi=document.createElement("template");Bi.innerHTML="\n <style>\n .hiccup-ui-main-container {\n width: 100%;\n height: 100%;\n font-size: larger;\n position: absolute;\n top: 0px;\n left: 0px;\n background-color: white;\n opacity: 0;\n z-index: 9999999;\n pointer-events: none;\n // transform: translateY(-100vh);\n transition: 1s ease-out;\n user-select: none;overflow:hidden;\n }\n \n .no-pointer-events {\n pointer-events: none;\n }\n \n .show-hiccup {\n opacity: 1;\n // pointer-event: all !important;\n // transform: translateY(0%);\n }\n </style>\n ";var Ii=document.createElement("template");Ii.innerHTML='\n <style>\n .hiccup-container {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n // pointer-events: all;\n flex-direction: column;\n opacity: 1;\n overflow:hidden;\n }\n \n </style>\n \n <div class="hiccup-container" id="preloadContainer"> \n <div id="hiccupTitle" class="hiccup-title">\n Uh Oh!!\n There was a problem while trying to initialise the configurator.\n </div>\n </div>\n ';var Li=D("configuratorWcId"),Mi=D("epigraphCoreScriptElem"),Ri=D("setupPreloadScreen"),qi=D("setupHiccupScreen"),Vi=D("importEpigraphCoreWebComponent"),Ui=D("importViewInYourSpaceWebComponent"),zi=D("importEpigraphLogger"),Hi=D("importEpigraphAnalyticsWebComponent"),Wi=D("collectWebComponentAttributes"),$i=function(e){c(r,e);var n=h(r);function r(){var e;return o(this,r),e=n.call(this),Object.defineProperty(s(e),Wi,{value:Zi}),Object.defineProperty(s(e),Hi,{value:Qi}),Object.defineProperty(s(e),zi,{value:Yi}),Object.defineProperty(s(e),Ui,{value:Xi}),Object.defineProperty(s(e),Vi,{value:Ji}),Object.defineProperty(s(e),qi,{value:Ki}),Object.defineProperty(s(e),Ri,{value:Gi}),Object.defineProperty(s(e),Li,{writable:!0,value:void 0}),e.clientAccessKey=null,e.validationPassed=!1,e.projectID="",e.configID="default",e.gaCode="",Object.defineProperty(s(e),Mi,{writable:!0,value:void 0}),e.api={core:null,ui:null},e.api.ui=s(e),e.attachShadow({mode:"open"}),v(s(e),Ri)[Ri](),v(s(e),qi)[qi](),e}return u(r,[{key:"configuratorWcId",get:function(){return v(this,Li)[Li]}},{key:"connectedCallback",value:function(){var e=i(t().mark((function e(){var n,r=this;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v(this,Wi)[Wi](),v(this,Hi)[Hi](),v(this,Vi)[Vi](),v(this,Ui)[Ui](),this.style.maxWidth="1440px",this.style.maxHeight="800px",this.style.overflow="hidden",this.style.width="100%",this.style.height="100%",this.style.position="relative",this.style.visibility="visible",this.style.display="flex",(n=document.createElement("div")).id="configuratorContainer",n.style.width="100%",n.style.height="100%",n.style.userSelect="none",n.style.overflow="hidden",this.shadowRoot.appendChild(n),v(this,Mi)[Mi].addEventListener("load",(function(){E.render((0,he.jsx)(Ni,{disableUi:r.hasAttribute("disable-ui"),launchInAR:r.hasAttribute("launch-in-ar"),gaCode:r.gaCode,configuratorWcRef:r}),n)}));case 20:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"showPreloadScreen",value:function(){this.preloadDiv.classList.remove("no-pointer-events"),this.preloadDiv.classList.add("showPreload")}},{key:"hidePreloadScreen",value:function(){var e=i(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.preloadDiv.classList.remove("showPreload"),e.next=3,hr(2e3);case 3:e.sent,this.preloadDiv.classList.add("no-pointer-events");case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"showHiccupScreen",value:function(){this.hiccupUi.classList.remove("no-pointer-events"),this.hiccupUi.classList.add("show-hiccup")}},{key:"hideHiccupScreen",value:function(){var e=i(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.hiccupUi.classList.remove("show-hiccup"),e.next=3,hr(2e3);case 3:e.sent,this.hiccupUi.classList.add("no-pointer-events");case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),r}(m(HTMLElement));function Gi(){this.preloadDiv=document.createElement("div"),this.preloadDiv.id="preloadMainContainer",this.preloadDiv.classList.add("preload-main-container"),this.preloadDiv.classList.add("showPreload"),this.preloadDiv.appendChild(ji.content.cloneNode(!0)),this.preloadDiv.appendChild(Pi.content.cloneNode(!0)),this.shadowRoot.appendChild(this.preloadDiv)}function Ki(){this.hiccupUi=document.createElement("div"),this.hiccupUi.id="hiccupMainContainer",this.hiccupUi.classList.add("hiccup-ui-main-container"),this.hiccupUi.appendChild(Bi.content.cloneNode(!0)),this.hiccupUi.appendChild(Ii.content.cloneNode(!0)),this.shadowRoot.appendChild(this.hiccupUi)}function Ji(){v(this,Mi)[Mi]=document.createElement("script"),v(this,Mi)[Mi].setAttribute("type","module"),v(this,Mi)[Mi].setAttribute("src","https://cdn.jsdelivr.net/npm/@epigraph/configurator-core"),v(this,Mi)[Mi].setAttribute("id","configuratorCoreScript"),document.head.appendChild(v(this,Mi)[Mi])}function Xi(){this._viewInYourSpaceScriptElem=document.createElement("script"),this._viewInYourSpaceScriptElem.setAttribute("type","module"),this._viewInYourSpaceScriptElem.setAttribute("src","https://cdn.jsdelivr.net/npm/@epigraph/web-components@1.x.x/dist/view-in-your-space.js"),this._viewInYourSpaceScriptElem.setAttribute("id","viewInYourSpaceScript"),document.head.appendChild(this._viewInYourSpaceScriptElem)}function Yi(){this._epigraphLoggerScriptElem=document.createElement("script"),this._epigraphLoggerScriptElem.setAttribute("src","https://cdn.jsdelivr.net/npm/@epigraph/web-components@1.x.x/dist/epigraph-logger.js"),this._epigraphLoggerScriptElem.setAttribute("id","epigraphLoggerScript"),document.head.appendChild(this._epigraphLoggerScriptElem),this._epigraphLoggerScriptElem.addEventListener("load",(function(){}))}function Qi(){this._epigraphAnalyticsScriptElem=document.createElement("script"),this._epigraphAnalyticsScriptElem.setAttribute("type","module"),this._epigraphAnalyticsScriptElem.setAttribute("src","https://cdn.jsdelivr.net/npm/@epigraph/web-components@1.x.x/dist/epigraph-analytics.js"),this._epigraphAnalyticsScriptElem.setAttribute("id","epigraphAnalyticsScript"),document.head.appendChild(this._epigraphAnalyticsScriptElem)}function Zi(){this.hasAttribute("id")||this.setAttribute("id","epigraphConfiguratorWc"),v(this,Li)[Li]=this.getAttribute("id"),this.hasAttribute("ga-code")&&(this.gaCode=this.getAttribute("ga-code")),this.clientAccessKey=this.getAttribute("client-access-key"),this.initialConfigId=this.getAttribute("initial-config-id"),this.initialConfigId||(this.initialConfigId="default")}window.customElements.define("epigraph-configurator",$i)}()}();
|
|
3
|
-
//# sourceMappingURL=main.
|
|
1
|
+
/*! For license information please see main.178e4472.js.LICENSE.txt */
|
|
2
|
+
!function(){var e={908:function(e,t,n){var r=n(8136)(n(7009),"DataView");e.exports=r},9676:function(e,t,n){var r=n(5403),o=n(2747),i=n(6037),a=n(4154),l=n(7728);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},8384:function(e,t,n){var r=n(3894),o=n(8699),i=n(4957),a=n(7184),l=n(7109);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},5797:function(e,t,n){var r=n(8136)(n(7009),"Map");e.exports=r},8059:function(e,t,n){var r=n(4086),o=n(9255),i=n(9186),a=n(3423),l=n(3739);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},8319:function(e,t,n){var r=n(8136)(n(7009),"Promise");e.exports=r},3924:function(e,t,n){var r=n(8136)(n(7009),"Set");e.exports=r},692:function(e,t,n){var r=n(8059),o=n(5774),i=n(1596);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=o,a.prototype.has=i,e.exports=a},2854:function(e,t,n){var r=n(8384),o=n(511),i=n(835),a=n(707),l=n(8832),s=n(5077);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=l,u.prototype.set=s,e.exports=u},7197:function(e,t,n){var r=n(7009).Symbol;e.exports=r},6219:function(e,t,n){var r=n(7009).Uint8Array;e.exports=r},7091:function(e,t,n){var r=n(8136)(n(7009),"WeakMap");e.exports=r},4903:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},7538:function(e,t,n){var r=n(6478),o=n(4963),i=n(3629),a=n(5174),l=n(6800),s=n(9102),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&s(e),p=n||c||f||d,h=p?r(e.length,String):[],v=h.length;for(var y in e)!t&&!u.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,v))||h.push(y);return h}},1705:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},7897:function(e){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}},7112:function(e,t,n){var r=n(9231);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},1986:function(e,t,n){var r=n(1705),o=n(3629);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},9066:function(e,t,n){var r=n(7197),o=n(1587),i=n(3581),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)?o(e):i(e)}},4906:function(e,t,n){var r=n(9066),o=n(3141);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},1848:function(e,t,n){var r=n(3355),o=n(3141);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,l))}},3355:function(e,t,n){var r=n(2854),o=n(5305),i=n(2206),a=n(8078),l=n(8383),s=n(3629),u=n(5174),c=n(9102),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,m){var g=s(e),b=s(t),w=g?d:l(e),x=b?d:l(t),_=(w=w==f?p:w)==p,k=(x=x==f?p:x)==p,E=w==x;if(E&&u(e)){if(!u(t))return!1;g=!0,_=!1}if(E&&!_)return m||(m=new r),g||c(e)?o(e,t,n,v,y,m):i(e,t,w,n,v,y,m);if(!(1&n)){var O=_&&h.call(e,"__wrapped__"),S=k&&h.call(t,"__wrapped__");if(O||S){var j=O?e.value():e,C=S?t.value():t;return m||(m=new r),y(j,C,n,v,m)}}return!!E&&(m||(m=new r),a(e,t,n,v,y,m))}},6703:function(e,t,n){var r=n(4786),o=n(257),i=n(8092),a=n(7907),l=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:l).test(a(e))}},8150:function(e,t,n){var r=n(9066),o=n(4635),i=n(3141),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 i(e)&&o(e.length)&&!!a[r(e)]}},3654:function(e,t,n){var r=n(2936),o=n(8836),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6478:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},6194:function(e){e.exports=function(e){return function(t){return e(t)}}},75:function(e){e.exports=function(e,t){return e.has(t)}},5525:function(e,t,n){var r=n(7009)["__core-js_shared__"];e.exports=r},5305:function(e,t,n){var r=n(692),o=n(7897),i=n(75);e.exports=function(e,t,n,a,l,s){var u=1&n,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=-1,v=!0,y=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h<c;){var m=e[h],g=t[h];if(a)var b=u?a(g,m,h,t,e,s):a(m,g,h,e,t,s);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(m===e||l(m,e,n,a,s)))return y.push(t)}))){v=!1;break}}else if(m!==g&&!l(m,g,n,a,s)){v=!1;break}}return s.delete(e),s.delete(t),v}},2206:function(e,t,n){var r=n(7197),o=n(6219),i=n(9231),a=n(5305),l=n(234),s=n(2230),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,f,d){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||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+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 p=l;case"[object Set]":var h=1&r;if(p||(p=s),e.size!=t.size&&!h)return!1;var v=d.get(e);if(v)return v==t;r|=2,d.set(e,t);var y=a(p(e),p(t),r,u,f,d);return d.delete(e),y;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},8078:function(e,t,n){var r=n(8248),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var s=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!s)return!1;for(var f=c;f--;){var d=u[f];if(!(s?d in t:o.call(t,d)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var v=!0;l.set(e,t),l.set(t,e);for(var y=s;++f<c;){var m=e[d=u[f]],g=t[d];if(i)var b=s?i(g,m,d,t,e,l):i(m,g,d,e,t,l);if(!(void 0===b?m===g||a(m,g,n,i,l):b)){v=!1;break}y||(y="constructor"==d)}if(v&&!y){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return l.delete(e),l.delete(t),v}},1032:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8248:function(e,t,n){var r=n(1986),o=n(5918),i=n(2742);e.exports=function(e){return r(e,i,o)}},2799:function(e,t,n){var r=n(5964);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8136:function(e,t,n){var r=n(6703),o=n(40);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},1587:function(e,t,n){var r=n(7197),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(s){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},5918:function(e,t,n){var r=n(4903),o=n(8174),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},8383:function(e,t,n){var r=n(908),o=n(5797),i=n(8319),a=n(3924),l=n(7091),s=n(9066),u=n(7907),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",v=u(r),y=u(o),m=u(i),g=u(a),b=u(l),w=s;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=f||a&&w(new a)!=d||l&&w(new l)!=p)&&(w=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case v:return h;case y:return c;case m:return f;case g:return d;case b:return p}return t}),e.exports=w},40:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},5403:function(e,t,n){var r=n(9620);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2747:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6037:function(e,t,n){var r=n(9620),o=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 o.call(t,e)?t[e]:void 0}},4154:function(e,t,n){var r=n(9620),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},7728:function(e,t,n){var r=n(9620);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}},6800:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},5964:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},257:function(e,t,n){var r=n(5525),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},2936:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3894:function(e){e.exports=function(){this.__data__=[],this.size=0}},8699:function(e,t,n){var r=n(7112),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},4957:function(e,t,n){var r=n(7112);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7184:function(e,t,n){var r=n(7112);e.exports=function(e){return r(this.__data__,e)>-1}},7109:function(e,t,n){var r=n(7112);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},4086:function(e,t,n){var r=n(9676),o=n(8384),i=n(5797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},9255:function(e,t,n){var r=n(2799);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},9186:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).get(e)}},3423:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).has(e)}},3739:function(e,t,n){var r=n(2799);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},9620:function(e,t,n){var r=n(8136)(Object,"create");e.exports=r},8836:function(e,t,n){var r=n(2709)(Object.keys,Object);e.exports=r},9494:function(e,t,n){e=n.nmd(e);var r=n(1032),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=l},3581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},7009:function(e,t,n){var r=n(1032),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},5774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1596:function(e){e.exports=function(e){return this.__data__.has(e)}},2230:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},511:function(e,t,n){var r=n(8384);e.exports=function(){this.__data__=new r,this.size=0}},835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},707:function(e){e.exports=function(e){return this.__data__.get(e)}},8832:function(e){e.exports=function(e){return this.__data__.has(e)}},5077:function(e,t,n){var r=n(8384),o=n(5797),i=n(8059);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},7907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},9231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},4963:function(e,t,n){var r=n(4906),o=n(3141),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},3629:function(e){var t=Array.isArray;e.exports=t},1473:function(e,t,n){var r=n(4786),o=n(4635);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},5174:function(e,t,n){e=n.nmd(e);var r=n(7009),o=n(9488),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s},8111:function(e,t,n){var r=n(1848);e.exports=function(e,t){return r(e,t)}},4786:function(e,t,n){var r=n(9066),o=n(8092);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},4635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},9102:function(e,t,n){var r=n(8150),o=n(6194),i=n(9494),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},2742:function(e,t,n){var r=n(7538),o=n(3654),i=n(1473);e.exports=function(e){return i(e)?r(e):o(e)}},8174:function(e){e.exports=function(){return[]}},9488:function(e){e.exports=function(){return!1}},1725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var a,l,s=o(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(s[c]=a[c]);if(t){l=t(a);for(var f=0;f<l.length;f++)r.call(a,l[f])&&(s[l[f]]=a[l[f]])}}return s}},6921:function(e){var t;"undefined"!==typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),l=n(46),s=n(47),u=n(48),c=n(49),f=n(12),d=n(32),p=n(33),h=n(31),v=n(1),y={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:s.default,Inline:l.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};t.default=y},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=o;var i,a={},l={},s={},u={};function c(e,t){var n;if(void 0===t&&(t=i.ANY),"string"===typeof e)n=u[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"===typeof e)e&i.LEVEL&i.BLOCK?n=u.block:e&i.LEVEL&i.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=l[r[o]])break;n=n||s[e.tagName]}return null==n?null:t&i.LEVEL&n.scope&&t&i.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(i=t.Scope||(t.Scope={})),t.create=function(e,t){var n=c(e);if(null==n)throw new o("Unable to create "+e+" blot");var r=n,i=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(i,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=c,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!==typeof r.blotName&&"string"!==typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");if(u[r.blotName||r.attrName]=r,"string"===typeof r.keyName)a[r.keyName]=r;else if(null!=r.className&&(l[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var i=Array.isArray(r.tagName)?r.tagName:[r.tagName];i.forEach((function(e){null!=s[e]&&null!=r.className||(s[e]=r)}))}return r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"===typeof n){if("number"===typeof e.delete&&"number"===typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"===typeof n.delete&&null!=e.insert&&(t-=1,"object"!==typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),o=0;o<t&&r.hasNext();){var i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=a.length(i)}return new s(n)},s.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],i=n.peek();if(null!=i&&"number"===typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),r.push(t.next());i.retain-l>0&&n.next(i.retain-l)}for(var u=new s(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),d=n.next(c);if("number"===typeof d.retain){var p={};"number"===typeof f.retain?p.retain=c:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"===typeof f.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&o(u.ops[u.ops.length-1],p)){var v=new s(t.rest());return u.concat(v).chop()}}else"number"===typeof d.delete&&"number"===typeof f.retain&&u.push(d)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=r(n[0],n[1],t),c=a.iterator(this.ops),f=a.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),i.push(f.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var l=c.next(n),s=f.next(n);o(l.insert,s.insert)?i.retain(n,a.attributes.diff(l.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),u="string"===typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&e(r,{},o)},s.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),l=n.next(i),u=r.next(i);if(l.delete)continue;u.delete?o.push(u):o.retain(i,a.attributes.transform(l.attributes,u.attributes,t))}else o.retain(a.length(n.next()));return o.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=s},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},l=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)},s=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,c,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"===typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=u(f,n),f!==(o=u(t,n))&&(h&&o&&(l(o)||(i=a(o)))?(i?(i=!1,c=r&&a(r)?r:[]):c=r&&l(r)?r:{},s(f,{name:n,newValue:e(h,c,o)})):"undefined"!==typeof o&&s(f,{name:n,newValue:o}));return f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=f(n(3)),a=f(n(2)),l=f(n(0)),s=f(n(16)),u=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"===typeof n&&n.endsWith("\n")){var i=l.default.create(y.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(l.default.Embed);v.scope=l.default.Scope.BLOCK_BLOT;var y=function(e){function t(e){d(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),m(t))}),new a.default).insert("\n",m(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,i){n<=0||(l.default.query(r,l.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,i),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof s.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:m(e.parent,t))}y.blotName="block",y.tagName="P",y.defaultChild="break",y.allowedChildren=[u.default,l.default.Embed,c.default],t.bubbleFormats=m,t.BlockEmbed=v,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var 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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=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}}();n(50);var a=y(n(2)),l=y(n(14)),s=y(n(8)),u=y(n(9)),c=y(n(0)),f=n(15),d=y(f),p=y(n(3)),h=y(n(10)),v=y(n(34));function y(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,h.default)("quill"),w=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(g(this,e),this.options=x(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new d.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;_.call(n,(function(){return n.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var o=e.attrName||e.blotName;"string"===typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=k(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],_.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return _.call(this,(function(){var r=n.getSelection(!0),o=new a.default;if(null==r)return o;if(c.default.query(e,c.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,m({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,m({},e,t))}return n.setSelection(r,s.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(e,t,n,r,i){var a,l=this,s=k(e,t,n,r,i),u=o(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],_.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var a,l=this,s=k(e,t,n,r,i),u=o(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],_.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return _.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,i){var a,l=this,s=k(e,0,n,r,i),u=o(s,4);return e=u[0],a=u[2],i=u[3],_.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=k(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],_.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return _.call(this,(function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"===typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=k(t,n,r),a=o(i,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(t,n),r),r!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return _.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function x(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=v.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},w.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function _(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=E(o,l,t):0!==r&&(o=E(o,n,r,t)),this.setSelection(o,s.default.sources.SILENT)),l.length()>0){var u,c,f=[s.default.events.TEXT_CHANGE,l,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(f)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return l}function k(e,t,n,o,i){var a={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(i=o,o=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,i=o):"string"===typeof n&&(null!=o?a[n]=o:i=n),[e,t,a,i=i||s.default.sources.API]}function E(e,t,n,r){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==s.default.sources.USER)})),c=o(u,2);i=c[0],l=c[1]}else{var d=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=o(d,2);i=p[0],l=p[1]}return new f.Range(i,l-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=s.default.events,w.sources=s.default.sources,w.version="1.3.7",w.imports={delta:a.default,parchment:c.default,"core/module":u.default,"core/theme":v.default},t.expandConfig=x,t.overload=k,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(7)),a=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,i){if(t.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var l=this.isolate(e,n);i&&l.wrap(r,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);c.allowedChildren=[c,a.default.Embed,i.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default.Text);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}var l=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var s=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",l.error),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){l.log.apply(l,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);s.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},s.sources={API:"api",SILENT:"silent",USER:"user"},t.default=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};o.DEFAULTS={},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return r.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){o=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,o=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var u,c;if(l(e)||l(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(s(e)){if(!s(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var f=o(e),d=o(t)}catch(p){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),u=f.length-1;u>=0;u--)if(f[u]!=d[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!a(e[c],t[c],n))return!1;return typeof e===typeof t}(e,t,n))};function l(e){return null===e||void 0===e}function s(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&"function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=f(n(2)),l=f(n(0)),s=f(n(4)),u=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(u.default);v.blotName="code",v.tagName="CODE";var y=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(c.default,this.length()-1),a=r(o,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=l.default.query(r,l.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,s=i-a+1,u=this.isolate(a,s),c=u.next;u.format(r,o),c instanceof t&&c.formatAt(0,e-a+n-s,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(c.default,e),i=r(o,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);y.blotName="code-block",y.tagName="PRE",y.TAB=" ",t.Code=v,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=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}}(),a=m(n(2)),l=m(n(20)),s=m(n(0)),u=m(n(13)),c=m(n(24)),f=n(4),d=m(f),p=m(n(16)),h=m(n(21)),v=m(n(11)),y=m(n(3));function m(e){return e&&e.__esModule?e:{default:e}}var g=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new a.default)}(e)).reduce((function(e,a){var u=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),v=o(h,2),m=v[0],g=v[1],b=(0,y.default)({},(0,f.bubbleFormats)(m));if(m instanceof d.default){var w=m.descendant(s.default.Leaf,g),x=o(w,1)[0];b=(0,y.default)(b,(0,f.bubbleFormats)(x))}c=l.default.attributes.diff(b,c)||{}}else if("object"===r(a.insert)){var _=Object.keys(a.insert)[0];if(null==_)return e;t.scroll.insertAt(e,_,a.insert[_])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var l=e-t.offset(n.scroll),s=t.newlineIndex(l+a)-l+1;t.formatAt(l,s,o,r[o])}else t.format(o,r[o]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof d.default?n.push(t):t instanceof s.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=w((0,f.bubbleFormats)(n),t)}return t}));return y.default.apply(y.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===d.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),l=i[0],s=i[1],c=0,f=new a.default;null!=l&&(c=l instanceof u.default?l.newlineIndex(s)-s+1:l.length()-s,f=l.delta().slice(s,s+c-1).insert("\n"));var d=this.getContents(e,t+c).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(g)&&s.default.find(t[0].target)){var o=s.default.find(t[0].target),i=(0,f.bubbleFormats)(o),l=o.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),d=(new a.default).insert(u),p=(new a.default).insert(o.value()),h=(new a.default).retain(l).concat(d.diff(p,n));e=h.reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,v.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function w(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=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}}(),i=u(n(0)),a=u(n(21)),l=u(n(11)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(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)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=(0,u(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;f(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&r.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(o,i,a,l)}})),this.update(s.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),a=r(i,2),l=a[0],s=a[1];if(null==l)return null;var u=l.position(s,!0),c=r(u,2);o=c[0],s=c[1];var f=document.createRange();if(t>0){f.setStart(o,s);var d=this.scroll.leaf(e+t),p=r(d,2);if(l=p[0],s=p[1],null==l)return null;var h=l.position(s,!0),v=r(h,2);return o=v[0],s=v[1],f.setEnd(o,s),f.getBoundingClientRect()}var y="left",m=void 0;return o instanceof Text?(s<o.data.length?(f.setStart(o,s),f.setEnd(o,s+1)):(f.setStart(o,s-1),f.setEnd(o,s),y="right"),m=f.getBoundingClientRect()):(m=l.domNode.getBoundingClientRect(),s>0&&(y="right")),{bottom:m.top+m.height,height:m.height,left:m[y],right:m[y],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],a=n[1],l=i.default.find(o,!0),s=l.offset(t.scroll);return 0===a?s:l instanceof i.default.Container?s+l.length():s+l.index(o,a)})),a=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(c(o)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!v(this.root,e.startContainer)||!e.collapsed&&!v(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,l=t.scroll.leaf(e),s=r(l,2),u=s[0],c=s[1],f=u.position(c,0!==n),d=r(f,2);a=d[0],c=d[1],o.push(a,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=r(i,1)[0],l=a;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,o));l=r(s,1)[0]}if(null!=a&&null!=l){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,r),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"===typeof t&&(n=t,t=!1),d.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],u=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[s.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(d)),e!==s.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),e}();function v(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(44),i=n(30),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=s(t);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],i=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,i))),i-=a})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var l=null==n?a.create("text",t):a.create(t,n);this.appendChild(l)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],i=r[1],a=[[this,e]];return o instanceof t?a.concat(o.path(i,n)):(null!=o&&a.push([o,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,o){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var r=s(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(i.default);function s(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n(31),a=n(17),l=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new i.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=l.query(e);n instanceof o.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(a.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(30),i=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=i.Scope.INLINE_BLOT,t}(o.default);t.default=a},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e.delete?e.delete:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"===typeof t.retain?o.retain=e:"string"===typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index].delete?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(l){t=function(){}}try{n=Set}catch(l){n=function(){}}try{r=Promise}catch(l){r=function(){}}function o(i,l,s,u,c){"object"===typeof l&&(s=l.depth,u=l.prototype,c=l.includeNonEnumerable,l=l.circular);var f=[],d=[],p="undefined"!=typeof Buffer;return"undefined"==typeof l&&(l=!0),"undefined"==typeof s&&(s=1/0),function i(s,h){if(null===s)return null;if(0===h)return s;var v,y;if("object"!=typeof s)return s;if(e(s,t))v=new t;else if(e(s,n))v=new n;else if(e(s,r))v=new r((function(e,t){s.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(o.__isArray(s))v=[];else if(o.__isRegExp(s))v=new RegExp(s.source,a(s)),s.lastIndex&&(v.lastIndex=s.lastIndex);else if(o.__isDate(s))v=new Date(s.getTime());else{if(p&&Buffer.isBuffer(s))return v=Buffer.allocUnsafe?Buffer.allocUnsafe(s.length):new Buffer(s.length),s.copy(v),v;e(s,Error)?v=Object.create(s):"undefined"==typeof u?(y=Object.getPrototypeOf(s),v=Object.create(y)):(v=Object.create(u),y=u)}if(l){var m=f.indexOf(s);if(-1!=m)return d[m];f.push(s),d.push(v)}for(var g in e(s,t)&&s.forEach((function(e,t){var n=i(t,h-1),r=i(e,h-1);v.set(n,r)})),e(s,n)&&s.forEach((function(e){var t=i(e,h-1);v.add(t)})),s){var b;y&&(b=Object.getOwnPropertyDescriptor(y,g)),b&&null==b.set||(v[g]=i(s[g],h-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(s);for(g=0;g<w.length;g++){var x=w[g];(!(k=Object.getOwnPropertyDescriptor(s,x))||k.enumerable||c)&&(v[x]=i(s[x],h-1),k.enumerable||Object.defineProperty(v,x,{enumerable:!1}))}}if(c){var _=Object.getOwnPropertyNames(s);for(g=0;g<_.length;g++){var k,E=_[g];(k=Object.getOwnPropertyDescriptor(s,E))&&k.enumerable||(v[E]=i(s[E],h-1),Object.defineProperty(v,E,{enumerable:!1}))}}return v}(i,s)}function i(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=i,o.__isDate=function(e){return"object"===typeof e&&"[object Date]"===i(e)},o.__isArray=function(e){return"object"===typeof e&&"[object Array]"===i(e)},o.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===i(e)},o.__getRegExpFlags=a,o}();"object"===typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=p(n(0)),l=p(n(8)),s=n(4),u=p(s),c=p(n(16)),f=p(n(13)),d=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof u.default||e instanceof s.BlockEmbed}var v=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var o=this.line(e),a=r(o,2),l=a[0],u=a[1],d=this.line(e+n),p=r(d,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&l!==p&&u>0){if(l instanceof s.BlockEmbed||p instanceof s.BlockEmbed)return void this.optimize();if(l instanceof f.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var v=p.newlineIndex(0);v>-1&&p.split(v+1)}var y=p.children.head instanceof c.default?null:p.children.head;l.moveChildren(p,y),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var l=a.default.create(n,r);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,(function(t,n,r){h(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,n,i))),i-=r})),o};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[u.default,s.BlockEmbed,d.default],t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var 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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=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}}(),a=v(n(21)),l=v(n(11)),s=v(n(3)),u=v(n(2)),c=v(n(20)),f=v(n(0)),d=v(n(5)),p=v(n(10)),h=v(n(9));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=(0,p.default)("quill:keyboard"),g=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},E),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},x),r.addBinding({key:t.keys.DELETE},{collapsed:!0},_)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},x),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},_)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},k),r.addBinding({key:t.keys.DELETE},{collapsed:!1},k),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},x),r.listen(),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=j(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=j(e);if(null==r||null==r.key)return m.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,s.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=o(u,2),d=c[0],p=c[1],h=e.quill.getLeaf(s.index),v=o(h,2),y=v[0],m=v[1],g=0===s.length?[y,m]:e.quill.getLeaf(s.index+s.length),b=o(g,2),w=b[0],x=b[1],_=y instanceof f.default.Text?y.value().slice(0,m):"",k=w instanceof f.default.Text?w.value().slice(x):"",E={collapsed:0===s.length,empty:0===s.length&&d.length()<=1,format:e.quill.getFormat(s),offset:p,prefix:_,suffix:k};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed)return!1;if(null!=t.empty&&t.empty!==E.empty)return!1;if(null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==E.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,l.default)(t.format[e],E.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix))&&!(null!=t.suffix&&!t.suffix.test(E.suffix))&&!0!==t.handler.call(e,s,E)}))&&n.preventDefault()}}}}))}}]),t}(h.default);function w(e,t){var n,r=e===b.keys.LEFT?"prefix":"suffix";return y(n={key:e,shiftKey:t,altKey:null},r,/^$/),y(n,"handler",(function(n){var r=n.index;e===b.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof f.default.Embed)||(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),!1)})),n}function x(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=o(a,1)[0];if(null!=l&&l.length()>1){var s=r.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,d.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-f,f,i,d.default.sources.USER),this.quill.focus()}}function _(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(e.index),l=o(a,1)[0];if(t.offset>=l.length()-1){var s=this.quill.getLine(e.index+1),u=o(s,1)[0];if(u){var f=l.formats(),p=this.quill.getFormat(e.index,1);r=c.default.attributes.diff(f,p)||{},i=u.length()}}this.quill.deleteText(e.index,n,d.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,d.default.sources.USER)}}function k(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=c.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,d.default.sources.USER),this.quill.setSelection(e.index,d.default.sources.SILENT),this.quill.focus()}function E(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],d.default.sources.USER))}))}function O(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=f.default.query("code-block"),r=t.index,i=t.length,a=this.quill.scroll.descendant(n,r),l=o(a,2),s=l[0],u=l[1];if(null!=s){var c=this.quill.getIndex(s),p=s.newlineIndex(u,!0)+1,h=s.newlineIndex(c+u+i),v=s.domNode.textContent.slice(p,h).split("\n");u=0,v.forEach((function(t,o){e?(s.insertAt(p+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,i,d.default.sources.SILENT)}}}}function S(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],d.default.sources.USER)}}}function j(e){if("string"===typeof e||"number"===typeof e)return j({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"===typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[g]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:S("bold"),italic:S("italic"),underline:S("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",d.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":O(!0),"outdent code-block":O(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,d.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,d.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,d.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(0,s.default)({},r.formats(),{list:"checked"}),l=(new u.default).retain(e.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],a=r[1],l=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),a=i[0],l=i[1];if(l>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",d.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:s});this.quill.updateContents(c,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,d.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(new u.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":w(b.keys.LEFT,!1),"embed left shift":w(b.keys.LEFT,!0),"embed right":w(b.keys.RIGHT,!1),"embed right shift":w(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=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}}(),a=s(n(0)),l=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,i=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];o=u[0],i=u[1],s=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(o=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,s].map((function(e){return Math.max(0,Math.min(o.data.length,e-1))})),d=r(f,2);return i=d[0],s=d[1],{startNode:o,startOffset:i,endNode:o,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\ufeff",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=n(4),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);u.allowedChildren=[i.default,o.BlockEmbed,u],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(l.default.Attributor.Style),f=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),d=new c("color","color",{scope:l.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=f,t.ColorStyle=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);function c(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},o=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}}(),i=l(n(23)),a=l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}var s=0;function u(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+s,s+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(n(0)),o=m(n(5)),i=n(4),a=m(i),l=m(n(16)),s=m(n(25)),u=m(n(24)),c=m(n(35)),f=m(n(6)),d=m(n(22)),p=m(n(7)),h=m(n(55)),v=m(n(42)),y=m(n(23));function m(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":v.default,"modules/keyboard":y.default}),r.default.register(a.default,l.default,u.default,f.default,d.default,p.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();function o(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){o(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(o(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var s="\ufeff",u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(s),n.rightGuard=document.createTextNode(s),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(s).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var o=this.prev.length();this.prev.insertAt(o,r),t={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=s,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(i.default.Embed);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new i.default.Attributor.Attribute("align","align",a),s=new i.default.Attributor.Class("align","ql-align",a),u=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=l,t.AlignClass=s,t.AlignStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=n(26),l=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),s=new a.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},l=new i.default.Attributor.Attribute("direction","dir",a),s=new i.default.Attributor.Class("direction","ql-direction",a),u=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=l,t.DirectionClass=s,t.DirectionStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new l.default.Attributor.Class("font","ql-font",c),d=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(l.default.Attributor.Style),p=new d("font","font-family",c);t.FontStyle=p,t.FontClass=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=l},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=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}}(),o=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,o){e!==i.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var r=s(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function s(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=h(n(3)),a=h(n(2)),l=h(n(8)),s=h(n(23)),u=h(n(34)),c=h(n(59)),f=h(n(60)),d=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function m(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],_=["small",!1,"large","huge"],k=function(e){function t(e,n){v(this,t);var r=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),r}return m(t,e),r(t,[{key:"addModule",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"===typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&O(e,g),new f.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&O(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?O(e,w):e.classList.contains("ql-header")?O(e,x):e.classList.contains("ql-size")&&O(e,_)),new d.default(e)})),this.quill.on(l.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(u.default);k.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),l.default.sources.USER),e.quill.setSelection(r.index+1,l.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,n){v(this,t);var r=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return m(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,l.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",l.default.sources.USER),this.quill.setSelection(r+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=E,t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],a=e-o[1],l=this.iterator(i);(r=l())&&a<e+t;){var s=r.length();e>a?n(r,e-a,Math.min(t,a+s-e)):n(r,0,Math.min(s,e+t-a)),a+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),i=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)t.push(a.pop());for(var l=function e(t,n){void 0===n&&(n=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),n&&e(t.parent))},s=function e(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(e),t.optimize(n))},u=t,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(e){var t=i.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(i.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=i.find(e,!1);l(t,!1),t instanceof o.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(s),a=(u=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)t.push(a.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=i.find(e.target,!0);return null==t?null:null==t.domNode[i.DATA_KEY].mutations?(t.domNode[i.DATA_KEY].mutations=[e],t):(t.domNode[i.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[i.DATA_KEY]&&e.update(e.domNode[i.DATA_KEY].mutations||[],n)})),null!=this.domNode[i.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=i.Scope.BLOCK_BLOT,t.tagName="DIV",t}(o.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),i=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof o.default||(e=e.wrap(t.blotName,!0)),i.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||i.query(r,i.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=i.Scope.INLINE_BLOT,t.tagName="SPAN",t}(o.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),i=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=i.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),a=i.create(n,r);o.parent.insertBefore(a,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=i.Scope.BLOCK_BLOT,t.tagName="P",t}(o.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var 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])};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)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(19),i=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=i.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=i.Scope.INLINE_BLOT,t}(o.default);t.default=a},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function r(e,t,s){if(e==t)return e?[[0,e]]:[];(s<0||e.length<s)&&(s=null);var c=i(e,t),f=e.substring(0,c);c=a(e=e.substring(c),t=t.substring(c));var d=e.substring(e.length-c),p=function(e,t){var l;if(!e)return[[1,t]];if(!t)return[[n,e]];var s=e.length>t.length?e:t,u=e.length>t.length?t:e,c=s.indexOf(u);if(-1!=c)return l=[[1,s.substring(0,c)],[0,u],[1,s.substring(c+u.length)]],e.length>t.length&&(l[0][0]=l[2][0]=n),l;if(1==u.length)return[[n,e],[1,t]];var f=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,l,s,u=e.substring(n,n+Math.floor(e.length/4)),c=-1,f="";-1!=(c=t.indexOf(u,c+1));){var d=i(e.substring(n),t.substring(c)),p=a(e.substring(0,n),t.substring(0,c));f.length<p+d&&(f=t.substring(c-p,c)+t.substring(c,c+d),r=e.substring(0,n-p),o=e.substring(n+d),l=t.substring(0,c-p),s=t.substring(c+d))}return 2*f.length>=e.length?[r,o,l,s,f]:null}var l,s,u,c,f,d=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;l=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(s=l[0],u=l[1],c=l[2],f=l[3]):(c=l[0],f=l[1],s=l[2],u=l[3]);var h=l[4];return[s,u,c,f,h]}(e,t);if(f){var d=f[0],p=f[1],h=f[2],v=f[3],y=f[4],m=r(d,h),g=r(p,v);return m.concat([[0,y]],g)}return function(e,t){for(var r=e.length,i=t.length,a=Math.ceil((r+i)/2),l=a,s=2*a,u=new Array(s),c=new Array(s),f=0;f<s;f++)u[f]=-1,c[f]=-1;u[l+1]=0,c[l+1]=0;for(var d=r-i,p=d%2!=0,h=0,v=0,y=0,m=0,g=0;g<a;g++){for(var b=-g+h;b<=g-v;b+=2){for(var w=l+b,x=(S=b==-g||b!=g&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1)-b;S<r&&x<i&&e.charAt(S)==t.charAt(x);)S++,x++;if(u[w]=S,S>r)v+=2;else if(x>i)h+=2;else if(p&&(E=l+d-b)>=0&&E<s&&-1!=c[E]&&S>=(k=r-c[E]))return o(e,t,S,x)}for(var _=-g+y;_<=g-m;_+=2){for(var k,E=l+_,O=(k=_==-g||_!=g&&c[E-1]<c[E+1]?c[E+1]:c[E-1]+1)-_;k<r&&O<i&&e.charAt(r-k-1)==t.charAt(i-O-1);)k++,O++;if(c[E]=k,k>r)m+=2;else if(O>i)y+=2;else if(!p){var S;if((w=l+d-_)>=0&&w<s&&-1!=u[w])if(x=l+(S=u[w])-w,S>=(k=r-k))return o(e,t,S,x)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-c),t=t.substring(0,t.length-c));return f&&p.unshift([0,f]),d&&p.push([0,d]),l(p),null!=s&&(p=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,o=0;o<e.length;o++){var i=e[o];if(i[0]===n||0===i[0]){var a=r+i[1].length;if(t===a)return[o+1,e];if(t<a){e=e.slice();var l=t-r,s=[i[0],i[1].slice(0,l)],u=[i[0],i[1].slice(l)];return e.splice(o,1,s,u),[o+1,e]}r=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=r[1],i=r[0],a=o[i],l=o[i+1];if(null==a)return e;if(0!==a[0])return e;if(null!=l&&a[1]+l[1]===l[1]+a[1])return o.splice(i,2,l,a),u(o,i,2);if(null!=l&&0===l[1].indexOf(a[1])){o.splice(i,2,[l[0],a[1]],[0,a[1]]);var s=l[1].slice(a[1].length);return s.length>0&&o.splice(i+2,0,[l[0],s]),u(o,i,3)}return e}(p,s)),p=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},i=2;i<e.length;i+=1)0===e[i-2][0]&&o(e[i-2][1])&&e[i-1][0]===n&&r(e[i-1][1])&&1===e[i][0]&&r(e[i][1])&&(t=!0,e[i-1][1]=e[i-2][1].slice(-1)+e[i-1][1],e[i][1]=e[i-2][1].slice(-1)+e[i][1],e[i-2][1]=e[i-2][1].slice(0,-1));if(!t)return e;var a=[];for(i=0;i<e.length;i+=1)e[i][1].length>0&&a.push(e[i]);return a}(p)}function o(e,t,n,o){var i=e.substring(0,n),a=t.substring(0,o),l=e.substring(n),s=t.substring(o),u=r(i,a),c=r(l,s);return u.concat(c)}function i(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function l(e){e.push([0,""]);for(var t,r=0,o=0,s=0,u="",c="";r<e.length;)switch(e[r][0]){case 1:s++,c+=e[r][1],r++;break;case n:o++,u+=e[r][1],r++;break;case 0:o+s>1?(0!==o&&0!==s&&(0!==(t=i(c,u))&&(r-o-s>0&&0==e[r-o-s-1][0]?e[r-o-s-1][1]+=c.substring(0,t):(e.splice(0,0,[0,c.substring(0,t)]),r++),c=c.substring(t),u=u.substring(t)),0!==(t=a(c,u))&&(e[r][1]=c.substring(c.length-t)+e[r][1],c=c.substring(0,c.length-t),u=u.substring(0,u.length-t))),0===o?e.splice(r-s,o+s,[1,c]):0===s?e.splice(r-o,o+s,[n,u]):e.splice(r-o-s,o+s,[n,u],[1,c]),r=r-o-s+(o?1:0)+(s?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,s=0,o=0,u="",c=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),f=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),f=!0)),r++;f&&l(e)}var s=r;function u(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}s.INSERT=1,s.DELETE=n,s.EQUAL=0,e.exports=s},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"===typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,l=new Array(a);i<a;i++)l[i]=o[i].fn;return l},a.prototype.emit=function(e,t,n,o,i,a){var l=r?r+e:e;if(!this._events[l])return!1;var s,u,c=this._events[l],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,o),!0;case 5:return c.fn.call(c.context,t,n,o,i),!0;case 6:return c.fn.call(c.context,t,n,o,i,a),!0}for(u=1,s=new Array(f-1);u<f;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var d,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,o);break;default:if(!s)for(d=1,s=new Array(f-1);d<f;d++)s[d-1]=arguments[d];c[u].fn.apply(c[u].context,s)}}return!0},a.prototype.on=function(e,t,n){var o=new i(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(e,t,n){var o=new i(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0===--this._eventsCount?this._events=new o:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||(0===--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var s=0,u=[],c=l.length;s<c;s++)(l[s].fn!==t||i&&!l[s].once||n&&l[s].context!==n)&&u.push(l[s]);u.length?this._events[a]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var 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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=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}}(),a=b(n(3)),l=b(n(2)),s=b(n(0)),u=b(n(5)),c=b(n(10)),f=b(n(9)),d=n(36),p=n(37),h=b(n(13)),v=n(26),y=n(38),m=n(39),g=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=(0,c.default)("quill:clipboard"),_="__ql-matcher",k=[[Node.TEXT_NODE,M],[Node.TEXT_NODE,D],["br",function(e,t){return N(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===C(e).fontStyle&&(n.italic=!0),r.fontWeight&&(C(e).fontWeight.startsWith("bold")||parseInt(C(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=j(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!N(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(s.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",T.bind(T,"bold")],["i",T.bind(T,"italic")],["style",function(){return new l.default}]],E=[d.AlignAttribute,y.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),O=[d.AlignStyle,p.BackgroundStyle,v.ColorStyle,y.DirectionStyle,m.FontStyle,g.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],k.concat(r.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],a=t[1];(n.matchVisual||a!==R)&&r.addMatcher(i,a)})),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],s=i[1],u=A(this.container,a,s);return N(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new l.default).retain(u.length()-1).delete(1))),x.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new l.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,u.default.sources.USER),t.quill.setSelection(r.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[_]=e[_]||[],e[_].push(l)}))}})),[t,n]}}]),t}(f.default);function j(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return j(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},w({},t,n),r.attributes))}),new l.default)}function C(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function N(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!==typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function P(e){if(0===e.childNodes.length)return!1;var t=C(e);return["block","list-item"].indexOf(t.display)>-1}function A(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var i=A(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[_]||[]).reduce((function(e,t){return t(o,e)}),i)),r.concat(i)}),new l.default):new l.default}function T(e,t,n){return j(n,e,!0)}function L(e,t){var n=s.default.Attributor.Attribute.keys(e),r=s.default.Attributor.Class.keys(e),o=s.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=E[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=O[t])||n.attrName!==t&&n.keyName!==t||(n=O[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=j(t,i)),t}function I(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new l.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(t=j(t,n.blotName,n.formats(e)));return t}function D(e,t){return N(t,"\n")||(P(e)||t.length()>0&&e.nextSibling&&P(e.nextSibling))&&t.insert("\n"),t}function R(e,t){if(P(e)&&null!=e.nextElementSibling&&!N(t,"\n\n")){var n=e.offsetHeight+parseFloat(C(e).marginTop)+parseFloat(C(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function M(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!C(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&P(e.parentNode)||null!=e.previousSibling&&P(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&P(e.parentNode)||null!=e.nextSibling&&P(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}S.DEFAULTS={matchers:[],matchVisual:!0},t.default=S,t.matchAttributor=L,t.matchBlot=I,t.matchNewline=D,t.matchSpacing=R,t.matchText=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=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}}(),i=c(n(2)),a=c(n(0)),l=c(n(5)),s=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var d=(0,s.default)("quill:toolbar"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");v(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"===typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=r(e,1)[0];i.update(t)})),i):(o=d.error("Container required for toolbar",i.options),f(i,o))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void d.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void d.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];s=!u.hasAttribute("selected")&&(u.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=r(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,s)),l.default.sources.USER)}else t.quill.format(n,s,l.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o=r(n,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"===typeof s&&(s=s.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+s+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function h(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function v(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"===typeof e)h(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):h(n,t,r)}})),e.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=p,t.addControls=v},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var a=o.bottom-o.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=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}}(),a=p(n(3)),l=p(n(8)),s=n(43),u=p(s),c=p(n(27)),f=n(15),d=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function y(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],g=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return y(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),d.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(u.default);g.DEFAULTS=(0,a.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){h(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return y(t,e),i(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(t,n,o){if(null!=t){if(0===t.length&&o===l.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),a=r(i,2),s=a[0],u=a[1];if(null!=s){e.linkRange=new f.Range(t.index-u,s.length());var d=c.default.formats(s.domNode);return e.preview.textContent=d,e.preview.setAttribute("href",d),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=D(n(29)),o=n(36),i=n(38),a=n(64),l=D(n(65)),s=D(n(66)),u=n(67),c=D(u),f=n(37),d=n(26),p=n(39),h=n(40),v=D(n(56)),y=D(n(68)),m=D(n(27)),g=D(n(69)),b=D(n(70)),w=D(n(71)),x=D(n(72)),_=D(n(73)),k=n(13),E=D(k),O=D(n(74)),S=D(n(75)),j=D(n(57)),C=D(n(41)),N=D(n(28)),P=D(n(59)),A=D(n(60)),T=D(n(61)),L=D(n(108)),I=D(n(62));function D(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":E.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":v.default,"formats/code":k.Code,"formats/italic":y.default,"formats/link":m.default,"formats/script":g.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":_.default,"formats/list/item":u.ListItem,"modules/formula":O.default,"modules/syntax":S.default,"modules/toolbar":j.default,"themes/bubble":L.default,"themes/snow":I.default,"ui/icons":C.default,"ui/picker":N.default,"ui/icon-picker":A.default,"ui/color-picker":P.default,"ui/tooltip":T.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(l.default.Attributor.Class),f=new c("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=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}}(),i=n(4);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=s(n(0)),a=s(n(4)),l=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){e!==p.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);d.blotName="list-item",d.tagName="LI";var p=function(e){function t(e){u(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=i.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return f(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof d)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],t.ListItem=d,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);l.blotName="strike",l.tagName="S",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);l.blotName="underline",l.tagName="U",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},s=n(27);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var f=["alt","height","width"],d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){f.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return f.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l.default.Embed);d.blotName="image",d.tagName="IMG",t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=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}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(4),l=n(27),s=(r=l)&&r.__esModule?r:{default:r};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var f=["height","width"],d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){f.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return f.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=s(n(35)),a=s(n(5)),l=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,null,[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var p=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(d,!0)}}]),t}(l.default);t.FormulaBlot=d,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=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}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=s(n(0)),a=s(n(5)),l=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);d.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(d,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=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}}(),i=f(n(3)),a=f(n(8)),l=n(43),s=f(l),u=n(15),c=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],y=function(e){function t(e,n){d(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return h(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new m(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(s.default);y.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var m=function(e){function t(e,n){d(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,o){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var l=i[i.length-1],s=r.quill.getIndex(l),c=Math.min(l.length()-1,t.index+t.length-s),f=r.quill.getBounds(new u.Range(s,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);m.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=m,t.default=y},function(e,t,n){e.exports=n(63)}]).default},e.exports=t()},4463:function(e,t,n){"use strict";var r=n(2791),o=n(1725),i=n(5296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},v={};function y(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(v,e)||!p.call(h,e)&&(d.test(e)?v[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);m[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);m[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);m[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,k=60106,E=60107,O=60108,S=60114,j=60109,C=60110,N=60112,P=60113,A=60120,T=60115,L=60116,I=60121,D=60128,R=60129,M=60130,q=60131;if("function"===typeof Symbol&&Symbol.for){var B=Symbol.for;_=B("react.element"),k=B("react.portal"),E=B("react.fragment"),O=B("react.strict_mode"),S=B("react.profiler"),j=B("react.provider"),C=B("react.context"),N=B("react.forward_ref"),P=B("react.suspense"),A=B("react.suspense_list"),T=B("react.memo"),L=B("react.lazy"),I=B("react.block"),B("react.scope"),D=B("react.opaque.id"),R=B("react.debug_trace_mode"),M=B("react.offscreen"),q=B("react.legacy_hidden")}var U,F="function"===typeof Symbol&&Symbol.iterator;function z(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=F&&e[F]||e["@@iterator"])?e:null}function H(e){if(void 0===U)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var V=!1;function W(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var o=s.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function K(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 22:return e=W(e.type._render,!1);case 1:return e=W(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case k:return"Portal";case S:return"Profiler";case O:return"StrictMode";case P:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case T:return G(e.type);case I:return G(e._render);case L:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ue(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ve,ye,me=(ye=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((ve=ve||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ye(e,t)}))}:ye);function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function _e(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var ke=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function Oe(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var je=null,Ce=null,Ne=null;function Pe(e){if(e=ro(e)){if("function"!==typeof je)throw Error(a(280));var t=e.stateNode;t&&(t=io(t),je(e.stateNode,e.type,t))}}function Ae(e){Ce?Ne?Ne.push(e):Ne=[e]:Ce=e}function Te(){if(Ce){var e=Ce,t=Ne;if(Ne=Ce=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Le(e,t){return e(t)}function Ie(e,t,n,r,o){return e(t,n,r,o)}function De(){}var Re=Le,Me=!1,qe=!1;function Be(){null===Ce&&null===Ne||(De(),Te())}function Ue(e,t){var n=e.stateNode;if(null===n)return null;var r=io(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Fe=!1;if(f)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Fe=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(ye){Fe=!1}function He(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ve=!1,We=null,Ke=!1,Ge=null,Ye={onError:function(e){Ve=!0,We=e}};function $e(e,t,n,r,o,i,a,l,s){Ve=!1,We=null,He.apply(Ye,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ze(e){if(Qe(e)!==e)throw Error(a(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ze(o),e;if(i===r)return Ze(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],lt=null,st=null,ut=null,ct=new Map,ft=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function vt(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function yt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,o,i),null!==t&&(null!==(t=ro(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function mt(e){var t=no(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ro(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){gt(e)&&n.delete(t)}function wt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ro(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==lt&>(lt)&&(lt=null),null!==st&>(st)&&(st=null),null!==ut&>(ut)&&(ut=null),ct.forEach(bt),ft.forEach(bt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wt)))}function _t(e){function t(t){return xt(t,e)}if(0<at.length){xt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==lt&&xt(lt,e),null!==st&&xt(st,e),null!==ut&&xt(ut,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)mt(n),null===n.blockedOn&&dt.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},Ot={},St={};function jt(e){if(Ot[e])return Ot[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in St)return Ot[e]=n[t];return e}f&&(St=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ct=jt("animationend"),Nt=jt("animationiteration"),Pt=jt("animationstart"),At=jt("transitionend"),Tt=new Map,Lt=new Map,It=["abort","abort",Ct,"animationEnd",Nt,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",At,"transitionEnd","waiting","waiting"];function Dt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Lt.set(r,t),Tt.set(r,o),u(o,[r])}}(0,i.unstable_now)();var Rt=8;function Mt(e){if(0!==(1&e))return Rt=15,1;if(0!==(2&e))return Rt=14,2;if(0!==(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!==(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!==(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!==(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!==(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!==(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function qt(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=Rt=15;else if(0!==(i=134217727&n)){var s=i&~a;0!==s?(r=Mt(s),o=Rt):0!==(l&=i)&&(r=Mt(l),o=Rt)}else 0!==(i=n&~a)?(r=Mt(i),o=Rt):0!==l&&(r=Mt(l),o=Rt);if(0===r)return 0;if(r=n&((0>(r=31-Vt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Mt(t),o<=Rt)return t;Rt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Vt(t)),r|=e[n],t&=~o;return r}function Bt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ft(24&~t))?Ut(10,t):e;case 10:return 0===(e=Ft(192&~t))?Ut(8,t):e;case 8:return 0===(e=Ft(3584&~t))&&(0===(e=Ft(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ft(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ft(e){return e&-e}function zt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Vt(t)]=n}var Vt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Kt|0)|0},Wt=Math.log,Kt=Math.LN2;var Gt=i.unstable_UserBlockingPriority,Yt=i.unstable_runWithPriority,$t=!0;function Qt(e,t,n,r){Me||De();var o=Zt,i=Me;Me=!0;try{Ie(o,e,t,n,r)}finally{(Me=i)||Be()}}function Xt(e,t,n,r){Yt(Gt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var o;if($t)if((o=0===(4&t))&&0<at.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var i=Jt(e,t,n,r);if(null===i)o&&vt(e,r);else{if(o){if(-1<pt.indexOf(e))return e=ht(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return lt=yt(lt,e,t,n,r,o),!0;case"dragenter":return st=yt(st,e,t,n,r,o),!0;case"mouseover":return ut=yt(ut,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ct.set(i,yt(ct.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ft.set(i,yt(ft.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;vt(e,r)}Dr(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=Se(r);if(null!==(o=no(o))){var i=Qe(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Xe(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Dr(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function ln(){return!1}function sn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:ln,this.isPropagationStopped=ln,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var un,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=sn(dn),hn=o({},dn,{view:0,detail:0}),vn=sn(hn),yn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(un=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=un=0,fn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),mn=sn(yn),gn=sn(o({},yn,{dataTransfer:0})),bn=sn(o({},hn,{relatedTarget:0})),wn=sn(o({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=o({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_n=sn(xn),kn=sn(o({},dn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},On={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return jn}var Nn=o({},hn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?On[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=sn(Nn),An=sn(o({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=sn(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Ln=sn(o({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=o({},yn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=sn(In),Rn=[9,13,27,32],Mn=f&&"CompositionEvent"in window,qn=null;f&&"documentMode"in document&&(qn=document.documentMode);var Bn=f&&"TextEvent"in window&&!qn,Un=f&&(!Mn||qn&&8<qn&&11>=qn),Fn=String.fromCharCode(32),zn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Kn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Kn[e.type]:"textarea"===t}function Yn(e,t,n,r){Ae(r),0<(t=Mr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Qn=null;function Xn(e){Nr(e,0)}function Zn(e){if(X(oo(e)))return e}function Jn(e,t){if("change"===e)return t}var er=!1;if(f){var tr;if(f){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function or(){$n&&($n.detachEvent("onpropertychange",ir),Qn=$n=null)}function ir(e){if("value"===e.propertyName&&Zn(Qn)){var t=[];if(Yn(t,Qn,e,Se(e)),e=Xn,Me)e(t);else{Me=!0;try{Le(e,t)}finally{Me=!1,Be()}}}}function ar(e,t,n){"focusin"===e?(or(),Qn=n,($n=t).attachEvent("onpropertychange",ir)):"focusout"===e&&or()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Qn)}function sr(e,t){if("click"===e)return Zn(t)}function ur(e,t){if("input"===e||"change"===e)return Zn(t)}var cr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},fr=Object.prototype.hasOwnProperty;function dr(e,t){if(cr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!fr.call(t,n[r])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function vr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?vr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function yr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gr=f&&"documentMode"in document&&11>=document.documentMode,br=null,wr=null,xr=null,_r=!1;function kr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==br||br!==Z(r)||("selectionStart"in(r=br)&&mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},xr&&dr(xr,r)||(xr=r,0<(r=Mr(wr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Dt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Dt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Dt(It,2);for(var Er="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Or=0;Or<Er.length;Or++)Lt.set(Er[Or],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,u){if($e.apply(this,arguments),Ve){if(!Ve)throw Error(a(198));var c=We;Ve=!1,We=null,Ke||(Ke=!0,Ge=c)}}(r,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Cr(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Cr(o,l,u),i=s}}}if(Ke)throw e=Ge,Ke=!1,Ge=null,e}function Pr(e,t){var n=ao(t),r=e+"__bubble";n.has(r)||(Ir(t,e,2,!1),n.add(r))}var Ar="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){e[Ar]||(e[Ar]=!0,l.forEach((function(t){jr.has(t)||Lr(t,!1,e,null),Lr(t,!0,e,null)})))}function Lr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&jr.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ao(i),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(o|=4),Ir(i,e,o,t),a.add(l))}function Ir(e,t,n,r){var o=Lt.get(t);switch(void 0===o?2:o){case 0:o=Qt;break;case 1:o=Xt;break;default:o=Zt}n=o.bind(null,t,n,e),o=void 0,!Fe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Dr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=no(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(qe)return e(t,n);qe=!0;try{Re(e,t,n)}finally{qe=!1,Be()}}((function(){var r=i,o=Se(n),a=[];e:{var l=Tt.get(e);if(void 0!==l){var s=pn,u=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":s=Pn;break;case"focusin":u="focus",s=bn;break;case"focusout":u="blur",s=bn;break;case"beforeblur":case"afterblur":s=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Tn;break;case Ct:case Nt:case Pt:s=wn;break;case At:s=Ln;break;case"scroll":s=vn;break;case"wheel":s=Dn;break;case"copy":case"cut":case"paste":s=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=An}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==d&&(null!=(v=Ue(h,d))&&c.push(Rr(h,v,p)))),f)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(u=n.relatedTarget||n.fromElement)||!no(u)&&!u[eo])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?no(u):null)&&(u!==(f=Qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=mn,v="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,v="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?l:oo(s),p=null==u?l:oo(u),(l=new c(v,h+"leave",s,n,o)).target=f,l.relatedTarget=p,v=null,no(o)===r&&((c=new c(d,h+"enter",u,n,o)).target=p,c.relatedTarget=f,v=c),f=v,s&&u)e:{for(d=u,h=0,p=c=s;p;p=qr(p))h++;for(p=0,v=d;v;v=qr(v))p++;for(;0<h-p;)c=qr(c),h--;for(;0<p-h;)d=qr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=qr(c),d=qr(d)}c=null}else c=null;null!==s&&Br(a,l,s,c,!1),null!==u&&null!==f&&Br(a,f,u,c,!0)}if("select"===(s=(l=r?oo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var y=Jn;else if(Gn(l))if(er)y=ur;else{y=lr;var m=ar}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(y=sr);switch(y&&(y=y(e,r))?Yn(a,y,n,o):(m&&m(e,l,r),"focusout"===e&&(m=l._wrapperState)&&m.controlled&&"number"===l.type&&oe(l,"number",l.value)),m=r?oo(r):window,e){case"focusin":(Gn(m)||"true"===m.contentEditable)&&(br=m,wr=r,xr=null);break;case"focusout":xr=wr=br=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,kr(a,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":kr(a,n,o)}var g;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Wn?Hn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Un&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Wn&&(g=rn()):(tn="value"in(en=o)?en.value:en.textContent,Wn=!0)),0<(m=Mr(r,b)).length&&(b=new kn(b,e,null,n,o),a.push({event:b,listeners:m}),g?b.data=g:null!==(g=Vn(n))&&(b.data=g))),(g=Bn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(zn=!0,Fn);case"textInput":return(e=t.data)===Fn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Mn&&Hn(e,t)?(e=rn(),nn=tn=en=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Un&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Mr(r,"onBeforeInput")).length&&(o=new kn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g))}Nr(a,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ue(e,n))&&r.unshift(Rr(e,i,o)),null!=(i=Ue(e,t))&&r.push(Rr(e,i,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Br(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Ue(n,i))&&a.unshift(Rr(n,s,l)):o||null!=(s=Ue(n,i))&&a.push(Rr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Ur(){}var Fr=null,zr=null;function Hr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Wr="function"===typeof setTimeout?setTimeout:void 0,Kr="function"===typeof clearTimeout?clearTimeout:void 0;function Gr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Yr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function $r(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Qr=0;var Xr=Math.random().toString(36).slice(2),Zr="__reactFiber$"+Xr,Jr="__reactProps$"+Xr,eo="__reactContainer$"+Xr,to="__reactEvents$"+Xr;function no(e){var t=e[Zr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eo]||n[Zr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=$r(e);null!==e;){if(n=e[Zr])return n;e=$r(e)}return t}n=(e=n).parentNode}return null}function ro(e){return!(e=e[Zr]||e[eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function io(e){return e[Jr]||null}function ao(e){var t=e[to];return void 0===t&&(t=e[to]=new Set),t}var lo=[],so=-1;function uo(e){return{current:e}}function co(e){0>so||(e.current=lo[so],lo[so]=null,so--)}function fo(e,t){so++,lo[so]=e.current,e.current=t}var po={},ho=uo(po),vo=uo(!1),yo=po;function mo(e,t){var n=e.type.contextTypes;if(!n)return po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function go(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bo(){co(vo),co(ho)}function wo(e,t,n){if(ho.current!==po)throw Error(a(168));fo(ho,t),fo(vo,n)}function xo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,G(t)||"Unknown",i));return o({},n,r)}function _o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,yo=ho.current,fo(ho,e),fo(vo,vo.current),!0}function ko(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=xo(e,t,yo),r.__reactInternalMemoizedMergedChildContext=e,co(vo),co(ho),fo(ho,e)):co(vo),fo(vo,n)}var Eo=null,Oo=null,So=i.unstable_runWithPriority,jo=i.unstable_scheduleCallback,Co=i.unstable_cancelCallback,No=i.unstable_shouldYield,Po=i.unstable_requestPaint,Ao=i.unstable_now,To=i.unstable_getCurrentPriorityLevel,Lo=i.unstable_ImmediatePriority,Io=i.unstable_UserBlockingPriority,Do=i.unstable_NormalPriority,Ro=i.unstable_LowPriority,Mo=i.unstable_IdlePriority,qo={},Bo=void 0!==Po?Po:function(){},Uo=null,Fo=null,zo=!1,Ho=Ao(),Vo=1e4>Ho?Ao:function(){return Ao()-Ho};function Wo(){switch(To()){case Lo:return 99;case Io:return 98;case Do:return 97;case Ro:return 96;case Mo:return 95;default:throw Error(a(332))}}function Ko(e){switch(e){case 99:return Lo;case 98:return Io;case 97:return Do;case 96:return Ro;case 95:return Mo;default:throw Error(a(332))}}function Go(e,t){return e=Ko(e),So(e,t)}function Yo(e,t,n){return e=Ko(e),jo(e,t,n)}function $o(){if(null!==Fo){var e=Fo;Fo=null,Co(e)}Qo()}function Qo(){if(!zo&&null!==Uo){zo=!0;var e=0;try{var t=Uo;Go(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Uo=null}catch(n){throw null!==Uo&&(Uo=Uo.slice(e+1)),jo(Lo,$o),n}finally{zo=!1}}}var Xo=x.ReactCurrentBatchConfig;function Zo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Jo=uo(null),ei=null,ti=null,ni=null;function ri(){ni=ti=ei=null}function oi(e){var t=Jo.current;co(Jo),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ai(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ma=!0),e.firstContext=null)}function li(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(a(308));ti=t,ei.dependencies={lanes:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var si=!1;function ui(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ci(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function di(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function pi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hi(e,t,n,r){var i=e.updateQueue;si=!1;var a=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,c=u.next;u.next=null,null===l?a=c:l.next=c,l=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==a){for(d=i.baseState,l=0,f=c=u=null;;){s=a.lane;var p=a.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,v=a;switch(s=t,p=n,v.tag){case 1:if("function"===typeof(h=v.payload)){d=h.call(p,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(s="function"===typeof(h=v.payload)?h.call(p,d,s):h)||void 0===s)break e;d=o({},d,s);break e;case 2:si=!0}}null!==a.callback&&(e.flags|=32,null===(s=i.effects)?i.effects=[a]:s.push(a))}else p={eventTime:p,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,l|=s;if(null===(a=a.next)){if(null===(s=i.shared.pending))break;a=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}null===f&&(u=d),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Fl|=l,e.lanes=l,e.memoizedState=d}}function vi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var yi=(new r.Component).refs;function mi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var gi={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ds(),o=ps(e),i=fi(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),di(e,i),hs(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ds(),o=ps(e),i=fi(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),di(e,i),hs(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ds(),r=ps(e),o=fi(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),di(e,o),hs(e,r,n)}};function bi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(o,i))}function wi(e,t,n){var r=!1,o=po,i=t.contextType;return"object"===typeof i&&null!==i?i=li(i):(o=go(t)?yo:ho.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?mo(e,o):po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=gi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function xi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&gi.enqueueReplaceState(t,t.state,null)}function _i(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=yi,ui(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=li(i):(i=go(t)?yo:ho.current,o.context=mo(e,i)),hi(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(mi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&gi.enqueueReplaceState(o,o.state,null),hi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var ki=Array.isArray;function Ei(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===yi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Oi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Si(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ks(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Qs(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ei(e,t,n),r.return=e,r):((r=Gs(n.type,n.key,n.props,null,e.mode,r)).ref=Ei(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xs(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Ys(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Qs(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Gs(t.type,t.key,t.props,null,e.mode,n)).ref=Ei(e,null,t),n.return=e,n;case k:return(t=Xs(t,e.mode,n)).return=e,t}if(ki(t)||z(t))return(t=Ys(t,e.mode,n,null)).return=e,t;Oi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?n.type===E?f(e,t,n.props.children,r,o):u(e,t,n,r):null;case k:return n.key===o?c(e,t,n,r):null}if(ki(n)||z(n))return null!==o?null:f(e,t,n,r,null);Oi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===E?f(t,e,r.props.children,o,r.key):u(t,e,r,o);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(ki(r)||z(r))return f(t,e=e.get(n)||null,r,o,null);Oi(t,r)}return null}function v(o,a,l,s){for(var u=null,c=null,f=a,v=a=0,y=null;null!==f&&v<l.length;v++){f.index>v?(y=f,f=null):y=f.sibling;var m=p(o,f,l[v],s);if(null===m){null===f&&(f=y);break}e&&f&&null===m.alternate&&t(o,f),a=i(m,a,v),null===c?u=m:c.sibling=m,c=m,f=y}if(v===l.length)return n(o,f),u;if(null===f){for(;v<l.length;v++)null!==(f=d(o,l[v],s))&&(a=i(f,a,v),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(o,f);v<l.length;v++)null!==(y=h(f,o,v,l[v],s))&&(e&&null!==y.alternate&&f.delete(null===y.key?v:y.key),a=i(y,a,v),null===c?u=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(o,e)})),u}function y(o,l,s,u){var c=z(s);if("function"!==typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var f=c=null,v=l,y=l=0,m=null,g=s.next();null!==v&&!g.done;y++,g=s.next()){v.index>y?(m=v,v=null):m=v.sibling;var b=p(o,v,g.value,u);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(o,v),l=i(b,l,y),null===f?c=b:f.sibling=b,f=b,v=m}if(g.done)return n(o,v),c;if(null===v){for(;!g.done;y++,g=s.next())null!==(g=d(o,g.value,u))&&(l=i(g,l,y),null===f?c=g:f.sibling=g,f=g);return c}for(v=r(o,v);!g.done;y++,g=s.next())null!==(g=h(v,o,y,g.value,u))&&(e&&null!==g.alternate&&v.delete(null===g.key?y:g.key),l=i(g,l,y),null===f?c=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(o,e)})),c}return function(e,r,i,s){var u="object"===typeof i&&null!==i&&i.type===E&&null===i.key;u&&(i=i.props.children);var c="object"===typeof i&&null!==i;if(c)switch(i.$$typeof){case _:e:{for(c=i.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(i.type===E){n(e,u.sibling),(r=o(u,i.props.children)).return=e,e=r;break e}}else if(u.elementType===i.type){n(e,u.sibling),(r=o(u,i.props)).ref=Ei(e,u,i),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===E?((r=Ys(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=Gs(i.type,i.key,i.props,null,e.mode,s)).ref=Ei(e,r,i),s.return=e,e=s)}return l(e);case k:e:{for(u=i.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xs(i,e.mode,s)).return=e,e=r}return l(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Qs(i,e.mode,s)).return=e,e=r),l(e);if(ki(i))return v(e,r,i,s);if(z(i))return y(e,r,i,s);if(c&&Oi(e,i),"undefined"===typeof i&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(e.type)||"Component"))}return n(e,r)}}var ji=Si(!0),Ci=Si(!1),Ni={},Pi=uo(Ni),Ai=uo(Ni),Ti=uo(Ni);function Li(e){if(e===Ni)throw Error(a(174));return e}function Ii(e,t){switch(fo(Ti,t),fo(Ai,e),fo(Pi,Ni),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}co(Pi),fo(Pi,t)}function Di(){co(Pi),co(Ai),co(Ti)}function Ri(e){Li(Ti.current);var t=Li(Pi.current),n=he(t,e.type);t!==n&&(fo(Ai,e),fo(Pi,n))}function Mi(e){Ai.current===e&&(co(Pi),co(Ai))}var qi=uo(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ui=null,Fi=null,zi=!1;function Hi(e,t){var n=Vs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Vi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Wi(e){if(zi){var t=Fi;if(t){var n=t;if(!Vi(e,t)){if(!(t=Yr(n.nextSibling))||!Vi(e,t))return e.flags=-1025&e.flags|2,zi=!1,void(Ui=e);Hi(Ui,n)}Ui=e,Fi=Yr(t.firstChild)}else e.flags=-1025&e.flags|2,zi=!1,Ui=e}}function Ki(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ui=e}function Gi(e){if(e!==Ui)return!1;if(!zi)return Ki(e),zi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=Fi;t;)Hi(e,t),t=Yr(t.nextSibling);if(Ki(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fi=Yr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fi=null}}else Fi=Ui?Yr(e.stateNode.nextSibling):null;return!0}function Yi(){Fi=Ui=null,zi=!1}var $i=[];function Qi(){for(var e=0;e<$i.length;e++)$i[e]._workInProgressVersionPrimary=null;$i.length=0}var Xi=x.ReactCurrentDispatcher,Zi=x.ReactCurrentBatchConfig,Ji=0,ea=null,ta=null,na=null,ra=!1,oa=!1;function ia(){throw Error(a(321))}function aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function la(e,t,n,r,o,i){if(Ji=i,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=null===e||null===e.memoizedState?La:Ia,e=n(r,o),oa){i=0;do{if(oa=!1,!(25>i))throw Error(a(301));i+=1,na=ta=null,t.updateQueue=null,Xi.current=Da,e=n(r,o)}while(oa)}if(Xi.current=Ta,t=null!==ta&&null!==ta.next,Ji=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function ua(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function ca(e,t){return"function"===typeof t?t(e):t}function fa(e){var t=ua(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var s=l=i=null,u=o;do{var c=u.lane;if((Ji&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=f,i=r):s=s.next=f,ea.lanes|=c,Fl|=c}u=u.next}while(null!==u&&u!==o);null===s?i=r:s.next=l,cr(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function da(e){var t=ua(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);cr(i,t.memoizedState)||(Ma=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function pa(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ji&e)===e)&&(t._workInProgressVersionPrimary=r,$i.push(t))),e)return n(t._source);throw $i.push(t),Error(a(350))}function ha(e,t,n,r){var o=Ll;if(null===o)throw Error(a(349));var i=t._getVersion,l=i(t._source),s=Xi.current,u=s.useState((function(){return pa(o,t,n)})),c=u[1],f=u[0];u=na;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,v=d.source;d=d.subscribe;var y=ea;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!cr(l,e)){e=n(t._source),cr(f,e)||(c(e),e=ps(y),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var s=31-Vt(a),u=1<<s;r[s]|=e,a&=~u}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=ps(y);o.mutableReadLanes|=r&o.pendingLanes}catch(i){n((function(){throw i}))}}))}),[t,r]),cr(h,n)&&cr(v,t)&&cr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:f}).dispatch=c=Aa.bind(null,ea,e),u.queue=e,u.baseQueue=null,f=pa(o,t,n),u.memoizedState=u.baseState=f),f}function va(e,t,n){return ha(ua(),e,t,n)}function ya(e){var t=sa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e}).dispatch=Aa.bind(null,ea,e),[t.memoizedState,e]}function ma(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ga(e){return e={current:e},sa().memoizedState=e}function ba(){return ua().memoizedState}function wa(e,t,n,r){var o=sa();ea.flags|=e,o.memoizedState=ma(1|t,n,void 0,void 0===r?null:r)}function xa(e,t,n,r){var o=ua();r=void 0===r?null:r;var i=void 0;if(null!==ta){var a=ta.memoizedState;if(i=a.destroy,null!==r&&aa(r,a.deps))return void ma(t,n,i,r)}ea.flags|=e,o.memoizedState=ma(1|t,n,i,r)}function _a(e,t){return wa(516,4,e,t)}function ka(e,t){return xa(516,4,e,t)}function Ea(e,t){return xa(4,2,e,t)}function Oa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Sa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,xa(4,2,Oa.bind(null,t,e),n)}function ja(){}function Ca(e,t){var n=ua();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Na(e,t){var n=ua();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pa(e,t){var n=Wo();Go(98>n?98:n,(function(){e(!0)})),Go(97<n?97:n,(function(){var n=Zi.transition;Zi.transition=1;try{e(!1),t()}finally{Zi.transition=n}}))}function Aa(e,t,n){var r=ds(),o=ps(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===ea||null!==a&&a===ea)oa=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=a(l,n);if(i.eagerReducer=a,i.eagerState=s,cr(s,l))return}catch(u){}hs(e,o,r)}}var Ta={readContext:li,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},La={readContext:li,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:li,useEffect:_a,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wa(4,2,Oa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Aa.bind(null,ea,e),[r.memoizedState,e]},useRef:ga,useState:ya,useDebugValue:ja,useDeferredValue:function(e){var t=ya(e),n=t[0],r=t[1];return _a((function(){var t=Zi.transition;Zi.transition=1;try{r(e)}finally{Zi.transition=t}}),[e]),n},useTransition:function(){var e=ya(!1),t=e[0];return ga(e=Pa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(zi){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Qr++).toString(36))),Error(a(355))})),n=ya(t)[1];return 0===(2&ea.mode)&&(ea.flags|=516,ma(5,(function(){n("r:"+(Qr++).toString(36))}),void 0,null)),t}return ya(t="r:"+(Qr++).toString(36)),t},unstable_isNewReconciler:!1},Ia={readContext:li,useCallback:Ca,useContext:li,useEffect:ka,useImperativeHandle:Sa,useLayoutEffect:Ea,useMemo:Na,useReducer:fa,useRef:ba,useState:function(){return fa(ca)},useDebugValue:ja,useDeferredValue:function(e){var t=fa(ca),n=t[0],r=t[1];return ka((function(){var t=Zi.transition;Zi.transition=1;try{r(e)}finally{Zi.transition=t}}),[e]),n},useTransition:function(){var e=fa(ca)[0];return[ba().current,e]},useMutableSource:va,useOpaqueIdentifier:function(){return fa(ca)[0]},unstable_isNewReconciler:!1},Da={readContext:li,useCallback:Ca,useContext:li,useEffect:ka,useImperativeHandle:Sa,useLayoutEffect:Ea,useMemo:Na,useReducer:da,useRef:ba,useState:function(){return da(ca)},useDebugValue:ja,useDeferredValue:function(e){var t=da(ca),n=t[0],r=t[1];return ka((function(){var t=Zi.transition;Zi.transition=1;try{r(e)}finally{Zi.transition=t}}),[e]),n},useTransition:function(){var e=da(ca)[0];return[ba().current,e]},useMutableSource:va,useOpaqueIdentifier:function(){return da(ca)[0]},unstable_isNewReconciler:!1},Ra=x.ReactCurrentOwner,Ma=!1;function qa(e,t,n,r){t.child=null===e?Ci(t,null,n,r):ji(t,e.child,n,r)}function Ba(e,t,n,r,o){n=n.render;var i=t.ref;return ai(t,o),r=la(e,t,n,r,i,o),null===e||Ma?(t.flags|=1,qa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,il(e,t,o))}function Ua(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Ws(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gs(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,r,o,i))}return a=e.child,0===(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:dr)(o,r)&&e.ref===t.ref)?il(e,t,i):(t.flags|=1,(e=Ks(a,r)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,r,o,i){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Ma=!1,0===(i&o))return t.lanes=e.lanes,il(e,t,i);0!==(16384&e.flags)&&(Ma=!0)}return Va(e,t,n,r,i)}function za(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},_s(t,n);else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},_s(t,e),null;t.memoizedState={baseLanes:0},_s(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,_s(t,r);return qa(e,t,o,n),t.child}function Ha(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Va(e,t,n,r,o){var i=go(n)?yo:ho.current;return i=mo(t,i),ai(t,o),n=la(e,t,n,r,i,o),null===e||Ma?(t.flags|=1,qa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,il(e,t,o))}function Wa(e,t,n,r,o){if(go(n)){var i=!0;_o(t)}else i=!1;if(ai(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wi(t,n,r),_i(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=li(u):u=mo(t,u=go(n)?yo:ho.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||s!==u)&&xi(t,a,r,u),si=!1;var d=t.memoizedState;a.state=d,hi(t,r,a,o),s=t.memoizedState,l!==r||d!==s||vo.current||si?("function"===typeof c&&(mi(t,n,c,r),s=t.memoizedState),(l=si||bi(t,n,l,r,d,s,u))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ci(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Zo(t.type,l),a.props=u,f=t.pendingProps,d=a.context,"object"===typeof(s=n.contextType)&&null!==s?s=li(s):s=mo(t,s=go(n)?yo:ho.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==f||d!==s)&&xi(t,a,r,s),si=!1,d=t.memoizedState,a.state=d,hi(t,r,a,o);var h=t.memoizedState;l!==f||d!==h||vo.current||si?("function"===typeof p&&(mi(t,n,p,r),h=t.memoizedState),(u=si||bi(t,n,u,r,d,h,s))?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ka(e,t,n,r,i,o)}function Ka(e,t,n,r,o,i){Ha(e,t);var a=0!==(64&t.flags);if(!r&&!a)return o&&ko(t,n,!1),il(e,t,i);r=t.stateNode,Ra.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ji(t,e.child,null,i),t.child=ji(t,null,l,i)):qa(e,t,l,i),t.memoizedState=r.state,o&&ko(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wo(0,t.context,!1),Ii(e,t.containerInfo)}var Ya,$a,Qa,Xa={dehydrated:null,retryLane:0};function Za(e,t,n){var r,o=t.pendingProps,i=qi.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),fo(qi,1&i),null===e?(void 0!==o.fallback&&Wi(t),e=o.children,i=o.fallback,a?(e=Ja(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,e):"number"===typeof o.unstable_expectedLoadTime?(e=Ja(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,t.lanes=33554432,e):((n=$s({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=tl(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Xa,o):(n=el(e,t,o.children,n),t.memoizedState=null,n))}function Ja(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=$s(t,o,0,null),n=Ys(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function el(e,t,n,r){var o=e.child;return e=o.sibling,n=Ks(o,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function tl(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0===(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ks(a,l),null!==e?r=Ks(e,r):(r=Ys(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function nl(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ii(e.return,t)}function rl(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function ol(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(qa(e,t,r.children,n),0!==(2&(r=qi.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&nl(e,n);else if(19===e.tag)nl(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fo(qi,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rl(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Bi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rl(t,!0,n,null,i,t.lastEffect);break;case"together":rl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function il(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ks(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ks(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function al(e,t){if(!zi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ll(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return go(t.type)&&bo(),null;case 3:return Di(),co(vo),co(ho),Qi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Gi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Mi(t);var i=Li(Ti.current);if(n=t.type,null!==e&&null!=t.stateNode)$a(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Li(Pi.current),Gi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Zr]=t,r[Jr]=l,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Pr(Sr[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":ee(r,l),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Pr("invalid",r);break;case"textarea":se(r,l),Pr("invalid",r)}for(var u in Ee(n,l),e=null,l)l.hasOwnProperty(u)&&(i=l[u],"children"===u?"string"===typeof i?r.textContent!==i&&(e=["children",i]):"number"===typeof i&&r.textContent!==""+i&&(e=["children",""+i]):s.hasOwnProperty(u)&&null!=i&&"onScroll"===u&&Pr("scroll",r));switch(n){case"input":Q(r),re(r,l,!0);break;case"textarea":Q(r),ce(r);break;case"select":case"option":break;default:"function"===typeof l.onClick&&(r.onclick=Ur)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Zr]=t,e[Jr]=r,Ya(e,t),t.stateNode=e,u=Oe(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),i=r;break;case"iframe":case"object":case"embed":Pr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Sr.length;i++)Pr(Sr[i],e);i=r;break;case"source":Pr("error",e),i=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),i=r;break;case"details":Pr("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Pr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":se(e,r),i=le(e,r),Pr("invalid",e);break;default:i=r}Ee(n,i);var c=i;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?_e(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&me(e,f):"children"===l?"string"===typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"===typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=f&&"onScroll"===l&&Pr("scroll",e):null!=f&&w(e,l,f,u))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Ur)}Hr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qa(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Li(Ti.current),Li(Pi.current),Gi(t)?(r=t.stateNode,n=t.memoizedProps,r[Zr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Zr]=t,t.stateNode=r)}return null;case 13:return co(qi),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Gi(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&qi.current)?0===ql&&(ql=3):(0!==ql&&3!==ql||(ql=4),null===Ll||0===(134217727&Fl)&&0===(134217727&zl)||gs(Ll,Dl))),(r||n)&&(t.flags|=4),null);case 4:return Di(),null===e&&Tr(t.stateNode.containerInfo),null;case 10:return oi(t),null;case 19:if(co(qi),null===(r=t.memoizedState))return null;if(l=0!==(64&t.flags),null===(u=r.rendering))if(l)al(r,!1);else{if(0!==ql||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Bi(e))){for(t.flags|=64,al(r,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fo(qi,1&qi.current|2),t.child}e=e.sibling}null!==r.tail&&Vo()>Kl&&(t.flags|=64,l=!0,al(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Bi(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),al(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!zi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vo()-r.renderingStartTime>Kl&&1073741824!==n&&(t.flags|=64,l=!0,al(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vo(),n.sibling=null,t=qi.current,fo(qi,l?1&t|2:1&t),n):null;case 23:case 24:return ks(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function sl(e){switch(e.tag){case 1:go(e.type)&&bo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Di(),co(vo),co(ho),Qi(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Mi(e),null;case 13:return co(qi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return co(qi),null;case 4:return Di(),null;case 10:return oi(e),null;case 23:case 24:return ks(),null;default:return null}}function ul(e,t){try{var n="",r=t;do{n+=K(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o}}function cl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ya=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$a=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Li(Pi.current);var a,l=null;switch(n){case"input":i=J(e,i),r=J(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Ur)}for(f in Ee(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var u=i[f];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Pr("scroll",e),l||u===c||(l=[])):"object"===typeof c&&null!==c&&c.$$typeof===D?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var fl="function"===typeof WeakMap?WeakMap:Map;function dl(e,t,n){(n=fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Xl=r),cl(0,t)},n}function pl(e,t,n){(n=fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return cl(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Zl?Zl=new Set([this]):Zl.add(this),cl(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hl="function"===typeof WeakSet?WeakSet:Set;function vl(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Us(e,n)}else t.current=null}function yl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Zo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo))}throw Error(a(163))}function ml(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Ms(n,e),Rs(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Zo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&vi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}vi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Hr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&_t(n)))))}throw Error(a(163))}function gl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=xe("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bl(e,t){if(Oo&&"function"===typeof Oo.onCommitFiberUnmount)try{Oo.onCommitFiberUnmount(Eo,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!==(4&r))Ms(t,n);else{r=t;try{o()}catch(i){Us(r,i)}}n=n.next}while(n!==e)}break;case 1:if(vl(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Us(t,i)}break;case 5:vl(t);break;case 4:Ol(e,t)}}function wl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function xl(e){return 5===e.tag||3===e.tag||4===e.tag}function _l(e){e:{for(var t=e.return;null!==t;){if(xl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||xl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?kl(e,n,t):El(e,n,t)}function kl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Ur));else if(4!==r&&null!==(e=e.child))for(kl(e,t,n),e=e.sibling;null!==e;)kl(e,t,n),e=e.sibling}function El(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(El(e,t,n),e=e.sibling;null!==e;)El(e,t,n),e=e.sibling}function Ol(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var l=e,s=o,u=s;;)if(bl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=o.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(bl(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function Sl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Oe(e,o),t=Oe(e,r),o=0;o<i.length;o+=2){var l=i[o],s=i[o+1];"style"===l?_e(n,s):"dangerouslySetInnerHTML"===l?me(n,s):"children"===l?ge(n,s):w(n,l,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,_t(n.containerInfo)));case 13:return null!==t.memoizedState&&(Wl=Vo(),gl(t.child,!0)),void jl(t);case 19:return void jl(t);case 23:case 24:return void gl(t,null!==t.memoizedState)}throw Error(a(163))}function jl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hl),t.forEach((function(t){var r=zs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Cl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Nl=Math.ceil,Pl=x.ReactCurrentDispatcher,Al=x.ReactCurrentOwner,Tl=0,Ll=null,Il=null,Dl=0,Rl=0,Ml=uo(0),ql=0,Bl=null,Ul=0,Fl=0,zl=0,Hl=0,Vl=null,Wl=0,Kl=1/0;function Gl(){Kl=Vo()+500}var Yl,$l=null,Ql=!1,Xl=null,Zl=null,Jl=!1,es=null,ts=90,ns=[],rs=[],os=null,is=0,as=null,ls=-1,ss=0,us=0,cs=null,fs=!1;function ds(){return 0!==(48&Tl)?Vo():-1!==ls?ls:ls=Vo()}function ps(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Wo()?1:2;if(0===ss&&(ss=Ul),0!==Xo.transition){0!==us&&(us=null!==Vl?Vl.pendingLanes:0),e=ss;var t=4186112&~us;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Wo(),0!==(4&Tl)&&98===e?e=Ut(12,ss):e=Ut(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ss),e}function hs(e,t,n){if(50<is)throw is=0,as=null,Error(a(185));if(null===(e=vs(e,t)))return null;Ht(e,t,n),e===Ll&&(zl|=t,4===ql&&gs(e,Dl));var r=Wo();1===t?0!==(8&Tl)&&0===(48&Tl)?bs(e):(ys(e,n),0===Tl&&(Gl(),$o())):(0===(4&Tl)||98!==r&&99!==r||(null===os?os=new Set([e]):os.add(e)),ys(e,n)),Vl=e}function vs(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function ys(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Vt(l),u=1<<s,c=i[s];if(-1===c){if(0===(u&r)||0!==(u&o)){c=t,Mt(u);var f=Rt;i[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=qt(e,e===Ll?Dl:0),t=Rt,0===r)null!==n&&(n!==qo&&Co(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==qo&&Co(n)}15===t?(n=bs.bind(null,e),null===Uo?(Uo=[n],Fo=jo(Lo,Qo)):Uo.push(n),n=qo):14===t?n=Yo(99,bs.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Yo(n,ms.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function ms(e){if(ls=-1,us=ss=0,0!==(48&Tl))throw Error(a(327));var t=e.callbackNode;if(Ds()&&e.callbackNode!==t)return null;var n=qt(e,e===Ll?Dl:0);if(0===n)return null;var r=n,o=Tl;Tl|=16;var i=Ss();for(Ll===e&&Dl===r||(Gl(),Es(e,r));;)try{Ns();break}catch(s){Os(e,s)}if(ri(),Pl.current=i,Tl=o,null!==Il?r=0:(Ll=null,Dl=0,r=ql),0!==(Ul&zl))Es(e,0);else if(0!==r){if(2===r&&(Tl|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=Bt(e))&&(r=js(e,n))),1===r)throw t=Bl,Es(e,0),gs(e,n),ys(e,Vo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Ts(e);break;case 3:if(gs(e,n),(62914560&n)===n&&10<(r=Wl+500-Vo())){if(0!==qt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){ds(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Wr(Ts.bind(null,e),r);break}Ts(e);break;case 4:if(gs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Vt(n);i=1<<l,(l=r[l])>o&&(o=l),n&=~i}if(n=o,10<(n=(120>(n=Vo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Nl(n/1960))-n)){e.timeoutHandle=Wr(Ts.bind(null,e),n);break}Ts(e);break;default:throw Error(a(329))}}return ys(e,Vo()),e.callbackNode===t?ms.bind(null,e):null}function gs(e,t){for(t&=~Hl,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function bs(e){if(0!==(48&Tl))throw Error(a(327));if(Ds(),e===Ll&&0!==(e.expiredLanes&Dl)){var t=Dl,n=js(e,t);0!==(Ul&zl)&&(n=js(e,t=qt(e,t)))}else n=js(e,t=qt(e,0));if(0!==e.tag&&2===n&&(Tl|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=Bt(e))&&(n=js(e,t))),1===n)throw n=Bl,Es(e,0),gs(e,t),ys(e,Vo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ts(e),ys(e,Vo()),null}function ws(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Gl(),$o())}}function xs(e,t){var n=Tl;Tl&=-2,Tl|=8;try{return e(t)}finally{0===(Tl=n)&&(Gl(),$o())}}function _s(e,t){fo(Ml,Rl),Rl|=t,Ul|=t}function ks(){Rl=Ml.current,co(Ml)}function Es(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Kr(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&bo();break;case 3:Di(),co(vo),co(ho),Qi();break;case 5:Mi(r);break;case 4:Di();break;case 13:case 19:co(qi);break;case 10:oi(r);break;case 23:case 24:ks()}n=n.return}Ll=e,Il=Ks(e.current,null),Dl=Rl=Ul=t,ql=0,Bl=null,Hl=zl=Fl=0}function Os(e,t){for(;;){var n=Il;try{if(ri(),Xi.current=Ta,ra){for(var r=ea.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ra=!1}if(Ji=0,na=ta=ea=null,oa=!1,Al.current=null,null===n||null===n.return){ql=1,Bl=t,Il=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Dl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s;if(0===(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!==(1&qi.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var v=d.memoizedProps;p=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(p){var y=d.updateQueue;if(null===y){var m=new Set;m.add(u),d.updateQueue=m}else y.add(u);if(0===(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var g=fi(-1,1);g.tag=2,di(l,g)}l.lanes|=1;break e}s=void 0,l=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new fl,s=new Set,b.set(u,s)):void 0===(s=b.get(u))&&(s=new Set,b.set(u,s)),!s.has(l)){s.add(l);var w=Fs.bind(null,i,u,l);u.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((G(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==ql&&(ql=2),s=ul(s,l),d=a;do{switch(d.tag){case 3:i=s,d.flags|=4096,t&=-t,d.lanes|=t,pi(d,dl(0,i,t));break e;case 1:i=s;var x=d.type,_=d.stateNode;if(0===(64&d.flags)&&("function"===typeof x.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Zl||!Zl.has(_)))){d.flags|=4096,t&=-t,d.lanes|=t,pi(d,pl(d,i,t));break e}}d=d.return}while(null!==d)}As(n)}catch(k){t=k,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function Ss(){var e=Pl.current;return Pl.current=Ta,null===e?Ta:e}function js(e,t){var n=Tl;Tl|=16;var r=Ss();for(Ll===e&&Dl===t||Es(e,t);;)try{Cs();break}catch(o){Os(e,o)}if(ri(),Tl=n,Pl.current=r,null!==Il)throw Error(a(261));return Ll=null,Dl=0,ql}function Cs(){for(;null!==Il;)Ps(Il)}function Ns(){for(;null!==Il&&!No();)Ps(Il)}function Ps(e){var t=Yl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?As(e):Il=t,Al.current=null}function As(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ll(n,t,Rl)))return void(Il=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Rl)||0===(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=sl(t)))return n.flags&=2047,void(Il=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===ql&&(ql=5)}function Ts(e){var t=Wo();return Go(99,Ls.bind(null,e,t)),null}function Ls(e,t){do{Ds()}while(null!==es);if(0!==(48&Tl))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<i;){var u=31-Vt(i),c=1<<u;o[u]=0,l[u]=-1,s[u]=-1,i&=~c}if(null!==os&&0===(24&r)&&os.has(e)&&os.delete(e),e===Ll&&(Il=Ll=null,Dl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Tl,Tl|=32,Al.current=null,Fr=$t,mr(l=yr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,i=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch(S){s=null;break e}var f=0,d=-1,p=-1,h=0,v=0,y=l,m=null;t:for(;;){for(var g;y!==s||0!==i&&3!==y.nodeType||(d=f+i),y!==u||0!==c&&3!==y.nodeType||(p=f+c),3===y.nodeType&&(f+=y.nodeValue.length),null!==(g=y.firstChild);)m=y,y=g;for(;;){if(y===l)break t;if(m===s&&++h===i&&(d=f),m===u&&++v===c&&(p=f),null!==(g=y.nextSibling))break;m=(y=m).parentNode}y=g}s=-1===d||-1===p?null:{start:d,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;zr={focusedElem:l,selectionRange:s},$t=!1,cs=null,fs=!1,$l=r;do{try{Is()}catch(S){if(null===$l)throw Error(a(330));Us($l,S),$l=$l.nextEffect}}while(null!==$l);cs=null,$l=r;do{try{for(l=e;null!==$l;){var b=$l.flags;if(16&b&&ge($l.stateNode,""),128&b){var w=$l.alternate;if(null!==w){var x=w.ref;null!==x&&("function"===typeof x?x(null):x.current=null)}}switch(1038&b){case 2:_l($l),$l.flags&=-3;break;case 6:_l($l),$l.flags&=-3,Sl($l.alternate,$l);break;case 1024:$l.flags&=-1025;break;case 1028:$l.flags&=-1025,Sl($l.alternate,$l);break;case 4:Sl($l.alternate,$l);break;case 8:Ol(l,s=$l);var _=s.alternate;wl(s),null!==_&&wl(_)}$l=$l.nextEffect}}catch(S){if(null===$l)throw Error(a(330));Us($l,S),$l=$l.nextEffect}}while(null!==$l);if(x=zr,w=yr(),b=x.focusedElem,l=x.selectionRange,w!==b&&b&&b.ownerDocument&&vr(b.ownerDocument.documentElement,b)){null!==l&&mr(b)&&(w=l.start,void 0===(x=l.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),s=b.textContent.length,_=Math.min(l.start,s),l=void 0===l.end?_:Math.min(l.end,s),!x.extend&&_>l&&(s=l,l=_,_=s),s=hr(b,_),i=hr(b,l),s&&i&&(1!==x.rangeCount||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(s.node,s.offset),x.removeAllRanges(),_>l?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}$t=!!Fr,zr=Fr=null,e.current=n,$l=r;do{try{for(b=e;null!==$l;){var k=$l.flags;if(36&k&&ml(b,$l.alternate,$l),128&k){w=void 0;var E=$l.ref;if(null!==E){var O=$l.stateNode;$l.tag,w=O,"function"===typeof E?E(w):E.current=w}}$l=$l.nextEffect}}catch(S){if(null===$l)throw Error(a(330));Us($l,S),$l=$l.nextEffect}}while(null!==$l);$l=null,Bo(),Tl=o}else e.current=n;if(Jl)Jl=!1,es=e,ts=t;else for($l=r;null!==$l;)t=$l.nextEffect,$l.nextEffect=null,8&$l.flags&&((k=$l).sibling=null,k.stateNode=null),$l=t;if(0===(r=e.pendingLanes)&&(Zl=null),1===r?e===as?is++:(is=0,as=e):is=0,n=n.stateNode,Oo&&"function"===typeof Oo.onCommitFiberRoot)try{Oo.onCommitFiberRoot(Eo,n,void 0,64===(64&n.current.flags))}catch(S){}if(ys(e,Vo()),Ql)throw Ql=!1,e=Xl,Xl=null,e;return 0!==(8&Tl)||$o(),null}function Is(){for(;null!==$l;){var e=$l.alternate;fs||null===cs||(0!==(8&$l.flags)?et($l,cs)&&(fs=!0):13===$l.tag&&Cl(e,$l)&&et($l,cs)&&(fs=!0));var t=$l.flags;0!==(256&t)&&yl(e,$l),0===(512&t)||Jl||(Jl=!0,Yo(97,(function(){return Ds(),null}))),$l=$l.nextEffect}}function Ds(){if(90!==ts){var e=97<ts?97:ts;return ts=90,Go(e,qs)}return!1}function Rs(e,t){ns.push(t,e),Jl||(Jl=!0,Yo(97,(function(){return Ds(),null})))}function Ms(e,t){rs.push(t,e),Jl||(Jl=!0,Yo(97,(function(){return Ds(),null})))}function qs(){if(null===es)return!1;var e=es;if(es=null,0!==(48&Tl))throw Error(a(331));var t=Tl;Tl|=32;var n=rs;rs=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],l=o.destroy;if(o.destroy=void 0,"function"===typeof l)try{l()}catch(u){if(null===i)throw Error(a(330));Us(i,u)}}for(n=ns,ns=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var s=o.create;o.destroy=s()}catch(u){if(null===i)throw Error(a(330));Us(i,u)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Tl=t,$o(),!0}function Bs(e,t,n){di(e,t=dl(0,t=ul(n,t),1)),t=ds(),null!==(e=vs(e,1))&&(Ht(e,1,t),ys(e,t))}function Us(e,t){if(3===e.tag)Bs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Bs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Zl||!Zl.has(r))){var o=pl(n,e=ul(t,e),1);if(di(n,o),o=ds(),null!==(n=vs(n,1)))Ht(n,1,o),ys(n,o);else if("function"===typeof r.componentDidCatch&&(null===Zl||!Zl.has(r)))try{r.componentDidCatch(t,e)}catch(i){}break}}n=n.return}}function Fs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ds(),e.pingedLanes|=e.suspendedLanes&n,Ll===e&&(Dl&n)===n&&(4===ql||3===ql&&(62914560&Dl)===Dl&&500>Vo()-Wl?Es(e,0):Hl|=n),ys(e,t)}function zs(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Wo()?1:2:(0===ss&&(ss=Ul),0===(t=Ft(62914560&~ss))&&(t=4194304))),n=ds(),null!==(e=vs(e,t))&&(Ht(e,t,n),ys(e,n))}function Hs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Vs(e,t,n,r){return new Hs(e,t,n,r)}function Ws(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ks(e,t){var n=e.alternate;return null===n?((n=Vs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gs(e,t,n,r,o,i){var l=2;if(r=e,"function"===typeof e)Ws(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case E:return Ys(n.children,o,i,t);case R:l=8,o|=16;break;case O:l=8,o|=1;break;case S:return(e=Vs(12,n,t,8|o)).elementType=S,e.type=S,e.lanes=i,e;case P:return(e=Vs(13,n,t,o)).type=P,e.elementType=P,e.lanes=i,e;case A:return(e=Vs(19,n,t,o)).elementType=A,e.lanes=i,e;case M:return $s(n,o,i,t);case q:return(e=Vs(24,n,t,o)).elementType=q,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case j:l=10;break e;case C:l=9;break e;case N:l=11;break e;case T:l=14;break e;case L:l=16,r=null;break e;case I:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Vs(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ys(e,t,n,r){return(e=Vs(7,e,r,t)).lanes=n,e}function $s(e,t,n,r){return(e=Vs(23,e,r,t)).elementType=M,e.lanes=n,e}function Qs(e,t,n){return(e=Vs(6,e,null,t)).lanes=n,e}function Xs(e,t,n){return(t=Vs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.mutableSourceEagerHydrationData=null}function Js(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function eu(e,t,n,r){var o=t.current,i=ds(),l=ps(o);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(go(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var u=n.type;if(go(u)){n=xo(n,u,s);break e}}n=s}else n=po;return null===t.context?t.context=n:t.pendingContext=n,(t=fi(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),di(o,t),hs(o,l,i),l}function tu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ru(e,t){nu(e,t),(e=e.alternate)&&nu(e,t)}function ou(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Zs(e,t,null!=n&&!0===n.hydrate),t=Vs(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ui(t),e[eo]=n.current,Tr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function iu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function au(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var l=o;o=function(){var e=tu(a);l.call(e)}}eu(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ou(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var s=o;o=function(){var e=tu(a);s.call(e)}}xs((function(){eu(t,a,e,o)}))}return tu(a)}function lu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!iu(t))throw Error(a(200));return Js(e,t,null,n)}Yl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||vo.current)Ma=!0;else{if(0===(n&r)){switch(Ma=!1,t.tag){case 3:Ga(t),Yi();break;case 5:Ri(t);break;case 1:go(t.type)&&_o(t);break;case 4:Ii(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;fo(Jo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Za(e,t,n):(fo(qi,1&qi.current),null!==(t=il(e,t,n))?t.sibling:null);fo(qi,1&qi.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return ol(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),fo(qi,qi.current),r)break;return null;case 23:case 24:return t.lanes=0,za(e,t,n)}return il(e,t,n)}Ma=0!==(16384&e.flags)}else Ma=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=mo(t,ho.current),ai(t,n),o=la(null,t,r,e,o,n),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,go(r)){var i=!0;_o(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ui(t);var l=r.getDerivedStateFromProps;"function"===typeof l&&mi(t,r,l,e),o.updater=gi,t.stateNode=o,o._reactInternals=t,_i(t,r,e,n),t=Ka(null,t,r,!0,i,n)}else t.tag=0,qa(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"===typeof e)return Ws(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===T)return 14}return 2}(o),e=Zo(o,e),i){case 0:t=Va(null,t,o,e,n);break e;case 1:t=Wa(null,t,o,e,n);break e;case 11:t=Ba(null,t,o,e,n);break e;case 14:t=Ua(null,t,o,Zo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Va(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Wa(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 3:if(Ga(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ci(e,t),hi(t,r,null,n),(r=t.memoizedState.element)===o)Yi(),t=il(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Fi=Yr(t.stateNode.containerInfo.firstChild),Ui=t,i=zi=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],$i.push(i);for(n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else qa(e,t,r,n),Yi();t=t.child}return t;case 5:return Ri(t),null===e&&Wi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,Vr(r,o)?l=null:null!==i&&Vr(r,i)&&(t.flags|=16),Ha(e,t),qa(e,t,l,n),t.child;case 6:return null===e&&Wi(t),null;case 13:return Za(e,t,n);case 4:return Ii(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ji(t,null,r,n):qa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ba(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 7:return qa(e,t,t.pendingProps,n),t.child;case 8:case 12:return qa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value;var s=t.type._context;if(fo(Jo,s._currentValue),s._currentValue=i,null!==l)if(s=l.value,0===(i=cr(s,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(l.children===o.children&&!vo.current){t=il(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&i)){1===s.tag&&((c=fi(-1,n&-n)).tag=2,di(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),ii(s.return,n),u.lanes|=n;break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}qa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ai(t,n),r=r(o=li(o,i.unstable_observedBits)),t.flags|=1,qa(e,t,r,n),t.child;case 14:return i=Zo(o=t.type,t.pendingProps),Ua(e,t,o,i=Zo(o.type,i),r,n);case 15:return Fa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Zo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,go(r)?(e=!0,_o(t)):e=!1,ai(t,n),wi(t,r,o),_i(t,r,o,n),Ka(null,t,r,!0,e,n);case 19:return ol(e,t,n);case 23:case 24:return za(e,t,n)}throw Error(a(156,t.tag))},ou.prototype.render=function(e){eu(e,this._internalRoot,null,null)},ou.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;eu(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(hs(e,4,ds()),ru(e,4))},nt=function(e){13===e.tag&&(hs(e,67108864,ds()),ru(e,67108864))},rt=function(e){if(13===e.tag){var t=ds(),n=ps(e);hs(e,n,t),ru(e,n)}},ot=function(e,t){return t()},je=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=io(r);if(!o)throw Error(a(90));X(r),ne(r,o)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Le=ws,Ie=function(e,t,n,r,o){var i=Tl;Tl|=4;try{return Go(98,e.bind(null,t,n,r,o))}finally{0===(Tl=i)&&(Gl(),$o())}},De=function(){0===(49&Tl)&&(function(){if(null!==os){var e=os;os=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,ys(e,Vo())}))}$o()}(),Ds())},Re=function(e,t){var n=Tl;Tl|=2;try{return e(t)}finally{0===(Tl=n)&&(Gl(),$o())}};var su={Events:[ro,oo,io,Ae,Te,Ds,{current:!1}]},uu={findFiberByHostInstance:no,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cu={bundleType:uu.bundleType,version:uu.version,rendererPackageName:uu.rendererPackageName,rendererConfig:uu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:uu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var fu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fu.isDisabled&&fu.supportsFiber)try{Eo=fu.inject(cu),Oo=fu}catch(ye){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=su,t.createPortal=lu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Tl;if(0!==(48&n))return e(t);Tl|=1;try{if(e)return Go(99,e.bind(null,t))}finally{Tl=n,$o()}},t.hydrate=function(e,t,n){if(!iu(t))throw Error(a(200));return au(null,e,t,!0,n)},t.render=function(e,t,n){if(!iu(t))throw Error(a(200));return au(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!iu(e))throw Error(a(40));return!!e._reactRootContainer&&(xs((function(){au(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=ws,t.unstable_createPortal=function(e,t){return lu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!iu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return au(e,t,n,!1,r)},t.version="17.0.2"},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},6770:function(e,t,n){"use strict";var r=this&&this.__extends||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])},e(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)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},l=a(n(2791)),s=a(n(4164)),u=a(n(8111)),c=a(n(6921)),f=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,o){var i,a,l,s;"text-change"===e?null===(a=(i=n).onEditorChangeText)||void 0===a||a.call(i,n.editor.root.innerHTML,t,o,n.unprivilegedEditor):"selection-change"===e&&(null===(s=(l=n).onEditorChangeSelection)||void 0===s||s.call(l,t,o,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=null!==r&&void 0!==r?r:"",n}return r(t,e),t.prototype.validateProps=function(e){var t;if(l.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(l.default.Children.count(e.children)&&"textarea"===(null===(t=l.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),a=null!==(n=e.value)&&void 0!==n?n:"";this.isEqualValue(a,o)||this.setEditorContents(this.editor,a)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),i(this.cleanProps,this.dirtyProps).some((function(t){return!u.default(e[t],r.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!u.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(r=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(r),d((function(){return n.setEditorSelection(l,a)}))}},t.prototype.instantiateEditor=function(){this.editor||(this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig()))},t.prototype.destroyEditor=function(){this.editor&&(this.unhookEditor(this.editor),delete this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new c.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?u.default(e.ops,t.ops):u.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"===typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),d((function(){return n.setEditorSelection(e,r)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=s.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,r=t.preserveWhitespace,i={key:this.state.generation,ref:function(t){e.editingArea=t}};return l.default.Children.count(n)?l.default.cloneElement(l.default.Children.only(n),i):r?l.default.createElement("pre",o({},i)):l.default.createElement("div",o({},i))},t.prototype.render=function(){var e;return l.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!==e&&void 0!==e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,r){var o,i;if(this.editor){var a=this.isDelta(this.value)?r.getContents():r.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(o=this.props).onChange)||void 0===i||i.call(o,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,o,i,a,l,s;if(this.editor){var c=this.getEditorSelection(),f=!c&&e,d=c&&!e;u.default(e,c)||(this.selection=e,null===(o=(r=this.props).onChangeSelection)||void 0===o||o.call(r,e,t,n),f?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,n):d&&(null===(s=(l=this.props).onBlur)||void 0===s||s.call(l,c,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=c.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(l.default.Component);function d(e){Promise.resolve().then(e)}e.exports=f},6374:function(e,t,n){"use strict";n(1725);var r=n(2791),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},9117:function(e,t,n){"use strict";var r=n(1725),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function m(){}function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=y.prototype;var b=g.prototype=new m;b.constructor=g,r(b,y.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var r,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!_.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:w.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var O=/\/+/g;function S(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case i:s=!0}}if(s)return a=a(s=e),e=""===r?"."+S(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(O,"$&/")+"/"),j(a,t,n,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+S(l=e[u],u);s+=j(l,t,n,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=j(l=l.value,t,n,c=r+S(l,u++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function C(e,t,n){if(null==e)return e;var r=[],o=0;return j(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function N(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var P={current:null};function A(){var e=P.current;if(null===e)throw Error(p(321));return e}var T={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(p(143));return e}},t.Component=y,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var i=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!_.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return A().useCallback(e,t)},t.useContext=function(e,t){return A().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return A().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return A().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},t.useMemo=function(e,t){return A().useMemo(e,t)},t.useReducer=function(e,t,n){return A().useReducer(e,t,n)},t.useRef=function(e){return A().useRef(e)},t.useState=function(e){return A().useState(e)},t.version="17.0.2"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";var n,r,o,i;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,c=null,f=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,y=null,m=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,x=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();b=e+g;try{y(!0,e)?x.postMessage(null):(v=!1,y=null)}catch(n){throw x.postMessage(null),n}}else v=!1},n=function(e){y=e,v||(v=!0,x.postMessage(null))},r=function(e,n){m=d((function(){e(t.unstable_now())}),n)},o=function(){p(m),m=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<O(o,t)))break e;e[r]=t,e[n]=o,n=r}}function k(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,s=e[l];if(void 0!==a&&0>O(a,n))void 0!==s&&0>O(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==s&&0>O(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var S=[],j=[],C=1,N=null,P=3,A=!1,T=!1,L=!1;function I(e){for(var t=k(j);null!==t;){if(null===t.callback)E(j);else{if(!(t.startTime<=e))break;E(j),t.sortIndex=t.expirationTime,_(S,t)}t=k(j)}}function D(e){if(L=!1,I(e),!T)if(null!==k(S))T=!0,n(R);else{var t=k(j);null!==t&&r(D,t.startTime-e)}}function R(e,n){T=!1,L&&(L=!1,o()),A=!0;var i=P;try{for(I(n),N=k(S);null!==N&&(!(N.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=N.callback;if("function"===typeof a){N.callback=null,P=N.priorityLevel;var l=a(N.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?N.callback=l:N===k(S)&&E(S),I(n)}else E(S);N=k(S)}if(null!==N)var s=!0;else{var u=k(j);null!==u&&r(D,u.startTime-n),s=!1}return s}finally{N=null,P=i,A=!1}}var M=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){T||A||(T=!0,n(R))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return k(S)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:C++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>l?(e.sortIndex=a,_(j,e),null===k(S)&&e===k(j)&&(L?o():L=!0,r(D,a-l))):(e.sortIndex=s,_(S,e),T||A||(T=!0,n(R))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";function e(t){return e="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)}function t(){t=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=_(a,n);if(l){if(l===d)continue;return l}}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 s=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(e,n,a),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}n.wrap=c;var d={};function p(){}function h(){}function v(){}var y={};u(y,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==r&&o.call(g,a)&&(y=g);var b=v.prototype=p.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(t,n){function r(i,a,l,s){var u=f(t[i],t,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==e(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,l,s)}),(function(e){r("throw",e,l,s)})):n.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return r("throw",e,l,s)}))}s(u.arg)}var i;this._invoke=function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return i=i?i.then(o,o):o()}}function _(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,_(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(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(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=v,u(b,"constructor",v),u(v,"constructor",h),h.displayName=u(v,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},n.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,l,(function(){return this})),n.AsyncIterator=x,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new x(c(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(b),u(b,s,"Generator"),u(b,a,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),n.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}},n.values=S,O.prototype={constructor:O,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),!e)for(var t in this)"t"===t.charAt(0)&&o.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 n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):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),d},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),E(n),d}},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 o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},n}function r(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function l(e){r(a,o,i,l,s,"next",e)}function s(e){r(a,o,i,l,s,"throw",e)}l(void 0)}))}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 l(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(t,n){if(n&&("object"===e(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return s(t)}function h(e){var t=d();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function v(e,t,n){return v=d()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o},v.apply(null,arguments)}function y(e){var t="function"===typeof Map?new Map:void 0;return y=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("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return v(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)},y(e)}function m(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var g=0;function b(e){return"__private_"+g+++"_"+e}var w=n(2791),x=n(4164);function _(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 k(e,t){if(e){if("string"===typeof e)return _(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)?_(e,t):void 0}}function E(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(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 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 S(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 j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(s){l=!0,o=s}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||k(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 N(e){var t,n=new Set,r=function(e,r){var o="function"===typeof e?e(t):e;if(o!==t){var i=t;t=r?o:Object.assign({},t,o),n.forEach((function(e){return e(t,i)}))}},o=function(){return t},i={setState:r,getState:o,subscribe:function(e,r,i){return r||i?function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.is;console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");var a=r(t);function l(){var n=r(t);if(!i(a,n)){var o=a;e(a=n,o)}}return n.add(l),function(){return n.delete(l)}}(e,r,i):(n.add(e),function(){return n.delete(e)})},destroy:function(){return n.clear()}};return t=e(r,o,i),i}var P="undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?w.useEffect:w.useLayoutEffect;function A(e){var t="function"===typeof e?N(e):e,n=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.getState,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.is,o=(0,w.useReducer)((function(e){return e+1}),0),i=C(o,2),a=i[1],l=t.getState(),s=(0,w.useRef)(l),u=(0,w.useRef)(n),c=(0,w.useRef)(r),f=(0,w.useRef)(!1),d=(0,w.useRef)();void 0===d.current&&(d.current=n(l));var p=!1;(s.current!==l||u.current!==n||c.current!==r||f.current)&&(e=n(l),p=!r(d.current,e)),P((function(){p&&(d.current=e),s.current=l,u.current=n,c.current=r,f.current=!1}));var h=(0,w.useRef)(l);P((function(){var e=function(){try{var e=t.getState(),n=u.current(e);c.current(d.current,n)||(s.current=e,d.current=n,a())}catch(r){f.current=!0,a()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);var v=p?e:d.current;return(0,w.useDebugValue)(v),v};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");var e=[n,t];return{next:function(){var t=e.length<=0;return{value:e.shift(),done:t}}}},n}var T=A((function(e,t){return{CORE_API:null,sideMenuState:0,cssLoaded:!1,materialOverrideExists:!1,tabSpawnCount:[],coreWcRef:null,removeModalOpen:!1,outOfStockModalOpen:!1,setOutOfStockModalOpen:function(t){return e({outOfStockModalOpen:t})},setRemoveModalOpen:function(t){return e({removeModalOpen:t})},moveModalOpen:!1,setMoveModalOpen:function(t){return e({moveModalOpen:t})},setSideMenuState:function(n){e((function(){return{sideMenuState:n}}));var r=t().CORE_API;2!==n?r.exitHotspot():r.showAllHotspots()}}})),L=function(e,t){var n=T((function(e){return e.coreWcRef})),r=(0,w.useCallback)((function(e){t(e.data)}),[e,t,n]);(0,w.useEffect)((function(){if(n)return n.addEventListener(e,r),function(){n.removeEventListener(e,r)}}),[e,n])},I=b("levels"),D=b("forceDevLogs"),R=b("level"),M=b("scope"),q=b("reformattedScope"),B=b("defaultLogStyle"),U=b("defaultGroupTitleStyle"),F=b("levelColours"),z=b("getReformattedScope"),H=b("isObjectOrArray"),V=b("isAllowedInCurrentLevel"),W=function(){function e(){i(this,e),Object.defineProperty(this,V,{value:Y}),Object.defineProperty(this,H,{value:G}),Object.defineProperty(this,z,{value:K}),Object.defineProperty(this,I,{writable:!0,value:{release:{name:"release",allows:["error"]},staging:{name:"staging",allows:["warn","error"]},dev:{name:"dev",allows:["log","warn","error"]}}}),Object.defineProperty(this,D,{writable:!0,value:!1}),Object.defineProperty(this,R,{writable:!0,value:"release"}),Object.defineProperty(this,M,{writable:!0,value:"LOGGER"}),Object.defineProperty(this,q,{writable:!0,value:""}),Object.defineProperty(this,B,{writable:!0,value:"font-weight: 100; font-size: 12px;"}),Object.defineProperty(this,U,{writable:!0,value:"font-weight: bold; font-size: 15px"}),Object.defineProperty(this,F,{writable:!0,value:{log:"green",warn:"#dd9b34",error:"#de6c6e"}}),m(this,q)[q]=m(this,z)[z](),new URL(window.location).searchParams.has("showEpigraphLogs")&&(m(this,D)[D]=!0,m(this,R)[R]=m(this,I)[I].dev.name)}return l(e,[{key:"levels",get:function(){return m(this,I)[I]}},{key:"setLevel",value:function(e){m(this,D)[D]||(Object.keys(m(this,I)[I]).includes(e)?m(this,R)[R]=e:console.warn('"'.concat(e,'": is not a valid logger level')))}},{key:"setScope",value:function(e){m(this,M)[M]="".concat(e),m(this,q)[q]=m(this,z)[z]()}},{key:"log",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;m(this,V)[V]("log")&&(void 0===t&&(t=m(this,B)[B]),m(this,H)[H](e)?(console.group("%c ".concat(m(this,q)[q]," INFO %c"),"font-weight: bold; font-size: 15px;",t),console.groupCollapsed(e)):console.groupCollapsed("%c ".concat(m(this,q)[q]," INFO %c ").concat(e),"font-weight: bold; font-size: 15px;",t),console.groupCollapsed("\t Traceback"),console.trace(),console.groupEnd(),console.groupEnd(),console.groupEnd())}},{key:"warn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;m(this,V)[V]("warn")&&(void 0===t&&(t=m(this,B)[B]),m(this,H)[H](e)?(console.group("%c ".concat(m(this,q)[q]," WARNING %c"),"font-weight: bold; font-size: 15px; color: ".concat(m(this,F)[F].warn,";"),t),console.groupCollapsed(e)):console.groupCollapsed("%c ".concat(m(this,q)[q]," WARNING %c ").concat(e),"font-weight: bold; font-size: 15px; color: ".concat(m(this,F)[F].warn,";"),t),console.groupCollapsed("\t Traceback"),console.trace(),console.groupEnd(),console.groupEnd(),console.groupEnd())}},{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;m(this,V)[V]("error")&&(void 0===t&&(t=m(this,B)[B]),m(this,H)[H](e)?(console.group("%c ".concat(m(this,q)[q]," ERROR &c"),"font-weight: bold; font-size: 15px; color: ".concat(m(this,F)[F].error,";"),t),console.groupCollapsed(e)):console.groupCollapsed("%c ".concat(m(this,q)[q]," ERROR &c ").concat(e),"font-weight: bold; font-size: 15px; color: ".concat(m(this,F)[F].error,";"),t),console.groupCollapsed("\t Traceback"),console.trace(),console.groupEnd(),console.groupEnd(),console.groupEnd())}},{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;m(this,V)[V]("log")&&(void 0===t&&(t=m(this,U)[U]),console.group("%c ".concat(m(this,q)[q]," GROUP"),t,e))}},{key:"groupCollapsed",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;m(this,V)[V]("log")&&(void 0===t&&(t=m(this,U)[U]),console.groupCollapsed("%c ".concat(m(this,q)[q]," GROUP"),t,e))}},{key:"groupEnd",value:function(){m(this,V)[V]("log")&&(console.log("----------------------------------"),console.groupEnd())}},{key:"table",value:function(e){m(this,V)[V]("log")&&console.table(e)}}]),e}();function K(){return"[".concat(m(this,M)[M],"]:")}function G(e){return"object"===typeof e||"array"===typeof e}function Y(e){return m(this,I)[I][m(this,R)[R]].allows.includes(e)}var $=null;($=new W).setScope("CONFIGURATOR"),$.setLevel($.levels.release.name);var Q="".concat("https://storage.googleapis.com/epigraph-configurator","/projects-asset-data"),X="".concat(Q,"/generic"),Z="https://storage.googleapis.com/gsc-epigraph-design/product-assets",J=document.createElement("template");J.id="drawerTemplate",J.innerHTML='\n <style>\n .drawer {\n display: none;\n position: fixed;\n z-index: 30;\n overscroll-behavior: none;\n touch-action: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: none;\n opacity: 0;\n }\n\n .drawer .drawerDialog {\n z-index: 9;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n background: white;\n border-top-left-radius: 1rem;\n border-top-right-radius: 1rem;\n display: flex;\n flex-direction: column;\n pointer-events: all;\n }\n\n .drawer .drawerDialog .drawerContainer {\n width: 100%;\n }\n\n .drawer .draggableBar {\n box-shadow: none;\n padding: 1rem 0;\n pointer-events: all;\n }\n\n .drawer .draggableBar:before {\n position: absolute;\n content: "";\n display: block;\n width: 20%;\n height: 8px;\n top: calc(1rem - (8px / 2));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 12px;\n background-color: rgba(0, 0, 0, 0.14);\n }\n\n .drawer .drawerOverlay {\n background-color: rgba(0, 0, 0, 0.6);\n will-change: opacity;\n opacity: 0;\n position: fixed;\n top: -100vh;\n left: 0;\n height: 200vh;\n width: 100vw;\n z-index: 6;\n pointer-events: none;\n transition: 300ms ease-out;\n }\n\n @media only screen and (max-width: 768px) {\n .drawer {\n display: block;\n }\n }\n </style>\n\n\n <div class="drawer" id="drawerMain">\n \x3c!-- The actual drawer --\x3e\n <div class="drawerDialog" id="drawerDialog">\n <div class="draggableBar" id="dragBar"></div>\n <div class="drawerContainer">\n <div class="drawerContent" id="bottomDrawerContent">\n <slot name="bottom-drawer-content">\n <div style="padding: 2rem">\n <h1>Testing Content</h1>\n </div>\n </slot>\n </div>\n </div>\n </div>\n\n \x3c!-- The overlay/backdrop in the background --\x3e\n <div class="drawerOverlay" id="drawerOverlay"></div>\n </div>\n';var ee=b("drawerMain"),te=b("dragBar"),ne=b("drawerDialog"),re=b("drawerOverlay"),oe=b("drawerContent"),ie=b("dragInitPosition"),ae=b("drawerClosedEvent"),le=b("drawerInitialScreenCoverage"),se=b("setupDrawer"),ue=b("initializeDrawer"),ce=b("onTouchStart"),fe=b("onTouchMove"),de=b("onTouchEnd"),pe=function(e){c(n,e);var t=h(n);function n(){var e;return i(this,n),e=t.call(this),Object.defineProperty(s(e),de,{value:ge}),Object.defineProperty(s(e),fe,{value:me}),Object.defineProperty(s(e),ce,{value:ye}),Object.defineProperty(s(e),ue,{value:ve}),Object.defineProperty(s(e),se,{value:he}),Object.defineProperty(s(e),ee,{writable:!0,value:void 0}),Object.defineProperty(s(e),te,{writable:!0,value:void 0}),Object.defineProperty(s(e),ne,{writable:!0,value:void 0}),Object.defineProperty(s(e),re,{writable:!0,value:void 0}),Object.defineProperty(s(e),oe,{writable:!0,value:void 0}),Object.defineProperty(s(e),ie,{writable:!0,value:void 0}),Object.defineProperty(s(e),ae,{writable:!0,value:new CustomEvent("drawerClosed")}),Object.defineProperty(s(e),le,{writable:!0,value:"0%"}),e.attachShadow({mode:"open"}),m(s(e),se)[se](),e}return l(n,[{key:"connectedCallback",value:function(){m(this,ue)[ue]()}},{key:"disconnectedCallback",value:function(){var e=this;m(this,te)[te].removeEventListener("touchstart",(function(t){m(e,ce)[ce](t)})),m(this,te)[te].removeEventListener("touchmove",(function(t){m(e,fe)[fe](t)})),m(this,te)[te].removeEventListener("touchend",(function(t){m(e,de)[de](t)})),m(this,re)[re].removeEventListener("click",(function(t){e.closeDrawer()}))}},{key:"attributeChangedCallback",value:function(e,t,n){switch(e){case"open":t!==n&&("false"===n.toLowerCase()?(this.closeDrawer(),this.dispatchEvent(m(this,ae)[ae])):"true"===n.toLowerCase()&&this.openDrawer());break;case"initial-screen-coverage":t!==n&&(m(this,le)[le]=n)}}},{key:"openDrawer",value:function(){m(this,ee)[ee].style.opacity="1",m(this,re)[re].style.opacity="1",m(this,ne)[ne].style.transition="transform 500ms ease-in-out",m(this,ne)[ne].style.transform="translateY(".concat(m(this,le)[le],")"),m(this,re)[re].style.pointerEvents="all",this.setAttribute("open","true")}},{key:"closeDrawer",value:function(){m(this,re)[re].style.opacity="0",m(this,ne)[ne].style.transition="transform 500ms ease-in-out",m(this,ne)[ne].style.transform="translateY(".concat(m(this,ne)[ne].clientHeight,"px)"),m(this,re)[re].style.pointerEvents="none",this.setAttribute("open","false")}}],[{key:"observedAttributes",get:function(){return["open","initial-screen-coverage"]}}]),n}(y(HTMLElement));function he(){var e=this;this.shadowRoot.appendChild(J.content.cloneNode(!0)),m(this,ee)[ee]=this.shadowRoot.getElementById("drawerMain"),m(this,te)[te]=this.shadowRoot.getElementById("dragBar"),m(this,ne)[ne]=this.shadowRoot.getElementById("drawerDialog"),m(this,re)[re]=this.shadowRoot.getElementById("drawerOverlay"),m(this,oe)[oe]=this.shadowRoot.getElementById("bottomDrawerContent"),m(this,te)[te].addEventListener("touchstart",(function(t){m(e,ce)[ce](t)})),m(this,te)[te].addEventListener("touchmove",(function(t){m(e,fe)[fe](t)})),m(this,te)[te].addEventListener("touchend",(function(t){m(e,de)[de](t)})),m(this,re)[re].addEventListener("click",(function(t){e.closeDrawer()}))}function ve(){m(this,ne)[ne].style.transform="translateY(100vh)"}function ye(e){m(this,ne)[ne].style.transition="none",m(this,ie)[ie]=e.changedTouches[0].clientY}function me(e){var t=e.touches[0].clientY,n=window.screen.height-t,r=n/m(this,ne)[ne].clientHeight;n<=m(this,ne)[ne].clientHeight&&(m(this,ne)[ne].style.transform="translate(0px, ".concat(m(this,ne)[ne].clientHeight-n,"px)")),m(this,re)[re].style.opacity=r}function ge(e){e.changedTouches[0].clientY>=m(this,ie)[ie]?this.closeDrawer():(m(this,ne)[ne].style.transition="transform 500ms ease-in-out",m(this,ne)[ne].style.transform="translateY(0%)")}window.customElements.define("bottom-drawer",pe);var be=n(184),we=function(e){var n=e.zIndex,r=e.open,i=e.setOpen,a=e.heading,l=e.inputValue,s=e.buttonText,u=e.inputPlaceholder,c=e.formFieldExists,f=e.dualOptions,d=e.modalText,p=e.onSubmit,h=void 0===p?function(){}:p,v=e.onCancel,y=void 0===v?function(){}:v,m=e.shareModal,g=e.loading,b=T((function(e){return e.CORE_API})),x=C((0,w.useState)(r),2),_=(x[0],x[1],C((0,w.useState)(r),2)),k=_[0],E=_[1],O=C((0,w.useState)(""),2),S=O[0],j=O[1],N=(0,w.useRef)(null),P=C((0,w.useState)(g||null),2),A=P[0],L=P[1];function I(e){j(e.target.value)}return(0,w.useEffect)((function(){T.getState().CORE_API.isMobile&&N&&N.current.addEventListener("drawerClosed",(function(){i(!1),$.log("UI Drawer Dismissed!!")}))}),[N]),(0,w.useEffect)((function(){return L(g),function(){}}),[g]),(0,w.useEffect)((function(){return E(r),function(){}}),[r]),(0,be.jsx)(be.Fragment,{children:b.isMobile?(0,be.jsx)("bottom-drawer",{style:{zIndex:n},id:"hotspotDrawer",ref:N,open:"".concat(k),children:(0,be.jsx)("div",{className:"epigraphDrawer uiModalDrawer",slot:"bottom-drawer-content",children:(0,be.jsxs)("div",{className:"modalDialog",children:[(0,be.jsx)("div",{className:"modalCloseContainer",children:(0,be.jsx)("button",{onClick:function(){i(!1)},children:(0,be.jsx)("img",{src:Z+"/Icon/X.svg"})})}),(0,be.jsx)("h2",{className:"modalHeading",children:a}),d&&(0,be.jsx)("p",{className:"modalText",children:d}),(0,be.jsx)("div",{className:m?"shareModal":"shareModalRelative",children:A?(0,be.jsx)("div",{className:"shareModalChildDiv",children:(0,be.jsx)("img",{className:"shareModalLoaderImg",src:Z+"/Animation/Loading.svg"})}):(0,be.jsxs)(be.Fragment,{children:[c&&(void 0!==l?(0,be.jsx)("input",{type:"text",value:l,readOnly:!0}):(0,be.jsx)("input",{placeholder:u||"",type:"text",value:S,onChange:function(e){I(e)}})),f?(0,be.jsxs)("div",{className:"UIModalButtonParentDiv",children:[(0,be.jsx)("button",{role:"button",onClick:o(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:h(),i(!1);case 2:case"end":return e.stop()}}),e)}))),children:s}),(0,be.jsx)("button",{role:"button",onClick:function(){y(),i(!1)},className:"uiModalCancelButton",children:"Cancel"})]}):(0,be.jsx)("button",{role:"button",onClick:function(){i(!1),h()},children:s})]})})]})})}):(0,be.jsxs)("div",{className:!0===r?"uiModal open":"uiModal",children:[(0,be.jsxs)("div",{className:"modalDialog",children:[(0,be.jsx)("div",{className:"modalCloseContainer",children:(0,be.jsx)("button",{onClick:function(){i(!1)},children:(0,be.jsx)("img",{src:Z+"/Icon/X.svg"})})}),(0,be.jsx)("h2",{className:"modalHeading",children:a}),d&&(0,be.jsx)("p",{className:"modalText",children:d}),(0,be.jsx)("div",{className:m?"shareModal":"noShareModal",children:A?(0,be.jsx)("div",{className:"shareModalChildDiv",children:(0,be.jsx)("img",{className:"shareModalLoaderImg",src:Z+"/Animation/Loading.svg"})}):(0,be.jsxs)(be.Fragment,{children:[c&&(void 0!==l?(0,be.jsx)("input",{type:"text",value:l,readOnly:!0}):(0,be.jsx)("input",{placeholder:u||"",type:"text",value:S,onChange:function(e){I(e)}})),f?(0,be.jsxs)("div",{className:"UIModalButtonParentDiv",children:[(0,be.jsx)("button",{role:"button",onClick:function(){i(!1),h()},children:s}),(0,be.jsx)("button",{role:"button",onClick:function(){i(!1),y()},className:"uiModalCancelButton",children:"Cancel"})]}):(0,be.jsx)("button",{role:"button",onClick:function(){i(!1),h()},children:s})]})})]}),(0,be.jsx)("div",{className:"modalOverlay"})]})})};function xe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _e=["children","className"],ke="splide",Ee="data-".concat(ke),Oe={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5};function Se(e){e.length=0}function je(e){return!Ae(e)&&"object"===typeof e}function Ce(e){return Array.isArray(e)}function Ne(e){return"string"===typeof e}function Pe(e){return"undefined"===typeof e}function Ae(e){return null===e}function Te(e){return e instanceof HTMLElement}function Le(e){return Ce(e)?e:[e]}function Ie(e,t){Le(e).forEach(t)}function De(e,t){return e.indexOf(t)>-1}function Re(e,t){return e.push.apply(e,E(Le(t))),e}var Me=Array.prototype;function qe(e,t,n){return Me.slice.call(e,t,n)}function Be(e,t,n){e&&Ie(t,(function(t){t&&e.classList[n?"add":"remove"](t)}))}function Ue(e,t){Be(e,Ne(t)?t.split(" "):t,!0)}function Fe(e,t){Ie(t,e.appendChild.bind(e))}function ze(e,t){Ie(e,(function(e){var n=t.parentNode;n&&n.insertBefore(e,t)}))}function He(e,t){return Te(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function Ve(e,t){return e?qe(e.children).filter((function(e){return He(e,t)})):[]}function We(e,t){return t?Ve(e,t)[0]:e.firstElementChild}function Ke(e,t,n){if(e){var r=Object.keys(e);r=n?r.reverse():r;for(var o=0;o<r.length;o++){var i=r[o];if("__proto__"!==i&&!1===t(e[i],i))break}}return e}function Ge(e){return qe(arguments,1).forEach((function(t){Ke(t,(function(n,r){e[r]=t[r]}))})),e}function Ye(e,t){return Ke(t,(function(t,n){Ce(t)?e[n]=t.slice():je(t)?e[n]=Ye(je(e[n])?e[n]:{},t):e[n]=t})),e}function $e(e,t){e&&Ie(t,(function(t){e.removeAttribute(t)}))}function Qe(e,t,n){je(t)?Ke(t,(function(t,n){Qe(e,n,t)})):Ae(n)?$e(e,t):e.setAttribute(t,String(n))}function Xe(e,t,n){var r=document.createElement(e);return t&&(Ne(t)?Ue(r,t):Qe(r,t)),n&&Fe(n,r),r}function Ze(e,t,n){if(Pe(n))return getComputedStyle(e)[t];if(!Ae(n)){var r=e.style;n="".concat(n),r[t]!==n&&(r[t]=n)}}function Je(e,t){Ze(e,"display",t)}function et(e,t){return e.getAttribute(t)}function tt(e,t){return e&&e.classList.contains(t)}function nt(e){return e.getBoundingClientRect()}function rt(e){Ie(e,(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}))}function ot(e){return We((new DOMParser).parseFromString(e,"text/html").body)}function it(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function at(e,t){return e&&e.querySelector(t)}function lt(e,t){return qe(e.querySelectorAll(t))}function st(e,t){Be(e,t,!1)}function ut(e){return Ne(e)?e:e?"".concat(e,"px"):""}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)throw new Error("[".concat(ke,"] ").concat(t))}function ft(e){setTimeout(e)}var dt=function(){};function pt(e){return requestAnimationFrame(e)}var ht=Math.min,vt=Math.max,yt=Math.floor,mt=Math.ceil,gt=Math.abs;function bt(e,t,n,r){var o=ht(t,n),i=vt(t,n);return r?o<e&&e<i:o<=e&&e<=i}function wt(e,t,n){var r=ht(t,n),o=vt(t,n);return ht(vt(r,e),o)}function xt(e){return+(e>0)-+(e<0)}function _t(e,t){return Ie(t,(function(t){e=e.replace("%s","".concat(t))})),e}function kt(e){return e<10?"0".concat(e):"".concat(e)}var Et={};var Ot="mounted",St="ready",jt="move",Ct="moved",Nt="shifted",Pt="click",At="active",Tt="inactive",Lt="visible",It="hidden",Dt="slide:keydown",Rt="refresh",Mt="updated",qt="resize",Bt="resized",Ut="repositioned",Ft="drag",zt="dragging",Ht="dragged",Vt="scroll",Wt="scrolled",Kt="destroy",Gt="arrows:mounted",Yt="arrows:updated",$t="pagination:mounted",Qt="pagination:updated",Xt="navigation:mounted",Zt="autoplay:play",Jt="autoplay:playing",en="autoplay:pause",tn="lazyload:loaded";function nn(e){var t=e.event,n={},r=[];function o(e,t,n){i(e,t,(function(e,t){r=r.filter((function(r){return!!(r[0]!==e||r[1]!==t||n&&r[2]!==n)||(e.removeEventListener(t,r[2],r[3]),!1)}))}))}function i(e,t,n){Ie(e,(function(e){e&&t.split(" ").forEach(n.bind(null,e))}))}function a(){r=r.filter((function(e){return o(e[0],e[1])})),t.offBy(n)}return t.on(Kt,a,n),{on:function(e,r,o){t.on(e,r,n,o)},off:function(e){t.off(e,n)},emit:t.emit,bind:function(e,t,n,o){i(e,t,(function(e,t){r.push([e,t,n,o]),e.addEventListener(t,n,o)}))},unbind:o,destroy:a}}function rn(e,t,n,r){var o,i,a=Date.now,l=0,s=!0,u=0;function c(){if(!s){var i=a()-o;if(i>=e?(l=1,o=a()):l=i/e,n&&n(l),1===l&&(t(),r&&++u>=r))return f();pt(c)}}function f(){s=!0}function d(){cancelAnimationFrame(i),l=0,i=0,s=!0}return{start:function(t){!t&&d(),o=a()-(t?l*e:0),s=!1,pt(c)},rewind:function(){o=a(),l=0,n&&n(l)},pause:f,cancel:d,set:function(t){e=t},isPaused:function(){return s}}}function on(e,t){var n;return function(){var r=arguments,o=this;n||(n=rn(t||0,(function(){e.apply(o,r),n=null}),null,1)).start()}}var an="ttb",ln={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]};var sn=ke,un="".concat(ke,"__slider"),cn="".concat(ke,"__track"),fn="".concat(ke,"__list"),dn="".concat(ke,"__slide"),pn="".concat(dn,"--clone"),hn="".concat(dn,"__container"),vn="".concat(ke,"__arrows"),yn="".concat(ke,"__arrow"),mn="".concat(yn,"--prev"),gn="".concat(yn,"--next"),bn="".concat(ke,"__pagination"),wn="".concat(bn,"__page"),xn="".concat(ke,"__progress"),_n="".concat(xn,"__bar"),kn="".concat(ke,"__autoplay"),En="".concat(ke,"__play"),On="".concat(ke,"__pause"),Sn="".concat(ke,"__spinner"),jn="is-active",Cn="is-prev",Nn="is-next",Pn="is-visible",An="is-loading",Tn=[jn,Pn,Cn,Nn,An],Ln={slide:dn,clone:pn,arrows:vn,arrow:yn,prev:mn,next:gn,pagination:bn,page:wn,spinner:Sn};var In="role",Dn="aria-controls",Rn="aria-current",Mn="aria-label",qn="aria-hidden",Bn="tabindex",Un="aria-orientation",Fn=[In,Dn,Rn,Mn,qn,Un,Bn,"disabled"],zn="slide",Hn="loop",Vn="fade";function Wn(e,t,n,r){var o,i=nn(e),a=i.on,l=i.emit,s=i.bind,u=i.destroy,c=e.Components,f=e.root,d=e.options,p=d.isNavigation,h=d.updateOnMove,v=c.Direction.resolve,y=et(r,"style"),m=n>-1,g=We(r,".".concat(hn)),b=d.focusableNodes&<(r,d.focusableNodes);function w(){var o=m?n:t,i=_t(d.i18n.slideX,o+1),a=e.splides.map((function(e){return e.splide.root.id})).join(" ");Qe(r,Mn,i),Qe(r,Dn,a),Qe(r,In,"menuitem"),k(E())}function x(){o||_()}function _(){if(!o){var n=e.index;k(E()),function(e){var t=!e&&(!E()||m);Qe(r,qn,t||null),Qe(r,Bn,!t&&d.slideFocus?0:null),b&&b.forEach((function(e){Qe(e,Bn,t?-1:null)}));e!==tt(r,Pn)&&(Be(r,Pn,e),l(e?Lt:It,O))}(function(){if(e.is(Vn))return E();var t=nt(c.Elements.track),n=nt(r),o=v("left"),i=v("right");return yt(t[o])<=mt(n[o])&&yt(n[i])<=mt(t[i])}()),Be(r,Cn,t===n-1),Be(r,Nn,t===n+1)}}function k(e){e!==tt(r,jn)&&(Be(r,jn,e),p&&Qe(r,Rn,e||null),l(e?At:Tt,O))}function E(){var r=e.index;return r===t||d.cloneStatus&&r===n}var O={index:t,slideIndex:n,slide:r,container:g,isClone:m,mount:function(){m||(r.id="".concat(f.id,"-slide").concat(kt(t+1))),s(r,"click keydown",(function(e){l("click"===e.type?Pt:Dt,O,e)})),a([Rt,Ut,Nt,Ct,Wt],_),a(Xt,w),h&&a(jt,x)},destroy:function(){o=!0,u(),st(r,Tn),$e(r,Fn),Qe(r,"style",y)},update:_,style:function(e,t,n){Ze(n&&g||r,e,t)},isWithin:function(n,r){var o=gt(n-t);return m||!d.rewind&&!e.is(Hn)||(o=ht(o,e.length-o)),o<=r}};return O}var Kn="".concat(Ee,"-interval");var Gn={passive:!1,capture:!0},Yn="touchmove mousemove",$n="touchend touchcancel mouseup";var Qn=["Left","Right","Up","Down"],Xn="keydown";var Zn="".concat(Ee,"-lazy"),Jn="".concat(Zn,"-srcset"),er="[".concat(Zn,"], [").concat(Jn,"]");var tr=[" ","Enter","Spacebar"];var nr=Object.freeze({__proto__:null,Options:function(e,t,n){var r,o,i,a=on(s);function l(e){e&&removeEventListener("resize",a)}function s(){var t,a=(t=function(e){return e[1].matches},qe(o).filter(t)[0]||[]);a[0]!==i&&function(t){var o=n.breakpoints[t]||r;o.destroy?(e.options=r,e.destroy("completely"===o.destroy)):(e.state.is(5)&&(l(!0),e.mount()),e.options=o)}(i=a[0])}return{setup:function(){try{Ye(n,JSON.parse(et(e.root,Ee)))}catch(a){ct(!1,a.message)}r=Ye({},n);var t=n.breakpoints;if(t){var i="min"===n.mediaQuery;o=Object.keys(t).sort((function(e,t){return i?+t-+e:+e-+t})).map((function(e){return[e,matchMedia("(".concat(i?"min":"max","-width:").concat(e,"px)"))]})),s()}},mount:function(){o&&addEventListener("resize",a)},destroy:l}},Direction:function(e,t,n){return{resolve:function(e,t){var r=n.direction;return ln[e]["rtl"!==r||t?r===an?0:-1:1]||e},orient:function(e){return e*("rtl"===n.direction?1:-1)}}},Elements:function(e,t,n){var r,o,i,a,l=nn(e).on,s=e.root,u={},c=[];function f(){!function(){o=We(s,".".concat(un)),i=at(s,".".concat(cn)),a=We(i,".".concat(fn)),ct(i&&a,"A track/list element is missing."),Re(c,Ve(a,".".concat(dn,":not(.").concat(pn,")")));var e=v(".".concat(kn)),t=v(".".concat(vn));Ge(u,{root:s,slider:o,track:i,list:a,slides:c,arrows:t,autoplay:e,prev:at(t,".".concat(mn)),next:at(t,".".concat(gn)),bar:at(v(".".concat(xn)),".".concat(_n)),play:at(e,".".concat(En)),pause:at(e,".".concat(On))})}(),function(){var e=s.id||(t=ke,"".concat(t).concat(kt(Et[t]=(Et[t]||0)+1)));var t;s.id=e,i.id=i.id||"".concat(e,"-track"),a.id=a.id||"".concat(e,"-list")}(),Ue(s,r=y())}function d(){[s,i,a].forEach((function(e){$e(e,"style")})),Se(c),st(s,r)}function p(){d(),f()}function h(){st(s,r),Ue(s,r=y())}function v(e){return We(s,e)||We(o,e)}function y(){return["".concat(sn,"--").concat(n.type),"".concat(sn,"--").concat(n.direction),n.drag&&"".concat(sn,"--draggable"),n.isNavigation&&"".concat(sn,"--nav"),jn]}return Ge(u,{setup:f,mount:function(){l(Rt,p,8),l(Mt,h)},destroy:d})},Slides:function(e,t,n){var r=nn(e),o=r.on,i=r.emit,a=r.bind,l=t.Elements,s=l.slides,u=l.list,c=[];function f(){s.forEach((function(e,t){h(e,t,-1)}))}function d(){y((function(e){e.destroy()})),Se(c)}function p(){d(),f()}function h(t,n,r){var o=Wn(e,n,r,t);o.mount(),c.push(o)}function v(e){return e?m((function(e){return!e.isClone})):c}function y(e,t){v(t).forEach(e)}function m(e){return c.filter("function"===typeof e?e:function(t){return Ne(e)?He(t.slide,e):De(Le(e),t.index)})}return{mount:function(){f(),o(Rt,p),o([Ot,Rt],(function(){c.sort((function(e,t){return e.index-t.index}))}))},destroy:d,update:function(){y((function(e){e.update()}))},register:h,get:v,getIn:function(e){var r=t.Controller,o=r.toIndex(e),i=r.hasFocus()?1:n.perPage;return m((function(e){return bt(e.index,o,o+i-1)}))},getAt:function(e){return m(e)[0]},add:function(e,t){Ie(e,(function(e){if(Ne(e)&&(e=ot(e)),Te(e)){var r=s[t];r?ze(e,r):Fe(u,e),Ue(e,n.classes.slide),function(e,t){var n=lt(e,"img"),r=n.length;r?n.forEach((function(e){a(e,"load error",(function(){--r||t()}))})):t()}(e,i.bind(null,qt))}})),i(Rt)},remove:function(e){rt(m(e).map((function(e){return e.slide}))),i(Rt)},forEach:y,filter:m,style:function(e,t,n){y((function(r){r.style(e,t,n)}))},getLength:function(e){return e?s.length:c.length},isEnough:function(){return c.length>n.perPage}}},Layout:function(e,t,n){var r,o,i=nn(e),a=i.on,l=i.bind,s=i.emit,u=t.Slides,c=t.Direction.resolve,f=t.Elements,d=f.root,p=f.track,h=f.list,v=u.getAt;function y(){o=null,r=n.direction===an,Ze(d,"maxWidth",ut(n.width)),Ze(p,c("paddingLeft"),g(!1)),Ze(p,c("paddingRight"),g(!0)),m()}function m(){var e=nt(d);o&&o.width===e.width&&o.height===e.height||(Ze(p,"height",function(){var e="";r&&(ct(e=b(),"height or heightRatio is missing."),e="calc(".concat(e," - ").concat(g(!1)," - ").concat(g(!0),")"));return e}()),u.style(c("marginRight"),ut(n.gap)),u.style("width",(n.autoWidth?"":ut(n.fixedWidth)||(r?"":w()))||null),u.style("height",ut(n.fixedHeight)||(r?n.autoHeight?"":w():b())||null,!0),o=e,s(Bt))}function g(e){var t=n.padding,r=c(e?"right":"left");return t&&ut(t[r]||(je(t)?0:t))||"0px"}function b(){return ut(n.height||nt(h).width*n.heightRatio)}function w(){var e=ut(n.gap);return"calc((100%".concat(e&&" + ".concat(e),")/").concat(n.perPage||1).concat(e&&" - ".concat(e),")")}function x(e,t){var n=v(e);if(n){var r=nt(n.slide)[c("right")],o=nt(h)[c("left")];return gt(r-o)+(t?0:_())}return 0}function _(){var e=v(0);return e&&parseFloat(Ze(e.slide,c("marginRight")))||0}return{mount:function(){y(),l(window,"resize load",on(s.bind(this,qt))),a([Mt,Rt],y),a(qt,m)},listSize:function(){return nt(h)[c("width")]},slideSize:function(e,t){var n=v(e||0);return n?nt(n.slide)[c("width")]+(t?0:_()):0},sliderSize:function(){return x(e.length-1,!0)-x(-1,!0)},totalSize:x,getPadding:function(e){return parseFloat(Ze(p,c("padding".concat(e?"Right":"Left"))))||0}}},Clones:function(e,t,n){var r,o=nn(e),i=o.on,a=o.emit,l=t.Elements,s=t.Slides,u=t.Direction.resolve,c=[];function f(){(r=v())&&(!function(t){var r=s.get().slice(),o=r.length;if(o){for(;r.length<t;)Re(r,r);Re(r.slice(-t),r.slice(0,t)).forEach((function(i,a){var u=a<t,f=function(t,r){var o=t.cloneNode(!0);return Ue(o,n.classes.clone),o.id="".concat(e.root.id,"-clone").concat(kt(r+1)),o}(i.slide,a);u?ze(f,r[0].slide):Fe(l.list,f),Re(c,f),s.register(f,a-t+(u?0:o),i.index)}))}}(r),a(qt))}function d(){rt(c),Se(c)}function p(){d(),f()}function h(){r<v()&&a(Rt)}function v(){var t=n.clones;if(e.is(Hn)){if(!t){var r=function(e,t){if(Ne(t)){var n=Xe("div",{style:"width: ".concat(t,"; position: absolute;")},e);t=nt(n).width,rt(n)}return t}(l.list,n[u("fixedWidth")]);t=(r&&mt(nt(l.track)[u("width")]/r)||n[u("autoWidth")]&&e.length||n.perPage)*(n.drag?(n.flickMaxPages||1)+1:2)}}else t=0;return t}return{mount:function(){f(),i(Rt,p),i([Mt,qt],h)},destroy:d}},Move:function(e,t,n){var r,o=nn(e),i=o.on,a=o.emit,l=t.Layout,s=l.slideSize,u=l.getPadding,c=l.totalSize,f=l.listSize,d=l.sliderSize,p=t.Direction,h=p.resolve,v=p.orient,y=t.Elements,m=y.list,g=y.track;function b(){S()||(t.Scroll.cancel(),w(e.index),a(Ut))}function w(e){x(k(e,!0))}function x(t,n){if(!e.is(Vn)){var r=n?t:function(t){if(e.is(Hn)){var n=v(t-E()),r=j(!1,t)&&n<0,o=j(!0,t)&&n>0;(r||o)&&(t=_(t,o))}return t}(t);m.style.transform="translate".concat(h("X"),"(").concat(r,"px)"),t!==r&&a(Nt)}}function _(e,t){var n=e-O(t),r=d();return e-=v(r*(mt(gt(n)/r)||1))*(t?1:-1)}function k(t,r){var o=v(c(t-1)-function(e){var t=n.focus;return"center"===t?(f()-s(e,!0))/2:+t*s(e)||0}(t));return r?function(t){n.trimSpace&&e.is(zn)&&(t=wt(t,0,v(d()-f())));return t}(o):o}function E(){var e=h("left");return nt(m)[e]-nt(g)[e]+v(u(!1))}function O(e){return k(e?t.Controller.getEnd():0,!!n.trimSpace)}function S(){return e.state.is(4)&&n.waitForTransition}function j(e,t){t=Pe(t)?E():t;var n=!0!==e&&v(t)<v(O(!1)),r=!1!==e&&v(t)>v(O(!0));return n||r}return{mount:function(){r=t.Transition,i([Ot,Bt,Mt,Rt],b)},destroy:function(){$e(m,"style")},move:function(o,i,l,s){if(!S()){var u=e.state.set,c=E();o!==i&&(r.cancel(),x(_(c,o>i),!0)),u(4),a(jt,i,l,o),r.start(i,(function(){u(3),a(Ct,i,l,o),"move"===n.trimSpace&&o!==l&&c===E()?t.Controller.go(o>l?">":"<",!1,s):s&&s()}))}},jump:w,translate:x,shift:_,cancel:function(){x(E()),r.cancel()},toIndex:function(e){for(var n=t.Slides.get(),r=0,o=1/0,i=0;i<n.length;i++){var a=n[i].index,l=gt(k(a,!0)-e);if(!(l<=o))break;o=l,r=a}return r},toPosition:k,getPosition:E,getLimit:O,isBusy:S,exceededLimit:j}},Controller:function(e,t,n){var r,o,i,a=nn(e).on,l=t.Move,s=l.getPosition,u=l.getLimit,c=t.Slides,f=c.isEnough,d=c.getLength,p=e.is(Hn),h=e.is(zn),v=n.start||0,y=v;function m(){r=d(!0),o=n.perMove,i=n.perPage,v=wt(v,0,r-1)}function g(e,n,r,o,i){var a=n?e:j(e);t.Scroll.scroll(n||r?l.toPosition(a,!0):e,o,(function(){N(l.toIndex(l.getPosition())),i&&i()}))}function b(e){return x(!1,e)}function w(e){return x(!0,e)}function x(e,t){var n,r,a,l=o||(P()?1:i),c=_(v+l*(e?-1:1),v);return-1!==c||!h||(n=s(),r=u(!e),a=1,gt(n-r)<a)?t?c:E(c):e?0:k()}function _(e,t,a){if(f()){var l=k();e<0||e>l?e=bt(0,e,t,!0)||bt(l,t,e,!0)?O(S(e)):p?o||P()?e:e<0?-(r%i||i):r:n.rewind?e<0?l:0:-1:a||e===t||(e=o?e:O(S(t)+(e<t?-1:1)))}else e=-1;return e}function k(){var e=r-i;return(P()||p&&o)&&(e=r-1),vt(e,0)}function E(e){return p?f()?e%r+(e<0?r:0):-1:e}function O(e){return wt(P()?e:i*e,0,k())}function S(e){return P()||(e=bt(e,r-i,r-1)?r-1:e,e=yt(e/i)),e}function j(e){var t=l.toIndex(e);return h?wt(t,0,k()):t}function N(e){e!==v&&(y=v,v=e)}function P(){return!Pe(n.focus)||n.isNavigation}return{mount:function(){m(),a([Mt,Rt],m,9)},go:function(e,t,r){var o=function(e){var t=v;if(Ne(e)){var n=C(e.match(/([+\-<>])(\d+)?/)||[],3),r=n[1],o=n[2];"+"===r||"-"===r?t=_(v+ +"".concat(r).concat(+o||1),v,!0):">"===r?t=o?O(+o):b(!0):"<"===r&&(t=w(!0))}else t=p?e:wt(e,0,k());return t}(e);if(n.useScroll)g(o,!0,!0,n.speed,r);else{var i=E(o);i>-1&&!l.isBusy()&&(t||i!==v)&&(N(i),l.move(o,i,y,r))}},scroll:g,getNext:b,getPrev:w,getAdjacent:x,getEnd:k,setIndex:N,getIndex:function(e){return e?y:v},toIndex:O,toPage:S,toDest:j,hasFocus:P}},Arrows:function(e,t,n){var r,o=nn(e),i=o.on,a=o.bind,l=o.emit,s=n.classes,u=n.i18n,c=t.Elements,f=t.Controller,d=c.arrows,p=c.prev,h=c.next,v={};function y(){if(n.arrows&&(p&&h||(d=Xe("div",s.arrows),p=m(!0),h=m(!1),r=!0,Fe(d,[p,h]),ze(d,We("slider"===n.arrows&&c.slider||e.root)))),p&&h)if(v.prev)Je(d,!1===n.arrows?"none":"");else{var t=c.track.id;Qe(p,Dn,t),Qe(h,Dn,t),v.prev=p,v.next=h,function(){var e=f.go;i([Ot,Ct,Mt,Rt,Wt],g),a(h,"click",(function(){e(">",!0)})),a(p,"click",(function(){e("<",!0)}))}(),l(Gt,p,h)}}function m(e){return ot('<button class="'.concat(s.arrow," ").concat(e?s.prev:s.next,'" type="button"><svg xmlns="').concat("http://www.w3.org/2000/svg",'" viewBox="0 0 ').concat(40," ").concat(40,'" width="').concat(40,'" height="').concat(40,'"><path d="').concat(n.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",'" />'))}function g(){var t=e.index,n=f.getPrev(),r=f.getNext(),o=n>-1&&t<n?u.last:u.prev,i=r>-1&&t>r?u.first:u.next;p.disabled=n<0,h.disabled=r<0,Qe(p,Mn,o),Qe(h,Mn,i),l(Yt,p,h,n,r)}return{arrows:v,mount:function(){y(),i(Mt,y)},destroy:function(){r?rt(d):($e(p,Fn),$e(h,Fn))}}},Autoplay:function(e,t,n){var r,o,i,a=nn(e),l=a.on,s=a.bind,u=a.emit,c=rn(n.interval,e.go.bind(e,">"),(function(e){var t=d.bar;t&&Ze(t,"width","".concat(100*e,"%")),u(Jt,e)})),f=c.isPaused,d=t.Elements;function p(e){var t=e?"pause":"play",r=d[t];r&&(Qe(r,Dn,d.track.id),Qe(r,Mn,n.i18n[t]),s(r,"click",e?v:h))}function h(){f()&&t.Slides.isEnough()&&(c.start(!n.resetProgress),o=r=i=!1,u(Zt))}function v(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];f()||(c.pause(),u(en)),i=e}function y(){i||(r||o?v(!1):h())}function m(){var r=t.Slides.getAt(e.index);c.set(r&&+et(r.slide,Kn)||n.interval)}return{mount:function(){var e=n.autoplay;e&&(p(!0),p(!1),function(){var e=d.root;n.pauseOnHover&&s(e,"mouseenter mouseleave",(function(e){r="mouseenter"===e.type,y()}));n.pauseOnFocus&&s(e,"focusin focusout",(function(e){o="focusin"===e.type,y()}));l([jt,Vt,Rt],c.rewind),l(jt,m)}(),"pause"!==e&&h())},destroy:c.cancel,play:h,pause:v,isPaused:f}},Cover:function(e,t,n){var r=nn(e).on;function o(e){t.Slides.forEach((function(t){var n=We(t.container||t.slide,"img");n&&n.src&&i(e,n,t)}))}function i(e,t,n){n.style("background",e?'center/cover no-repeat url("'.concat(t.src,'")'):"",!0),Je(t,e?"none":"")}return{mount:function(){n.cover&&(r(tn,(function(e,t){i(!0,e,t)})),r([Ot,Mt,Rt],o.bind(null,!0)))},destroy:function(){o(!1)}}},Scroll:function(e,t,n){var r,o,i=nn(e),a=i.on,l=i.emit,s=t.Move,u=s.getPosition,c=s.getLimit,f=s.exceededLimit;function d(t,i,a,v){var y,m=u(),g=1;i=i||(y=gt(t-m),vt(y/1.5,800)),o=a,h(),r=rn(i,p,(function(r){var o,i=u(),a=(m+(t-m)*function(e){var t=n.easingFunc;return t?t(e):1-Math.pow(1-e,4)}(r)-u())*g;s.translate(i+a),e.is(zn)&&!v&&f()&&(g*=.6,gt(a)<10&&(o=f(!1),d(c(!o),600,null,!0)))}),1),l(Vt),r.start()}function p(){var t=u(),n=s.toIndex(t);bt(n,0,e.length-1)||s.translate(s.shift(t,n>0),!0),o&&o(),l(Wt)}function h(){r&&r.cancel()}function v(){r&&!r.isPaused()&&(h(),p())}return{mount:function(){a(jt,h),a([Mt,Rt],v)},destroy:h,scroll:d,cancel:v}},Drag:function(e,t,n){var r,o,i,a,l,s,u,c,f,d=nn(e),p=d.on,h=d.emit,v=d.bind,y=d.unbind,m=t.Move,g=t.Scroll,b=t.Controller,w=t.Elements.track,x=t.Direction,_=x.resolve,k=x.orient,E=m.getPosition,O=m.exceededLimit,S=!1;function j(){var e=n.drag;M(!e),l="free"===e}function C(e){if(!c){var t=n.noDrag,r=R(e),o=!t||!He(e.target,t);u=!1,!o||!r&&e.button||(m.isBusy()?it(e,!0):(f=r?w:window,i=null,a=null,v(f,Yn,N,Gn),v(f,$n,P,Gn),m.cancel(),g.cancel(),A(e)))}}function N(t){if(a||h(Ft),a=t,t.cancelable){var i=I(t)-I(o);if(s){m.translate(r+function(t){return t/(S&&e.is(zn)?5:1)}(i));var l=D(t)-D(o)>200,c=S!==(S=O());(l||c)&&A(t),h(zt),u=!0,it(t)}else{var f=n.dragMinThreshold;f=je(f)?f:{mouse:0,touch:+f||10},s=gt(i)>(R(t)?f.touch:f.mouse),L()&&it(t)}}}function P(r){y(f,Yn,N),y(f,$n,P);var u=e.index;if(a){if(s||r.cancelable&&L()){var c=function(t){if(e.is(Hn)||!S){var n=o===a&&i||o,r=I(a)-I(n),l=D(t)-D(n),s=D(t)-D(a)<200;if(l&&s)return r/l}return 0}(r),d=function(e){return E()+xt(e)*ht(gt(e)*(n.flickPower||600),l?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(c);l?b.scroll(d):e.is(Vn)?b.go(u+k(xt(c))):b.go(b.toDest(d),!0),it(r)}h(Ht)}else l||E()===m.toPosition(u)||b.go(u,!0);s=!1}function A(e){i=o,o=e,r=E()}function T(e){!c&&u&&it(e,!0)}function L(){return gt(I(a)-I(o))>gt(I(a,!0)-I(o,!0))}function I(e,t){return(R(e)?e.touches[0]:e)["page".concat(_(t?"Y":"X"))]}function D(e){return e.timeStamp}function R(e){return"undefined"!==typeof TouchEvent&&e instanceof TouchEvent}function M(e){c=e}return{mount:function(){v(w,Yn,dt,Gn),v(w,$n,dt,Gn),v(w,"touchstart mousedown",C,Gn),v(w,"click",T,{capture:!0}),v(w,"dragstart",it),p([Ot,Mt],j)},disable:M,isDragging:function(){return s}}},Keyboard:function(e,t,n){var r,o,i=nn(e),a=i.on,l=i.bind,s=i.unbind,u=e.root,c=t.Direction.resolve;function f(){var e=n.keyboard;e&&("focused"===e?(r=u,Qe(u,Bn,0)):r=window,l(r,Xn,v))}function d(){s(r,Xn),Te(r)&&$e(r,Bn)}function p(){var e=o;o=!0,ft((function(){o=e}))}function h(){d(),f()}function v(t){if(!o){var n=t.key,r=De(Qn,n)?"Arrow".concat(n):n;r===c("ArrowLeft")?e.go("<"):r===c("ArrowRight")&&e.go(">")}}return{mount:function(){f(),a(Mt,h),a(jt,p)},destroy:d,disable:function(e){o=e}}},LazyLoad:function(e,t,n){var r=nn(e),o=r.on,i=r.off,a=r.bind,l=r.emit,s="sequential"===n.lazyLoad,u=[],c=0;function f(){p(),d()}function d(){t.Slides.forEach((function(e){lt(e.slide,er).forEach((function(t){var r=et(t,Zn),o=et(t,Jn);if(r!==t.src||o!==t.srcset){var i=n.classes.spinner,a=t.parentElement,l=We(a,".".concat(i))||Xe("span",i,a);Qe(l,In,"presentation"),u.push({_img:t,_Slide:e,src:r,srcset:o,_spinner:l}),!t.src&&Je(t,"none")}}))})),s&&y()}function p(){c=0,u=[]}function h(){(u=u.filter((function(t){var r=n.perPage*((n.preloadPages||1)+1)-1;return!t._Slide.isWithin(e.index,r)||v(t)}))).length||i(Ct)}function v(e){var t=e._img;Ue(e._Slide.slide,An),a(t,"load error",(function(t){!function(e,t){var n=e._Slide;st(n.slide,An),t||(rt(e._spinner),Je(e._img,""),l(tn,e._img,n),l(qt));s&&y()}(e,"error"===t.type)})),["srcset","src"].forEach((function(n){e[n]&&(Qe(t,n,e[n]),$e(t,"src"===n?Zn:Jn))}))}function y(){c<u.length&&v(u[c++])}return{mount:function(){n.lazyLoad&&(d(),o(Rt,f),s||o([Ot,Rt,Ct,Wt],h))},destroy:p}},Pagination:function(e,t,n){var r,o=nn(e),i=o.on,a=o.emit,l=o.bind,s=o.unbind,u=t.Slides,c=t.Elements,f=t.Controller,d=f.hasFocus,p=f.getIndex,h=[];function v(){y(),n.pagination&&u.isEnough()&&(!function(){var t=e.length,o=n.classes,i=n.i18n,a=n.perPage,s="slider"===n.pagination&&c.slider||c.root,f=d()?t:mt(t/a);r=Xe("ul",o.pagination,s);for(var p=0;p<f;p++){var v=Xe("li",null,r),y=Xe("button",{class:o.page,type:"button"},v),g=u.getIn(p).map((function(e){return e.slide.id})),b=!d()&&a>1?i.pageX:i.slideX;l(y,"click",m.bind(null,p)),Qe(y,Dn,g.join(" ")),Qe(y,Mn,_t(b,p+1)),h.push({li:v,button:y,page:p})}}(),a($t,{list:r,items:h},g(e.index)),b())}function y(){r&&(rt(r),h.forEach((function(e){s(e.button,"click")})),Se(h),r=null)}function m(e){f.go(">".concat(e),!0,(function(){var t,n=u.getAt(f.toIndex(e));n&&((t=n.slide).setActive&&t.setActive()||t.focus({preventScroll:!0}))}))}function g(e){return h[f.toPage(e)]}function b(){var e=g(p(!0)),t=g(p());e&&(st(e.button,jn),$e(e.button,Rn)),t&&(Ue(t.button,jn),Qe(t.button,Rn,!0)),a(Qt,{list:r,items:h},e,t)}return{items:h,mount:function(){v(),i([Mt,Rt],v),i([jt,Wt],b)},destroy:y,getAt:g,update:b}},Sync:function(e,t,n){var r=t.Elements.list,o=[];function i(){e.splides.forEach((function(t){var n;!t.isParent&&(n=t.splide,[e,n].forEach((function(t){var r=nn(t),i=t===e?n:e;r.on(jt,(function(e,t,n){i.go(i.is(Hn)?n:e)})),o.push(r)})))})),n.isNavigation&&function(){var t=nn(e),n=t.on;n(Pt,s),n(Dt,u),n([Ot,Mt],l),Qe(r,In,"menu"),o.push(t),t.emit(Xt,e.splides)}()}function a(){$e(r,Fn),o.forEach((function(e){e.destroy()})),Se(o)}function l(){Qe(r,Un,n.direction!==an?"horizontal":null)}function s(t){e.go(t.index)}function u(e,t){De(tr,t.key)&&(s(e),it(t))}return{mount:i,destroy:a,remount:function(){a(),i()}}},Wheel:function(e,t,n){var r=nn(e).bind;function o(r){if(r.cancelable){var o=r.deltaY;if(o){var i=o<0;e.go(i?"<":">"),function(r){return!n.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(r)}(i)&&it(r)}}}return{mount:function(){n.wheel&&r(t.Elements.track,"wheel",o,Gn)}}}}),rr={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:Ln,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function or(e,t,n){var r=nn(e).on;return{mount:function(){r([Ot,Rt],(function(){ft((function(){t.Slides.style("transition","opacity ".concat(n.speed,"ms ").concat(n.easing))}))}))},start:function(e,n){var r=t.Elements.track;Ze(r,"height",ut(nt(r).height)),ft((function(){n(),Ze(r,"height","")}))},cancel:dt}}function ir(e,t,n){var r,o=nn(e).bind,i=t.Move,a=t.Controller,l=t.Elements.list;function s(){u("")}function u(e){Ze(l,"transition",e)}return{mount:function(){o(l,"transitionend",(function(e){e.target===l&&r&&(s(),r())}))},start:function(t,o){var l=i.toPosition(t,!0),s=i.getPosition(),c=function(t){var r=n.rewindSpeed;if(e.is(zn)&&r){var o=a.getIndex(!0),i=a.getEnd();if(0===o&&t>=i||o>=i&&0===t)return r}return n.speed}(t);gt(l-s)>=1&&c>=1?(u("transform ".concat(c,"ms ").concat(n.easing)),i.translate(l,!0),r=o):(i.jump(t),o())},cancel:s}}var ar=function(){function e(t,n){i(this,e),this.event=function(){var e={};function t(t,r){n(t,(function(t,n){var o=e[t];e[t]=o&&o.filter((function(e){return e._key?e._key!==r:r||e._namespace!==n}))}))}function n(e,t){Le(e).join(" ").split(" ").forEach((function(e){var n=e.split(".");t(n[0],n[1])}))}return{on:function(t,r,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;n(t,(function(t,n){e[t]=e[t]||[],Re(e[t],{_event:t,_callback:r,_namespace:n,_priority:i,_key:o}).sort((function(e,t){return e._priority-t._priority}))}))},off:t,offBy:function(n){Ke(e,(function(e,r){t(r,n)}))},emit:function(t){var n=arguments;(e[t]||[]).forEach((function(e){e._callback.apply(e,qe(n,1))}))},destroy:function(){e={}}}}(),this.Components={},this.state=function(e){var t=e;return{set:function(e){t=e},is:function(e){return De(Le(e),t)}}}(1),this.splides=[],this._options={},this._Extensions={};var r=Ne(t)?at(document,t):t;ct(r,"".concat(r," is invalid.")),this.root=r,Ye(rr,e.defaults),Ye(Ye(this._options,rr),n||{})}return l(e,[{key:"mount",value:function(e,t){var n=this,r=this.state,o=this.Components;return ct(r.is([1,5]),"Already mounted!"),r.set(1),this._Components=o,this._Transition=t||this._Transition||(this.is(Vn)?or:ir),this._Extensions=e||this._Extensions,Ke(Ge({},nr,this._Extensions,{Transition:this._Transition}),(function(e,t){var r=e(n,o,n._options);o[t]=r,r.setup&&r.setup()})),Ke(o,(function(e){e.mount&&e.mount()})),this.emit(Ot),Ue(this.root,"is-initialized"),r.set(3),this.emit(St),this}},{key:"sync",value:function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._Components.Sync.remount(),e.Components.Sync.remount()),this}},{key:"go",value:function(e){return this._Components.Controller.go(e),this}},{key:"on",value:function(e,t){return this.event.on(e,t,null,20),this}},{key:"off",value:function(e){return this.event.off(e),this}},{key:"emit",value:function(e){var t;return(t=this.event).emit.apply(t,[e].concat(E(qe(arguments,1)))),this}},{key:"add",value:function(e,t){return this._Components.Slides.add(e,t),this}},{key:"remove",value:function(e){return this._Components.Slides.remove(e),this}},{key:"is",value:function(e){return this._options.type===e}},{key:"refresh",value:function(){return this.emit(Rt),this}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.event,n=this.state;return n.is(1)?t.on(St,this.destroy.bind(this,e),this):(Ke(this._Components,(function(t){t.destroy&&t.destroy(e)}),!0),t.emit(Kt),t.destroy(),e&&Se(this.splides),n.set(5)),this}},{key:"options",get:function(){return this._options},set:function(e){var t=this._options;Ye(t,e),this.state.is(1)||this.emit(Mt,t)}},{key:"length",get:function(){return this._Components.Slides.getLength(!0)}},{key:"index",get:function(){return this._Components.Controller.getIndex()}}]),e}(),lr=ar;lr.defaults={},lr.STATES=Oe;var sr=[[Ot,"onMounted"],[St,"onReady"],[jt,"onMove"],[Ct,"onMoved"],[Pt,"onClick"],[At,"onActive"],[Tt,"onInactive"],[Lt,"onVisible"],[It,"onHidden"],[Rt,"onRefresh"],[Mt,"onUpdated"],[qt,"onResize"],[Bt,"onResized"],[Ft,"onDrag"],[zt,"onDragging"],[Ht,"onDragged"],[Vt,"onScroll"],[Wt,"onScrolled"],[Kt,"onDestroy"],[Gt,"onArrowsMounted"],[Yt,"onArrowsUpdated"],[$t,"onPaginationMounted"],[Qt,"onPaginationUpdated"],[Xt,"onNavigationMounted"],[Zt,"onAutoplayPlay"],[Jt,"onAutoplayPlaying"],[en,"onAutoplayPause"],[tn,"onLazyLoadLoaded"]];function ur(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function cr(e){return null!==e&&"object"===typeof e}function fr(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some((function(e,n){return!fr(e,t[n])}));if(cr(e)&&cr(t)){var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&!n.some((function(n){return!Object.prototype.hasOwnProperty.call(t,n)||!fr(e[n],t[n])}))}return e===t}function dr(e,t){var n=e;return function(e,t){if(e)for(var n=Object.keys(e),r=0;r<n.length;r++){var o=n[r];if("__proto__"!==o&&!1===t(e[o],o))break}}(t,(function(e,t){Array.isArray(e)?n[t]=e.slice():cr(e)?n[t]=dr(cr(n[t])?n[t]:{},e):n[t]=e})),n}var pr=function(e){c(n,e);var t=h(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).splideRef=w.createRef(),e.slides=[],e}return l(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.options,n=e.Extensions,r=e.Transition,o=this.splideRef.current;o&&(this.splide=new lr(o,t),this.bind(this.splide),this.splide.mount(n,r),this.options=dr({},t||{}),this.slides=this.getSlides())}},{key:"componentWillUnmount",value:function(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}},{key:"componentDidUpdate",value:function(){if(this.splide){var e=this.props.options;e&&!fr(this.options,e)&&(this.splide.options=e,this.options=dr({},e));var t,n,r=this.getSlides();t=this.slides,n=r,(t.length!==n.length||t.some((function(e,t){return e!==n[t]})))&&(this.splide.refresh(),this.slides=r)}}},{key:"sync",value:function(e){var t;null==(t=this.splide)||t.sync(e)}},{key:"go",value:function(e){var t;null==(t=this.splide)||t.go(e)}},{key:"getSlides",value:function(){var e;if(this.splide){var t=null==(e=this.splide.Components.Elements)?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}},{key:"bind",value:function(e){var t=this;sr.forEach((function(n){var r=C(n,2),o=r[0],i=r[1],a=t.props[i];"function"===typeof a&&e.on(o,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];a.apply(void 0,[e].concat(n))}))}))}},{key:"renderTrack",value:function(){return w.createElement("div",{className:"splide__track"},w.createElement("ul",{className:"splide__list"},this.props.children))}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.hasSliderWrapper,o=e.hasAutoplayProgress,i=e.hasAutoplayControls,a=e.playButtonLabel,l=void 0===a?"Play":a,s=e.pauseButtonLabel,u=void 0===s?"Pause":s,c=e.renderControls;return w.createElement("div",{id:t,className:ur("splide",n),ref:this.splideRef},r?w.createElement("div",{className:"splide__slider"},this.renderTrack()):this.renderTrack(),o&&w.createElement("div",{className:"splide__progress"},w.createElement("div",{className:"splide__progress__bar"})),i&&w.createElement("div",{className:"splide__autoplay"},w.createElement("button",{className:"splide__play"},l),w.createElement("button",{className:"splide__pause"},u)),c&&c())}}]),n}(w.Component),hr=function(e){var t=e.children,n=e.className,r=xe(e,_e);return w.createElement("li",j({className:ur("splide__slide",n)},r),t)},vr=n(6770),yr=n.n(vr),mr=function(e){var t=e.open,n=e.dataObject,r=e.dismissDrawer,o=T((function(e){return e.CORE_API})),i=C((0,w.useState)(t),2),a=i[0],l=i[1],s=(0,w.useRef)(null);return(0,w.useEffect)((function(){return l(t),function(){}}),[t]),(0,w.useEffect)((function(){s.current.addEventListener("drawerClosed",(function(){r(),$.log("Hotspot Drawer Dismissed!!")}))}),[s]),(0,be.jsx)(be.Fragment,{children:(0,be.jsx)("bottom-drawer",{id:"hotspotDrawer",ref:s,open:"".concat(a),"initial-screen-coverage":"40%",children:(0,be.jsx)("div",{className:"epigraphDrawer hotspotDrawer",slot:"bottom-drawer-content",children:(0,be.jsxs)("div",{className:"drawerContent",children:[(0,be.jsx)("h2",{children:n.title}),(0,be.jsx)(yr(),{className:"ignore",modules:{toolbar:!1},theme:"bubble",readOnly:!0,value:n.description}),(0,be.jsx)("div",{className:"carousel",children:n.carousel&&(0,be.jsx)(pr,{children:n.carousel.map((function(e,t){return(0,be.jsx)(be.Fragment,{children:""!==e.type&&""!=e.link&&(0,be.jsx)(hr,{children:(0,be.jsxs)("div",{className:"carouselTabParent",children:["img"===e.type&&(0,be.jsx)("img",{src:o.getResolvedAssetUrl(e.link),alt:"".concat(e.title," image")}),"video"===e.type&&(0,be.jsx)("video",{src:o.getResolvedAssetUrl(e.link),muted:e.muted,loop:e.loop,controls:e.controls})]})},"SplideSlide-".concat(t))})}))})})]})})})})},gr=A((function(e,t){return{infoObject:{},populateInfoObject:function(t){e((function(e){return{infoObject:t}}))},infoModalOpen:!1,updateInfoModalOpen:function(t){e((function(e){return{infoModalOpen:t}}))}}}));function br(e){return wr.apply(this,arguments)}function wr(){return(wr=o(t().mark((function e(n){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $.log("Waiting for ".concat(n,"ms")),e.abrupt("return",new Promise((function(e,t){setTimeout((function(){e(!0)}),n)})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var xr=function(e){return e&&e[0].toUpperCase()+e.slice(1)||""},_r=function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")};var kr=function(e){var t,n,r=e.open,o=e.dismissDrawer,i=T((function(e){return e.CORE_API})),a=(0,w.useRef)(null),l=C((0,w.useState)(!1),2),s=l[0],u=l[1],c=gr((function(e){return e.infoObject}));return(0,w.useEffect)((function(){return u(r),function(){}}),[r]),(0,w.useEffect)((function(){a.current.addEventListener("drawerClosed",(function(){o()}))}),[a]),(0,be.jsx)("bottom-drawer",{ref:a,id:"bottomDrawer",open:"".concat(s),children:(0,be.jsx)("div",{className:"infoDrawer epigraphDrawer",slot:"bottom-drawer-content",children:(0,be.jsxs)("div",{className:"drawerContent",children:[(0,be.jsxs)("a",{href:null===c||void 0===c?void 0:c.productPageUrl,className:"categoryLink",target:"_blank",style:null!==c&&void 0!==c&&c.productPageUrl?{pointerEvents:"all"}:{pointerEvents:"none"},children:[(0,be.jsx)("h2",{className:"categoryTitle",children:null===c||void 0===c||null===(t=c.productCategory)||void 0===t?void 0:t.label}),c.productPageUrl&&(0,be.jsx)("img",{src:Z+"/Icon/OpenTab.svg"})]}),(0,be.jsx)("div",{className:"infoDrawerImageContainer",children:(0,be.jsx)("img",{className:"itemImage",src:null!==c&&void 0!==c&&null!==(n=c.thumbnails)&&void 0!==n&&n.high?i.getResolvedAssetUrl(c.thumbnails.high):""})}),(0,be.jsx)("h2",{className:"itemTitle",children:c.title}),(0,be.jsx)("p",{className:"itemDescription",children:c.description}),c.boundingBoxSize?(0,be.jsxs)("p",{className:"infoModalDimensions",children:[c.boundingBoxSize.x.toFixed(1),"\u201d W x"," ",c.boundingBoxSize.y.toFixed(1),"\u201d D x"," ",c.boundingBoxSize.z.toFixed(1),"\u201d H"]}):"",(0,be.jsx)("div",{className:"infoModalActions",children:(0,be.jsx)("button",{className:"item-price",disabled:!0,children:c.price&&"$".concat(_r(parseFloat(c.price).toFixed(2)))})})]})})})},Er=A((function(e){return{productData:{},setProductData:function(t){return e((function(){return{productData:t}}))},categoryData:{},setCategoryData:function(t){return e((function(){return{categoryData:t}}))},lookData:{},setLookData:function(t){return e((function(){return{lookData:t}}))},hotspotsData:{},setHotspotsData:function(t){return e((function(){return{hotspotsData:t}}))},assetsData:{},setAssetsData:function(t){return e((function(){return{assetsData:t}}))}}})),Or=function(e){var t=e.buttonAction,n=e.buttonLabel,r=e.hoverLabel,o=e.icon,i=e.activeCondition,a=C((0,w.useState)(i),2),l=a[0],s=a[1];return(0,w.useEffect)((function(){return s(i),function(){}}),[i]),(0,be.jsxs)("div",{className:void 0!==l&&l?"shellButtonContainer active":"shellButtonContainer",onClick:function(){t()},children:[(0,be.jsxs)("div",{className:"buttonContent",children:[(0,be.jsx)("img",{className:"button",src:o,alt:r}),(0,be.jsx)("span",{children:n})]}),(0,be.jsx)("div",{className:"hoverDescriptor",children:(0,be.jsx)("span",{children:r})})]})},Sr=function(e){var t,n,r,o,i,a,l,s,u,c,f,d,p,h,v,y,m,g,b,x,_,k,E,O,S=e.handleShareButtonTrigger,j=e.handleSaveButtonTrigger,N=e.handleRestartButtonClick,P=e.handleShowHotspots,A=e.handleDimensionClick,T=e.utilityMenuVisible,L=e.hotspotsVisibility,I=e.viewInYourSpaceMenuBtnVisible,D=e.restartMenuBtnVisible,R=e.saveMenuBtnVisible,M=e.hotspotsMenuBtnVisible,q=e.dimensionsMenuBtnVisible,B=e.shareMenuBtnVisible,U=e.dimensionsVisible,F=e.position,z=e.CORE_API,H=C((0,w.useState)("bottom"),2),V=H[0],W=H[1],K=Er((function(e){return e.assetsData})),G="https://storage.googleapis.com/gsc-epigraph-design/product-assets/Icon/AR.svg",Y="https://storage.googleapis.com/gsc-epigraph-design/product-assets/Icon/Restart.svg",$="https://storage.googleapis.com/gsc-epigraph-design/product-assets/Icon/save.svg",Q="https://storage.googleapis.com/gsc-epigraph-design/product-assets/Icon/Share.svg",X="https://storage.googleapis.com/gsc-epigraph-design/product-assets/Icon/Ruler.svg",Z="https://storage.googleapis.com/gsc-epigraph-design/product-assets/Icon/Eye.svg";return(0,w.useEffect)((function(){switch(F){case"top":W("top");break;case"bottom":W("bottom");break;case"left":W("left");break;case"right":W("right")}return function(){}}),[F]),(0,be.jsx)("div",{className:"shellCanvasContainerParent",id:V,children:(0,be.jsxs)("div",{className:1==(T&&(B||I||D||q||M))?"shellCanvasContainer":"shellCanvasContainer shellCanvasContainerInactive",children:[I&&(0,be.jsx)(Or,{buttonAction:function(){z.viewInYourSpace()},buttonLabel:"AR",hoverLabel:"View in Your Space",icon:null!==K&&void 0!==K&&null!==(t=K.icons)&&void 0!==t&&null!==(n=t.utilityMenu)&&void 0!==n&&n.viewInYourSpace?z.getResolvedAssetUrl(null===K||void 0===K||null===(r=K.icons)||void 0===r||null===(o=r.utilityMenu)||void 0===o?void 0:o.viewInYourSpace):G}),D&&(0,be.jsx)(Or,{buttonAction:function(){N()},buttonLabel:"Restart",hoverLabel:"Restart",icon:null!==K&&void 0!==K&&null!==(i=K.icons)&&void 0!==i&&null!==(a=i.utilityMenu)&&void 0!==a&&a.restart?z.getResolvedAssetUrl(null===K||void 0===K||null===(l=K.icons)||void 0===l||null===(s=l.utilityMenu)||void 0===s?void 0:s.restart):Y}),R&&(0,be.jsx)(Or,{buttonAction:function(){j()},buttonLabel:"Save",hoverLabel:"Save",icon:null!==K&&void 0!==K&&null!==(u=K.icons)&&void 0!==u&&null!==(c=u.utilityMenu)&&void 0!==c&&c.save?z.getResolvedAssetUrl(null===K||void 0===K||null===(f=K.icons)||void 0===f||null===(d=f.utilityMenu)||void 0===d?void 0:d.save):$}),B&&(0,be.jsx)(Or,{buttonAction:function(){S()},buttonLabel:"Share",hoverLabel:"Share",icon:null!==K&&void 0!==K&&null!==(p=K.icons)&&void 0!==p&&null!==(h=p.utilityMenu)&&void 0!==h&&h.share?z.getResolvedAssetUrl(null===K||void 0===K||null===(v=K.icons)||void 0===v||null===(y=v.utilityMenu)||void 0===y?void 0:y.share):Q}),q&&(0,be.jsx)(Or,{buttonAction:function(){A()},buttonLabel:"Size",hoverLabel:"Size",icon:null!==K&&void 0!==K&&null!==(m=K.icons)&&void 0!==m&&null!==(g=m.utilityMenu)&&void 0!==g&&g.dimensions?z.getResolvedAssetUrl(null===K||void 0===K||null===(b=K.icons)||void 0===b||null===(x=b.utilityMenu)||void 0===x?void 0:x.dimensions):X,activeCondition:U}),M&&(0,be.jsx)(Or,{buttonAction:function(){P()},buttonLabel:"Hotspots",hoverLabel:"Hotspots",icon:null!==K&&void 0!==K&&null!==(_=K.icons)&&void 0!==_&&null!==(k=_.utilityMenu)&&void 0!==k&&k.hotspots?z.getResolvedAssetUrl(null===K||void 0===K||null===(E=K.icons)||void 0===E||null===(O=E.utilityMenu)||void 0===O?void 0:O.hotspots):Z,activeCondition:L})]})})};function jr(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var Cr=jr("Tab"),Nr=jr("TabList"),Pr=jr("TabPanel");function Ar(){return Ar=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},Ar.apply(this,arguments)}function Tr(e,t){return w.Children.map(e,(function(e){return null===e?null:function(e){return Cr(e)||Nr(e)||Pr(e)}(e)?t(e):e.props&&e.props.children&&"object"===typeof e.props.children?(0,w.cloneElement)(e,Ar({},e.props,{children:Tr(e.props.children,t)})):e}))}function Lr(e,t){return w.Children.forEach(e,(function(e){null!==e&&(Cr(e)||Pr(e)?t(e):e.props&&e.props.children&&"object"===typeof e.props.children&&(Nr(e)&&t(e),Lr(e.props.children,t)))}))}function Ir(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ir(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}var Dr=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ir(e))&&(r&&(r+=" "),r+=t);return r},Rr=0;function Mr(){return"react-tabs-"+Rr++}function qr(e){var t=0;return Lr(e,(function(e){Cr(e)&&t++})),t}var Br,Ur=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys"];function Fr(){return Fr=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},Fr.apply(this,arguments)}function zr(e){return e&&"getAttribute"in e}function Hr(e){return zr(e)&&e.getAttribute("data-rttab")}function Vr(e){return zr(e)&&"true"===e.getAttribute("aria-disabled")}var Wr=function(e){var t=(0,w.useRef)([]),n=(0,w.useRef)([]),r=(0,w.useRef)([]),o=(0,w.useRef)();function i(t,n){t<0||t>=s()||(0,e.onSelect)(t,e.selectedIndex,n)}function a(e){for(var t=s(),n=e+1;n<t;n++)if(!Vr(u(n)))return n;for(var r=0;r<e;r++)if(!Vr(u(r)))return r;return e}function l(e){for(var t=e;t--;)if(!Vr(u(t)))return t;for(t=s();t-- >e;)if(!Vr(u(t)))return t;return e}function s(){return qr(e.children)}function u(e){return t.current["tabs-"+e]}function c(e){var t=e.target;do{if(f(t)){if(Vr(t))return;return void i([].slice.call(t.parentNode.children).filter(Hr).indexOf(t),e)}}while(null!=(t=t.parentNode))}function f(e){if(!Hr(e))return!1;var t=e.parentElement;do{if(t===o.current)return!0;if(t.getAttribute("data-rttabs"))break;t=t.parentElement}while(t);return!1}e.children;var d=e.className,p=(e.disabledTabClassName,e.domRef),h=(e.focus,e.forceRenderTabPanel,e.onSelect,e.selectedIndex,e.selectedTabClassName,e.selectedTabPanelClassName,e.environment,e.disableUpDownKeys,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Ur));return w.createElement("div",Fr({},h,{className:Dr(d),onClick:c,onKeyDown:function(t){var n=e.direction,r=e.disableUpDownKeys;if(f(t.target)){var o=e.selectedIndex,d=!1,p=!1;"Space"!==t.code&&32!==t.keyCode&&"Enter"!==t.code&&13!==t.keyCode||(d=!0,p=!1,c(t)),"ArrowLeft"!==t.code&&37!==t.keyCode&&(r||38!==t.keyCode&&"ArrowUp"!==t.code)?"ArrowRight"!==t.code&&39!==t.keyCode&&(r||40!==t.keyCode&&"ArrowDown"!==t.code)?35===t.keyCode||"End"===t.code?(o=function(){for(var e=s();e--;)if(!Vr(u(e)))return e;return null}(),d=!0,p=!0):36!==t.keyCode&&"Home"!==t.code||(o=function(){for(var e=s(),t=0;t<e;t++)if(!Vr(u(t)))return t;return null}(),d=!0,p=!0):(o="rtl"===n?l(o):a(o),d=!0,p=!0):(o="rtl"===n?a(o):l(o),d=!0,p=!0),d&&t.preventDefault(),p&&i(o,t)}},ref:function(e){o.current=e,p&&p(e)},"data-rttabs":!0}),function(){var o=0,i=e.children,a=e.disabledTabClassName,l=e.focus,c=e.forceRenderTabPanel,f=e.selectedIndex,d=e.selectedTabClassName,p=e.selectedTabPanelClassName,h=e.environment;n.current=n.current||[],r.current=r.current||[];for(var v=n.current.length-s();v++<0;)n.current.push(Mr()),r.current.push(Mr());return Tr(i,(function(e){var i=e;if(Nr(e)){var s=0,v=!1;null==Br&&function(e){var t=e||("undefined"!==typeof window?window:void 0);try{Br=!("undefined"===typeof t||!t.document||!t.document.activeElement)}catch(n){Br=!1}}(h);var y=h||("undefined"!==typeof window?window:void 0);Br&&y&&(v=w.Children.toArray(e.props.children).filter(Cr).some((function(e,t){return y.document.activeElement===u(t)}))),i=(0,w.cloneElement)(e,{children:Tr(e.props.children,(function(e){var o="tabs-"+s,i=f===s,u={tabRef:function(e){t.current[o]=e},id:n.current[s],panelId:r.current[s],selected:i,focus:i&&(l||v)};return d&&(u.selectedClassName=d),a&&(u.disabledClassName=a),s++,(0,w.cloneElement)(e,u)}))})}else if(Pr(e)){var m={id:r.current[o],tabId:n.current[o],selected:f===o};c&&(m.forceRender=c),p&&(m.selectedClassName=p),o++,i=(0,w.cloneElement)(e,m)}return i}))}())};Wr.defaultProps={className:"react-tabs",focus:!1},Wr.propTypes={};var Kr=Wr;function Gr(){return Gr=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},Gr.apply(this,arguments)}var Yr=function(e){var t=e.children,n=e.defaultFocus,r=e.defaultIndex,o=e.focusTabOnClick,i=e.onSelect,a=(0,w.useState)(n),l=a[0],s=a[1],u=(0,w.useState)(function(e){return null===e.selectedIndex?1:0}(e)),c=u[0],f=(0,w.useState)(1===c?r||0:null),d=f[0],p=f[1];if((0,w.useEffect)((function(){s(!1)}),[]),1===c){var h=qr(t);(0,w.useEffect)((function(){if(null!=d){var e=Math.max(0,h-1);p(Math.min(d,e))}}),[h])}var v=Gr({},e);return v.focus=l,v.onSelect=function(e,t,n){"function"===typeof i&&!1===i(e,t,n)||(o&&s(!0),1===c&&p(e))},null!=d&&(v.selectedIndex=d),delete v.defaultFocus,delete v.defaultIndex,delete v.focusTabOnClick,w.createElement(Kr,v,t)};Yr.propTypes={},Yr.defaultProps={defaultFocus:!1,focusTabOnClick:!0,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:!1},Yr.tabsRole="Tabs";var $r=Yr,Qr=["children","className"];function Xr(){return Xr=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},Xr.apply(this,arguments)}var Zr=function(e){var t=e.children,n=e.className,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Qr);return w.createElement("ul",Xr({},r,{className:Dr(n),role:"tablist"}),t)};Zr.tabsRole="TabList",Zr.propTypes={},Zr.defaultProps={className:"react-tabs__tab-list"};var Jr=Zr,eo=["children","className","disabled","disabledClassName","focus","id","panelId","selected","selectedClassName","tabIndex","tabRef"];function to(){return to=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},to.apply(this,arguments)}var no="react-tabs__tab",ro={className:no,disabledClassName:no+"--disabled",focus:!1,id:null,panelId:null,selected:!1,selectedClassName:no+"--selected"},oo=function(e){var t,n=(0,w.useRef)(),r=e.children,o=e.className,i=e.disabled,a=e.disabledClassName,l=e.focus,s=e.id,u=e.panelId,c=e.selected,f=e.selectedClassName,d=e.tabIndex,p=e.tabRef,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,eo);return(0,w.useEffect)((function(){c&&l&&n.current.focus()}),[c,l]),w.createElement("li",to({},h,{className:Dr(o,(t={},t[f]=c,t[a]=i,t)),ref:function(e){n.current=e,p&&p(e)},role:"tab",id:s,"aria-selected":c?"true":"false","aria-disabled":i?"true":"false","aria-controls":u,tabIndex:d||(c?"0":null),"data-rttab":!0}),r)};oo.propTypes={},oo.tabsRole="Tab",oo.defaultProps=ro;var io=oo,ao=["children","className","forceRender","id","selected","selectedClassName","tabId"];function lo(){return lo=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},lo.apply(this,arguments)}var so="react-tabs__tab-panel",uo={className:so,forceRender:!1,selectedClassName:"react-tabs__tab-panel--selected"},co=function(e){var t,n=e.children,r=e.className,o=e.forceRender,i=e.id,a=e.selected,l=e.selectedClassName,s=e.tabId,u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ao);return w.createElement("div",lo({},u,{className:Dr(r,(t={},t[l]=a,t)),role:"tabpanel",id:i,"aria-labelledby":s}),o||a?n:null)};co.tabsRole="TabPanel",co.propTypes={},co.defaultProps=uo;var fo=co;function po(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=k(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}var ho=A((function(e){return{allActiveVariants:{}}})),vo=A((function(e,t){return{itemsSpawned:{},fittingSkuIds:[],setItemsSpawned:function(t){return e((function(){return{itemsSpawned:t,itemsCount:Object.keys(t).length}}))},actions:{setFittingSkuIds:function(t){e((function(){return{fittingSkuIds:t}}))}}}})),yo=function(e){var t=e.spawnGhosts,n=e.spawnItem,r=e.removeAllGhosts,o=e.skuId,i=e.active,a=T((function(e){return e.CORE_API})),l=(0,w.useRef)(null),s=gr((function(e){return e.populateInfoObject})),u=gr((function(e){return e.updateInfoModalOpen})),c=C((0,w.useState)("default"),2),f=c[0],d=c[1],p=C((0,w.useState)(!0),2),h=p[0],v=p[1],y=ho((function(e){return e.allActiveVariants})),m=Er((function(e){return e})),g=vo((function(e){return e.fittingSkuIds})),b=C((0,w.useState)(m.productData[o]?m.productData[o]:{}),2),x=b[0],_=(b[1],C((0,w.useState)(m.productData[o].name?m.productData[o].name:"Not Set"),2)),k=_[0],E=(_[1],C((0,w.useState)(m.productData[o].lookDetails.default.thumbnails.low?m.productData[o].lookDetails.default.thumbnails.low:""),2)),O=E[0],S=E[1],j=C((0,w.useState)(null),2),N=j[0],P=j[1],A=C((0,w.useState)(!1),2),L=A[0],I=A[1],D=C((0,w.useState)(!1),2),R=D[0],M=D[1];(0,w.useEffect)((function(){g.includes(o)?I(!0):I(!1)}),[g]),(0,w.useEffect)((function(){Object.keys(m.productData).length}),[m.productData]),(0,w.useEffect)((function(){x.looks.length<=1&&v(!1)}),[x]);var q=(0,w.useCallback)((function(){for(var e=x.looks,t="default",n=0,r=Object.entries(y);n<r.length;n++){var o=C(r[n],2),i=(o[0],o[1]);if(e.includes(i)){t=i;break}}d(t)}),[y]);(0,w.useEffect)((function(){S(x.lookDetails[f].thumbnails.low)}),[f]),(0,w.useEffect)((function(){!0===h&&q()}),[y]);var B=(0,w.useCallback)((function(e){e.stopPropagation(),T.getState().CORE_API.sceneSettings.draggableUI||(!1===L||N?a.alert({alertMsg:N?"".concat(N):"Action Unavailable",alertTime:4e3,alertType:"warn",alertLabel:"Action Unavailable:"}):n(o,!0))}),[L]),U=(0,w.useCallback)((function(){var e,t=null===(e=a.sceneSettings)||void 0===e?void 0:e.showDependencyOnHover;if(void 0!==t&&!1!==t){var n=a.getSpawningRequirementForSkuID(o);if(!(n.length<=0)){var r="",i=a.getCartItems(),l=!1;i.cartItems.map((function(e){n.includes(e.skuID)&&(l=!0)})),n.includes("Root")&&1==n.length&&(l=!0,n=[]),r=l?"No space available to spawn the item.":"This item requires a dependency to be added to the scene first.\n\n Dependency:\n";var s,u=po(n);try{for(u.s();!(s=u.n()).done;){var c=s.value;r+="- ".concat(c,"\n")}}catch(f){u.e(f)}finally{u.f()}console.log(r),P(r)}}}),[N]),F=(0,w.useCallback)((function(){!0!==a.isMobile&&!0!==R&&(M(!0),T.getState().CORE_API.sceneSettings.draggableUI||(!0===L?t(o):U()))}),[L,R,N]),z=(0,w.useCallback)((function(){!0!==a.isMobile&&(M(!1),T.getState().CORE_API.sceneSettings.draggableUI||window.mouseDragging||!0===L&&r&&r())}),[L,R]),H=(0,w.useCallback)((function(e){!1!==T.getState().CORE_API.sceneSettings.draggableUI&&!1!==L&&(window.pointerDownPos=e.offsetX,window.mouseDragging=!1,window.mouseDownImgSrc=a.getResolvedAssetUrl(O),window.mouseDownSkuID=o)}),[L]),V=(0,w.useCallback)((function(e){var t=x.lookDetails[f];t.productCategory={id:x.categoryID,label:x.categoryLabel},!0===a.isMobile?(s(t),u(!0)):(e.stopPropagation(),L&&r&&r(),s(t),u(!0))}),[L,f,x]);return(0,be.jsx)(be.Fragment,{children:(0,be.jsxs)("div",{className:i?"imageContainer active":"imageContainer",draggable:!1,children:[(0,be.jsxs)("div",{className:"contentContainer",children:[(0,be.jsx)("div",{id:"itemCard"+o,className:"contentOverlay ".concat("".concat(!0===L&&!0===R?"enabled-item-overlay":"disabled-item-overlay")),ref:l,onClick:function(e){return B(e)},onTouchStart:function(e){return H(e)},onMouseEnter:F,onMouseLeave:z,onMouseDown:H,children:(0,be.jsx)("img",{draggable:!1,className:"addIcon",src:Z+"/Icon/Plus.svg"})}),(0,be.jsx)("img",{className:"product-image product-image-default-state ".concat("".concat(!1===L?"product-image-disabled":"")),draggable:!1,alt:k,src:a.getResolvedAssetUrl(O)}),(0,be.jsx)("div",{className:"spawning-requirements-container",hidden:!(!1===L&&!0===R&&N),children:(0,be.jsx)("p",{className:"spawning-requirements-text",children:N})})]}),(0,be.jsxs)("div",{className:"itemDetails",onClick:V,children:[(0,be.jsx)("div",{className:"item-details-icon"}),(0,be.jsx)("p",{className:"truncate",children:k})]})]})})},mo=function(e){e.visible;var t,n,r=Er((function(e){return e})),o=ho((function(e){return e.allActiveVariants})),i=gr((function(e){return e.infoObject})),a=gr((function(e){return e.infoModalOpen})),l=gr((function(e){return e.updateInfoModalOpen})),s=C((0,w.useState)(""),2),u=(s[0],s[1]),c=C((0,w.useState)([]),2),f=(c[0],c[1]),d=T((function(e){return e.CORE_API}));return(0,w.useEffect)((function(){0!=Object.keys(r.categoryData).length&&f(r.categoryData.build)}),[r.categoryData]),(0,w.useEffect)((function(){return u(o[Object.keys(o)[0]]),function(){}}),[o]),(0,be.jsx)(be.Fragment,{children:(0,be.jsxs)("div",{className:a?"infoModal open":"infoModal",children:[(0,be.jsx)("button",{className:"closeButton",onClick:function(){l(!1)},children:(0,be.jsx)("img",{src:Z+"/Icon/X.svg"})}),(0,be.jsxs)("a",{href:i.productPageUrl,className:"categoryLink",target:"_blank",style:null!==i&&void 0!==i&&i.productPageUrl?{pointerEvents:"all"}:{pointerEvents:"none"},children:[(0,be.jsx)("h2",{className:"categoryTitle",children:null===i||void 0===i||null===(t=i.productCategory)||void 0===t?void 0:t.label}),i.productPageUrl&&(0,be.jsx)("img",{src:Z+"/Icon/OpenTab.svg"})]}),(0,be.jsx)("div",{className:"infoModalImageContainer",children:null!==i&&void 0!==i&&null!==(n=i.thumbnails)&&void 0!==n&&n.high?(0,be.jsx)("img",{className:"itemImage",src:d.getResolvedAssetUrl(i.thumbnails.high)}):""}),(0,be.jsxs)("div",{className:"infoModalTextContainer",children:[(0,be.jsx)("h2",{className:"itemTitle",children:i.title}),(0,be.jsx)("p",{className:"itemDescription",children:i.description}),i.boundingBoxSize?(0,be.jsxs)("p",{className:"infoModalDimensions",children:[i.boundingBoxSize.x.toFixed(1),"\u201d W x"," ",i.boundingBoxSize.y.toFixed(1),"\u201d D x"," ",i.boundingBoxSize.z.toFixed(1),"\u201d H"]}):""]}),(0,be.jsx)("div",{className:"infoModalActions",children:(0,be.jsx)("button",{className:"item-price",disabled:!0,children:i.price&&"$".concat(_r(parseFloat(i.price).toFixed(2)))})})]})})};function go(e){var t=e.element,n=e.index,r=e.elementsLength,o=e.spawnGhosts,i=e.spawnItem,a=e.removeAllGhosts,l=e.infoModalOpen,s=e.setItemAllowed,u=e.activeItems;return(0,be.jsxs)("div",{className:"subContainer topContainer",children:[(0,be.jsx)("h4",{className:"subheading",children:t.label}),(0,be.jsx)("div",{className:"sidemenuContent",children:(0,be.jsx)("div",{className:"item-grid",children:t.skus.map((function(e){return(0,be.jsx)(yo,{skuId:e,categoryID:t.categoryID,spawnGhosts:o,spawnItem:i,removeAllGhosts:a,modalOpen:l,categoryDataIndex:n,setItemAllowed:s,active:u.includes(e)},"itemCardB"+e)}))})}),n!==r-1?(0,be.jsx)("div",{className:"itemGridDivider"}):""]})}function bo(e){var t=e.categoryID,n=e.index,r=e.categories,o=e.activeTab,i=e.tabsRef,a=e.mobileGrid,l=(0,w.useCallback)((function(e){if(a.current.scrollLeft!==e){var t,n,r,o=!1;window.requestAnimationFrame((function i(l){void 0===t&&(t=l);var s=l-t;if(n!==l){var u=s/200;a.current.scrollLeft>e?(r=(a.current.scrollLeft-e)*Math.min(u,1),a.current.scrollLeft-=r,a.current.scrollLeft===e&&(o=!0)):a.current.scrollLeft<e&&(r=(e-a.current.scrollLeft)*Math.min(u,1),a.current.scrollLeft+=r,a.current.scrollLeft===e&&(o=!0))}s<200&&(n=l,!o&&window.requestAnimationFrame(i))}))}}),[]);return(0,be.jsx)(be.Fragment,{children:(0,be.jsx)("a",{className:o===n?"mobileTab scrolled":"mobileTab",onClick:function(){for(var e=0;e<r.length;e++)e===n&&l(i.current[e].offsetLeft)},children:r[t].label})})}function wo(e){var t=e.element,n=e.index,r=e.elementsLength,o=e.spawnGhosts,i=e.spawnItem,a=e.removeAllGhosts,l=e.infoModalOpen,s=e.setItemAllowed,u=e.activeItems,c=e.tabsRef;return(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)("section",{id:"section-".concat(t.categoryID),className:"mobileGridSection",ref:function(e){return c.current[n]=e},children:t.skus.map((function(e){return(0,be.jsx)(yo,{skuId:e,categoryID:t.categoryID,spawnGhosts:o,spawnItem:i,removeAllGhosts:a,modalOpen:l,setItemAllowed:s,active:u.includes(e)},"itemCardB"+e)}))},"mobileGridSection"+n),n!==r-1?(0,be.jsx)("div",{className:"itemGridDivider"}):""]})}var xo=function(e){var t=e.visible,n=Er((function(e){return e})),r=C((0,w.useState)([]),2),o=r[0],i=r[1],a=gr((function(e){return e.infoModalOpen})),l=C((0,w.useState)(0),2),s=l[0],u=l[1],c=C((0,w.useState)(!1),2),f=(c[0],c[1]),d=C((0,w.useState)([]),2),p=d[0],h=d[1],v=gr((function(e){return e.populateInfoObject})),y=gr((function(e){return e.updateInfoModalOpen})),m=T((function(e){return e.CORE_API})),g=(0,w.useRef)(null),b=(0,w.useCallback)((function(e){for(var t=[],n=0,r=Object.entries(e);n<r.length;n++){var o=C(r[n],2),i=(o[0],o[1]);t.push(i)}h(t)}),[]);L(m.EVENTS.UI.ContextMenu_InfoBtnClicked,(function(e){var t=e.itemData.lookDetails[e.currentVariant],n=t;n.price=t.price,n.id=e.currentVariant,n.productCategory={id:e.itemData.categoryID,label:e.itemData.categoryLabel},v(n),y(!0)})),L(m.EVENTS.UI.ContextMenu_Hide,(function(e){$.log("Context Menu Closed")})),L(m.EVENTS.SCENE.ReplaceableCategory_Updated,b),(0,w.useEffect)((function(){var e=m.getCurrentItemsInReplaceableCategory();return b(e),function(){}}),[m]),(0,w.useEffect)((function(){0!==Object.keys(n.categoryData).length&&i(n.categoryData.build)}),[n.categoryData]);var x=(0,w.useCallback)((function(e,t){T.getState().CORE_API.spawnItemBySkuID(e,t)}),[]),_=(0,w.useCallback)((function(e){T.getState().CORE_API.spawnGhostsForSkuID(e,!1,1)}),[]),k=(0,w.useCallback)((function(e){a||T.getState().CORE_API.removeAllGhosts(e)}),[a]),E=(0,w.useRef)([]);(0,w.useEffect)((function(){E.current=E.current.slice(0,o.length)}),[o]);var O=(0,w.useCallback)((function(e,t){if(e.getBoundingClientRect().left<=28)for(var n=0;n<o.length;n++)t===n&&u(n)}),[]),S=(0,w.useCallback)((function(e,t,n){switch(n[n.length-1].skus.length){case 1:e.getBoundingClientRect().left<=304&&e===E.current[n.length-1]&&u(n.length-1);break;case 2:e.getBoundingClientRect().left<=208&&e===E.current[n.length-1]&&u(n.length-1);case 3:e.getBoundingClientRect().left<=108&&e===E.current[n.length-1]&&u(n.length-1);default:(null===e||void 0===e?void 0:e.getBoundingClientRect().left)<=108&&e===E.current[n.length-1]&&u(n.length-1)}}),[]);return(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)("div",{className:"mobileTabContent",hidden:!t,children:(0,be.jsxs)("div",{className:"scrollSpyTabs",children:[(0,be.jsx)("div",{className:"secondMobileTabs",children:Object.keys(o).map((function(e,t){return(0,be.jsx)(bo,{categoryID:e,index:t,categories:o,activeTab:s,tabsRef:E,mobileGrid:g},"mobileTabs"+e)}))}),(0,be.jsx)("div",{className:"mobileGrid",ref:g,onScroll:function(){for(var e=0;e<o.length;e++)e!=o.length-1?O(E.current[e],e):e==o.length-1&&S(E.current[e],e,o)},children:o.map((function(e,t){return(0,be.jsx)(wo,{element:e,index:t,spawnGhosts:_,spawnItem:x,removeAllGhosts:k,infoModalOpen:a,setItemAllowed:f,activeItems:p,tabsRef:E,elementsLength:o.length},"mobileGrid"+t)}))})]})}),(0,be.jsx)("div",{className:"container desktop",hidden:!t,children:o.map((function(e,t){return(0,be.jsx)(go,{element:e,index:t,spawnGhosts:_,spawnItem:x,removeAllGhosts:k,infoModalOpen:a,setItemAllowed:f,activeItems:p,elementsLength:o.length},"category_".concat(e.categoryID,"_").concat(t))}))})]})},_o=function(e,t){T.getState().CORE_API.switchGlobalVariant(e,t)};function ko(e){var t,n,r=e.color,o=e.index,i=e.elementId,a=e.allActiveVariants;return(0,be.jsxs)("div",{onClick:function(){return _o(i,r)},className:a[i]==r?"colorSelector selected":"colorSelector",children:[(0,be.jsx)("div",{className:"colorThumbnailContainer",children:(0,be.jsxs)("div",{className:"colorThumbnail",children:[(0,be.jsx)("div",{className:"checkMark",children:(0,be.jsx)("img",{src:Z+"/Icon/Check.svg"})}),(0,be.jsx)("img",{className:"contextColorThumbnail",src:T.getState().CORE_API.getResolvedAssetUrl(null===(t=Er.getState().lookData[r])||void 0===t?void 0:t.thumbnail)})]})}),(0,be.jsx)("div",{className:"colorDetails",children:(0,be.jsx)("p",{className:"truncate-mobile colorDetailsLabel",children:xr(null===(n=Er.getState().lookData[r])||void 0===n?void 0:n.label)})})]},"Color-"+o)}function Eo(e){var t=e.element,n=e.allActiveVariants;return(0,be.jsx)(be.Fragment,{children:t.looks.map((function(e,r){return(0,be.jsx)(ko,{color:e,index:r,elementId:t.id,allActiveVariants:n},"MobileGridInternal_"+r)}))})}function Oo(e,t){return(0,be.jsx)(be.Fragment,{children:e!==t.length-1?(0,be.jsx)("div",{className:"itemGridDivider"}):""})}var So=function(e){var t=e.visible,n=Er.getState().categoryData.color,r=ho((function(e){return e.allActiveVariants})),o=T((function(e){return e.materialOverrideExists})),i=T((function(e){return e.CORE_API})),a=C((0,w.useState)(0),2),l=a[0],s=a[1],u=(0,w.useCallback)((function(){T.getState().CORE_API.removeAllVariantOverrides(),T.getState().CORE_API.alert({alertMsg:"Removed all overrides!",alertTime:4e3,alertType:"success",alertLabel:"Removed:"})}),[]),c=(0,w.useCallback)((function(e){if(d.current.scrollLeft!==e){var t,n,r,o=!1;window.requestAnimationFrame((function i(a){void 0===t&&(t=a);var l=a-t;if(n!==a){var s=l/200;d.current.scrollLeft>e?(r=(d.current.scrollLeft-e)*Math.min(s,1),d.current.scrollLeft-=r,d.current.scrollLeft===e&&(o=!0)):d.current.scrollLeft<e&&(r=(e-d.current.scrollLeft)*Math.min(s,1),d.current.scrollLeft+=r,d.current.scrollLeft===e&&(o=!0))}l<200&&(n=a,!o&&window.requestAnimationFrame(i))}))}}),[]),f=(0,w.useRef)([]);(0,w.useEffect)((function(){f.current=f.current.slice(0,n.length)}),[]);var d=(0,w.useRef)(null),p=(0,w.useCallback)((function(e,t){if(e.getBoundingClientRect().left<=28)for(var r=0;r<n.length;r++)t===r&&s(r)}),[]),h=(0,w.useCallback)((function(e,t){switch(n[n.length-1].looks.length){case 1:e.getBoundingClientRect().left<=304&&e===f.current[n.length-1]&&s(n.length-1);break;case 2:e.getBoundingClientRect().left<=208&&e===f.current[n.length-1]&&s(n.length-1);case 3:e.getBoundingClientRect().left<=108&&e===f.current[n.length-1]&&s(n.length-1);default:(null===e||void 0===e?void 0:e.getBoundingClientRect().left)<=108&&e===f.current[n.length-1]&&s(n.length-1)}}),[f]),v=(0,w.useCallback)((function(e){var t=e.categoryID,r=e.index;return(0,be.jsx)(be.Fragment,{children:(0,be.jsx)("a",{className:l===r?"mobileTab scrolled":"mobileTab",onClick:function(){for(var e=0;e<n.length;e++)e===r&&c(f.current[e].offsetLeft)},children:n[t].label})})}),[l,f]);return(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)("div",{className:"mobileTabContent",hidden:!t,children:(0,be.jsxs)("div",{className:"scrollSpyTabs",children:[(0,be.jsx)("div",{className:"secondMobileTabs",children:Object.keys(n).map((function(e,t){return(0,be.jsx)(v,{categoryID:e,index:t},"mobileTabs"+e)}))}),(0,be.jsx)("div",{children:(0,be.jsx)("div",{className:"mobileGrid mobileGridCenter",ref:d,onScroll:function(){for(var e=0;e<n.length;e++)e!=n.length-1?p(f.current[e],e):e==n.length-1&&h(f.current[e],e)},children:(0,be.jsxs)("section",{className:"mobileGridSection",children:[o&&(0,be.jsxs)("button",{onClick:u,className:"removeAllColorOverridesButton",disabled:!o,children:[(0,be.jsx)("div",{className:"iconContainer",children:(0,be.jsx)("img",{src:Z+"/Icon/TrashSimple.svg",alt:"Remove"})}),"Remove all",(0,be.jsx)("br",{}),"overrides"]}),n.map((function(e,t){return(0,be.jsxs)("section",{className:"mobileGridCategorySection",id:"section-".concat(e.categoryID),ref:function(e){return f.current[t]=e},children:[(0,be.jsx)(Eo,{element:e,index:t,allActiveVariants:r},"mobileGrid-".concat(e.categoryID)),(0,be.jsx)(Oo,{index:t,categories:n},"divider"+e.categoryID)]},"sectionz-".concat(e.categoryID,"-").concat(t))}))]})})})]})}),(0,be.jsxs)("div",{className:"container desktop",hidden:!t,children:[o&&(0,be.jsx)("button",{className:"removeAllColorOverridesButton",onClick:u,disabled:!o,children:"Remove all overrides"}),n.map((function(e,t){return(0,be.jsxs)("div",{className:"subContainer topContainer",children:[(0,be.jsx)("h4",{className:"subheading",children:e.label}),(0,be.jsx)("div",{className:"sidemenuContent",children:(0,be.jsx)("div",{className:"color-grid",children:e.looks.map((function(t,n){var o,a,l;return(0,be.jsxs)("div",{onClick:function(){return _o(e.id,t)},className:r[e.id]==t?"colorSelector selected":"colorSelector",children:[(0,be.jsx)("div",{className:"colorThumbnailContainer",children:(0,be.jsxs)("div",{className:"colorThumbnail",children:[(0,be.jsx)("div",{className:"checkMark",children:(0,be.jsx)("img",{src:Z+"/Icon/Check.svg"})}),(0,be.jsx)("img",{className:"contextColorThumbnail",src:i.getResolvedAssetUrl(null===(o=Er.getState().lookData[t])||void 0===o?void 0:o.thumbnail)})]})}),(0,be.jsxs)("div",{className:"colorDetails",children:[(0,be.jsx)("p",{className:"truncate colorDetailsLabel",children:xr(null===(a=Er.getState().lookData[t])||void 0===a?void 0:a.label)}),(0,be.jsx)("p",{className:"truncate colorDetailsLabel",children:xr(null===(l=Er.getState().lookData[t])||void 0===l?void 0:l.accent)})]})]},"Color-"+n)}))})}),(0,be.jsx)(Oo,{})]},"".concat(e.label,"-").concat(t))}))]})]})},jo=A((function(e,t){return{activeHotspotData:null,activeFeatureID:"",actions:{enterHotspotInFeaturesTab:function(t){2!==T.getState().sideMenuState&&T.setState({sideMenuState:2}),e({activeFeatureID:t})},exitHotspot:function(){e({activeFeatureID:null})}}}}));function Co(e){var t=e.carouselTabKey,n=(e.hotspotContentRef,(0,w.useRef)(null)),r=T((function(e){return e.CORE_API})),o=function(e){e.target.style.width="100%"};return(0,be.jsx)(hr,{children:(0,be.jsxs)("div",{className:"carouselTabParent",ref:n,children:["img"===t.type&&(0,be.jsx)("img",{src:r.getResolvedAssetUrl(t.link),alt:t.alt?t.alt:t.type,onLoad:function(e){return o(e)}}),"video"===t.type&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)("p",{className:"carouselVideoPlaceholderText",children:t.alt?t.alt:t.type}),(0,be.jsx)("video",{src:r.getResolvedAssetUrl(t.link),muted:!0,loop:!0,autoPlay:!0,playsInline:!0,controls:!1,onLoad:function(e){return o(e)}})]})]})},"SplideSlide-"+t.link)}function No(e){var t=e.tabs,n=e.tabKey,r=e.index,o=e.activeFeatureID,i=C((0,w.useState)([]),2),a=i[0],l=i[1],s=(0,w.useRef)(null),u=(0,w.useRef)(null),c=(T((function(e){return e.CORE_API})),(0,w.useRef)(null)),f=(0,w.useCallback)((function(e){T.getState().CORE_API.clickHotspot("hotspot3D_"+e,{ignoreUI:!0})}),[]);(0,w.useEffect)((function(){for(var e=[],t=n.hotspotData,r=0;r<t.carousel.length;r++)""!==t.carousel[r].type&&""!==t.carousel[r].link&&(e=[].concat(E(e),[j(j({},t.carousel[r]),{},{index:r})]));l(e)}),[n]),(0,w.useEffect)((function(){var e=u.current;e&&(o===e.id?d(e):p(e))}),[o]);var d=(0,w.useCallback)((function(e){e.checked=!0,e.nextElementSibling.nextElementSibling.setAttribute("style","max-height: 800px;");var n=e.nextElementSibling.clientHeight;!function(e,t){if(e.current.scrollTop!==t){var n,r,o,i=!1;window.requestAnimationFrame((function a(l){void 0===n&&(n=l);var s=l-n;if(r!==l){var u=s/200;e.current.scrollTop>t?(o=(e.current.scrollTop-t)*Math.min(u,1),e.current.scrollTop-=o,e.current.scrollTop===t&&(i=!0)):e.current.scrollTop<t&&(o=(t-e.current.scrollTop)*Math.min(u,1),e.current.scrollTop+=o,e.current.scrollTop===t&&(i=!0))}s<200&&(r=l,!i&&window.requestAnimationFrame(a))}))}}(t,n*r)}),[]),p=(0,w.useCallback)((function(e){e.nextElementSibling.nextElementSibling.setAttribute("style","max-height: 0px;"),e.checked=!1}),[]);return(0,be.jsx)(be.Fragment,{children:n.hotspotData&&(0,be.jsxs)("div",{className:"accordionTab",children:[(0,be.jsx)("input",{type:"checkbox",name:"accordion",id:"rd_"+n.itemData.skuID+"_"+n.hotspotData.hotspotID,defaultChecked:!1,ref:u,onClick:function(e){f(n.itemData.skuID+"_"+n.hotspotData.hotspotID,{ignoreUI:!1})}}),(0,be.jsxs)("label",{className:"tab-label",htmlFor:"rd_"+n.itemData.skuID+"_"+n.hotspotData.hotspotID,children:[(0,be.jsx)("span",{children:n.hotspotData.title}),(0,be.jsx)("img",{className:"accordion-closed",src:Z+"/Icon/Plus.svg"}),(0,be.jsx)("img",{className:"accordion-open",src:Z+"/Icon/Minus.svg"})]}),(0,be.jsx)("div",{className:"tab-content",children:(0,be.jsxs)("div",{className:"hotspot-content",ref:c,children:[(0,be.jsx)(yr(),{className:"ignore",modules:{toolbar:!1},theme:"bubble",readOnly:!0,value:n.hotspotData.description}),1==a.length&&""!=a[0].type&&""!=a[0].link&&(0,be.jsx)(Co,{carouselTabKey:a[0],index:0,hotspotContentRef:c},"carouselTabs_"+n.itemData.skuID+"_"+n.hotspotData.hotspotID+"_0"),a.length>1&&(0,be.jsx)("div",{className:"carousel",children:(0,be.jsx)(pr,{options:{perPage:1,preloadPages:3},ref:s,children:a.map((function(e,t){return""!=e.type&&""!=e.link&&(0,be.jsx)(Co,{carouselTabKey:e,index:t,hotspotContentRef:c},"carouselTabs_"+n.itemData.skuID+"_"+n.hotspotData.hotspotID+"_"+e.index)}))})})]})})]})})}var Po=function(e){var t=e.visible,n=T((function(e){return e.tabSpawnCount})),r=(0,w.useRef)(null),o=jo((function(e){return e.activeFeatureID}));return(0,be.jsx)(be.Fragment,{children:(0,be.jsx)("div",{className:"col desktop productFeatureUIDic",hidden:!t,ref:r,children:(0,be.jsxs)("div",{className:"tabs",children:[0==n.length&&(0,be.jsx)("div",{className:"tabEmptyText",children:"*Please add an item to the scene to see the features"}),n.map((function(e,t){return(0,be.jsx)(No,{tabs:r,activeFeatureID:o,tabKey:e,index:t},"tabs_"+e.itemData.skuID+"_"+e.hotspotData.hotspotID)}))]})})})};var Ao=function(e,t){return e.filter((function(e,n){return t!==n}))},To=function(e,t,n){var r=e.slice();return r[t].quantity=n,r},Lo=A((function(e,t){return{cart:[],cartTotalPrice:0,deleteCartItem:function(t){e((function(e){return{cart:Ao(e.cart,t)}}))},addToCart:function(t){e((function(e){return{cart:[].concat(E(e.cart),[t])}}))},updateQuantity:function(t,n){e((function(e){return{cart:To(e.cart,t,n)}}))},previewCartModalOpen:!1,togglePreviewCartModal:function(){e((function(e){return{previewCartModalOpen:!e.previewCartModalOpen}}))},actions:{setCartTotalPrice:function(t){e((function(){return{cartTotalPrice:t}}))}}}})),Io=function(e){var t=e.itemObject,n=T((function(e){return e.CORE_API})),r=C((0,w.useState)(n.sceneSettings.currency),2),o=r[0];r[1];return(0,be.jsx)(be.Fragment,{children:(0,be.jsxs)("div",{className:"0"==t.countUnavailable?"cartItem":"cartItem cartItemOutOfStock",draggable:!1,style:{display:t?"":"none"},children:[(0,be.jsx)("div",{className:"cartItemImage",children:(0,be.jsx)("img",{draggable:!1,src:n.getResolvedAssetUrl(t.thumbnails.review?t.thumbnails.review:t.thumbnails.low),alt:t.title})}),(0,be.jsxs)("div",{className:"cartItemDetails",children:[(0,be.jsx)("h4",{children:t.title}),(0,be.jsxs)("div",{className:"cartRow",children:[(0,be.jsxs)("span",{className:"itemCount",children:["qty: ",t.count]}),(0,be.jsxs)("h3",{className:"itemPrice",children:[o,parseFloat(t.price).toFixed(2)]})]}),"0"==!t.countUnavailable&&(0,be.jsxs)("div",{className:"cartRow",children:[(0,be.jsx)("img",{className:"cartRowImage",src:Z+"/Icon/Info_red.png"}),(0,be.jsxs)("h3",{className:"itemAvailable",children:[t.countAvailable," IN STOCK"]}),(0,be.jsx)("span",{className:"itemCount",children:"- quantities requested not available"})]})]})]})})},Do=function(e){!function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(e);var t=Lo((function(e){return e.cart})),n=Lo((function(e){return e.previewCartModalOpen})),r=Lo((function(e){return e.togglePreviewCartModal})),o=T((function(e){return e.CORE_API})),i=(0,w.useCallback)((function(){o.checkout()}),[]);return(0,be.jsx)(be.Fragment,{children:(0,be.jsxs)("div",{className:n?"previewCartModal open":"previewCartModal",children:[(0,be.jsxs)("div",{className:"previewCartModalChild",children:[(0,be.jsx)("button",{className:"closeButton",onClick:function(){r()},children:(0,be.jsx)("img",{src:Z+"/Icon/X.svg"})}),t.length<=0&&(0,be.jsx)("h3",{className:"cartEmptyText",children:"Your cart is currently empty"}),t.length>0&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)("h2",{className:"cartTitle",children:"Review Products"}),(0,be.jsx)("div",{className:"previewCartContentParentDiv",children:(0,be.jsx)("div",{className:"previewCartContent",children:t.map((function(e,t){return(0,be.jsx)(Io,{itemObject:e,index:t},"Cart Item-".concat(t))}))})})]})]}),(0,be.jsx)("div",{className:"checkButtonParentDiv",children:(0,be.jsx)("button",{className:"checkoutButton",onClick:i,children:(0,be.jsx)("span",{children:"Add To Cart"})})})]})})},Ro=function(e){var t=e.sideMenuOpen,n=e.sideMenuRef,r=e.toggleSideMenuOpen,o=e.configuratorWcRef,i=e.PUBLIC_DESIGN_ASSETS_ENDPOINT,a=e.handleSideButtonClick,l=e.useTabIcon,s=e.GENERIC_PROJECT_ASSET_DATA_ROOT_URL,u=e.sideMenuState,c=e.togglePreviewCartModal,f=e.getItemCount,d=e.currency,p=e.numberWithCommas,h=Er((function(e){return e.hotspotsData})),v=Er.getState().categoryData.color;return(0,w.useEffect)((function(){if(T.getState().CORE_API.isMobile&&n.current)o.shadowRoot.getElementById("_leftShell")}),[t,n]),(0,be.jsxs)("div",{className:"sideMenu interactable ".concat(!0===t?"":"side-menu-collapsed"),ref:n,children:[(0,be.jsxs)("div",{className:t?"mobileExpandButton sideMenuOpen":"mobileExpandButton",children:[(0,be.jsx)("span",{children:"EXPAND CONFIGURATOR"}),(0,be.jsx)("button",{role:"button",onClick:r,children:(0,be.jsx)("img",{src:i+"/Icon/CaretDoubleDown.svg"})},"expandSideMenuButton")]}),(0,be.jsx)("div",{className:!0===t?"sideMenuTabContainer":"sideMenuTabContainer side-menu-container-hide",children:(0,be.jsxs)($r,{className:"firstMobileTab",children:[(0,be.jsxs)(Jr,{className:"firstMobileTabs",children:[(0,be.jsx)(io,{children:(0,be.jsxs)("div",{className:"mobileTab",onClick:function(){a(0)},children:[l?(0,be.jsx)("img",{className:"icon",alt:"null",src:s+"/thumbnails/common-ui/BuildTabIcon.svg"}):"","Build"]})}),v.length>0&&(0,be.jsx)(io,{children:(0,be.jsxs)("div",{className:"mobileTab",onClick:function(){a(1)},children:[l?(0,be.jsx)("img",{className:"icon",alt:"null",src:s+"/thumbnails/common-ui/ColorTabIcon.svg"}):"","Color"]})}),(0,be.jsx)("button",{className:"collapse-side-menu-button ".concat(!0===t?"":"set-display-none"),role:"button",onClick:r,children:(0,be.jsx)("img",{src:i+"/Icon/CaretDoubleDown.svg"})},"collapseSideMenuButton")]}),(0,be.jsx)(fo,{children:(0,be.jsx)(xo,{sideMenuState:0},"BuildUI1")}),v.length>0&&(0,be.jsx)(fo,{children:(0,be.jsx)(So,{sideMenuState:1})})]})}),(0,be.jsxs)("div",{className:"desktopSideMenu",children:[(0,be.jsxs)("div",{className:"sideMenuTabs",children:[(0,be.jsxs)("div",{className:0===u?"activeSideMenuTab rightTopBarButton button":"inactiveSideMenuTab rightTopBarButton button",onClick:function(){a(0)},children:[l?(0,be.jsx)("img",{className:"icon",alt:"null",src:s+"BuildTabIcon.png"}):"",(0,be.jsx)("span",{children:"Build"})]}),v.length>0&&(0,be.jsxs)("div",{className:1===u?"activeSideMenuTab rightTopBarButton button":"inactiveSideMenuTab rightTopBarButton button",onClick:function(){a(1)},children:[l?(0,be.jsx)("img",{className:"icon",alt:"null",src:s+"/thumbnails/common-ui/ColorTabIcon.svg"}):"",(0,be.jsx)("span",{children:"Color"})]}),Object.keys(h).length>0&&(0,be.jsxs)("div",{className:2===u?"activeSideMenuTab rightTopBarButton button":"inactiveSideMenuTab rightTopBarButton button",onClick:function(){a(2)},children:[l?(0,be.jsx)("img",{className:"icon",alt:"null",src:s+"/thumbnails/common-ui/ProductFeaturesTabIcon.png"}):"",(0,be.jsx)("span",{children:"Features"})]})]}),(0,be.jsxs)("div",{className:"sideMenuContent",children:[(0,be.jsx)(Do,{}),(0,be.jsx)(mo,{visible:0===u}),(0,be.jsx)(xo,{visible:0===u},"buildUi-desktop"),(0,be.jsx)(So,{visible:1===u},"colourTab-desktop"),(0,be.jsx)(Po,{visible:2===u},"featuresTab-desktop")]})]}),(0,be.jsxs)("div",{className:"bottomBar right button",onClick:function(){c()},children:[(0,be.jsxs)("div",{className:"bottomBarChildDiv",children:[(0,be.jsx)("span",{children:"Review"}),(0,be.jsx)("div",{className:"cartNumber",children:f()})]}),(0,be.jsx)("div",{className:"reviewButtonParentDiv",children:(0,be.jsx)("div",{className:"button reviewButton",children:(0,be.jsx)("div",{className:"",children:"".concat(d).concat(p(Lo.getState().cartTotalPrice))})})})]})]})},Mo=function(e){var t=e.previewCartModalOpen,n=e.togglePreviewCartModal,r=e.PUBLIC_DESIGN_ASSETS_ENDPOINT,o=e.cart;return(0,be.jsxs)("div",{className:t?"previewCartModal mobile open":"previewCartModal mobile",children:[(0,be.jsx)("button",{className:"closeButton",onClick:function(){n()},children:(0,be.jsx)("img",{src:r+"/Icon/X.svg"})}),(0,be.jsx)("h2",{className:"cartTitle",children:"Review Products"}),o.length>0?(0,be.jsxs)("div",{className:"previewCartContentParentDiv",children:[(0,be.jsx)("div",{className:"previewCartContent",children:o.map((function(e,t){return(0,be.jsx)(Io,{itemObject:e,index:t},"Cart Item - ".concat(t))}))}),(0,be.jsx)("div",{className:"previewCartButtonContainer",children:(0,be.jsxs)("button",{className:"checkoutButton",children:[(0,be.jsx)("span",{children:"Add To Cart"}),(0,be.jsx)("img",{src:r+"/Icon/ArrowRight.svg"})]})})]}):(0,be.jsx)("h3",{className:"cartEmptyText",children:"Your cart is currently empty"})]})},qo=function(e){var t=e.selectedItemData,n=T((function(e){return e.CORE_API})),r=C((0,w.useState)(null),2),o=r[0],i=r[1],a=C((0,w.useState)([]),2),l=a[0],s=a[1],u=C((0,w.useState)(0),2),c=u[0],f=u[1],d=C((0,w.useState)(0),2),p=d[0],h=d[1],v=C((0,w.useState)(null),2),y=v[0],m=v[1],g=(0,w.useRef)(null),b=(0,w.useCallback)((function(){n.fireEvent(n.EVENTS.UI.ContextMenu_InfoBtnClicked,t)}),[t]);return(0,w.useEffect)((function(){s([]),m(null),t&&(m(j({},t)),t.overrideVariant?i(t.overrideVariant):i(t.currentVariant),s(n.getSelectedItemColors()))}),[t]),(0,w.useEffect)((function(){if(y&&t&&g.current){var e=n.getCanvasSize(),r=t.offsetX+g.current.children[0].clientWidth,o=t.offsetY+g.current.children[0].clientHeight,i=e.width-r;f(i<0?t.offsetX+i-10:t.offsetX);var a=e.height-o;h(a<0?t.offsetY+a-10:t.offsetY)}}),[y,t,g]),(0,be.jsx)("div",{ref:g,children:null!==t&&(0,be.jsx)("div",{className:"contextMenuParent interactable",style:{left:c+"px",top:p+"px"},children:(0,be.jsx)("div",{className:"contextContentDiv",children:(0,be.jsxs)("div",{className:"contextContent",children:[(0,be.jsxs)("div",{className:"contextContentChildDiv",children:[(0,be.jsxs)("div",{className:"contextNameContent",children:[(0,be.jsx)("h3",{children:t.itemData.name}),(0,be.jsx)("img",{className:"infoButton",src:Z+"/Icon/Info.svg",onClick:function(){return b()}})]}),(0,be.jsx)("div",{className:"closeContainer",onClick:function(){return n.exitSelectedItem()},children:(0,be.jsx)("button",{role:"button",title:"Close",children:(0,be.jsx)("img",{src:Z+"/Icon/X.svg"})})})]}),l.length>0&&(0,be.jsxs)("div",{className:"contextColorContent",children:[(0,be.jsx)("span",{className:"colorSwatchTitle",children:"Select exterior color"}),(0,be.jsx)("div",{className:"color-grid",children:l.map((function(e,t){return(0,be.jsxs)("div",{onClick:function(){n.overrideSelectedItemMaterial(e.id),i(e.id)},asgaga:e.id,asd:o,className:o==e.id?"colorSelector selected":"colorSelector",children:[(0,be.jsx)("div",{className:"colorThumbnailContainer",children:(0,be.jsxs)("div",{className:"colorThumbnail",children:[(0,be.jsx)("div",{className:"checkMark",children:(0,be.jsx)("img",{src:Z+"/Icon/Check.svg"})}),(0,be.jsx)("img",{className:"contextColorThumbnail",src:n.getResolvedAssetUrl(e.thumbnail)})]})}),(0,be.jsx)("div",{className:"colorDetails",children:(0,be.jsx)("p",{className:"truncate colorDetailsLabel",children:xr(e.label)})})]},"Color-"+t)}))})]}),(0,be.jsxs)("div",{className:"contextButtons",children:[n.canSelectedItemDrag()&&(0,be.jsxs)("button",{role:"button",onClick:function(){n.doesSelectedItemHasAttachedDependency()?T.getState().setRemoveModalOpen(!0):n.removeSelectedItem()},children:[(0,be.jsx)("img",{src:Z+"/Icon/TrashSimple.svg",alt:"Remove"}),(0,be.jsx)("span",{children:"Remove"})]}),n.canSelectedItemRotate()&&(0,be.jsxs)("button",{role:"button",onClick:function(){return n.rotateSelectedItem()},children:[(0,be.jsx)("img",{src:Z+"/Icon/Rotate.svg"}),(0,be.jsx)("span",{children:"Rotate"})]})]})]})})})})},Bo=function(e){var t=e.selectedItemData,n=e.contextMenuDrawerOpen,r=e.dismissContextMenuDrawer,o=C((0,w.useState)(n),2),i=o[0],a=o[1],l=(0,w.useRef)(null),s=T((function(e){return e.CORE_API})),u=C((0,w.useState)(null),2),c=u[0],f=u[1],d=C((0,w.useState)([]),2),p=d[0],h=d[1];return(0,w.useEffect)((function(){l.current.addEventListener("drawerClosed",(function(){r(),$.log("Context Drawer Dismissed!!")}))}),[l]),(0,w.useEffect)((function(){return $.log(n),a(n),function(){}}),[n]),(0,w.useEffect)((function(){if(h([]),t&&t.itemData){var e=[],n=t.itemData.looks;if(n){var r=Er.getState().lookData;n.map((function(t){r.hasOwnProperty(t)&&e.push(r[t])})),t.overrideVariant?f(t.overrideVariant):f(t.currentVariant),h(e)}}}),[t]),(0,be.jsx)("bottom-drawer",{id:"contextDrawer",ref:l,open:"".concat(i),children:(0,be.jsx)("div",{className:"contextMenuDrawer epigraphDrawer",slot:"bottom-drawer-content",children:(0,be.jsxs)("div",{className:"contextMenuParent interactable",children:[(0,be.jsx)("div",{className:"contextContent",children:t&&t.itemData?(0,be.jsx)(be.Fragment,{children:(0,be.jsx)("div",{className:"contextContentNameDiv",children:(0,be.jsx)("h3",{children:t.itemData.name})})}):""}),p.length>0&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)("p",{className:"selectColorLabel",children:"Select exterior color"}),(0,be.jsx)("div",{className:"color-grid",children:p.map((function(e,t){return(0,be.jsxs)("div",{onClick:function(){T.getState().CORE_API.overrideSelectedItemMaterial(e.id),f(e.id)},className:c==e.id?"colorSelector selected":"colorSelector",children:[(0,be.jsxs)("div",{className:"colorThumbnailContainer",children:[(0,be.jsx)("div",{className:"colorThumbnail",children:(0,be.jsx)("img",{className:"colorThumbnailImg",src:s.getResolvedAssetUrl(e.thumbnail)})}),(0,be.jsx)("div",{className:"checkMark",children:(0,be.jsx)("img",{src:Z+"/Icon/Check.svg"})})]}),(0,be.jsx)("div",{className:"colorDetails",children:(0,be.jsx)("p",{className:"truncate colorDetailsLabel",children:xr(e.label)})})]},"Color-"+t)}))})]}),(0,be.jsx)("div",{className:"contextButtons",children:(0,be.jsxs)("button",{role:"button",onClick:function(){s.doesSelectedItemHasAttachedDependency()?T.getState().setRemoveModalOpen(!0):(s.removeSelectedItem(),r())},children:[(0,be.jsx)("img",{src:Z+"/Icon/Trash.svg"}),(0,be.jsx)("span",{children:"Remove"})]})})]})})})},Uo=function(e){var t=e.selectedItemData,n=e.contextMenuOpen,r=e.dismissContextMenuDrawer,o=T((function(e){return e.CORE_API})),i=C((0,w.useState)(!1),2),a=i[0],l=i[1];return(0,w.useEffect)((function(){return l(n),function(){}}),[n]),(0,be.jsx)(be.Fragment,{children:o.isMobile?(0,be.jsx)(Bo,{selectedItemData:t,contextMenuDrawerOpen:a,dismissContextMenuDrawer:r}):a&&(0,be.jsx)(qo,{contextMenuDesktopOpen:a,selectedItemData:t})})},Fo=function(e){var n=e.configuratorWcRef,r=e.coreRef,i=e.viewInYourSpaceRef,a=e.disableUI,l=(Er((function(e){return e})),T((function(e){return e.setSideMenuState}))),s=T((function(e){return e.sideMenuState})),u=C((0,w.useState)(!0),2),c=u[0],f=u[1],d=C((0,w.useState)(!1),2),p=(d[0],d[1]),h=C((0,w.useState)(!1),2),v=h[0],y=h[1],m=gr((function(e){return e.infoModalOpen})),g=gr((function(e){return e.updateInfoModalOpen})),b=C((0,w.useState)(!1),2),x=b[0],_=b[1],k=C((0,w.useState)(!1),2),E=k[0],O=k[1],S=C((0,w.useState)("Link not generated!"),2),j=S[0],N=S[1],P=C((0,w.useState)(!1),2),A=P[0],I=P[1],D=T((function(e){return e.removeModalOpen})),R=T((function(e){return e.setRemoveModalOpen})),M=T((function(e){return e.moveModalOpen})),q=T((function(e){return e.setMoveModalOpen})),B=T((function(e){return e.outOfStockModalOpen})),U=T((function(e){return e.setOutOfStockModalOpen})),F=(0,w.useRef)(null),z=(0,w.useRef)(null),H=(0,w.useRef)(null),V=C((0,w.useState)({}),2),W=V[0],K=V[1],G=C((0,w.useState)({}),2),Y=G[0],Q=G[1],J=C((0,w.useState)(!1),2),ee=J[0],te=(J[1],C((0,w.useState)(""),2)),ne=te[0],re=te[1],oe=C((0,w.useState)(""),2),ie=oe[0],ae=oe[1],le=Er((function(e){return e.productData})),se=Lo((function(e){return e.cart})),ue=Lo((function(e){return e.previewCartModalOpen})),ce=Lo((function(e){return e.togglePreviewCartModal})),fe=C((0,w.useState)(!1),2),de=fe[0],pe=fe[1],he=C((0,w.useState)(!1),2),ve=he[0],ye=he[1],me=C((0,w.useState)(!0),2),ge=me[0],xe=me[1],_e=jo((function(e){return e})),ke=T((function(e){return e.CORE_API})),Ee=C((0,w.useState)(!1),2),Oe=Ee[0],Se=Ee[1],je=C((0,w.useState)(!0),2),Ce=je[0],Ne=je[1],Pe=C((0,w.useState)(ke.getSceneItemCount()>0),2),Ae=Pe[0],Te=Pe[1],Le=C((0,w.useState)(ke.sceneSettings.showSaveButton),2),Ie=Le[0],De=(Le[1],C((0,w.useState)(ke.sceneSettings.showContextMenu),2)),Re=De[0],Me=(De[1],C((0,w.useState)(ke.getSceneItemCount()>0),2)),qe=Me[0],Be=Me[1],Ue=C((0,w.useState)(ke.sceneSettings.showResetBtn),2),Fe=Ue[0],ze=(Ue[1],C((0,w.useState)(ke.sceneSettings.showDimensionBtn),2)),He=ze[0],Ve=(ze[1],C((0,w.useState)(ke.sceneSettings.showHotspotsBtn),2)),We=Ve[0],Ke=(Ve[1],C((0,w.useState)(ke.sceneSettings.currency),2)),Ge=Ke[0];Ke[1];(0,w.useEffect)((function(){return xe(ke.areHotspotsVisible()),function(){}}),[s]);var Ye=(0,w.useCallback)((function(){xe(!ke.areHotspotsVisible()),ke.areHotspotsVisible()?ke.hideAllHotspots():ke.showAllHotspots()}),[]),$e=(0,w.useCallback)((function(){Se(!ke.areDimensionsVisible()),ke.areDimensionsVisible()?ke.hideDimensions():ke.showDimensions()}),[]);var Qe=(0,w.useCallback)((function(){ye(!0),O(!0);ke.shareScene().then((function(e){N(e),ye(!1),ke.alert({alertMsg:"Configuration saved succesfully!",alertTime:5e3,alertType:"info",alertLabel:"Success!"})})).catch((function(e){ye(!1),ke.alert({alertMsg:"Couldn't save the Configuration!",alertTime:5e3,alertType:"error",alertLabel:"Error:"})}))}),[]);function Xe(){p(!1),T.getState().CORE_API.closeContextMenu()}(0,w.useEffect)((function(){z.current&&z.current.appendChild(r.current)}),[z]),(0,w.useEffect)((function(){H.current&&H.current.appendChild(i.current)}),[H]),L(ke.EVENTS.SCENE.Hotspot_Enter,(function(e){if(T.getState().CORE_API.isMobile)$.log(ke.getActiveHotspot()),Q(ke.getActiveHotspot().hotspotData),y(!0);else{var t=e.hotspotAbsID;_e.actions.enterHotspotInFeaturesTab(t)}})),L(ke.EVENTS.SCENE.Hotspot_Exit,(function(e){_e.actions.exitHotspot()})),L(ke.EVENTS.SCENE.MaterialOverrides_Exists,(function(e){T.setState({materialOverrideExists:e})})),L(ke.EVENTS.UI.UtilityMenu_Hide,(function(e){Ne(!1)})),L(ke.EVENTS.UI.UtilityMenu_Show,(function(e){Ne(!0)})),L(ke.EVENTS.UI.ShareButton_Hide,(function(e){Te(!1)})),L(ke.EVENTS.UI.ShareButton_Show,(function(e){Te(!0)})),L(ke.EVENTS.UI.ViewInYourSpaceButton_Hide,(function(e){Be(!1)})),L(ke.EVENTS.UI.ViewInYourSpaceButton_Show,(function(e){Be(!0)})),L(ke.EVENTS.UI.ContextMenu_Show,(function(e){K(null===e||void 0===e?void 0:e.primary.data),pe(!0)})),L(ke.EVENTS.UI.ContextMenu_Hide,(function(e){pe(!1)})),L(ke.EVENTS.SCENE.DraggingOnDrop_CollsionDetected,(function(e){q(!0);var t="";t=1==Object.keys(e).length?"The item below will be lost if you place this here:\n":"The items below will be lost if you place this here:\n",Object.keys(e).map((function(n){t+="\n \u2022 "+(e[n].itemData.name?e[n].itemData.name:e[n].itemData.skuID)})),re(t)})),L(ke.EVENTS.SCENE.Cart_OutOfStock,(function(e){U(!0);var t="",n=0;e.cartItems.map((function(e){e.countUnavailable>0&&(n++,t+="\n \u2022 "+(le[e.skuID].name?le[e.skuID].name:e.skuID)+" x "+e.countUnavailable)})),ae((1==n?"The following items is unavailable and will not be added to your cart:\n":"The following items are unavailable and will not be added to your cart:\n")+t)}));var Ze=(0,w.useCallback)((function(){navigator.clipboard.writeText(j),ke.alert({alertMsg:"Copied to Clipboard!",alertTime:4e3,alertType:"success",alertLabel:"Copied!"})}),[j]),Je=(0,w.useCallback)((function(){var e=0;return se.map((function(t){return e+=t.count})),e}),[se]);return(0,be.jsxs)(be.Fragment,{children:[Re&&(0,be.jsx)(Uo,{selectedItemData:W,contextMenuOpen:de,dismissContextMenuDrawer:Xe}),(0,be.jsxs)("div",{className:"overlayUI",children:[(0,be.jsxs)("div",{className:"uiModals",children:[(0,be.jsx)("div",{id:"view-in-your-space-slot",ref:H}),(0,be.jsx)(we,{open:x,setOpen:_,heading:"Save This Configuration",inputPlaceholder:"Email Address",buttonText:"Send",dualOptions:!1,formFieldExists:!0}),(0,be.jsx)(we,{open:E,setOpen:O,heading:"Share Configuration",inputValue:j,buttonText:(0,be.jsx)("img",{src:Z+"/Icon/Copy.svg"}),dualOptions:!1,modalText:"Your design has been saved via the unique link below.",shareModal:!0,formFieldExists:!0,onSubmit:function(){Ze(),O(!1)},loading:ve}),(0,be.jsx)(we,{open:A,setOpen:I,heading:"Are you sure you want to restart?",buttonText:"Restart",dualOptions:!0,modalText:"All changes will be lost.",formFieldExists:!1,onSubmit:function(){return ke.restartScene()}}),(0,be.jsx)(we,{zIndex:31,open:D,setOpen:R,heading:"Are you sure you want to remove?",buttonText:"Remove",dualOptions:!0,modalText:"All changes made to this item will be lost.",formFieldExists:!1,onSubmit:function(){ke.removeSelectedItem(),Xe()}}),(0,be.jsx)(we,{zIndex:31,open:M,setOpen:q,heading:"Are you sure you want to move?",buttonText:"Move",dualOptions:!0,modalText:ne,formFieldExists:!1,onSubmit:o(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ke.completeItemDrop();case 2:e.sent;case 3:case"end":return e.stop()}}),e)}))),onCancel:function(){ke.revertItemDrop()}}),(0,be.jsx)(we,{zIndex:31,open:B,setOpen:U,heading:"Items Out Of Stock!",buttonText:"Confirm",dualOptions:!0,modalText:ie,formFieldExists:!1,onSubmit:function(){ke.checkout(!0)}})]}),(0,be.jsx)(mr,{open:v,dataObject:Y,dismissDrawer:function(){y(!1),T.getState().CORE_API.exitHotspot()}}),(0,be.jsx)(kr,{open:m,dismissDrawer:function(){g(!1)}})]}),(0,be.jsxs)("div",{className:"leftShell ".concat(!0===a?"disabledleftShell":""," ").concat(!1===c?"expanded-left-shell":""),id:"_leftShell",children:[(Ie||Ae||He||Fe||We)&&(0,be.jsx)(Sr,{utilityMenuVisible:Ce,dimensionsVisible:Oe,viewInYourSpaceMenuBtnVisible:qe,saveMenuBtnVisible:Ie,shareMenuBtnVisible:Ae,dimensionsMenuBtnVisible:He,restartMenuBtnVisible:Fe,hotspotsMenuBtnVisible:We,hotspotsVisibility:ge,handleRestartButtonClick:function(){I(!0)},handleShareButtonTrigger:Qe,handleDimensionClick:$e,handleShowHotspots:Ye,position:"bottom",CORE_API:ke}),(0,be.jsx)("div",{id:"epigraph-configurator-core-slot",ref:z})]}),!1===a&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(Mo,{previewCartModalOpen:ue,togglePreviewCartModal:ce,PUBLIC_DESIGN_ASSETS_ENDPOINT:Z,cart:se}),(0,be.jsx)(Ro,{configuratorWcRef:n,sideMenuOpen:c,sideMenuRef:F,toggleSideMenuOpen:function(){f(!c)},PUBLIC_DESIGN_ASSETS_ENDPOINT:Z,handleSideButtonClick:function(e){l(e)},useTabIcon:ee,GENERIC_PROJECT_ASSET_DATA_ROOT_URL:X,sideMenuState:s,togglePreviewCartModal:ce,getItemCount:Je,currency:Ge,numberWithCommas:_r})]})]})},zo=[{id:"configuratorStyles",url:"https://cdn.jsdelivr.net/npm/@epigraph/configurator/dist/epigraph-configurator.css"}],Ho=function(){var e=C((0,w.useState)(0),2),n=e[0],r=e[1],i=Er((function(e){return e.assetsData})),a=T((function(e){return e.CORE_API})),l=C((0,w.useState)([]),2),s=l[0],u=l[1];return(0,w.useEffect)((function(){if(a&&a.assetsData.uiStyles){var e=zo;if(null!==i&&void 0!==i&&i.uiStyles){var t,n=po(i.uiStyles);try{for(n.s();!(t=n.n()).done;){var r=t.value;r&&!0===(null===r||void 0===r?void 0:r.enabled)&&e.push(r)}}catch(o){n.e(o)}finally{n.f()}}u(e)}}),[i,a]),(0,w.useEffect)(o(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a&&a.assetsData.uiStyles&&!(s.length<=0)){e.next=2;break}return e.abrupt("return");case 2:n===s.length&&T.setState({cssLoaded:!0});case 3:case"end":return e.stop()}}),e)}))),[n,s,a]),(0,be.jsx)(be.Fragment,{children:s&&s.map((function(e){return(0,be.jsx)(w.Fragment,{children:(0,be.jsx)("link",{href:a.getResolvedAssetUrl(e.url),id:"dynamic-".concat(e.id),rel:"stylesheet",onLoad:function(){r(n+1)}})},e.id)}))})};function Vo(e){var t=e.disableUI,n=e.launchInAR,r=e.configuratorWcRef,o=e.gaCode,i=e.thumbComputedStyle,a=void 0===i?null:i,l=Er((function(e){return e})),s=(0,w.useRef)(null),u=(0,w.useRef)(null),c=(0,w.useRef)(null),f=(0,w.useRef)(null),d=C((0,w.useState)(!1),2),p=d[0],h=d[1],v=T((function(e){return e.CORE_API})),y=T((function(e){return e.cssLoaded})),m=(0,w.useRef)(null);L("coreApi:ready",(function(e){l.setProductData(e.productData),l.setCategoryData(e.categoryData),l.setLookData(e.lookData),l.setHotspotsData(e.hotspotsData),l.setAssetsData(e.assetsData);var t=e.categoryData.color;if(0==Object.keys(ho.getState().allActiveVariants).length&&t.map((function(e){return ho.getState().allActiveVariants[e.id]=e.looks[0]})),e.configuration&&e.configuration.globalVariants){var n=e.configuration.globalVariants;Object.keys(n).map((function(e){ho.getState().allActiveVariants[e]=n[e]})),ho.setState({allActiveVariants:j({},ho.getState().allActiveVariants)})}f.current.coreApi=s.current.api,h(!0)})),L("coreApi:failed",(function(e){r.showHiccupScreen("AUTHENTICATION FAILED FOR: ".concat(window.location.href)),h(!1)})),L("globalVariant:updated",(function(e){ho.setState({allActiveVariants:j({},e)})})),L("fittingSkuIds:updated",(function(e){vo.getState().actions.setFittingSkuIds(E(e.skuids))}));L("items:updated",(function(e){$.log("Items changed");var t=j({},e.itemsSpawned);vo.getState().setItemsSpawned(t),function(e){var t=[];Object.keys(e).map((function(n){var r=e[n];r.hotspotSpawned&&r.hotspotsData&&r.hotspotsData.map((function(r){t=[].concat(E(t),[{itemData:j({},e[n].itemData),hotspotData:j({},r)}])}))})),T.setState({tabSpawnCount:t})}(t)}));var g=(0,w.useCallback)((function(e){var t=[],n=Er.getState().productData;e.cartItems.forEach((function(e){var r=j({},e),o=n[e.skuID];r.title=o.lookDetails[e.currentVariant].title,r.thumbnails=o.lookDetails[e.currentVariant].thumbnails,t.push(r)})),Lo.setState({cart:[].concat(t)}),Lo.getState().actions.setCartTotalPrice(e.details.total)}),[]),b=(0,w.useCallback)((function(){v&&g(v.getCartItems())}),[v]),x=function(){return L(v.EVENTS.UI.PreloadScreen_Hide,(function(){r.api.ui.hidePreloadScreen()})),L(v.EVENTS.UI.PreloadScreen_Show,(function(){r.api.ui.showPreloadScreen()})),L(v.EVENTS.SCENE.CartItems_Updated,g),L(v.EVENTS.SCENE.Inventory_Updated,b),(0,be.jsx)(be.Fragment,{})};return(0,w.useEffect)((function(){var e=s.current;e&&(T.setState({coreWcRef:e}),r.api.core=e.api,r.api.core.clientAccessKey=r.clientAccessKey,T.setState({CORE_API:e.api}))}),[s]),(0,w.useEffect)((function(){!1!==y&&!1!==p&&(g(v.getCartItems()),r.api.ui.hidePreloadScreen(),n&&($.log("Attempting to auto launch view in your space"),v.viewInYourSpace()))}),[y,p]),(0,w.useEffect)((function(){var e=m.current;e&&(a=window.getComputedStyle(e),window.addEventListener("mousemove",(function(t){if(t.preventDefault(),window.mouseDownImgSrc){if(Math.abs(t.offsetX-window.pointerDownPos)<=10)return;var n={x:t.offsetX,y:t.offsetY},r=e;r.src=window.mouseDownImgSrc,r.style.opacity=.75,r.style.left="calc(".concat(n.x,"px - ").concat(a.width,")"),r.style.top="calc(".concat(n.y,"px - ").concat(a.height,")"),window.mouseDragging||(window.mouseDragging=!0,T.getState().CORE_API.itemDragStart(window.mouseDownSkuID))}})),window.addEventListener("mouseup",(function(){if(window.mouseDownImgSrc){var t=e;t.style.left="0px",t.style.top="0px",t.style.opacity=0,window.mouseDragging&&T.getState().CORE_API.itemDragEnd(),window.mouseDownImgSrc=null,window.mouseDragging=!1}})),window.addEventListener("touchmove",(function(t){if(window.mouseDownImgSrc){if(Math.abs(t.touches[0].screenX-window.pointerDownPos)<=10)return;var n={x:t.touches[0].clientX,y:t.touches[0].clientY},r=e;if(r.src=window.mouseDownImgSrc,r.style.opacity=.75,r.style.left="calc(".concat(n.x,"px - ").concat(a.width,")"),r.style.top="calc(".concat(n.y,"px - ").concat(a.height,")"),!window.mouseDragging){window.mouseDragging=!0;for(var o=u.current.getElementsByClassName("mobileGrid"),i=0;i<o.length;i++)o[i].style="overflow-x:hidden !important";T.getState().CORE_API.itemDragStart(window.mouseDownSkuID)}}})),window.addEventListener("touchend",(function(t){if(window.mouseDownImgSrc){var n=e;if(n.style.left="0px",n.style.top="0px",n.style.opacity=0,window.mouseDragging){T.getState().CORE_API.itemDragEnd();for(var r=u.current.getElementsByClassName("mobileGrid"),o=0;o<r.length;o++)r[o].style="overflow-x:auto !important"}window.mouseDownImgSrc=null,window.mouseDragging=!1}})))}),[m,u,v]),(0,w.useEffect)((function(){c&&($.log("Analytics web component ready within the configurator"),s.current.setAttribute("epigraph-analytics-ref",c.current.id))}),[c]),(0,w.useEffect)((function(){f&&($.log("SENDING VIEW IN YOUR SPACE ID: ",f.current.id),s.current.setAttribute("view-in-your-space-elem-id",f.current.id))}),[f]),(0,be.jsxs)("div",{className:"configuratorParentDiv",ref:u,children:[p&&(0,be.jsx)(x,{}),(0,be.jsx)(Ho,{}),(0,be.jsx)("img",{id:"dragImgElRef",ref:m,alt:""}),(0,be.jsx)("epigraph-analytics",{ref:c,"ua-code":"UA-189030533-2","tracker-name":"configuratorAnalyticsTracker","default-event-category":"Epigraph-Configurator-Analytics",id:"epigraphAnalyticsTacker"}),(0,be.jsx)("epigraph-configurator-core",{ref:s,id:"epigraphConfiguratorCore",className:n?"configuratorCoreWebComponent_launchInAR":"configuratorCoreWebComponent","ga-code":o,"configurator-wc-id":r.configuratorWcId,"initial-config-id":r.initialConfigId,"client-access-key":r.clientAccessKey}),(0,be.jsx)("view-in-your-space",{id:"viewInYourSpaceWc","hide-button":!0===n?"false":"true","launch-in-ar":!0===n?"true":"false",ref:f,class:!0===n?"viewInYourSpace-AR":"viewInYourSpace"}),p&&y&&!n&&(0,be.jsx)("div",{className:"shadowRoot",children:(0,be.jsx)(Fo,{configuratorWcRef:r,coreRef:s,viewInYourSpaceRef:f,disableUI:t})})]})}var Wo=document.createElement("template");Wo.innerHTML="\n <style>\n .preload-main-container{\n width: 100%;\n height: 100%;\n position: absolute;\n background-color: white;\n z-index: 9999998;\n transition: 2s;\n // pointer-events: none;\n // transform: translateY(-100vh);\n opacity: 0;\n user-select: none;\n // transition-delay: 1s;\n overflow:hidden;\n }\n \n .no-pointer-events {\n pointer-events: none;\n }\n \n .showPreload {\n opacity: 1;\n transition: 0.5s !important;\n // transition-delay: 0s !important;\n // pointer-event: all !important;\n // transform: translateY(0%);\n }\n </style>\n ";var Ko=document.createElement("template");Ko.innerHTML='\n <style>\n .preloadContainer {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n // pointer-events: all;\n flex-direction: column;\n overflow:hidden;\n }\n \n .preloadLogo {\n \n background-repeat: no-repeat;\n background-size: contain;\n background-position: center;\n opacity: 1;\n width: 65px;\n height: 65px;\n display:flex;\n justify-content:center;\n align-items:center;\n }\n \n .preloadLoader {\n position:absolute;\n animation: spin 1s linear infinite;\n -webkit-animation: spin 1s linear infinite;\n -moz-animation: spin 1s linear infinite;\n -o-animation: spin 1s linear infinite;\n }\n\n .circular-loader{\n border: 8px solid #0000001a;\n border-top: 8px solid #000000;\n border-radius: 50%;\n width: 140px;\n height: 140px;\n }\n\n .preloadLogo > slot > img{\n width: 100%;\n height: 100%;\n }\n\n @-webkit-keyframes spin {\n 0% { -webkit-transform: rotate(0deg);}\n 100% { -webkit-transform: rotate(360deg); }\n }\n \n @-moz-keyframes spin {\n 0% { -moz-transform: rotate(0deg);}\n 100% { -moz-transform: rotate(360deg); }\n }\n \n @-o-keyframes spin {\n 0% { -o-transform: rotate(0deg);}\n 100% { -o-transform: rotate(360deg); }\n }\n \n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n </style>\n \n <div class="preloadContainer" id="preloadContainer"> \n <div class="preloadLogo" part="preload-logo">\n <slot name="loading-logo">\n <img src="https://hosted.myepigraph.com/static/epigraph-brand/epigraph-preload-logo.png" style="width: 100%;" slot="loading-logo" />\n </slot>\n </div>\n <div class="preloadLoader">\n <div part="circular-loader" class="circular-loader" ></div>\n </div>\n </div>\n ';var Go=document.createElement("template");Go.innerHTML="\n <style>\n .hiccup-ui-main-container {\n width: 100%;\n height: 100%;\n font-size: larger;\n position: absolute;\n top: 0px;\n left: 0px;\n background-color: white;\n opacity: 0;\n z-index: 9999999;\n pointer-events: none;\n // transform: translateY(-100vh);\n transition: 1s ease-out;\n user-select: none;overflow:hidden;\n }\n \n .no-pointer-events {\n pointer-events: none;\n }\n \n .show-hiccup {\n opacity: 1;\n // pointer-event: all !important;\n // transform: translateY(0%);\n }\n </style>\n ";var Yo=document.createElement("template");Yo.innerHTML='\n <style>\n .hiccup-container {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n // pointer-events: all;\n flex-direction: column;\n opacity: 1;\n overflow:hidden;\n }\n \n </style>\n \n <div class="hiccup-container" id="preloadContainer"> \n <div id="hiccupTitle" class="hiccup-title">\n Uh Oh!!\n There was a problem while trying to initialise the configurator.\n </div>\n </div>\n ';var $o=b("configuratorWcId"),Qo=b("epigraphCoreScriptElem"),Xo=b("setupPreloadScreen"),Zo=b("setupHiccupScreen"),Jo=b("importEpigraphCoreWebComponent"),ei=b("importViewInYourSpaceWebComponent"),ti=b("importEpigraphLogger"),ni=b("importEpigraphAnalyticsWebComponent"),ri=b("collectWebComponentAttributes"),oi=function(e){c(r,e);var n=h(r);function r(){var e;return i(this,r),e=n.call(this),Object.defineProperty(s(e),ri,{value:fi}),Object.defineProperty(s(e),ni,{value:ci}),Object.defineProperty(s(e),ti,{value:ui}),Object.defineProperty(s(e),ei,{value:si}),Object.defineProperty(s(e),Jo,{value:li}),Object.defineProperty(s(e),Zo,{value:ai}),Object.defineProperty(s(e),Xo,{value:ii}),Object.defineProperty(s(e),$o,{writable:!0,value:void 0}),e.clientAccessKey=null,e.validationPassed=!1,e.projectID="",e.configID="default",e.gaCode="",Object.defineProperty(s(e),Qo,{writable:!0,value:void 0}),e.api={core:null,ui:null},e.api.ui=s(e),e.attachShadow({mode:"open"}),m(s(e),Xo)[Xo](),m(s(e),Zo)[Zo](),e}return l(r,[{key:"configuratorWcId",get:function(){return m(this,$o)[$o]}},{key:"connectedCallback",value:function(){var e=o(t().mark((function e(){var n,r=this;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:m(this,ri)[ri](),m(this,ni)[ni](),m(this,Jo)[Jo](),m(this,ei)[ei](),this.style.maxWidth="1440px",this.style.maxHeight="800px",this.style.overflow="hidden",this.style.width="100%",this.style.height="100%",this.style.position="relative",this.style.visibility="visible",this.style.display="flex",(n=document.createElement("div")).id="configuratorContainer",n.style.width="100%",n.style.height="100%",n.style.userSelect="none",n.style.overflow="hidden",this.shadowRoot.appendChild(n),m(this,Qo)[Qo].addEventListener("load",(function(){x.render((0,be.jsx)(Vo,{disableUI:r.hasAttribute("disable-ui"),launchInAR:r.hasAttribute("launch-in-ar"),gaCode:r.gaCode,configuratorWcRef:r},"Configurator-App"),n)}));case 20:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"showPreloadScreen",value:function(){this.preloadDiv.classList.remove("no-pointer-events"),this.preloadDiv.classList.add("showPreload")}},{key:"hidePreloadScreen",value:function(){var e=o(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.preloadDiv.classList.remove("showPreload"),e.next=3,br(1e3);case 3:e.sent,this.preloadDiv.classList.add("no-pointer-events");case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"showHiccupScreen",value:function(){this.hiccupUi.classList.remove("no-pointer-events"),this.hiccupUi.classList.add("show-hiccup")}},{key:"hideHiccupScreen",value:function(){var e=o(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.hiccupUi.classList.remove("show-hiccup"),e.next=3,br(1e3);case 3:e.sent,this.hiccupUi.classList.add("no-pointer-events");case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),r}(y(HTMLElement));function ii(){this.preloadDiv=document.createElement("div"),this.preloadDiv.id="preloadMainContainer",this.preloadDiv.classList.add("preload-main-container"),this.preloadDiv.classList.add("showPreload"),this.preloadDiv.appendChild(Wo.content.cloneNode(!0)),this.preloadDiv.appendChild(Ko.content.cloneNode(!0)),this.shadowRoot.appendChild(this.preloadDiv)}function ai(){this.hiccupUi=document.createElement("div"),this.hiccupUi.id="hiccupMainContainer",this.hiccupUi.classList.add("hiccup-ui-main-container"),this.hiccupUi.appendChild(Go.content.cloneNode(!0)),this.hiccupUi.appendChild(Yo.content.cloneNode(!0)),this.shadowRoot.appendChild(this.hiccupUi)}function li(){m(this,Qo)[Qo]=document.createElement("script"),m(this,Qo)[Qo].setAttribute("type","module"),m(this,Qo)[Qo].setAttribute("src","https://cdn.jsdelivr.net/npm/@epigraph/configurator-core"),m(this,Qo)[Qo].setAttribute("id","configuratorCoreScript"),document.head.appendChild(m(this,Qo)[Qo])}function si(){this._viewInYourSpaceScriptElem=document.createElement("script"),this._viewInYourSpaceScriptElem.setAttribute("type","module"),this._viewInYourSpaceScriptElem.setAttribute("src","https://cdn.jsdelivr.net/npm/@epigraph/web-components@1.x.x/dist/view-in-your-space.js"),this._viewInYourSpaceScriptElem.setAttribute("id","viewInYourSpaceScript"),document.head.appendChild(this._viewInYourSpaceScriptElem)}function ui(){this._epigraphLoggerScriptElem=document.createElement("script"),this._epigraphLoggerScriptElem.setAttribute("src","https://cdn.jsdelivr.net/npm/@epigraph/web-components@1.x.x/dist/epigraph-logger.js"),this._epigraphLoggerScriptElem.setAttribute("id","epigraphLoggerScript"),document.head.appendChild(this._epigraphLoggerScriptElem),this._epigraphLoggerScriptElem.addEventListener("load",(function(){}))}function ci(){this._epigraphAnalyticsScriptElem=document.createElement("script"),this._epigraphAnalyticsScriptElem.setAttribute("type","module"),this._epigraphAnalyticsScriptElem.setAttribute("src","https://cdn.jsdelivr.net/npm/@epigraph/web-components@1.x.x/dist/epigraph-analytics.js"),this._epigraphAnalyticsScriptElem.setAttribute("id","epigraphAnalyticsScript"),document.head.appendChild(this._epigraphAnalyticsScriptElem)}function fi(){this.hasAttribute("id")||this.setAttribute("id","epigraphConfiguratorWc"),m(this,$o)[$o]=this.getAttribute("id"),this.hasAttribute("ga-code")&&(this.gaCode=this.getAttribute("ga-code")),this.clientAccessKey=this.getAttribute("client-access-key"),this.initialConfigId=this.getAttribute("initial-config-id"),this.initialConfigId||(this.initialConfigId="default")}window.customElements.define("epigraph-configurator",oi)}()}();
|
|
3
|
+
//# sourceMappingURL=main.178e4472.js.map
|