UNPKG

@cocalc/static

Version:

CoCalc's static frontend Webpack-based build system and framework

2 lines 234 kB
/*! For license information please see bc5a976d71912b11d8d6.js.LICENSE.txt */ (self.webpackChunk_cocalc_static=self.webpackChunk_cocalc_static||[]).push([[1297],{13307:(t,e,i)=>{"use strict";var n;function r(t){return"function"==typeof t.iter?t.iter():new p(t)}function o(t,e){for(var i,n=0,o=r(t);void 0!==(i=o.next());)if(!1===e(i,n++))return}function s(t,e){for(var i,n=0,o=r(t);void 0!==(i=o.next());)if(!e(i,n++))return!1;return!0}function a(t,e){for(var i,n=0,o=r(t);void 0!==(i=o.next());)if(e(i,n++))return!0;return!1}function d(t){for(var e,i=0,n=[],o=r(t);void 0!==(e=o.next());)n[i++]=e;return n}i.d(e,{Fp:()=>x,G:()=>a,IH:()=>A,RO:()=>n,S6:()=>o,UI:()=>M,cS:()=>v,gj:()=>m,hX:()=>y,he:()=>r,kf:()=>L,kh:()=>O,qo:()=>d,sE:()=>w,tS:()=>f,u4:()=>I,yW:()=>s}),function(t){var e=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=-1);var r,o=t.length;if(0===o)return-1;i=i<0?Math.max(0,i+o):Math.min(i,o-1),r=(n=n<0?Math.max(0,n+o):Math.min(n,o-1))<i?n+1+(o-i):n-i+1;for(var s=0;s<r;++s){var a=(i+s)%o;if(t[a]===e)return a}return-1},i=function(t,e,i,n){void 0===i&&(i=-1),void 0===n&&(n=0);var r,o=t.length;if(0===o)return-1;r=(i=i<0?Math.max(0,i+o):Math.min(i,o-1))<(n=n<0?Math.max(0,n+o):Math.min(n,o-1))?i+1+(o-n):i-n+1;for(var s=0;s<r;++s){var a=(i-s+o)%o;if(t[a]===e)return a}return-1},n=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=-1);var r,o=t.length;if(0===o)return-1;i=i<0?Math.max(0,i+o):Math.min(i,o-1),r=(n=n<0?Math.max(0,n+o):Math.min(n,o-1))<i?n+1+(o-i):n-i+1;for(var s=0;s<r;++s){var a=(i+s)%o;if(e(t[a],a))return a}return-1},r=function(t,e,i,n){void 0===i&&(i=-1),void 0===n&&(n=0);var r,o=t.length;if(0===o)return-1;r=(i=i<0?Math.max(0,i+o):Math.min(i,o-1))<(n=n<0?Math.max(0,n+o):Math.min(n,o-1))?i+1+(o-n):i-n+1;for(var s=0;s<r;++s){var a=(i-s+o)%o;if(e(t[a],a))return a}return-1},o=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=-1);var n=t.length;if(!(n<=1))for(e=e<0?Math.max(0,e+n):Math.min(e,n-1),i=i<0?Math.max(0,i+n):Math.min(i,n-1);e<i;){var r=t[e],o=t[i];t[e++]=o,t[i--]=r}},s=function(t,e){var i=t.length;if(e<0&&(e+=i),!(e<0||e>=i)){for(var n=t[e],r=e+1;r<i;++r)t[r-1]=t[r];return t.length=i-1,n}};t.firstIndexOf=e,t.lastIndexOf=i,t.findFirstIndex=n,t.findLastIndex=r,t.findFirstValue=function(t,e,i,r){void 0===i&&(i=0),void 0===r&&(r=-1);var o=n(t,e,i,r);return-1!==o?t[o]:void 0},t.findLastValue=function(t,e,i,n){void 0===i&&(i=-1),void 0===n&&(n=0);var o=r(t,e,i,n);return-1!==o?t[o]:void 0},t.lowerBound=function(t,e,i,n,r){void 0===n&&(n=0),void 0===r&&(r=-1);var o=t.length;if(0===o)return 0;for(var s=n=n<0?Math.max(0,n+o):Math.min(n,o-1),a=(r=r<0?Math.max(0,r+o):Math.min(r,o-1))-n+1;a>0;){var d=a>>1,c=s+d;i(t[c],e)<0?(s=c+1,a-=d+1):a=d}return s},t.upperBound=function(t,e,i,n,r){void 0===n&&(n=0),void 0===r&&(r=-1);var o=t.length;if(0===o)return 0;for(var s=n=n<0?Math.max(0,n+o):Math.min(n,o-1),a=(r=r<0?Math.max(0,r+o):Math.min(r,o-1))-n+1;a>0;){var d=a>>1,c=s+d;i(t[c],e)>0?a=d:(s=c+1,a-=d+1)}return s},t.shallowEqual=function(t,e,i){if(t===e)return!0;if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;++n)if(i?!i(t[n],e[n]):t[n]!==e[n])return!1;return!0},t.slice=function(t,e){void 0===e&&(e={});var i=e.start,n=e.stop,r=e.step;if(void 0===r&&(r=1),0===r)throw new Error("Slice `step` cannot be zero.");var o,s=t.length;void 0===i?i=r<0?s-1:0:i<0?i=Math.max(i+s,r<0?-1:0):i>=s&&(i=r<0?s-1:s),void 0===n?n=r<0?-1:s:n<0?n=Math.max(n+s,r<0?-1:0):n>=s&&(n=r<0?s-1:s),o=r<0&&n>=i||r>0&&i>=n?0:r<0?Math.floor((n-i+1)/r+1):Math.floor((n-i-1)/r+1);for(var a=[],d=0;d<o;++d)a[d]=t[i+d*r];return a},t.move=function(t,e,i){var n=t.length;if(!(n<=1)&&(e=e<0?Math.max(0,e+n):Math.min(e,n-1))!==(i=i<0?Math.max(0,i+n):Math.min(i,n-1))){for(var r=t[e],o=e<i?1:-1,s=e;s!==i;s+=o)t[s]=t[s+o];t[i]=r}},t.reverse=o,t.rotate=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=-1);var r=t.length;if(!(r<=1||(i=i<0?Math.max(0,i+r):Math.min(i,r-1))>=(n=n<0?Math.max(0,n+r):Math.min(n,r-1)))){var s=n-i+1;if(e>0?e%=s:e<0&&(e=(e%s+s)%s),0!==e){var a=i+e;o(t,i,a-1),o(t,a,n),o(t,i,n)}}},t.fill=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=-1);var r=t.length;if(0!==r){var o;i=i<0?Math.max(0,i+r):Math.min(i,r-1),o=(n=n<0?Math.max(0,n+r):Math.min(n,r-1))<i?n+1+(r-i):n-i+1;for(var s=0;s<o;++s)t[(i+s)%r]=e}},t.insert=function(t,e,i){var n=t.length;e=e<0?Math.max(0,e+n):Math.min(e,n);for(var r=n;r>e;--r)t[r]=t[r-1];t[e]=i},t.removeAt=s,t.removeFirstOf=function(t,i,n,r){void 0===n&&(n=0),void 0===r&&(r=-1);var o=e(t,i,n,r);return-1!==o&&s(t,o),o},t.removeLastOf=function(t,e,n,r){void 0===n&&(n=-1),void 0===r&&(r=0);var o=i(t,e,n,r);return-1!==o&&s(t,o),o},t.removeAllOf=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=-1);var r=t.length;if(0===r)return 0;i=i<0?Math.max(0,i+r):Math.min(i,r-1),n=n<0?Math.max(0,n+r):Math.min(n,r-1);for(var o=0,s=0;s<r;++s)i<=n&&s>=i&&s<=n&&t[s]===e||n<i&&(s<=n||s>=i)&&t[s]===e?o++:o>0&&(t[s-o]=t[s]);return o>0&&(t.length=r-o),o},t.removeFirstWhere=function(t,e,i,r){var o;void 0===i&&(i=0),void 0===r&&(r=-1);var a=n(t,e,i,r);return-1!==a&&(o=s(t,a)),{index:a,value:o}},t.removeLastWhere=function(t,e,i,n){var o;void 0===i&&(i=-1),void 0===n&&(n=0);var a=r(t,e,i,n);return-1!==a&&(o=s(t,a)),{index:a,value:o}},t.removeAllWhere=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=-1);var r=t.length;if(0===r)return 0;i=i<0?Math.max(0,i+r):Math.min(i,r-1),n=n<0?Math.max(0,n+r):Math.min(n,r-1);for(var o=0,s=0;s<r;++s)i<=n&&s>=i&&s<=n&&e(t[s],s)||n<i&&(s<=n||s>=i)&&e(t[s],s)?o++:o>0&&(t[s-o]=t[s]);return o>0&&(t.length=r-o),o}}(n||(n={}));var c,h,u,l,p=function(){var t=function(t){this._index=0,this._source=t};return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._source.length))return this._source[this._index++]},t}();function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new m(r(t.map(r)))}(l=function(t,e){void 0===e&&(e=Object.keys(t)),this._index=0,this._source=t,this._keys=e}).prototype.iter=function(){return this},l.prototype.clone=function(){var t=new l(this._source,this._keys);return t._index=this._index,t},l.prototype.next=function(){if(!(this._index>=this._keys.length)){var t=this._keys[this._index++];return t in this._source?t:this.next()}},(u=function(t,e){void 0===e&&(e=Object.keys(t)),this._index=0,this._source=t,this._keys=e}).prototype.iter=function(){return this},u.prototype.clone=function(){var t=new u(this._source,this._keys);return t._index=this._index,t},u.prototype.next=function(){if(!(this._index>=this._keys.length)){var t=this._keys[this._index++];return t in this._source?this._source[t]:this.next()}},(h=function(t,e){void 0===e&&(e=Object.keys(t)),this._index=0,this._source=t,this._keys=e}).prototype.iter=function(){return this},h.prototype.clone=function(){var t=new h(this._source,this._keys);return t._index=this._index,t},h.prototype.next=function(){if(!(this._index>=this._keys.length)){var t=this._keys[this._index++];return t in this._source?[t,this._source[t]]:this.next()}},(c=function(t){this._fn=t}).prototype.iter=function(){return this},c.prototype.clone=function(){throw new Error("An `FnIterator` cannot be cloned.")},c.prototype.next=function(){return this._fn.call(void 0)};var m=function(){var t=function(t){this._cloned=!1,this._source=t,this._active=void 0};return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source.clone());return e._active=this._active&&this._active.clone(),e._cloned=!0,this._cloned=!0,e},t.prototype.next=function(){if(void 0===this._active){var t=this._source.next();if(void 0===t)return;this._active=this._cloned?t.clone():t}var e=this._active.next();return void 0!==e?e:(this._active=void 0,this.next())},t}();function v(){return new _}var g,_=function(){var t=function(){};return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t},t.prototype.next=function(){},t}();function y(t,e){return new b(r(t),e)}(g=function(t,e){this._source=t,this._index=e}).prototype.iter=function(){return this},g.prototype.clone=function(){return new g(this._source.clone(),this._index)},g.prototype.next=function(){var t=this._source.next();if(void 0!==t)return[this._index++,t]};var b=function(){var t=function(t,e){this._index=0,this._source=t,this._fn=e};return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source.clone(),this._fn);return e._index=this._index,e},t.prototype.next=function(){for(var t,e=this._fn,i=this._source;void 0!==(t=i.next());)if(e(t,this._index++))return t},t}();function w(t,e){for(var i,n=0,o=r(t);void 0!==(i=o.next());)if(e(i,n++))return i}function x(t,e){var i=r(t),n=i.next();if(void 0!==n){for(var o=n;void 0!==(n=i.next());)e(n,o)>0&&(o=n);return o}}function M(t,e){return new E(r(t),e)}var C,S,E=function(){var t=function(t,e){this._index=0,this._source=t,this._fn=e};return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source.clone(),this._fn);return e._index=this._index,e},t.prototype.next=function(){var t=this._source.next();if(void 0!==t)return this._fn.call(void 0,t,this._index++)},t}();function I(t,e,i){var n=0,o=r(t),s=o.next();if(void 0===s&&void 0===i)throw new TypeError("Reduce of empty iterable with no initial value.");if(void 0===s)return i;var a,d,c=o.next();if(void 0===c&&void 0===i)return s;if(void 0===c)return e(i,s,n++);for(a=e(void 0===i?s:e(i,s,n++),c,n++);void 0!==(d=o.next());)a=e(a,d,n++);return a}function A(t){return new z(t,1)}(S=function(t,e,i){this._index=0,this._start=t,this._stop=e,this._step=i,this._length=C.rangeLength(t,e,i)}).prototype.iter=function(){return this},S.prototype.clone=function(){var t=new S(this._start,this._stop,this._step);return t._index=this._index,t},S.prototype.next=function(){if(!(this._index>=this._length))return this._start+this._step*this._index++},function(t){t.rangeLength=function(t,e,i){return 0===i?1/0:t>e&&i>0||t<e&&i<0?0:Math.ceil((e-t)/i)}}(C||(C={}));var z=function(){var t=function(t,e){this._value=t,this._count=e};return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._value,this._count)},t.prototype.next=function(){if(!(this._count<=0))return this._count--,this._value},t}();function O(t){return"function"==typeof t.retro?t.retro():new k(t)}var L,B,T,P,k=function(){var t=function(t){this._source=t,this._index=t.length-1};return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index<0||this._index>=this._source.length))return this._source[this._index--]},t}();(B=function(t,e){this._source=t,this._step=e}).prototype.iter=function(){return this},B.prototype.clone=function(){return new B(this._source.clone(),this._step)},B.prototype.next=function(){for(var t=this._source.next(),e=this._step-1;e>0;--e)this._source.next();return t},function(t){var e=function(t,e,i){void 0===i&&(i=0);for(var n=new Array(e.length),r=0,o=i,s=e.length;r<s;++r,++o){if(-1===(o=t.indexOf(e[r],o)))return null;n[r]=o}return n};t.findIndices=e,t.matchSumOfSquares=function(t,i,n){void 0===n&&(n=0);var r=e(t,i,n);if(!r)return null;for(var o=0,s=0,a=r.length;s<a;++s){var d=r[s]-n;o+=d*d}return{score:o,indices:r}},t.matchSumOfDeltas=function(t,i,n){void 0===n&&(n=0);var r=e(t,i,n);if(!r)return null;for(var o=0,s=n-1,a=0,d=r.length;a<d;++a){var c=r[a];o+=c-s-1,s=c}return{score:o,indices:r}},t.highlight=function(t,e,i){for(var n=[],r=0,o=0,s=e.length;r<s;){for(var a=e[r],d=e[r];++r<s&&e[r]===d+1;)d++;o<a&&n.push(t.slice(o,a)),a<d+1&&n.push(i(t.slice(a,d+1))),o=d+1}return o<t.length&&n.push(t.slice(o)),n},t.cmp=function(t,e){return t<e?-1:t>e?1:0}}(L||(L={})),(T=function(t,e){this._source=t,this._count=e}).prototype.iter=function(){return this},T.prototype.clone=function(){return new T(this._source.clone(),this._count)},T.prototype.next=function(){if(!(this._count<=0)){var t=this._source.next();if(void 0!==t)return this._count--,t}},(P=function(t){this._source=t}).prototype.iter=function(){return this},P.prototype.clone=function(){return new P(this._source.map((function(t){return t.clone()})))},P.prototype.next=function(){for(var t=new Array(this._source.length),e=0,i=this._source.length;e<i;++e){var n=this._source[e].next();if(void 0===n)return;t[e]=n}return t}},99040:function(t,e){!function(t){"use strict";var e,i,n,r,o,s,a,d,c,h;t.JSONExt=void 0,e=t.JSONExt||(t.JSONExt={}),i=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t},n=function(t){return Array.isArray(t)},r=function(t){return!i(t)&&!n(t)},o=function(t,e){if(t===e)return!0;if(i(t)||i(e))return!1;var r=n(t),o=n(e);return r===o&&(r&&o?a(t,e):d(t,e))},s=function(t){return i(t)?t:n(t)?c(t):h(t)},a=function(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;++i)if(!o(t[i],e[i]))return!1;return!0},d=function(t,e){if(t===e)return!0;for(var i in t)if(void 0!==t[i]&&!(i in e))return!1;for(var i in e)if(void 0!==e[i]&&!(i in t))return!1;for(var i in t){var n=t[i],r=e[i];if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)return!1;if(!o(n,r))return!1}}return!0},c=function(t){for(var e=new Array(t.length),i=0,n=t.length;i<n;++i)e[i]=s(t[i]);return e},h=function(t){var e={};for(var i in t){var n=t[i];void 0!==n&&(e[i]=s(n))}return e},e.emptyObject=Object.freeze({}),e.emptyArray=Object.freeze([]),e.isPrimitive=i,e.isArray=n,e.isObject=r,e.deepEqual=o,e.deepCopy=s;var u,l=function(){var t=function(){this._types=[],this._values=[]};return t.prototype.types=function(){return this._types.slice()},t.prototype.hasData=function(t){return-1!==this._types.indexOf(t)},t.prototype.getData=function(t){var e=this._types.indexOf(t);return-1!==e?this._values[e]:void 0},t.prototype.setData=function(t,e){this.clearData(t),this._types.push(t),this._values.push(e)},t.prototype.clearData=function(t){var e=this._types.indexOf(t);-1!==e&&(this._types.splice(e,1),this._values.splice(e,1))},t.prototype.clear=function(){this._types.length=0,this._values.length=0},t}(),p=function(){var t=function(){var t=this;this.promise=new Promise((function(e,i){t._resolve=e,t._reject=i}))};return t.prototype.resolve=function(t){(0,this._resolve)(t)},t.prototype.reject=function(t){(0,this._reject)(t)},t}();t.Random=void 0,(t.Random||(t.Random={})).getRandomValues=(u="undefined"!=typeof window&&(window.crypto||window.msCrypto)||null)&&"function"==typeof u.getRandomValues?function(t){return u.getRandomValues(t)}:function(t){for(var e=0,i=0,n=t.length;i<n;++i)i%4==0&&(e=4294967295*Math.random()>>>0),t[i]=255&e,e>>>=8},t.UUID=void 0,(t.UUID||(t.UUID={})).uuid4=function(t){for(var e=new Uint8Array(16),i=new Array(256),n=0;n<16;++n)i[n]="0"+n.toString(16);for(n=16;n<256;++n)i[n]=n.toString(16);return function(){return t(e),e[6]=64|15&e[6],e[8]=128|63&e[8],i[e[0]]+i[e[1]]+i[e[2]]+i[e[3]]+"-"+i[e[4]]+i[e[5]]+"-"+i[e[6]]+i[e[7]]+"-"+i[e[8]]+i[e[9]]+"-"+i[e[10]]+i[e[11]]+i[e[12]]+i[e[13]]+i[e[14]]+i[e[15]]}}(t.Random.getRandomValues),t.MimeData=l,t.PromiseDelegate=p,t.Token=function(t){this.name=t,this._tokenStructuralPropertyT=null},Object.defineProperty(t,"__esModule",{value:!0})}(e)},80779:(t,e,i)=>{"use strict";var n,r,o,s,a;i.d(e,{Qf:()=>s,TE:()=>r,t4:()=>o}),function(t){t.copyText=function(t){var e=document.body,i=function(n){n.preventDefault(),n.stopPropagation(),n.clipboardData.setData("text",t),e.removeEventListener("copy",i,!0)};e.addEventListener("copy",i,!0),document.execCommand("copy")}}(n||(n={})),function(t){t.boxSizing=function(t){var e=window.getComputedStyle(t),i=parseFloat(e.borderTopWidth)||0,n=parseFloat(e.borderLeftWidth)||0,r=parseFloat(e.borderRightWidth)||0,o=parseFloat(e.borderBottomWidth)||0,s=parseFloat(e.paddingTop)||0,a=parseFloat(e.paddingLeft)||0,d=parseFloat(e.paddingRight)||0,c=parseFloat(e.paddingBottom)||0;return{borderTop:i,borderLeft:n,borderRight:r,borderBottom:o,paddingTop:s,paddingLeft:a,paddingRight:d,paddingBottom:c,horizontalSum:n+a+d+r,verticalSum:i+s+c+o}},t.sizeLimits=function(t){var e=window.getComputedStyle(t),i=parseFloat(e.minWidth)||0,n=parseFloat(e.minHeight)||0,r=parseFloat(e.maxWidth)||1/0,o=parseFloat(e.maxHeight)||1/0;return{minWidth:i,minHeight:n,maxWidth:r=Math.max(i,r),maxHeight:o=Math.max(n,o)}},t.hitTest=function(t,e,i){var n=t.getBoundingClientRect();return e>=n.left&&e<n.right&&i>=n.top&&i<n.bottom},t.scrollIntoViewIfNeeded=function(t,e){var i=t.getBoundingClientRect(),n=e.getBoundingClientRect();n.top<=i.top&&n.bottom>=i.bottom||(n.top<i.top&&n.height<=i.height||n.bottom>i.bottom&&n.height>=i.height?t.scrollTop-=i.top-n.top:(n.top<i.top&&n.height>i.height||n.bottom>i.bottom&&n.height<i.height)&&(t.scrollTop-=i.bottom-n.bottom))}}(r||(r={})),function(t){t.IS_MAC=!!navigator.platform.match(/Mac/i),t.IS_WIN=!!navigator.platform.match(/Win/i),t.IS_IE=/Trident/.test(navigator.userAgent),t.IS_EDGE=/Edge/.test(navigator.userAgent),t.accelKey=function(e){return t.IS_MAC?e.metaKey:e.ctrlKey}}(o||(o={})),function(t){t.calculateSpecificity=function(t){if(t in a.specificityCache)return a.specificityCache[t];var e=a.calculateSingle(t);return a.specificityCache[t]=e},t.isValid=function(t){if(t in a.validityCache)return a.validityCache[t];var e=!0;try{a.testElem.querySelector(t)}catch(t){e=!1}return a.validityCache[t]=e},t.matches=function(t,e){return a.protoMatchFunc.call(t,e)}}(s||(s={})),function(t){var e;t.specificityCache=Object.create(null),t.validityCache=Object.create(null),t.testElem=document.createElement("div"),t.protoMatchFunc=(e=Element.prototype).matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var e=this,i=e.ownerDocument?e.ownerDocument.querySelectorAll(t):[];return-1!==Array.prototype.indexOf.call(i,e)},t.calculateSingle=function(t){var e=0,h=0,u=0;function l(e){var i=t.match(e);return null!==i&&(t=t.slice(i[0].length),!0)}for(t=(t=t.split(",",1)[0]).replace(c," $1 ");t.length>0;)if(l(i))e++;else if(l(n))h++;else if(l(r))h++;else if(l(s))u++;else if(l(a))h++;else if(l(o))u++;else if(!l(d))return 0;return(e=Math.min(e,255))<<16|(h=Math.min(h,255))<<8|Math.min(u,255)};var i=/^#[^\s\+>~#\.\[:]+/,n=/^\.[^\s\+>~#\.\[:]+/,r=/^\[[^\]]+\]/,o=/^[^\s\+>~#\.\[:]+/,s=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/,a=/^:[^\s\+>~#\.\[:]+/,d=/^[\s\+>~\*]+/,c=/:not\(([^\)]+)\)/g}(a||(a={}))},61198:(t,e,i)=>{"use strict";i.d(e,{Af:()=>l,v0:()=>u,pB:()=>c});var n=i(13307);function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var o,s=function(){var t=function(t){this._root=new o.LeafNode,this.cmp=t};return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this._root.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._root.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){var t=o.firstLeaf(this._root);return t.size>0?t.items[0]:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){var t=o.lastLeaf(this._root);return t.size>0?t.items[t.size-1]:void 0},enumerable:!0,configurable:!0}),t.prototype.iter=function(){return o.iterItems(this._root)},t.prototype.retro=function(){return o.retroItems(this._root)},t.prototype.slice=function(t,e){return o.sliceItems(this._root,t,e)},t.prototype.retroSlice=function(t,e){return o.retroSliceItems(this._root,t,e)},t.prototype.at=function(t){return o.itemAt(this._root,t)},t.prototype.has=function(t,e){return o.hasItem(this._root,t,e)},t.prototype.indexOf=function(t,e){return o.indexOf(this._root,t,e)},t.prototype.get=function(t,e){return o.getItem(this._root,t,e)},t.prototype.assign=function(t){this.clear(),this.update(t)},t.prototype.insert=function(t){var e=o.insertItem(this._root,t,this.cmp);return this._root=o.maybeSplitRoot(this._root),e},t.prototype.update=function(t){var e=this;(0,n.S6)(t,(function(t){e.insert(t)}))},t.prototype.delete=function(t,e){var i=o.deleteItem(this._root,t,e);return this._root=o.maybeExtractRoot(this._root),i},t.prototype.remove=function(t){var e=o.removeItem(this._root,t);return this._root=o.maybeExtractRoot(this._root),e},t.prototype.clear=function(){o.clear(this._root),this._root=new o.LeafNode},t}();!function(t){t.from=function(e,i){var n=new t(i);return n.assign(e),n}}(s||(s={})),function(t){var e=function(t){for(;0===t.type;)t=t.children[0];return t},i=function(t){for(;0===t.type;)t=t.children[t.children.length-1];return t},r=function(t,e){for(var i=t.length,n=0;n<i;++n)if(t[n]>e)return n;return i-1},o=function(t,e,i){for(var n=t.length,r=1;r<n;++r)if(i(t[r],e)>0)return r-1;return n-1},s=function(t,e,i){for(var n=t.length,r=0;r<n;++r){var o=i(t[r],e);if(0===o)return r;if(o>0)return-r-1}return-n-1},a=function(t,e){for(var i=t.sizes,n=t.children,r=e>0?i[e-1]:0,o=n.length;e<o;++e)r=i[e]=r+n[e].size;i.length=n.length},d=function(t){if(1===t.type){for(var e=new u,i=t.items,n=e.items,r=f,o=i.length;r<o;++r)n.push(i[r]);return i.length=f,t.next&&(t.next.prev=e),e.next=t.next,e.prev=t,t.next=e,e}var s=new h,d=t.children,c=s.children;for(r=f,o=d.length;r<o;++r)c.push(d[r]);d.length=f;var l=t.items,p=s.items;for(r=f,o=l.length;r<o;++r)p.push(l[r]);return l.length=f,a(t,f),a(s,0),s},c=function(t,e){var i,r,o,s,d,c,h=t.children[e],u=0===e?t.children[e+1]:t.children[e-1],p=0===e,m=1===h.type,v=u.width>f;if(m&&v&&p){var g=u;return(_=h).items.push(g.items.shift()),t.items[e+1]=g.items[0],e}if(m&&v&&!p)return g=u,(_=h).items.unshift(g.items.pop()),t.items[e]=_.items[0],e-1;if(m&&!v&&p){var _=h;return(i=(g=u).items).unshift.apply(i,_.items),n.RO.removeAt(t.children,e),n.RO.removeAt(t.items,e+1),_.prev&&(_.prev.next=g),g.prev=_.prev,l(_),e}if(m&&!v&&!p)return _=h,(r=(g=u).items).push.apply(r,_.items),n.RO.removeAt(t.children,e),n.RO.removeAt(t.items,e),_.next&&(_.next.prev=g),g.next=_.next,l(_),e-1;if(!m&&v&&p)return g=u,(_=h).children.push(g.children.shift()),_.items.push(g.items.shift()),t.items[e+1]=g.items[0],a(_,_.width-1),a(g,0),e;if(!m&&v&&!p)return g=u,(_=h).children.unshift(g.children.pop()),_.items.unshift(g.items.pop()),t.items[e]=_.items[0],a(_,0),a(g,g.width-1),e-1;if(!m&&!v&&p)return _=h,(o=(g=u).children).unshift.apply(o,_.children),(s=g.items).unshift.apply(s,_.items),n.RO.removeAt(t.children,e),n.RO.removeAt(t.items,e+1),a(g,0),_.children.length=0,l(_),e;if(!m&&!v&&!p)return _=h,(d=(g=u).children).push.apply(d,_.children),(c=g.items).push.apply(c,_.items),n.RO.removeAt(t.children,e),n.RO.removeAt(t.items,e),a(g,0),_.children.length=0,l(_),e-1;throw"unreachable"},h=function(){var t=function(){this.items=[],this.sizes=[],this.children=[]};return Object.defineProperty(t.prototype,"type",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.sizes[this.sizes.length-1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.children.length},enumerable:!0,configurable:!0}),t}();t.BranchNode=h;var u=function(){var t=function(){this.next=null,this.prev=null,this.items=[]};return Object.defineProperty(t.prototype,"type",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),t}();function l(t){0===t.type?((0,n.S6)(t.children,l),t.children.length=0,t.sizes.length=0,t.items.length=0):(t.items.length=0,t.next=null,t.prev=null)}t.LeafNode=u,t.firstLeaf=e,t.lastLeaf=i,t.iterItems=function(t){var i=e(t);return new m(i,0,-1)},t.retroItems=function(t){var e=i(t);return new v(e,e.size-1,-1)},t.sliceItems=function(t,e,i){e=void 0===e?0:e<0?Math.max(0,e+t.size):Math.min(e,t.size),i=void 0===i?t.size:i<0?Math.max(0,i+t.size):Math.min(i,t.size);var o=Math.max(0,i-e);if(0===o)return(0,n.cS)();for(;0===t.type;){var s=r(t.sizes,e);s>0&&(e-=t.sizes[s-1]),t=t.children[s]}return new m(t,e,o)},t.retroSliceItems=function(t,e,i){e=void 0===e?t.size-1:e<0?Math.max(-1,e+t.size):Math.min(e,t.size-1),i=void 0===i?-1:i<0?Math.max(-1,i+t.size):Math.min(i,t.size-1);var o=Math.max(0,e-i);if(0===o)return(0,n.cS)();for(;0===t.type;){var s=r(t.sizes,e);s>0&&(e-=t.sizes[s-1]),t=t.children[s]}return new v(t,e,o)},t.itemAt=function(t,e){if(e<0&&(e+=t.size),!(e<0||e>=t.size)){for(;0===t.type;){var i=r(t.sizes,e);i>0&&(e-=t.sizes[i-1]),t=t.children[i]}return t.items[e]}},t.hasItem=function(t,e,i){for(;0===t.type;){var n=o(t.items,e,i);t=t.children[n]}return s(t.items,e,i)>=0},t.indexOf=function(t,e,i){for(var n=0;0===t.type;){var r=o(t.items,e,i);r>0&&(n+=t.sizes[r-1]),t=t.children[r]}var a=s(t.items,e,i);return a>=0?n+a:-n+a},t.getItem=function(t,e,i){for(;0===t.type;){var n=o(t.items,e,i);t=t.children[n]}var r=s(t.items,e,i);return r>=0?t.items[r]:void 0},t.insertItem=function t(e,i,r){if(1===e.type){var c,h=s(e.items,i,r);return h>=0?(c=e.items[h],e.items[h]=i):(c=void 0,n.RO.insert(e.items,-h-1,i)),c}var u=o(e.items,i,r),l=e.children[u],f=l.size,m=t(l,i,r),v=l.size;if(e.items[u]=l.items[0],f===v)return m;if(l.width>p){var g=d(l);n.RO.insert(e.children,u+1,g),n.RO.insert(e.items,u+1,g.items[0])}return a(e,u),m},t.deleteItem=function t(e,i,r){if(1===e.type){var d=s(e.items,i,r);if(d<0)return;return n.RO.removeAt(e.items,d)}var h=o(e.items,i,r),u=e.children[h],l=u.size,p=t(u,i,r);return l===u.size||(e.items[h]=u.items[0],u.width<f&&(h=c(e,h)),a(e,h)),p},t.removeItem=function t(e,i){if(i<0&&(i+=e.size),!(i<0||i>=e.size)){if(1===e.type)return n.RO.removeAt(e.items,i);var o=r(e.sizes,i);o>0&&(i-=e.sizes[o]);var s=e.children[o],d=t(s,i);return e.items[o]=s.items[0],s.width<f&&(o=c(e,o)),a(e,o),d}},t.clear=l,t.maybeSplitRoot=function(t){if(t.width<=p)return t;var e=new h,i=d(t);return e.sizes[0]=t.size,e.sizes[1]=t.size+i.size,e.children[0]=t,e.children[1]=i,e.items[0]=t.items[0],e.items[1]=i.items[0],e},t.maybeExtractRoot=function(t){if(1===t.type)return t;if(t.children.length>1)return t;var e=t.children.pop();return l(t),e};var p=32,f=p>>1,m=function(){var t=function(t,e,i){this._node=t,this._index=e,this._count=i};return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node,this._index,this._count)},t.prototype.next=function(){if(null!==this._node&&0!==this._count)return this._index>=this._node.size?(this._node=this._node.next,this._index=0,this.next()):(this._count>0&&this._count--,this._node.items[this._index++])},t}(),v=function(){var t=function(t,e,i){this._node=t,this._index=e,this._count=i};return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node,this._index,this._count)},t.prototype.next=function(){if(null!==this._node&&0!==this._count)return this._index>=this._node.size&&(this._index=this._node.size-1),this._index<0?(this._node=this._node.prev,this._index=this._node?this._node.size-1:-1,this.next()):(this._count>0&&this._count--,this._node.items[this._index--])},t}()}(o||(o={}));var a,d=function(){var t=function(){this._first=null,this._last=null,this._size=0};return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._first?this._first.value:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._last?this._last.value:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstNode",{get:function(){return this._first},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastNode",{get:function(){return this._last},enumerable:!0,configurable:!0}),t.prototype.iter=function(){return new t.ForwardValueIterator(this._first)},t.prototype.retro=function(){return new t.RetroValueIterator(this._last)},t.prototype.nodes=function(){return new t.ForwardNodeIterator(this._first)},t.prototype.retroNodes=function(){return new t.RetroNodeIterator(this._last)},t.prototype.assign=function(t){var e=this;this.clear(),(0,n.S6)(t,(function(t){e.addLast(t)}))},t.prototype.push=function(t){this.addLast(t)},t.prototype.pop=function(){return this.removeLast()},t.prototype.shift=function(t){this.addFirst(t)},t.prototype.unshift=function(){return this.removeFirst()},t.prototype.addFirst=function(t){var e=new a.LinkedListNode(this,t);return this._first?(e.next=this._first,this._first.prev=e,this._first=e):(this._first=e,this._last=e),this._size++,e},t.prototype.addLast=function(t){var e=new a.LinkedListNode(this,t);return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._first=e,this._last=e),this._size++,e},t.prototype.insertBefore=function(t,e){if(!e||e===this._first)return this.addFirst(t);if(!r(e,a.LinkedListNode)||e.list!==this)throw new Error("Reference node is not owned by the list.");var i=new a.LinkedListNode(this,t),n=e,o=n.prev;return i.next=n,i.prev=o,n.prev=i,o.next=i,this._size++,i},t.prototype.insertAfter=function(t,e){if(!e||e===this._last)return this.addLast(t);if(!r(e,a.LinkedListNode)||e.list!==this)throw new Error("Reference node is not owned by the list.");var i=new a.LinkedListNode(this,t),n=e,o=n.next;return i.next=o,i.prev=n,n.next=i,o.prev=i,this._size++,i},t.prototype.removeFirst=function(){var t=this._first;if(t)return t===this._last?(this._first=null,this._last=null):(this._first=t.next,this._first.prev=null),t.list=null,t.next=null,t.prev=null,this._size--,t.value},t.prototype.removeLast=function(){var t=this._last;if(t)return t===this._first?(this._first=null,this._last=null):(this._last=t.prev,this._last.next=null),t.list=null,t.next=null,t.prev=null,this._size--,t.value},t.prototype.removeNode=function(t){if(!r(t,a.LinkedListNode)||t.list!==this)throw new Error("Node is not owned by the list.");var e=t;e===this._first&&e===this._last?(this._first=null,this._last=null):e===this._first?(this._first=e.next,this._first.prev=null):e===this._last?(this._last=e.prev,this._last.next=null):(e.next.prev=e.prev,e.prev.next=e.next),e.list=null,e.next=null,e.prev=null,this._size--},t.prototype.clear=function(){for(var t=this._first;t;){var e=t.next;t.list=null,t.prev=null,t.next=null,t=e}this._first=null,this._last=null,this._size=0},t}();!function(t){t.from=function(e){var i=new t;return i.assign(e),i};var e=function(){var t=function(t){this._node=t};return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(this._node){var t=this._node;return this._node=t.next,t.value}},t}();t.ForwardValueIterator=e;var i=function(){var t=function(t){this._node=t};return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(this._node){var t=this._node;return this._node=t.prev,t.value}},t}();t.RetroValueIterator=i;var n=function(){var t=function(t){this._node=t};return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(this._node){var t=this._node;return this._node=t.next,t}},t}();t.ForwardNodeIterator=n;var r=function(){var t=function(t){this._node=t};return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(this._node){var t=this._node;return this._node=t.prev,t}},t}();t.RetroNodeIterator=r}(d||(d={})),function(t){t.LinkedListNode=function(t,e){this.list=null,this.next=null,this.prev=null,this.list=t,this.value=e}}(a||(a={}));var c,h=function(t,e){var i,n;return h=Object.setPrototypeOf||(i={__proto__:[]},(null!=(n=Array)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](i):i instanceof n)&&function(t,e){t.__proto__=e})||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},h(t,e)},u=function(){var t=function(t){this.type=t};return Object.defineProperty(t.prototype,"isConflatable",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.conflate=function(t){return!1},t}(),l=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return function(t,e){var i=function(){this.constructor=t};if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e.prototype,"isConflatable",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.conflate=function(t){return!0},e}(u);!function(t){var e=function(t,e){var o=p.get(t);o&&0!==o.length?(0,n.yW)((0,n.kh)(o),(function(n){return!n||i(n,t,e)}))&&r(t,e):r(t,e)},i=function(t,e,i){var n=!0;try{n="function"==typeof t?t(e,i):t.messageHook(e,i)}catch(t){m(t)}return n},r=function(t,e){try{t.processMessage(e)}catch(t){m(t)}},o=function(t,e){l.addLast({handler:t,msg:e}),0===v&&(v=_(s))},s=function(){if(v=0,!l.isEmpty){var t={handler:null,msg:null};for(l.addLast(t);;){var i=l.removeFirst();if(i===t)return;i.handler&&i.msg&&e(i.handler,i.msg)}}},a=function(t){0===f.size&&_(c),f.add(t)},c=function(){f.forEach(h),f.clear()},h=function(t){n.RO.removeAllWhere(t,u)},u=function(t){return null===t};t.sendMessage=e,t.postMessage=function(t,e){e.isConflatable&&(0,n.G)(l,(function(i){return i.handler===t&&!!i.msg&&i.msg.type===e.type&&!!i.msg.isConflatable&&i.msg.conflate(e)}))||o(t,e)},t.installMessageHook=function(t,e){var i=p.get(t);i&&-1!==i.indexOf(e)||(i?i.push(e):p.set(t,[e]))},t.removeMessageHook=function(t,e){var i=p.get(t);if(i){var n=i.indexOf(e);-1!==n&&(i[n]=null,a(i))}},t.clearData=function(t){var e=p.get(t);e&&e.length>0&&(n.RO.fill(e,null),a(e)),(0,n.S6)(l,(function(e){e.handler===t&&(e.handler=null,e.msg=null)}))},t.flush=function(){g||0===v||(y(v),g=!0,s(),g=!1)},t.getExceptionHandler=function(){return m},t.setExceptionHandler=function(t){var e=m;return m=t,e};var l=new d,p=new WeakMap,f=new Set,m=function(t){console.error(t)},v=0,g=!1,_="function"==typeof requestAnimationFrame?requestAnimationFrame:setImmediate,y="function"==typeof cancelAnimationFrame?cancelAnimationFrame:clearImmediate}(c||(c={}))},86020:(t,e,i)=>{"use strict";i.d(e,{M:()=>o});var n,r=i(13307),o=function(){var t=function(t){this.sender=t};return t.prototype.connect=function(t,e){return n.connect(this,t,e)},t.prototype.disconnect=function(t,e){return n.disconnect(this,t,e)},t.prototype.emit=function(t){n.emit(this,t)},t}();!function(t){t.disconnectBetween=function(t,e){n.disconnectBetween(t,e)},t.disconnectSender=function(t){n.disconnectSender(t)},t.disconnectReceiver=function(t){n.disconnectReceiver(t)},t.disconnectAll=function(t){n.disconnectAll(t)},t.clearData=function(t){n.disconnectAll(t)},t.getExceptionHandler=function(){return n.exceptionHandler},t.setExceptionHandler=function(t){var e=n.exceptionHandler;return n.exceptionHandler=t,e}}(o||(o={})),function(t){var e=function(t){var e=h.get(t);e&&0!==e.length&&((0,r.S6)(e,(function(t){if(t.signal){var e=t.thisArg||t.slot;t.signal=null,s(u.get(e))}})),s(e))},i=function(t){var e=u.get(t);e&&0!==e.length&&((0,r.S6)(e,(function(t){if(t.signal){var e=t.signal.sender;t.signal=null,s(h.get(e))}})),s(e))},n=function(t,e,i,n){return(0,r.sE)(t,(function(t){return t.signal===e&&t.slot===i&&t.thisArg===n}))},o=function(e,i){var n=e.signal,r=e.slot,o=e.thisArg;try{r.call(o,n.sender,i)}catch(e){t.exceptionHandler(e)}},s=function(t){0===l.size&&p(a),l.add(t)},a=function(){l.forEach(d),l.clear()},d=function(t){r.RO.removeAllWhere(t,c)},c=function(t){return null===t.signal};t.exceptionHandler=function(t){console.error(t)},t.connect=function(t,e,i){i=i||void 0;var r=h.get(t.sender);if(r||(r=[],h.set(t.sender,r)),n(r,t,e,i))return!1;var o=i||e,s=u.get(o);s||(s=[],u.set(o,s));var a={signal:t,slot:e,thisArg:i};return r.push(a),s.push(a),!0},t.disconnect=function(t,e,i){i=i||void 0;var r=h.get(t.sender);if(!r||0===r.length)return!1;var o=n(r,t,e,i);if(!o)return!1;var a=i||e,d=u.get(a);return o.signal=null,s(r),s(d),!0},t.disconnectBetween=function(t,e){var i=h.get(t);if(i&&0!==i.length){var n=u.get(e);n&&0!==n.length&&((0,r.S6)(n,(function(e){e.signal&&e.signal.sender===t&&(e.signal=null)})),s(i),s(n))}},t.disconnectSender=e,t.disconnectReceiver=i,t.disconnectAll=function(t){e(t),i(t)},t.emit=function(t,e){var i=h.get(t.sender);if(i&&0!==i.length)for(var n=0,r=i.length;n<r;++n){var s=i[n];s.signal===t&&o(s,e)}};var h=new WeakMap,u=new WeakMap,l=new Set,p="function"==typeof requestAnimationFrame?requestAnimationFrame:setImmediate}(n||(n={}))},61297:(t,e,i)=>{"use strict";i.d(e,{s_:()=>$,LN:()=>V,nj:()=>mt,$L:()=>W});var n,r=i(13307),o=i(80779),s=i(61198),a=function(){var t=function(t){this._pid=n.nextPID(),this.name=t.name,this._create=t.create,this._coerce=t.coerce||null,this._compare=t.compare||null,this._changed=t.changed||null};return t.prototype.get=function(t){var e=n.ensureMap(t);return this._pid in e?e[this._pid]:e[this._pid]=this._createValue(t)},t.prototype.set=function(t,e){var i,r=n.ensureMap(t);i=this._pid in r?r[this._pid]:r[this._pid]=this._createValue(t);var o=this._coerceValue(t,e);this._maybeNotify(t,i,r[this._pid]=o)},t.prototype.coerce=function(t){var e,i=n.ensureMap(t);e=this._pid in i?i[this._pid]:i[this._pid]=this._createValue(t);var r=this._coerceValue(t,e);this._maybeNotify(t,e,i[this._pid]=r)},t.prototype._createValue=function(t){return(0,this._create)(t)},t.prototype._coerceValue=function(t,e){var i=this._coerce;return i?i(t,e):e},t.prototype._compareValue=function(t,e){var i=this._compare;return i?i(t,e):t===e},t.prototype._maybeNotify=function(t,e,i){var n=this._changed;n&&!this._compareValue(e,i)&&n(t,e,i)},t}();!function(t){t.clearData=function(t){n.ownerData.delete(t)}}(a||(a={})),function(t){var e;t.ownerData=new WeakMap,t.nextPID=(e=0,function(){return"pid-"+(""+Math.random()).slice(2)+"-"+e++}),t.ensureMap=function(e){var i=t.ownerData.get(e);return i||(i=Object.create(null),t.ownerData.set(e,i),i)}}(n||(n={}));var d=i(86020),c=function(t,e){var i,n;return c=Object.setPrototypeOf||(i={__proto__:[]},(null!=(n=Array)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](i):i instanceof n)&&function(t,e){t.__proto__=e})||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},c(t,e)};function h(t,e){var i=function(){this.constructor=t};if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var u,l,p=function(){var t=function(t){this._fn=t};return Object.defineProperty(t.prototype,"isDisposed",{get:function(){return!this._fn},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){if(this._fn){var t=this._fn;this._fn=null,t()}},t}(),f=(l=function(){var t=null!==u&&u.apply(this,arguments)||this;return t._disposed=new d.M(t),t},h(l,u=p),Object.defineProperty(l.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),l.prototype.dispose=function(){this.isDisposed||(u.prototype.dispose.call(this),this._disposed.emit(void 0),d.M.clearData(this))},function(){var t=function(){this._isDisposed=!1,this._items=new Set};return Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._items.forEach((function(t){t.dispose()})),this._items.clear())},t.prototype.contains=function(t){return this._items.has(t)},t.prototype.add=function(t){this._items.add(t)},t.prototype.remove=function(t){this._items.delete(t)},t.prototype.clear=function(){this._items.clear()},t}());!function(t){t.from=function(e){var i=new t;return(0,r.S6)(e,(function(t){i.add(t)})),i}}(f||(f={}));var m=function(t){var e=function(){var e=null!==t&&t.apply(this,arguments)||this;return e._disposed=new d.M(e),e};return h(e,t),Object.defineProperty(e.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.isDisposed||(t.prototype.dispose.call(this),this._disposed.emit(void 0),d.M.clearData(this))},e}(f);function v(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}!function(t){t.from=function(e){var i=new t;return(0,r.S6)(e,(function(t){i.add(t)})),i}}(m||(m={}));var g,_=function(){var t=function(t){var e=this;this._onScrollFrame=function(){if(e._scrollTarget){var t=e._scrollTarget,i=t.element,n=t.edge,r=t.distance,o=g.SCROLL_EDGE_SIZE-r,s=Math.pow(o/g.SCROLL_EDGE_SIZE,2),a=Math.max(1,Math.round(s*g.SCROLL_EDGE_SIZE));switch(n){case"top":i.scrollTop-=a;break;case"left":i.scrollLeft-=a;break;case"right":i.scrollLeft+=a;break;case"bottom":i.scrollTop+=a}requestAnimationFrame(e._onScrollFrame)}},this._disposed=!1,this._dropAction="none",this._override=null,this._currentTarget=null,this._currentElement=null,this._promise=null,this._scrollTarget=null,this._resolve=null,this.document=t.document||document,this.mimeData=t.mimeData,this.dragImage=t.dragImage||null,this.proposedAction=t.proposedAction||"copy",this.supportedActions=t.supportedActions||"all",this.source=t.source||null};return t.prototype.dispose=function(){if(!this._disposed){if(this._disposed=!0,this._currentTarget){var t=g.createMouseEvent("pointerup",-1,-1);g.dispatchDragLeave(this,this._currentTarget,null,t)}this._finalize("none")}},Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),t.prototype.start=function(t,e){var i=this;if(this._disposed)return Promise.resolve("none");if(this._promise)return this._promise;this._addListeners(),this._attachDragImage(t,e),this._promise=new Promise((function(t,e){i._resolve=t}));var n=g.createMouseEvent("pointermove",t,e);return document.dispatchEvent(n),this._promise},t.prototype.handleEvent=function(t){switch(t.type){case"mousemove":case"pointermove":this._evtMouseMove(t);break;case"mouseup":case"pointerup":this._evtMouseUp(t);break;case"keydown":this._evtKeyDown(t);break;default:t.preventDefault(),t.stopPropagation()}},t.prototype.moveDragImage=function(t,e){if(this.dragImage){var i=this.dragImage.style;i.top=e+"px",i.left=t+"px"}},t.prototype._evtMouseMove=function(t){t.preventDefault(),t.stopPropagation(),this._updateCurrentTarget(t),this._updateDragScroll(t),this.moveDragImage(t.clientX,t.clientY)},t.prototype._evtMouseUp=function(t){if(t.preventDefault(),t.stopPropagation(),0===t.button)if(this._updateCurrentTarget(t),this._currentTarget){if("none"===this._dropAction)return g.dispatchDragLeave(this,this._currentTarget,null,t),void this._finalize("none");var e=g.dispatchDrop(this,this._currentTarget,t);this._finalize(e)}else this._finalize("none")},t.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation(),27===t.keyCode&&this.dispose()},t.prototype._addListeners=function(){document.addEventListener("mousedown",this,!0),document.addEventListener("mousemove",this,!0),document.addEventListener("mouseup",this,!0),document.addEventListener("mouseenter",this,!0),document.addEventListener("mouseleave",this,!0),document.addEventListener("mouseover",this,!0),document.addEventListener("mouseout",this,!0),document.addEventListener("pointerdown",this,!0),document.addEventListener("pointermove",this,!0),document.addEventListener("pointerup",this,!0),document.addEventListener("pointerenter",this,!0),document.addEventListener("pointerleave",this,!0),document.addEventListener("pointerover",this,!0),document.addEventListener("pointerout",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("keyup",this,!0),document.addEventListener("keypress",this,!0),document.addEventListener("contextmenu",this,!0)},t.prototype._removeListeners=function(){document.removeEventListener("mousedown",this,!0),document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("mouseenter",this,!0),document.removeEventListener("mouseleave",this,!0),document.removeEventListener("mouseover",this,!0),document.removeEventListener("mouseout",this,!0),document.removeEventListener("pointerdown",this,!0),document.removeEventListener("pointermove",this,!0),document.removeEventListener("pointerup",this,!0),document.removeEventListener("pointerenter",this,!0),document.removeEventListener("pointerleave",this,!0),document.removeEventListener("pointerover",this,!0),document.removeEventListener("pointerout",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("keyup",this,!0),document.removeEventListener("keypress",this,!0),document.removeEventListener("contextmenu",this,!0)},t.prototype._updateDragScroll=function(t){var e=g.findScrollTarget(t);(this._scrollTarget||e)&&(this._scrollTarget||setTimeout(this._onScrollFrame,500),this._scrollTarget=e)},t.prototype._updateCurrentTarget=function(t){var e=this._currentTarget,i=this._currentTarget,n=this._currentElement,r=this.document.elementFromPoint(t.clientX,t.clientY);this._currentElement=r,r!==n&&r!==i&&g.dispatchDragExit(this,i,r,t),r!==n&&r!==i&&(i=g.dispatchDragEnter(this,r,i,t)),i!==e&&(this._currentTarget=i,g.dispatchDragLeave(this,e,i,t));var o=g.dispatchDragOver(this,i,t);this._setDropAction(o)},t.prototype._attachDragImage=function(t,e){if(this.dragImage){this.dragImage.classList.add("lm-mod-drag-image"),this.dragImage.classList.add("p-mod-drag-image");var i=this.dragImage.style;i.pointerEvents="none",i.position="fixed",i.top=e+"px",i.left=t+"px",(v(this.document,Document)?this.document.body:this.document.firstElementChild).appendChild(this.dragImage)}},t.prototype._detachDragImage=function(){if(this.dragImage){var t=this.dragImage.parentNode;t&&t.removeChild(this.dragImage)}},t.prototype._setDropAction=function(e){if(e=g.validateAction(e,this.supportedActions),!this._override||this._dropAction!==e)switch(e){case"none":this._dropAction=e,this._override=t.overrideCursor("no-drop",this.document);break;case"copy":this._dropAction=e,this._override=t.overrideCursor("copy",this.document);break;case"link":this._dropAction=e,this._override=t.overrideCursor("alias",this.document);break;case"move":this._dropAction=e,this._override=t.overrideCursor("move",this.document)}},t.prototype._finalize=function(t){var e=this._resolve;this._removeListeners(),this._detachDragImage(),this._override&&(this._override.dispose(),this._override=null),this.mimeData.clear(),this._disposed=!0,this._dropAction="none",this._currentTarget=null,this._currentElement=null,this._scrollTarget=null,this._promise=null,this._resolve=null,e&&e(t)},t}();!function(t){t.overrideCursor=function(t,i){void 0===i&&(i=document);var n=++e,r=v(i,Document)?i.body:i.firstElementChild;return r.style.cursor=t,r.classList.add("lm-mod-override-cursor"),r.classList.add("p-mod-override-cursor"),new p((function(){n===e&&(r.style.cursor="",r.classList.remove("lm-mod-override-cursor"),r.classList.remove("p-mod-override-cursor"))}))};var e=0}(_||(_={})),function(t){var e=function(t,e,i,n){var r=document.createEvent("MouseEvent");return r.initMouseEvent(t,!0,!0,window,0,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,n),r.dropAction="none",r.mimeData=e.mimeData,r.proposedAction=e.proposedAction,r.supportedActions=e.supportedActions,r.source=e.source,r};t.SCROLL_EDGE_SIZE=20,t.validateAction=function(t,e){return i[t]&n[e]?t:"none"},t.createMouseEvent=function(t,e,i){var n=document.createEvent("MouseEvent");return n.initMouseEvent(t,!0,!0,window,0,0,0,e,i,!1,!1,!1,!1,0,null),n},t.findScrollTarget=function(e){for(var i=e.clientX,n=e.clientY,r=document.elementFromPoint(i,n);r;r=r.parentElement){var o=r.hasAttribute("data-lm-dragscroll");if(o=o||r.hasAttribute("data-p-dragscroll")){var s=0,a=0;r===document.body&&(s=window.pageXOffset,a=window.pageYOffset);var d=r.getBoundingClientRect(),c=d.top+a,h=d.left+s,u=h+d.width,l=c+d.height;if(!(i<h||i>=u||n<c||n>=l)){var p=i-h+1,f=n-c+1,m=u-i,v=l-n,g=Math.min(p,f,m,v);if(!(g>t.SCROLL_EDGE_SIZE)){var _=void 0;switch(g){case v:_="bottom";break;case f:_="top";break;case m:_="right";break;case p:_="left";break;default:throw"unreachable"}var y=r.scrollWidth-r.clientWidth,b=r.scrollHeight-r.clientHeight,w=void 0;switch(_){case"top":w=b>0&&r.scrollTop>0;break;case"left":w=y>0&&r.scrollLeft>0;break;case"right":w=y>0&&r.scrollLeft<y;break;case"bottom":w=b>0&&r.scrollTop<b;break;default:throw"unreachable"}if(w)return{element:r,edge:_,distance:g}}}}}return null},t.dispatchDragEnter=function(t,i,n,r){if(!i)return null;var o=e("lm-dragenter",t,r,n),s=!i.dispatchEvent(o);if(s)return i;if(o=e("p-dragenter",t,r,n),s=!i.dispatchEvent(o))return i;var a=v(t.document,Document)?t.document.body:t.document.firstElementChild;return i===a?n:(o=e("lm-dragenter",t,r,n),a.dispatchEvent(o),o=e("p-dragenter",t,r,n),a.dispatchEvent(o),a)},t.dispatchDragExit=function(t,i,n,r){if(i){var o=e("lm-dragexit",t,r,n);i.dispatchEvent(o),o=e("p-dragexit",t,r,n),i.dispatchEvent(o)}},t.dispatchDragLeave=function(t,i,n,r){if(i){var o=e("lm-dragleave",t,r,n);i.dispatchEvent(o),o=e("p-dragleave",t,r,n),i.dispatchEvent(o)}},t.dispatchDragOver=function(t,i,n){if(!i)return"none";var r=e("lm-dragover",t,n,null),o=!i.dispatchEvent(r);return o?r.dropAction:(r=e("p-dragover",t,n,null),(o=!i.dispatchEvent(r))?r.dropAction:"none")},t.dispatchDrop=function(t,i,n){if(!i)return"none";var r=e("lm-drop",t,n,null),o=!i.dispatchEvent(r);return o?r.dropAction:(r=e("p