@standardnotes/community-cdn 0.12.2 → 0.13.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.
@@ -0,0 +1,2 @@
1
+ /*! For license information please see main.fa294a70a660442c4638.js.LICENSE.txt */
2
+ (()=>{var e={290:(e,t,n)=>{var r,o;self,e.exports=(r=n(7294),o=n(3935),function(){var e,t,n,i,a={5779:function(e,t){"use strict";t.N=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,o=/&(newline|tab);/gi,i=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,a=/^.+(:|&colon;)/gim,s=[".","/"];t.N=function(e){var t,l=(t=e||"",t.replace(r,(function(e,t){return String.fromCharCode(t)}))).replace(o,"").replace(i,"").trim();if(!l)return"about:blank";if(function(e){return s.indexOf(e[0])>-1}(l))return l;var c=l.match(a);if(!c)return l;var u=c[0];return n.test(u)?"about:blank":l}},45:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.d(t,{Z:function(){return o}})},6233:function(e,t){var n;n=function(e){e.version="0.3.0";var t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n="undefined"!=typeof Buffer;function r(e){for(var n=-1,r=0,o=e.length-7;r<o;)n=(n=(n=(n=(n=(n=(n=(n=n>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])];for(;r<o+7;)n=n>>>8^t[255&(n^e[r++])];return-1^n}e.table=t,e.bstr=function(e){if(e.length>32768&&n)return r(new Buffer(e));for(var o=-1,i=e.length-1,a=0;a<i;)o=t[255&(o^e.charCodeAt(a++))]^o>>>8,o=t[255&(o^e.charCodeAt(a++))]^o>>>8;return a===i&&(o=o>>>8^t[255&(o^e.charCodeAt(a))]),-1^o},e.buf=function(e){if(e.length>1e4)return r(e);for(var n=-1,o=0,i=e.length-3;o<i;)n=(n=(n=(n=n>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])];for(;o<i+3;)n=n>>>8^t[255&(n^e[o++])];return-1^n},e.str=function(e){for(var n,r,o=-1,i=0,a=e.length;i<a;)(n=e.charCodeAt(i++))<128?o=o>>>8^t[255&(o^n)]:n<2048?o=(o=o>>>8^t[255&(o^(192|n>>6&31))])>>>8^t[255&(o^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),r=1023&e.charCodeAt(i++),o=(o=(o=(o=o>>>8^t[255&(o^(240|n>>8&7))])>>>8^t[255&(o^(128|n>>2&63))])>>>8^t[255&(o^(128|r>>6&15|3&n))])>>>8^t[255&(o^(128|63&r))]):o=(o=(o=o>>>8^t[255&(o^(224|n>>12&15))])>>>8^t[255&(o^(128|n>>6&63))])>>>8^t[255&(o^(128|63&n))];return-1^o}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(t):n({})},4739:function(e,t,n){"use strict";n.d(t,{Dv:function(){return L},KO:function(){return R},Vv:function(){return b},b9:function(){return N},cn:function(){return A},zt:function(){return I}});var r=n(9787);const o=Symbol(),i=e=>!!e[o],a=e=>{var t,n;null==(n=(t=e[o]).c)||n.call(t)},s=(e,t)=>{const n=e[o].o,r=t[o].o;return n===r||e===r||i(n)&&s(n,t)},l=e=>{const t={o:e,c:null},n=new Promise((n=>{t.c=()=>{t.c=null,n()},e.then(t.c,t.c)}));return n[o]=t,n};var c=Object.defineProperty,u=Object.defineProperties,d=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,m=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const g=e=>"init"in e,v=e=>{const t=new WeakMap,n=new WeakMap,r=new Map;let c,v;if(c=new Set,v=new Set,e)for(const[n,r]of e){const e={v:r,r:0,d:new Map};Object.freeze(e),g(n)||console.warn("Found initial value for derived atom which can cause unexpected behavior",n),t.set(n,e)}const b=new WeakMap,y=new WeakMap,w=e=>{let t=y.get(e);return t||(t=new Map,y.set(e,t)),t},x=(e,n)=>{if(e){const t=w(e);let r=t.get(n);return r||(r=x(e.p,n),r&&("p"in r&&r.p.then((()=>t.delete(n))),t.set(n,r))),r}return t.get(n)},k=(e,n,o)=>{if(Object.freeze(o),e)w(e).set(n,o);else{const e=t.get(n);t.set(n,o),r.has(n)||r.set(n,e)}},_=(e,t=new Map,n)=>{if(!n)return t;const r=new Map;let o=!1;return n.forEach((n=>{var i;const a=(null==(i=x(e,n))?void 0:i.r)||0;r.set(n,a),t.get(n)!==a&&(o=!0)})),t.size!==r.size||o?r:t},S=(e,t,n,r,o)=>{const i=x(e,t);if(i){if(o&&(!("p"in i)||!s(i.p,o)))return i;"p"in i&&a(i.p)}const l={v:n,r:(null==i?void 0:i.r)||0,d:_(e,null==i?void 0:i.d,r)};return i&&"v"in i&&Object.is(i.v,n)?l.d===i.d||l.d.size===i.d.size&&Array.from(l.d.keys()).every((e=>i.d.has(e)))||Promise.resolve().then((()=>{N(e)})):(++l.r,l.d.has(t)&&(l.d=new Map(l.d).set(t,l.r))),k(e,t,l),l},E=(e,t,n,r,o)=>{const i=x(e,t);if(i){if(o&&(!("p"in i)||!s(i.p,o)))return i;"p"in i&&a(i.p)}const l={e:n,r:(null==i?void 0:i.r)||0,d:_(e,null==i?void 0:i.d,r)};return k(e,t,l),l},P=(e,t,n,r)=>{const o=x(e,t);if(o&&"p"in o){if(s(o.p,n))return o;a(o.p)}((e,t,n)=>{let r=b.get(t);r||(r=new Map,b.set(t,r)),n.then((()=>{r.get(e)===n&&(r.delete(e),r.size||b.delete(t))})),r.set(e,n)})(e,t,n);const i={p:n,r:(null==o?void 0:o.r)||0,d:_(e,null==o?void 0:o.d,r)};return k(e,t,i),i},C=(e,t,n,r)=>{if(n instanceof Promise){const o=l(n.then((n=>{S(e,t,n,r,o),N(e)})).catch((n=>{if(n instanceof Promise)return i(n)?n.then((()=>{O(e,t,!0)})):n;E(e,t,n,r,o),N(e)})));return P(e,t,o,r)}return S(e,t,n,r)},O=(e,t,r)=>{if(!r){const r=x(e,t);if(r){if(r.r!==r.i&&"p"in r&&r.p[o].c)return r;if(r.d.forEach(((r,o)=>{if(o!==t)if(n.has(o)){const t=x(e,o);t&&t.r===t.i&&O(e,o)}else O(e,o)})),Array.from(r.d).every((([t,n])=>{const r=x(e,t);return r&&"v"in r&&r.r===n})))return r}}const i=new Set;try{const n=t.read((n=>{i.add(n);const r=n===t?x(e,n):O(e,n);if(r){if("e"in r)throw r.e;if("p"in r)throw r.p;return r.v}if(g(n))return n.init;throw new Error("no atom init")}));return C(e,t,n,i)}catch(n){if(n instanceof Promise){const r=l(n);return P(e,t,r,i)}return E(e,t,n,i)}},j=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),T=(e,t)=>{const r=n.get(t);null==r||r.t.forEach((n=>{n!==t&&(((e,t)=>{const n=x(e,t);if(n){"p"in n&&a(n.p);const i=(r=((e,t)=>{for(var n in t||(t={}))f.call(t,n)&&m(e,n,t[n]);if(p)for(var n of p(t))h.call(t,n)&&m(e,n,t[n]);return e})({},n),o={i:n.r},u(r,d(o)));k(e,t,i)}else console.warn("[Bug] could not invalidate non existing atom",t);var r,o})(e,n),T(e,n))}))},M=(e,t,n)=>{let r=!0;const o=(t,n)=>{const r=O(e,t);if("e"in r)throw r.e;if("p"in r){if(null==n?void 0:n.unstable_promise)return r.p.then((()=>o(t,n)));throw console.info("Reading pending atom state in write operation. We throw a promise for now.",t),r.p}if("v"in r)return r.v;throw console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",t),new Error("no value found")},i=t.write(o,((n,o)=>{let i;if(n===t){if(!g(n))throw new Error("atom not writable");const t=(e=>{const t=new Set,n=b.get(e);return n&&(b.delete(e),n.forEach(((e,n)=>{a(e),t.add(n)}))),t})(n);t.forEach((t=>{t!==e&&C(t,n,o)})),C(e,n,o),T(e,n)}else i=M(e,n,o);return r||N(e),i}),n);return r=!1,e=void 0,i},I=(e,t,n)=>{const r=M(n,e,t);return N(n),r},D=(e,t)=>{const r={t:new Set(t&&[t]),l:new Set};if(n.set(e,r),v.add(e),O(void 0,e).d.forEach(((t,r)=>{const o=n.get(r);o?o.t.add(e):r!==e&&D(r,e)})),(e=>!!e.write)(e)&&e.onMount){const t=t=>I(e,t),n=e.onMount(t);n&&(r.u=n)}return r},A=e=>{var t;const r=null==(t=n.get(e))?void 0:t.u;r&&r(),n.delete(e),v.delete(e);const o=x(void 0,e);o?o.d.forEach(((t,r)=>{if(r!==e){const t=n.get(r);t&&(t.t.delete(e),j(r,t)&&A(r))}})):console.warn("[Bug] could not find atom state to unmount",e)},L=(e,t,r)=>{const o=new Set(t.d.keys());null==r||r.forEach(((t,r)=>{if(o.has(r))return void o.delete(r);const i=n.get(r);i&&(i.t.delete(e),j(r,i)&&A(r))})),o.forEach((t=>{const r=n.get(t);r?r.t.add(e):n.has(e)&&D(t,e)}))},N=e=>{if(e)w(e).forEach(((r,o)=>{if(r!==t.get(o)){const t=n.get(o);null==t||t.l.forEach((t=>t(e)))}}));else{for(;r.size;){const e=Array.from(r);r.clear(),e.forEach((([e,t])=>{const r=x(void 0,e);r&&r.d!==(null==t?void 0:t.d)&&L(e,r,null==t?void 0:t.d);const o=n.get(e);null==o||o.l.forEach((e=>e()))}))}c.forEach((e=>e()))}};return{r:(e,t)=>O(t,e),w:I,c:(e,n)=>{n&&(e=>{w(e).forEach(((e,n)=>{const r=t.get(n);(e.r>((null==r?void 0:r.r)||0)||"v"in e&&e.r===(null==r?void 0:r.r)&&e.d!==(null==r?void 0:r.d))&&(t.set(n,e),e.d!==(null==r?void 0:r.d)&&L(n,e,null==r?void 0:r.d))}))})(n),N(void 0)},s:(e,t)=>{const r=(e=>{let t=n.get(e);return t||(t=D(e)),t})(e).l;return r.add(t),()=>{r.delete(t),(e=>{const t=n.get(e);t&&j(e,t)&&A(e)})(e)}},h:(e,t)=>{for(const[n,r]of e)g(n)&&(C(t,n,r),T(t,n));N(t)},n:e=>(c.add(e),()=>{c.delete(e)}),l:()=>v.values(),a:e=>t.get(e),m:e=>n.get(e)}},b=e=>{const t=v(e),n=e=>new Promise(((r,o)=>{const i=t.r(e);"e"in i?o(i.e):r("p"in i?i.p.then((()=>n(e))):i.v)}));return{get:e=>{const n=t.r(e);if("e"in n)throw n.e;if(!("p"in n))return n.v},asyncGet:n,set:(e,n)=>t.w(e,n),sub:(e,n)=>t.s(e,n),SECRET_INTERNAL_store:t}},y=(e,t)=>({s:t?t(e).SECRET_INTERNAL_store:v(e)}),w=new Map,x=e=>(w.has(e)||w.set(e,(0,r.createContext)(y())),w.get(e));var k=Object.defineProperty,_=Object.defineProperties,S=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,O=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t)=>{for(var n in t||(t={}))P.call(t,n)&&O(e,n,t[n]);if(E)for(var n of E(t))C.call(t,n)&&O(e,n,t[n]);return e};const T=e=>e.debugLabel||e.toString(),M=([e,t])=>Object.fromEntries(t.flatMap((t=>{var n,r;const o=null==(n=e.m)?void 0:n.call(e,t);if(!o)return[];const i=o.t,a=(null==(r=e.a)?void 0:r.call(e,t))||{};return[[T(t),(s=j(j(j({},"e"in a&&{error:a.e}),"p"in a&&{promise:a.p}),"v"in a&&{value:a.v}),l={dependents:Array.from(i).map(T)},_(s,S(l)))]];var s,l}))),I=({children:e,initialValues:t,scope:n,unstable_createStore:o,unstable_enableVersionedWrite:i})=>{const[a,s]=(0,r.useState)();(0,r.useEffect)((()=>{a&&(l.current.s.c(null,a),delete a.p)}),[a]);const l=(0,r.useRef)();l.current||(l.current=y(t,o),i&&(l.current.w=e=>{s((t=>{const n=t?{p:t}:{};return e(n),n}))})),i||(e=>{const{s:t}=e,[n,o]=(0,r.useState)([]);(0,r.useEffect)((()=>{var e;const n=()=>{var e;o(Array.from((null==(e=t.l)?void 0:e.call(t))||[]))},r=null==(e=t.n)?void 0:e.call(t,n);return n(),r}),[t]),(0,r.useDebugValue)([t,n],M)})(l.current);const c=x(n);return(0,r.createElement)(c.Provider,{value:l.current},e)};let D=0;function A(e,t){const n="atom"+ ++D,r={toString:()=>n};return"function"==typeof e?r.read=e:(r.init=e,r.read=e=>e(r),r.write=(e,t,n)=>t(r,"function"==typeof n?n(e(r)):n)),t&&(r.write=t),r}function L(e,t){const n=x(t),{s:o}=(0,r.useContext)(n),i=(0,r.useCallback)((t=>{const n=o.r(e,t);if("e"in n)throw n.e;if("p"in n)throw n.p;if("v"in n)return n.v;throw new Error("no atom value")}),[o,e]),[[a,s,l],c]=(0,r.useReducer)((0,r.useCallback)(((t,n)=>{const r=i(n);return Object.is(t[1],r)&&t[2]===e?t:[n,r,e]}),[i,e]),void 0,(()=>{const t=void 0;return[t,i(t),e]}));return l!==e&&c(void 0),(0,r.useEffect)((()=>{const t=o.s(e,c);return c(void 0),t}),[o,e]),(0,r.useEffect)((()=>{o.c(e,a)})),(0,r.useDebugValue)(s),s}function N(e,t){const n=x(t),{s:o,w:i}=(0,r.useContext)(n);return(0,r.useCallback)((t=>{if(!("write"in e))throw new Error("not writable atom");const n=n=>o.w(e,t,n);return i?i(n):n()}),[o,i,e])}function R(e,t){return"scope"in e&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),t=e.scope),[L(e,t),N(e,t)]}},200:function(e,t,n){var r="Expected a function",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,d=c||u||Function("return this")(),p=Object.prototype.toString,f=Math.max,h=Math.min,m=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==p.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return g(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),function(e,t,n){var o,i,a,s,l,c,u=0,d=!1,p=!1,b=!0;if("function"!=typeof e)throw new TypeError(r);function y(t){var n=o,r=i;return o=i=void 0,u=t,s=e.apply(r,n)}function w(e){return u=e,l=setTimeout(k,t),d?y(e):s}function x(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-u>=a}function k(){var e=m();if(x(e))return _(e);l=setTimeout(k,function(e){var n=t-(e-c);return p?h(n,a-(e-u)):n}(e))}function _(e){return l=void 0,b&&o?y(e):(o=i=void 0,s)}function S(){var e=m(),n=x(e);if(o=arguments,i=this,c=e,n){if(void 0===l)return w(c);if(p)return l=setTimeout(k,t),y(c)}return void 0===l&&(l=setTimeout(k,t)),s}return t=v(t)||0,g(n)&&(d=!!n.leading,a=(p="maxWait"in n)?f(v(n.maxWait)||0,t):a,b="trailing"in n?!!n.trailing:b),S.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=c=i=l=void 0},S.flush=function(){return void 0===l?s:_(m())},S}(e,t,{leading:o,maxWait:t,trailing:i})}},2744:function(e,t,n){"use strict";var r={};(0,n(9187).assign)(r,n(4395),n(578),n(2684)),e.exports=r},4395:function(e,t,n){"use strict";var r=n(7651),o=n(9187),i=n(8592),a=n(5604),s=n(249),l=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,u)))throw new Error(a[n]);this._dict_set=!0}}function u(e,t){var n=new c(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(e,t){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=i.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new o.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(s.output,s.next_out))):this.onData(o.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=c,t.deflate=u,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},578:function(e,t,n){"use strict";var r=n(7823),o=n(9187),i=n(8592),a=n(2684),s=n(5604),l=n(249),c=n(9968),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(s[n])}function p(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,c,d,p=this.strm,f=this.options.chunkSize,h=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?p.input=i.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new o.Buf8(f),p.next_out=0,p.avail_out=f),(n=r.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&h&&(n=r.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(p.output,p.next_out),c=p.next_out-l,d=i.buf2string(p.output,l),p.next_out=c,p.avail_out=f-c,c&&o.arraySet(p.output,p.output,l,c,0),this.onData(d)):this.onData(o.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((p.avail_in>0||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),p.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=d,t.inflate=p,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},t.ungzip=p},9187:function(e,t){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var o in n)r(n,o)&&(e[o]=n[o])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),o=0,t=0,n=e.length;t<n;t++)i=e[t],a.set(i,o),o+=i.length;return a}},i={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,o)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(n)},8592:function(e,t,n){"use strict";var r=n(9187),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,t.string2buf=function(e){var t,n,o,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),a=0,i=0;a<l;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},t.buf2binstring=function(e){return l(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,o=t.length;n<o;n++)t[n]=e.charCodeAt(n);return t},t.buf2string=function(e,t){var n,r,o,i,s=t||e.length,c=new Array(2*s);for(r=0,n=0;n<s;)if((o=e[n++])<128)c[r++]=o;else if((i=a[o])>4)c[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&n<s;)o=o<<6|63&e[n++],i--;i>1?c[r++]=65533:o<65536?c[r++]=o:(o-=65536,c[r++]=55296|o>>10&1023,c[r++]=56320|1023&o)}return l(c,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},3693:function(e){"use strict";e.exports=function(e,t,n,r){for(var o=65535&e|0,i=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+t[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16|0}},2684:function(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},8464:function(e){"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,o){var i=t,a=o+r;e^=-1;for(var s=o;s<a;s++)e=e>>>8^i[255&(e^n[s])];return-1^e}},7651:function(e,t,n){"use strict";var r,o=n(9187),i=n(8676),a=n(3693),s=n(8464),l=n(5604),c=-2,u=258,d=262,p=103,f=113,h=666;function m(e,t){return e.msg=l[t],t}function g(e){return(e<<1)-(e>4?9:0)}function v(e){for(var t=e.length;--t>=0;)e[t]=0}function b(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(o.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function y(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,b(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function x(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function k(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,c=e.window,p=e.w_mask,f=e.prev,h=e.strstart+u,m=c[i+a-1],g=c[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===g&&c[n+a-1]===m&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<h);if(r=u-(h-i),i=h-u,r>a){if(e.match_start=t,a=r,r>=s)break;m=c[i+a-1],g=c[i+a]}}}while((t=f[t&p])>l&&0!=--o);return a<=e.lookahead?a:e.lookahead}function _(e){var t,n,r,i,l,c,u,p,f,h,m=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-d)){o.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=m?r-m:0}while(--n);t=n=m;do{r=e.prev[--t],e.prev[t]=r>=m?r-m:0}while(--n);i+=m}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,p=e.strstart+e.lookahead,f=i,h=void 0,(h=c.avail_in)>f&&(h=f),n=0===h?0:(c.avail_in-=h,o.arraySet(u,c.input,c.next_in,h,p),1===c.state.wrap?c.adler=a(c.adler,u,h,p):2===c.state.wrap&&(c.adler=s(c.adler,u,h,p)),c.next_in+=h,c.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&0!==e.strm.avail_in)}function S(e,t){for(var n,r;;){if(e.lookahead<d){if(_(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-d&&(e.match_length=k(e,n)),e.match_length>=3)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}function E(e,t){for(var n,r,o;;){if(e.lookahead<d){if(_(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-d&&(e.match_length=k(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-3,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(y(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=i._tr_tally(e,0,e.window[e.strstart-1]))&&y(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}function P(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function C(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),v(this.dyn_ltree),v(this.dyn_dtree),v(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),v(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),v(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function O(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:f,e.adler=2===t.wrap?0:1,t.last_flush=0,i._tr_init(t),0):m(e,c)}function j(e){var t,n=O(e);return 0===n&&((t=e.state).window_size=2*t.w_size,v(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function T(e,t,n,r,i,a){if(!e)return c;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return m(e,c);8===r&&(r=9);var l=new C;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new o.Buf8(2*l.w_size),l.head=new o.Buf16(l.hash_size),l.prev=new o.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new o.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,j(e)}r=[new P(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(_(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,y(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(y(e,!1),e.strm.avail_out),1)})),new P(4,4,8,4,S),new P(4,5,16,8,S),new P(4,6,32,32,S),new P(4,4,16,16,E),new P(8,16,32,32,E),new P(8,16,128,128,E),new P(8,32,128,256,E),new P(32,128,258,1024,E),new P(32,258,258,4096,E)],t.deflateInit=function(e,t){return T(e,t,8,15,8,0)},t.deflateInit2=T,t.deflateReset=j,t.deflateResetKeep=O,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,0):c},t.deflate=function(e,t){var n,o,a,l;if(!e||!e.state||t>5||t<0)return e?m(e,c):c;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||o.status===h&&4!==t)return m(e,0===e.avail_out?-5:c);if(o.strm=e,n=o.last_flush,o.last_flush=t,42===o.status)if(2===o.wrap)e.adler=0,w(o,31),w(o,139),w(o,8),o.gzhead?(w(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),w(o,255&o.gzhead.time),w(o,o.gzhead.time>>8&255),w(o,o.gzhead.time>>16&255),w(o,o.gzhead.time>>24&255),w(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),w(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(w(o,255&o.gzhead.extra.length),w(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=s(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(w(o,0),w(o,0),w(o,0),w(o,0),w(o,0),w(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),w(o,3),o.status=f);else{var d=8+(o.w_bits-8<<4)<<8;d|=(o.strategy>=2||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(d|=32),d+=31-d%31,o.status=f,x(o,d),0!==o.strstart&&(x(o,e.adler>>>16),x(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),b(e),a=o.pending,o.pending!==o.pending_buf_size));)w(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),b(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,w(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),b(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,w(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.status=p)}else o.status=p;if(o.status===p&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&b(e),o.pending+2<=o.pending_buf_size&&(w(o,255&e.adler),w(o,e.adler>>8&255),e.adler=0,o.status=f)):o.status=f),0!==o.pending){if(b(e),0===e.avail_out)return o.last_flush=-1,0}else if(0===e.avail_in&&g(t)<=g(n)&&4!==t)return m(e,-5);if(o.status===h&&0!==e.avail_in)return m(e,-5);if(0!==e.avail_in||0!==o.lookahead||0!==t&&o.status!==h){var k=2===o.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(_(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(o,t):3===o.strategy?function(e,t){for(var n,r,o,a,s=e.window;;){if(e.lookahead<=u){if(_(e),e.lookahead<=u&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[o=e.strstart-1])===s[++o]&&r===s[++o]&&r===s[++o]){a=e.strstart+u;do{}while(r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&o<a);e.match_length=u-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=i._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(o,t):r[o.level].func(o,t);if(3!==k&&4!==k||(o.status=h),1===k||3===k)return 0===e.avail_out&&(o.last_flush=-1),0;if(2===k&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(v(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),b(e),0===e.avail_out))return o.last_flush=-1,0}return 4!==t?0:o.wrap<=0?1:(2===o.wrap?(w(o,255&e.adler),w(o,e.adler>>8&255),w(o,e.adler>>16&255),w(o,e.adler>>24&255),w(o,255&e.total_in),w(o,e.total_in>>8&255),w(o,e.total_in>>16&255),w(o,e.total_in>>24&255)):(x(o,e.adler>>>16),x(o,65535&e.adler)),b(e),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==p&&t!==f&&t!==h?m(e,c):(e.state=null,t===f?m(e,-3):0):c},t.deflateSetDictionary=function(e,t){var n,r,i,s,l,u,d,p,f=t.length;if(!e||!e.state)return c;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return c;for(1===s&&(e.adler=a(e.adler,t,f,0)),n.wrap=0,f>=n.w_size&&(0===s&&(v(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new o.Buf8(n.w_size),o.arraySet(p,t,f-n.w_size,n.w_size,0),t=p,f=n.w_size),l=e.avail_in,u=e.next_in,d=e.input,e.avail_in=f,e.next_in=0,e.input=t,_(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=2,_(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=u,e.input=d,e.avail_in=l,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},9968:function(e){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},9365:function(e){"use strict";e.exports=function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,v,b,y,w,x,k,_,S,E,P;n=e.state,r=e.next_in,E=e.input,o=r+(e.avail_in-5),i=e.next_out,P=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,p=n.window,f=n.hold,h=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{h<15&&(f+=E[r++]<<h,h+=8,f+=E[r++]<<h,h+=8),y=m[f&v];t:for(;;){if(f>>>=w=y>>>24,h-=w,0==(w=y>>>16&255))P[i++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=m[(65535&y)+(f&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&y,(w&=15)&&(h<w&&(f+=E[r++]<<h,h+=8),x+=f&(1<<w)-1,f>>>=w,h-=w),h<15&&(f+=E[r++]<<h,h+=8,f+=E[r++]<<h,h+=8),y=g[f&b];n:for(;;){if(f>>>=w=y>>>24,h-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=g[(65535&y)+(f&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(k=65535&y,h<(w&=15)&&(f+=E[r++]<<h,(h+=8)<w&&(f+=E[r++]<<h,h+=8)),(k+=f&(1<<w)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=w,h-=w,k>(w=i-a)){if((w=k-w)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(_=0,S=p,0===d){if(_+=c-w,w<x){x-=w;do{P[i++]=p[_++]}while(--w);_=i-k,S=P}}else if(d<w){if(_+=c+d-w,(w-=d)<x){x-=w;do{P[i++]=p[_++]}while(--w);if(_=0,d<x){x-=w=d;do{P[i++]=p[_++]}while(--w);_=i-k,S=P}}}else if(_+=d-w,w<x){x-=w;do{P[i++]=p[_++]}while(--w);_=i-k,S=P}for(;x>2;)P[i++]=S[_++],P[i++]=S[_++],P[i++]=S[_++],x-=3;x&&(P[i++]=S[_++],x>1&&(P[i++]=S[_++]))}else{_=i-k;do{P[i++]=P[_++],P[i++]=P[_++],P[i++]=P[_++],x-=3}while(x>2);x&&(P[i++]=P[_++],x>1&&(P[i++]=P[_++]))}break}}break}}while(r<o&&i<s);r-=x=h>>3,f&=(1<<(h-=x<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<s?s-i+257:257-(i-s),n.hold=f,n.bits=h}},7823:function(e,t,n){"use strict";var r=n(9187),o=n(3693),i=n(8464),a=n(9365),s=n(6446),l=-2,c=12,u=30;function d(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function p(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):l}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,f(e)):l}function m(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?l:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,h(e))):l}function g(e,t){var n,r;return e?(r=new p,e.state=r,r.window=null,0!==(n=m(e,t))&&(e.state=null),n):l}var v,b,y=!0;function w(e){if(y){var t;for(v=new r.Buf32(512),b=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,v,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,b,0,e.work,{bits:5}),y=!1}e.lencode=v,e.lenbits=9,e.distcode=b,e.distbits=5}function x(e,t,n,o){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),o>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>o&&(i=o),r.arraySet(a.window,t,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,t,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}t.inflateReset=h,t.inflateReset2=m,t.inflateResetKeep=f,t.inflateInit=function(e){return g(e,15)},t.inflateInit2=g,t.inflate=function(e,t){var n,p,f,h,m,g,v,b,y,k,_,S,E,P,C,O,j,T,M,I,D,A,L,N,R=0,z=new r.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;(n=e.state).mode===c&&(n.mode=13),m=e.next_out,f=e.output,v=e.avail_out,h=e.next_in,p=e.input,g=e.avail_in,b=n.hold,y=n.bits,k=g,_=v,A=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;y<16;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}if(2&n.wrap&&35615===b){n.check=0,z[0]=255&b,z[1]=b>>>8&255,n.check=i(n.check,z,2,0),b=0,y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=u;break}if(8!=(15&b)){e.msg="unknown compression method",n.mode=u;break}if(y-=4,D=8+(15&(b>>>=4)),0===n.wbits)n.wbits=D;else if(D>n.wbits){e.msg="invalid window size",n.mode=u;break}n.dmax=1<<D,e.adler=n.check=1,n.mode=512&b?10:c,b=0,y=0;break;case 2:for(;y<16;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}if(n.flags=b,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=u;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=u;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(z[0]=255&b,z[1]=b>>>8&255,n.check=i(n.check,z,2,0)),b=0,y=0,n.mode=3;case 3:for(;y<32;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}n.head&&(n.head.time=b),512&n.flags&&(z[0]=255&b,z[1]=b>>>8&255,z[2]=b>>>16&255,z[3]=b>>>24&255,n.check=i(n.check,z,4,0)),b=0,y=0,n.mode=4;case 4:for(;y<16;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(z[0]=255&b,z[1]=b>>>8&255,n.check=i(n.check,z,2,0)),b=0,y=0,n.mode=5;case 5:if(1024&n.flags){for(;y<16;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(z[0]=255&b,z[1]=b>>>8&255,n.check=i(n.check,z,2,0)),b=0,y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((S=n.length)>g&&(S=g),S&&(n.head&&(D=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,p,h,S,D)),512&n.flags&&(n.check=i(n.check,p,S,h)),g-=S,h+=S,n.length-=S),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===g)break e;S=0;do{D=p[h+S++],n.head&&D&&n.length<65536&&(n.head.name+=String.fromCharCode(D))}while(D&&S<g);if(512&n.flags&&(n.check=i(n.check,p,S,h)),g-=S,h+=S,D)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===g)break e;S=0;do{D=p[h+S++],n.head&&D&&n.length<65536&&(n.head.comment+=String.fromCharCode(D))}while(D&&S<g);if(512&n.flags&&(n.check=i(n.check,p,S,h)),g-=S,h+=S,D)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;y<16;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}if(b!==(65535&n.check)){e.msg="header crc mismatch",n.mode=u;break}b=0,y=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=c;break;case 10:for(;y<32;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}e.adler=n.check=d(b),b=0,y=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=m,e.avail_out=v,e.next_in=h,e.avail_in=g,n.hold=b,n.bits=y,2;e.adler=n.check=1,n.mode=c;case c:if(5===t||6===t)break e;case 13:if(n.last){b>>>=7&y,y-=7&y,n.mode=27;break}for(;y<3;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}switch(n.last=1&b,y-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,6===t){b>>>=2,y-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=u}b>>>=2,y-=2;break;case 14:for(b>>>=7&y,y-=7&y;y<32;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}if((65535&b)!=(b>>>16^65535)){e.msg="invalid stored block lengths",n.mode=u;break}if(n.length=65535&b,b=0,y=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(S=n.length){if(S>g&&(S=g),S>v&&(S=v),0===S)break e;r.arraySet(f,p,h,S,m),g-=S,h+=S,v-=S,m+=S,n.length-=S;break}n.mode=c;break;case 17:for(;y<14;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}if(n.nlen=257+(31&b),b>>>=5,y-=5,n.ndist=1+(31&b),b>>>=5,y-=5,n.ncode=4+(15&b),b>>>=4,y-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=u;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;y<3;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}n.lens[F[n.have++]]=7&b,b>>>=3,y-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},A=s(0,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,A){e.msg="invalid code lengths set",n.mode=u;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;O=(R=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&R,!((C=R>>>24)<=y);){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}if(j<16)b>>>=C,y-=C,n.lens[n.have++]=j;else{if(16===j){for(N=C+2;y<N;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}if(b>>>=C,y-=C,0===n.have){e.msg="invalid bit length repeat",n.mode=u;break}D=n.lens[n.have-1],S=3+(3&b),b>>>=2,y-=2}else if(17===j){for(N=C+3;y<N;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}y-=C,D=0,S=3+(7&(b>>>=C)),b>>>=3,y-=3}else{for(N=C+7;y<N;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}y-=C,D=0,S=11+(127&(b>>>=C)),b>>>=7,y-=7}if(n.have+S>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=u;break}for(;S--;)n.lens[n.have++]=D}}if(n.mode===u)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=u;break}if(n.lenbits=9,L={bits:n.lenbits},A=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,A){e.msg="invalid literal/lengths set",n.mode=u;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},A=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,A){e.msg="invalid distances set",n.mode=u;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(g>=6&&v>=258){e.next_out=m,e.avail_out=v,e.next_in=h,e.avail_in=g,n.hold=b,n.bits=y,a(e,_),m=e.next_out,f=e.output,v=e.avail_out,h=e.next_in,p=e.input,g=e.avail_in,b=n.hold,y=n.bits,n.mode===c&&(n.back=-1);break}for(n.back=0;O=(R=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&R,!((C=R>>>24)<=y);){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}if(O&&0==(240&O)){for(T=C,M=O,I=j;O=(R=n.lencode[I+((b&(1<<T+M)-1)>>T)])>>>16&255,j=65535&R,!(T+(C=R>>>24)<=y);){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}b>>>=T,y-=T,n.back+=T}if(b>>>=C,y-=C,n.back+=C,n.length=j,0===O){n.mode=26;break}if(32&O){n.back=-1,n.mode=c;break}if(64&O){e.msg="invalid literal/length code",n.mode=u;break}n.extra=15&O,n.mode=22;case 22:if(n.extra){for(N=n.extra;y<N;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,y-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;O=(R=n.distcode[b&(1<<n.distbits)-1])>>>16&255,j=65535&R,!((C=R>>>24)<=y);){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}if(0==(240&O)){for(T=C,M=O,I=j;O=(R=n.distcode[I+((b&(1<<T+M)-1)>>T)])>>>16&255,j=65535&R,!(T+(C=R>>>24)<=y);){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}b>>>=T,y-=T,n.back+=T}if(b>>>=C,y-=C,n.back+=C,64&O){e.msg="invalid distance code",n.mode=u;break}n.offset=j,n.extra=15&O,n.mode=24;case 24:if(n.extra){for(N=n.extra;y<N;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,y-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=u;break}n.mode=25;case 25:if(0===v)break e;if(S=_-v,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=u;break}S>n.wnext?(S-=n.wnext,E=n.wsize-S):E=n.wnext-S,S>n.length&&(S=n.length),P=n.window}else P=f,E=m-n.offset,S=n.length;S>v&&(S=v),v-=S,n.length-=S;do{f[m++]=P[E++]}while(--S);0===n.length&&(n.mode=21);break;case 26:if(0===v)break e;f[m++]=n.length,v--,n.mode=21;break;case 27:if(n.wrap){for(;y<32;){if(0===g)break e;g--,b|=p[h++]<<y,y+=8}if(_-=v,e.total_out+=_,n.total+=_,_&&(e.adler=n.check=n.flags?i(n.check,f,_,m-_):o(n.check,f,_,m-_)),_=v,(n.flags?b:d(b))!==n.check){e.msg="incorrect data check",n.mode=u;break}b=0,y=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;y<32;){if(0===g)break e;g--,b+=p[h++]<<y,y+=8}if(b!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=u;break}b=0,y=0}n.mode=29;case 29:A=1;break e;case u:A=-3;break e;case 31:return-4;default:return l}return e.next_out=m,e.avail_out=v,e.next_in=h,e.avail_in=g,n.hold=b,n.bits=y,(n.wsize||_!==e.avail_out&&n.mode<u&&(n.mode<27||4!==t))&&x(e,e.output,e.next_out,_-e.avail_out)?(n.mode=31,-4):(k-=e.avail_in,_-=e.avail_out,e.total_in+=k,e.total_out+=_,n.total+=_,n.wrap&&_&&(e.adler=n.check=n.flags?i(n.check,f,_,e.next_out-_):o(n.check,f,_,e.next_out-_)),e.data_type=n.bits+(n.last?64:0)+(n.mode===c?128:0)+(20===n.mode||15===n.mode?256:0),(0===k&&0===_||4===t)&&0===A&&(A=-5),A)},t.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?l:(n.head=t,t.done=!1,0):l},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?l:11===n.mode&&o(1,t,r,0)!==n.check?-3:x(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):l},t.inflateInfo="pako inflate (from Nodeca project)"},6446:function(e,t,n){"use strict";var r=n(9187),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,l,c,u,d,p){var f,h,m,g,v,b,y,w,x,k=p.bits,_=0,S=0,E=0,P=0,C=0,O=0,j=0,T=0,M=0,I=0,D=null,A=0,L=new r.Buf16(16),N=new r.Buf16(16),R=null,z=0;for(_=0;_<=15;_++)L[_]=0;for(S=0;S<l;S++)L[t[n+S]]++;for(C=k,P=15;P>=1&&0===L[P];P--);if(C>P&&(C=P),0===P)return c[u++]=20971520,c[u++]=20971520,p.bits=1,0;for(E=1;E<P&&0===L[E];E++);for(C<E&&(C=E),T=1,_=1;_<=15;_++)if(T<<=1,(T-=L[_])<0)return-1;if(T>0&&(0===e||1!==P))return-1;for(N[1]=0,_=1;_<15;_++)N[_+1]=N[_]+L[_];for(S=0;S<l;S++)0!==t[n+S]&&(d[N[t[n+S]]++]=S);if(0===e?(D=R=d,b=19):1===e?(D=o,A-=257,R=i,z-=257,b=256):(D=a,R=s,b=-1),I=0,S=0,_=E,v=u,O=C,j=0,m=-1,g=(M=1<<C)-1,1===e&&M>852||2===e&&M>592)return 1;for(;;){y=_-j,d[S]<b?(w=0,x=d[S]):d[S]>b?(w=R[z+d[S]],x=D[A+d[S]]):(w=96,x=0),f=1<<_-j,E=h=1<<O;do{c[v+(I>>j)+(h-=f)]=y<<24|w<<16|x|0}while(0!==h);for(f=1<<_-1;I&f;)f>>=1;if(0!==f?(I&=f-1,I+=f):I=0,S++,0==--L[_]){if(_===P)break;_=t[n+d[S]]}if(_>C&&(I&g)!==m){for(0===j&&(j=C),v+=E,T=1<<(O=_-j);O+j<P&&!((T-=L[O+j])<=0);)O++,T<<=1;if(M+=1<<O,1===e&&M>852||2===e&&M>592)return 1;c[m=I&g]=C<<24|O<<16|v-u|0}}return 0!==I&&(c[v+I]=_-j<<24|64<<16|0),p.bits=C,0}},5604:function(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},8676:function(e,t,n){"use strict";var r=n(9187);function o(e){for(var t=e.length;--t>=0;)e[t]=0}var i=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);o(c);var u=new Array(60);o(u);var d=new Array(512);o(d);var p=new Array(256);o(p);var f=new Array(29);o(f);var h,m,g,v=new Array(30);function b(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function y(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?d[e]:d[256+(e>>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,x(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function _(e,t,n){k(e,n[2*t],n[2*t+1])}function S(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function E(e,t,n){var r,o,i=new Array(16),a=0;for(r=1;r<=15;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=S(i[s]++,s))}}function P(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function C(e){e.bi_valid>8?x(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function O(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function j(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&O(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!O(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function T(e,t,n){var r,o,s,l,c=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],o=e.pending_buf[e.l_buf+c],c++,0===r?_(e,o,t):(_(e,(s=p[o])+256+1,t),0!==(l=i[s])&&k(e,o-=f[s],l),_(e,s=w(--r),n),0!==(l=a[s])&&k(e,r-=v[s],l))}while(c<e.last_lit);_(e,256,t)}function M(e,t){var n,r,o,i=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==i[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)j(e,i,n);o=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,j(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,h=t.stat_desc.max_length,m=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=l[2*l[2*(r=e.heap[n])+1]+1]+1)>h&&(i=h,m++),l[2*r+1]=i,r>c||(e.bl_count[i]++,a=0,r>=f&&(a=p[r-f]),s=l[2*r],e.opt_len+=s*(i+a),d&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==m){do{for(i=h-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[h]--,m-=2}while(m>0);for(i=h;0!==i;i--)for(r=e.bl_count[i];0!==r;)(o=e.heap[--n])>c||(l[2*o+1]!==i&&(e.opt_len+=(i-l[2*o+1])*l[2*o],l[2*o+1]=i),r--)}}(e,t),E(i,c,e.bl_count)}function I(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++s<l&&o===a||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,i=o,0===a?(l=138,c=3):o===a?(l=6,c=3):(l=7,c=4))}function D(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++s<l&&o===a)){if(s<c)do{_(e,o,e.bl_tree)}while(0!=--s);else 0!==o?(o!==i&&(_(e,o,e.bl_tree),s--),_(e,16,e.bl_tree),k(e,s-3,2)):s<=10?(_(e,17,e.bl_tree),k(e,s-3,3)):(_(e,18,e.bl_tree),k(e,s-11,7));s=0,i=o,0===a?(l=138,c=3):o===a?(l=6,c=3):(l=7,c=4)}}o(v);var A=!1;function L(e,t,n,o){k(e,0+(o?1:0),3),function(e,t,n,o){C(e),x(e,n),x(e,~n),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}t._tr_init=function(e){A||(function(){var e,t,n,r,o,l=new Array(16);for(n=0,r=0;r<28;r++)for(f[r]=n,e=0;e<1<<i[r];e++)p[n++]=r;for(p[n-1]=r,o=0,r=0;r<16;r++)for(v[r]=o,e=0;e<1<<a[r];e++)d[o++]=r;for(o>>=7;r<30;r++)for(v[r]=o<<7,e=0;e<1<<a[r]-7;e++)d[256+o++]=r;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,l[8]++;for(;e<=255;)c[2*e+1]=9,e++,l[9]++;for(;e<=279;)c[2*e+1]=7,e++,l[7]++;for(;e<=287;)c[2*e+1]=8,e++,l[8]++;for(E(c,287,l),e=0;e<30;e++)u[2*e+1]=5,u[2*e]=S(e,5);h=new b(c,i,257,286,15),m=new b(u,a,0,30,15),g=new b(new Array(0),s,0,19,7)}(),A=!0),e.l_desc=new y(e.dyn_ltree,h),e.d_desc=new y(e.dyn_dtree,m),e.bl_desc=new y(e.bl_tree,g),e.bi_buf=0,e.bi_valid=0,P(e)},t._tr_stored_block=L,t._tr_flush_block=function(e,t,n,r){var o,i,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),M(e,e.l_desc),M(e,e.d_desc),a=function(e){var t;for(I(e,e.dyn_ltree,e.l_desc.max_code),I(e,e.dyn_dtree,e.d_desc.max_code),M(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==t?L(e,t,n,r):4===e.strategy||i===o?(k(e,2+(r?1:0),3),T(e,c,u)):(k(e,4+(r?1:0),3),function(e,t,n,r){var o;for(k(e,t-257,5),k(e,n-1,5),k(e,r-4,4),o=0;o<r;o++)k(e,e.bl_tree[2*l[o]+1],3);D(e,e.dyn_ltree,t-1),D(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),T(e,e.dyn_ltree,e.dyn_dtree)),P(e),r&&C(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(p[n]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){k(e,2,3),_(e,256,c),function(e){16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},249:function(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},9066:function(e){e.exports=function(e){e.data&&e.name&&(e=e.data);for(var t=!0,n="",r="",o=0;o<e.length;o++){var i=e[o];if(t)i?r+=String.fromCharCode(i):t=!1;else{if(!i)throw new Error("Invalid NULL character found. 0x00 character is not permitted in tEXt content");n+=String.fromCharCode(i)}}return{keyword:r,text:n}}},9686:function(e){e.exports=function(e,t){if(e=String(e),t=String(t),!/^[\x00-\xFF]+$/.test(e)||!/^[\x00-\xFF]+$/.test(t))throw new Error("Only Latin-1 characters are permitted in PNG tEXt chunks. You might want to consider base64 encoding and/or zEXt compression");if(e.length>=80)throw new Error('Keyword "'+e+'" is longer than the 79-character limit imposed by the PNG specification');for(var n,r=e.length+t.length+1,o=new Uint8Array(r),i=0,a=0;a<e.length;a++){if(!(n=e.charCodeAt(a)))throw new Error("0x00 character is not permitted in tEXt keywords");o[i++]=n}o[i++]=0;for(var s=0;s<t.length;s++){if(!(n=t.charCodeAt(s)))throw new Error("0x00 character is not permitted in tEXt content");o[i++]=n}return{name:"tEXt",data:o}}},1194:function(e,t,n){t.encode=n(9686),t.decode=n(9066)},3434:function(e,t,n){var r=n(5714),o=n(6233);e.exports=function(e){var t,n=8,l=n;for(t=0;t<e.length;t++)n+=e[t].data.length,n+=12;var c=new Uint8Array(n);for(c[0]=137,c[1]=80,c[2]=78,c[3]=71,c[4]=13,c[5]=10,c[6]=26,c[7]=10,t=0;t<e.length;t++){var u=e[t],d=u.name,p=u.data,f=p.length,h=[d.charCodeAt(0),d.charCodeAt(1),d.charCodeAt(2),d.charCodeAt(3)];s[0]=f,c[l++]=i[3],c[l++]=i[2],c[l++]=i[1],c[l++]=i[0],c[l++]=h[0],c[l++]=h[1],c[l++]=h[2],c[l++]=h[3];for(var m=0;m<f;)c[l++]=p[m++];var g=h.concat(r(p)),v=o.buf(g);a[0]=v,c[l++]=i[3],c[l++]=i[2],c[l++]=i[1],c[l++]=i[0]}return c};var i=new Uint8Array(4),a=new Int32Array(i.buffer),s=new Uint32Array(i.buffer)},2983:function(e,t,n){var r=n(6233);e.exports=function(e){if(137!==e[0])throw new Error("Invalid .png file header");if(80!==e[1])throw new Error("Invalid .png file header");if(78!==e[2])throw new Error("Invalid .png file header");if(71!==e[3])throw new Error("Invalid .png file header");if(13!==e[4])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(10!==e[5])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(26!==e[6])throw new Error("Invalid .png file header");if(10!==e[7])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");for(var t=!1,n=[],s=8;s<e.length;){o[3]=e[s++],o[2]=e[s++],o[1]=e[s++],o[0]=e[s++];var l=a[0]+4,c=new Uint8Array(l);c[0]=e[s++],c[1]=e[s++],c[2]=e[s++],c[3]=e[s++];var u=String.fromCharCode(c[0])+String.fromCharCode(c[1])+String.fromCharCode(c[2])+String.fromCharCode(c[3]);if(!n.length&&"IHDR"!==u)throw new Error("IHDR header missing");if("IEND"===u){t=!0,n.push({name:u,data:new Uint8Array(0)});break}for(var d=4;d<l;d++)c[d]=e[s++];o[3]=e[s++],o[2]=e[s++],o[1]=e[s++],o[0]=e[s++];var p=i[0];if(r.buf(c)!==p)throw new Error("CRC values for "+u+" header do not match, PNG file is likely corrupted");var f=new Uint8Array(c.buffer.slice(4));n.push({name:u,data:f})}if(!t)throw new Error(".png file ended prematurely: no IEND header was found");return n};var o=new Uint8Array(4),i=new Int32Array(o.buffer),a=new Uint32Array(o.buffer)},1493:function(e,t,n){"use strict";function r(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function o(e,t,n){const o=r(t,n);if(0===o)return r(e,t);let a=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/o;return a=Math.max(0,Math.min(1,a)),r(e,i(t,n,a))}function i(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function a(e,t,n,o){const s=o||[];if(function(e,t){const n=e[t+0],r=e[t+1],o=e[t+2],i=e[t+3];let a=3*r[0]-2*n[0]-i[0];a*=a;let s=3*r[1]-2*n[1]-i[1];s*=s;let l=3*o[0]-2*i[0]-n[0];l*=l;let c=3*o[1]-2*i[1]-n[1];return c*=c,a<l&&(a=l),s<c&&(s=c),a+s}(e,t)<n){const n=e[t+0];s.length?(l=s[s.length-1],c=n,Math.sqrt(r(l,c))>1&&s.push(n)):s.push(n),s.push(e[t+3])}else{const r=.5,o=e[t+0],l=e[t+1],c=e[t+2],u=e[t+3],d=i(o,l,r),p=i(l,c,r),f=i(c,u,r),h=i(d,p,r),m=i(p,f,r),g=i(h,m,r);a([o,d,h,g],0,n,s),a([g,m,f,u],0,n,s)}var l,c;return s}function s(e,t){return l(e,0,e.length,t)}function l(e,t,n,r,i){const a=i||[],s=e[t],c=e[n-1];let u=0,d=1;for(let r=t+1;r<n-1;++r){const t=o(e[r],s,c);t>u&&(u=t,d=r)}return Math.sqrt(u)>r?(l(e,t,d+1,r,a),l(e,d,n,r,a)):(a.length||a.push(s),a.push(c)),a}function c(e,t=.15,n){const r=[],o=(e.length-1)/3;for(let n=0;n<o;n++)a(e,3*n,t,r);return n&&n>0?l(r,0,r.length,n):r}n.d(t,{o:function(){return s},s:function(){return c}})},6094:function(e,t,n){"use strict";var r=n(9787),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.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:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},4512:function(e,t,n){"use strict";e.exports=n(6094)},8152:function(e,t,n){"use strict";function r(){return Math.floor(Math.random()*2**31)}n.d(t,{W:function(){return r},k:function(){return o}});class o{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}},8234:function(e,t,n){"use strict";function r(e,t,n){if(e&&e.length){const[r,o]=t,i=Math.PI/180*n,a=Math.cos(i),s=Math.sin(i);e.forEach((e=>{const[t,n]=e;e[0]=(t-r)*a-(n-o)*s+r,e[1]=(t-r)*s+(n-o)*a+o}))}}function o(e){const t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}function i(e,t){const n=t.hachureAngle+90;let o=t.hachureGap;o<0&&(o=4*t.strokeWidth),o=Math.max(o,.1);const i=[0,0];if(n)for(const t of e)r(t,i,n);const a=function(e,t){const n=[];for(const t of e){const e=[...t];e[0].join(",")!==e[e.length-1].join(",")&&e.push([e[0][0],e[0][1]]),e.length>2&&n.push(e)}const r=[];t=Math.max(t,.1);const o=[];for(const e of n)for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];if(n[1]!==r[1]){const e=Math.min(n[1],r[1]);o.push({ymin:e,ymax:Math.max(n[1],r[1]),x:e===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(o.sort(((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!o.length)return r;let i=[],a=o[0].ymin;for(;i.length||o.length;){if(o.length){let e=-1;for(let t=0;t<o.length&&!(o[t].ymin>a);t++)e=t;o.splice(0,e+1).forEach((e=>{i.push({s:a,edge:e})}))}if(i=i.filter((e=>!(e.edge.ymax<=a))),i.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),i.length>1)for(let e=0;e<i.length;e+=2){const t=e+1;if(t>=i.length)break;const n=i[e].edge,o=i[t].edge;r.push([[Math.round(n.x),a],[Math.round(o.x),a]])}a+=t,i.forEach((e=>{e.edge.x=e.edge.x+t*e.edge.islope}))}return r}(e,o);if(n){for(const t of e)r(t,i,-n);!function(e,t,n){const o=[];e.forEach((e=>o.push(...e))),r(o,t,n)}(a,i,-n)}return a}n.d(t,{Z:function(){return V}});class a{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){const n=i(e,t);return{type:"fillSketch",ops:this.renderLines(n,t)}}renderLines(e,t){const n=[];for(const r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}}class s extends a{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);const r=i(e,Object.assign({},t,{hachureGap:n})),a=Math.PI/180*t.hachureAngle,s=[],l=.5*n*Math.cos(a),c=.5*n*Math.sin(a);for(const[e,t]of r)o([e,t])&&s.push([[e[0]-l,e[1]+c],[...t]],[[e[0]+l,e[1]-c],[...t]]);return{type:"fillSketch",ops:this.renderLines(s,t)}}}class l extends a{fillPolygons(e,t){const n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),o=this._fillPolygons(e,r);return n.ops=n.ops.concat(o.ops),n}}class c{constructor(e){this.helper=e}fillPolygons(e,t){const n=i(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){const n=[];let r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);const a=r/4;for(const s of e){const e=o(s),l=e/r,c=Math.ceil(l)-1,u=e-c*r,d=(s[0][0]+s[1][0])/2-r/4,p=Math.min(s[0][1],s[1][1]);for(let e=0;e<c;e++){const o=p+u+e*r,s=d-a+2*Math.random()*a,l=o-a+2*Math.random()*a,c=this.helper.ellipse(s,l,i,i,t);n.push(...c.ops)}}return{type:"fillSketch",ops:n}}}class u{constructor(e){this.helper=e}fillPolygons(e,t){const n=i(e,t);return{type:"fillSketch",ops:this.dashedLine(n,t)}}dashedLine(e,t){const n=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];return e.forEach((e=>{const a=o(e),s=Math.floor(a/(n+r)),l=(a+r-s*(n+r))/2;let c=e[0],u=e[1];c[0]>u[0]&&(c=e[1],u=e[0]);const d=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let e=0;e<s;e++){const o=e*(n+r),a=o+n,s=[c[0]+o*Math.cos(d)+l*Math.cos(d),c[1]+o*Math.sin(d)+l*Math.sin(d)],u=[c[0]+a*Math.cos(d)+l*Math.cos(d),c[1]+a*Math.sin(d)+l*Math.sin(d)];i.push(...this.helper.doubleLineOps(s[0],s[1],u[0],u[1],t))}})),i}}class d{constructor(e){this.helper=e}fillPolygons(e,t){const n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?n:t.zigzagOffset,o=i(e,t=Object.assign({},t,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(o,r,t)}}zigzagLines(e,t,n){const r=[];return e.forEach((e=>{const i=o(e),a=Math.round(i/(2*t));let s=e[0],l=e[1];s[0]>l[0]&&(s=e[1],l=e[0]);const c=Math.atan((l[1]-s[1])/(l[0]-s[0]));for(let e=0;e<a;e++){const o=2*e*t,i=2*(e+1)*t,a=Math.sqrt(2*Math.pow(t,2)),l=[s[0]+o*Math.cos(c),s[1]+o*Math.sin(c)],u=[s[0]+i*Math.cos(c),s[1]+i*Math.sin(c)],d=[l[0]+a*Math.cos(c+Math.PI/4),l[1]+a*Math.sin(c+Math.PI/4)];r.push(...this.helper.doubleLineOps(l[0],l[1],d[0],d[1],n),...this.helper.doubleLineOps(d[0],d[1],u[0],u[1],n))}})),r}}const p={};var f=n(8152);const h={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function m(e,t){return e.type===t}function g(e){const t=[],n=function(e){const t=new Array;for(;""!==e;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:""},t}(e);let r="BOD",o=0,i=n[o];for(;!m(i,2);){let a=0;const s=[];if("BOD"===r){if("M"!==i.text&&"m"!==i.text)return g("M0,0"+e);o++,a=h[i.text],r=i.text}else m(i,1)?a=h[r]:(o++,a=h[i.text],r=i.text);if(!(o+a<n.length))throw new Error("Path data ended short");for(let e=o;e<o+a;e++){const t=n[e];if(!m(t,1))throw new Error("Param not a number: "+r+","+t.text);s[s.length]=+t.text}if("number"!=typeof h[r])throw new Error("Bad segment: "+r);{const e={key:r,data:s};t.push(e),o+=a,i=n[o],"M"===r&&(r="L"),"m"===r&&(r="l")}}return t}function v(e){let t=0,n=0,r=0,o=0;const i=[];for(const{key:a,data:s}of e)switch(a){case"M":i.push({key:"M",data:[...s]}),[t,n]=s,[r,o]=s;break;case"m":t+=s[0],n+=s[1],i.push({key:"M",data:[t,n]}),r=t,o=n;break;case"L":i.push({key:"L",data:[...s]}),[t,n]=s;break;case"l":t+=s[0],n+=s[1],i.push({key:"L",data:[t,n]});break;case"C":i.push({key:"C",data:[...s]}),t=s[4],n=s[5];break;case"c":{const e=s.map(((e,r)=>r%2?e+n:e+t));i.push({key:"C",data:e}),t=e[4],n=e[5];break}case"Q":i.push({key:"Q",data:[...s]}),t=s[2],n=s[3];break;case"q":{const e=s.map(((e,r)=>r%2?e+n:e+t));i.push({key:"Q",data:e}),t=e[2],n=e[3];break}case"A":i.push({key:"A",data:[...s]}),t=s[5],n=s[6];break;case"a":t+=s[5],n+=s[6],i.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case"H":i.push({key:"H",data:[...s]}),t=s[0];break;case"h":t+=s[0],i.push({key:"H",data:[t]});break;case"V":i.push({key:"V",data:[...s]}),n=s[0];break;case"v":n+=s[0],i.push({key:"V",data:[n]});break;case"S":i.push({key:"S",data:[...s]}),t=s[2],n=s[3];break;case"s":{const e=s.map(((e,r)=>r%2?e+n:e+t));i.push({key:"S",data:e}),t=e[2],n=e[3];break}case"T":i.push({key:"T",data:[...s]}),t=s[0],n=s[1];break;case"t":t+=s[0],n+=s[1],i.push({key:"T",data:[t,n]});break;case"Z":case"z":i.push({key:"Z",data:[]}),t=r,n=o}return i}function b(e){const t=[];let n="",r=0,o=0,i=0,a=0,s=0,l=0;for(const{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[r,o]=u,[i,a]=u;break;case"C":t.push({key:"C",data:[...u]}),r=u[4],o=u[5],s=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[r,o]=u;break;case"H":r=u[0],t.push({key:"L",data:[r,o]});break;case"V":o=u[0],t.push({key:"L",data:[r,o]});break;case"S":{let e=0,i=0;"C"===n||"S"===n?(e=r+(r-s),i=o+(o-l)):(e=r,i=o),t.push({key:"C",data:[e,i,...u]}),s=u[0],l=u[1],r=u[2],o=u[3];break}case"T":{const[e,i]=u;let a=0,c=0;"Q"===n||"T"===n?(a=r+(r-s),c=o+(o-l)):(a=r,c=o);const d=r+2*(a-r)/3,p=o+2*(c-o)/3,f=e+2*(a-e)/3,h=i+2*(c-i)/3;t.push({key:"C",data:[d,p,f,h,e,i]}),s=a,l=c,r=e,o=i;break}case"Q":{const[e,n,i,a]=u,c=r+2*(e-r)/3,d=o+2*(n-o)/3,p=i+2*(e-i)/3,f=a+2*(n-a)/3;t.push({key:"C",data:[c,d,p,f,i,a]}),s=e,l=n,r=i,o=a;break}case"A":{const e=Math.abs(u[0]),n=Math.abs(u[1]),i=u[2],a=u[3],s=u[4],l=u[5],c=u[6];0===e||0===n?(t.push({key:"C",data:[r,o,l,c,l,c]}),r=l,o=c):r===l&&o===c||(w(r,o,l,c,e,n,i,a,s).forEach((function(e){t.push({key:"C",data:e})})),r=l,o=c);break}case"Z":t.push({key:"Z",data:[]}),r=i,o=a}n=c}return t}function y(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function w(e,t,n,r,o,i,a,s,l,c){const u=(d=a,Math.PI*d/180);var d;let p=[],f=0,h=0,m=0,g=0;if(c)[f,h,m,g]=c;else{[e,t]=y(e,t,-u),[n,r]=y(n,r,-u);const a=(e-n)/2,c=(t-r)/2;let d=a*a/(o*o)+c*c/(i*i);d>1&&(d=Math.sqrt(d),o*=d,i*=d);const p=o*o,v=i*i,b=p*v-p*c*c-v*a*a,w=p*c*c+v*a*a,x=(s===l?-1:1)*Math.sqrt(Math.abs(b/w));m=x*o*c/i+(e+n)/2,g=x*-i*a/o+(t+r)/2,f=Math.asin(parseFloat(((t-g)/i).toFixed(9))),h=Math.asin(parseFloat(((r-g)/i).toFixed(9))),e<m&&(f=Math.PI-f),n<m&&(h=Math.PI-h),f<0&&(f=2*Math.PI+f),h<0&&(h=2*Math.PI+h),l&&f>h&&(f-=2*Math.PI),!l&&h>f&&(h-=2*Math.PI)}let v=h-f;if(Math.abs(v)>120*Math.PI/180){const e=h,t=n,s=r;h=l&&h>f?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,p=w(n=m+o*Math.cos(h),r=g+i*Math.sin(h),t,s,o,i,a,0,l,[h,e,m,g])}v=h-f;const b=Math.cos(f),x=Math.sin(f),k=Math.cos(h),_=Math.sin(h),S=Math.tan(v/4),E=4/3*o*S,P=4/3*i*S,C=[e,t],O=[e+E*x,t-P*b],j=[n+E*_,r-P*k],T=[n,r];if(O[0]=2*C[0]-O[0],O[1]=2*C[1]-O[1],c)return[O,j,T].concat(p);{p=[O,j,T].concat(p);const e=[];for(let t=0;t<p.length;t+=3){const n=y(p[t][0],p[t][1],u),r=y(p[t+1][0],p[t+1][1],u),o=y(p[t+2][0],p[t+2][1],u);e.push([n[0],n[1],r[0],r[1],o[0],o[1]])}return e}}const x={randOffset:function(e,t){return M(e,t)},randOffsetWithRange:function(e,t,n){return T(e,t,n)},ellipse:function(e,t,n,r,o){return E(e,t,o,S(n,r,o)).opset},doubleLineOps:function(e,t,n,r,o){return I(e,t,n,r,o,!0)}};function k(e,t,n,r,o){return{type:"path",ops:I(e,t,n,r,o)}}function _(e,t,n){const r=(e||[]).length;if(r>2){const o=[];for(let t=0;t<r-1;t++)o.push(...I(e[t][0],e[t][1],e[t+1][0],e[t+1][1],n));return t&&o.push(...I(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:o}}return 2===r?k(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function S(e,t,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),o=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),i=2*Math.PI/o;let a=Math.abs(e/2),s=Math.abs(t/2);const l=1-n.curveFitting;return a+=M(a*l,n),s+=M(s*l,n),{increment:i,rx:a,ry:s}}function E(e,t,n,r){const[o,i]=N(r.increment,e,t,r.rx,r.ry,1,r.increment*T(.1,T(.4,1,n),n),n);let a=L(o,null,n);if(!n.disableMultiStroke&&0!==n.roughness){const[o]=N(r.increment,e,t,r.rx,r.ry,1.5,0,n),i=L(o,null,n);a=a.concat(i)}return{estimatedPoints:i,opset:{type:"path",ops:a}}}function P(e,t,n,r,o,i,a,s,l){const c=e,u=t;let d=Math.abs(n/2),p=Math.abs(r/2);d+=M(.01*d,l),p+=M(.01*p,l);let f=o,h=i;for(;f<0;)f+=2*Math.PI,h+=2*Math.PI;h-f>2*Math.PI&&(f=0,h=2*Math.PI);const m=2*Math.PI/l.curveStepCount,g=Math.min(m/2,(h-f)/2),v=R(g,c,u,d,p,f,h,1,l);if(!l.disableMultiStroke){const e=R(g,c,u,d,p,f,h,1.5,l);v.push(...e)}return a&&(s?v.push(...I(c,u,c+d*Math.cos(f),u+p*Math.sin(f),l),...I(c,u,c+d*Math.cos(h),u+p*Math.sin(h),l)):v.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+d*Math.cos(f),u+p*Math.sin(f)]})),{type:"path",ops:v}}function C(e,t){const n=[];for(const r of e)if(r.length){const e=t.maxRandomnessOffset||0,o=r.length;if(o>2){n.push({op:"move",data:[r[0][0]+M(e,t),r[0][1]+M(e,t)]});for(let i=1;i<o;i++)n.push({op:"lineTo",data:[r[i][0]+M(e,t),r[i][1]+M(e,t)]})}}return{type:"fillPath",ops:n}}function O(e,t){return function(e,t){let n=e.fillStyle||"hachure";if(!p[n])switch(n){case"zigzag":p[n]||(p[n]=new s(t));break;case"cross-hatch":p[n]||(p[n]=new l(t));break;case"dots":p[n]||(p[n]=new c(t));break;case"dashed":p[n]||(p[n]=new u(t));break;case"zigzag-line":p[n]||(p[n]=new d(t));break;default:n="hachure",p[n]||(p[n]=new a(t))}return p[n]}(t,x).fillPolygons(e,t)}function j(e){return e.randomizer||(e.randomizer=new f.k(e.seed||0)),e.randomizer.next()}function T(e,t,n,r=1){return n.roughness*r*(j(n)*(t-e)+e)}function M(e,t,n=1){return T(-e,e,t,n)}function I(e,t,n,r,o,i=!1){const a=i?o.disableMultiStrokeFill:o.disableMultiStroke,s=D(e,t,n,r,o,!0,!1);if(a)return s;const l=D(e,t,n,r,o,!0,!0);return s.concat(l)}function D(e,t,n,r,o,i,a){const s=Math.pow(e-n,2)+Math.pow(t-r,2),l=Math.sqrt(s);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=o.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);const d=u/2,p=.2+.2*j(o);let f=o.bowing*o.maxRandomnessOffset*(r-t)/200,h=o.bowing*o.maxRandomnessOffset*(e-n)/200;f=M(f,o,c),h=M(h,o,c);const m=[],g=()=>M(d,o,c),v=()=>M(u,o,c),b=o.preserveVertices;return i&&(a?m.push({op:"move",data:[e+(b?0:g()),t+(b?0:g())]}):m.push({op:"move",data:[e+(b?0:M(u,o,c)),t+(b?0:M(u,o,c))]})),a?m.push({op:"bcurveTo",data:[f+e+(n-e)*p+g(),h+t+(r-t)*p+g(),f+e+2*(n-e)*p+g(),h+t+2*(r-t)*p+g(),n+(b?0:g()),r+(b?0:g())]}):m.push({op:"bcurveTo",data:[f+e+(n-e)*p+v(),h+t+(r-t)*p+v(),f+e+2*(n-e)*p+v(),h+t+2*(r-t)*p+v(),n+(b?0:v()),r+(b?0:v())]}),m}function A(e,t,n){const r=[];r.push([e[0][0]+M(t,n),e[0][1]+M(t,n)]),r.push([e[0][0]+M(t,n),e[0][1]+M(t,n)]);for(let o=1;o<e.length;o++)r.push([e[o][0]+M(t,n),e[o][1]+M(t,n)]),o===e.length-1&&r.push([e[o][0]+M(t,n),e[o][1]+M(t,n)]);return L(r,null,n)}function L(e,t,n){const r=e.length,o=[];if(r>3){const i=[],a=1-n.curveTightness;o.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){const n=e[t];i[0]=[n[0],n[1]],i[1]=[n[0]+(a*e[t+1][0]-a*e[t-1][0])/6,n[1]+(a*e[t+1][1]-a*e[t-1][1])/6],i[2]=[e[t+1][0]+(a*e[t][0]-a*e[t+2][0])/6,e[t+1][1]+(a*e[t][1]-a*e[t+2][1])/6],i[3]=[e[t+1][0],e[t+1][1]],o.push({op:"bcurveTo",data:[i[1][0],i[1][1],i[2][0],i[2][1],i[3][0],i[3][1]]})}if(t&&2===t.length){const e=n.maxRandomnessOffset;o.push({op:"lineTo",data:[t[0]+M(e,n),t[1]+M(e,n)]})}}else 3===r?(o.push({op:"move",data:[e[1][0],e[1][1]]}),o.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===r&&o.push(...I(e[0][0],e[0][1],e[1][0],e[1][1],n));return o}function N(e,t,n,r,o,i,a,s){const l=[],c=[];if(0===s.roughness){e/=4,c.push([t+r*Math.cos(-e),n+o*Math.sin(-e)]);for(let i=0;i<=2*Math.PI;i+=e){const e=[t+r*Math.cos(i),n+o*Math.sin(i)];l.push(e),c.push(e)}c.push([t+r*Math.cos(0),n+o*Math.sin(0)]),c.push([t+r*Math.cos(e),n+o*Math.sin(e)])}else{const u=M(.5,s)-Math.PI/2;c.push([M(i,s)+t+.9*r*Math.cos(u-e),M(i,s)+n+.9*o*Math.sin(u-e)]);const d=2*Math.PI+u-.01;for(let a=u;a<d;a+=e){const e=[M(i,s)+t+r*Math.cos(a),M(i,s)+n+o*Math.sin(a)];l.push(e),c.push(e)}c.push([M(i,s)+t+r*Math.cos(u+2*Math.PI+.5*a),M(i,s)+n+o*Math.sin(u+2*Math.PI+.5*a)]),c.push([M(i,s)+t+.98*r*Math.cos(u+a),M(i,s)+n+.98*o*Math.sin(u+a)]),c.push([M(i,s)+t+.9*r*Math.cos(u+.5*a),M(i,s)+n+.9*o*Math.sin(u+.5*a)])}return[c,l]}function R(e,t,n,r,o,i,a,s,l){const c=i+M(.1,l),u=[];u.push([M(s,l)+t+.9*r*Math.cos(c-e),M(s,l)+n+.9*o*Math.sin(c-e)]);for(let i=c;i<=a;i+=e)u.push([M(s,l)+t+r*Math.cos(i),M(s,l)+n+o*Math.sin(i)]);return u.push([t+r*Math.cos(a),n+o*Math.sin(a)]),u.push([t+r*Math.cos(a),n+o*Math.sin(a)]),L(u,null,l)}function z(e,t,n,r,o,i,a,s){const l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let u=[0,0];const d=s.disableMultiStroke?1:2,p=s.preserveVertices;for(let f=0;f<d;f++)0===f?l.push({op:"move",data:[a[0],a[1]]}):l.push({op:"move",data:[a[0]+(p?0:M(c[0],s)),a[1]+(p?0:M(c[0],s))]}),u=p?[o,i]:[o+M(c[f],s),i+M(c[f],s)],l.push({op:"bcurveTo",data:[e+M(c[f],s),t+M(c[f],s),n+M(c[f],s),r+M(c[f],s),u[0],u[1]]});return l}function F(e){return[...e]}var Z=n(1493);const B="none";class U{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return(0,f.W)()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,o){const i=this._o(o);return this._d("line",[k(e,t,n,r,i)],i)}rectangle(e,t,n,r,o){const i=this._o(o),a=[],s=function(e,t,n,r,o){return function(e,t){return _(e,!0,t)}([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],o)}(e,t,n,r,i);if(i.fill){const o=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];"solid"===i.fillStyle?a.push(C([o],i)):a.push(O([o],i))}return i.stroke!==B&&a.push(s),this._d("rectangle",a,i)}ellipse(e,t,n,r,o){const i=this._o(o),a=[],s=S(n,r,i),l=E(e,t,i,s);if(i.fill)if("solid"===i.fillStyle){const n=E(e,t,i,s).opset;n.type="fillPath",a.push(n)}else a.push(O([l.estimatedPoints],i));return i.stroke!==B&&a.push(l.opset),this._d("ellipse",a,i)}circle(e,t,n,r){const o=this.ellipse(e,t,n,n,r);return o.shape="circle",o}linearPath(e,t){const n=this._o(t);return this._d("linearPath",[_(e,!1,n)],n)}arc(e,t,n,r,o,i,a=!1,s){const l=this._o(s),c=[],u=P(e,t,n,r,o,i,a,!0,l);if(a&&l.fill)if("solid"===l.fillStyle){const a=Object.assign({},l);a.disableMultiStroke=!0;const s=P(e,t,n,r,o,i,!0,!1,a);s.type="fillPath",c.push(s)}else c.push(function(e,t,n,r,o,i,a){const s=e,l=t;let c=Math.abs(n/2),u=Math.abs(r/2);c+=M(.01*c,a),u+=M(.01*u,a);let d=o,p=i;for(;d<0;)d+=2*Math.PI,p+=2*Math.PI;p-d>2*Math.PI&&(d=0,p=2*Math.PI);const f=(p-d)/a.curveStepCount,h=[];for(let e=d;e<=p;e+=f)h.push([s+c*Math.cos(e),l+u*Math.sin(e)]);return h.push([s+c*Math.cos(p),l+u*Math.sin(p)]),h.push([s,l]),O([h],a)}(e,t,n,r,o,i,l));return l.stroke!==B&&c.push(u),this._d("arc",c,l)}curve(e,t){const n=this._o(t),r=[],o=function(e,t){let n=A(e,1*(1+.2*t.roughness),t);if(!t.disableMultiStroke){const r=A(e,1.5*(1+.22*t.roughness),function(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}(t));n=n.concat(r)}return{type:"path",ops:n}}(e,n);if(n.fill&&n.fill!==B&&e.length>=3){const t=function(e,t=0){const n=e.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(3===n)r.push(F(e[0]),F(e[1]),F(e[2]),F(e[2]));else{const n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);const o=[],i=1-t;r.push(F(n[0]));for(let e=1;e+2<n.length;e++){const t=n[e];o[0]=[t[0],t[1]],o[1]=[t[0]+(i*n[e+1][0]-i*n[e-1][0])/6,t[1]+(i*n[e+1][1]-i*n[e-1][1])/6],o[2]=[n[e+1][0]+(i*n[e][0]-i*n[e+2][0])/6,n[e+1][1]+(i*n[e][1]-i*n[e+2][1])/6],o[3]=[n[e+1][0],n[e+1][1]],r.push(o[1],o[2],o[3])}}return r}(e),o=(0,Z.s)(t,10,(1+n.roughness)/2);"solid"===n.fillStyle?r.push(C([o],n)):r.push(O([o],n))}return n.stroke!==B&&r.push(o),this._d("curve",r,n)}polygon(e,t){const n=this._o(t),r=[],o=_(e,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(C([e],n)):r.push(O([e],n))),n.stroke!==B&&r.push(o),this._d("polygon",r,n)}path(e,t){const n=this._o(t),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=n.fill&&"transparent"!==n.fill&&n.fill!==B,i=n.stroke!==B,a=!!(n.simplification&&n.simplification<1),s=function(e,t,n){const r=b(v(g(e))),o=[];let i=[],a=[0,0],s=[];const l=()=>{s.length>=4&&i.push(...(0,Z.s)(s,1)),s=[]},c=()=>{l(),i.length&&(o.push(i),i=[])};for(const{key:e,data:t}of r)switch(e){case"M":c(),a=[t[0],t[1]],i.push(a);break;case"L":l(),i.push([t[0],t[1]]);break;case"C":if(!s.length){const e=i.length?i[i.length-1]:a;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case"Z":l(),i.push([a[0],a[1]])}if(c(),!n)return o;const u=[];for(const e of o){const t=(0,Z.o)(e,n);t.length&&u.push(t)}return u}(e,0,a?4-4*n.simplification:(1+n.roughness)/2);return o&&("solid"===n.fillStyle?r.push(C(s,n)):r.push(O(s,n))),i&&(a?s.forEach((e=>{r.push(_(e,!1,n))})):r.push(function(e,t){const n=b(v(g(e))),r=[];let o=[0,0],i=[0,0];for(const{key:e,data:a}of n)switch(e){case"M":{const e=1*(t.maxRandomnessOffset||0),n=t.preserveVertices;r.push({op:"move",data:a.map((r=>r+(n?0:M(e,t))))}),i=[a[0],a[1]],o=[a[0],a[1]];break}case"L":r.push(...I(i[0],i[1],a[0],a[1],t)),i=[a[0],a[1]];break;case"C":{const[e,n,o,s,l,c]=a;r.push(...z(e,n,o,s,l,c,i,t)),i=[l,c];break}case"Z":r.push(...I(i[0],i[1],o[0],o[1],t)),i=[o[0],o[1]]}return{type:"path",ops:r}}(e,n))),this._d("path",r,n)}opsToPath(e,t){let n="";for(const r of e.ops){const e="number"==typeof t&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case"move":n+=`M${e[0]} ${e[1]} `;break;case"bcurveTo":n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case"lineTo":n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){const t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(const e of t){let t=null;switch(e.type){case"path":t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:B};break;case"fillPath":t={d:this.opsToPath(e),stroke:B,strokeWidth:0,fill:n.fill||B};break;case"fillSketch":t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||B,strokeWidth:n,fill:B}}}class W{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new U(t)}draw(e){const t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,o=e.options.fixedDecimalPlaceDigits;for(const i of t)switch(i.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,i,o),r.restore();break;case"fillPath":{r.save(),r.fillStyle=n.fill||"";const t="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(r,i,o,t),r.restore();break}case"fillSketch":this.fillSketch(r,i,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r="nonzero"){e.beginPath();for(const r of t.ops){const t="number"==typeof n&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case"move":e.moveTo(t[0],t[1]);break;case"bcurveTo":e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case"lineTo":e.lineTo(t[0],t[1])}}"fillPath"===t.type?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,o){const i=this.gen.line(e,t,n,r,o);return this.draw(i),i}rectangle(e,t,n,r,o){const i=this.gen.rectangle(e,t,n,r,o);return this.draw(i),i}ellipse(e,t,n,r,o){const i=this.gen.ellipse(e,t,n,r,o);return this.draw(i),i}circle(e,t,n,r){const o=this.gen.circle(e,t,n,r);return this.draw(o),o}linearPath(e,t){const n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){const n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,o,i,a=!1,s){const l=this.gen.arc(e,t,n,r,o,i,a,s);return this.draw(l),l}curve(e,t){const n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){const n=this.gen.path(e,t);return this.draw(n),n}}const H="http://www.w3.org/2000/svg";class K{constructor(e,t){this.svg=e,this.gen=new U(t)}draw(e){const t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,o=r.createElementNS(H,"g"),i=e.options.fixedDecimalPlaceDigits;for(const a of t){let t=null;switch(a.type){case"path":t=r.createElementNS(H,"path"),t.setAttribute("d",this.opsToPath(a,i)),t.setAttribute("stroke",n.stroke),t.setAttribute("stroke-width",n.strokeWidth+""),t.setAttribute("fill","none"),n.strokeLineDash&&t.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":t=r.createElementNS(H,"path"),t.setAttribute("d",this.opsToPath(a,i)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",n.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(r,a,n)}t&&o.appendChild(t)}return o}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);const o=e.createElementNS(H,"path");return o.setAttribute("d",this.opsToPath(t,n.fixedDecimalPlaceDigits)),o.setAttribute("stroke",n.fill||""),o.setAttribute("stroke-width",r+""),o.setAttribute("fill","none"),n.fillLineDash&&o.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,o){const i=this.gen.line(e,t,n,r,o);return this.draw(i)}rectangle(e,t,n,r,o){const i=this.gen.rectangle(e,t,n,r,o);return this.draw(i)}ellipse(e,t,n,r,o){const i=this.gen.ellipse(e,t,n,r,o);return this.draw(i)}circle(e,t,n,r){const o=this.gen.circle(e,t,n,r);return this.draw(o)}linearPath(e,t){const n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){const n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,o,i,a=!1,s){const l=this.gen.arc(e,t,n,r,o,i,a,s);return this.draw(l)}curve(e,t){const n=this.gen.curve(e,t);return this.draw(n)}path(e,t){const n=this.gen.path(e,t);return this.draw(n)}}var V={canvas:(e,t)=>new W(e,t),svg:(e,t)=>new K(e,t),generator:e=>new U(e),newSeed:()=>U.newSeed()}},5714:function(e){e.exports=function(e,t,n){var r=[],o=e.length;if(0===o)return r;var i=t<0?Math.max(0,t+o):t||0;for(void 0!==n&&(o=n<0?n+o:n);o-- >i;)r[o-i]=e[o];return r}},5422:function(e,t,n){"use strict";var r=n(487),o=n.n(r),i=n(631),a=n.n(i),s=n(2052),l=n.n(s),c=n(4010),u=n.n(c),d=n(1469),p=n.n(d),f=n(9329),h=n.n(f),m=n(2044),g={};g.styleTagTransform=h(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p(),o()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals},487:function(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var p=n(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},2052:function(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},1469:function(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},4010:function(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},631:function(e){"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9329:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},2173:function(e,t,n){"use strict";var r=n(9787),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},5917:function(e,t,n){"use strict";var r=n(9787),o=n(1374),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var f=a(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=f}),[f]),u(f),f}},1374:function(e,t,n){"use strict";e.exports=n(2173)},5668:function(e,t,n){"use strict";e.exports=n(5917)},940:function(e,t,n){var r={"./ar-SA.json":[7822,2091],"./bg-BG.json":[1203,1628],"./bn-BD.json":[8525,7429],"./ca-ES.json":[510,5130],"./cs-CZ.json":[7605,6265],"./da-DK.json":[2392,1790],"./de-DE.json":[2853,3082],"./el-GR.json":[9876,1513],"./en.json":[1463],"./es-ES.json":[9952,8759],"./eu-ES.json":[5658,8081],"./fa-IR.json":[3747,5330],"./fi-FI.json":[9490,3512],"./fr-FR.json":[7830,3682],"./gl-ES.json":[5199,2943],"./he-IL.json":[1994,2312],"./hi-IN.json":[4646,9828],"./hu-HU.json":[6373,7368],"./id-ID.json":[3247,3808],"./it-IT.json":[3257,6239],"./ja-JP.json":[198,1204],"./kab-KAB.json":[228,9551],"./kk-KZ.json":[8972,22],"./ko-KR.json":[7596,6844],"./ku-TR.json":[2508,3031],"./lt-LT.json":[3755,8340],"./lv-LV.json":[2327,6768],"./mr-IN.json":[5297,3397],"./my-MM.json":[7704,1477],"./nb-NO.json":[1167,2359],"./nl-NL.json":[290,3024],"./nn-NO.json":[4481,3885],"./oc-FR.json":[2284,1690],"./pa-IN.json":[5383,3162],"./percentages.json":[4451],"./pl-PL.json":[3661,3674],"./pt-BR.json":[8881,3721],"./pt-PT.json":[5622,5395],"./ro-RO.json":[2013,5089],"./ru-RU.json":[2253,8124],"./si-LK.json":[5497,1302],"./sk-SK.json":[4570,8750],"./sl-SI.json":[1984,6071],"./sv-SE.json":[6006,8534],"./ta-IN.json":[3952,2404],"./th-TH.json":[2596,537],"./tr-TR.json":[7315,4977],"./uk-UA.json":[334,7759],"./vi-VN.json":[456,4e3],"./zh-CN.json":[1037,4680],"./zh-HK.json":[5334,7920],"./zh-TW.json":[931,3421]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n.t(o,19)}))}o.keys=function(){return Object.keys(r)},o.id=940,e.exports=o},9713: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}},6479:function(e,t,n){var r=n(7316);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},7316:function(e){e.exports=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}},4295:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i),s=n(1667),l=n.n(s),c=new URL(n(3940),n.b),u=new URL(n(3147),n.b),d=new URL(n(8303),n.b),p=new URL(n(1273),n.b),f=new URL(n(9577),n.b),h=new URL(n(9729),n.b),m=a()(o()),g=l()(c),v=l()(u),b=l()(d),y=l()(p),w=l()(f),x=l()(h);m.push([e.id,'@font-face{font-family:"Virgil";src:url('+g+');font-display:swap}@font-face{font-family:"Cascadia";src:url('+v+');font-display:swap}@font-face{font-family:"Assistant";src:url('+b+');font-display:swap;font-weight:400}@font-face{font-family:"Assistant";src:url('+y+');font-display:swap;font-weight:500}@font-face{font-family:"Assistant";src:url('+w+');font-display:swap;font-weight:600}@font-face{font-family:"Assistant";src:url('+x+");font-display:swap;font-weight:700}",""]),t.Z=m},6086:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".zoom-actions,.undo-redo-buttons{background-color:var(--island-bg-color);border-radius:var(--border-radius-lg)}.zoom-button,.undo-redo-buttons button{border:1px solid var(--default-border-color) !important;border-radius:0 !important;background-color:rgba(0,0,0,0) !important;font-size:.875rem !important;width:var(--lg-button-size);height:var(--lg-button-size)}.zoom-button svg,.undo-redo-buttons button svg{width:var(--lg-icon-size) !important;height:var(--lg-icon-size) !important}.zoom-button .ToolIcon__icon,.undo-redo-buttons button .ToolIcon__icon{width:100%;height:100%}.reset-zoom-button{border-left:0 !important;border-right:0 !important;padding:0 .625rem !important;width:3.75rem !important;justify-content:center;color:var(--text-primary-color)}.zoom-out-button{border-top-left-radius:var(--border-radius-lg) !important;border-bottom-left-radius:var(--border-radius-lg) !important}:root[dir=rtl] .zoom-out-button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.zoom-out-button .ToolIcon__icon{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.zoom-in-button{border-top-right-radius:var(--border-radius-lg) !important;border-bottom-right-radius:var(--border-radius-lg) !important}:root[dir=rtl] .zoom-in-button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.zoom-in-button .ToolIcon__icon{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.undo-redo-buttons .undo-button-container button{border-top-left-radius:var(--border-radius-lg) !important;border-bottom-left-radius:var(--border-radius-lg) !important;border-right:0 !important}:root[dir=rtl] .undo-redo-buttons .undo-button-container button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.undo-redo-buttons .undo-button-container button .ToolIcon__icon{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.undo-redo-buttons .redo-button-container button{border-top-right-radius:var(--border-radius-lg) !important;border-bottom-right-radius:var(--border-radius-lg) !important}:root[dir=rtl] .undo-redo-buttons .redo-button-container button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.undo-redo-buttons .redo-button-container button .ToolIcon__icon{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}",""]),t.Z=a},3729:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Avatar{width:1.25rem;height:1.25rem;position:relative;border-radius:100%;outline-offset:2px;display:flex;justify-content:center;align-items:center;color:#fff;cursor:pointer;font-size:.625rem;font-weight:500;line-height:1}.excalidraw .Avatar-img{width:100%;height:100%;border-radius:100%}.excalidraw .Avatar::before{content:"";position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:1px solid var(--avatar-border-color);border-radius:100%}',""]),t.Z=a},3137:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i),s=n(1667),l=n.n(s),c=new URL(n(7984),n.b),u=new URL(n(1639),n.b),d=a()(o()),p=l()(c),f=l()(u);d.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--theme-filter: none;--button-destructive-bg-color: #ffe3e3;--button-destructive-color: #c92a2a;--button-gray-1: #e9ecef;--button-gray-2: #ced4da;--button-gray-3: #adb5bd;--button-special-active-bg-color: #ebfbee;--dialog-border-color: var(--color-gray-20);--dropdown-icon: url("+p+");--focus-highlight-color: #a5d8ff;--icon-fill-color: var(--color-gray-80);--icon-green-fill-color: #2b8a3e;--default-bg-color: #ffffff;--input-bg-color: #ffffff;--input-border-color: #ced4da;--input-hover-bg-color: #f1f3f5;--input-label-color: #495057;--island-bg-color: rgba(255, 255, 255, 0.96);--keybinding-color: var(--color-gray-40);--link-color: #1c7ed6;--overlay-bg-color: rgba(255, 255, 255, 0.88);--popup-bg-color: #ffffff;--popup-secondary-bg-color: #f1f3f5;--popup-text-color: #000000;--popup-text-inverted-color: #ffffff;--sab: env(safe-area-inset-bottom);--sal: env(safe-area-inset-left);--sar: env(safe-area-inset-right);--sat: env(safe-area-inset-top);--select-highlight-color: #339af0;--shadow-island: 0px 7px 14px rgba(0, 0, 0, 0.05), 0px 0px 3.12708px rgba(0, 0, 0, 0.0798), 0px 0px 0.931014px rgba(0, 0, 0, 0.1702);--button-hover-bg: var(--color-gray-10);--default-border-color: var(--color-gray-30);--default-button-size: 2rem;--default-icon-size: 1rem;--lg-button-size: 2.25rem;--lg-icon-size: 1rem;--editor-container-padding: 1rem;--scrollbar-thumb: var(--button-gray-2);--scrollbar-thumb-hover: var(--button-gray-3);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-20);--sidebar-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--sidebar-border-color: var(--color-gray-20);--sidebar-bg-color: #fff;--library-dropdown-shadow: 0px 15px 6px rgba(0, 0, 0, 0.01), 0px 8px 5px rgba(0, 0, 0, 0.05), 0px 4px 4px rgba(0, 0, 0, 0.09), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);--space-factor: 0.25rem;--text-primary-color: var(--color-gray-80);--color-selection: #6965db;--color-primary: #6965db;--color-primary-darker: #5b57d1;--color-primary-darkest: #4a47b1;--color-primary-light: #e3e2fe;--color-gray-10: #f5f5f5;--color-gray-20: #ebebeb;--color-gray-30: #d6d6d6;--color-gray-40: #b8b8b8;--color-gray-50: #999999;--color-gray-60: #7a7a7a;--color-gray-70: #5c5c5c;--color-gray-80: #3d3d3d;--color-gray-85: #242424;--color-gray-90: #1e1e1e;--color-gray-100: #121212;--color-warning: #fceeca;--color-text-warning: var(--text-primary-color);--color-danger: #db6965;--color-promo: #e70078;--border-radius-md: 0.375rem;--border-radius-lg: 0.5rem}@media screen and (min-device-width: 1921px){.excalidraw{--lg-button-size: 2.5rem;--lg-icon-size: 1.25rem;--default-button-size: 2.25rem;--default-icon-size: 1.25rem}}.excalidraw.theme--dark.theme--dark-background-none{background:none}.excalidraw.theme--dark{--theme-filter: invert(93%) hue-rotate(180deg);--button-destructive-bg-color: #5a0000;--button-destructive-color: #ffa8a8;--button-gray-1: #363636;--button-gray-2: #272727;--button-gray-3: #222;--button-special-active-bg-color: #204624;--dialog-border-color: var(--color-gray-80);--dropdown-icon: url("+f+");--focus-highlight-color: #228be6;--icon-fill-color: var(--color-gray-40);--icon-green-fill-color: #69db7c;--default-bg-color: #121212;--input-bg-color: #121212;--input-border-color: #2e2e2e;--input-hover-bg-color: #181818;--input-label-color: #e9ecef;--island-bg-color: #262627;--keybinding-color: var(--color-gray-60);--link-color: #4dabf7;--overlay-bg-color: rgba(52, 58, 64, 0.12);--popup-bg-color: #2c2c2c;--popup-secondary-bg-color: #222;--popup-text-color: #ced4da;--popup-text-inverted-color: #2c2c2c;--select-highlight-color: #4dabf7;--text-primary-color: var(--color-gray-40);--button-hover-bg: var(--color-gray-80);--default-border-color: var(--color-gray-80);--shadow-island: 0px 13px 33px rgba(0, 0, 0, 0.07), 0px 4.13px 9.94853px rgba(0, 0, 0, 0.0456112), 0px 1.13px 4.13211px rgba(0, 0, 0, 0.035), 0px 0.769896px 1.4945px rgba(0, 0, 0, 0.0243888);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-85);--sidebar-border-color: var(--color-gray-85);--sidebar-bg-color: #191919;--scrollbar-thumb: #343a40;--scrollbar-thumb-hover: #495057;--color-selection: #3530c4;--color-primary: #a8a5ff;--color-primary-darker: #b2aeff;--color-primary-darkest: #beb9ff;--color-primary-light: #4f4d6f;--color-text-warning: var(--color-gray-80);--color-danger: #ffa8a5;--color-promo: #d297ff}.excalidraw .excalidraw-button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color))}.excalidraw .excalidraw-button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .excalidraw-button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.excalidraw .excalidraw-button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .excalidraw-button.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.excalidraw .excalidraw-button.active:hover{background-color:var(--color-primary-light)}.excalidraw .excalidraw-button.active svg{color:var(--button-color, var(--color-primary-darker))}",""]),t.Z=d},4241:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Card{display:flex;flex-direction:column;align-items:center;max-width:290px;margin:1em;text-align:center}.excalidraw .Card .Card-icon{font-size:2.6em;display:flex;flex:0 0 auto;padding:1.4rem;border-radius:50%;background:var(--card-color);color:#fff}.excalidraw .Card .Card-icon svg{width:2.8rem;height:2.8rem}.excalidraw .Card .Card-details{font-size:.96em;min-height:90px;padding:0 1em;margin-bottom:auto}.excalidraw .Card .Card-button.ToolIcon_type_button{height:2.5rem;margin-top:1em;margin-bottom:.3em;background-color:var(--card-color)}.excalidraw .Card .Card-button.ToolIcon_type_button:hover{background-color:var(--card-color-darker)}.excalidraw .Card .Card-button.ToolIcon_type_button:active{background-color:var(--card-color-darkest)}.excalidraw .Card .Card-button.ToolIcon_type_button .ToolIcon__label{color:#fff}.excalidraw .Card .Card-button.ToolIcon_type_button .Spinner{--spinner-color: #fff}",""]),t.Z=a},6029:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Checkbox{margin:4px .3em;display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.excalidraw .Checkbox:hover:not(.is-checked) .Checkbox-box:not(:focus){box-shadow:0 0 0 2px #4dabf7}.excalidraw .Checkbox:hover:not(.is-checked) .Checkbox-box:not(:focus) svg{display:block;opacity:.3}.excalidraw .Checkbox:active .Checkbox-box{box-shadow:0 0 2px 1px inset #1c7ed6 !important}.excalidraw .Checkbox:hover .Checkbox-box{background-color:rgba(208,235,255,.2)}.excalidraw .Checkbox.is-checked .Checkbox-box{background-color:#d0ebff}.excalidraw .Checkbox.is-checked .Checkbox-box svg{display:block}.excalidraw .Checkbox.is-checked:hover .Checkbox-box{background-color:#a5d8ff}.excalidraw .Checkbox .Checkbox-box{width:22px;height:22px;padding:0;flex:0 0 auto;margin:0 1em;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #1c7ed6;background-color:rgba(0,0,0,0);border-radius:4px;color:#1c7ed6;border:0}.excalidraw .Checkbox .Checkbox-box:focus{box-shadow:0 0 0 3px #1c7ed6}.excalidraw .Checkbox .Checkbox-box svg{display:none;width:16px;height:16px;stroke-width:3px}.excalidraw .Checkbox .Checkbox-label{display:flex;align-items:center}.excalidraw .Checkbox .excalidraw-tooltip-icon{width:1em;height:1em}",""]),t.Z=a},2345:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i),s=n(1667),l=n.n(s),c=new URL(n(9669),n.b),u=a()(o()),d=l()(c);u.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .color-picker{background:var(--popup-bg-color);border:0 solid rgba(255,255,255,.25);box-shadow:rgba(0,0,0,.25) 0 1px 4px;border-radius:4px;position:absolute}:root[dir=ltr] .excalidraw .color-picker{left:-5.5px}:root[dir=rtl] .excalidraw .color-picker{right:-5.5px}.excalidraw .color-picker-control-container{display:grid;grid-template-columns:auto 1fr;align-items:center;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .color-picker-control-container+.popover{position:static}.excalidraw .color-picker-popover-container{margin-top:-0.25rem}:root[dir=ltr] .excalidraw .color-picker-popover-container{margin-left:.5rem}:root[dir=rtl] .excalidraw .color-picker-popover-container{margin-left:-3rem}.excalidraw .color-picker-triangle{width:0;height:0;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--popup-bg-color);position:absolute;top:10px}:root[dir=ltr] .excalidraw .color-picker-triangle{-webkit-transform:rotate(270deg);transform:rotate(270deg);left:-14px}:root[dir=rtl] .excalidraw .color-picker-triangle{-webkit-transform:rotate(90deg);transform:rotate(90deg);right:-14px}.excalidraw .color-picker-triangle-shadow{border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,.1)}:root[dir=ltr] .excalidraw .color-picker-triangle-shadow{left:-14px}:root[dir=rtl] .excalidraw .color-picker-triangle-shadow{right:-16px}.excalidraw .color-picker-content--default{padding:.5rem;display:grid;grid-template-columns:repeat(5, auto);grid-gap:.5rem;border-radius:4px}.excalidraw .color-picker-content--default:focus{outline:none;box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .color-picker-content--canvas{display:flex;flex-direction:column;padding:.25rem}.excalidraw .color-picker-content--canvas-title{color:#868e96;font-size:12px;padding:0 .25rem}.excalidraw .color-picker-content--canvas-colors{padding:.5rem 0}.excalidraw .color-picker-content--canvas-colors .color-picker-swatch{margin:0 .25rem}.excalidraw .color-picker-content .color-input-container{grid-column:1/span 5}.excalidraw .color-picker-swatch{position:relative;height:1.875rem;width:1.875rem;cursor:pointer;border-radius:4px;margin:0;box-sizing:border-box;border:1px solid #ddd;background-color:currentColor !important;-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .color-picker-swatch:focus{box-shadow:0 0 4px 1px currentColor;border-color:var(--select-highlight-color)}.excalidraw .color-picker-transparent{border-radius:4px;box-shadow:rgba(0,0,0,.1) 0 0 0 1px inset;position:absolute;top:0;right:0;bottom:0;left:0}.excalidraw .color-picker-transparent,.excalidraw .color-picker-label-swatch{background:url("+d+') left center}.excalidraw .color-picker-hash{height:var(--default-button-size);flex-shrink:0;padding:.5rem .5rem .5rem .75rem;border:1px solid var(--default-border-color);border-right:0;box-sizing:border-box;color:var(--input-label-color);display:flex;align-items:center;justify-content:center;position:relative}:root[dir=ltr] .excalidraw .color-picker-hash{border-radius:var(--border-radius-lg) 0 0 var(--border-radius-lg)}:root[dir=rtl] .excalidraw .color-picker-hash{border-radius:0 var(--border-radius-lg) var(--border-radius-lg) 0;border-right:1px solid var(--default-border-color);border-left:0}.excalidraw .color-input-container{display:flex}.excalidraw .color-input-container:focus-within{box-shadow:0 0 0 1px var(--color-primary-darkest);border-radius:var(--border-radius-lg)}.excalidraw .color-picker-input{box-sizing:border-box;width:100%;margin:0;font-size:.875rem;background-color:rgba(0,0,0,0);color:var(--text-primary-color);border:0;outline:none;height:var(--default-button-size);border:1px solid var(--default-border-color);border-left:0;letter-spacing:.4px;padding:.5rem;padding-left:.25rem;-webkit-appearance:none;appearance:none}:root[dir=ltr] .excalidraw .color-picker-input{border-radius:0 var(--border-radius-lg) var(--border-radius-lg) 0}:root[dir=rtl] .excalidraw .color-picker-input{border-radius:var(--border-radius-lg) 0 0 var(--border-radius-lg);border-left:1px solid var(--default-border-color);border-right:0}.excalidraw .color-picker-input:focus-visible{box-shadow:none}.excalidraw .color-picker-label-swatch-container{border:1px solid var(--default-border-color);border-radius:var(--border-radius-lg);width:var(--default-button-size);height:var(--default-button-size);box-sizing:border-box;overflow:hidden}.excalidraw .color-picker-label-swatch{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color));background-color:var(--swatch-color) !important;overflow:hidden;position:relative;-webkit-filter:var(--theme-filter);filter:var(--theme-filter);border:0 !important}.excalidraw .color-picker-label-swatch svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .color-picker-label-swatch:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.excalidraw .color-picker-label-swatch:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .color-picker-label-swatch.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.excalidraw .color-picker-label-swatch.active:hover{background-color:var(--color-primary-light)}.excalidraw .color-picker-label-swatch.active svg{color:var(--button-color, var(--color-primary-darker))}.excalidraw .color-picker-label-swatch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--swatch-color)}.excalidraw .color-picker-keybinding{position:absolute;bottom:2px;font-size:.7em}:root[dir=ltr] .excalidraw .color-picker-keybinding{right:2px}:root[dir=rtl] .excalidraw .color-picker-keybinding{left:2px}.excalidraw--mobile.excalidraw .color-picker-keybinding{display:none}.excalidraw .color-picker-type-canvasBackground .color-picker-keybinding{color:#aaa}.excalidraw .color-picker-type-elementBackground .color-picker-keybinding{color:#fff}.excalidraw .color-picker-swatch[aria-label=transparent] .color-picker-keybinding{color:#aaa}.excalidraw .color-picker-type-elementStroke .color-picker-keybinding{color:#d4d4d4}.excalidraw.theme--dark .color-picker-type-elementBackground .color-picker-keybinding{color:#000}.excalidraw.theme--dark .color-picker-swatch[aria-label=transparent] .color-picker-keybinding{color:#000}',""]),t.Z=u},9393:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .confirm-dialog-buttons{display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;justify-content:flex-end}",""]),t.Z=a},6578:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .context-menu{position:relative;border-radius:4px;box-shadow:0 3px 10px rgba(0,0,0,.2);padding:0;list-style:none;-webkit-user-select:none;user-select:none;margin:-0.25rem 0 0 .125rem;padding:.5rem 0;background-color:var(--popup-secondary-bg-color);border:1px solid var(--button-gray-3);cursor:default}.excalidraw .context-menu button{color:var(--popup-text-color)}.excalidraw .context-menu-item{position:relative;width:100%;min-width:9.5rem;margin:0;padding:.25rem 1rem .25rem 1.25rem;text-align:start;border-radius:0;background-color:rgba(0,0,0,0);border:none;white-space:nowrap;display:grid;grid-template-columns:1fr .2fr;align-items:center}.excalidraw .context-menu-item.checkmark::before{position:absolute;left:6px;margin-bottom:1px;content:"✓"}.excalidraw .context-menu-item.dangerous .context-menu-item__label{color:#f03e3e}.excalidraw .context-menu-item .context-menu-item__label{justify-self:start;-webkit-margin-end:20px;margin-inline-end:20px}.excalidraw .context-menu-item .context-menu-item__shortcut{justify-self:end;opacity:.6;font-family:inherit;font-size:.7rem}.excalidraw .context-menu-item:hover{color:var(--popup-bg-color);background-color:var(--select-highlight-color)}.excalidraw .context-menu-item:hover.dangerous{background-color:#fa5252}.excalidraw .context-menu-item:hover.dangerous .context-menu-item__label{color:var(--popup-bg-color)}.excalidraw .context-menu-item:focus{z-index:1}.excalidraw--mobile.excalidraw .context-menu-item{display:block}.excalidraw--mobile.excalidraw .context-menu-item .context-menu-item__label{-webkit-margin-end:0;margin-inline-end:0}.excalidraw--mobile.excalidraw .context-menu-item .context-menu-item__shortcut{display:none}.excalidraw .context-menu-item-separator{border:none;border-top:1px solid #adb5bd}',""]),t.Z=a},9482:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Dialog{-webkit-user-select:text;user-select:text;cursor:auto}.excalidraw .Dialog__title{margin:0;text-align:left;font-size:1.25rem;border-bottom:1px solid var(--dialog-border-color);padding:0 0 .75rem;margin-bottom:1.5rem}",""]),t.Z=a},6148:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .Dialog__action-button{position:relative;display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;align-items:center;padding:.5rem 1.5rem;border:1px solid var(--default-border-color);background-color:rgba(0,0,0,0);height:3rem;border-radius:var(--border-radius-lg);letter-spacing:.4px;color:inherit;font-family:inherit;font-size:.875rem;font-weight:600;-webkit-user-select:none;user-select:none}.excalidraw .Dialog__action-button svg{display:block;width:1rem;height:1rem}.excalidraw .Dialog__action-button--danger{background-color:var(--color-danger);border-color:var(--color-danger);color:#fff}.excalidraw .Dialog__action-button--primary{background-color:var(--color-primary);border-color:var(--color-primary);color:#fff}.excalidraw.theme--dark .Dialog__action-button--danger{color:var(--color-gray-100)}.excalidraw.theme--dark .Dialog__action-button--primary{color:var(--color-gray-100)}",""]),t.Z=a},7955:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i),s=n(1667),l=n.n(s),c=new URL(n(9669),n.b),u=a()(o()),d=l()(c);u.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ExportDialog__preview{--preview-padding: calc(var(--space-factor) * 4);background:url("+d+") left center;text-align:center;padding:var(--preview-padding);margin-bottom:calc(var(--space-factor)*3);display:flex;justify-content:center;align-items:center}.excalidraw .ExportDialog__preview canvas{max-width:calc(100% - var(--preview-padding)*2);max-height:25rem}.excalidraw.theme--dark .ExportDialog__preview canvas{-webkit-filter:none;filter:none}.excalidraw .ExportDialog__actions{width:100%;display:flex;grid-gap:calc(var(--space-factor)*2);align-items:top;justify-content:space-between}.excalidraw--mobile.excalidraw .ExportDialog{display:flex;flex-direction:column}.excalidraw--mobile.excalidraw .ExportDialog__actions{flex-direction:column;align-items:center}.excalidraw--mobile.excalidraw .ExportDialog__actions>*{margin-bottom:calc(var(--space-factor)*3)}.excalidraw--mobile.excalidraw .ExportDialog__preview canvas{max-height:30vh}.excalidraw--mobile.excalidraw .ExportDialog__dialog,.excalidraw--mobile.excalidraw .ExportDialog__dialog .Island{height:100%;box-sizing:border-box}.excalidraw--mobile.excalidraw .ExportDialog__dialog .Island{overflow-y:auto}.excalidraw .ExportDialog--json .ExportDialog-cards{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));justify-items:center;row-gap:2em}@media(max-width: 460px){.excalidraw .ExportDialog--json .ExportDialog-cards{grid-template-columns:repeat(auto-fit, minmax(240px, 1fr))}.excalidraw .ExportDialog--json .ExportDialog-cards .Card-details{min-height:40px}}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:1em auto;align-items:flex-start;flex-direction:column}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName .TextInput{width:auto}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName-label{margin:.625em 0;font-weight:bold}.excalidraw button.ExportDialog-imageExportButton{border:0;width:5rem;height:5rem;margin:0 .2em;padding:0;display:flex;align-items:center;justify-content:center;border-radius:1rem;background-color:var(--button-color);box-shadow:0 3px 5px -1px rgba(0,0,0,.28),0 6px 10px 0 rgba(0,0,0,.14);font-family:Cascadia;font-size:1.8em;color:#fff}.excalidraw button.ExportDialog-imageExportButton:hover{background-color:var(--button-color-darker)}.excalidraw button.ExportDialog-imageExportButton:active{background-color:var(--button-color-darkest);box-shadow:none}.excalidraw button.ExportDialog-imageExportButton svg{width:.9em}",""]),t.Z=u},3195:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .FixedSideContainer{position:absolute;pointer-events:none}.excalidraw .FixedSideContainer>*{pointer-events:all}.excalidraw .FixedSideContainer_side_top{left:var(--editor-container-padding);top:var(--editor-container-padding);right:var(--editor-container-padding);bottom:var(--editor-container-padding);z-index:2}.excalidraw .FixedSideContainer_side_top.zen-mode{right:42px}",""]),t.Z=a},2978:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .HelpDialog .Modal__content{max-width:960px}.excalidraw .HelpDialog h3{margin:1.5rem 0;font-weight:bold;font-size:1.125rem}.excalidraw .HelpDialog__header{display:flex;flex-wrap:wrap;gap:.75rem}.excalidraw .HelpDialog__btn{display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;align-items:center;border:1px solid var(--default-border-color);padding:.625rem 1rem;border-radius:var(--border-radius-lg);color:var(--text-primary-color);font-weight:600;font-size:.75rem;letter-spacing:.4px}.excalidraw .HelpDialog__btn:hover{text-decoration:none}.excalidraw .HelpDialog__link-icon{line-height:0}.excalidraw .HelpDialog__link-icon svg{width:1rem;height:1rem}.excalidraw .HelpDialog__islands-container{display:grid;grid-column-gap:1.5rem;grid-row-gap:2rem}@media screen and (min-width: 1024px){.excalidraw .HelpDialog__islands-container{grid-template-columns:1fr 1fr}}@media screen and (min-width: 1024px){.excalidraw .HelpDialog__island--tools{grid-area:1/1/2/2}.excalidraw .HelpDialog__island--view{grid-area:2/1/3/2}.excalidraw .HelpDialog__island--editor{grid-area:1/2/3/3}}.excalidraw .HelpDialog__island h4{font-size:1rem;font-weight:bold;margin:0;margin-bottom:.625rem}.excalidraw .HelpDialog__island-content{border:1px solid var(--dialog-border-color);border-radius:var(--border-radius-lg)}.excalidraw .HelpDialog__shortcut{border-bottom:1px solid var(--dialog-border-color);padding:.375rem .75rem;display:flex;justify-content:space-between;align-items:center;font-size:.875rem;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .HelpDialog__shortcut:last-child{border-bottom:none}.excalidraw .HelpDialog__key-container{display:flex;align-items:center;-webkit-column-gap:.25rem;column-gap:.25rem;flex-shrink:0}.excalidraw .HelpDialog__key{display:flex;box-sizing:border-box;font-size:.625rem;background-color:var(--color-primary-light);border-radius:var(--border-radius-md);padding:.5rem;word-break:keep-all;align-items:center;font-family:inherit;line-height:1}",""]),t.Z=a},1587:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .HintViewer{pointer-events:none;box-sizing:border-box;position:absolute;display:flex;justify-content:center;left:0;top:100%;max-width:100%;width:100%;margin-top:.5rem;text-align:center;color:var(--color-gray-40);font-size:.75rem}.excalidraw--mobile.excalidraw .HintViewer{position:static;padding-right:2rem}.excalidraw .HintViewer>span{padding:.25rem}.excalidraw.theme--dark .HintViewer{color:var(--color-gray-60)}",""]),t.Z=a},9478:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .picker-container{display:inline-block;box-sizing:border-box;margin-right:.25rem}.excalidraw .picker{background:var(--popup-bg-color);border:0 solid rgba(255,255,255,.25);box-shadow:rgba(0,0,0,.25) 2px 2px 4px 2px;border-radius:4px;position:absolute}.excalidraw .picker-container button,.excalidraw .picker button{position:relative;display:flex;align-items:center;justify-content:center}.excalidraw .picker-container button:focus-visible,.excalidraw .picker button:focus-visible{outline:rgba(0,0,0,0);background-color:var(--button-gray-2)}.excalidraw .picker-container button:focus-visible svg,.excalidraw .picker button:focus-visible svg{opacity:1}.excalidraw .picker-container button:hover,.excalidraw .picker button:hover{background-color:var(--button-gray-2)}.excalidraw .picker-container button:active,.excalidraw .picker button:active{background-color:var(--button-gray-3)}.excalidraw .picker-container button:disabled,.excalidraw .picker button:disabled{cursor:not-allowed}.excalidraw .picker-container button svg,.excalidraw .picker button svg{margin:0;width:36px;height:18px;pointer-events:none}.excalidraw .picker button{padding:.25rem .28rem .35rem .25rem}.excalidraw .picker-triangle{width:0;height:0;position:relative;top:-10px;z-index:10}:root[dir=ltr] .excalidraw .picker-triangle{left:12px}:root[dir=rtl] .excalidraw .picker-triangle{right:12px}.excalidraw .picker-triangle:before{content:"";position:absolute;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,.1);top:-1px}.excalidraw .picker-triangle:after{content:"";position:absolute;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--popup-bg-color)}.excalidraw .picker-content{padding:.5rem;display:grid;grid-template-columns:repeat(3, auto);grid-gap:.5rem;border-radius:4px}:root[dir=rtl] .excalidraw .picker-content{padding:.4rem}.excalidraw .picker-keybinding{position:absolute;bottom:2px;font-size:.7em;color:var(--keybinding-color)}:root[dir=ltr] .excalidraw .picker-keybinding{right:2px}:root[dir=rtl] .excalidraw .picker-keybinding{left:2px}.excalidraw--mobile.excalidraw .picker-keybinding{display:none}.excalidraw .picker-type-canvasBackground .picker-keybinding{color:#aaa}.excalidraw .picker-type-elementBackground .picker-keybinding{color:#fff}.excalidraw .picker-swatch[aria-label=transparent] .picker-keybinding{color:#aaa}.excalidraw .picker-type-elementStroke .picker-keybinding{color:#d4d4d4}.excalidraw.theme--dark .picker-type-elementBackground .picker-keybinding{color:#000}.excalidraw.theme--dark .picker-swatch[aria-label=transparent] .picker-keybinding{color:#000}',""]),t.Z=a},7369:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .Island{--padding: 0;box-sizing:border-box;background-color:var(--island-bg-color);box-shadow:var(--shadow-island);border-radius:var(--border-radius-lg);padding:calc(var(--padding)*var(--space-factor));position:relative;transition:box-shadow .5s ease-in-out}.excalidraw .Island.zen-mode{box-shadow:none}",""]),t.Z=a},1434:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .layer-ui__wrapper.animate{transition:width .1s ease-in-out}.excalidraw .layer-ui__wrapper{position:absolute;width:100%;height:100%;pointer-events:none;z-index:var(--zIndex-layerUI)}.excalidraw .layer-ui__wrapper__top-right{display:flex;gap:.75rem}.excalidraw .layer-ui__wrapper__footer{width:100%}.excalidraw .layer-ui__wrapper__footer-right{z-index:100;display:flex}.excalidraw .layer-ui__wrapper .zen-mode-transition{transition:-webkit-transform .5s ease-in-out;transition:transform .5s ease-in-out;transition:transform .5s ease-in-out, -webkit-transform .5s ease-in-out}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{-webkit-transform:translate(-999px, 0);transform:translate(-999px, 0)}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{-webkit-transform:translate(999px, 0);transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{-webkit-transform:translate(999px, 0);transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{-webkit-transform:translate(-999px, 0);transform:translate(-999px, 0)}.excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-bottom{-webkit-transform:translate(0, 92px);transform:translate(0, 92px)}.excalidraw .layer-ui__wrapper .disable-zen-mode{height:30px;position:absolute;bottom:10px;font-size:10px;padding:10px;font-weight:500;opacity:0;visibility:hidden;transition:visibility 0s linear 0s,opacity .5s}[dir=ltr] .excalidraw .layer-ui__wrapper .disable-zen-mode{right:15px}[dir=rtl] .excalidraw .layer-ui__wrapper .disable-zen-mode{left:15px}.excalidraw .layer-ui__wrapper .disable-zen-mode--visible{opacity:1;visibility:visible;transition:visibility 0s linear 300ms,opacity .5s;transition-delay:.8s}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-left,.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right,.excalidraw .layer-ui__wrapper .disable-zen-mode--visible{pointer-events:all}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right{margin-top:auto;margin-bottom:auto}",""]),t.Z=a},2316:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.library-button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color));background-color:var(--island-bg-color);width:auto;height:var(--lg-button-size);display:flex;align-items:center;gap:.5rem;line-height:0;font-size:.75rem;letter-spacing:.4px}.library-button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.library-button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.library-button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.library-button.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.library-button.active:hover{background-color:var(--color-primary-light)}.library-button.active svg{color:var(--button-color, var(--color-primary-darker))}.library-button svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.library-button__label{display:none}@media screen and (min-width: 1024px){.library-button__label{display:block}}",""]),t.Z=a},8923:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .layer-ui__library-sidebar{display:flex;flex-direction:column}.excalidraw .layer-ui__library{display:flex;flex-direction:column;flex:1 1 auto}.excalidraw .layer-ui__library .layer-ui__library-header{display:flex;align-items:center;width:100%;margin:2px 0 15px 0}.excalidraw .layer-ui__library .layer-ui__library-header .Spinner{margin-right:1rem}.excalidraw .layer-ui__library .layer-ui__library-header button{margin:0 2px}.excalidraw .layer-ui__sidebar .library-menu-items-container{height:100%;width:100%}.excalidraw .library-actions-counter{background-color:var(--color-primary);color:var(--color-primary-light);font-weight:bold;display:flex;align-items:center;justify-content:center;border-radius:50%;width:1rem;height:1rem;position:absolute;bottom:-0.25rem;right:-0.25rem;font-size:.625rem;pointer-events:none}.excalidraw .layer-ui__library-message{padding:2rem;min-width:200px;display:flex;flex-direction:column;align-items:center;flex-grow:1;justify-content:center}.excalidraw .layer-ui__library-message span{font-size:.8em}.excalidraw .publish-library-success .Dialog__content{display:flex;flex-direction:column}.excalidraw .publish-library-success-close.ToolIcon_type_button{background-color:#228be6;align-self:flex-end}.excalidraw .publish-library-success-close.ToolIcon_type_button:hover{background-color:#1971c2}.excalidraw .publish-library-success-close.ToolIcon_type_button .ToolIcon__icon{width:auto;font-size:1rem;color:#fff;padding:0 .5rem}.excalidraw .library-menu-browse-button{margin:1rem auto;padding:.875rem 1rem;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;border-radius:var(--border-radius-lg);background-color:var(--color-primary);color:#fff;text-align:center;white-space:nowrap;text-decoration:none !important;font-weight:600;font-size:.75rem}.excalidraw .library-menu-browse-button:hover{background-color:var(--color-primary-darker)}.excalidraw .library-menu-browse-button:active{background-color:var(--color-primary-darkest)}.excalidraw.theme--dark .library-menu-browse-button{color:var(--color-gray-100)}.excalidraw .library-menu-browse-button--mobile{min-height:22px;margin-left:auto}.excalidraw .library-menu-browse-button--mobile a{padding-right:0}.excalidraw .layer-ui__sidebar__header .dropdown-menu.dropdown-menu--mobile{top:100%}.excalidraw .layer-ui__sidebar__header .dropdown-menu .dropdown-menu-container{--gap: 0;z-index:1;position:absolute;top:100%;left:0;width:196px;box-shadow:var(--library-dropdown-shadow);border-radius:var(--border-radius-lg);padding:.25rem .5rem}:root[dir=rtl] .excalidraw .layer-ui__sidebar__header .dropdown-menu .dropdown-menu-container{right:0;left:auto}",""]),t.Z=a},6440:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw{--container-padding-y: 1.5rem;--container-padding-x: 0.75rem}.excalidraw .library-menu-items__no-items{text-align:center;color:var(--color-gray-70);line-height:1.5;font-size:.875rem;width:100%}.excalidraw .library-menu-items__no-items__label{color:var(--color-primary);font-weight:bold;font-size:1.125rem;margin-bottom:.75rem}.excalidraw.theme--dark .library-menu-items__no-items{color:var(--color-gray-40)}.excalidraw .library-menu-items-container{display:flex;flex-grow:1;flex-shrink:1;flex-basis:0;overflow-y:auto;flex-direction:column;height:100%;justify-content:center;margin:0;border-bottom:1px solid var(--sidebar-border-color);position:relative}.excalidraw .library-menu-items-container__row{display:grid;grid-template-columns:repeat(4, 1fr);gap:1rem}.excalidraw .library-menu-items-container__items{row-gap:.5rem;padding:var(--container-padding-y) var(--container-padding-x);flex:1;overflow-y:auto;overflow-x:hidden;margin-bottom:1rem}.excalidraw .library-menu-items-container__header{color:var(--color-primary);font-size:1.125rem;font-weight:bold;margin-bottom:.75rem}.excalidraw .library-menu-items-container__header--excal{margin-top:2.5rem}.excalidraw .library-menu-items-container .separator{width:100%;display:flex;align-items:center;font-weight:500;font-size:.9rem;margin:.6em .2em;color:var(--text-primary-color)}",""]),t.Z=a},2701:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .library-unit{align-items:center;border:1px solid rgba(0,0,0,0);display:flex;justify-content:center;position:relative;width:55px;height:55px;box-sizing:border-box;border-radius:var(--border-radius-lg)}.excalidraw .library-unit--hover{border-color:var(--color-primary)}.excalidraw .library-unit--selected{border-color:var(--color-primary);border-width:1px}.excalidraw .library-unit__dragger{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.excalidraw .library-unit__dragger>svg{-webkit-filter:var(--theme-filter);filter:var(--theme-filter);flex-grow:1;max-height:100%;max-width:100%}.excalidraw .library-unit__checkbox-container,.excalidraw .library-unit__checkbox-container:hover,.excalidraw .library-unit__checkbox-container:active{align-items:center;background:none;border:none;color:var(--icon-fill-color);display:flex;justify-content:center;margin:0;padding:.5rem;position:absolute;left:2rem;bottom:2rem;cursor:pointer}.excalidraw .library-unit__checkbox-container input,.excalidraw .library-unit__checkbox-container:hover input,.excalidraw .library-unit__checkbox-container:active input{cursor:pointer}.excalidraw .library-unit__checkbox{position:absolute;top:.125rem;right:.125rem;margin:0}.excalidraw .library-unit__checkbox .Checkbox-box{margin:0;width:1rem;height:1rem;border-radius:4px;background-color:var(--color-primary-light);border:1px solid var(--color-primary);box-shadow:none !important;padding:2px}.excalidraw .library-unit__checkbox.Checkbox:hover .Checkbox-box{background-color:var(--color-primary-light)}.excalidraw .library-unit__checkbox.is-checked .Checkbox-box{background-color:var(--color-primary) !important}.excalidraw .library-unit__checkbox.is-checked .Checkbox-box svg{color:var(--color-primary-light)}.excalidraw .library-unit__removeFromLibrary>svg{height:16px;width:16px}.excalidraw .library-unit__adder{-webkit-transform:scale(1);transform:scale(1);-webkit-animation:library-unit__adder-animation 1s ease-in infinite;animation:library-unit__adder-animation 1s ease-in infinite;position:absolute;width:1.5rem;height:1.5rem;background-color:var(--color-primary);border-radius:var(--border-radius-md);display:flex;justify-content:center;align-items:center;pointer-events:none}.excalidraw .library-unit__adder svg{color:var(--color-primary-light);width:1rem;height:1rem}.excalidraw .library-unit:active .library-unit__adder{-webkit-animation:none;animation:none;-webkit-transform:scale(0.8);transform:scale(0.8)}.excalidraw .library-unit__active{cursor:pointer}@-webkit-keyframes library-unit__adder-animation{0%{-webkit-transform:scale(0.85);transform:scale(0.85)}50%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(0.85);transform:scale(0.85)}}@keyframes library-unit__adder-animation{0%{-webkit-transform:scale(0.85);transform:scale(0.85)}50%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(0.85);transform:scale(0.85)}}",""]),t.Z=a},6843:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw.excalidraw-modal-container{position:absolute;z-index:10}.excalidraw .Modal{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:calc(var(--space-factor)*10)}.excalidraw .Modal .Island{padding:2.5rem !important}.excalidraw .Modal__background{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;background-color:rgba(18,18,18,.2)}.excalidraw .Modal__content{position:relative;z-index:2;width:100%;max-width:var(--max-width);max-height:100%;opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px);-webkit-animation:Modal__content_fade-in .1s ease-out .05s forwards;animation:Modal__content_fade-in .1s ease-out .05s forwards;position:relative;overflow-y:auto;background:var(--island-bg-color);border:1px solid var(--dialog-border-color);box-shadow:var(--modal-shadow);border-radius:6px;box-sizing:border-box}.excalidraw .Modal__content:focus{outline:none}.excalidraw--mobile.excalidraw .Modal__content{max-width:100%;border:0;border-radius:0}@-webkit-keyframes Modal__content_fade-in{from{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes Modal__content_fade-in{from{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.excalidraw .Modal__close{color:var(--icon-fill-color);margin:0;padding:.375rem;position:absolute;top:1rem;right:1rem;border:0;background-color:rgba(0,0,0,0);line-height:0;cursor:pointer}.excalidraw .Modal__close svg{width:1.5rem;height:1.5rem}.excalidraw--mobile.excalidraw .Modal{padding:0}.excalidraw--mobile.excalidraw .Modal__content{position:absolute;top:0;left:0;right:0;bottom:0}",""]),t.Z=a},8461:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw--mobile.excalidraw .PasteChartDialog .Island{display:flex;flex-direction:column}.excalidraw .PasteChartDialog .container{display:flex;align-items:center;justify-content:space-around;flex-wrap:wrap}.excalidraw--mobile.excalidraw .PasteChartDialog .container{flex-direction:column;justify-content:center}.excalidraw .PasteChartDialog .ChartPreview{margin:8px;text-align:center;width:192px;height:128px;border-radius:2px;padding:1px;border:1px solid #ced4da;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0)}.excalidraw .PasteChartDialog .ChartPreview div{display:inline-block}.excalidraw .PasteChartDialog .ChartPreview svg{max-height:120px;max-width:186px}.excalidraw .PasteChartDialog .ChartPreview:hover{padding:0;border:2px solid #339af0}",""]),t.Z=a},9935:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .popover{position:absolute;z-index:10;padding:5px 0 5px;outline:none}",""]),t.Z=a},532:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".ProjectName{margin:auto;display:flex;align-items:center}.ProjectName .TextInput{height:calc(1rem - 3px);width:200px;overflow:hidden;text-align:center;margin-left:8px;text-overflow:ellipsis}.ProjectName .TextInput--readonly{background:none;border:none;width:auto;max-width:200px;padding-left:2px}.ProjectName .TextInput--readonly:hover{background:none}",""]),t.Z=a},7589:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .publish-library__fields{display:flex;flex-direction:column}.excalidraw .publish-library__fields label{padding:1em 0;display:flex;justify-content:space-between;align-items:center}.excalidraw .publish-library__fields label span{font-weight:500;font-size:1rem;color:#868e96}.excalidraw .publish-library__fields label input,.excalidraw .publish-library__fields label textarea{width:70%;padding:.6em;font-family:var(--ui-font)}.excalidraw .publish-library__fields label .required{color:#e03131;margin:.2rem}.excalidraw .publish-library__buttons{display:flex;padding:.2rem 0;justify-content:flex-end;gap:.5rem}.excalidraw .publish-library__buttons .ToolIcon__icon{min-width:2.5rem;width:auto;font-size:1rem}.excalidraw .publish-library__buttons .ToolIcon_type_button{margin-left:1rem;padding:0 .5rem}.excalidraw .publish-library__buttons--confirm.ToolIcon_type_button{background-color:#228be6}.excalidraw .publish-library__buttons--confirm.ToolIcon_type_button:hover{background-color:#1971c2}.excalidraw .publish-library__buttons--cancel.ToolIcon_type_button{background-color:#adb5bd}.excalidraw .publish-library__buttons--cancel.ToolIcon_type_button:hover{background-color:#868e96}.excalidraw .publish-library__buttons .ToolIcon__icon{color:#fff}.excalidraw .publish-library__buttons .ToolIcon__icon .Spinner{--spinner-color: #fff}.excalidraw .publish-library__buttons .ToolIcon__icon .Spinner svg{padding:.5rem}.excalidraw .publish-library .selected-library-items{display:flex;flex-wrap:wrap}.excalidraw .publish-library .selected-library-items .single-library-item-wrapper{width:9rem}.excalidraw .publish-library-warning{color:#fa5252}.excalidraw .publish-library-note{padding:1em 0;font-style:italic;font-size:14px;display:block}.excalidraw .single-library-item{position:relative}.excalidraw .single-library-item-status{position:absolute;top:.3rem;left:.3rem;font-size:.7rem;color:#f03e3e;background:rgba(255,255,255,.9);padding:.1rem .2rem;border-radius:.2rem}.excalidraw .single-library-item__svg{background-color:#fff;padding:.3rem;width:7.5rem;height:7.5rem;border:1px solid var(--button-gray-2)}.excalidraw .single-library-item__svg svg{width:100%;height:100%}.excalidraw .single-library-item .ToolIcon__icon{background-color:#fff;width:auto;height:auto;margin:0 .5rem}.excalidraw .single-library-item .ToolIcon,.excalidraw .single-library-item .ToolIcon_type_button:hover{background-color:#fff}.excalidraw .single-library-item .required,.excalidraw .single-library-item .error{color:#e03131;font-weight:bold;font-size:1rem;margin:.2rem}.excalidraw .single-library-item .error{font-weight:500;margin:0;padding:.3em 0}.excalidraw .single-library-item--remove{position:absolute;top:.2rem;right:1rem}.excalidraw .single-library-item--remove .ToolIcon__icon{margin:0}.excalidraw .single-library-item--remove .ToolIcon__icon{background-color:#fa5252}.excalidraw .single-library-item--remove .ToolIcon__icon:hover{background-color:#f03e3e}.excalidraw .single-library-item--remove .ToolIcon__icon:active{background-color:#e03131}.excalidraw .single-library-item--remove svg{color:#fff;padding:.26rem;border-radius:.3em;width:1rem;height:1rem}",""]),t.Z=a},8208:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Sidebar__close-btn,.excalidraw .Sidebar__pin-btn,.excalidraw .Sidebar__dropdown-btn{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color));width:var(--lg-button-size);height:var(--lg-button-size);padding:0}.excalidraw .Sidebar__close-btn svg,.excalidraw .Sidebar__pin-btn svg,.excalidraw .Sidebar__dropdown-btn svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .Sidebar__close-btn:hover,.excalidraw .Sidebar__pin-btn:hover,.excalidraw .Sidebar__dropdown-btn:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.excalidraw .Sidebar__close-btn:active,.excalidraw .Sidebar__pin-btn:active,.excalidraw .Sidebar__dropdown-btn:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .Sidebar__close-btn.active,.excalidraw .Sidebar__pin-btn.active,.excalidraw .Sidebar__dropdown-btn.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.excalidraw .Sidebar__close-btn.active:hover,.excalidraw .Sidebar__pin-btn.active:hover,.excalidraw .Sidebar__dropdown-btn.active:hover{background-color:var(--color-primary-light)}.excalidraw .Sidebar__close-btn.active svg,.excalidraw .Sidebar__pin-btn.active svg,.excalidraw .Sidebar__dropdown-btn.active svg{color:var(--button-color, var(--color-primary-darker))}.excalidraw .Sidebar__close-btn svg,.excalidraw .Sidebar__pin-btn svg,.excalidraw .Sidebar__dropdown-btn svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .Sidebar__pin-btn--pinned{background-color:var(--color-primary);border-color:var(--color-primary)}.excalidraw .Sidebar__pin-btn--pinned svg{color:#fff}.excalidraw .Sidebar__pin-btn--pinned:hover,.excalidraw .Sidebar__pin-btn--pinned:active{background-color:var(--color-primary-darker)}.excalidraw.theme--dark .Sidebar__pin-btn--pinned svg{color:var(--color-gray-90)}.excalidraw .layer-ui__sidebar{position:absolute;top:0;bottom:0;right:0;z-index:5;margin:0;background-color:var(--sidebar-bg-color);box-shadow:var(--sidebar-shadow);overflow:hidden;border-radius:0;width:calc(302px - var(--space-factor) * 2);border-left:1px solid var(--sidebar-border-color);padding:0;box-sizing:border-box}:root[dir=rtl] .excalidraw .layer-ui__sidebar{left:0;right:auto}.excalidraw .layer-ui__sidebar--docked{box-shadow:none}:root[dir=rtl] .excalidraw .layer-ui__sidebar{border-right:1px solid var(--sidebar-border-color);border-left:0}.excalidraw .layer-ui__sidebar .Island{box-shadow:none}.excalidraw .layer-ui__sidebar .ToolIcon__icon{border-radius:var(--border-radius-md)}.excalidraw .layer-ui__sidebar .ToolIcon__icon__close .Modal__close{width:calc(var(--space-factor)*7);height:calc(var(--space-factor)*7);display:flex;justify-content:center;align-items:center;color:var(--color-text)}.excalidraw .layer-ui__sidebar .Island{--padding: 0;background-color:var(--island-bg-color);border-radius:var(--border-radius-lg);padding:calc(var(--padding)*var(--space-factor));position:relative;transition:box-shadow .5s ease-in-out}.excalidraw .layer-ui__sidebar__header{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;width:100%;padding:1rem;border-bottom:1px solid var(--sidebar-border-color)}.excalidraw .layer-ui__sidebar__header__buttons{display:flex;align-items:center;gap:.625rem}",""]),t.Z=a},5892:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .Spinner{display:flex;align-items:center;justify-content:center;height:100%;margin-left:auto;margin-right:auto;--spinner-color: var(--icon-fill-color)}.excalidraw .Spinner svg{-webkit-animation:rotate 1.6s linear infinite;animation:rotate 1.6s linear infinite;-webkit-transform-origin:center center;transform-origin:center center}.excalidraw .Spinner circle{stroke:var(--spinner-color);-webkit-animation:dash 1.6s linear 0s infinite;animation:dash 1.6s linear 0s infinite;stroke-linecap:round}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,300;stroke-dashoffset:0}50%{stroke-dasharray:150,300;stroke-dashoffset:-200}100%{stroke-dasharray:1,300;stroke-dashoffset:-280}}@keyframes dash{0%{stroke-dasharray:1,300;stroke-dashoffset:0}50%{stroke-dasharray:150,300;stroke-dashoffset:-200}100%{stroke-dasharray:1,300;stroke-dashoffset:-280}}",""]),t.Z=a},3874:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .Stack{--gap: 0;display:grid;gap:calc(var(--space-factor)*var(--gap))}.excalidraw .Stack_vertical{grid-template-columns:auto;grid-auto-flow:row;grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content}.excalidraw .Stack_horizontal{grid-template-rows:auto;grid-auto-flow:column;grid-auto-columns:-webkit-min-content;grid-auto-columns:min-content}",""]),t.Z=a},2681:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Stats{position:absolute;top:64px;right:12px;font-size:12px;z-index:10;pointer-events:all}.excalidraw .Stats h3{margin:0 24px 8px 0;white-space:nowrap}.excalidraw .Stats .close{float:right;height:16px;width:16px;cursor:pointer}.excalidraw .Stats .close svg{width:100%;height:100%}.excalidraw .Stats table{width:100%}.excalidraw .Stats table th{border-bottom:1px solid var(--input-border-color);padding:4px}.excalidraw .Stats table tr td:nth-child(2){min-width:24px;text-align:right}:root[dir=rtl] .excalidraw .Stats{left:12px;right:initial}:root[dir=rtl] .excalidraw .Stats h3{margin:0 0 8px 24px}:root[dir=rtl] .excalidraw .Stats .close{float:left}",""]),t.Z=a},6759:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .TextInput{display:inline-block}",""]),t.Z=a},9650:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Toast{-webkit-animation:fade-in .5s;animation:fade-in .5s;background-color:var(--button-gray-1);border-radius:4px;bottom:10px;box-sizing:border-box;cursor:default;left:50%;margin-left:-150px;padding:4px 0;position:absolute;text-align:center;width:300px;z-index:999999}.excalidraw .Toast .Toast__message{padding:0 1.6rem;color:var(--popup-text-color);white-space:pre-wrap}.excalidraw .Toast .close{position:absolute;top:0;right:0;padding:.4rem}.excalidraw .Toast .close .ToolIcon__icon{width:1.2rem;height:1.2rem}@-webkit-keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes fade-in{from{opacity:0}to{opacity:1}}",""]),t.Z=a},2044:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ToolIcon{border-radius:var(--border-radius-lg);display:inline-flex;align-items:center;position:relative;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none}.excalidraw .ToolIcon__hidden{display:none !important}.excalidraw .ToolIcon.fillable .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .ToolIcon.fillable .ToolIcon_type_checkbox:checked+.ToolIcon__icon{--icon-fill-color: var(--color-primary-darker)}.excalidraw .ToolIcon.fillable .ToolIcon_type_radio:checked+.ToolIcon__icon svg,.excalidraw .ToolIcon.fillable .ToolIcon_type_checkbox:checked+.ToolIcon__icon svg{fill:var(--icon-fill-color)}.excalidraw .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon{background:var(--color-primary-light);--keybinding-color: var(--color-gray-60)}.excalidraw .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon svg,.excalidraw .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon svg{color:var(--color-primary-darker)}.excalidraw .ToolIcon .ToolIcon__keybinding{bottom:4px;right:4px}.excalidraw .ToolIcon .ToolIcon__icon:hover{background:var(--button-hover-bg)}.excalidraw .ToolIcon .ToolIcon__icon:active{background:var(--button-hover-bg);border:1px solid var(--color-primary-darkest)}.excalidraw .ToolIcon--plain{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon--plain .ToolIcon__icon{width:2rem;height:2rem}.excalidraw .ToolIcon_type_radio,.excalidraw .ToolIcon_type_checkbox{position:absolute;opacity:0;pointer-events:none}.excalidraw .ToolIcon__icon{box-sizing:border-box;width:var(--default-button-size);height:var(--default-button-size);color:var(--icon-fill-color);display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius-lg)}.excalidraw .ToolIcon__icon+.ToolIcon__label{-webkit-margin-start:0;margin-inline-start:0}.excalidraw .ToolIcon__icon svg{position:relative;width:var(--default-icon-size);height:var(--default-icon-size);color:var(--icon-fill-color)}.excalidraw .ToolIcon__label{display:flex;align-items:center;color:var(--icon-fill-color);font-family:var(--ui-font);margin:0 .8em;text-overflow:ellipsis}.excalidraw .ToolIcon__label .Spinner{margin-left:.6em}.excalidraw .ToolIcon_size_small .ToolIcon__icon{width:2rem;height:2rem;font-size:.8em}.excalidraw .ToolIcon_type_button,.excalidraw .Modal .ToolIcon_type_button,.excalidraw .ToolIcon_type_button{padding:0;border:none;margin:0;font-size:inherit;background-color:initial}.excalidraw .ToolIcon_type_button:focus-visible,.excalidraw .Modal .ToolIcon_type_button:focus-visible,.excalidraw .ToolIcon_type_button:focus-visible{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .ToolIcon_type_button.ToolIcon--selected,.excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected,.excalidraw .ToolIcon_type_button.ToolIcon--selected{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_button.ToolIcon--selected:active,.excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected:active,.excalidraw .ToolIcon_type_button.ToolIcon--selected:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_button:active,.excalidraw .Modal .ToolIcon_type_button:active,.excalidraw .ToolIcon_type_button:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_button--show,.excalidraw .Modal .ToolIcon_type_button--show,.excalidraw .ToolIcon_type_button--show{visibility:visible}.excalidraw .ToolIcon_type_button--hide,.excalidraw .Modal .ToolIcon_type_button--hide,.excalidraw .ToolIcon_type_button--hide{display:none !important}.excalidraw .ToolIcon_type_floating{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating:hover{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating:active{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating .ToolIcon__icon{background-color:var(--button-gray-1);width:2rem;height:2rem}.excalidraw .ToolIcon_type_floating .ToolIcon__icon:hover{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_floating .ToolIcon__icon:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon__keybinding{position:absolute;bottom:2px;right:3px;font-size:.625rem;color:var(--keybinding-color);font-family:var(--ui-font);-webkit-user-select:none;user-select:none}:root[dir=ltr] .excalidraw .unlocked-icon{left:2px}:root[dir=rtl] .excalidraw .unlocked-icon{right:2px}.excalidraw .App-toolbar-container .ToolIcon__icon{width:var(--lg-button-size);height:var(--lg-button-size)}.excalidraw .App-toolbar-container .ToolIcon__icon svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}",""]),t.Z=a},9144:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .App-toolbar.zen-mode .ToolIcon__keybinding,.excalidraw .App-toolbar.zen-mode .HintViewer{display:none}.excalidraw .App-toolbar__divider{width:1px;height:1.5rem;align-self:center;background-color:var(--default-border-color);margin:0 .5rem}",""]),t.Z=a},6626:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw-tooltip{position:fixed;z-index:1000;padding:8px;border-radius:6px;box-sizing:border-box;pointer-events:none;word-wrap:break-word;background:#000;line-height:1.5;text-align:center;font-size:13px;font-weight:500;color:#fff;display:none}.excalidraw-tooltip.excalidraw-tooltip--visible{display:block}.excalidraw-tooltip-wrapper{display:flex}.excalidraw-tooltip-icon{width:.9em;height:.9em;margin-left:5px;margin-top:1px;display:flex}.excalidraw--mobile.excalidraw-tooltip-icon{display:none}",""]),t.Z=a},6359:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .UserList{pointer-events:none;padding:var(--space-factor) var(--space-factor) var(--space-factor) var(--space-factor);display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.625rem;max-height:140px;max-width:290px;overflow:hidden}.excalidraw .UserList:empty{display:none}.excalidraw .UserList>*{pointer-events:all}.excalidraw .UserList_mobile{padding:0;justify-content:normal;margin:.5rem 0}",""]),t.Z=a},7399:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .dropdown-menu{position:absolute;top:100%;margin-top:.25rem}.excalidraw .dropdown-menu--mobile{bottom:55px;top:auto;left:0;width:100%;display:flex;flex-direction:column;row-gap:.75rem}.excalidraw .dropdown-menu--mobile .dropdown-menu-container{padding:8px 8px;box-sizing:border-box;background-color:var(--island-bg-color);box-shadow:var(--shadow-island);border-radius:var(--border-radius-lg);position:relative;transition:box-shadow .5s ease-in-out}.excalidraw .dropdown-menu--mobile .dropdown-menu-container.zen-mode{box-shadow:none}.excalidraw .dropdown-menu .dropdown-menu-container{background-color:#fff !important;max-height:calc(100vh - 150px);overflow-y:auto;--gap: 2}.excalidraw .dropdown-menu .dropdown-menu-item-base{display:flex;padding:0 .625rem;-webkit-column-gap:.625rem;column-gap:.625rem;font-size:.875rem;color:var(--color-gray-100);width:100%;box-sizing:border-box;font-weight:normal;font-family:inherit}.excalidraw .dropdown-menu .dropdown-menu-item{background-color:rgba(0,0,0,0);border:0;align-items:center;height:2rem;cursor:pointer;border-radius:var(--border-radius-md)}@media screen and (min-width: 1921px){.excalidraw .dropdown-menu .dropdown-menu-item{height:2.25rem}}.excalidraw .dropdown-menu .dropdown-menu-item__text{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.excalidraw .dropdown-menu .dropdown-menu-item__shortcut{-webkit-margin-start:auto;margin-inline-start:auto;opacity:.5}.excalidraw .dropdown-menu .dropdown-menu-item:hover{background-color:var(--button-hover-bg);text-decoration:none}.excalidraw .dropdown-menu .dropdown-menu-item svg{width:1rem;height:1rem;display:block}.excalidraw .dropdown-menu .dropdown-menu-item-custom{margin-top:.5rem}.excalidraw .dropdown-menu .dropdown-menu-group-title{font-size:14px;text-align:left;margin:10px 0;font-weight:500}.excalidraw.theme--dark .dropdown-menu-item{color:var(--color-gray-40)}.excalidraw.theme--dark .dropdown-menu-container{background-color:var(--color-gray-90) !important}.excalidraw .dropdown-menu-button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color));background-color:var(--island-bg-color);width:var(--lg-button-size);height:var(--lg-button-size)}.excalidraw .dropdown-menu-button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .dropdown-menu-button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.excalidraw .dropdown-menu-button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .dropdown-menu-button.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.excalidraw .dropdown-menu-button.active:hover{background-color:var(--color-primary-light)}.excalidraw .dropdown-menu-button.active svg{color:var(--button-color, var(--color-primary-darker))}.excalidraw .dropdown-menu-button svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .dropdown-menu-button--mobile{border:none;margin:0;padding:0;width:var(--default-button-size);height:var(--default-button-size)}",""]),t.Z=a},8793:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".footer-center{pointer-events:none;display:flex;width:100%;justify-content:flex-start}.footer-center>*{pointer-events:all}",""]),t.Z=a},3397:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .collab-button{--button-bg: var(--color-primary);--button-color: white;--button-border: var(--color-primary);--button-width: var(--lg-button-size);--button-height: var(--lg-button-size);--button-hover-bg: var(--color-primary-darker);--button-hover-border: var(--color-primary-darker);--button-active-bg: var(--color-primary-darker);flex-shrink:0}.excalidraw .collab-button.active.active{background-color:#0fb884;border-color:#0fb884}.excalidraw .collab-button.active.active svg{color:#fff}.excalidraw .collab-button.active.active:hover,.excalidraw .collab-button.active.active:active{background-color:#0fb884;border-color:#0fb884}.excalidraw.theme--dark .collab-button{color:var(--color-gray-90)}.excalidraw .CollabButton.is-collaborating{background-color:var(--button-special-active-bg-color)}.excalidraw .CollabButton.is-collaborating .ToolIcon__icon svg,.excalidraw .CollabButton.is-collaborating .ToolIcon__label{color:var(--icon-green-fill-color)}.excalidraw .CollabButton-collaborators{min-width:1em;min-height:1em;line-height:1;position:absolute;bottom:-5px;padding:3px;border-radius:50%;background-color:#b2f2bb;color:#2b8a3e;font-size:.6rem;font-family:"Cascadia"}:root[dir=ltr] .excalidraw .CollabButton-collaborators{right:-5px}:root[dir=rtl] .excalidraw .CollabButton-collaborators{left:-5px}',""]),t.Z=a},4343:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".excalidraw .ActiveFile .ActiveFile__fileName{display:flex;align-items:center}.excalidraw .ActiveFile .ActiveFile__fileName span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:9.3em}.excalidraw .ActiveFile .ActiveFile__fileName svg{width:1.15em;-webkit-margin-end:.3em;margin-inline-end:.3em;-webkit-transform:scaleY(0.9);transform:scaleY(0.9)}",""]),t.Z=a},1569:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,'.excalidraw .virgil{font-family:"Virgil"}.excalidraw .welcome-screen-decor{pointer-events:none;color:var(--color-gray-40)}.excalidraw.theme--dark .welcome-screen-decor{color:var(--color-gray-60)}@media(max-height: 599px){.excalidraw .welcome-screen-decor-hint{display:none !important}}@media(max-width: 1024px),(max-width: 800px){.excalidraw .welcome-screen-decor-hint .welcome-screen-decor--help,.excalidraw .welcome-screen-decor-hint .welcome-screen-decor--menu{display:none}}.excalidraw .welcome-screen-decor-hint--help{display:flex;position:absolute;right:0;bottom:100%}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--help{left:0;right:auto}.excalidraw .welcome-screen-decor-hint--help svg{margin-top:.5rem;width:85px;height:71px;-webkit-transform:scaleX(-1) rotate(80deg);transform:scaleX(-1) rotate(80deg)}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--help svg{-webkit-transform:rotate(80deg);transform:rotate(80deg)}.excalidraw .welcome-screen-decor-hint--toolbar{position:absolute;top:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin-top:2.5rem;display:flex;align-items:baseline}.excalidraw .welcome-screen-decor-hint--toolbar .welcome-screen-decor-hint__label{width:120px;position:relative;top:-0.5rem}.excalidraw .welcome-screen-decor-hint--toolbar svg{width:38px;height:78px}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--toolbar svg{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.excalidraw .welcome-screen-decor-hint--menu{position:absolute;width:320px;font-size:1rem;top:100%;margin-top:.25rem;-webkit-margin-start:.6rem;margin-inline-start:.6rem;display:flex;align-items:flex-end;gap:.5rem}.excalidraw .welcome-screen-decor-hint--menu svg{width:41px;height:94px}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--menu svg{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@media(max-width: 860px){.excalidraw .welcome-screen-decor-hint--menu .welcome-screen-decor-hint__label{max-width:160px}}.excalidraw .welcome-screen-center{display:flex;flex-direction:column;gap:2rem;justify-content:center;align-items:center;position:absolute;pointer-events:none;left:1rem;top:1rem;right:1rem;bottom:1rem}.excalidraw .welcome-screen-center__logo{display:flex;align-items:center;-webkit-column-gap:.75rem;column-gap:.75rem;font-size:2.25rem}.excalidraw .welcome-screen-center__logo svg{width:1.625rem;height:auto}.excalidraw .welcome-screen-center__heading{font-size:1.125rem;text-align:center}.excalidraw .welcome-screen-menu{display:flex;flex-direction:column;gap:2px;justify-content:center;align-items:center}.excalidraw .welcome-screen-menu-item{box-sizing:border-box;pointer-events:all;color:var(--color-gray-50);font-size:.875rem;width:100%;min-width:300px;max-width:400px;display:grid;align-items:center;justify-content:space-between;background:none;border:none;padding:.75rem;border-radius:var(--border-radius-md);grid-template-columns:calc(var(--default-icon-size) + .5rem) 1fr 3rem}.excalidraw .welcome-screen-menu-item__text{display:flex;align-items:center;margin-right:auto;text-align:left;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .welcome-screen-menu-item__icon{width:var(--default-icon-size);height:var(--default-icon-size)}.excalidraw .welcome-screen-menu-item__shortcut{margin-left:auto;color:var(--color-gray-40);font-size:.75rem}.excalidraw:not(:active) .welcome-screen-menu-item:hover{text-decoration:none;background:var(--color-gray-10)}.excalidraw:not(:active) .welcome-screen-menu-item:hover .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw:not(:active) .welcome-screen-menu-item:hover .welcome-screen-menu-item__text{color:var(--color-gray-100)}.excalidraw .welcome-screen-menu-item:active{background:var(--color-gray-20)}.excalidraw .welcome-screen-menu-item:active .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw .welcome-screen-menu-item:active .welcome-screen-menu-item__text{color:var(--color-gray-100)}.excalidraw .welcome-screen-menu-item:active--promo{color:var(--color-promo) !important}.excalidraw .welcome-screen-menu-item:active--promo:hover .welcome-screen-menu-item__text{color:var(--color-promo) !important}.excalidraw.theme--dark .welcome-screen-menu-item{color:var(--color-gray-60)}.excalidraw.theme--dark .welcome-screen-menu-item__shortcut{color:var(--color-gray-60)}.excalidraw.theme--dark:not(:active) .welcome-screen-menu-item:hover{background:var(--color-gray-85)}.excalidraw.theme--dark:not(:active) .welcome-screen-menu-item:hover .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw.theme--dark:not(:active) .welcome-screen-menu-item:hover .welcome-screen-menu-item__text{color:var(--color-gray-10)}.excalidraw.theme--dark .welcome-screen-menu-item:active{background-color:var(--color-gray-90)}.excalidraw.theme--dark .welcome-screen-menu-item:active .welcome-screen-menu-item__text{color:var(--color-gray-10)}@media(max-height: 599px){.excalidraw .welcome-screen-center{margin-top:4rem}}@media(min-height: 600px)and (max-height: 900px){.excalidraw .welcome-screen-center{margin-top:8rem}}@media(max-height: 500px),(max-width: 320px){.excalidraw .welcome-screen-center{display:none}}',""]),t.Z=a},9915:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".visually-hidden{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);white-space:nowrap;-webkit-user-select:none;user-select:none}.LoadingMessage{position:absolute;top:0;right:0;bottom:0;left:0;z-index:999;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.LoadingMessage .Spinner{font-size:2.8em}.LoadingMessage .LoadingMessage-text{margin-top:1em;font-size:.8em}.LoadingMessage--dark{background-color:#121212;color:#ced4da}",""]),t.Z=a},9310:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i),s=n(1667),l=n.n(s),c=new URL(n(7984),n.b),u=new URL(n(1639),n.b),d=a()(o()),p=l()(c),f=l()(u);d.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}:export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--theme-filter: none;--button-destructive-bg-color: #ffe3e3;--button-destructive-color: #c92a2a;--button-gray-1: #e9ecef;--button-gray-2: #ced4da;--button-gray-3: #adb5bd;--button-special-active-bg-color: #ebfbee;--dialog-border-color: var(--color-gray-20);--dropdown-icon: url("+p+");--focus-highlight-color: #a5d8ff;--icon-fill-color: var(--color-gray-80);--icon-green-fill-color: #2b8a3e;--default-bg-color: #ffffff;--input-bg-color: #ffffff;--input-border-color: #ced4da;--input-hover-bg-color: #f1f3f5;--input-label-color: #495057;--island-bg-color: rgba(255, 255, 255, 0.96);--keybinding-color: var(--color-gray-40);--link-color: #1c7ed6;--overlay-bg-color: rgba(255, 255, 255, 0.88);--popup-bg-color: #ffffff;--popup-secondary-bg-color: #f1f3f5;--popup-text-color: #000000;--popup-text-inverted-color: #ffffff;--sab: env(safe-area-inset-bottom);--sal: env(safe-area-inset-left);--sar: env(safe-area-inset-right);--sat: env(safe-area-inset-top);--select-highlight-color: #339af0;--shadow-island: 0px 7px 14px rgba(0, 0, 0, 0.05), 0px 0px 3.12708px rgba(0, 0, 0, 0.0798), 0px 0px 0.931014px rgba(0, 0, 0, 0.1702);--button-hover-bg: var(--color-gray-10);--default-border-color: var(--color-gray-30);--default-button-size: 2rem;--default-icon-size: 1rem;--lg-button-size: 2.25rem;--lg-icon-size: 1rem;--editor-container-padding: 1rem;--scrollbar-thumb: var(--button-gray-2);--scrollbar-thumb-hover: var(--button-gray-3);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-20);--sidebar-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--sidebar-border-color: var(--color-gray-20);--sidebar-bg-color: #fff;--library-dropdown-shadow: 0px 15px 6px rgba(0, 0, 0, 0.01), 0px 8px 5px rgba(0, 0, 0, 0.05), 0px 4px 4px rgba(0, 0, 0, 0.09), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);--space-factor: 0.25rem;--text-primary-color: var(--color-gray-80);--color-selection: #6965db;--color-primary: #6965db;--color-primary-darker: #5b57d1;--color-primary-darkest: #4a47b1;--color-primary-light: #e3e2fe;--color-gray-10: #f5f5f5;--color-gray-20: #ebebeb;--color-gray-30: #d6d6d6;--color-gray-40: #b8b8b8;--color-gray-50: #999999;--color-gray-60: #7a7a7a;--color-gray-70: #5c5c5c;--color-gray-80: #3d3d3d;--color-gray-85: #242424;--color-gray-90: #1e1e1e;--color-gray-100: #121212;--color-warning: #fceeca;--color-text-warning: var(--text-primary-color);--color-danger: #db6965;--color-promo: #e70078;--border-radius-md: 0.375rem;--border-radius-lg: 0.5rem}@media screen and (min-device-width: 1921px){.excalidraw{--lg-button-size: 2.5rem;--lg-icon-size: 1.25rem;--default-button-size: 2.25rem;--default-icon-size: 1.25rem}}.excalidraw.theme--dark.theme--dark-background-none{background:none}.excalidraw.theme--dark{--theme-filter: invert(93%) hue-rotate(180deg);--button-destructive-bg-color: #5a0000;--button-destructive-color: #ffa8a8;--button-gray-1: #363636;--button-gray-2: #272727;--button-gray-3: #222;--button-special-active-bg-color: #204624;--dialog-border-color: var(--color-gray-80);--dropdown-icon: url("+f+');--focus-highlight-color: #228be6;--icon-fill-color: var(--color-gray-40);--icon-green-fill-color: #69db7c;--default-bg-color: #121212;--input-bg-color: #121212;--input-border-color: #2e2e2e;--input-hover-bg-color: #181818;--input-label-color: #e9ecef;--island-bg-color: #262627;--keybinding-color: var(--color-gray-60);--link-color: #4dabf7;--overlay-bg-color: rgba(52, 58, 64, 0.12);--popup-bg-color: #2c2c2c;--popup-secondary-bg-color: #222;--popup-text-color: #ced4da;--popup-text-inverted-color: #2c2c2c;--select-highlight-color: #4dabf7;--text-primary-color: var(--color-gray-40);--button-hover-bg: var(--color-gray-80);--default-border-color: var(--color-gray-80);--shadow-island: 0px 13px 33px rgba(0, 0, 0, 0.07), 0px 4.13px 9.94853px rgba(0, 0, 0, 0.0456112), 0px 1.13px 4.13211px rgba(0, 0, 0, 0.035), 0px 0.769896px 1.4945px rgba(0, 0, 0, 0.0243888);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-85);--sidebar-border-color: var(--color-gray-85);--sidebar-bg-color: #191919;--scrollbar-thumb: #343a40;--scrollbar-thumb-hover: #495057;--color-selection: #3530c4;--color-primary: #a8a5ff;--color-primary-darker: #b2aeff;--color-primary-darkest: #beb9ff;--color-primary-light: #4f4d6f;--color-text-warning: var(--color-gray-80);--color-danger: #ffa8a5;--color-promo: #d297ff}:root{--zIndex-canvas: 1;--zIndex-wysiwyg: 2;--zIndex-layerUI: 3}.excalidraw{--ui-font: Assistant, system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-family:var(--ui-font);position:relative;overflow:hidden;color:var(--text-primary-color);display:flex;top:0;bottom:0;left:0;right:0;height:100%;width:100%;-webkit-user-select:none;user-select:none}.excalidraw button{cursor:pointer}.excalidraw:focus{outline:none}.excalidraw a{font-weight:500;text-decoration:none;color:var(--link-color)}.excalidraw a:hover{text-decoration:underline}.excalidraw canvas{touch-action:none;image-rendering:pixelated;image-rendering:-moz-crisp-edges;z-index:var(--zIndex-canvas)}.excalidraw__canvas{position:absolute}.excalidraw.theme--dark canvas{-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .FixedSideContainer{padding-top:var(--sat, 0);padding-right:var(--sar, 0);padding-bottom:var(--sab, 0);padding-left:var(--sal, 0)}.excalidraw .panelRow{display:flex;justify-content:space-between}.excalidraw .panelColumn{display:flex;flex-direction:column;row-gap:.75rem}.excalidraw .panelColumn h3,.excalidraw .panelColumn legend,.excalidraw .panelColumn .control-label{margin:0;margin-bottom:.25rem;font-size:.75rem;color:var(--text-primary-color);font-weight:normal;display:block}.excalidraw .panelColumn .control-label input{display:block;width:100%}.excalidraw .panelColumn legend{padding:0}.excalidraw .panelColumn .iconSelectList{flex-wrap:wrap;position:relative}.excalidraw .panelColumn .buttonList{flex-wrap:wrap;display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem}.excalidraw .panelColumn .buttonList label{font-size:.75rem}.excalidraw .panelColumn .buttonList input[type=radio],.excalidraw .panelColumn .buttonList input[type=button]{opacity:0;position:absolute;pointer-events:none}.excalidraw .panelColumn .buttonList .iconRow{margin-top:8px}.excalidraw .panelColumn fieldset{margin:0;padding:0;border:none}.excalidraw .divider{width:1px;background-color:#e9ecef;margin:1px}.excalidraw .welcome-screen-menu-item:focus-visible,.excalidraw .dropdown-menu-item:focus-visible,.excalidraw button:focus-visible,.excalidraw .buttonList label:focus-within,.excalidraw input:focus-visible{outline:rgba(0,0,0,0);box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .buttonList .ToolIcon__icon{all:unset !important;display:flex !important}.excalidraw .buttonList button{background-color:rgba(0,0,0,0)}.excalidraw .buttonList label,.excalidraw .buttonList button,.excalidraw .buttonList .zIndexButton{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color));padding:0}.excalidraw .buttonList label svg,.excalidraw .buttonList button svg,.excalidraw .buttonList .zIndexButton svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .buttonList label:hover,.excalidraw .buttonList button:hover,.excalidraw .buttonList .zIndexButton:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.excalidraw .buttonList label:active,.excalidraw .buttonList button:active,.excalidraw .buttonList .zIndexButton:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .buttonList label.active,.excalidraw .buttonList button.active,.excalidraw .buttonList .zIndexButton.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.excalidraw .buttonList label.active:hover,.excalidraw .buttonList button.active:hover,.excalidraw .buttonList .zIndexButton.active:hover{background-color:var(--color-primary-light)}.excalidraw .buttonList label.active svg,.excalidraw .buttonList button.active svg,.excalidraw .buttonList .zIndexButton.active svg{color:var(--button-color, var(--color-primary-darker))}.excalidraw .buttonList label svg,.excalidraw .buttonList button svg,.excalidraw .buttonList .zIndexButton svg{width:var(--default-icon-size);height:var(--default-icon-size)}.excalidraw .App-top-bar{z-index:var(--zIndex-layerUI);display:flex;flex-direction:column;align-items:center}.excalidraw .App-bottom-bar{position:absolute;top:0;bottom:0;left:0;right:0;--bar-padding: calc(4 * var(--space-factor));padding-top:max(var(--bar-padding), var(--sat,0));padding-right:var(--sar, 0);padding-bottom:var(--sab, 0);padding-left:var(--sal, 0);z-index:4;display:flex;align-items:flex-end;pointer-events:none}.excalidraw .App-bottom-bar>.Island{width:100%;max-width:100%;min-width:100%;box-sizing:border-box;max-height:100%;display:flex;flex-direction:column;pointer-events:initial}.excalidraw .App-bottom-bar>.Island .panelColumn{padding:8px 8px 0 8px}.excalidraw .App-toolbar{width:100%}.excalidraw .App-toolbar .eraser.ToolIcon:hover{--icon-fill-color: #fff;--keybinding-color: #fff}.excalidraw .App-toolbar .eraser.active{background-color:var(--color-primary)}.excalidraw .App-toolbar-content{display:flex;align-items:center;justify-content:space-between;padding:8px}.excalidraw .App-mobile-menu{width:100%;overflow-x:visible;overflow-y:auto;box-sizing:border-box;margin-bottom:var(--bar-padding)}.excalidraw .App-menu{display:grid;color:var(--icon-fill-color)}.excalidraw .shapes-section{display:flex;justify-content:center;pointer-events:none !important}.excalidraw .shapes-section>*{pointer-events:all}.excalidraw .App-menu_top{grid-template-columns:1fr 2fr 1fr;grid-gap:2rem;align-items:flex-start;cursor:default;pointer-events:none !important}@media(min-width: 1536px){.excalidraw .App-menu_top{grid-template-columns:1fr 1fr 1fr;grid-gap:3rem}}.excalidraw .layer-ui__wrapper:not(.disable-pointerEvents) .App-menu_top>*{pointer-events:all}.excalidraw .App-menu_top>*:first-child{justify-self:flex-start}.excalidraw .App-menu_top>*:last-child{justify-self:flex-end}.excalidraw .App-menu_bottom{position:absolute;bottom:1rem;display:flex;justify-content:space-between;align-items:flex-start;cursor:default;pointer-events:none !important;box-sizing:border-box;padding:0 1rem}.excalidraw .App-menu_bottom--transition-left section{width:185px}.excalidraw .App-menu_bottom section{display:flex}.excalidraw .App-menu_bottom>*:first-child{justify-self:flex-start}.excalidraw .App-menu_bottom>*:last-child{justify-self:flex-end}.excalidraw .App-menu_left{grid-template-rows:1fr auto 1fr;height:100%}.excalidraw .App-menu_right{grid-template-rows:1fr;height:100%}.excalidraw .App-menu__left{overflow-y:auto;padding:.75rem;width:202px;box-sizing:border-box;position:absolute}.excalidraw .dropdown-select{height:1.5rem;padding:0;-webkit-padding-start:.5rem;padding-inline-start:.5rem;-webkit-padding-end:1.5rem;padding-inline-end:1.5rem;color:var(--icon-fill-color);background-color:var(--button-gray-1);border-radius:var(--space-factor);border:1px solid var(--button-gray-2);font-size:.8rem;outline:none;-webkit-appearance:none;appearance:none;background-image:var(--dropdown-icon);background-repeat:no-repeat;background-position:right .7rem top 50%,0 0;background-size:.65em auto,100%}:root[dir=rtl] .excalidraw .dropdown-select{background-position:left .7rem top 50%,0 0}.excalidraw .dropdown-select:focus{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .dropdown-select:hover{background-color:var(--button-gray-2)}.excalidraw .dropdown-select:active{background-color:var(--button-gray-2)}.excalidraw .dropdown-select__language{height:2rem;background-color:var(--island-bg-color);border-color:var(--default-border-color) !important;cursor:pointer}.excalidraw .dropdown-select__language:hover{background-color:var(--island-bg-color)}.excalidraw .disable-zen-mode{border-radius:var(--border-radius-lg);background-color:var(--color-gray-20);border:1px solid var(--color-gray-30);padding:10px 20px}.excalidraw .disable-zen-mode:hover{background-color:var(--color-gray-30)}.excalidraw .scroll-back-to-content{border-radius:var(--border-radius-lg);background-color:var(--island-bg-color);color:var(--icon-fill-color);border:1px solid var(--default-border-color);padding:10px 20px;position:absolute;left:50%;bottom:30px;-webkit-transform:translateX(-50%);transform:translateX(-50%);pointer-events:all}.excalidraw .scroll-back-to-content:hover{background-color:var(--button-hover-bg)}.excalidraw .scroll-back-to-content:active{border:1px solid var(--color-primary-darkest)}.excalidraw .help-icon{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--text-primary-color));background-color:var(--island-bg-color);width:var(--lg-button-size);height:var(--lg-button-size)}.excalidraw .help-icon svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .help-icon:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--default-border-color))}.excalidraw .help-icon:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .help-icon.active{background-color:var(--color-primary-light);border-color:var(--color-primary-light)}.excalidraw .help-icon.active:hover{background-color:var(--color-primary-light)}.excalidraw .help-icon.active svg{color:var(--button-color, var(--color-primary-darker))}.excalidraw .help-icon svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .reset-zoom-button{font-family:var(--ui-font)}.excalidraw .finalize-button{display:grid;grid-auto-flow:column;gap:.4em;margin-top:auto;margin-bottom:auto;-webkit-margin-start:.6em;margin-inline-start:.6em}.excalidraw .undo-redo-buttons,.excalidraw .eraser-buttons{display:grid;grid-auto-flow:column;margin-top:auto;margin-bottom:auto;-webkit-margin-start:.6em;margin-inline-start:.6em}.excalidraw--mobile.excalidraw aside{display:none}.excalidraw--mobile.excalidraw .scroll-back-to-content{bottom:calc(80px + var(--sab, 0));z-index:-1}:root[dir=rtl] .excalidraw .rtl-mirror{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.excalidraw .zen-mode-visibility{visibility:visible;opacity:1;height:auto;width:auto;transition:opacity .5s}.excalidraw .zen-mode-visibility.zen-mode-visibility--hidden{visibility:hidden;opacity:0;height:0;width:0;transition:opacity .5s}.excalidraw .disable-pointerEvents{pointer-events:none !important}.excalidraw.excalidraw--view-mode .App-menu{display:flex;justify-content:space-between}.excalidraw input[type=text],.excalidraw textarea:not(.excalidraw-wysiwyg){color:var(--text-primary-color);border:1.5px solid var(--input-border-color);padding:.75rem;white-space:nowrap;border-radius:var(--space-factor);background-color:var(--input-bg-color)}.excalidraw input[type=text]:not(:focus):hover,.excalidraw textarea:not(.excalidraw-wysiwyg):not(:focus):hover{background-color:var(--input-hover-bg-color)}.excalidraw input[type=text]:focus,.excalidraw textarea:not(.excalidraw-wysiwyg):focus{outline:none;box-shadow:0 0 0 2px var(--focus-highlight-color)}@media print{.excalidraw .App-bottom-bar,.excalidraw .FixedSideContainer,.excalidraw .layer-ui__wrapper{display:none}}.excalidraw ::-webkit-scrollbar{width:3px;height:3px}.excalidraw ::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:10px}.excalidraw ::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}.excalidraw ::-webkit-scrollbar-thumb:active{background:var(--scrollbar-thumb)}.excalidraw .mobile-misc-tools-container{position:absolute;top:calc(5rem - var(--editor-container-padding));right:calc(var(--editor-container-padding)*-1);display:flex;flex-direction:column;border:1px solid var(--sidebar-border-color);border-top-left-radius:var(--border-radius-lg);border-bottom-left-radius:var(--border-radius-lg);border-right:0;overflow:hidden;background-color:var(--island-bg-color)}.excalidraw .mobile-misc-tools-container .ToolIcon__icon{border-radius:0}.excalidraw .mobile-misc-tools-container .library-button{border:0}.excalidraw .App-toolbar--mobile{overflow-x:auto;max-width:90vw}.excalidraw .App-toolbar--mobile .ToolIcon__keybinding{display:none}.excalidraw .UserList-Wrapper{margin:0;padding:0;border:none;text-align:left}.excalidraw .UserList-Wrapper legend{display:block;font-size:.75rem;font-weight:400;margin:0 0 .25rem;padding:0}.ErrorSplash.excalidraw{min-height:100vh;padding:20px 0;overflow:auto;display:flex;align-items:center;justify-content:center;-webkit-user-select:text;user-select:text}.ErrorSplash.excalidraw .ErrorSplash-messageContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;background-color:#ffe3e3;border:3px solid #c92a2a}.ErrorSplash.excalidraw .ErrorSplash-paragraph{margin:15px 0;max-width:600px}.ErrorSplash.excalidraw .ErrorSplash-paragraph.align-center{text-align:center}.ErrorSplash.excalidraw .bigger,.ErrorSplash.excalidraw .bigger button{font-size:1.1em}.ErrorSplash.excalidraw .smaller,.ErrorSplash.excalidraw .smaller button{font-size:.9em}.ErrorSplash.excalidraw .ErrorSplash-details{display:flex;flex-direction:column;align-items:flex-start}.ErrorSplash.excalidraw .ErrorSplash-details textarea{width:100%;margin:10px 0;font-family:"Cascadia";font-size:.8em}',""]),t.Z=d},6464:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,"",""]),a.locals={themeFilter:"invert(93%) hue-rotate(180deg)",rightSidebarWidth:"302px"},t.Z=a},5260:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw-hyperlinkContainer{display:flex;align-items:center;justify-content:space-between;position:absolute;box-shadow:0px 2px 4px 0 rgba(0,0,0,.3);z-index:100;background:var(--island-bg-color);border-radius:var(--border-radius-md);box-sizing:border-box;min-height:42px}.excalidraw-hyperlinkContainer-input,.excalidraw-hyperlinkContainer button{z-index:100}.excalidraw-hyperlinkContainer-input,.excalidraw-hyperlinkContainer-link{height:24px;padding:0 8px;line-height:24px;font-size:.9rem;font-weight:500;font-family:var(--ui-font)}.excalidraw-hyperlinkContainer-input{width:18rem;border:none;background-color:rgba(0,0,0,0);color:var(--text-primary-color);outline:none;border:none;box-shadow:none !important}.excalidraw-hyperlinkContainer-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:15rem}.excalidraw-hyperlinkContainer button{color:#228be6;background-color:rgba(0,0,0,0) !important;font-weight:500}.excalidraw-hyperlinkContainer button.excalidraw-hyperlinkContainer--remove{color:#c92a2a}.excalidraw-hyperlinkContainer .d-none{display:none}.excalidraw-hyperlinkContainer--remove .ToolIcon__icon svg{color:#fa5252}.excalidraw-hyperlinkContainer .ToolIcon__icon{width:2rem;height:2rem}.excalidraw-hyperlinkContainer__buttons{flex:0 0 auto}",""]),t.Z=a},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},1667:function(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8081:function(e){"use strict";e.exports=function(e){return e[1]}},202:function(e,t,n){"use strict";n.d(t,{JQ:function(){return x},vD:function(){return y},y7:function(){return b}});var r=n(1930),o=n(7169),i=n(2335),a=n(1047),s=n(1935),l=n(5710),c=n(6906),u=n(1974),d=n(75),p=n(6340),f=n(7901);function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function m(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 g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=(0,f.z)({name:"unbindText",contextItemLabel:"labels.unbindText",trackEvent:{category:"element"},predicate:function(e,t){return(0,d.eD)(e,t).some((function(e){return(0,u.Xo)(e)}))},perform:function(e,t){return(0,d.eD)((0,a.Lm)(e),t).forEach((function(e){var t=(0,l.WJ)(e);if(t){var n,r=(0,l.X1)(t.originalText,(0,p.mO)(t),t.lineHeight),o=r.width,i=r.height,a=r.baseline,u=(0,c.eR)(e.id);(0,c.kT)(e.id);var d=(0,l.FE)(e,t),f=d.x,h=d.y;(0,s.DR)(t,{containerId:null,width:o,height:i,baseline:a,text:t.originalText,x:f,y:h}),(0,s.DR)(e,{boundElements:null===(n=e.boundElements)||void 0===n?void 0:n.filter((function(e){return e.id!==t.id})),height:u||e.height})}})),{elements:e,appState:t,commitToHistory:!0}}}),y=(0,f.z)({name:"bindText",contextItemLabel:"labels.bindText",trackEvent:{category:"element"},predicate:function(e,t){var n=(0,d.eD)(e,t);if(2===n.length){var r,o=(0,a.iB)(n[0])||(0,a.iB)(n[1]);if((0,u.mG)(n[0])?r=n[0]:(0,u.mG)(n[1])&&(r=n[1]),o&&r&&null===(0,l.WJ)(r))return!0}return!1},perform:function(e,t){var n,r,p=(0,d.eD)((0,a.Lm)(e),t);(0,a.iB)(p[0])&&(0,u.mG)(p[1])?(n=p[0],r=p[1]):(n=p[1],r=p[0]),(0,s.DR)(n,{containerId:r.id,verticalAlign:i.oX.MIDDLE,textAlign:i.I8.CENTER}),(0,s.DR)(r,{boundElements:(r.boundElements||[]).concat({type:"text",id:n.id})});var f=r.height;return(0,l.oN)(n,r),(0,c.h_)(r.id,f),{elements:w(e,r,n),appState:v(v({},t),{},{selectedElementIds:(0,o.Z)({},r.id,!0)}),commitToHistory:!0}}}),w=function(e,t,n){var r=e.slice(),o=r.findIndex((function(e){return e.id===n.id}));r.splice(o,1);var i=r.findIndex((function(e){return e.id===t.id}));return r.splice(i+1,0,n),r},x=(0,f.z)({name:"wrapTextInContainer",contextItemLabel:"labels.createContainerFromText",trackEvent:{category:"element"},predicate:function(e,t){var n=(0,d.eD)(e,t),r=n.every((function(e){return(0,a.iB)(e)}));return n.length>0&&r},perform:function(e,t){var n,o=(0,d.eD)((0,a.Lm)(e),t),c=e.slice(),p={},f=h(o);try{var m=function(){var e=n.value;if((0,a.iB)(e)){var o,d=(0,a.Up)({type:"rectangle",backgroundColor:t.currentItemBackgroundColor,boundElements:[].concat((0,r.Z)(e.boundElements||[]),[{id:e.id,type:"text"}]),angle:e.angle,fillStyle:t.currentItemFillStyle,strokeColor:t.currentItemStrokeColor,roughness:t.currentItemRoughness,strokeWidth:t.currentItemStrokeWidth,strokeStyle:t.currentItemStrokeStyle,roundness:"round"===t.currentItemRoundness?{type:(0,u.QI)("rectangle")?i.a6.ADAPTIVE_RADIUS:i.a6.PROPORTIONAL_RADIUS}:null,opacity:100,locked:!1,x:e.x-i.gK,y:e.y-i.gK,width:(0,l.NS)(e.width,"rectangle"),height:(0,l.NS)(e.height,"rectangle"),groupIds:e.groupIds});if(null!==(o=e.boundElements)&&void 0!==o&&o.length){var f=e.boundElements.filter((function(e){return"arrow"===e.type})).map((function(e){return e.id}));c.filter((function(e){return f.includes(e.id)})).forEach((function(t){var n,r,o=t.startBinding,i=t.endBinding;(null===(n=o)||void 0===n?void 0:n.elementId)===e.id&&(o=v(v({},o),{},{elementId:d.id})),(null===(r=i)||void 0===r?void 0:r.elementId)===e.id&&(i=v(v({},i),{},{elementId:d.id})),(o||i)&&(0,s.DR)(t,{startBinding:o,endBinding:i},!1)}))}(0,s.DR)(e,{containerId:d.id,verticalAlign:i.oX.MIDDLE,boundElements:null,textAlign:i.I8.CENTER},!1),(0,l.oN)(e,d),c=function(e,t,n){var r=e.slice(),o=r.findIndex((function(e){return e.id===t.id}));r.splice(o,1);var i=r.findIndex((function(e){return e.id===n.id}));return r.splice(i,0,t),r}([].concat((0,r.Z)(c),[d]),d,e),p[d.id]=!0}};for(f.s();!(n=f.n()).done;)m()}catch(e){f.e(e)}finally{f.f()}return{elements:c,appState:v(v({},t),{},{selectedElementIds:p}),commitToHistory:!0}}})},2416:function(e,t,n){"use strict";n.d(t,{CZ:function(){return E},Lo:function(){return S},Zp:function(){return O},eF:function(){return j},md:function(){return C},mo:function(){return _}});var r=n(2577),o=n(7169),i=n(4499),a=n(3646),s=n(1319),l=n(2335),c=n(1047),u=n(8211),d=n(6066),p=n(75),f=n(2264),h=n(746),m=n(6340),g=n(7901),v=n(1894),b=n(1935),y=n(8897),w=n(4512);function x(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 k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,g.z)({name:"changeViewBackgroundColor",trackEvent:!1,predicate:function(e,t,n,r){return!!r.props.UIOptions.canvasActions.changeViewBackgroundColor&&!t.viewModeEnabled},perform:function(e,t,n){return{appState:k(k({},t),n),commitToHistory:!!n.viewBackgroundColor}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,w.jsx)("div",{style:{position:"relative"},children:(0,w.jsx)(i.z,{label:(0,u.t)("labels.canvasBackground"),type:"canvasBackground",color:n.viewBackgroundColor,onChange:function(e){return r({viewBackgroundColor:e})},isActive:"canvasColorPicker"===n.openPopup,setActive:function(e){return r({openPopup:e?"canvasColorPicker":null})},"data-testid":"canvas-background-picker",elements:t,appState:n})})}});var _=(0,g.z)({name:"clearCanvas",trackEvent:{category:"canvas"},predicate:function(e,t,n,r){return!!r.props.UIOptions.canvasActions.clearCanvas&&!t.viewModeEnabled},perform:function(e,t,n,r){return r.imageCache.clear(),{elements:e.map((function(e){return(0,b.BE)(e,{isDeleted:!0})})),appState:k(k({},(0,y.im)()),{},{files:{},theme:t.theme,penMode:t.penMode,penDetected:t.penDetected,exportBackground:t.exportBackground,exportEmbedScene:t.exportEmbedScene,gridSize:t.gridSize,showStats:t.showStats,pasteDialog:t.pasteDialog,activeTool:"image"===t.activeTool.type?k(k({},t.activeTool),{},{type:"selection"}):t.activeTool}),commitToHistory:!0}}}),S=(0,g.z)({name:"zoomIn",viewMode:!0,trackEvent:{category:"canvas"},perform:function(e,t,n,r){return{appState:k(k({},t),(0,h.E)({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:(0,p.j)(t.zoom.value+l.V4)},t)),commitToHistory:!1}},PanelComponent:function(e){var t=e.updateData;return(0,w.jsx)(s.V,{type:"button",className:"zoom-in-button zoom-button",icon:a.Sd,title:"".concat((0,u.t)("buttons.zoomIn")," — ").concat((0,m.uY)("CtrlOrCmd++")),"aria-label":(0,u.t)("buttons.zoomIn"),onClick:function(){t(null)}})},keyTest:function(e){return(e.code===d.aU.EQUAL||e.code===d.aU.NUM_ADD)&&(e[d.tW.CTRL_OR_CMD]||e.shiftKey)}}),E=(0,g.z)({name:"zoomOut",viewMode:!0,trackEvent:{category:"canvas"},perform:function(e,t,n,r){return{appState:k(k({},t),(0,h.E)({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:(0,p.j)(t.zoom.value-l.V4)},t)),commitToHistory:!1}},PanelComponent:function(e){var t=e.updateData;return(0,w.jsx)(s.V,{type:"button",className:"zoom-out-button zoom-button",icon:a.xL,title:"".concat((0,u.t)("buttons.zoomOut")," — ").concat((0,m.uY)("CtrlOrCmd+-")),"aria-label":(0,u.t)("buttons.zoomOut"),onClick:function(){t(null)}})},keyTest:function(e){return(e.code===d.aU.MINUS||e.code===d.aU.NUM_SUBTRACT)&&(e[d.tW.CTRL_OR_CMD]||e.shiftKey)}}),P=((0,g.z)({name:"resetZoom",viewMode:!0,trackEvent:{category:"canvas"},perform:function(e,t,n,r){return{appState:k(k({},t),(0,h.E)({viewportX:t.width/2+t.offsetLeft,viewportY:t.height/2+t.offsetTop,nextZoom:(0,p.j)(1)},t)),commitToHistory:!1}},PanelComponent:function(e){var t=e.updateData,n=e.appState;return(0,w.jsx)(v.u,{label:(0,u.t)("buttons.resetZoom"),style:{height:"100%"},children:(0,w.jsxs)(s.V,{type:"button",className:"reset-zoom-button zoom-button",title:(0,u.t)("buttons.resetZoom"),"aria-label":(0,u.t)("buttons.resetZoom"),onClick:function(){t(null)},children:[(100*n.zoom.value).toFixed(0),"%"]})})},keyTest:function(e){return(e.code===d.aU.ZERO||e.code===d.aU.NUM_ZERO)&&(e[d.tW.CTRL_OR_CMD]||e.shiftKey)}}),function(e,t){var n=(0,r.Z)(e,4),o=n[0],i=n[1],a=n[2],s=n[3],c=a-o,u=t.width/c,d=s-i,p=t.height/d,f=Math.min(u,p),h=Math.floor(f/l.V4)*l.V4;return Math.min(Math.max(h,l.Zj),1)}),C=function(e,t,n){var o=(0,c.Lm)(e),i=(0,p.eD)(o,t),a=n&&i.length>0?(0,c.KP)(i):(0,c.KP)(o),s={value:P(a,{width:t.width,height:t.height})},l=(0,r.Z)(a,4),u=l[0],d=l[1],h=(u+l[2])/2,m=(d+l[3])/2;return{appState:k(k(k({},t),(0,f.s)({scenePoint:{x:h,y:m},viewportDimensions:{width:t.width,height:t.height},zoom:s})),{},{zoom:s}),commitToHistory:!1}},O=((0,g.z)({name:"zoomToSelection",trackEvent:{category:"canvas"},perform:function(e,t){return C(e,t,!0)},keyTest:function(e){return e.code===d.aU.TWO&&e.shiftKey&&!e.altKey&&!e[d.tW.CTRL_OR_CMD]}}),(0,g.z)({name:"zoomToFit",viewMode:!0,trackEvent:{category:"canvas"},perform:function(e,t){return C(e,t,!1)},keyTest:function(e){return e.code===d.aU.ONE&&e.shiftKey&&!e.altKey&&!e[d.tW.CTRL_OR_CMD]}}),(0,g.z)({name:"toggleTheme",viewMode:!0,trackEvent:{category:"canvas"},perform:function(e,t,n){return{appState:k(k({},t),{},{theme:n||(t.theme===l.C6.LIGHT?l.C6.DARK:l.C6.LIGHT)}),commitToHistory:!1}},keyTest:function(e){return e.altKey&&e.shiftKey&&e.code===d.aU.D},predicate:function(e,t,n,r){return!!r.props.UIOptions.canvasActions.toggleTheme}})),j=((0,g.z)({name:"toggleEraserTool",trackEvent:{category:"toolbar"},perform:function(e,t){var n;return n=(0,y.EN)(t)?(0,m.Om)(t,k(k({},t.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(0,m.Om)(t,{type:"eraser",lastActiveToolBeforeEraser:t.activeTool}),{appState:k(k({},t),{},{selectedElementIds:{},selectedGroupIds:{},activeTool:n}),commitToHistory:!0}},keyTest:function(e){return e.key===d.tW.E}}),(0,g.z)({name:"toggleHandTool",trackEvent:{category:"toolbar"},perform:function(e,t,n,r){var o;return(0,y.l$)(t)?o=(0,m.Om)(t,k(k({},t.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(o=(0,m.Om)(t,{type:"hand",lastActiveToolBeforeEraser:t.activeTool}),(0,m.KJ)(r.canvas,l.oc.GRAB)),{appState:k(k({},t),{},{selectedElementIds:{},selectedGroupIds:{},activeTool:o}),commitToHistory:!0}},keyTest:function(e){return e.key===d.tW.H}}))},4688:function(e,t,n){"use strict";n.d(t,{FA:function(){return k},ZM:function(){return x},jK:function(){return _},uN:function(){return y},yQ:function(){return w},zp:function(){return S}});var r=n(7169),o=n(8950),i=n(2975),a=n.n(i),s=n(6066),l=n(7901),c=n(6665),u=n(533),d=n(1868),p=n(9485),f=n(1047),h=n(8211);function m(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v,b,y=(0,l.z)({name:"copy",trackEvent:{category:"element"},perform:function(e,t,n,r){var o=(0,d.eD)(e,t,!0);return(0,c.vQ)(o,t,r.files),{commitToHistory:!1}},predicate:function(e,t,n,r){return r.device.isMobile&&!!navigator.clipboard},contextItemLabel:"labels.copy",keyTest:void 0}),w=(0,l.z)({name:"paste",trackEvent:{category:"element"},perform:function(e,t,n,r){return r.pasteFromClipboard(null),{commitToHistory:!1}},predicate:function(e,t,n,r){return r.device.isMobile&&!!navigator.clipboard},contextItemLabel:"labels.paste",keyTest:void 0}),x=(0,l.z)({name:"cut",trackEvent:{category:"element"},perform:function(e,t,n,r){return y.perform(e,t,n,r),u.X.perform(e,t)},predicate:function(e,t,n,r){return r.device.isMobile&&!!navigator.clipboard},contextItemLabel:"labels.cut",keyTest:function(e){return e[s.tW.CTRL_OR_CMD]&&e.key===s.tW.X}}),k=(0,l.z)({name:"copyAsSvg",trackEvent:{category:"element"},perform:(v=(0,o.Z)(a().mark((function e(t,n,r,o){var i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.canvas){e.next=2;break}return e.abrupt("return",{commitToHistory:!1});case 2:return i=(0,d.eD)((0,f.Lm)(t),n,!0),e.prev=3,e.next=6,(0,p.p1)("clipboard-svg",i.length?i:(0,f.Lm)(t),n,o.files,n);case 6:return e.abrupt("return",{commitToHistory:!1});case 9:return e.prev=9,e.t0=e.catch(3),console.error(e.t0),e.abrupt("return",{appState:g(g({},n),{},{errorMessage:e.t0.message}),commitToHistory:!1});case 13:case"end":return e.stop()}}),e,null,[[3,9]])}))),function(e,t,n,r){return v.apply(this,arguments)}),predicate:function(e){return c.wx&&e.length>0},contextItemLabel:"labels.copyAsSvg"}),_=(0,l.z)({name:"copyAsPng",trackEvent:{category:"element"},perform:(b=(0,o.Z)(a().mark((function e(t,n,r,o){var i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.canvas){e.next=2;break}return e.abrupt("return",{commitToHistory:!1});case 2:return i=(0,d.eD)((0,f.Lm)(t),n,!0),e.prev=3,e.next=6,(0,p.p1)("clipboard",i.length?i:(0,f.Lm)(t),n,o.files,n);case 6:return e.abrupt("return",{appState:g(g({},n),{},{toast:{message:(0,h.t)("toast.copyToClipboardAsPng",{exportSelection:i.length?(0,h.t)("toast.selection"):(0,h.t)("toast.canvas"),exportColorScheme:n.exportWithDarkMode?(0,h.t)("buttons.darkMode"):(0,h.t)("buttons.lightMode")})}}),commitToHistory:!1});case 9:return e.prev=9,e.t0=e.catch(3),console.error(e.t0),e.abrupt("return",{appState:g(g({},n),{},{errorMessage:e.t0.message}),commitToHistory:!1});case 13:case"end":return e.stop()}}),e,null,[[3,9]])}))),function(e,t,n,r){return b.apply(this,arguments)}),predicate:function(e){return c.vt&&e.length>0},contextItemLabel:"labels.copyAsPng",keyTest:function(e){return e.code===s.aU.C&&e.altKey&&e.shiftKey}}),S=(0,l.z)({name:"copyText",trackEvent:{category:"element"},perform:function(e,t){var n=(0,d.eD)((0,f.Lm)(e),t,!0).reduce((function(e,t){return(0,f.iB)(t)&&e.push(t.text),e}),[]).join("\n\n");return(0,c.dd)(n),{commitToHistory:!1}},predicate:function(e,t){return c.wx&&(0,d.eD)(e,t,!0).some(f.iB)},contextItemLabel:"labels.copyText"})},533:function(e,t,n){"use strict";n.d(t,{X:function(){return x}});var r=n(7169),o=n(75),i=n(6066),a=n(1319),s=n(8211),l=n(7901),c=n(1047),u=n(1935),d=n(242),p=n(6938),f=n(8290),h=n(1974),m=n(6340),g=n(3646),v=n(4512);function b(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 y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=function(e,t){if(e.editingGroupId){var n=(0,d.Fb)((0,c.Lm)(t),e.editingGroupId);if(n.length)return y(y({},e),{},{selectedElementIds:(0,r.Z)({},n[0].id,!0)})}return e},x=(0,l.z)({name:"deleteSelectedElements",trackEvent:{category:"element",action:"delete"},perform:function(e,t){if(t.editingLinearElement){var n=t.editingLinearElement,r=n.elementId,i=n.selectedPointsIndices,a=n.startBindingElement,s=n.endBindingElement,l=p._.getElement(r);if(!l)return!1;if(null==i)return!1;if(l.points.length<2){var d=e.map((function(e){return e.id===l.id?(0,u.BE)(e,{isDeleted:!0}):e}));return{elements:d,appState:y(y({},w(t,d)),{},{editingLinearElement:null}),commitToHistory:!1}}var g={startBindingElement:null!=i&&i.includes(0)?null:a,endBindingElement:null!=i&&i.includes(l.points.length-1)?null:s};return p._.deletePoints(l,i),{elements:e,appState:y(y({},t),{},{editingLinearElement:y(y(y({},t.editingLinearElement),g),{},{selectedPointsIndices:(null==i?void 0:i[0])>0?[i[0]-1]:[0]})}),commitToHistory:!0}}var v=function(e,t){return{elements:e.map((function(e){return t.selectedElementIds[e.id]||(0,h.Xh)(e)&&t.selectedElementIds[e.containerId]?(0,u.BE)(e,{isDeleted:!0}):e})),appState:y(y({},t),{},{selectedElementIds:{}})}}(e,t),b=v.elements,x=v.appState;return(0,f.$q)(b,e.filter((function(e){var n=e.id;return t.selectedElementIds[n]}))),{elements:b,appState:y(y({},x=w(x,b)),{},{activeTool:(0,m.Om)(t,{type:"selection"}),multiElement:null}),commitToHistory:(0,o.N)((0,c.Lm)(e),t)}},contextItemLabel:"labels.delete",keyTest:function(e,t,n){return(e.key===i.tW.BACKSPACE||e.key===i.tW.DELETE)&&!e[i.tW.CTRL_OR_CMD]},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,v.jsx)(a.V,{type:"button",icon:g.XH,title:(0,s.t)("labels.delete"),"aria-label":(0,s.t)("labels.delete"),onClick:function(){return r(null)},visible:(0,o.N)((0,c.Lm)(t),n)})}})},8671:function(e,t,n){"use strict";n.d(t,{_d:function(){return te},mM:function(){return ee},ns:function(){return Q}});var r=n(8950),o=n(2577),i=n(7169),a=n(2975),s=n.n(a),l=n(3646),c=n(487),u=n.n(c),d=n(631),p=n.n(d),f=n(2052),h=n.n(f),m=n(4010),g=n.n(m),v=n(1469),b=n.n(v),y=n(9329),w=n.n(y),x=n(6759),k={};k.styleTagTransform=w(),k.setAttributes=g(),k.insert=h().bind(null,"head"),k.domAPI=p(),k.insertStyleElement=b(),u()(x.Z,k),x.Z&&x.Z.locals&&x.Z.locals;var _=n(9787),S=n(6340),E=n(532),P={};P.styleTagTransform=w(),P.setAttributes=g(),P.insert=h().bind(null,"head"),P.domAPI=p(),P.insertStyleElement=b(),u()(E.Z,P),E.Z&&E.Z.locals&&E.Z.locals;var C=n(2134),O=n(4512),j=function(e){var t=(0,C.J0)().id,n=(0,_.useState)(e.value),r=(0,o.Z)(n,2),i=r[0],a=r[1];return(0,O.jsxs)("div",{className:"ProjectName",children:[(0,O.jsx)("label",{className:"ProjectName-label",htmlFor:"filename",children:"".concat(e.label).concat(e.isNameEditable?"":":")}),e.isNameEditable?(0,O.jsx)("input",{type:"text",className:"TextInput",onBlur:function(t){(0,S.qz)(t.target);var n=t.target.value;n!==e.value&&e.onChange(n)},onKeyDown:function(e){if("Enter"===e.key){if(e.preventDefault(),e.nativeEvent.isComposing||229===e.keyCode)return;e.currentTarget.blur()}},id:"".concat(t,"-filename"),value:i,onChange:function(e){return a(e.target.value)}}):(0,O.jsx)("span",{className:"TextInput TextInput--readonly",id:"".concat(t,"-filename"),children:e.value})]})},T=n(1319),M=n(1894),I=(n(5422),n(8211)),D=n(2335),A=function(e){var t=e.title||("dark"===e.value?(0,I.t)("buttons.lightMode"):(0,I.t)("buttons.darkMode"));return(0,O.jsx)(T.V,{type:"icon",icon:e.value===D.C6.LIGHT?L.MOON:L.SUN,title:t,"aria-label":t,onClick:function(){return e.onChange(e.value===D.C6.DARK?D.C6.LIGHT:D.C6.DARK)},"data-testid":"toggle-dark-mode"})},L={SUN:(0,O.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,O.jsx)("path",{fill:"currentColor",d:"M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"})}),MOON:(0,O.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,O.jsx)("path",{fill:"currentColor",d:"M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"})})},N=n(9485),R=n(1047),z=n(434);function F(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 Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var B=function(){var e=(0,r.Z)(s().mark((function e(t,n,r){var o,i,a,l,c,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(o=n).exportBackground,a=o.viewBackgroundColor,l=o.name,c=o.fileHandle,u=(0,z.Qk)(c),c&&(0,z.DQ)(u)){e.next=4;break}throw new Error("fileHandle should exist and should be of type svg or png when resaving");case 4:return n=Z(Z({},n),{},{exportEmbedScene:!0}),e.next=7,(0,N.p1)(u,(0,R.Lm)(t),n,r,{exportBackground:i,viewBackgroundColor:a,name:l,fileHandle:c});case 7:return e.abrupt("return",{fileHandle:c});case 8:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),U=n(6066),W=n(7901),H=n(3807),K=n(4162),V=n(75),Y=n(1393);function G(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 q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,W.z)({name:"changeProjectName",trackEvent:!1,perform:function(e,t,n){return{appState:q(q({},t),{},{name:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData,r=e.appProps;return(0,O.jsx)(j,{label:(0,I.t)("labels.fileTitle"),value:t.name||"Unnamed",onChange:function(e){return n(e)},isNameEditable:void 0===r.name&&!t.viewModeEnabled})}}),(0,W.z)({name:"changeExportScale",trackEvent:{category:"export",action:"scale"},perform:function(e,t,n){return{appState:q(q({},t),{},{exportScale:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,i=(0,R.Lm)(t),a=(0,V.N)(i,n)?(0,V.eD)(i,n):i;return(0,O.jsx)(O.Fragment,{children:D.ZB.map((function(e){var t=(0,K.Cg)(a,D.qy,e),i=(0,o.Z)(t,2),s=i[0],l=i[1],c="".concat((0,I.t)("buttons.scale")," ").concat(e,"x (").concat(s,"x").concat(l,")");return(0,O.jsx)(T.V,{size:"small",type:"radio",icon:"".concat(e,"x"),name:"export-canvas-scale",title:c,"aria-label":c,id:"export-canvas-scale",checked:e===n.exportScale,onChange:function(){return r(e)}},e)}))})}}),(0,W.z)({name:"changeExportBackground",trackEvent:{category:"export",action:"toggleBackground"},perform:function(e,t,n){return{appState:q(q({},t),{},{exportBackground:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return(0,O.jsx)(H.o,{checked:t.exportBackground,onChange:function(e){return n(e)},children:(0,I.t)("labels.withBackground")})}}),(0,W.z)({name:"changeExportEmbedScene",trackEvent:{category:"export",action:"embedScene"},perform:function(e,t,n){return{appState:q(q({},t),{},{exportEmbedScene:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return(0,O.jsxs)(H.o,{checked:t.exportEmbedScene,onChange:function(e){return n(e)},children:[(0,I.t)("labels.exportEmbedScene"),(0,O.jsx)(M.u,{label:(0,I.t)("labels.exportEmbedScene_details"),long:!0,children:(0,O.jsx)("div",{className:"excalidraw-tooltip-icon",children:l.Vl})})]})}});var X,$,J,Q=(0,W.z)({name:"saveToActiveFile",trackEvent:{category:"export"},predicate:function(e,t,n,r){return!!r.props.UIOptions.canvasActions.saveToActiveFile&&!!t.fileHandle&&!t.viewModeEnabled},perform:(X=(0,r.Z)(s().mark((function e(t,n,r,o){var i,a,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=!!n.fileHandle,e.prev=1,!(0,z.g8)(n.fileHandle)){e.next=8;break}return e.next=5,B(t,n,o.files);case 5:e.t0=e.sent,e.next=11;break;case 8:return e.next=10,(0,N.Um)(t,n,o.files);case 10:e.t0=e.sent;case 11:return a=e.t0,l=a.fileHandle,e.abrupt("return",{commitToHistory:!1,appState:q(q({},n),{},{fileHandle:l,toast:i?{message:null!=l&&l.name?(0,I.t)("toast.fileSavedToFilename").replace("{filename}",'"'.concat(l.name,'"')):(0,I.t)("toast.fileSaved")}:null})});case 16:return e.prev=16,e.t1=e.catch(1),"AbortError"!==(null===e.t1||void 0===e.t1?void 0:e.t1.name)?console.error(e.t1):console.warn(e.t1),e.abrupt("return",{commitToHistory:!1});case 20:case"end":return e.stop()}}),e,null,[[1,16]])}))),function(e,t,n,r){return X.apply(this,arguments)}),keyTest:function(e){return e.key===U.tW.S&&e[U.tW.CTRL_OR_CMD]&&!e.shiftKey}}),ee=(0,W.z)({name:"saveFileToDisk",viewMode:!0,trackEvent:{category:"export"},perform:($=(0,r.Z)(s().mark((function e(t,n,r,o){var i,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,N.Um)(t,q(q({},n),{},{fileHandle:null}),o.files);case 3:return i=e.sent,a=i.fileHandle,e.abrupt("return",{commitToHistory:!1,appState:q(q({},n),{},{fileHandle:a})});case 8:return e.prev=8,e.t0=e.catch(0),"AbortError"!==(null===e.t0||void 0===e.t0?void 0:e.t0.name)?console.error(e.t0):console.warn(e.t0),e.abrupt("return",{commitToHistory:!1});case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))),function(e,t,n,r){return $.apply(this,arguments)}),keyTest:function(e){return e.key===U.tW.S&&e.shiftKey&&e[U.tW.CTRL_OR_CMD]},PanelComponent:function(e){var t=e.updateData;return(0,O.jsx)(T.V,{type:"button",icon:l.po,title:(0,I.t)("buttons.saveAs"),"aria-label":(0,I.t)("buttons.saveAs"),showAriaLabel:(0,C.Fy)().isMobile,hidden:!Y.kr,onClick:function(){return t(null)},"data-testid":"save-as-button"})}}),te=(0,W.z)({name:"loadScene",trackEvent:{category:"export"},predicate:function(e,t,n,r){return!!r.props.UIOptions.canvasActions.loadScene&&!t.viewModeEnabled},perform:(J=(0,r.Z)(s().mark((function e(t,n,r,o){var i,a,l,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,N.n8)(n,t);case 3:return i=e.sent,a=i.elements,l=i.appState,c=i.files,e.abrupt("return",{elements:a,appState:l,files:c,commitToHistory:!0});case 10:if(e.prev=10,e.t0=e.catch(0),"AbortError"!==(null===e.t0||void 0===e.t0?void 0:e.t0.name)){e.next=15;break}return console.warn(e.t0),e.abrupt("return",!1);case 15:return e.abrupt("return",{elements:t,appState:q(q({},n),{},{errorMessage:e.t0.message}),files:o.files,commitToHistory:!1});case 16:case"end":return e.stop()}}),e,null,[[0,10]])}))),function(e,t,n,r){return J.apply(this,arguments)}),keyTest:function(e){return e[U.tW.CTRL_OR_CMD]&&e.key===U.tW.O}});(0,W.z)({name:"exportWithDarkMode",trackEvent:{category:"export",action:"toggleTheme"},perform:function(e,t,n){return{appState:q(q({},t),{},{exportWithDarkMode:n}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return(0,O.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"-45px",marginBottom:"10px"},children:(0,O.jsx)(A,{value:t.exportWithDarkMode?D.C6.DARK:D.C6.LIGHT,onChange:function(e){n(e===D.C6.DARK)},title:(0,I.t)("labels.toggleExportColorScheme")})})}})},6208:function(e,t,n){"use strict";n.d(t,{Tu:function(){return X},Zq:function(){return $}});var r=n(1930),o=n(7169),i=n(7047),a=n(45),s=n(4512),l=function(e){return(0,s.jsx)("div",{className:"buttonList buttonListIcon",children:e.options.map((function(t){var n;return"button"===e.type?(0,s.jsx)("button",{onClick:function(n){return e.onClick(t.value,n)},className:(0,a.Z)({active:null!==(n=t.active)&&void 0!==n?n:e.value===t.value}),"data-testid":t.testId,title:t.text,children:t.icon},t.text):(0,s.jsxs)("label",{className:(0,a.Z)({active:e.value===t.value}),title:t.text,children:[(0,s.jsx)("input",{type:"radio",name:e.group,onChange:function(){return e.onChange(t.value)},checked:e.value===t.value,"data-testid":t.testId}),t.icon]},t.text)}))})},c=n(4499),u=n(2577),d=n(9787),p=n.n(d),f=n(2891),h=n(487),m=n.n(h),g=n(631),v=n.n(g),b=n(2052),y=n.n(b),w=n(4010),x=n.n(w),k=n(1469),_=n.n(k),S=n(9329),E=n.n(S),P=n(9478),C={};C.styleTagTransform=E(),C.setAttributes=x(),C.insert=y().bind(null,"head"),C.domAPI=v(),C.insertStyleElement=_(),m()(P.Z,C),P.Z&&P.Z.locals&&P.Z.locals;var O=n(6066),j=n(8211);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e){var t=e.options,n=e.value,r=e.label,o=e.onChange,i=e.onClose,l=p().useRef(),c=p().useRef(),u=p().useRef(null);return p().useEffect((function(){c.current?c.current.focus():u.current&&u.current.focus()}),[]),(0,s.jsx)("div",{className:"picker",role:"dialog","aria-modal":"true","aria-label":r,onKeyDown:function(e){var n=t.find((function(t){return t.keyBinding===e.key.toLowerCase()}));if(e.metaKey||e.altKey||e.ctrlKey||!n)if(e.key===O.tW.TAB)setTimeout((function(){c.current!==document.activeElement&&i()}),0);else if((0,O.Wl)(e.key)){var r=document.activeElement,o=(0,j.G3)().rtl,a=Array.prototype.indexOf.call(u.current.children,r);if(-1!==a){var s=t.length,l=a;switch(e.key){case o?O.tW.ARROW_LEFT:O.tW.ARROW_RIGHT:case O.tW.ARROW_DOWN:l=(a+1)%s;break;case o?O.tW.ARROW_RIGHT:O.tW.ARROW_LEFT:case O.tW.ARROW_UP:l=(s+a-1)%s}u.current.children[l].focus()}e.preventDefault()}else e.key!==O.tW.ESCAPE&&e.key!==O.tW.ENTER||(e.preventDefault(),i());else{var d=t.indexOf(n);u.current.children[d].focus(),e.preventDefault()}e.nativeEvent.stopImmediatePropagation(),e.stopPropagation()},children:(0,s.jsx)("div",{className:"picker-content",ref:u,children:t.map((function(e,t){return(0,s.jsxs)("button",{className:(0,a.Z)("picker-option",{active:n===e.value}),onClick:function(t){t.currentTarget.focus(),o(e.value)},title:"".concat(e.text," — ").concat(e.keyBinding.toUpperCase()),"aria-label":e.text||"none","aria-keyshortcuts":e.keyBinding,ref:function(r){r&&0===t&&(l.current=r),r&&e.value===n&&(c.current=r)},onFocus:function(){o(e.value)},children:[e.icon,(0,s.jsx)("span",{className:"picker-keybinding",children:e.keyBinding})]},e.text)}))})})}function D(e){var t,n=e.value,r=e.label,o=e.options,i=e.onChange,a=e.group,l=void 0===a?"":a,c=p().useState(!1),d=(0,u.Z)(c,2),h=d[0],m=d[1],g=p().useRef(null),v=(0,j.G3)().rtl;return(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{name:l,className:h?"active":"","aria-label":r,onClick:function(){return m(!h)},ref:g,children:null===(t=o.find((function(e){return e.value===n})))||void 0===t?void 0:t.icon}),(0,s.jsx)(p().Suspense,{fallback:"",children:h?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.J,M(M({onCloseRequest:function(e){return e.target!==g.current&&m(!1)}},v?{right:5.5}:{left:-5.5}),{},{children:(0,s.jsx)(I,{options:o,value:n,label:r,onChange:i,onClose:function(){var e;m(!1),null===(e=g.current)||void 0===e||e.focus()}})})),(0,s.jsx)("div",{className:"picker-triangle"})]}):null})]})}var A=n(3646),L=n(2335),N=n(1047),R=n(1935),z=n(5710),F=n(1974),Z=n(6954),B=n(75),U=n(8120),W=n(6340),H=n(7901);function K(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 V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Y=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=(0,W.xn)((0,B.eD)(e,t,r));return e.map((function(e){var r;return o.get(e.id)||e.id===(null===(r=t.editingElement)||void 0===r?void 0:r.id)?n(e):e}))},G=function(e,t,n,r){var o,i,a=t.editingElement,s=(0,N.Lm)(e);return null!==(o=null!==(i=a&&n(a))&&void 0!==i?i:(0,B.N)(s,t)?(0,B.PR)(s,t,n):r)&&void 0!==o?o:null},q=function(e,t,n,o){var i=new Set;return{elements:Y(e,t,(function(e){if((0,N.iB)(e)){var t=n(e);i.add(t);var r=(0,R.BE)(e,{fontSize:t});return(0,N.oN)(r,(0,z.tl)(e)),o=e,a=r,(0,F.Xh)(a)?a:(0,R.DR)(a,{x:"left"===o.textAlign?o.x:o.x+(o.width-a.width)/("center"===o.textAlign?2:1),y:o.y+(o.height-a.height)/2},!1)}var o,a;return e}),!0),appState:V(V({},t),{},{currentItemFontSize:1===i.size?(0,r.Z)(i)[0]:null!=o?o:t.currentItemFontSize}),commitToHistory:!0}},X=((0,H.z)({name:"changeStrokeColor",trackEvent:!1,perform:function(e,t,n){return V(V({},n.currentItemStrokeColor&&{elements:Y(e,t,(function(e){return(0,U.PD)(e.type)?(0,R.BE)(e,{strokeColor:n.currentItemStrokeColor}):e}),!0)}),{},{appState:V(V({},t),n),commitToHistory:!!n.currentItemStrokeColor})},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{"aria-hidden":"true",children:(0,j.t)("labels.stroke")}),(0,s.jsx)(c.z,{type:"elementStroke",label:(0,j.t)("labels.stroke"),color:G(t,n,(function(e){return e.strokeColor}),n.currentItemStrokeColor),onChange:function(e){return r({currentItemStrokeColor:e})},isActive:"strokeColorPicker"===n.openPopup,setActive:function(e){return r({openPopup:e?"strokeColorPicker":null})},elements:t,appState:n})]})}}),(0,H.z)({name:"changeBackgroundColor",trackEvent:!1,perform:function(e,t,n){return V(V({},n.currentItemBackgroundColor&&{elements:Y(e,t,(function(e){return(0,R.BE)(e,{backgroundColor:n.currentItemBackgroundColor})}))}),{},{appState:V(V({},t),n),commitToHistory:!!n.currentItemBackgroundColor})},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{"aria-hidden":"true",children:(0,j.t)("labels.background")}),(0,s.jsx)(c.z,{type:"elementBackground",label:(0,j.t)("labels.background"),color:G(t,n,(function(e){return e.backgroundColor}),n.currentItemBackgroundColor),onChange:function(e){return r({currentItemBackgroundColor:e})},isActive:"backgroundColorPicker"===n.openPopup,setActive:function(e){return r({openPopup:e?"backgroundColorPicker":null})},elements:t,appState:n})]})}}),(0,H.z)({name:"changeFillStyle",trackEvent:!1,perform:function(e,t,n,r){return(0,i.L)("element","changeFillStyle","".concat(n," (").concat(r.device.isMobile?"mobile":"desktop",")")),{elements:Y(e,t,(function(e){return(0,R.BE)(e,{fillStyle:n})})),appState:V(V({},t),{},{currentItemFillStyle:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=(0,B.eD)(t,n),i=o.length>0&&o.every((function(e){return"zigzag"===e.fillStyle}));return(0,s.jsxs)("fieldset",{children:[(0,s.jsx)("legend",{children:(0,j.t)("labels.fill")}),(0,s.jsx)(l,{type:"button",options:[{value:"hachure",text:"".concat(i?(0,j.t)("labels.zigzag"):(0,j.t)("labels.hachure")," (").concat((0,W.uY)("Alt-Click"),")"),icon:i?A.lF:A.a0,active:!!i||void 0},{value:"cross-hatch",text:(0,j.t)("labels.crossHatch"),icon:A.np},{value:"solid",text:(0,j.t)("labels.solid"),icon:A.X7}],value:G(t,n,(function(e){return e.fillStyle}),n.currentItemFillStyle),onClick:function(e,t){var n=t.altKey&&"hachure"===e&&o.every((function(e){return"hachure"===e.fillStyle}))?"zigzag":e;r(n)}})]})}}),(0,H.z)({name:"changeStrokeWidth",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){return(0,R.BE)(e,{strokeWidth:n})})),appState:V(V({},t),{},{currentItemStrokeWidth:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,s.jsxs)("fieldset",{children:[(0,s.jsx)("legend",{children:(0,j.t)("labels.strokeWidth")}),(0,s.jsx)(l,{group:"stroke-width",options:[{value:1,text:(0,j.t)("labels.thin"),icon:A.ZA},{value:2,text:(0,j.t)("labels.bold"),icon:A.Wl},{value:4,text:(0,j.t)("labels.extraBold"),icon:A.m9}],value:G(t,n,(function(e){return e.strokeWidth}),n.currentItemStrokeWidth),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"changeSloppiness",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){return(0,R.BE)(e,{seed:(0,Z.LU)(),roughness:n})})),appState:V(V({},t),{},{currentItemRoughness:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,s.jsxs)("fieldset",{children:[(0,s.jsx)("legend",{children:(0,j.t)("labels.sloppiness")}),(0,s.jsx)(l,{group:"sloppiness",options:[{value:0,text:(0,j.t)("labels.architect"),icon:A.bf},{value:1,text:(0,j.t)("labels.artist"),icon:A.kM},{value:2,text:(0,j.t)("labels.cartoonist"),icon:A.W2}],value:G(t,n,(function(e){return e.roughness}),n.currentItemRoughness),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"changeStrokeStyle",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){return(0,R.BE)(e,{strokeStyle:n})})),appState:V(V({},t),{},{currentItemStrokeStyle:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,s.jsxs)("fieldset",{children:[(0,s.jsx)("legend",{children:(0,j.t)("labels.strokeStyle")}),(0,s.jsx)(l,{group:"strokeStyle",options:[{value:"solid",text:(0,j.t)("labels.strokeStyle_solid"),icon:A.ZA},{value:"dashed",text:(0,j.t)("labels.strokeStyle_dashed"),icon:A.a5},{value:"dotted",text:(0,j.t)("labels.strokeStyle_dotted"),icon:A.aT}],value:G(t,n,(function(e){return e.strokeStyle}),n.currentItemStrokeStyle),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"changeOpacity",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){return(0,R.BE)(e,{opacity:n})}),!0),appState:V(V({},t),{},{currentItemOpacity:n}),commitToHistory:!0}},PanelComponent:function(e){var t,n=e.elements,r=e.appState,o=e.updateData;return(0,s.jsxs)("label",{className:"control-label",children:[(0,j.t)("labels.opacity"),(0,s.jsx)("input",{type:"range",min:"0",max:"100",step:"10",onChange:function(e){return o(+e.target.value)},value:null!==(t=G(n,r,(function(e){return e.opacity}),r.currentItemOpacity))&&void 0!==t?t:void 0})]})}}),(0,H.z)({name:"changeFontSize",trackEvent:!1,perform:function(e,t,n){return q(e,t,(function(){return n}),n)},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,s.jsxs)("fieldset",{children:[(0,s.jsx)("legend",{children:(0,j.t)("labels.fontSize")}),(0,s.jsx)(l,{group:"font-size",options:[{value:16,text:(0,j.t)("labels.small"),icon:A.q0,testId:"fontSize-small"},{value:20,text:(0,j.t)("labels.medium"),icon:A.nq,testId:"fontSize-medium"},{value:28,text:(0,j.t)("labels.large"),icon:A.tW,testId:"fontSize-large"},{value:36,text:(0,j.t)("labels.veryLarge"),icon:A.OA,testId:"fontSize-veryLarge"}],value:G(t,n,(function(e){if((0,N.iB)(e))return e.fontSize;var t=(0,z.WJ)(e);return t?t.fontSize:null}),n.currentItemFontSize||L.n5),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"decreaseFontSize",trackEvent:!1,perform:function(e,t,n){return q(e,t,(function(e){return Math.round(1/1.1*e.fontSize)}))},keyTest:function(e){return e[O.tW.CTRL_OR_CMD]&&e.shiftKey&&(e.key===O.tW.CHEVRON_LEFT||e.key===O.tW.COMMA)}})),$=(0,H.z)({name:"increaseFontSize",trackEvent:!1,perform:function(e,t,n){return q(e,t,(function(e){return Math.round(1.1*e.fontSize)}))},keyTest:function(e){return e[O.tW.CTRL_OR_CMD]&&e.shiftKey&&(e.key===O.tW.CHEVRON_RIGHT||e.key===O.tW.PERIOD)}});(0,H.z)({name:"changeFontFamily",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){if((0,N.iB)(e)){var t=(0,R.BE)(e,{fontFamily:n,lineHeight:(0,z.PT)(n)});return(0,N.oN)(t,(0,z.tl)(e)),t}return e}),!0),appState:V(V({},t),{},{currentItemFontFamily:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=[{value:L.ut.Virgil,text:(0,j.t)("labels.handDrawn"),icon:A.Pm},{value:L.ut.Helvetica,text:(0,j.t)("labels.normal"),icon:A.vo},{value:L.ut.Cascadia,text:(0,j.t)("labels.code"),icon:A.z6}];return(0,s.jsxs)("fieldset",{children:[(0,s.jsx)("legend",{children:(0,j.t)("labels.fontFamily")}),(0,s.jsx)(l,{group:"font-family",options:o,value:G(t,n,(function(e){if((0,N.iB)(e))return e.fontFamily;var t=(0,z.WJ)(e);return t?t.fontFamily:null}),n.currentItemFontFamily||L.rk),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"changeTextAlign",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){if((0,N.iB)(e)){var t=(0,R.BE)(e,{textAlign:n});return(0,N.oN)(t,(0,z.tl)(e)),t}return e}),!0),appState:V(V({},t),{},{currentItemTextAlign:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,s.jsxs)("fieldset",{children:[(0,s.jsx)("legend",{children:(0,j.t)("labels.textAlign")}),(0,s.jsx)(l,{group:"text-align",options:[{value:"left",text:(0,j.t)("labels.left"),icon:A.rr,testId:"align-left"},{value:"center",text:(0,j.t)("labels.center"),icon:A.o3,testId:"align-horizontal-center"},{value:"right",text:(0,j.t)("labels.right"),icon:A.oT,testId:"align-right"}],value:G(t,n,(function(e){if((0,N.iB)(e))return e.textAlign;var t=(0,z.WJ)(e);return t?t.textAlign:null}),n.currentItemTextAlign),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"changeVerticalAlign",trackEvent:{category:"element"},perform:function(e,t,n){return{elements:Y(e,t,(function(e){if((0,N.iB)(e)){var t=(0,R.BE)(e,{verticalAlign:n});return(0,N.oN)(t,(0,z.tl)(e)),t}return e}),!0),appState:V({},t),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,s.jsx)("fieldset",{children:(0,s.jsx)(l,{group:"text-align",options:[{value:L.oX.TOP,text:(0,j.t)("labels.alignTop"),icon:(0,s.jsx)(A.EO,{theme:n.theme}),testId:"align-top"},{value:L.oX.MIDDLE,text:(0,j.t)("labels.centerVertically"),icon:(0,s.jsx)(A.P7,{theme:n.theme}),testId:"align-middle"},{value:L.oX.BOTTOM,text:(0,j.t)("labels.alignBottom"),icon:(0,s.jsx)(A.aA,{theme:n.theme}),testId:"align-bottom"}],value:G(t,n,(function(e){if((0,N.iB)(e)&&e.containerId)return e.verticalAlign;var t=(0,z.WJ)(e);return t?t.verticalAlign:null})),onChange:function(e){return r(e)}})})}}),(0,H.z)({name:"changeRoundness",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){return(0,R.BE)(e,{roundness:"round"===n?{type:(0,F.QI)(e.type)?L.a6.ADAPTIVE_RADIUS:L.a6.PROPORTIONAL_RADIUS}:null})})),appState:V(V({},t),{},{currentItemRoundness:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=(0,B.Zs)((0,N.Lm)(t),n).some((function(e){var t;return(null===(t=e.roundness)||void 0===t?void 0:t.type)===L.a6.LEGACY}));return(0,s.jsxs)("fieldset",{children:[(0,s.jsx)("legend",{children:(0,j.t)("labels.edges")}),(0,s.jsx)(l,{group:"edges",options:[{value:"sharp",text:(0,j.t)("labels.sharp"),icon:A.wr},{value:"round",text:(0,j.t)("labels.round"),icon:A.DS}],value:G(t,n,(function(e){return o?null:e.roundness?"round":"sharp"}),(0,B.sh)(n.activeTool.type)&&n.currentItemRoundness||null),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"changeArrowhead",trackEvent:!1,perform:function(e,t,n){return{elements:Y(e,t,(function(e){if((0,F.bt)(e)){var t=n.position,r=n.type;if("start"===t)return(0,R.BE)(e,{startArrowhead:r});if("end"===t)return(0,R.BE)(e,{endArrowhead:r})}return e})),appState:V(V({},t),{},(0,o.Z)({},"start"===n.position?"currentItemStartArrowhead":"currentItemEndArrowhead",n.type)),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=(0,j.G3)().rtl;return(0,s.jsxs)("fieldset",{children:[(0,s.jsx)("legend",{children:(0,j.t)("labels.arrowheads")}),(0,s.jsxs)("div",{className:"iconSelectList buttonList",children:[(0,s.jsx)(D,{label:"arrowhead_start",options:[{value:null,text:(0,j.t)("labels.arrowhead_none"),icon:A.fr,keyBinding:"q"},{value:"arrow",text:(0,j.t)("labels.arrowhead_arrow"),icon:(0,s.jsx)(A.il,{flip:!o}),keyBinding:"w"},{value:"bar",text:(0,j.t)("labels.arrowhead_bar"),icon:(0,s.jsx)(A.m,{flip:!o}),keyBinding:"e"},{value:"dot",text:(0,j.t)("labels.arrowhead_dot"),icon:(0,s.jsx)(A.tn,{flip:!o}),keyBinding:"r"},{value:"triangle",text:(0,j.t)("labels.arrowhead_triangle"),icon:(0,s.jsx)(A.j8,{flip:!o}),keyBinding:"t"}],value:G(t,n,(function(e){return(0,F.bt)(e)&&(0,B.Un)(e.type)?e.startArrowhead:n.currentItemStartArrowhead}),n.currentItemStartArrowhead),onChange:function(e){return r({position:"start",type:e})}}),(0,s.jsx)(D,{label:"arrowhead_end",group:"arrowheads",options:[{value:null,text:(0,j.t)("labels.arrowhead_none"),keyBinding:"q",icon:A.fr},{value:"arrow",text:(0,j.t)("labels.arrowhead_arrow"),keyBinding:"w",icon:(0,s.jsx)(A.il,{flip:o})},{value:"bar",text:(0,j.t)("labels.arrowhead_bar"),keyBinding:"e",icon:(0,s.jsx)(A.m,{flip:o})},{value:"dot",text:(0,j.t)("labels.arrowhead_dot"),keyBinding:"r",icon:(0,s.jsx)(A.tn,{flip:o})},{value:"triangle",text:(0,j.t)("labels.arrowhead_triangle"),icon:(0,s.jsx)(A.j8,{flip:o}),keyBinding:"t"}],value:G(t,n,(function(e){return(0,F.bt)(e)&&(0,B.Un)(e.type)?e.endArrowhead:n.currentItemEndArrowhead}),n.currentItemEndArrowhead),onChange:function(e){return r({position:"end",type:e})}})]})]})}})},4958:function(e,t,n){"use strict";n.d(t,{u:function(){return l}});var r=n(7169),o=n(7901),i=n(6066);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=(0,o.z)({name:"stats",viewMode:!0,trackEvent:{category:"menu"},perform:function(e,t){return{appState:s(s({},t),{},{showStats:!this.checked(t)}),commitToHistory:!1}},checked:function(e){return e.showStats},contextItemLabel:"stats.title",keyTest:function(e){return!e[i.tW.CTRL_OR_CMD]&&e.altKey&&e.code===i.aU.SLASH}})},6710:function(e,t,n){"use strict";n.d(t,{FL:function(){return Fe},vD:function(){return ut.vD},yA:function(){return P},BZ:function(){return O},mo:function(){return Y.mo},uN:function(){return nt.uN},jK:function(){return nt.jK},FA:function(){return nt.FA},pw:function(){return re},ZM:function(){return nt.ZM},X9:function(){return r.X},xF:function(){return K},pL:function(){return J},jl:function(){return Xe},kt:function(){return $e},EQ:function(){return he},nz:function(){return dt.nz},_d:function(){return Q._d},W3:function(){return oe},ns:function(){return Q.ns},Yy:function(){return L},V:function(){return E},zi:function(){return C},jY:function(){return se},Pb:function(){return it},Qs:function(){return bt},iL:function(){return ht},u0:function(){return ct.u},Zp:function(){return Y.Zp},JN:function(){return lt},y7:function(){return ut.y7},s:function(){return me},zp:function(){return nt.zp}});var r=n(533),o=n(1930),i=n(1935),a=n(242),s=n(75),l=n(1564),c=n(6340),u=function(e,t){for(var n=[],r=[],o=null,i=-1,a=(0,c.xn)((0,s.eD)(e,t,!0));++i<e.length;)a.get(e[i].id)?(r.length&&(n=n.concat(r),r=[]),n.push(i),o=i+1):e[i].isDeleted&&o===i?(o=i+1,r.push(i)):r=[];return n},d=function(e,t,n){if("containerId"in e&&e.containerId){if("left"!==n)return t.indexOf(e);var r=l.Z.getScene(e).getElement(e.containerId);if(r)return t.indexOf(r)}else{var o,i,a=null===(o=e.boundElements)||void 0===o||null===(i=o.find((function(e){return"arrow"!==e.type})))||void 0===i?void 0:i.id;if(a){if("left"===n)return t.indexOf(e);var s=l.Z.getScene(e).getElement(a);if(s)return t.indexOf(s)}}},p=function(e,t){return t.reduce((function(t,n){var r=e[n];return t[r.id]=r,t}),{})},f=function(e,t,n){var r,s,l=u(t,e),f=p(t,l),h=(s=0,(r=l).reduce((function(e,t,n){return n>0&&r[n-1]!==t-1&&(s=++s),(e[s]||(e[s]=[])).push(t),e}),[]));return"right"===n&&(h=h.reverse()),h.forEach((function(r,i){var s=r[0],l=r[r.length-1],u="left"===n?s:l,p=function(e,t,n,r){var o,i=t[n],s=function(t){return!t.isDeleted&&(!e.editingGroupId||t.groupIds.includes(e.editingGroupId))},l="left"===r?(0,c.qr)(t,s,Math.max(0,n-1)):(0,c.cx)(t,s,n+1),u=t[l];if(!u)return-1;if(e.editingGroupId){var p;if((null==i?void 0:i.groupIds.join(""))===(null==u?void 0:u.groupIds.join("")))return null!==(p=d(u,t,r))&&void 0!==p?p:l;if(null==u||!u.groupIds.includes(e.editingGroupId))return-1}if(!u.groupIds.length)return null!==(o=d(u,t,r))&&void 0!==o?o:l;var f=e.editingGroupId?u.groupIds[u.groupIds.indexOf(e.editingGroupId)-1]:u.groupIds[u.groupIds.length-1],h=(0,a.Fb)(t,f);return h.length?"left"===r?t.indexOf(h[0]):t.indexOf(h[h.length-1]):l}(e,t,u,n);if(-1!==p&&u!==p){var f="left"===n?t.slice(0,p):t.slice(0,s),h=t.slice(s,l+1),m="left"===n?t.slice(p,s):t.slice(l+1,p+1),g="left"===n?t.slice(l+1):t.slice(p+1);t="left"===n?[].concat((0,o.Z)(f),(0,o.Z)(h),(0,o.Z)(m),(0,o.Z)(g)):[].concat((0,o.Z)(f),(0,o.Z)(m),(0,o.Z)(h),(0,o.Z)(g))}})),t.map((function(e){return f[e.id]?(0,i.ZP)(e):e}))},h=function(e,t,n){var r,s,l=u(e,t),c=p(e,l),d=[];if("left"===n){if(t.editingGroupId){var f=(0,a.Fb)(e,t.editingGroupId);if(!f.length)return e;r=e.indexOf(f[0])}else r=0;s=l[l.length-1]}else{if(t.editingGroupId){var h=(0,a.Fb)(e,t.editingGroupId);if(!h.length)return e;s=e.indexOf(h[h.length-1])}else s=e.length-1;r=l[0]}for(var m=r;m<s+1;m++)l.includes(m)||d.push(e[m]);var g=Object.values(c).map((function(e){return(0,i.ZP)(e)})),v=e.slice(0,r),b=e.slice(s+1);return"left"===n?[].concat((0,o.Z)(v),(0,o.Z)(g),d,(0,o.Z)(b)):[].concat((0,o.Z)(v),d,(0,o.Z)(g),(0,o.Z)(b))},m=function(e,t){return f(t,e,"left")},g=function(e,t){return f(t,e,"right")},v=function(e,t){return h(e,t,"left")},b=function(e,t){return h(e,t,"right")},y=n(6066),w=n(8211),x=n(7901),k=n(3646),_=n(2335),S=n(4512),E=(0,x.z)({name:"sendBackward",trackEvent:{category:"element"},perform:function(e,t){return{elements:m(e,t),appState:t,commitToHistory:!0}},contextItemLabel:"labels.sendBackward",keyPriority:40,keyTest:function(e){return e[y.tW.CTRL_OR_CMD]&&!e.shiftKey&&e.code===y.aU.BRACKET_LEFT},PanelComponent:function(e){var t=e.updateData;return e.appState,(0,S.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(){return t(null)},title:"".concat((0,w.t)("labels.sendBackward")," — ").concat((0,c.uY)("CtrlOrCmd+[")),children:k.Gc})}}),P=(0,x.z)({name:"bringForward",trackEvent:{category:"element"},perform:function(e,t){return{elements:g(e,t),appState:t,commitToHistory:!0}},contextItemLabel:"labels.bringForward",keyPriority:40,keyTest:function(e){return e[y.tW.CTRL_OR_CMD]&&!e.shiftKey&&e.code===y.aU.BRACKET_RIGHT},PanelComponent:function(e){var t=e.updateData;return e.appState,(0,S.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(){return t(null)},title:"".concat((0,w.t)("labels.bringForward")," — ").concat((0,c.uY)("CtrlOrCmd+]")),children:k.t5})}}),C=(0,x.z)({name:"sendToBack",trackEvent:{category:"element"},perform:function(e,t){return{elements:v(e,t),appState:t,commitToHistory:!0}},contextItemLabel:"labels.sendToBack",keyTest:function(e){return _.Um?e[y.tW.CTRL_OR_CMD]&&e.altKey&&e.code===y.aU.BRACKET_LEFT:e[y.tW.CTRL_OR_CMD]&&e.shiftKey&&e.code===y.aU.BRACKET_LEFT},PanelComponent:function(e){var t=e.updateData;return e.appState,(0,S.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(){return t(null)},title:"".concat((0,w.t)("labels.sendToBack")," — ").concat(_.Um?(0,c.uY)("CtrlOrCmd+Alt+["):(0,c.uY)("CtrlOrCmd+Shift+[")),children:k.pw})}}),O=(0,x.z)({name:"bringToFront",trackEvent:{category:"element"},perform:function(e,t){return{elements:b(e,t),appState:t,commitToHistory:!0}},contextItemLabel:"labels.bringToFront",keyTest:function(e){return _.Um?e[y.tW.CTRL_OR_CMD]&&e.altKey&&e.code===y.aU.BRACKET_RIGHT:e[y.tW.CTRL_OR_CMD]&&e.shiftKey&&e.code===y.aU.BRACKET_RIGHT},PanelComponent:function(e){var t=e.updateData;return e.appState,(0,S.jsx)("button",{type:"button",className:"zIndexButton",onClick:function(e){return t(null)},title:"".concat((0,w.t)("labels.bringToFront")," — ").concat(_.Um?(0,c.uY)("CtrlOrCmd+Alt+]"):(0,c.uY)("CtrlOrCmd+Shift+]")),children:k.IN})}}),j=n(7169),T=n(1047),M=n(1974),I=n(6938);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L=(0,x.z)({name:"selectAll",trackEvent:{category:"canvas"},perform:function(e,t,n,r){if(t.editingLinearElement)return!1;var o=e.reduce((function(e,t){return t.isDeleted||(0,T.iB)(t)&&t.containerId||t.locked||(e[t.id]=!0),e}),{});return{appState:(0,a.bO)(A(A({},t),{},{selectedLinearElement:1===Object.keys(o).length&&(0,M.bt)(e[0])?new I._(e[0],r.scene):null,editingGroupId:null,selectedElementIds:o}),(0,T.Lm)(e)),commitToHistory:!0}},contextItemLabel:"labels.selectAll",keyTest:function(e){return e[y.tW.CTRL_OR_CMD]&&e.key===y.tW.A}}),N=n(1319),R=n(8290),z=n(5710);function F(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Z(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)?Z(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Z(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}var B=function(e){var t=function(e){var t=(0,c.I4)(e),n=e.slice(),r=new Set;return n.forEach((function(e,o){var i;if(e)if(null!==(i=e.boundElements)&&void 0!==i&&i.length)r.add(e),n[o]=null,e.boundElements.forEach((function(e){var o=t.get(e.id);o&&"text"===e.type&&(r.add(o[0]),n[o[1]]=null)}));else if("text"===e.type&&e.containerId){var a,s=t.get(e.containerId);null!=s&&null!==(a=s[0].boundElements)&&void 0!==a&&a.find((function(t){return t.id===e.id}))||(r.add(e),n[o]=null)}else r.add(e),n[o]=null})),r.size!==e.length?(console.error("normalizeBoundElementsOrder: lost some elements... bailing!"),e):(0,o.Z)(r)}(function(e){var t=e.slice(),n=new Set,r=function e(t){var n,r,i,a=null===(n=t[0])||void 0===n||null===(r=n.groupIds)||void 0===r?void 0:r.join(""),s=[t[0]],l=[],c=F(t.slice(1));try{for(c.s();!(i=c.n()).done;){var u,d=i.value;(null===(u=d.groupIds)||void 0===u?void 0:u.join(""))===a?s.push(d):l.push(d)}}catch(e){c.e(e)}finally{c.f()}return l.length?[].concat(s,(0,o.Z)(e(l))):s},i=new Map;return t.forEach((function(e,o){var a;if(!i.has(e.id))if(null!==(a=e.groupIds)&&void 0!==a&&a.length){var s,l=e.groupIds[e.groupIds.length-1],c=t.slice(o).filter((function(e){var t,n=null==e||null===(t=e.groupIds)||void 0===t?void 0:t.some((function(e){return e===l}));return n&&i.set(e.id,!0),n})),u=F(r(c));try{for(u.s();!(s=u.n()).done;){var d=s.value;n.add(d)}}catch(e){u.e(e)}finally{u.f()}}else n.add(e)})),n.size!==e.length?(console.error("normalizeGroupElementOrder: lost some elements... bailing!"),e):(0,o.Z)(n)}(e));return t};function U(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 W(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 H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var K=(0,x.z)({name:"duplicateSelection",trackEvent:{category:"element"},perform:function(e,t){if(t.editingLinearElement){var n=I._.duplicateSelectedPoints(t);return!!n&&{elements:e,appState:n.appState,commitToHistory:!0}}return H(H({},V(e,t)),{},{commitToHistory:!0})},contextItemLabel:"labels.duplicateSelection",keyTest:function(e){return e[y.tW.CTRL_OR_CMD]&&e.key===y.tW.D},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,S.jsx)(N.V,{type:"button",icon:k.NA,title:"".concat((0,w.t)("labels.duplicateSelection")," — ").concat((0,c.uY)("CtrlOrCmd+D")),"aria-label":(0,w.t)("labels.duplicateSelection"),onClick:function(){return r(null)},visible:(0,s.N)((0,T.Lm)(t),n)})}}),V=function(e,t){for(var n=B(e),r=new Map,i=[],l=[],u=new Map,d=function(e){var n=(0,T.Sy)(t.editingGroupId,r,e,{x:e.x+_.k/2,y:e.y+_.k/2});return u.set(e.id,n.id),l.push(e),i.push(n),n},p=(0,c.xn)((0,s.eD)(n,t,!0)),f=new Map,h=function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return U(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)?U(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;f.set(r.id,!0)}}catch(e){n.e(e)}finally{n.f()}return e},m=[],g=-1;++g<n.length;){var v=n[g];if(!f.get(v.id)){var b=(0,z.WJ)(v);if(p.get(v.id)){if(v.groupIds.length||b){var y=(0,a.yO)(t,v);if(y){var w=(0,a.Fb)(n,y);m.push.apply(m,(0,o.Z)(h([].concat((0,o.Z)(w),(0,o.Z)(w.map((function(e){return d(e)})))))));continue}if(b){m.push.apply(m,(0,o.Z)(h([v,b,d(v),d(b)])));continue}}m.push.apply(m,(0,o.Z)(h([v,d(v)])))}else m.push.apply(m,(0,o.Z)(h([v])))}}var x=[],k=new Map;for(g=m.length;--g>=0;){var S=m[g];k.get(S.id)||(k.set(S.id,!0),x.push(S))}var E=x.reverse();return(0,z.P7)(m,l,u),(0,R.ek)(m,l,u),{elements:E,appState:(0,a.bO)(H(H({},t),{},{selectedGroupIds:{},selectedElementIds:i.reduce((function(e,t){return(0,M.Xh)(t)||(e[t.id]=!0),e}),{})}),(0,T.Lm)(E))}},Y=(n(6208),n(2416)),G=n(2577),q=n(6552);function X(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 $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J=(0,x.z)({name:"finalize",trackEvent:!1,perform:function(e,t,n,r){var o,a=r.canvas,s=r.focusContainer,u=r.scene;if(t.editingLinearElement){var d=t.editingLinearElement,p=d.elementId,f=d.startBindingElement,h=d.endBindingElement,m=I._.getElement(p);if(m)return(0,M.Mn)(m)&&(0,R.HG)(m,f,h),{elements:m.points.length<2||(0,T.QD)(m)?e.filter((function(e){return e.id!==m.id})):void 0,appState:$($({},t),{},{cursorButton:"up",editingLinearElement:null}),commitToHistory:!0}}var g=e,v=t.pendingImageElementId&&u.getElement(t.pendingImageElementId);v&&(0,i.DR)(v,{isDeleted:!0},!1),window.document.activeElement instanceof HTMLElement&&s();var b,y=t.multiElement?t.multiElement:"freedraw"===(null===(o=t.editingElement)||void 0===o?void 0:o.type)?t.editingElement:null;if(y){if("freedraw"!==y.type&&"touch"!==t.lastPointerDownWith){var w=y.points,x=y.lastCommittedPoint;x&&w[w.length-1]===x||(0,i.DR)(y,{points:y.points.slice(0,-1)})}(0,T.QD)(y)&&(g=g.slice(0,-1));var k=(0,q.g6)(y.points,t.zoom.value);if(("line"===y.type||"freedraw"===y.type)&&k){var _=y.points,S=_[0];(0,i.DR)(y,{points:_.map((function(e,t){return t===_.length-1?[S[0],S[1]]:e}))})}if((0,M.Mn)(y)&&!k&&y.points.length>1){var E=I._.getPointAtIndexGlobalCoordinates(y,-1),P=(0,G.Z)(E,2),C=P[0],O=P[1];(0,R.R)(y,t,l.Z.getScene(y),{x:C,y:O})}t.activeTool.locked||"freedraw"===t.activeTool.type||(t.selectedElementIds[y.id]=!0)}return(t.activeTool.locked||"freedraw"===t.activeTool.type)&&y||(0,c.z8)(a),b="eraser"===t.activeTool.type?(0,c.Om)(t,$($({},t.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(0,c.Om)(t,{type:"selection"}),{elements:g,appState:$($({},t),{},{cursorButton:"up",activeTool:(t.activeTool.locked||"freedraw"===t.activeTool.type)&&y?t.activeTool:b,draggingElement:null,multiElement:null,editingElement:null,startBoundElement:null,suggestedBindings:[],selectedElementIds:y&&!t.activeTool.locked&&"freedraw"!==t.activeTool.type?$($({},t.selectedElementIds),{},(0,j.Z)({},y.id,!0)):t.selectedElementIds,selectedLinearElement:y&&(0,M.bt)(y)?new I._(y,u):t.selectedLinearElement,pendingImageElementId:null}),commitToHistory:"freedraw"===t.activeTool.type}},keyTest:function(e,t){return e.key===y.tW.ESCAPE&&(null!==t.editingLinearElement||!t.draggingElement&&null===t.multiElement)||(e.key===y.tW.ESCAPE||e.key===y.tW.ENTER)&&null!==t.multiElement},PanelComponent:function(e){var t=e.appState,n=e.updateData,r=e.data;return(0,S.jsx)(N.V,{type:"button",icon:k.$c,title:(0,w.t)("buttons.done"),"aria-label":(0,w.t)("buttons.done"),onClick:n,visible:null!=t.multiElement,size:(null==r?void 0:r.size)||"medium"})}}),Q=n(8671);function ee(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 te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ne="{}",re=(0,x.z)({name:"copyStyles",trackEvent:{category:"element"},perform:function(e,t){var n=[],r=e.find((function(e){return t.selectedElementIds[e.id]}));if(n.push(r),r&&(0,M.Xo)(r)){var o=(0,z.WJ)(r);n.push(o)}return r&&(ne=JSON.stringify(n)),{appState:te(te({},t),{},{toast:{message:(0,w.t)("toast.copyStyles")}}),commitToHistory:!1}},contextItemLabel:"labels.copyStyles",keyTest:function(e){return e[y.tW.CTRL_OR_CMD]&&e.altKey&&e.code===y.aU.C}}),oe=(0,x.z)({name:"pasteStyles",trackEvent:{category:"element"},perform:function(e,t){var n=JSON.parse(ne),r=n[0],o=n[1];if(!(0,T.r2)(r))return{elements:e,commitToHistory:!1};var a=(0,s.eD)(e,t,!0),l=a.map((function(e){return e.id}));return{elements:e.map((function(e){if(l.includes(e.id)){var t,n,s,c,u,d,p,f=r;if((0,T.iB)(e)&&e.containerId&&(f=o),!f)return e;var h=(0,i.BE)(e,{backgroundColor:null===(t=f)||void 0===t?void 0:t.backgroundColor,strokeWidth:null===(n=f)||void 0===n?void 0:n.strokeWidth,strokeColor:null===(s=f)||void 0===s?void 0:s.strokeColor,strokeStyle:null===(c=f)||void 0===c?void 0:c.strokeStyle,fillStyle:null===(u=f)||void 0===u?void 0:u.fillStyle,opacity:null===(d=f)||void 0===d?void 0:d.opacity,roughness:null===(p=f)||void 0===p?void 0:p.roughness,roundness:f.roundness?(0,M.eK)(f.roundness.type,e)?f.roundness:(0,M.UQ)(e):null});if((0,T.iB)(h)){var m,g,v,b=(null===(m=f)||void 0===m?void 0:m.fontSize)||_.n5,y=(null===(g=f)||void 0===g?void 0:g.fontFamily)||_.rk,w=null;(h=(0,i.BE)(h,{fontSize:b,fontFamily:y,textAlign:(null===(v=f)||void 0===v?void 0:v.textAlign)||_.Hg,lineHeight:f.lineHeight||(0,z.PT)(y)})).containerId&&(w=a.find((function(e){return(0,T.iB)(h)&&e.id===h.containerId}))||null),(0,T.oN)(h,w)}return"arrow"===h.type&&(h=(0,i.BE)(h,{startArrowhead:f.startArrowhead,endArrowhead:f.endArrowhead})),h}return e})),commitToHistory:!0}},contextItemLabel:"labels.pasteStyles",keyTest:function(e){return e[y.tW.CTRL_OR_CMD]&&e.altKey&&e.code===y.aU.V}});function ie(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,x.z)({name:"toggleCanvasMenu",trackEvent:{category:"menu"},perform:function(e,t){return{appState:ae(ae({},t),{},{openMenu:"canvas"===t.openMenu?null:"canvas"}),commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData;return(0,S.jsx)(N.V,{type:"button",icon:k.RY,"aria-label":(0,w.t)("buttons.menu"),onClick:n,selected:"canvas"===t.openMenu})}}),(0,x.z)({name:"toggleEditMenu",trackEvent:{category:"menu"},perform:function(e,t){return{appState:ae(ae({},t),{},{openMenu:"shape"===t.openMenu?null:"shape"}),commitToHistory:!1}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,S.jsx)(N.V,{visible:(0,T.RT)(n,(0,T.Lm)(t)),type:"button",icon:k.DG,"aria-label":(0,w.t)("buttons.edit"),onClick:r,selected:"shape"===n.openMenu})}}),(0,x.z)({name:"toggleFullScreen",viewMode:!0,trackEvent:{category:"canvas",predicate:function(e){return!(0,c.rB)()}},perform:function(){return(0,c.rB)()||(0,c.wo)(),(0,c.rB)()&&(0,c.Pr)(),{commitToHistory:!1}},keyTest:function(e){return e.key===y.tW.F&&!e[y.tW.CTRL_OR_CMD]}});var se=(0,x.z)({name:"toggleShortcuts",viewMode:!0,trackEvent:{category:"menu",action:"toggleHelpDialog"},perform:function(e,t,n,r){var o=r.focusContainer;return"help"===t.openDialog&&o(),{appState:ae(ae({},t),{},{openDialog:"help"===t.openDialog?null:"help"}),commitToHistory:!1}},keyTest:function(e){return e.key===y.tW.QUESTION_MARK}}),le=n(6655),ce=n(6954);function ue(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 de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(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}var fe=function(e,t){var n=(0,s.eD)((0,T.Lm)(e),t,!0);return n.length>=2&&!function(e){if(e.length>=2){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return pe(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)?pe(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e[0].groupIds);try{var r=function(){var n=t.value;if(e.reduce((function(e,t){return e&&(0,a.Nd)(t,n)}),!0))return{v:!0}};for(n.s();!(t=n.n()).done;){var o=r();if("object"===(0,le.Z)(o))return o.v}}catch(e){n.e(e)}finally{n.f()}}return!1}(n)},he=(0,x.z)({name:"group",trackEvent:{category:"element"},perform:function(e,t){var n=(0,s.eD)((0,T.Lm)(e),t,!0);if(n.length<2)return{appState:t,elements:e,commitToHistory:!1};var r=(0,a.iJ)(t);if(1===r.length){var l=r[0],u=new Set((0,a.Fb)(e,l).map((function(e){return e.id}))),d=new Set(n.map((function(e){return e.id})));if(new Set([].concat((0,o.Z)(Array.from(u)),(0,o.Z)(Array.from(d)))).size===u.size)return{appState:t,elements:e,commitToHistory:!1}}var p=(0,ce.kb)(),f=(0,c.xn)(n),h=e.map((function(e){return f.get(e.id)?(0,i.BE)(e,{groupIds:(0,a.S_)(e.groupIds,p,t.editingGroupId)}):e})),m=(0,a.Fb)(h,p),g=m[m.length-1],v=h.lastIndexOf(g),b=h.slice(v+1),y=h.slice(0,v).filter((function(e){return!(0,a.Nd)(e,p)})),w=[].concat((0,o.Z)(y),(0,o.Z)(m),(0,o.Z)(b));return{appState:(0,a.F$)(p,de(de({},t),{},{selectedGroupIds:{}}),(0,T.Lm)(w)),elements:w,commitToHistory:!0}},contextItemLabel:"labels.group",predicate:function(e,t){return fe(e,t)},keyTest:function(e){return!e.shiftKey&&e[y.tW.CTRL_OR_CMD]&&e.key===y.tW.G},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,S.jsx)(N.V,{hidden:!fe(t,n),type:"button",icon:(0,S.jsx)(k.BF,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat((0,w.t)("labels.group")," — ").concat((0,c.uY)("CtrlOrCmd+G")),"aria-label":(0,w.t)("labels.group"),visible:(0,s.N)((0,T.Lm)(t),n)})}}),me=(0,x.z)({name:"ungroup",trackEvent:{category:"element"},perform:function(e,t){if(0===(0,a.iJ)(t).length)return{appState:t,elements:e,commitToHistory:!1};var n=[],r=e.map((function(e){(0,M.Xh)(e)&&n.push(e.id);var r=(0,a.h6)(e.groupIds,t.selectedGroupIds);return r.length===e.groupIds.length?e:(0,i.BE)(e,{groupIds:r})})),o=(0,a.bO)(de(de({},t),{},{selectedGroupIds:{}}),(0,T.Lm)(r));return n.forEach((function(e){return o.selectedElementIds[e]=!1})),{appState:o,elements:r,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&e[y.tW.CTRL_OR_CMD]&&e.key===y.tW.G.toUpperCase()},contextItemLabel:"labels.ungroup",predicate:function(e,t){return(0,a.iJ)(t).length>0},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,S.jsx)(N.V,{type:"button",hidden:0===(0,a.iJ)(n).length,icon:(0,S.jsx)(k.RJ,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat((0,w.t)("labels.ungroup")," — ").concat((0,c.uY)("CtrlOrCmd+Shift+G")),"aria-label":(0,w.t)("labels.ungroup"),visible:(0,s.N)((0,T.Lm)(t),n)})}}),ge=n(8982),ve=n(487),be=n.n(ve),ye=n(631),we=n.n(ye),xe=n(2052),ke=n.n(xe),_e=n(4010),Se=n.n(_e),Ee=n(1469),Pe=n.n(Ee),Ce=n(9329),Oe=n.n(Ce),je=n(3729),Te={};Te.styleTagTransform=Oe(),Te.setAttributes=Se(),Te.insert=ke().bind(null,"head"),Te.domAPI=we(),Te.insertStyleElement=Pe(),be()(je.Z,Te),je.Z&&je.Z.locals&&je.Z.locals;var Me=n(9787),Ie=function(e){var t=e.color,n=e.onClick,r=e.name,o=e.src,i=(0,ge.f)(r),a=(0,Me.useState)(!1),s=(0,G.Z)(a,2),l=s[0],c=s[1],u=!l&&o,d=u?void 0:{background:t};return(0,S.jsx)("div",{className:"Avatar",style:d,onClick:n,children:u?(0,S.jsx)("img",{className:"Avatar-img",src:o,alt:i,referrerPolicy:"no-referrer",onError:function(){return c(!0)}}):i})},De=n(2264);function Ae(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 Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,x.z)({name:"goToCollaborator",viewMode:!0,trackEvent:{category:"collab"},perform:function(e,t,n){var r=n;return r?{appState:Le(Le(Le({},t),(0,De.s)({scenePoint:r,viewportDimensions:{width:t.width,height:t.height},zoom:t.zoom})),{},{openMenu:"canvas"===t.openMenu?null:t.openMenu}),commitToHistory:!1}:{appState:t,commitToHistory:!1}},PanelComponent:function(e){var t=e.appState,n=e.updateData,r=e.data,o=(0,G.Z)(r,2),i=o[0],a=o[1],s=(0,ge.X)(i,t),l=s.background,c=s.stroke;return(0,S.jsx)(Ie,{color:l,border:c,onClick:function(){return n(a.pointer)},name:a.username||"",src:a.avatarUrl})}});var Ne=n(2791);function Re(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 ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fe=(0,x.z)({name:"addToLibrary",trackEvent:{category:"element"},perform:function(e,t,n,r){var i=(0,s.eD)((0,T.Lm)(e),t,!0);return i.some((function(e){return"image"===e.type}))?{commitToHistory:!1,appState:ze(ze({},t),{},{errorMessage:"Support for adding images to the library coming soon!"})}:r.library.getLatestLibrary().then((function(e){return r.library.setLibrary([{id:(0,ce.kb)(),status:"unpublished",elements:i.map(Ne.OL),created:Date.now()}].concat((0,o.Z)(e)))})).then((function(){return{commitToHistory:!1,appState:ze(ze({},t),{},{toast:{message:(0,w.t)("toast.addedToLibrary")}})}})).catch((function(e){return{commitToHistory:!1,appState:ze(ze({},t),{},{errorMessage:e.message})}}))},contextItemLabel:"labels.addToLibrary"}),Ze=n(8925);function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var We=function(e,t){return(0,s.eD)((0,T.Lm)(e),t).length>1},He=function(e,t,n){var r=function(e,t){var n=(0,a.AI)(e),r=(0,Ze.v2)(e);return n.flatMap((function(e){var n=function(e,t,n){var r=n.axis,o=n.position,i=(0,Ze.v2)(e),a="x"===r?["minX","maxX"]:["minY","maxY"],s=(0,G.Z)(a,2),l=s[0],c=s[1];return Ue(Ue({},{x:0,y:0}),{},"start"===o?(0,j.Z)({},r,t[l]-i[l]):"end"===o?(0,j.Z)({},r,t[c]-i[c]):(0,j.Z)({},r,(t[l]+t[c])/2-(i[l]+i[c])/2))}(e,r,t);return e.map((function(e){return(0,i.BE)(e,{x:e.x+n.x,y:e.y+n.y})}))}))}((0,s.eD)((0,T.Lm)(e),t),n),o=(0,c.xn)(r);return e.map((function(e){return o.get(e.id)||e}))};function Ke(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}(0,x.z)({name:"alignTop",trackEvent:{category:"element"},perform:function(e,t){return{appState:t,elements:He(e,t,{position:"start",axis:"y"}),commitToHistory:!0}},keyTest:function(e){return e[y.tW.CTRL_OR_CMD]&&e.shiftKey&&e.key===y.tW.ARROW_UP},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,S.jsx)(N.V,{hidden:!We(t,n),type:"button",icon:k.Ct,onClick:function(){return r(null)},title:"".concat((0,w.t)("labels.alignTop")," — ").concat((0,c.uY)("CtrlOrCmd+Shift+Up")),"aria-label":(0,w.t)("labels.alignTop"),visible:(0,s.N)((0,T.Lm)(t),n)})}}),(0,x.z)({name:"alignBottom",trackEvent:{category:"element"},perform:function(e,t){return{appState:t,elements:He(e,t,{position:"end",axis:"y"}),commitToHistory:!0}},keyTest:function(e){return e[y.tW.CTRL_OR_CMD]&&e.shiftKey&&e.key===y.tW.ARROW_DOWN},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,S.jsx)(N.V,{hidden:!We(t,n),type:"button",icon:k.HL,onClick:function(){return r(null)},title:"".concat((0,w.t)("labels.alignBottom")," — ").concat((0,c.uY)("CtrlOrCmd+Shift+Down")),"aria-label":(0,w.t)("labels.alignBottom"),visible:(0,s.N)((0,T.Lm)(t),n)})}}),(0,x.z)({name:"alignLeft",trackEvent:{category:"element"},perform:function(e,t){return{appState:t,elements:He(e,t,{position:"start",axis:"x"}),commitToHistory:!0}},keyTest:function(e){return e[y.tW.CTRL_OR_CMD]&&e.shiftKey&&e.key===y.tW.ARROW_LEFT},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,S.jsx)(N.V,{hidden:!We(t,n),type:"button",icon:k.xs,onClick:function(){return r(null)},title:"".concat((0,w.t)("labels.alignLeft")," — ").concat((0,c.uY)("CtrlOrCmd+Shift+Left")),"aria-label":(0,w.t)("labels.alignLeft"),visible:(0,s.N)((0,T.Lm)(t),n)})}}),(0,x.z)({name:"alignRight",trackEvent:{category:"element"},perform:function(e,t){return{appState:t,elements:He(e,t,{position:"end",axis:"x"}),commitToHistory:!0}},keyTest:function(e){return e[y.tW.CTRL_OR_CMD]&&e.shiftKey&&e.key===y.tW.ARROW_RIGHT},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,S.jsx)(N.V,{hidden:!We(t,n),type:"button",icon:k.mh,onClick:function(){return r(null)},title:"".concat((0,w.t)("labels.alignRight")," — ").concat((0,c.uY)("CtrlOrCmd+Shift+Right")),"aria-label":(0,w.t)("labels.alignRight"),visible:(0,s.N)((0,T.Lm)(t),n)})}}),(0,x.z)({name:"alignVerticallyCentered",trackEvent:{category:"element"},perform:function(e,t){return{appState:t,elements:He(e,t,{position:"center",axis:"y"}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,S.jsx)(N.V,{hidden:!We(t,n),type:"button",icon:k.ST,onClick:function(){return r(null)},title:(0,w.t)("labels.centerVertically"),"aria-label":(0,w.t)("labels.centerVertically"),visible:(0,s.N)((0,T.Lm)(t),n)})}}),(0,x.z)({name:"alignHorizontallyCentered",trackEvent:{category:"element"},perform:function(e,t){return{appState:t,elements:He(e,t,{position:"center",axis:"x"}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,S.jsx)(N.V,{hidden:!We(t,n),type:"button",icon:k.gK,onClick:function(){return r(null)},title:(0,w.t)("labels.centerHorizontally"),"aria-label":(0,w.t)("labels.centerHorizontally"),visible:(0,s.N)((0,T.Lm)(t),n)})}});var Ve=function(e,t){return(0,s.eD)((0,T.Lm)(e),t).length>1},Ye=function(e,t,n){var r=function(e,t){var n,r="x"===t.axis?["minX","midX","maxX","width"]:["minY","midY","maxY","height"],o=(0,G.Z)(r,4),s=o[0],l=o[1],c=o[2],u=o[3],d=(0,Ze.v2)(e),p=(0,a.AI)(e).map((function(e){return[e,(0,Ze.v2)(e)]})).sort((function(e,t){return e[1][l]-t[1][l]})),f=0,h=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ke(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)?Ke(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(p);try{for(h.s();!(n=h.n()).done;)f+=n.value[1][u]}catch(e){h.e(e)}finally{h.f()}var m=(d[u]-f)/(p.length-1);if(m<0){var g=p.findIndex((function(e){return e[1][s]===d[s]})),v=p.findIndex((function(e){return e[1][c]===d[c]})),b=(p[v][1][l]-p[g][1][l])/(p.length-1),y=p[g][1][l];return p.flatMap((function(e,n){var r=(0,G.Z)(e,2),o=r[0],a=r[1],s={x:0,y:0};return n!==g&&n!==v&&(y+=b,s[t.axis]=y-a[l]),o.map((function(e){return(0,i.BE)(e,{x:e.x+s.x,y:e.y+s.y})}))}))}var w=d[s];return p.flatMap((function(e){var n=(0,G.Z)(e,2),r=n[0],o=n[1],a={x:0,y:0};return a[t.axis]=w-o[s],w+=m,w+=o[u],r.map((function(e){return(0,i.BE)(e,{x:e.x+a.x,y:e.y+a.y})}))}))}((0,s.eD)((0,T.Lm)(e),t),n),o=(0,c.xn)(r);return e.map((function(e){return o.get(e.id)||e}))},Ge=((0,x.z)({name:"distributeHorizontally",trackEvent:{category:"element"},perform:function(e,t){return{appState:t,elements:Ye(e,t,{space:"between",axis:"x"}),commitToHistory:!0}},keyTest:function(e){return!e[y.tW.CTRL_OR_CMD]&&e.altKey&&e.code===y.aU.H},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,S.jsx)(N.V,{hidden:!Ve(t,n),type:"button",icon:k.uD,onClick:function(){return r(null)},title:"".concat((0,w.t)("labels.distributeHorizontally")," — ").concat((0,c.uY)("Alt+H")),"aria-label":(0,w.t)("labels.distributeHorizontally"),visible:(0,s.N)((0,T.Lm)(t),n)})}}),(0,x.z)({name:"distributeVertically",trackEvent:{category:"element"},perform:function(e,t){return{appState:t,elements:Ye(e,t,{space:"between",axis:"y"}),commitToHistory:!0}},keyTest:function(e){return!e[y.tW.CTRL_OR_CMD]&&e.altKey&&e.code===y.aU.V},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,S.jsx)(N.V,{hidden:!Ve(t,n),type:"button",icon:k.W5,onClick:function(){return r(null)},title:"".concat((0,w.t)("labels.distributeVertically")," — ").concat((0,c.uY)("Alt+V")),"aria-label":(0,w.t)("labels.distributeVertically"),visible:(0,s.N)((0,T.Lm)(t),n)})}}),n(8634)),qe=n(267),Xe=(0,x.z)({name:"flipHorizontal",trackEvent:{category:"element"},perform:function(e,t){return{elements:Je(e,t,"horizontal"),appState:t,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&"KeyH"===e.code},contextItemLabel:"labels.flipHorizontal",predicate:function(e,t){return function(e,t){var n=(0,s.eD)((0,T.Lm)(e),t);return 1===n.length&&"text"!==n[0].type}(e,t)}}),$e=(0,x.z)({name:"flipVertical",trackEvent:{category:"element"},perform:function(e,t){return{elements:Je(e,t,"vertical"),appState:t,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&"KeyV"===e.code&&!e[y.tW.CTRL_OR_CMD]},contextItemLabel:"labels.flipVertical",predicate:function(e,t){return function(e,t){return 1===(0,s.eD)((0,T.Lm)(e),t).length}(e,t)}}),Je=function(e,t,n){var r=(0,s.eD)((0,T.Lm)(e),t);if(r.length>1)return e;var o=Qe(r,t,n),i=(0,c.xn)(o);return e.map((function(e){return i.get(e.id)||e}))},Qe=function(e,t,n){return e.forEach((function(e){et(e,t),"vertical"===n&&tt(e,Math.PI)})),e},et=function(e,t){var n=e.x,r=e.y,o=e.width,a=e.height,s=(0,Ge.LW)(e.angle);(0,i.DR)(e,{angle:(0,Ge.LW)(0)});var l=(0,qe.PC)(e,t.zoom),c=!0,u=l.nw;if(u||(c=!1,u=l.ne)){var d,p=0;(0,M.bt)(e)&&e.points.length<3&&(p=2*e.points.reduce((function(e,t){return Math.max(e,t[0])}),0)-e.width),(0,M.bt)(e)&&(d=(0,Ze.Ut)(e,e.points));var f=(0,Ze.qf)(e);if((0,M.bt)(e)&&e.points.length<3){for(var h=1;h<e.points.length;h++)I._.movePoints(e,[{index:h,point:[-e.points[h][0],e.points[h][1]]}]);I._.normalizePoints(e)}else{var m=d?d[2]-d[0]:f[2]-f[0],g=d?[d[0],d[1]]:[f[0],f[1]];(0,Ge.l2)((new Map).set(e.id,e),!1,e,c?"nw":"ne",!0,c?g[0]+m:g[0]-m,g[1])}var v=(0,Ge.LW)(2*Math.PI-s);if(v<0&&(v=(0,Ge.LW)(v+2*Math.PI)),(0,i.DR)(e,{angle:v}),(0,i.DR)(e,{x:n+p,y:r,width:o,height:a}),(0,R.Ww)(e),d&&(0,M.bt)(e)){var b=(0,Ze.Ut)(e,e.points),y=d[0]-b[0]+(d[2]-b[2]);(0,i.DR)(e,{x:e.x+.5*y,y:e.y,width:o,height:a})}}else(0,i.DR)(e,{angle:s})},tt=function(e,t){var n=e.x,r=e.y,o=(0,Ge.LW)(e.angle+t);o<0&&(o=(0,Ge.LW)(2*Math.PI+o)),(0,i.DR)(e,{angle:o}),(0,i.DR)(e,{x:n,y:r})},nt=n(4688);function rt(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 ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var it=(0,x.z)({name:"gridMode",viewMode:!0,trackEvent:{category:"canvas",predicate:function(e){return!e.gridSize}},perform:function(e,t){return{appState:ot(ot({},t),{},{gridSize:this.checked(t)?null:_.k}),commitToHistory:!1}},checked:function(e){return null!==e.gridSize},predicate:function(e,t,n){return void 0===n.gridModeEnabled},contextItemLabel:"labels.showGrid",keyTest:function(e){return e[y.tW.CTRL_OR_CMD]&&e.code===y.aU.QUOTE}});function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lt=(0,x.z)({name:"zenMode",viewMode:!0,trackEvent:{category:"canvas",predicate:function(e){return!e.zenModeEnabled}},perform:function(e,t){return{appState:st(st({},t),{},{zenModeEnabled:!this.checked(t)}),commitToHistory:!1}},checked:function(e){return e.zenModeEnabled},predicate:function(e,t,n){return void 0===n.zenModeEnabled},contextItemLabel:"buttons.zenMode",keyTest:function(e){return!e[y.tW.CTRL_OR_CMD]&&e.altKey&&e.code===y.aU.Z}}),ct=n(4958),ut=n(202),dt=n(4929);function pt(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 ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ht=(0,x.z)({name:"toggleLock",trackEvent:{category:"element"},perform:function(e,t){var n=(0,s.eD)(e,t,!0);if(!n.length)return!1;var r=mt(n),o=(0,c.xn)(n),a="lock"===r;return{elements:e.map((function(e){return o.has(e.id)?(0,i.BE)(e,{locked:a}):e})),appState:ft(ft({},t),{},{selectedLinearElement:a?null:t.selectedLinearElement}),commitToHistory:!0}},contextItemLabel:function(e,t){var n=(0,s.eD)(e,t,!1);return 1===n.length?n[0].locked?"labels.elementLock.unlock":"labels.elementLock.lock":"lock"===mt(n)?"labels.elementLock.lockAll":"labels.elementLock.unlockAll"},keyTest:function(e,t,n){return e.key.toLocaleLowerCase()===y.tW.L&&e[y.tW.CTRL_OR_CMD]&&e.shiftKey&&(0,s.eD)(n,t,!1).length>0}}),mt=function(e){return e.some((function(e){return!e.locked}))?"lock":"unlock"};function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){(0,j.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bt=(0,x.z)({name:"toggleLinearEditor",trackEvent:{category:"element"},predicate:function(e,t){var n=(0,s.eD)(e,t);return!(1!==n.length||!(0,M.bt)(n[0]))},perform:function(e,t,n,r){var o,i=(0,s.eD)((0,T.Lm)(e),t,!0)[0],a=(null===(o=t.editingLinearElement)||void 0===o?void 0:o.elementId)===i.id?null:new I._(i,r.scene);return{appState:vt(vt({},t),{},{editingLinearElement:a}),commitToHistory:!1}},contextItemLabel:function(e,t){var n,r=(0,s.eD)((0,T.Lm)(e),t,!0)[0];return(null===(n=t.editingLinearElement)||void 0===n?void 0:n.elementId)===r.id?"labels.lineEditor.exit":"labels.lineEditor.edit"}})},7901:function(e,t,n){"use strict";n.d(t,{N:function(){return r},z:function(){return o}});var r=[],o=function(e){return r=r.concat(e),e}},785:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var r=n(2335),o=n(8211),i=n(6340),a={toggleTheme:[(0,i.uY)("Shift+Alt+D")],saveScene:[(0,i.uY)("CtrlOrCmd+S")],loadScene:[(0,i.uY)("CtrlOrCmd+O")],clearCanvas:[(0,i.uY)("CtrlOrCmd+Delete")],imageExport:[(0,i.uY)("CtrlOrCmd+Shift+E")],cut:[(0,i.uY)("CtrlOrCmd+X")],copy:[(0,i.uY)("CtrlOrCmd+C")],paste:[(0,i.uY)("CtrlOrCmd+V")],copyStyles:[(0,i.uY)("CtrlOrCmd+Alt+C")],pasteStyles:[(0,i.uY)("CtrlOrCmd+Alt+V")],selectAll:[(0,i.uY)("CtrlOrCmd+A")],deleteSelectedElements:[(0,i.uY)("Delete")],duplicateSelection:[(0,i.uY)("CtrlOrCmd+D"),(0,i.uY)("Alt+".concat((0,o.t)("helpDialog.drag")))],sendBackward:[(0,i.uY)("CtrlOrCmd+[")],bringForward:[(0,i.uY)("CtrlOrCmd+]")],sendToBack:[r.Um?(0,i.uY)("CtrlOrCmd+Alt+["):(0,i.uY)("CtrlOrCmd+Shift+[")],bringToFront:[r.Um?(0,i.uY)("CtrlOrCmd+Alt+]"):(0,i.uY)("CtrlOrCmd+Shift+]")],copyAsPng:[(0,i.uY)("Shift+Alt+C")],copyAsSvg:[],group:[(0,i.uY)("CtrlOrCmd+G")],ungroup:[(0,i.uY)("CtrlOrCmd+Shift+G")],gridMode:[(0,i.uY)("CtrlOrCmd+'")],zenMode:[(0,i.uY)("Alt+Z")],stats:[(0,i.uY)("Alt+/")],addToLibrary:[],flipHorizontal:[(0,i.uY)("Shift+H")],flipVertical:[(0,i.uY)("Shift+V")],viewMode:[(0,i.uY)("Alt+R")],hyperlink:[(0,i.uY)("CtrlOrCmd+K")],toggleLock:[(0,i.uY)("CtrlOrCmd+Shift+L")]},s=function(e){var t=a[e];return t&&t.length>0?t[0]:""}},7047:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r=function(e,t,n,r){try{if("undefined"==typeof window||{REACT_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",REACT_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",REACT_APP_LIBRARY_URL:"https://libraries.excalidraw.com",REACT_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",REACT_APP_PORTAL_URL:"https://portal.excalidraw.com",REACT_APP_WS_SERVER_URL:"",REACT_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}',REACT_APP_GOOGLE_ANALYTICS_ID:"UA-387204-13",REACT_APP_MATOMO_URL:"https://excalidraw.matomo.cloud/",REACT_APP_CDN_MATOMO_TRACKER_URL:"//cdn.matomo.cloud/excalidraw.matomo.cloud/matomo.js",REACT_APP_MATOMO_SITE_ID:"1",REACT_APP_PLUS_APP:"https://app.excalidraw.com",PKG_NAME:"@excalidraw/excalidraw",PKG_VERSION:"0.15.3",IS_EXCALIDRAW_NPM_PACKAGE:!0}.JEST_WORKER_ID)return;window.gtag&&window.gtag("event",t,{event_category:e,event_label:n,value:r}),window._paq&&window._paq.push(["trackEvent",e,t,n,r])}catch(e){console.error("error during analytics",e)}}},8897:function(e,t,n){"use strict";n.d(t,{EN:function(){return f},eS:function(){return p},im:function(){return l},l$:function(){return h},s:function(){return d}});var r=n(5284),o=n(2335),i=n(8211),a=n(6340),s=o.ZB.includes(devicePixelRatio)?devicePixelRatio:1,l=function(){return{showWelcomeScreen:!1,theme:o.C6.LIGHT,collaborators:new Map,currentChartType:"bar",currentItemBackgroundColor:o.HN.backgroundColor,currentItemEndArrowhead:"arrow",currentItemFillStyle:o.HN.fillStyle,currentItemFontFamily:o.rk,currentItemFontSize:o.n5,currentItemOpacity:o.HN.opacity,currentItemRoughness:o.HN.roughness,currentItemStartArrowhead:null,currentItemStrokeColor:o.HN.strokeColor,currentItemRoundness:"round",currentItemStrokeStyle:o.HN.strokeStyle,currentItemStrokeWidth:o.HN.strokeWidth,currentItemTextAlign:o.Hg,cursorButton:"up",draggingElement:null,editingElement:null,editingGroupId:null,editingLinearElement:null,activeTool:{type:"selection",customType:null,locked:o.HN.locked,lastActiveTool:null},penMode:!1,penDetected:!1,errorMessage:null,exportBackground:!0,exportScale:s,exportEmbedScene:!1,exportWithDarkMode:!1,fileHandle:null,gridSize:null,isBindingEnabled:!0,isSidebarDocked:!1,isLoading:!1,isResizing:!1,isRotating:!1,lastPointerDownWith:"mouse",multiElement:null,name:"".concat((0,i.t)("labels.untitled"),"-").concat((0,a.Fc)()),contextMenu:null,openMenu:null,openPopup:null,openSidebar:null,openDialog:null,pasteDialog:{shown:!1,data:null},previousSelectedElementIds:{},resizingElement:null,scrolledOutside:!1,scrollX:0,scrollY:0,selectedElementIds:{},selectedGroupIds:{},selectionElement:null,shouldCacheIgnoreZoom:!1,showStats:!1,startBoundElement:null,suggestedBindings:[],toast:null,viewBackgroundColor:r.white,zenModeEnabled:!1,zoom:{value:1},viewModeEnabled:!1,pendingImageElementId:null,showHyperlinkPopup:!1,selectedLinearElement:null}},c={showWelcomeScreen:{browser:!0,export:!1,server:!1},theme:{browser:!0,export:!1,server:!1},collaborators:{browser:!1,export:!1,server:!1},currentChartType:{browser:!0,export:!1,server:!1},currentItemBackgroundColor:{browser:!0,export:!1,server:!1},currentItemEndArrowhead:{browser:!0,export:!1,server:!1},currentItemFillStyle:{browser:!0,export:!1,server:!1},currentItemFontFamily:{browser:!0,export:!1,server:!1},currentItemFontSize:{browser:!0,export:!1,server:!1},currentItemRoundness:{browser:!0,export:!1,server:!1},currentItemOpacity:{browser:!0,export:!1,server:!1},currentItemRoughness:{browser:!0,export:!1,server:!1},currentItemStartArrowhead:{browser:!0,export:!1,server:!1},currentItemStrokeColor:{browser:!0,export:!1,server:!1},currentItemStrokeStyle:{browser:!0,export:!1,server:!1},currentItemStrokeWidth:{browser:!0,export:!1,server:!1},currentItemTextAlign:{browser:!0,export:!1,server:!1},cursorButton:{browser:!0,export:!1,server:!1},draggingElement:{browser:!1,export:!1,server:!1},editingElement:{browser:!1,export:!1,server:!1},editingGroupId:{browser:!0,export:!1,server:!1},editingLinearElement:{browser:!1,export:!1,server:!1},activeTool:{browser:!0,export:!1,server:!1},penMode:{browser:!0,export:!1,server:!1},penDetected:{browser:!0,export:!1,server:!1},errorMessage:{browser:!1,export:!1,server:!1},exportBackground:{browser:!0,export:!1,server:!1},exportEmbedScene:{browser:!0,export:!1,server:!1},exportScale:{browser:!0,export:!1,server:!1},exportWithDarkMode:{browser:!0,export:!1,server:!1},fileHandle:{browser:!1,export:!1,server:!1},gridSize:{browser:!0,export:!0,server:!0},height:{browser:!1,export:!1,server:!1},isBindingEnabled:{browser:!1,export:!1,server:!1},isSidebarDocked:{browser:!0,export:!1,server:!1},isLoading:{browser:!1,export:!1,server:!1},isResizing:{browser:!1,export:!1,server:!1},isRotating:{browser:!1,export:!1,server:!1},lastPointerDownWith:{browser:!0,export:!1,server:!1},multiElement:{browser:!1,export:!1,server:!1},name:{browser:!0,export:!1,server:!1},offsetLeft:{browser:!1,export:!1,server:!1},offsetTop:{browser:!1,export:!1,server:!1},contextMenu:{browser:!1,export:!1,server:!1},openMenu:{browser:!0,export:!1,server:!1},openPopup:{browser:!1,export:!1,server:!1},openSidebar:{browser:!0,export:!1,server:!1},openDialog:{browser:!1,export:!1,server:!1},pasteDialog:{browser:!1,export:!1,server:!1},previousSelectedElementIds:{browser:!0,export:!1,server:!1},resizingElement:{browser:!1,export:!1,server:!1},scrolledOutside:{browser:!0,export:!1,server:!1},scrollX:{browser:!0,export:!1,server:!1},scrollY:{browser:!0,export:!1,server:!1},selectedElementIds:{browser:!0,export:!1,server:!1},selectedGroupIds:{browser:!0,export:!1,server:!1},selectionElement:{browser:!1,export:!1,server:!1},shouldCacheIgnoreZoom:{browser:!0,export:!1,server:!1},showStats:{browser:!0,export:!1,server:!1},startBoundElement:{browser:!1,export:!1,server:!1},suggestedBindings:{browser:!1,export:!1,server:!1},toast:{browser:!1,export:!1,server:!1},viewBackgroundColor:{browser:!0,export:!0,server:!0},width:{browser:!1,export:!1,server:!1},zenModeEnabled:{browser:!0,export:!1,server:!1},zoom:{browser:!0,export:!1,server:!1},viewModeEnabled:{browser:!1,export:!1,server:!1},pendingImageElementId:{browser:!1,export:!1,server:!1},showHyperlinkPopup:{browser:!1,export:!1,server:!1},selectedLinearElement:{browser:!0,export:!1,server:!1}},u=function(e,t){for(var n={},r=0,o=Object.keys(e);r<o.length;r++){var i=o[r],a=c[i];if(null!=a&&a[t]){var s=e[i];n[i]=s}}return n},d=function(e){return u(e,"export")},p=function(e){return u(e,"server")},f=function(e){return"eraser"===e.activeTool.type},h=function(e){return"hand"===e.activeTool.type}},5674:function(e,t,n){"use strict";n.d(t,{dz:function(){return x},i$:function(){return v},ps:function(){return P}});var r=n(1930),o=n(7169),i=n(2577),a=n(56),s=n(2335),l=n(1047),c=n(6954);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function d(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 p(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?p(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=12,m=256,g="NOT_SPREADSHEET",v="VALID_SPREADSHEET",b=function(e){var t=/^([-+]?)[$€£¥₩]?([-+]?)([\d.,]+)[%]?$/.exec(e);return t?parseFloat("".concat((t[1]||t[2])+t[3]).replace(/,/g,"")):null},y=function(e,t){return e.slice(1).every((function(e){return null!==b(e[t])}))},w=function(e){var t=e[0].length;if(t>2)return{type:g,reason:"More than 2 columns"};if(1===t){if(!y(e,0))return{type:g,reason:"Value is not numeric"};var n=null===b(e[0][0]),r=(n?e.slice(1):e).map((function(e){return b(e[0])}));return r.length<2?{type:g,reason:"Less than two rows"}:{type:v,spreadsheet:{title:n?e[0][0]:null,labels:null,values:r}}}var o=y(e,0),a=y(e,1);if(!o&&!a)return{type:g,reason:"Value is not numeric"};var s=a?[0,1]:[1,0],l=(0,i.Z)(s,2),c=l[0],u=l[1],d=null===b(e[0][u]),p=d?e.slice(1):e;return p.length<2?{type:g,reason:"Less than 2 rows"}:{type:v,spreadsheet:{title:d?e[0][u]:null,labels:p.map((function(e){return e[c]})),values:p.map((function(e){return b(e[u])}))}}},x=function(e){var t=e.trim().split("\n").map((function(e){return e.trim().split("\t")}));if(t.length&&2!==t[0].length&&(t=e.trim().split("\n").map((function(e){return e.trim().split(",")}))),0===t.length)return{type:g,reason:"No values"};var n=t[0].length;if(!t.every((function(e){return e.length===n})))return{type:g,reason:"All rows don't have same number of columns"};var r=w(t);if(r.type!==v){var o=w(function(e){for(var t=[],n=0;n<e[0].length;n++){for(var r=[],o=0;o<e.length;o++)r.push(e[o][n]);t.push(r)}return t}(t));if(o.type===v)return o}return r},k=a.Z.elementBackground.slice(2,a.Z.elementBackground.length),_={strokeColor:a.Z.elementStroke[0]},S=function(e){return{chartWidth:44*e.values.length+h,chartHeight:280}},E=function(e,t,n,o,i,c){var u=S(e),d=u.chartWidth,p=u.chartHeight,g=e.title?(0,l.VL)(f(f({backgroundColor:i,groupIds:[o]},_),{},{text:e.title,x:t+d/2,y:n-m-24-s.n5,roundness:null,textAlign:"center"})):null,v=c?(0,l.Up)(f(f({backgroundColor:i,groupIds:[o]},_),{},{type:"rectangle",x:t,y:n-p,width:d,height:p,strokeColor:a.Z.elementStroke[0],fillStyle:"solid",opacity:6})):null;return[].concat((0,r.Z)(v?[v]:[]),(0,r.Z)(g?[g]:[]),(0,r.Z)(function(e,t,n,r,o){var i;return(null===(i=e.labels)||void 0===i?void 0:i.map((function(e,i){return(0,l.VL)(f(f({groupIds:[r],backgroundColor:o},_),{},{text:e.length>8?"".concat(e.slice(0,5),"..."):e,x:t+44*i+24,y:n+6,width:32,angle:5.87,fontSize:16,textAlign:"center",verticalAlign:"top"}))})))||[]}(e,t,n,o,i)),(0,r.Z)(function(e,t,n,o,i){var a=(0,l.VL)(f(f({groupIds:[o],backgroundColor:i},_),{},{x:t-h,y:n-h,text:"0",textAlign:"right"}));return[a,(0,l.VL)(f(f({groupIds:[o],backgroundColor:i},_),{},{x:t-h,y:n-m-a.height/2,text:Math.max.apply(Math,(0,r.Z)(e.values)).toLocaleString(),textAlign:"right"}))]}(e,t,n,o,i)),(0,r.Z)(function(e,t,n,r,o){var i=S(e),a=i.chartWidth,s=i.chartHeight;return[(0,l.y8)(f(f({backgroundColor:o,groupIds:[r]},_),{},{type:"line",x:t,y:n,startArrowhead:null,endArrowhead:null,width:a,points:[[0,0],[a,0]]})),(0,l.y8)(f(f({backgroundColor:o,groupIds:[r]},_),{},{type:"line",x:t,y:n,startArrowhead:null,endArrowhead:null,height:s,points:[[0,0],[0,-s]]})),(0,l.y8)(f(f({backgroundColor:o,groupIds:[r]},_),{},{type:"line",x:t,y:n-m-h,startArrowhead:null,endArrowhead:null,strokeStyle:"dotted",width:a,opacity:50,points:[[0,0],[a,0]]}))]}(e,t,n,o,i)))},P=function(e,t,n,o){return"line"===e?function(e,t,n){var o,i=Math.max.apply(Math,(0,r.Z)(e.values)),a=(0,c.kb)(),d=k[Math.floor(Math.random()*k.length)],p=0,g=[],v=u(e.values);try{for(v.s();!(o=v.n()).done;){var b=o.value,y=44*p,w=-b/i*m;g.push([y,w]),p++}}catch(e){v.e(e)}finally{v.f()}var x=Math.max.apply(Math,(0,r.Z)(g.map((function(e){return e[0]})))),S=Math.max.apply(Math,(0,r.Z)(g.map((function(e){return e[1]})))),P=Math.min.apply(Math,(0,r.Z)(g.map((function(e){return e[0]})))),C=Math.min.apply(Math,(0,r.Z)(g.map((function(e){return e[1]})))),O=(0,l.y8)(f(f({backgroundColor:d,groupIds:[a]},_),{},{type:"line",x:t+h+16,y:n-h,startArrowhead:null,endArrowhead:null,height:S-C,width:x-P,strokeWidth:2,points:g})),j=e.values.map((function(e,r){var o=44*r+6,s=-e/i*m+6;return(0,l.Up)(f(f({backgroundColor:d,groupIds:[a]},_),{},{fillStyle:"solid",strokeWidth:2,type:"ellipse",x:t+o+16,y:n+s-24,width:h,height:h}))})),T=e.values.map((function(e,r){var o=44*r+6,s=e/i*m+6+h;return(0,l.y8)(f(f({backgroundColor:d,groupIds:[a]},_),{},{type:"line",x:t+o+16+6,y:n-s,startArrowhead:null,endArrowhead:null,height:s,strokeStyle:"dotted",opacity:50,points:[[0,0],[0,s]]}))}));return[].concat((0,r.Z)(E(e,t,n,a,d,"production"===s.Vi.DEVELOPMENT)),[O],(0,r.Z)(T),(0,r.Z)(j))}(t,n,o):function(e,t,n){var o=Math.max.apply(Math,(0,r.Z)(e.values)),i=(0,c.kb)(),a=k[Math.floor(Math.random()*k.length)],u=e.values.map((function(e,r){var s=e/o*m;return(0,l.Up)(f(f({backgroundColor:a,groupIds:[i]},_),{},{type:"rectangle",x:t+44*r+h,y:n-s-h,width:32,height:s}))}));return[].concat((0,r.Z)(u),(0,r.Z)(E(e,t,n,i,a,"production"===s.Vi.DEVELOPMENT)))}(t,n,o)}},8982:function(e,t,n){"use strict";n.d(t,{X:function(){return o},f:function(){return i}});var r=n(56),o=function(e,t){if(null!=t&&t.collaborators){var n=t.collaborators.get(e);if(null!=n&&n.color)return n.color}var o=e.split("").reduce((function(e,t){return e+t.charCodeAt(0)}),0),i=r.Z.elementBackground.slice(3),a=r.Z.elementStroke.slice(3);return{background:i[o%i.length],stroke:a[o%a.length]}},i=function(e){return null!=e&&e.trim()?e.trim()[0].toUpperCase():"?"}},6665:function(e,t,n){"use strict";n.d(t,{dd:function(){return P},mQ:function(){return S},uR:function(){return E},vQ:function(){return w},vt:function(){return b},wx:function(){return v}});var r=n(7169),o=n(8950),i=n(2975),a=n.n(i),s=n(4162),l=n(5674),c=n(2335),u=n(1974),d=n(6340);function p(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?p(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h="",m=!1,g="clipboard"in navigator&&"readText"in navigator.clipboard,v="clipboard"in navigator&&"writeText"in navigator.clipboard,b="clipboard"in navigator&&"write"in navigator.clipboard&&"ClipboardItem"in window&&"toBlob"in HTMLCanvasElement.prototype,y=function(e){return!(![c.r8.excalidraw,c.r8.excalidrawClipboard].includes(null==e?void 0:e.type)||!Array.isArray(e.elements))},w=function(){var e=(0,o.Z)(a().mark((function e(t,n,r){var o,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={type:c.r8.excalidrawClipboard,elements:t,files:r?t.reduce((function(e,t){return(0,u.wi)(t)&&r[t.fileId]&&(e[t.fileId]=r[t.fileId]),e}),{}):void 0},i=JSON.stringify(o),h=i,e.prev=3,m=!1,e.next=7,P(i);case 7:e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),m=!0,console.error(e.t0);case 13:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t,n,r){return e.apply(this,arguments)}}(),x=function(){if(!h)return{};try{return JSON.parse(h)}catch(e){return console.error(e),{}}},k=function(e){var t=(0,l.dz)(e);return t.type===l.i$?{spreadsheet:t.spreadsheet}:null},_=function(){var e=(0,o.Z)(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!t){e.next=5;break}e.t0=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/plain"),e.next=11;break;case 5:if(e.t1=g,!e.t1){e.next=10;break}return e.next=9,navigator.clipboard.readText();case 9:e.t1=e.sent;case 10:e.t0=e.t1;case 11:return r=e.t0,e.abrupt("return",(r||"").trim());case 15:return e.prev=15,e.t2=e.catch(0),e.abrupt("return","");case 18:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=(0,o.Z)(a().mark((function e(t){var n,r,o,i,l,c=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=c.length>1&&void 0!==c[1]&&c[1],e.next=3,_(t);case 3:if((r=e.sent)&&(n||!r.includes(s.oj))){e.next=6;break}return e.abrupt("return",x());case 6:if(!(o=!n&&k(r))){e.next=9;break}return e.abrupt("return",o);case 9:if(i=x(),e.prev=10,l=JSON.parse(r),!y(l)){e.next=14;break}return e.abrupt("return",{elements:l.elements,files:l.files,text:n?JSON.stringify(l.elements,null,2):void 0});case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(10);case 18:return e.abrupt("return",m&&i.elements?f(f({},i),{},{text:n?JSON.stringify(i.elements,null,2):void 0}):{text:r});case 19:case"end":return e.stop()}}),e,null,[[10,16]])})));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=(0,o.Z)(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.clipboard.write([new window.ClipboardItem((0,r.Z)({},c.LO.png,t))]);case 3:case 21:e.next=24;break;case 5:if(e.prev=5,e.t0=e.catch(0),!(0,d.y8)(t)){e.next=23;break}return e.t1=navigator.clipboard,e.t2=window.ClipboardItem,e.t3=r.Z,e.t4={},e.t5=c.LO.png,e.next=15,t;case 15:return e.t6=e.sent,e.t7=(0,e.t3)(e.t4,e.t5,e.t6),e.t8=new e.t2(e.t7),e.t9=[e.t8],e.next=21,e.t1.write.call(e.t1,e.t9);case 23:throw e.t0;case 24:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=(0,o.Z)(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!1,!v){e.next=11;break}return e.prev=2,e.next=5,navigator.clipboard.writeText(t||"");case 5:n=!0,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),console.error(e.t0);case 11:if(n||C(t||" ")){e.next=13;break}throw new Error("couldn't copy");case 13:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}(),C=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;n.style.top="".concat(r,"px"),n.style.fontSize="12pt",n.setAttribute("readonly",""),n.value=e,document.body.appendChild(n);var o=!1;try{n.select(),n.setSelectionRange(0,n.value.length),o=document.execCommand("copy")}catch(e){console.error(e)}return n.remove(),o}},56:function(e,t,n){"use strict";var r=n(1930),o=n(5284),i=function(e){return[o.red[e],o.pink[e],o.grape[e],o.violet[e],o.indigo[e],o.blue[e],o.cyan[e],o.teal[e],o.green[e],o.lime[e],o.yellow[e],o.orange[e]]};t.Z={canvasBackground:[o.white,o.gray[0],o.gray[1]].concat((0,r.Z)(i(0))),elementBackground:["transparent",o.gray[4],o.gray[6]].concat((0,r.Z)(i(6))),elementStroke:[o.black,o.gray[8],o.gray[7]].concat((0,r.Z)(i(9)))}},6798:function(e,t,n){"use strict";n.d(t,{o:function(){return p},w:function(){return d}});var r=n(2577),o=n(4739),i=n(6710),a=n(8211),s=n(9487),l=n(2134),c=n(7046),u=n(4512),d=(0,o.cn)(null),p=function(){var e=(0,o.KO)(d,s.yE),t=(0,r.Z)(e,2),n=t[0],p=t[1],f=(0,l.eh)();return n&&"clearCanvas"===n?(0,u.jsx)(c.Z,{onConfirm:function(){f.executeAction(i.mo),p(null)},onCancel:function(){return p(null)},title:(0,a.t)("clearCanvasDialog.title"),children:(0,u.jsxs)("p",{className:"clear-canvas__content",children:[" ",(0,a.t)("alerts.clearReset")]})}):null}},2134:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Ur},Fy:function(){return br},eh:function(){return _r},gF:function(){return xr},J0:function(){return yr},bd:function(){return wr},n9:function(){return kr}});var r=n(6655),o=n(2577),i=n(1930),a=n(8950),s=n(8821),l=n(5169),c=n(3173),u=n(2248),d=n(7245),p=n(2312),f=n(7169),h=n(2975),m=n.n(h),g=n(9787),v=n.n(g),b=n(5156),y=n(8234),w=n(45),x=n(5605),k=n(6710),_=n(3646),S=n(1319),E=n(8211),P=n(6066),C=n(1935),O=n(8290),j=n(6340),T=n(2335),M=n(4512);function I(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 D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A=function(e,t,n){var r=!1;if(!(t.multiElement||t.resizingElement||t.editingElement||t.draggingElement)){var o=n();if(null===o)return{commitToHistory:r};var i=(0,j.xn)(e),a=o.elements,s=(0,j.xn)(a),l=e.filter((function(e){return!s.has(e.id)})),c=a.map((function(e){return(0,C.BE)(i.get(e.id)||e,e)})).concat(l.map((function(e){return(0,C.BE)(e,{isDeleted:!0})})));return(0,O.$q)(c,l),{elements:c,appState:D(D({},t),o.appState),commitToHistory:r,syncHistory:!0}}return{commitToHistory:r}},L=n(7047),N=function(e,t,n,o,i,a){if(e.trackEvent)try{"object"===(0,r.Z)(e.trackEvent)&&(!e.trackEvent.predicate||e.trackEvent.predicate(n,o,a))&&(0,L.L)(e.trackEvent.category,e.trackEvent.action||e.name,"".concat(t," (").concat(i.device.isMobile?"mobile":"desktop",")"))}catch(e){console.error("error while logging action:",e)}},R=function(){function e(t,n,r,o){var i=this;(0,s.Z)(this,e),this.actions={},this.renderAction=function(e,t){var n=i.app.props.UIOptions.canvasActions;if(i.actions[e]&&"PanelComponent"in i.actions[e]&&(!(e in n)||n[e])){var r=i.actions[e],o=r.PanelComponent;o.displayName="PanelComponent";var a=i.getElementsIncludingDeleted(),s=i.getAppState();return(0,M.jsx)(o,{elements:i.getElementsIncludingDeleted(),appState:i.getAppState(),updateData:function(e){N(r,"ui",s,a,i.app,e),i.updater(r.perform(i.getElementsIncludingDeleted(),i.getAppState(),e,i.app))},appProps:i.app.props,data:t})}return null},this.isActionEnabled=function(e){var t=i.getElementsIncludingDeleted(),n=i.getAppState();return!e.predicate||e.predicate(t,n,i.app.props,i.app)},this.updater=function(e){if(!e||!("then"in e))return t(e);e.then((function(e){return t(e)}))},this.getAppState=n,this.getElementsIncludingDeleted=r,this.app=o}return(0,l.Z)(e,[{key:"registerAction",value:function(e){this.actions[e.name]=e}},{key:"registerAll",value:function(e){var t=this;e.forEach((function(e){return t.registerAction(e)}))}},{key:"handleKeyDown",value:function(e){var t=this,n=this.app.props.UIOptions.canvasActions,r=Object.values(this.actions).sort((function(e,t){return(t.keyPriority||0)-(e.keyPriority||0)})).filter((function(r){return(!(r.name in n)||n[r.name])&&r.keyTest&&r.keyTest(e,t.getAppState(),t.getElementsIncludingDeleted())}));if(1!==r.length)return r.length>1&&console.warn("Canceling as multiple actions match this shortcut",r),!1;var o=r[0];if(this.getAppState().viewModeEnabled&&!0!==o.viewMode)return!1;var i=this.getElementsIncludingDeleted(),a=this.getAppState();return N(o,"keyboard",a,i,this.app,null),e.preventDefault(),e.stopPropagation(),this.updater(r[0].perform(i,a,null,this.app)),!0}},{key:"executeAction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api",n=this.getElementsIncludingDeleted(),r=this.getAppState(),o=null;N(e,t,r,n,this.app,o),this.updater(e.perform(n,r,o,this.app))}}]),e}(),z=n(7901),F=n(8897),Z=n(6665),B=n(9485),U=n(7053),W=n(679),H=n(1047),K=n(6938),V=n(2791),Y=n(1974),G=function(e){var t=Array.from(e.values());return{x:X(t,(function(e){return e.x}))/t.length,y:X(t,(function(e){return e.y}))/t.length}},q=function(e){var t=(0,o.Z)(e,2),n=t[0],r=t[1];return Math.hypot(n.x-r.x,n.y-r.y)},X=function(e,t){return e.reduce((function(e,n){return e+t(n)}),0)},$=n(242);function J(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 Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ee=function(e){return{selectedElementIds:e.selectedElementIds,selectedGroupIds:e.selectedGroupIds,viewBackgroundColor:e.viewBackgroundColor,editingLinearElement:e.editingLinearElement,editingGroupId:e.editingGroupId,name:e.name}},te=function(){function e(){var t=this;(0,s.Z)(this,e),this.elementCache=new Map,this.recording=!0,this.stateHistory=[],this.redoStack=[],this.lastEntry=null,this.generateEntry=function(e,n){return t.dehydrateHistoryEntry({appState:ee(e),elements:n.reduce((function(t,n){if((0,Y.bt)(n)&&e.multiElement&&e.multiElement.id===n.id){if(e.multiElement&&e.multiElement.id===n.id&&n.points.length<2)return t;t.push(Q(Q({},n),{},{points:n.lastCommittedPoint!==n.points[n.points.length-1]?n.points.slice(0,-1):n.points}))}else t.push(n);return t}),[])})}}return(0,l.Z)(e,[{key:"hydrateHistoryEntry",value:function(e){var t=this,n=e.appState,r=e.elements;return{appState:JSON.parse(n),elements:r.map((function(e){var n,r=null===(n=t.elementCache.get(e.id))||void 0===n?void 0:n.get(e.versionNonce);if(!r)throw new Error("Element not found: ".concat(e.id,":").concat(e.versionNonce));return r}))}}},{key:"dehydrateHistoryEntry",value:function(e){var t=this,n=e.appState,r=e.elements;return{appState:JSON.stringify(n),elements:r.map((function(e){t.elementCache.has(e.id)||t.elementCache.set(e.id,new Map);var n=t.elementCache.get(e.id);return n.has(e.versionNonce)||n.set(e.versionNonce,(0,V.OL)(e)),{id:e.id,versionNonce:e.versionNonce}}))}}},{key:"getSnapshotForTest",value:function(){var e=this;return{recording:this.recording,stateHistory:this.stateHistory.map((function(t){return e.hydrateHistoryEntry(t)})),redoStack:this.redoStack.map((function(t){return e.hydrateHistoryEntry(t)}))}}},{key:"clear",value:function(){this.stateHistory.length=0,this.redoStack.length=0,this.lastEntry=null,this.elementCache.clear()}},{key:"shouldCreateEntry",value:function(e){var t,n=this.lastEntry;if(!n)return!0;if(e.elements.length!==n.elements.length)return!0;for(var r=e.elements.length-1;r>-1;r--){var o=e.elements[r],i=n.elements[r];if(!o||!i||o.id!==i.id||o.versionNonce!==i.versionNonce)return!0}for(t in e.appState){var a,s;if(("editingLinearElement"!==t||(null===(a=e.appState[t])||void 0===a?void 0:a.elementId)!==(null===(s=n.appState[t])||void 0===s?void 0:s.elementId))&&"selectedElementIds"!==t&&"selectedGroupIds"!==t&&e.appState[t]!==n.appState[t])return!0}return!1}},{key:"pushEntry",value:function(e,t){var n=this.generateEntry(e,t),r=this.hydrateHistoryEntry(n);if(r){if(!this.shouldCreateEntry(r))return;this.stateHistory.push(n),this.lastEntry=r,this.clearRedoStack()}}},{key:"clearRedoStack",value:function(){this.redoStack.splice(0,this.redoStack.length)}},{key:"redoOnce",value:function(){if(0===this.redoStack.length)return null;var e=this.redoStack.pop();return void 0!==e?(this.stateHistory.push(e),this.hydrateHistoryEntry(e)):null}},{key:"undoOnce",value:function(){if(1===this.stateHistory.length)return null;var e=this.stateHistory.pop(),t=this.stateHistory[this.stateHistory.length-1];return void 0!==e?(this.redoStack.push(e),this.hydrateHistoryEntry(t)):null}},{key:"setCurrentState",value:function(e,t){this.lastEntry=this.hydrateHistoryEntry(this.generateEntry(e,t))}},{key:"resumeRecording",value:function(){this.recording=!0}},{key:"record",value:function(e,t){this.recording&&(this.pushEntry(e,t),this.recording=!1)}}]),e}(),ne=n(6552),re=n(3547),oe=n(3063),ie=n(75),ae=n(1564),se=n(746),le=[{icon:_.zu,value:"selection",key:P.tW.V,numericKey:P.tW[1],fillable:!0},{icon:_.OW,value:"rectangle",key:P.tW.R,numericKey:P.tW[2],fillable:!0},{icon:_.nb,value:"diamond",key:P.tW.D,numericKey:P.tW[3],fillable:!0},{icon:_.Re,value:"ellipse",key:P.tW.O,numericKey:P.tW[4],fillable:!0},{icon:_.e0,value:"arrow",key:P.tW.A,numericKey:P.tW[5],fillable:!0},{icon:_.zb,value:"line",key:P.tW.L,numericKey:P.tW[6],fillable:!0},{icon:_.Pm,value:"freedraw",key:[P.tW.P,P.tW.X],numericKey:P.tW[7],fillable:!1},{icon:_.VL,value:"text",key:P.tW.T,numericKey:P.tW[8],fillable:!1},{icon:_.XB,value:"image",key:null,numericKey:P.tW[9],fillable:!1},{icon:_.$q,value:"eraser",key:P.tW.E,numericKey:P.tW[0],fillable:!1}],ce=n(2891),ue=n(487),de=n.n(ue),pe=n(631),fe=n.n(pe),he=n(2052),me=n.n(he),ge=n(4010),ve=n.n(ge),be=n(1469),ye=n.n(be),we=n(9329),xe=n.n(we),ke=n(6578),_e={};_e.styleTagTransform=xe(),_e.setAttributes=ve(),_e.insert=me().bind(null,"head"),_e.domAPI=fe(),_e.insertStyleElement=ye(),de()(ke.Z,_e),ke.Z&&ke.Z.locals&&ke.Z.locals;var Se=n(785),Ee="separator",Pe=v().memo((function(e){var t=e.actionManager,n=e.items,r=e.top,o=e.left,i=xr(),a=kr(),s=wr(),l=n.reduce((function(e,n){return!n||n!==Ee&&n.predicate&&!n.predicate(s,i,t.app.props,t.app)||e.push(n),e}),[]);return(0,M.jsx)(ce.J,{onCloseRequest:function(){return a({contextMenu:null})},top:r,left:o,fitInViewport:!0,offsetLeft:i.offsetLeft,offsetTop:i.offsetTop,viewportWidth:i.width,viewportHeight:i.height,children:(0,M.jsx)("ul",{className:"context-menu",onContextMenu:function(e){return e.preventDefault()},children:l.map((function(e,n){var r;if(e===Ee)return l[n-1]&&l[n-1]!==Ee?(0,M.jsx)("hr",{className:"context-menu-item-separator"},n):null;var o=e.name,c="";return e.contextItemLabel&&(c="function"==typeof e.contextItemLabel?(0,E.t)(e.contextItemLabel(s,i)):(0,E.t)(e.contextItemLabel)),(0,M.jsx)("li",{"data-testid":o,onClick:function(){a({contextMenu:null},(function(){t.executeAction(e,"contextMenu")}))},children:(0,M.jsxs)("button",{className:(0,w.Z)("context-menu-item",{dangerous:"deleteSelectedElements"===o,checkmark:null===(r=e.checked)||void 0===r?void 0:r.call(e,i)}),children:[(0,M.jsx)("div",{className:"context-menu-item__label",children:c}),(0,M.jsx)("kbd",{className:"context-menu-item__shortcut",children:o?(0,Se.C)(o):""})]})},n)}))})})})),Ce=n(2726),Oe=n(7239),je=n(8120),Te=n(6086),Me={};Me.styleTagTransform=xe(),Me.setAttributes=ve(),Me.insert=me().bind(null,"head"),Me.domAPI=fe(),Me.insertStyleElement=ye(),de()(Te.Z,Me),Te.Z&&Te.Z.locals&&Te.Z.locals;var Ie=n(1894),De=n(5710);function Ae(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 Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(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}var Re=function(e){var t,n=e.appState,r=e.elements,o=e.renderAction,i=(0,ie.Zs)((0,H.Lm)(r),n),a=!1;2===i.length&&((0,Y.Xo)(i[0])||(0,Y.Xo)(i[1]))&&(a=!0);var s,l=Boolean(n.editingElement),c=br(),u="rtl"===document.documentElement.getAttribute("dir"),d=(0,ie.$b)(n.activeTool.type)||i.some((function(e){return(0,ie.$b)(e.type)&&!(0,j.Qm)(e.backgroundColor)})),p=(0,ie.$b)(n.activeTool.type)||i.some((function(e){return(0,ie.$b)(e.type)})),f=1===i.length||a,h=(null===(t=i[0])||void 0===t?void 0:t.type)||null,m=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ne(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)?Ne(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(i);try{for(m.s();!(s=m.n()).done;)if(s.value.type!==h){h=null;break}}catch(e){m.e(e)}finally{m.f()}return(0,M.jsxs)("div",{className:"panelColumn",children:[(0,M.jsx)("div",{children:((0,je.PD)(n.activeTool.type)&&"image"!==n.activeTool.type&&"image"!==h||i.some((function(e){return(0,je.PD)(e.type)})))&&o("changeStrokeColor")}),p&&(0,M.jsx)("div",{children:o("changeBackgroundColor")}),d&&o("changeFillStyle"),((0,ie.Zd)(n.activeTool.type)||i.some((function(e){return(0,ie.Zd)(e.type)})))&&o("changeStrokeWidth"),("freedraw"===n.activeTool.type||i.some((function(e){return"freedraw"===e.type})))&&o("changeStrokeShape"),((0,ie.M9)(n.activeTool.type)||i.some((function(e){return(0,ie.M9)(e.type)})))&&(0,M.jsxs)(M.Fragment,{children:[o("changeStrokeStyle"),o("changeSloppiness")]}),((0,ie.sh)(n.activeTool.type)||i.some((function(e){return(0,ie.sh)(e.type)})))&&(0,M.jsx)(M.Fragment,{children:o("changeRoundness")}),((0,ie.bZ)(n.activeTool.type)||i.some((function(e){return(0,ie.bZ)(e.type)})))&&(0,M.jsxs)(M.Fragment,{children:[o("changeFontSize"),o("changeFontFamily"),(0,De.aV)(i)&&o("changeTextAlign")]}),(0,De.cn)(i)&&o("changeVerticalAlign"),((0,ie.Un)(n.activeTool.type)||i.some((function(e){return(0,ie.Un)(e.type)})))&&(0,M.jsx)(M.Fragment,{children:o("changeArrowhead")}),o("changeOpacity"),(0,M.jsxs)("fieldset",{children:[(0,M.jsx)("legend",{children:(0,E.t)("labels.layers")}),(0,M.jsxs)("div",{className:"buttonList",children:[o("sendToBack"),o("sendBackward"),o("bringToFront"),o("bringForward")]})]}),i.length>1&&!a&&(0,M.jsxs)("fieldset",{children:[(0,M.jsx)("legend",{children:(0,E.t)("labels.align")}),(0,M.jsxs)("div",{className:"buttonList",children:[u?(0,M.jsxs)(M.Fragment,{children:[o("alignRight"),o("alignHorizontallyCentered"),o("alignLeft")]}):(0,M.jsxs)(M.Fragment,{children:[o("alignLeft"),o("alignHorizontallyCentered"),o("alignRight")]}),i.length>2&&o("distributeHorizontally"),(0,M.jsx)("div",{style:{flexBasis:"100%",height:0}}),(0,M.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:".5rem",marginTop:"-0.5rem"},children:[o("alignTop"),o("alignVerticallyCentered"),o("alignBottom"),i.length>2&&o("distributeVertically")]})]})]}),!l&&i.length>0&&(0,M.jsxs)("fieldset",{children:[(0,M.jsx)("legend",{children:(0,E.t)("labels.actions")}),(0,M.jsxs)("div",{className:"buttonList",children:[!c.isMobile&&o("duplicateSelection"),!c.isMobile&&o("deleteSelectedElements"),o("group"),o("ungroup"),f&&o("hyperlink")]})]})]})},ze=function(e){var t=e.canvas,n=e.activeTool,r=e.setAppState,o=e.onImageAction,i=e.appState;return(0,M.jsx)(M.Fragment,{children:le.map((function(e,a){var s=e.value,l=e.icon,c=e.key,u=e.numericKey,d=e.fillable,p=(0,E.t)("toolBar.".concat(s)),f=c&&(0,j.Oo)("string"==typeof c?c:c[0]),h=f?"".concat(f," ").concat((0,E.t)("helpDialog.or")," ").concat(u):"".concat(u);return(0,M.jsx)(S.V,{className:(0,w.Z)("Shape",{fillable:d}),type:"radio",icon:l,checked:n.type===s,name:"editor-current-shape",title:"".concat((0,j.Oo)(p)," — ").concat(h),keyBindingLabel:u||f,"aria-label":(0,j.Oo)(p),"aria-keyshortcuts":h,"data-testid":"toolbar-".concat(s),onPointerDown:function(e){var t=e.pointerType;i.penDetected||"pen"!==t||r({penDetected:!0,penMode:!0})},onChange:function(e){var n=e.pointerType;i.activeTool.type!==s&&(0,L.L)("toolbar",s,"ui");var a=(0,j.Om)(i,{type:s});r({activeTool:a,multiElement:null,selectedElementIds:{}}),(0,j.Uk)(t,Le(Le({},i),{},{activeTool:a})),"image"===s&&o({pointerType:n})}},s)}))})},Fe=function(e){var t=e.renderAction;return e.zoom,(0,M.jsx)(Oe.Z.Col,{gap:1,className:"zoom-actions",children:(0,M.jsxs)(Oe.Z.Row,{align:"center",children:[t("zoomOut"),t("resetZoom"),t("zoomIn")]})})},Ze=function(e){var t=e.renderAction,n=e.className;return(0,M.jsxs)("div",{className:"undo-redo-buttons ".concat(n),children:[(0,M.jsx)("div",{className:"undo-button-container",children:(0,M.jsx)(Ie.u,{label:(0,E.t)("buttons.undo"),children:t("undo")})}),(0,M.jsx)("div",{className:"redo-button-container",children:(0,M.jsxs)(Ie.u,{label:(0,E.t)("buttons.redo"),children:[" ",t("redo")]})})]})},Be=function(e){var t=e.actionManager,n=e.showExitZenModeBtn;return(0,M.jsx)("button",{className:(0,w.Z)("disable-zen-mode",{"disable-zen-mode--visible":n}),onClick:function(){return t.executeAction(k.JN)},children:(0,E.t)("buttons.exitZenMode")})},Ue=function(e){var t=e.renderAction,n=e.className;return(0,M.jsx)("div",{className:"finalize-button ".concat(n),children:t("finalize",{size:"small"})})},We=n(8396),He=function(e){var t=e.children,n=e.onClose,r=(0,g.useState)(!!t),i=(0,o.Z)(r,2),a=i[0],s=i[1],l=yr().container,c=v().useCallback((function(){s(!1),n&&n(),null==l||l.focus()}),[n,l]);return(0,M.jsx)(M.Fragment,{children:a&&(0,M.jsx)(We.V,{small:!0,onCloseRequest:c,title:(0,E.t)("errorDialog.title"),children:(0,M.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:t})})})},Ke=n(434),Ve=n(7955),Ye={};Ye.styleTagTransform=xe(),Ye.setAttributes=ve(),Ye.insert=me().bind(null,"head"),Ye.domAPI=fe(),Ye.insertStyleElement=ye(),de()(Ve.Z,Ye),Ve.Z&&Ve.Z.locals&&Ve.Z.locals;var Ge=n(5284),qe=n(3807),Xe=n(1393),$e=n(3024),Je="filter"in document.createElement("canvas").getContext("2d"),Qe=function(){return(0,M.jsxs)("div",{children:[(0,M.jsx)("h3",{children:(0,E.t)("canvasError.cannotShowPreview")}),(0,M.jsx)("p",{children:(0,M.jsx)("span",{children:(0,E.t)("canvasError.canvasTooBig")})}),(0,M.jsxs)("em",{children:["(",(0,E.t)("canvasError.canvasTooBigTip"),")"]})]})},et=function(e){var t,n=e.children,r=e.title,o=e.onClick,i=e.color,a=e.shade,s=void 0===a?6:a;return(0,M.jsx)("button",{className:"ExportDialog-imageExportButton",style:(t={},(0,f.Z)(t,"--button-color",Ge[i][s]),(0,f.Z)(t,"--button-color-darker",Ge[i][s+1]),(0,f.Z)(t,"--button-color-darkest",Ge[i][s+2]),t),title:r,"aria-label":r,onClick:o,children:n})},tt=function(e){var t=e.elements,n=e.appState,r=e.files,i=e.exportPadding,a=void 0===i?T.qy:i,s=e.actionManager,l=e.onExportToPng,c=e.onExportToSvg,u=e.onExportToClipboard,d=(0,ie.N)(t,n),p=(0,g.useState)(d),f=(0,o.Z)(p,2),h=f[0],m=f[1],v=(0,g.useRef)(null),b=(0,g.useState)(null),y=(0,o.Z)(b,2),w=y[0],x=y[1],k=h?(0,ie.eD)(t,n,!0):t;return(0,g.useEffect)((function(){m(d)}),[d]),(0,g.useEffect)((function(){var e=v.current;if(e){var t=e.offsetWidth;t&&(0,$e.NL)({elements:k,appState:n,files:r,exportPadding:a,maxWidthOrHeight:t}).then((function(t){return x(null),(0,Ke._c)(t).then((function(){e.replaceChildren(t)}))})).catch((function(e){console.error(e),x(e)}))}}),[n,r,k,a]),(0,M.jsxs)("div",{className:"ExportDialog",children:[(0,M.jsx)("div",{className:"ExportDialog__preview",ref:v,children:w&&(0,M.jsx)(Qe,{})}),Je&&s.renderAction("exportWithDarkMode"),(0,M.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr"},children:(0,M.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(190px, 1fr))",overflow:"hidden"},children:[s.renderAction("changeExportBackground"),d&&(0,M.jsx)(qe.o,{checked:h,onChange:function(e){return m(e)},children:(0,E.t)("labels.onlySelected")}),s.renderAction("changeExportEmbedScene")]})}),(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",marginTop:".6em"},children:[(0,M.jsx)(Oe.Z.Row,{gap:2,children:s.renderAction("changeExportScale")}),(0,M.jsx)("p",{style:{marginLeft:"1em",userSelect:"none"},children:(0,E.t)("buttons.scale")})]}),(0,M.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",margin:".6em 0"},children:!Xe.kr&&s.renderAction("changeProjectName")}),(0,M.jsxs)(Oe.Z.Row,{gap:2,justifyContent:"center",style:{margin:"2em 0"},children:[(0,M.jsx)(et,{color:"indigo",title:(0,E.t)("buttons.exportToPng"),"aria-label":(0,E.t)("buttons.exportToPng"),onClick:function(){return l(k)},children:"PNG"}),(0,M.jsx)(et,{color:"red",title:(0,E.t)("buttons.exportToSvg"),"aria-label":(0,E.t)("buttons.exportToSvg"),onClick:function(){return c(k)},children:"SVG"}),(Z.vt||T.vU)&&(0,M.jsx)(et,{title:(0,E.t)("buttons.copyPngToClipboard"),onClick:function(){return u(k)},color:"gray",shade:7,children:_.BR})]})]})},nt=function(e){var t=e.elements,n=e.appState,r=e.setAppState,o=e.files,i=e.exportPadding,a=void 0===i?T.qy:i,s=e.actionManager,l=e.onExportToPng,c=e.onExportToSvg,u=e.onExportToClipboard,d=v().useCallback((function(){r({openDialog:null})}),[r]);return(0,M.jsx)(M.Fragment,{children:"imageExport"===n.openDialog&&(0,M.jsx)(We.V,{onCloseRequest:d,title:(0,E.t)("buttons.exportImage"),children:(0,M.jsx)(tt,{elements:t,appState:n,files:o,exportPadding:a,actionManager:s,onExportToPng:l,onExportToSvg:c,onExportToClipboard:u,onCloseRequest:d})})})},rt=n(3195),ot={};ot.styleTagTransform=xe(),ot.setAttributes=ve(),ot.insert=me().bind(null,"head"),ot.domAPI=fe(),ot.insertStyleElement=ye(),de()(rt.Z,ot),rt.Z&&rt.Z.locals&&rt.Z.locals;var it=function(e){var t=e.children,n=e.side,r=e.className;return(0,M.jsx)("div",{className:(0,w.Z)("FixedSideContainer","FixedSideContainer_side_".concat(n),r),children:t})},at=n(1587),st={};st.styleTagTransform=xe(),st.setAttributes=ve(),st.insert=me().bind(null,"head"),st.domAPI=fe(),st.insertStyleElement=ye(),de()(at.Z,st),at.Z&&at.Z.locals&&at.Z.locals;var lt=function(e){var t=function(e){var t=e.appState,n=e.elements,r=e.isMobile,o=e.device,i=t.activeTool,a=t.isResizing,s=t.isRotating,l=t.lastPointerDownWith,c=null!==t.multiElement;if("library"===t.openSidebar&&!o.canDeviceFitSidebar)return null;if((0,F.EN)(t))return(0,E.t)("hints.eraserRevert");if("arrow"===i.type||"line"===i.type)return c?(0,E.t)("hints.linearElementMulti"):(0,E.t)("hints.linearElement");if("freedraw"===i.type)return(0,E.t)("hints.freeDraw");if("text"===i.type)return(0,E.t)("hints.text");if("image"===t.activeTool.type&&t.pendingImageElementId)return(0,E.t)("hints.placeImage");var u=(0,ie.eD)(n,t);if(a&&"mouse"===l&&1===u.length){var d=u[0];return(0,Y.bt)(d)&&2===d.points.length?(0,E.t)("hints.lockAngle"):(0,Y.pC)(d)?(0,E.t)("hints.resizeImage"):(0,E.t)("hints.resize")}if(s&&"mouse"===l)return(0,E.t)("hints.rotate");if(1===u.length&&(0,Y.iB)(u[0]))return(0,E.t)("hints.text_selected");if(t.editingElement&&(0,Y.iB)(t.editingElement))return(0,E.t)("hints.text_editing");if("selection"===i.type){var p;if("selection"===(null===(p=t.draggingElement)||void 0===p?void 0:p.type)&&!t.editingElement&&!t.editingLinearElement)return(0,E.t)("hints.deepBoxSelect");if(!u.length&&!r)return(0,E.t)("hints.canvasPanning")}if(1===u.length){if((0,Y.bt)(u[0]))return t.editingLinearElement?t.editingLinearElement.selectedPointsIndices?(0,E.t)("hints.lineEditor_pointSelected"):(0,E.t)("hints.lineEditor_nothingSelected"):(0,E.t)("hints.lineEditor_info");if((0,Y.mG)(u[0]))return(0,E.t)("hints.bindTextToElement")}return null}({appState:e.appState,elements:e.elements,isMobile:e.isMobile,device:e.device});return t?(t=(0,j.uY)(t),(0,M.jsx)("div",{className:"HintViewer",children:(0,M.jsx)("span",{children:t})})):null},ct=n(1881),ut=n(5440),dt=(n(5422),{CHECKED:_.FC,UNCHECKED:_._C}),pt=function(e){return(0,M.jsxs)("label",{className:(0,w.Z)("ToolIcon ToolIcon__lock","ToolIcon_size_".concat("medium"),{"is-mobile":e.isMobile}),title:"".concat(e.title," — Q"),children:[(0,M.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:e.name,onChange:e.onChange,checked:e.checked,"aria-label":e.title,"data-testid":"toolbar-lock"}),(0,M.jsx)("div",{className:"ToolIcon__icon",children:e.checked?dt.CHECKED:dt.UNCHECKED})]})},ft=["heading","children"];function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gt=function(e){var t=e.heading,n=e.children,r=(0,Ce.Z)(e,ft),o=yr().id,i=(0,M.jsx)("h2",{className:"visually-hidden",id:"".concat(o,"-").concat(t,"-title"),children:(0,E.t)("headings.".concat(t))});return(0,M.jsx)("section",mt(mt({},r),{},{"aria-labelledby":"".concat(o,"-").concat(t,"-title"),children:"function"==typeof n?n(i):(0,M.jsxs)(M.Fragment,{children:[i,n]})}))},vt=n(756),bt=n(2316),yt={};yt.styleTagTransform=xe(),yt.setAttributes=ve(),yt.insert=me().bind(null,"head"),yt.domAPI=fe(),yt.insertStyleElement=ye(),de()(bt.Z,yt),bt.Z&&bt.Z.locals&&bt.Z.locals;var wt=function(e){var t=e.appState,n=e.setAppState,r=e.isMobile,o=br(),i=!r;return t.isSidebarDocked&&"library"===t.openSidebar?null:(0,M.jsxs)("label",{title:"".concat((0,j.Oo)((0,E.t)("toolBar.library"))),children:[(0,M.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:"editor-library",onChange:function(e){var t;null===(t=document.querySelector(".layer-ui__wrapper"))||void 0===t||t.classList.remove("animate");var r=e.target.checked;n({openSidebar:r?"library":null}),r&&(0,L.L)("library","toggleLibrary (open)","toolbar (".concat(o.isMobile?"mobile":"desktop",")"))},checked:"library"===t.openSidebar,"aria-label":(0,j.Oo)((0,E.t)("toolBar.library")),"aria-keyshortcuts":"0"}),(0,M.jsxs)("div",{className:"library-button",children:[(0,M.jsx)("div",{children:_.Vq}),i&&(0,M.jsx)("div",{className:"library-button__label",children:(0,E.t)("toolBar.library")})]})]})},xt=function(e){return e.penDetected?(0,M.jsxs)("label",{className:(0,w.Z)("ToolIcon ToolIcon__penMode","ToolIcon_size_".concat("medium"),{"is-mobile":e.isMobile}),title:"".concat(e.title),children:[(0,M.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:e.name,onChange:e.onChange,checked:e.checked,"aria-label":e.title}),(0,M.jsx)("div",{className:"ToolIcon__icon",children:_.tb})]}):null},kt=n(8925),_t=n(2681),St={};St.styleTagTransform=xe(),St.setAttributes=ve(),St.insert=me().bind(null,"head"),St.domAPI=fe(),St.insertStyleElement=ye(),de()(_t.Z,St),_t.Z&&_t.Z.locals&&_t.Z.locals;var Et=function(e){var t,n=(0,kt.KP)(e.elements),r=(0,ie.Zs)(e.elements,e.appState),o=(0,kt.KP)(r);return(0,M.jsx)("div",{className:"Stats",children:(0,M.jsxs)(ct.W,{padding:2,children:[(0,M.jsx)("div",{className:"close",onClick:e.onClose,children:_.Tw}),(0,M.jsx)("h3",{children:(0,E.t)("stats.title")}),(0,M.jsx)("table",{children:(0,M.jsxs)("tbody",{children:[(0,M.jsx)("tr",{children:(0,M.jsx)("th",{colSpan:2,children:(0,E.t)("stats.scene")})}),(0,M.jsxs)("tr",{children:[(0,M.jsx)("td",{children:(0,E.t)("stats.elements")}),(0,M.jsx)("td",{children:e.elements.length})]}),(0,M.jsxs)("tr",{children:[(0,M.jsx)("td",{children:(0,E.t)("stats.width")}),(0,M.jsx)("td",{children:Math.round(n[2])-Math.round(n[0])})]}),(0,M.jsxs)("tr",{children:[(0,M.jsx)("td",{children:(0,E.t)("stats.height")}),(0,M.jsx)("td",{children:Math.round(n[3])-Math.round(n[1])})]}),1===r.length&&(0,M.jsx)("tr",{children:(0,M.jsx)("th",{colSpan:2,children:(0,E.t)("stats.element")})}),r.length>1&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("tr",{children:(0,M.jsx)("th",{colSpan:2,children:(0,E.t)("stats.selected")})}),(0,M.jsxs)("tr",{children:[(0,M.jsx)("td",{children:(0,E.t)("stats.elements")}),(0,M.jsx)("td",{children:r.length})]})]}),r.length>0&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)("tr",{children:[(0,M.jsx)("td",{children:"x"}),(0,M.jsx)("td",{children:Math.round(o[0])})]}),(0,M.jsxs)("tr",{children:[(0,M.jsx)("td",{children:"y"}),(0,M.jsx)("td",{children:Math.round(o[1])})]}),(0,M.jsxs)("tr",{children:[(0,M.jsx)("td",{children:(0,E.t)("stats.width")}),(0,M.jsx)("td",{children:Math.round(o[2]-o[0])})]}),(0,M.jsxs)("tr",{children:[(0,M.jsx)("td",{children:(0,E.t)("stats.height")}),(0,M.jsx)("td",{children:Math.round(o[3]-o[1])})]})]}),1===r.length&&(0,M.jsxs)("tr",{children:[(0,M.jsx)("td",{children:(0,E.t)("stats.angle")}),(0,M.jsx)("td",{children:"".concat(Math.round(180*r[0].angle/Math.PI),"°")})]}),null===(t=e.renderCustomStats)||void 0===t?void 0:t.call(e,e.elements,e.appState)]})})]})})},Pt=function(e){return(0,M.jsx)(S.V,{className:(0,w.Z)("Shape",{fillable:!1}),type:"radio",icon:_.Hk,name:"editor-current-shape",checked:e.checked,title:"".concat(e.title," — H"),keyBindingLabel:e.isMobile?void 0:P.tW.H.toLocaleUpperCase(),"aria-label":"".concat(e.title," — H"),"aria-keyshortcuts":P.tW.H,"data-testid":"toolbar-hand",onChange:function(){var t;return null===(t=e.onChange)||void 0===t?void 0:t.call(e)}})},Ct=n(8888);function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var jt=function(e){var t=e.appState,n=e.elements,r=e.actionManager,o=e.setAppState,i=e.onLockToggle,a=e.onHandToolToggle,s=e.onPenModeToggle,l=e.canvas,c=e.onImageAction,u=e.renderTopRightUI,d=e.renderCustomStats,p=e.renderSidebars,h=e.device,m=e.renderWelcomeScreen,g=(0,Ct.R6)(),v=g.welcomeScreenCenterTunnel,b=g.mainMenuTunnel;return(0,M.jsxs)(M.Fragment,{children:[p(),!t.viewModeEnabled&&(0,M.jsxs)(it,{side:"top",className:"App-top-bar",children:[m&&(0,M.jsx)(v.Out,{}),(0,M.jsx)(gt,{heading:"shapes",children:function(e){return(0,M.jsx)(Oe.Z.Col,{gap:4,align:"center",children:(0,M.jsxs)(Oe.Z.Row,{gap:1,className:"App-toolbar-container",children:[(0,M.jsxs)(ct.W,{padding:1,className:"App-toolbar App-toolbar--mobile",children:[e,(0,M.jsx)(Oe.Z.Row,{gap:1,children:(0,M.jsx)(ze,{appState:t,canvas:l,activeTool:t.activeTool,setAppState:o,onImageAction:function(e){var t=e.pointerType;c({insertOnCanvasDirectly:"mouse"!==t})}})})]}),u&&u(!0,t),(0,M.jsxs)("div",{className:"mobile-misc-tools-container",children:[!t.viewModeEnabled&&(0,M.jsx)(wt,{appState:t,setAppState:o,isMobile:!0}),(0,M.jsx)(xt,{checked:t.penMode,onChange:s,title:(0,E.t)("toolBar.penMode"),isMobile:!0,penDetected:t.penDetected}),(0,M.jsx)(pt,{checked:t.activeTool.locked,onChange:i,title:(0,E.t)("toolBar.lock"),isMobile:!0}),(0,M.jsx)(Pt,{checked:(0,F.l$)(t),onChange:function(){return a()},title:(0,E.t)("toolBar.hand"),isMobile:!0})]})]})})}}),(0,M.jsx)(lt,{appState:t,elements:n,isMobile:!0,device:h})]}),!t.openMenu&&t.showStats&&(0,M.jsx)(Et,{appState:t,setAppState:o,elements:n,onClose:function(){r.executeAction(k.u0)},renderCustomStats:d}),(0,M.jsx)("div",{className:"App-bottom-bar",style:{marginBottom:vt.nn+2*vt.WM,marginLeft:vt.nn+2*vt.WM,marginRight:vt.nn+2*vt.WM},children:(0,M.jsxs)(ct.W,{padding:0,children:["shape"===t.openMenu&&!t.viewModeEnabled&&(0,H.RT)(t,n)?(0,M.jsx)(gt,{className:"App-mobile-menu",heading:"selectedShapeActions",children:(0,M.jsx)(Re,{appState:t,elements:n,renderAction:r.renderAction})}):null,(0,M.jsxs)("footer",{className:"App-toolbar",children:[t.viewModeEnabled?(0,M.jsx)("div",{className:"App-toolbar-content",children:(0,M.jsx)(b.Out,{})}):(0,M.jsxs)("div",{className:"App-toolbar-content",children:[(0,M.jsx)(b.Out,{}),r.renderAction("toggleEditMenu"),r.renderAction("undo"),r.renderAction("redo"),r.renderAction(t.multiElement?"finalize":"duplicateSelection"),r.renderAction("deleteSelectedElements")]}),t.scrolledOutside&&!t.openMenu&&"library"!==t.openSidebar&&(0,M.jsx)("button",{className:"scroll-back-to-content",onClick:function(){o(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,ie.W)(n,t,l)))},children:(0,E.t)("buttons.scrollBackToContent")})]})]})})]})},Tt=n(5674),Mt=n(4162),It=n(8461),Dt={};Dt.styleTagTransform=xe(),Dt.setAttributes=ve(),Dt.insert=me().bind(null,"head"),Dt.domAPI=fe(),Dt.insertStyleElement=ye(),de()(It.Z,Dt),It.Z&&It.Z.locals&&It.Z.locals;var At=function(e){var t=(0,g.useRef)(null),n=(0,g.useState)(null),r=(0,o.Z)(n,2),i=r[0],s=r[1];return(0,g.useLayoutEffect)((function(){if(e.spreadsheet){var n,r=(0,Tt.ps)(e.chartType,e.spreadsheet,0,0);s(r);var o=t.current;return(0,a.Z)(m().mark((function t(){var i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Mt.$D)(r,{exportBackground:!1,viewBackgroundColor:Ge.white},null);case 2:n=t.sent,null===(i=n.querySelector(".style-fonts"))||void 0===i||i.remove(),o.replaceChildren(),o.appendChild(n),e.selected&&o.parentNode.focus();case 7:case"end":return t.stop()}}),t)})))(),function(){o.replaceChildren()}}}),[e.spreadsheet,e.chartType,e.selected]),(0,M.jsx)("button",{className:"ChartPreview",onClick:function(){i&&e.onClick(e.chartType,i)},children:(0,M.jsx)("div",{ref:t})})},Lt=function(e){var t=e.setAppState,n=e.appState,r=e.onClose,o=e.onInsertChart,i=v().useCallback((function(){r&&r()}),[r]),a=function(e,n){o(n),(0,L.L)("magic","chart",e),t({currentChartType:e,pasteDialog:{shown:!1,data:null}})};return(0,M.jsx)(We.V,{small:!0,onCloseRequest:i,title:(0,E.t)("labels.pasteCharts"),className:"PasteChartDialog",autofocus:!1,children:(0,M.jsxs)("div",{className:"container",children:[(0,M.jsx)(At,{chartType:"bar",spreadsheet:n.pasteDialog.data,selected:"bar"===n.currentChartType,onClick:a}),(0,M.jsx)(At,{chartType:"line",spreadsheet:n.pasteDialog.data,selected:"line"===n.currentChartType,onClick:a})]})})},Nt=n(2978),Rt={};function zt(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}Rt.styleTagTransform=xe(),Rt.setAttributes=ve(),Rt.insert=me().bind(null,"head"),Rt.domAPI=fe(),Rt.insertStyleElement=ye(),de()(Nt.Z,Rt),Nt.Z&&Nt.Z.locals&&Nt.Z.locals;var Ft=m().mark(Kt);function Zt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Bt(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)?Bt(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Bt(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}var Ut=function(){return(0,M.jsxs)("div",{className:"HelpDialog__header",children:[(0,M.jsxs)("a",{className:"HelpDialog__btn",href:"https://github.com/excalidraw/excalidraw#documentation",target:"_blank",rel:"noopener noreferrer",children:[(0,E.t)("helpDialog.documentation"),(0,M.jsx)("div",{className:"HelpDialog__link-icon",children:_.h0})]}),(0,M.jsxs)("a",{className:"HelpDialog__btn",href:"https://blog.excalidraw.com",target:"_blank",rel:"noopener noreferrer",children:[(0,E.t)("helpDialog.blog"),(0,M.jsx)("div",{className:"HelpDialog__link-icon",children:_.h0})]}),(0,M.jsxs)("a",{className:"HelpDialog__btn",href:"https://github.com/excalidraw/excalidraw/issues",target:"_blank",rel:"noopener noreferrer",children:[(0,E.t)("helpDialog.github"),(0,M.jsx)("div",{className:"HelpDialog__link-icon",children:_.h0})]})]})},Wt=function(e){return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("h3",{children:e.title}),(0,M.jsx)("div",{className:"HelpDialog__islands-container",children:e.children})]})},Ht=function(e){return(0,M.jsxs)("div",{className:"HelpDialog__island ".concat(e.className),children:[(0,M.jsx)("h4",{className:"HelpDialog__island-title",children:e.caption}),(0,M.jsx)("div",{className:"HelpDialog__island-content",children:e.children})]})};function Kt(e,t){var n,r,o,i;return m().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:n=!0,r=Zt(e),a.prev=2,r.s();case 4:if((o=r.n()).done){a.next=14;break}if(i=o.value,n){a.next=9;break}return a.next=9,t;case 9:return n=!1,a.next=12,i;case 12:a.next=4;break;case 14:a.next=19;break;case 16:a.prev=16,a.t0=a.catch(2),r.e(a.t0);case 19:return a.prev=19,r.f(),a.finish(19);case 22:case"end":return a.stop()}}),Ft,null,[[2,16,19,22]])}var Vt=function(e){var t=e.label,n=e.shortcuts,r=e.isOr,o=void 0===r||r,a=n.map((function(e){return(e.endsWith("++")?[].concat((0,i.Z)(e.slice(0,-2).split("+")),["+"]):e.split("+")).map((function(e){return(0,M.jsx)(Yt,{children:(t=e,t.replace(/\b[a-z]\b/,(function(e){return e.toUpperCase()})))},e);var t}))}));return(0,M.jsxs)("div",{className:"HelpDialog__shortcut",children:[(0,M.jsx)("div",{children:t}),(0,M.jsx)("div",{className:"HelpDialog__key-container",children:(0,i.Z)(Kt(a,o?(0,E.t)("helpDialog.or"):null))})]})},Yt=function(e){return(0,M.jsx)("kbd",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:"HelpDialog__key"},e))},Gt=function(e){var t=e.onClose,n=v().useCallback((function(){t&&t()}),[t]);return(0,M.jsx)(M.Fragment,{children:(0,M.jsxs)(We.V,{onCloseRequest:n,title:(0,E.t)("helpDialog.title"),className:"HelpDialog",children:[(0,M.jsx)(Ut,{}),(0,M.jsxs)(Wt,{title:(0,E.t)("helpDialog.shortcuts"),children:[(0,M.jsxs)(Ht,{className:"HelpDialog__island--tools",caption:(0,E.t)("helpDialog.tools"),children:[(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.hand"),shortcuts:[P.tW.H]}),(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.selection"),shortcuts:[P.tW.V,P.tW[1]]}),(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.rectangle"),shortcuts:[P.tW.R,P.tW[2]]}),(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.diamond"),shortcuts:[P.tW.D,P.tW[3]]}),(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.ellipse"),shortcuts:[P.tW.O,P.tW[4]]}),(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.arrow"),shortcuts:[P.tW.A,P.tW[5]]}),(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.line"),shortcuts:[P.tW.L,P.tW[6]]}),(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.freedraw"),shortcuts:[P.tW.P,P.tW[7]]}),(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.text"),shortcuts:[P.tW.T,P.tW[8]]}),(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.image"),shortcuts:[P.tW[9]]}),(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.eraser"),shortcuts:[P.tW.E,P.tW[0]]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.editLineArrowPoints"),shortcuts:[(0,j.uY)("CtrlOrCmd+Enter")]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.editText"),shortcuts:[(0,j.uY)("Enter")]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.textNewLine"),shortcuts:[(0,j.uY)("Enter"),(0,j.uY)("Shift+Enter")]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.textFinish"),shortcuts:[(0,j.uY)("Esc"),(0,j.uY)("CtrlOrCmd+Enter")]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.curvedArrow"),shortcuts:["A",(0,E.t)("helpDialog.click"),(0,E.t)("helpDialog.click"),(0,E.t)("helpDialog.click")],isOr:!1}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.curvedLine"),shortcuts:["L",(0,E.t)("helpDialog.click"),(0,E.t)("helpDialog.click"),(0,E.t)("helpDialog.click")],isOr:!1}),(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.lock"),shortcuts:[P.tW.Q]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.preventBinding"),shortcuts:[(0,j.uY)("CtrlOrCmd")]}),(0,M.jsx)(Vt,{label:(0,E.t)("toolBar.link"),shortcuts:[(0,j.uY)("CtrlOrCmd+K")]})]}),(0,M.jsxs)(Ht,{className:"HelpDialog__island--view",caption:(0,E.t)("helpDialog.view"),children:[(0,M.jsx)(Vt,{label:(0,E.t)("buttons.zoomIn"),shortcuts:[(0,j.uY)("CtrlOrCmd++")]}),(0,M.jsx)(Vt,{label:(0,E.t)("buttons.zoomOut"),shortcuts:[(0,j.uY)("CtrlOrCmd+-")]}),(0,M.jsx)(Vt,{label:(0,E.t)("buttons.resetZoom"),shortcuts:[(0,j.uY)("CtrlOrCmd+0")]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.zoomToFit"),shortcuts:["Shift+1"]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.zoomToSelection"),shortcuts:["Shift+2"]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.movePageUpDown"),shortcuts:["PgUp/PgDn"]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.movePageLeftRight"),shortcuts:["Shift+PgUp/PgDn"]}),(0,M.jsx)(Vt,{label:(0,E.t)("buttons.fullScreen"),shortcuts:["F"]}),(0,M.jsx)(Vt,{label:(0,E.t)("buttons.zenMode"),shortcuts:[(0,j.uY)("Alt+Z")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.showGrid"),shortcuts:[(0,j.uY)("CtrlOrCmd+'")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.viewMode"),shortcuts:[(0,j.uY)("Alt+R")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.toggleTheme"),shortcuts:[(0,j.uY)("Alt+Shift+D")]}),(0,M.jsx)(Vt,{label:(0,E.t)("stats.title"),shortcuts:[(0,j.uY)("Alt+/")]})]}),(0,M.jsxs)(Ht,{className:"HelpDialog__island--editor",caption:(0,E.t)("helpDialog.editor"),children:[(0,M.jsx)(Vt,{label:(0,E.t)("labels.moveCanvas"),shortcuts:[(0,j.uY)("Space+".concat((0,E.t)("helpDialog.drag"))),(0,j.uY)("Wheel+".concat((0,E.t)("helpDialog.drag")))],isOr:!0}),(0,M.jsx)(Vt,{label:(0,E.t)("buttons.clearReset"),shortcuts:[(0,j.uY)("CtrlOrCmd+Delete")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.delete"),shortcuts:[(0,j.uY)("Delete")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.cut"),shortcuts:[(0,j.uY)("CtrlOrCmd+X")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.copy"),shortcuts:[(0,j.uY)("CtrlOrCmd+C")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.paste"),shortcuts:[(0,j.uY)("CtrlOrCmd+V")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.pasteAsPlaintext"),shortcuts:[(0,j.uY)("CtrlOrCmd+Shift+V")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.selectAll"),shortcuts:[(0,j.uY)("CtrlOrCmd+A")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.multiSelect"),shortcuts:[(0,j.uY)("Shift+".concat((0,E.t)("helpDialog.click")))]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.deepSelect"),shortcuts:[(0,j.uY)("CtrlOrCmd+".concat((0,E.t)("helpDialog.click")))]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.deepBoxSelect"),shortcuts:[(0,j.uY)("CtrlOrCmd+".concat((0,E.t)("helpDialog.drag")))]}),(Z.vt||T.vU)&&(0,M.jsx)(Vt,{label:(0,E.t)("labels.copyAsPng"),shortcuts:[(0,j.uY)("Shift+Alt+C")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.copyStyles"),shortcuts:[(0,j.uY)("CtrlOrCmd+Alt+C")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.pasteStyles"),shortcuts:[(0,j.uY)("CtrlOrCmd+Alt+V")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.sendToBack"),shortcuts:[T.Um?(0,j.uY)("CtrlOrCmd+Alt+["):(0,j.uY)("CtrlOrCmd+Shift+[")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.bringToFront"),shortcuts:[T.Um?(0,j.uY)("CtrlOrCmd+Alt+]"):(0,j.uY)("CtrlOrCmd+Shift+]")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.sendBackward"),shortcuts:[(0,j.uY)("CtrlOrCmd+[")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.bringForward"),shortcuts:[(0,j.uY)("CtrlOrCmd+]")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.alignTop"),shortcuts:[(0,j.uY)("CtrlOrCmd+Shift+Up")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.alignBottom"),shortcuts:[(0,j.uY)("CtrlOrCmd+Shift+Down")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.alignLeft"),shortcuts:[(0,j.uY)("CtrlOrCmd+Shift+Left")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.alignRight"),shortcuts:[(0,j.uY)("CtrlOrCmd+Shift+Right")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.duplicateSelection"),shortcuts:[(0,j.uY)("CtrlOrCmd+D"),(0,j.uY)("Alt+".concat((0,E.t)("helpDialog.drag")))]}),(0,M.jsx)(Vt,{label:(0,E.t)("helpDialog.toggleElementLock"),shortcuts:[(0,j.uY)("CtrlOrCmd+Shift+L")]}),(0,M.jsx)(Vt,{label:(0,E.t)("buttons.undo"),shortcuts:[(0,j.uY)("CtrlOrCmd+Z")]}),(0,M.jsx)(Vt,{label:(0,E.t)("buttons.redo"),shortcuts:T.ED?[(0,j.uY)("CtrlOrCmd+Y"),(0,j.uY)("CtrlOrCmd+Shift+Z")]:[(0,j.uY)("CtrlOrCmd+Shift+Z")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.group"),shortcuts:[(0,j.uY)("CtrlOrCmd+G")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.ungroup"),shortcuts:[(0,j.uY)("CtrlOrCmd+Shift+G")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.flipHorizontal"),shortcuts:[(0,j.uY)("Shift+H")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.flipVertical"),shortcuts:[(0,j.uY)("Shift+V")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.showStroke"),shortcuts:[(0,j.uY)("S")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.showBackground"),shortcuts:[(0,j.uY)("G")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.decreaseFontSize"),shortcuts:[(0,j.uY)("CtrlOrCmd+Shift+<")]}),(0,M.jsx)(Vt,{label:(0,E.t)("labels.increaseFontSize"),shortcuts:[(0,j.uY)("CtrlOrCmd+Shift+>")]})]})]})]})})},qt=n(6773),Xt=n(8671),$t=n(4241),Jt={};Jt.styleTagTransform=xe(),Jt.setAttributes=ve(),Jt.insert=me().bind(null,"head"),Jt.domAPI=fe(),Jt.insertStyleElement=ye(),de()($t.Z,Jt),$t.Z&&$t.Z.locals&&$t.Z.locals;var Qt=function(e){var t,n=e.children,r=e.color;return(0,M.jsx)("div",{className:"Card",style:(t={},(0,f.Z)(t,"--card-color","primary"===r?"var(--color-primary)":Ge[r][7]),(0,f.Z)(t,"--card-color-darker","primary"===r?"var(--color-primary-darker)":Ge[r][8]),(0,f.Z)(t,"--card-color-darkest","primary"===r?"var(--color-primary-darkest)":Ge[r][9]),t),children:n})},en=function(e){var t=e.elements,n=e.appState,r=e.files,o=e.actionManager,i=e.exportOpts,a=e.canvas,s=i.onExportToBackend;return(0,M.jsx)("div",{className:"ExportDialog ExportDialog--json",children:(0,M.jsxs)("div",{className:"ExportDialog-cards",children:[i.saveFileToDisk&&(0,M.jsxs)(Qt,{color:"lime",children:[(0,M.jsx)("div",{className:"Card-icon",children:_.TP}),(0,M.jsx)("h2",{children:(0,E.t)("exportDialog.disk_title")}),(0,M.jsxs)("div",{className:"Card-details",children:[(0,E.t)("exportDialog.disk_details"),!Xe.kr&&o.renderAction("changeProjectName")]}),(0,M.jsx)(S.V,{className:"Card-button",type:"button",title:(0,E.t)("exportDialog.disk_button"),"aria-label":(0,E.t)("exportDialog.disk_button"),showAriaLabel:!0,onClick:function(){o.executeAction(Xt.mM,"ui")}})]}),s&&(0,M.jsxs)(Qt,{color:"pink",children:[(0,M.jsx)("div",{className:"Card-icon",children:_.xP}),(0,M.jsx)("h2",{children:(0,E.t)("exportDialog.link_title")}),(0,M.jsx)("div",{className:"Card-details",children:(0,E.t)("exportDialog.link_details")}),(0,M.jsx)(S.V,{className:"Card-button",type:"button",title:(0,E.t)("exportDialog.link_button"),"aria-label":(0,E.t)("exportDialog.link_button"),showAriaLabel:!0,onClick:function(){s(t,n,r,a),(0,L.L)("export","link","ui (".concat((0,j.$h)(),")"))}})]}),i.renderCustomUI&&i.renderCustomUI(t,n,r,a)]})})},tn=function(e){var t=e.elements,n=e.appState,r=e.files,o=e.actionManager,i=e.exportOpts,a=e.canvas,s=e.setAppState,l=v().useCallback((function(){s({openDialog:null})}),[s]);return(0,M.jsx)(M.Fragment,{children:"jsonExport"===n.openDialog&&(0,M.jsx)(We.V,{onCloseRequest:l,title:(0,E.t)("buttons.export"),children:(0,M.jsx)(en,{elements:t,appState:n,files:r,actionManager:o,onCloseRequest:l,exportOpts:i,canvas:a})})})},nn=n(6954),rn=n(8923),on={};on.styleTagTransform=xe(),on.setAttributes=ve(),on.insert=me().bind(null,"head"),on.domAPI=fe(),on.insertStyleElement=ye(),de()(rn.Z,on),rn.Z&&rn.Z.locals&&rn.Z.locals;var an=n(5523),sn=n(2701),ln={};ln.styleTagTransform=xe(),ln.setAttributes=ve(),ln.insert=me().bind(null,"head"),ln.domAPI=fe(),ln.insertStyleElement=ye(),de()(sn.Z,ln),sn.Z&&sn.Z.locals&&sn.Z.locals;var cn=function(e){var t=e.id,n=e.elements,r=e.isPending,i=e.onClick,s=e.selected,l=e.onToggle,c=e.onDrag,u=(0,g.useRef)(null);(0,g.useEffect)((function(){var e=u.current;if(e)return(0,a.Z)(m().mark((function t(){var r,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,(0,$e.$D)({elements:n,appState:{exportBackground:!1,viewBackgroundColor:Ge.white},files:null});case 4:o=t.sent,null===(r=o.querySelector(".style-fonts"))||void 0===r||r.remove(),e.innerHTML=o.outerHTML;case 7:case"end":return t.stop()}}),t)})))(),function(){e.innerHTML=""}}),[n]);var d=(0,g.useState)(!1),p=(0,o.Z)(d,2),f=p[0],h=p[1],v=br().isMobile,b=r&&(0,M.jsx)("div",{className:"library-unit__adder",children:_.pO});return(0,M.jsxs)("div",{className:(0,w.Z)("library-unit",{"library-unit__active":n,"library-unit--hover":n&&f,"library-unit--selected":s}),onMouseEnter:function(){return h(!0)},onMouseLeave:function(){return h(!1)},children:[(0,M.jsx)("div",{className:(0,w.Z)("library-unit__dragger",{"library-unit__pulse":!!r}),ref:u,draggable:!!n,onClick:n||r?function(e){t&&e.shiftKey?l(t,e):i()}:void 0,onDragStart:function(e){t?(h(!1),c(t,e)):e.preventDefault()}}),b,t&&n&&(f||v||s)&&(0,M.jsx)(qe.o,{checked:s,onChange:function(e,n){return l(t,n)},className:"library-unit__checkbox"})]})},un=n(6440),dn={};dn.styleTagTransform=xe(),dn.setAttributes=ve(),dn.insert=me().bind(null,"head"),dn.domAPI=fe(),dn.insertStyleElement=ye(),de()(un.Z,dn),un.Z&&un.Z.locals&&un.Z.locals;var pn=n(5644),fn=function(e){var t=e.theme,n=e.id,r=e.libraryReturnUrl||window.location.origin+window.location.pathname;return(0,M.jsx)("a",{className:"library-menu-browse-button",href:"".concat("https://libraries.excalidraw.com","?target=").concat(window.name||"_blank","&referrer=").concat(r,"&useHash=true&token=").concat(n,"&theme=").concat(t,"&version=").concat(T.Kr.excalidrawLibrary),target:"_excalidraw_libraries",children:(0,E.t)("labels.libraries")})};function hn(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 mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gn=function(e){var t=e.isLoading,n=e.libraryItems,r=e.onAddToLibrary,a=e.onInsertLibraryItems,s=e.pendingElements,l=e.selectedItems,c=e.onSelectItems,u=e.theme,d=e.id,p=e.libraryReturnUrl,f=(0,g.useState)(null),h=(0,o.Z)(f,2),m=h[0],v=h[1],b=function(e,t){var n=!l.includes(e),r=[].concat((0,i.Z)(_),(0,i.Z)(S));if(n){if(t.shiftKey&&m){var o=r.findIndex((function(e){return e.id===m})),a=r.findIndex((function(t){return t.id===e}));if(-1===o||-1===a)return void c([].concat((0,i.Z)(l),[e]));var s=(0,j.xn)(l),u=r.reduce((function(e,t,n){return(n>=o&&n<=a||s.has(t.id))&&e.push(t.id),e}),[]);c(u)}else c([].concat((0,i.Z)(l),[e]));v(e)}else v(null),c(l.filter((function(t){return t!==e})))},y=function(e){return(l.includes(e)?n.filter((function(e){return l.includes(e.id)})):n.filter((function(t){return t.id===e}))).map((function(e){return mn(mn({},e),{},{elements:(0,V._N)(e.elements)})}))},x=function(e){var t,n,r,o,i;return(0,M.jsx)(Oe.Z.Col,{children:(0,M.jsx)(cn,{elements:null===(t=e.item)||void 0===t?void 0:t.elements,isPending:!(null!==(n=e.item)&&void 0!==n&&n.id||null===(r=e.item)||void 0===r||!r.elements),onClick:e.onClick||function(){},id:(null===(o=e.item)||void 0===o?void 0:o.id)||null,selected:!(null===(i=e.item)||void 0===i||!i.id)&&l.includes(e.item.id),onToggle:b,onDrag:function(e,t){t.dataTransfer.setData(T.LO.excalidrawlib,(0,an.NI)(y(e)))}})},e.key)},k=function(e){var t=e.map((function(e){return e.id?x({item:e,onClick:function(){return a(y(e.id))},key:e.id}):x({key:"__pending__item__",item:e,onClick:function(){return r(s)}})})),n=(0,j.yo)(t,4);return n.length||(n=[[]]),n.map((function(e,t,n){return t===n.length-1&&(e=e.concat(new Array(4-e.length).fill(null).map((function(e,t){return x({key:"empty_".concat(t),item:null})})))),(0,M.jsx)(Oe.Z.Row,{align:"center",className:"library-menu-items-container__row",children:e},t)}))},_=n.filter((function(e){return"published"!==e.status})),S=n.filter((function(e){return"published"===e.status})),P=!(n.length||_.length||S.length||s.length);return(0,M.jsx)("div",{className:"library-menu-items-container",style:s.length||_.length||S.length?{justifyContent:"flex-start"}:{},children:(0,M.jsxs)(Oe.Z.Col,{className:"library-menu-items-container__items",align:"start",gap:1,style:{flex:S.length>0?1:"0 1 auto",marginBottom:0},children:[(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)("div",{children:[(s.length>0||_.length>0||S.length>0)&&(0,M.jsx)("div",{className:"library-menu-items-container__header",children:(0,E.t)("labels.personalLib")}),t&&(0,M.jsx)("div",{style:{position:"absolute",top:"var(--container-padding-y)",right:"var(--container-padding-x)",transform:"translateY(50%)"},children:(0,M.jsx)(pn.Z,{})})]}),s.length||_.length?k([].concat((0,i.Z)(s.length?[{id:null,elements:s}]:[]),(0,i.Z)(_))):(0,M.jsxs)("div",{className:"library-menu-items__no-items",children:[(0,M.jsx)("div",{className:(0,w.Z)({"library-menu-items__no-items__label":P}),children:(0,E.t)("library.noItems")}),(0,M.jsx)("div",{className:"library-menu-items__no-items__hint",children:S.length>0?(0,E.t)("library.hint_emptyPrivateLibrary"):(0,E.t)("library.hint_emptyLibrary")})]})]}),(0,M.jsxs)(M.Fragment,{children:[(S.length>0||s.length>0||_.length>0)&&(0,M.jsx)("div",{className:"library-menu-items-container__header library-menu-items-container__header--excal",children:(0,E.t)("labels.excalidrawLib")}),S.length>0?k(S):_.length>0?(0,M.jsx)("div",{style:{margin:"1rem 0",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",fontSize:".9rem"},children:(0,E.t)("library.noItems")}):null]}),P&&(0,M.jsx)(fn,{id:d,libraryReturnUrl:p,theme:u})]})})},vn=n(4739),bn=n(9487),yn=n(9430),wn=n(9206),xn=(0,g.forwardRef)((function(e,t){var n=e.children;return(0,M.jsx)("div",{ref:t,className:"layer-ui__library",children:n})})),kn=function(e){var t=e.onInsertLibraryItems,n=e.pendingElements,r=e.onAddToLibrary,s=e.setAppState,l=e.libraryReturnUrl,c=e.library,u=e.id,d=e.appState,p=e.selectedItems,f=e.onSelectItems,h=(0,vn.KO)(U.rF,bn.yE),v=(0,o.Z)(h,1)[0],b=(0,g.useCallback)(function(){var e=(0,a.Z)(m().mark((function e(t,n){var o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,L.L)("element","addToLibrary","ui"),!t.some((function(e){return"image"===e.type}))){e.next=3;break}return e.abrupt("return",s({errorMessage:"Support for adding images to the library coming soon!"}));case 3:o=[{status:"unpublished",elements:t,id:(0,nn.kb)(),created:Date.now()}].concat((0,i.Z)(n)),r(),c.setLibrary(o).catch((function(){s({errorMessage:(0,E.t)("alerts.errorAddingToLibrary")})}));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[r,c,s]);if("loading"===v.status&&!v.isInitialized)return(0,M.jsx)(xn,{children:(0,M.jsx)("div",{className:"layer-ui__library-message",children:(0,M.jsxs)("div",{children:[(0,M.jsx)(pn.Z,{size:"2em"}),(0,M.jsx)("span",{children:(0,E.t)("labels.libraryLoadingMessage")})]})})});var y=v.libraryItems.length>0||n.length>0;return(0,M.jsxs)(xn,{children:[(0,M.jsx)(gn,{isLoading:"loading"===v.status,libraryItems:v.libraryItems,onAddToLibrary:function(e){return b(e,v.libraryItems)},onInsertLibraryItems:t,pendingElements:n,selectedItems:p,onSelectItems:f,id:u,libraryReturnUrl:l,theme:d.theme}),y&&(0,M.jsx)(fn,{id:u,libraryReturnUrl:l,theme:d.theme})]})},_n=function(e){var t=e.appState,n=e.onInsertElements,r=e.libraryReturnUrl,i=e.focusContainer,s=e.library,l=e.id,c=kr(),u=wr(),d=br(),p=(0,g.useState)([]),f=(0,o.Z)(p,2),h=f[0],v=f[1],b=(0,vn.KO)(U.rF,bn.yE),y=(0,o.Z)(b,1)[0],w=(0,g.useRef)(null),x=(0,g.useCallback)((function(){document.querySelector(".Dialog")||c({openSidebar:null})}),[c]);!function(e,t){(0,g.useEffect)((function(){var n=function(n){e.current&&(n.target instanceof Element&&(e.current.contains(n.target)||!document.body.contains(n.target))||t(n))};return document.addEventListener("pointerdown",n,!1),function(){document.removeEventListener("pointerdown",n)}}),[e,t])}(w,(0,g.useCallback)((function(e){e.target.closest(".ToolIcon__library")||t.isSidebarDocked&&d.canDeviceFitSidebar||x()}),[x,t.isSidebarDocked,d.canDeviceFitSidebar])),(0,g.useEffect)((function(){var e=function(e){e.key!==P.tW.ESCAPE||t.isSidebarDocked&&d.canDeviceFitSidebar||x()};return document.addEventListener(T.Ks.KEYDOWN,e),function(){document.removeEventListener(T.Ks.KEYDOWN,e)}}),[x,t.isSidebarDocked,d.canDeviceFitSidebar]);var k=(0,g.useCallback)((function(){c({selectedElementIds:{},selectedGroupIds:{}})}),[c]),_=(0,g.useCallback)(function(){var e=(0,a.Z)(m().mark((function e(t){var n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.filter((function(e){return!h.includes(e.id)})),s.setLibrary(n).catch((function(){c({errorMessage:(0,E.t)("alerts.errorRemovingFromLibrary")})})),v([]);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[s,c,h,v]),S=(0,g.useCallback)((function(){s.resetLibrary(),i()}),[s,i]);return(0,M.jsxs)(yn.Y,{__isInternal:!0,className:"layer-ui__library-sidebar",initialDockedState:t.isSidebarDocked,onDock:function(e){(0,L.L)("library","toggleLibraryDock (".concat(e?"dock":"undock",")"),"sidebar (".concat(d.isMobile?"mobile":"desktop",")"))},ref:w,children:[(0,M.jsx)(yn.Y.Header,{className:"layer-ui__library-header",children:(0,M.jsx)(wn.W,{appState:t,setAppState:c,selectedItems:h,onSelectItems:v,library:s,onRemoveFromLibrary:function(){return _(y.libraryItems)},resetLibrary:S})}),(0,M.jsx)(kn,{pendingElements:(0,ie.eD)(u,t,!0),onInsertLibraryItems:function(e){n((0,U.WV)(e))},onAddToLibrary:k,setAppState:c,libraryReturnUrl:r,library:s,id:l,appState:t,selectedItems:h,onSelectItems:v})]},"library")},Sn=n(1434),En={};En.styleTagTransform=xe(),En.setAttributes=ve(),En.insert=me().bind(null,"head"),En.domAPI=fe(),En.insertStyleElement=ye(),de()(Sn.Z,En),Sn.Z&&Sn.Z.locals&&Sn.Z.locals;var Pn=n(9144),Cn={};Cn.styleTagTransform=xe(),Cn.setAttributes=ve(),Cn.insert=me().bind(null,"head"),Cn.domAPI=fe(),Cn.insertStyleElement=ye(),de()(Pn.Z,Cn),Pn.Z&&Pn.Z.locals&&Pn.Z.locals;var On=n(4958),jn=function(e){return(0,M.jsx)("button",{className:"help-icon",onClick:e.onClick,type:"button",title:"".concat((0,E.t)("helpDialog.title")," — ?"),"aria-label":(0,E.t)("helpDialog.title"),children:_.by})},Tn=function(e){var t=e.appState,n=e.actionManager,r=e.showExitZenModeBtn,o=e.renderWelcomeScreen,i=(0,Ct.R6)(),a=i.footerCenterTunnel,s=i.welcomeScreenHelpHintTunnel,l=br(),c=!t.viewModeEnabled&&t.multiElement&&l.isTouchScreen;return(0,M.jsxs)("footer",{role:"contentinfo",className:"layer-ui__wrapper__footer App-menu App-menu_bottom",children:[(0,M.jsx)("div",{className:(0,w.Z)("layer-ui__wrapper__footer-left zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-left":t.zenModeEnabled}),children:(0,M.jsx)(Oe.Z.Col,{gap:2,children:(0,M.jsxs)(gt,{heading:"canvasActions",children:[(0,M.jsx)(Fe,{renderAction:n.renderAction,zoom:t.zoom}),!t.viewModeEnabled&&(0,M.jsx)(Ze,{renderAction:n.renderAction,className:(0,w.Z)("zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":t.zenModeEnabled})}),c&&(0,M.jsx)(Ue,{renderAction:n.renderAction,className:(0,w.Z)("zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-left":t.zenModeEnabled})})]})})}),(0,M.jsx)(a.Out,{}),(0,M.jsx)("div",{className:(0,w.Z)("layer-ui__wrapper__footer-right zen-mode-transition",{"transition-right disable-pointerEvents":t.zenModeEnabled}),children:(0,M.jsxs)("div",{style:{position:"relative"},children:[o&&(0,M.jsx)(s.Out,{}),(0,M.jsx)(jn,{onClick:function(){return n.executeAction(k.jY)}})]})}),(0,M.jsx)(Be,{actionManager:n,showExitZenModeBtn:r})]})},Mn=Tn;Tn.displayName="Footer";var In=n(4709),Dn=n(6798),An=["suggestedBindings","startBoundElement","cursorButton"],Ln=["canvas","onInsertElements","appState"],Nn=["canvas","onInsertElements","appState"];function Rn(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}var zn=function(e){var t=e.UIOptions;return(0,M.jsxs)(In.Z,{__fallback:!0,children:[(0,M.jsx)(In.Z.DefaultItems.LoadScene,{}),(0,M.jsx)(In.Z.DefaultItems.SaveToActiveFile,{}),t.canvasActions.export&&(0,M.jsx)(In.Z.DefaultItems.Export,{}),t.canvasActions.saveAsImage&&(0,M.jsx)(In.Z.DefaultItems.SaveAsImage,{}),(0,M.jsx)(In.Z.DefaultItems.Help,{}),(0,M.jsx)(In.Z.DefaultItems.ClearCanvas,{}),(0,M.jsx)(In.Z.Separator,{}),(0,M.jsx)(In.Z.Group,{title:"Excalidraw links",children:(0,M.jsx)(In.Z.DefaultItems.Socials,{})}),(0,M.jsx)(In.Z.Separator,{}),(0,M.jsx)(In.Z.DefaultItems.ToggleTheme,{}),(0,M.jsx)(In.Z.DefaultItems.ChangeCanvasBackground,{})]})},Fn=function(e){return e.suggestedBindings,e.startBoundElement,e.cursorButton,(0,Ce.Z)(e,An)},Zn=v().memo((function(e){var t,n=e.actionManager,r=e.appState,i=e.files,s=e.setAppState,l=e.elements,c=e.canvas,u=e.onLockToggle,d=e.onHandToolToggle,p=e.onPenModeToggle,h=e.onInsertElements,g=e.showExitZenModeBtn,v=e.renderTopRightUI,b=e.renderCustomStats,y=e.renderCustomSidebar,x=e.libraryReturnUrl,k=e.UIOptions,_=e.focusContainer,S=e.library,P=e.id,C=e.onImageAction,O=e.renderWelcomeScreen,I=e.children,D=br(),A=(0,Ct.ZC)(),N=function(){return k.canvasActions.export?(0,M.jsx)(tn,{elements:l,appState:r,files:i,actionManager:n,exportOpts:k.canvasActions.export,canvas:c,setAppState:s}):null},R=function(){if(!k.canvasActions.saveAsImage)return null;var e=function(e){return function(){var t=(0,a.Z)(m().mark((function t(n){var o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,L.L)("export",e,"ui"),t.next=3,(0,B.p1)(e,n,r,i,{exportBackground:r.exportBackground,name:r.name,viewBackgroundColor:r.viewBackgroundColor}).catch(j.FG).catch((function(e){console.error(e),s({errorMessage:e.message})}));case 3:o=t.sent,r.exportEmbedScene&&o&&(0,Ke.g8)(o)&&s({fileHandle:o});case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()};return(0,M.jsx)(nt,{elements:l,appState:r,setAppState:s,files:i,actionManager:n,onExportToPng:e("png"),onExportToSvg:e("svg"),onExportToClipboard:e("clipboard")})},z=function(){return"customSidebar"===r.openSidebar?(null==y?void 0:y())||null:"library"===r.openSidebar?(0,M.jsx)(_n,{appState:r,onInsertElements:h,libraryReturnUrl:x,focusContainer:_,library:S,id:P}):null},Z=(0,vn.KO)(yn.b,bn.yE),U=(0,o.Z)(Z,1)[0],W=(0,M.jsxs)(M.Fragment,{children:[I,(0,M.jsx)(zn,{UIOptions:k}),r.isLoading&&(0,M.jsx)(ut.z,{delay:250}),r.errorMessage&&(0,M.jsx)(He,{onClose:function(){return s({errorMessage:null})},children:r.errorMessage}),"help"===r.openDialog&&(0,M.jsx)(Gt,{onClose:function(){s({openDialog:null})}}),(0,M.jsx)(Dn.o,{}),R(),N(),r.pasteDialog.shown&&(0,M.jsx)(Lt,{setAppState:s,appState:r,onInsertChart:h,onClose:function(){return s({pasteDialog:{shown:!1,data:null}})}}),D.isMobile&&(0,M.jsx)(jt,{appState:r,elements:l,actionManager:n,renderJSONExportDialog:N,renderImageExportDialog:R,setAppState:s,onLockToggle:u,onHandToolToggle:d,onPenModeToggle:p,canvas:c,onImageAction:C,renderTopRightUI:v,renderCustomStats:b,renderSidebars:z,device:D,renderWelcomeScreen:O}),!D.isMobile&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)("div",{className:(0,w.Z)("layer-ui__wrapper",{"disable-pointerEvents":r.draggingElement||r.resizingElement||r.editingElement&&!(0,H.iB)(r.editingElement)}),style:("library"===r.openSidebar&&r.isSidebarDocked||U.docked)&&D.canDeviceFitSidebar?{width:"calc(100% - ".concat(T.EE,"px)")}:{},children:[O&&(0,M.jsx)(A.welcomeScreenCenterTunnel.Out,{}),(t=(0,H.RT)(r,l),(0,M.jsx)(it,{side:"top",children:(0,M.jsxs)("div",{className:"App-menu App-menu_top",children:[(0,M.jsxs)(Oe.Z.Col,{gap:6,className:(0,w.Z)("App-menu_top__left",{"disable-pointerEvents":r.zenModeEnabled}),children:[(0,M.jsxs)("div",{style:{position:"relative"},children:[(0,M.jsx)(A.mainMenuTunnel.Out,{}),O&&(0,M.jsx)(A.welcomeScreenMenuHintTunnel.Out,{})]}),t&&(0,M.jsx)(gt,{heading:"selectedShapeActions",className:(0,w.Z)("selected-shape-actions zen-mode-transition",{"transition-left":r.zenModeEnabled}),children:(0,M.jsx)(ct.W,{className:T.$C.SHAPE_ACTIONS_MENU,padding:2,style:{maxHeight:"".concat(r.height-166,"px")},children:(0,M.jsx)(Re,{appState:r,elements:l,renderAction:n.renderAction})})})]}),!r.viewModeEnabled&&(0,M.jsx)(gt,{heading:"shapes",className:"shapes-section",children:function(e){return(0,M.jsxs)("div",{style:{position:"relative"},children:[O&&(0,M.jsx)(A.welcomeScreenToolbarHintTunnel.Out,{}),(0,M.jsx)(Oe.Z.Col,{gap:4,align:"start",children:(0,M.jsx)(Oe.Z.Row,{gap:1,className:(0,w.Z)("App-toolbar-container",{"zen-mode":r.zenModeEnabled}),children:(0,M.jsxs)(ct.W,{padding:1,className:(0,w.Z)("App-toolbar",{"zen-mode":r.zenModeEnabled}),children:[(0,M.jsx)(lt,{appState:r,elements:l,isMobile:D.isMobile,device:D}),e,(0,M.jsxs)(Oe.Z.Row,{gap:1,children:[(0,M.jsx)(xt,{zenModeEnabled:r.zenModeEnabled,checked:r.penMode,onChange:p,title:(0,E.t)("toolBar.penMode"),penDetected:r.penDetected}),(0,M.jsx)(pt,{checked:r.activeTool.locked,onChange:u,title:(0,E.t)("toolBar.lock")}),(0,M.jsx)("div",{className:"App-toolbar__divider"}),(0,M.jsx)(Pt,{checked:(0,F.l$)(r),onChange:function(){return d()},title:(0,E.t)("toolBar.hand"),isMobile:!0}),(0,M.jsx)(ze,{appState:r,canvas:c,activeTool:r.activeTool,setAppState:s,onImageAction:function(e){var t=e.pointerType;C({insertOnCanvasDirectly:"mouse"!==t})}})]})]})})})]})}}),(0,M.jsxs)("div",{className:(0,w.Z)("layer-ui__wrapper__top-right zen-mode-transition",{"transition-right":r.zenModeEnabled}),children:[(0,M.jsx)(qt.Z,{collaborators:r.collaborators}),null==v?void 0:v(D.isMobile,r),!r.viewModeEnabled&&(0,M.jsx)(wt,{appState:r,setAppState:s})]})]})})),(0,M.jsx)(Mn,{appState:r,actionManager:n,showExitZenModeBtn:g,renderWelcomeScreen:O}),r.showStats&&(0,M.jsx)(Et,{appState:r,setAppState:s,elements:l,onClose:function(){n.executeAction(On.u)},renderCustomStats:b}),r.scrolledOutside&&(0,M.jsx)("button",{className:"scroll-back-to-content",onClick:function(){s(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,ie.W)(l,r,c)))},children:(0,E.t)("buttons.scrollBackToContent")})]}),z()]})]});return(0,M.jsx)(vn.zt,{scope:A.jotaiScope,children:(0,M.jsx)(Ct.A3.Provider,{value:A,children:W})})}),(function(e,t){if(e.children!==t.children)return!1;e.canvas,e.onInsertElements;var n=e.appState,r=(0,Ce.Z)(e,Ln),o=(t.canvas,t.onInsertElements,t.appState),i=(0,Ce.Z)(t,Nn);return(0,j.w8)(Fn(n),Fn(o))&&(0,j.w8)(r,i)})),Bn=n(9650),Un={};Un.styleTagTransform=xe(),Un.setAttributes=ve(),Un.insert=me().bind(null,"head"),Un.domAPI=fe(),Un.insertStyleElement=ye(),de()(Bn.Z,Un),Bn.Z&&Bn.Z.locals&&Bn.Z.locals;var Wn=function(e){var t=e.message,n=e.onClose,r=e.closable,o=void 0!==r&&r,i=e.duration,a=void 0===i?5e3:i,s=(0,g.useRef)(0),l=a!==1/0,c=(0,g.useCallback)((function(){l&&(s.current=window.setTimeout((function(){return n()}),a))}),[n,a,l]);(0,g.useEffect)((function(){if(l)return c(),function(){return clearTimeout(s.current)}}),[c,t,a,l]);var u=l?function(){return clearTimeout(null==s?void 0:s.current)}:void 0,d=l?c:void 0;return(0,M.jsxs)("div",{className:"Toast",onMouseEnter:u,onMouseLeave:d,children:[(0,M.jsx)("p",{className:"Toast__message",children:t}),o&&(0,M.jsx)(S.V,{icon:_.Tw,"aria-label":"close",type:"icon",onClick:n,className:"close"})]})};function Hn(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 Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vn=(0,z.z)({name:"viewMode",viewMode:!0,trackEvent:{category:"canvas",predicate:function(e){return!e.viewModeEnabled}},perform:function(e,t){return{appState:Kn(Kn({},t),{},{viewModeEnabled:!this.checked(t)}),commitToHistory:!1}},checked:function(e){return e.viewModeEnabled},predicate:function(e,t,n){return void 0===n.viewModeEnabled},contextItemLabel:"labels.viewMode",keyTest:function(e){return!e[P.tW.CTRL_OR_CMD]&&e.altKey&&e.code===P.aU.R}}),Yn=n(5637),Gn=n(200),qn=n.n(Gn),Xn=n(2325),$n=n(4929),Jn=n(6794),Qn=n(267);function er(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}var tr=(0,l.Z)((function e(t){var n=this,r=t.scene,o=t.onSceneUpdated;(0,s.Z)(this,e),this.onFontsLoaded=function(t){if(t.every((function(t){var n="".concat(t.family,"-").concat(t.style,"-").concat(t.weight);return!!e.loadedFontFaces.has(n)||(e.loadedFontFaces.add(n),!1)})))return!1;var r=!1;n.scene.mapElements((function(e){return(0,H.iB)(e)?((0,oe.bI)(e),r=!0,(0,C.BE)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,H.JZ)(e)))):e})),r&&n.onSceneUpdated()},this.loadFontsForElements=function(){var e=(0,a.Z)(m().mark((function e(t){var r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all((0,i.Z)(new Set(t.filter((function(e){return(0,H.iB)(e)})).map((function(e){return e.fontFamily})))).map((function(e){var t,n,r,o,i=(0,j.mO)({fontFamily:e,fontSize:16});if(null===(t=document.fonts)||void 0===t||null===(n=t.check)||void 0===n||!n.call(t,i))return null===(r=document.fonts)||void 0===r||null===(o=r.load)||void 0===o?void 0:o.call(r,i)})));case 2:r=e.sent,n.onFontsLoaded(r.flat().filter(Boolean));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.scene=r,this.onSceneUpdated=o}));tr.loadedFontFaces=new Set;var nr=n(4688),rr=n(2416),or=n(202),ir=function(){return(0,M.jsxs)("div",{"data-testid":"brave-measure-text-error",children:[(0,M.jsxs)("p",{children:[(0,E.t)("errors.brave_measure_text_error.start"),"  ",(0,M.jsx)("span",{style:{fontWeight:600},children:(0,E.t)("errors.brave_measure_text_error.aggressive_block_fingerprint")})," ",(0,E.t)("errors.brave_measure_text_error.setting_enabled"),".",(0,M.jsx)("br",{}),(0,M.jsx)("br",{}),(0,E.t)("errors.brave_measure_text_error.break")," ",(0,M.jsx)("span",{style:{fontWeight:600},children:(0,E.t)("errors.brave_measure_text_error.text_elements")})," ",(0,E.t)("errors.brave_measure_text_error.in_your_drawings"),"."]}),(0,M.jsxs)("p",{children:[(0,E.t)("errors.brave_measure_text_error.strongly_recommend")," ",(0,M.jsxs)("a",{href:"http://docs.excalidraw.com/docs/@excalidraw/excalidraw/faq#turning-off-aggresive-block-fingerprinting-in-brave-browser",children:[" ",(0,E.t)("errors.brave_measure_text_error.steps")]})," ",(0,E.t)("errors.brave_measure_text_error.how"),"."]}),(0,M.jsxs)("p",{children:[(0,E.t)("errors.brave_measure_text_error.disable_setting")," ",(0,M.jsx)("a",{href:"https://github.com/excalidraw/excalidraw/issues/new",children:(0,E.t)("errors.brave_measure_text_error.issue")})," ",(0,E.t)("errors.brave_measure_text_error.write")," ",(0,M.jsx)("a",{href:"https://discord.gg/UexuTaE",children:(0,E.t)("errors.brave_measure_text_error.discord")}),"."]})]})};function ar(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return sr(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)?sr(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function sr(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 lr(e){var t=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}}();return function(){var n,r=(0,p.Z)(e);if(t){var o=(0,p.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.Z)(this,n)}}function cr(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 ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dr={isSmScreen:!1,isMobile:!1,isTouchScreen:!1,canDeviceFitSidebar:!1},pr=v().createContext(dr);pr.displayName="DeviceContext";var fr=v().createContext({container:null,id:null});fr.displayName="ExcalidrawContainerContext";var hr=v().createContext([]);hr.displayName="ExcalidrawElementsContext";var mr=v().createContext(ur(ur({},(0,F.im)()),{},{width:0,height:0,offsetLeft:0,offsetTop:0}));mr.displayName="ExcalidrawAppStateContext";var gr=v().createContext((function(){console.warn("unitialized ExcalidrawSetAppStateContext context!")}));gr.displayName="ExcalidrawSetAppStateContext";var vr=v().createContext(null);vr.displayName="ExcalidrawActionManagerContext";var br=function(){return(0,g.useContext)(pr)},yr=function(){return(0,g.useContext)(fr)},wr=function(){return(0,g.useContext)(hr)},xr=function(){return(0,g.useContext)(mr)},kr=function(){return(0,g.useContext)(gr)},_r=function(){return(0,g.useContext)(vr)},Sr=!1,Er=0,Pr=0,Cr=0,Or=!1,jr=!1,Tr=!1,Mr={horizontal:null,vertical:null},Ir=0,Dr=!1,Ar=!0,Lr=!1,Nr=0,Rr=!1,zr=null,Fr={pointers:new Map,lastCenter:null,initialDistance:null,initialScale:null},Zr=function(e){(0,u.Z)(d,e);var t,n,r=lr(d);function d(e){var t;(0,s.Z)(this,d),t=r.call(this,e),Br.call((0,c.Z)(t));var n,o=(0,F.im)(),i=e.excalidrawRef,a=e.viewModeEnabled,l=void 0!==a&&a,u=e.zenModeEnabled,p=void 0!==u&&u,f=e.gridModeEnabled,h=void 0!==f&&f,m=e.theme,g=void 0===m?o.theme:m,v=e.name,b=void 0===v?o.name:v;if(t.state=ur(ur(ur({},o),{},{theme:g,isLoading:!0},t.getCanvasOffsets()),{},{viewModeEnabled:l,zenModeEnabled:p,gridSize:h?T.k:null,name:b,width:window.innerWidth,height:window.innerHeight,showHyperlinkPopup:!1,isSidebarDocked:!1}),t.id=(0,x.x0)(),t.library=new U.ZP((0,c.Z)(t)),i){var y,w="current"in i&&(null===(y=i.current)||void 0===y?void 0:y.readyPromise)||(0,j.PI)(),k={ready:!0,readyPromise:w,updateScene:t.updateScene,updateLibrary:t.library.updateLibrary,addFiles:t.addFiles,resetScene:t.resetScene,getSceneElementsIncludingDeleted:t.getSceneElementsIncludingDeleted,history:{clear:t.resetHistory},scrollToContent:t.scrollToContent,getSceneElements:t.getSceneElements,getAppState:function(){return t.state},getFiles:function(){return t.files},refresh:t.refresh,setToast:t.setToast,id:t.id,setActiveTool:t.setActiveTool,setCursor:t.setCursor,resetCursor:t.resetCursor,toggleMenu:t.toggleMenu};"function"==typeof i?i(k):i.current=k,w.resolve(k)}return t.excalidrawContainerValue={container:t.excalidrawContainerRef.current,id:t.id},t.scene=new ae.Z,t.fonts=new tr({scene:t.scene,onSceneUpdated:t.onSceneUpdated}),t.history=new te,t.actionManager=new R(t.syncActionResult,(function(){return t.state}),(function(){return t.scene.getElementsIncludingDeleted()}),(0,c.Z)(t)),t.actionManager.registerAll(z.N),t.actionManager.registerAction((n=t.history,{name:"undo",trackEvent:{category:"history"},perform:function(e,t){return A(e,t,(function(){return n.undoOnce()}))},keyTest:function(e){return e[P.tW.CTRL_OR_CMD]&&e.key.toLowerCase()===P.tW.Z&&!e.shiftKey},PanelComponent:function(e){var t=e.updateData,n=e.data;return(0,M.jsx)(S.V,{type:"button",icon:_.UE,"aria-label":(0,E.t)("buttons.undo"),onClick:t,size:(null==n?void 0:n.size)||"medium"})},commitToHistory:function(){return!1}})),t.actionManager.registerAction(function(e){return{name:"redo",trackEvent:{category:"history"},perform:function(t,n){return A(t,n,(function(){return e.redoOnce()}))},keyTest:function(e){return e[P.tW.CTRL_OR_CMD]&&e.shiftKey&&e.key.toLowerCase()===P.tW.Z||T.ED&&e.ctrlKey&&!e.shiftKey&&e.key===P.tW.Y},PanelComponent:function(e){var t=e.updateData,n=e.data;return(0,M.jsx)(S.V,{type:"button",icon:_.zG,"aria-label":(0,E.t)("buttons.redo"),onClick:t,size:(null==n?void 0:n.size)||"medium"})},commitToHistory:function(){return!1}}}(t.history)),t}return(0,l.Z)(d,[{key:"renderCanvas",value:function(){var e=window.devicePixelRatio,t=this.state,n=t.width,r=t.height,o=n*e,i=r*e;return t.viewModeEnabled?(0,M.jsx)("canvas",{className:"excalidraw__canvas",style:{width:n,height:r,cursor:T.oc.GRAB},width:o,height:i,ref:this.handleCanvasRef,onContextMenu:this.handleCanvasContextMenu,onPointerMove:this.handleCanvasPointerMove,onPointerUp:this.handleCanvasPointerUp,onPointerCancel:this.removePointer,onTouchMove:this.handleTouchMove,onPointerDown:this.handleCanvasPointerDown,children:(0,E.t)("labels.drawingCanvas")}):(0,M.jsx)("canvas",{className:"excalidraw__canvas",style:{width:n,height:r},width:o,height:i,ref:this.handleCanvasRef,onContextMenu:this.handleCanvasContextMenu,onPointerDown:this.handleCanvasPointerDown,onDoubleClick:this.handleCanvasDoubleClick,onPointerMove:this.handleCanvasPointerMove,onPointerUp:this.handleCanvasPointerUp,onPointerCancel:this.removePointer,onTouchMove:this.handleTouchMove,children:(0,E.t)("labels.drawingCanvas")})}},{key:"render",value:function(){var e,t=this,n=(0,ie.eD)(this.scene.getNonDeletedElements(),this.state),r=this.props,o=r.renderTopRightUI,i=r.renderCustomStats;return(0,M.jsx)("div",{className:(0,w.Z)("excalidraw excalidraw-container",{"excalidraw--view-mode":this.state.viewModeEnabled,"excalidraw--mobile":this.device.isMobile}),ref:this.excalidrawContainerRef,onDrop:this.handleAppOnDrop,tabIndex:0,onKeyDown:this.props.handleKeyboardGlobally?void 0:this.onKeyDown,children:(0,M.jsx)(fr.Provider,{value:this.excalidrawContainerValue,children:(0,M.jsx)(pr.Provider,{value:this.device,children:(0,M.jsx)(gr.Provider,{value:this.setAppState,children:(0,M.jsxs)(mr.Provider,{value:this.state,children:[(0,M.jsx)(hr.Provider,{value:this.scene.getNonDeletedElements(),children:(0,M.jsxs)(vr.Provider,{value:this.actionManager,children:[(0,M.jsx)(Zn,{canvas:this.canvas,appState:this.state,files:this.files,setAppState:this.setAppState,actionManager:this.actionManager,elements:this.scene.getNonDeletedElements(),onLockToggle:this.toggleLock,onPenModeToggle:this.togglePenMode,onHandToolToggle:this.onHandToolToggle,onInsertElements:function(e){return t.addElementsFromPasteOrLibrary({elements:e,position:"center",files:null})},langCode:(0,E.G3)().code,renderTopRightUI:o,renderCustomStats:i,renderCustomSidebar:this.props.renderSidebar,showExitZenModeBtn:void 0===(null===(e=this.props)||void 0===e?void 0:e.zenModeEnabled)&&this.state.zenModeEnabled,libraryReturnUrl:this.props.libraryReturnUrl,UIOptions:this.props.UIOptions,focusContainer:this.focusContainer,library:this.library,id:this.id,onImageAction:this.onImageAction,renderWelcomeScreen:!this.state.isLoading&&this.state.showWelcomeScreen&&"selection"===this.state.activeTool.type&&!this.scene.getElementsIncludingDeleted().length,children:this.props.children}),(0,M.jsx)("div",{className:"excalidraw-textEditorContainer"}),(0,M.jsx)("div",{className:"excalidraw-contextMenuContainer"}),1===n.length&&!this.state.contextMenu&&this.state.showHyperlinkPopup&&(0,M.jsx)($n.nW,{element:n[0],setAppState:this.setAppState,onLinkOpen:this.props.onLinkOpen},n[0].id),null!==this.state.toast&&(0,M.jsx)(Wn,{message:this.state.toast.message,onClose:function(){return t.setToast(null)},duration:this.state.toast.duration,closable:this.state.toast.closable}),this.state.contextMenu&&(0,M.jsx)(Pe,{items:this.state.contextMenu.items,top:this.state.contextMenu.top,left:this.state.contextMenu.left,actionManager:this.actionManager}),(0,M.jsx)("main",{children:this.renderCanvas()})]})})," "]})})})})})}},{key:"componentDidMount",value:(n=(0,a.Z)(m().mark((function e(){var t,n,r,o,i,a,s=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.unmounted=!1,this.excalidrawContainerValue.container=this.excalidrawContainerRef.current,"production"!==T.Vi.TEST&&"production"!==T.Vi.DEVELOPMENT||(this.setState.bind(this),Object.defineProperties(window.h,{state:{configurable:!0,get:function(){return s.state}},setState:{configurable:!0,value:function(){return s.setState.apply(s,arguments)}},app:{configurable:!0,value:this},history:{configurable:!0,value:this.history}})),this.scene.addCallback(this.onSceneUpdated),this.addEventListeners(),this.excalidrawContainerRef.current&&this.focusContainer(),this.excalidrawContainerRef.current&&this.refreshDeviceState(this.excalidrawContainerRef.current),"ResizeObserver"in window&&null!==(t=this.excalidrawContainerRef)&&void 0!==t&&t.current?(this.resizeObserver=new ResizeObserver((function(){Ar=!1,s.refreshDeviceState(s.excalidrawContainerRef.current),s.updateDOMRect()})),null===(n=this.resizeObserver)||void 0===n||n.observe(this.excalidrawContainerRef.current)):window.matchMedia&&(r=window.matchMedia("(max-width: ".concat(T.kV,"px), (max-height: ").concat(T.Yx,"px) and (max-width: ").concat(T.sS,"px)")),o=window.matchMedia("(max-width: ".concat(T.eF,"px)")),i=window.matchMedia("(min-width: ".concat(null!=this.props.UIOptions.dockedSidebarBreakpoint?this.props.UIOptions.dockedSidebarBreakpoint:T.sk,"px)")),a=function(){s.excalidrawContainerRef.current.getBoundingClientRect(),s.device=(0,j.v4)(s.device,{isSmScreen:o.matches,isMobile:r.matches,canDeviceFitSidebar:i.matches})},r.addListener(a),this.detachIsMobileMqHandler=function(){return r.removeListener(a)}),new URLSearchParams(window.location.search.slice(1)).has("web-share-target")?this.restoreFileFromShare():this.updateDOMRect(this.initializeScene),(0,T.jP)()&&!(0,De.eB)()&&this.setState({errorMessage:(0,M.jsx)(ir,{})});case 11:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){var e;this.files={},this.imageCache.clear(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.unmounted=!0,this.removeEventListeners(),this.scene.destroy(),clearTimeout(Ir),Ir=0}},{key:"removeEventListeners",value:function(){var e,t,n,r,o;document.removeEventListener(T.Ks.POINTER_UP,this.removePointer),document.removeEventListener(T.Ks.COPY,this.onCopy),document.removeEventListener(T.Ks.PASTE,this.pasteFromClipboard),document.removeEventListener(T.Ks.CUT,this.onCut),null===(e=this.excalidrawContainerRef.current)||void 0===e||e.removeEventListener(T.Ks.WHEEL,this.onWheel),null===(t=this.nearestScrollableContainer)||void 0===t||t.removeEventListener(T.Ks.SCROLL,this.onScroll),document.removeEventListener(T.Ks.KEYDOWN,this.onKeyDown,!1),document.removeEventListener(T.Ks.MOUSE_MOVE,this.updateCurrentCursorPosition,!1),document.removeEventListener(T.Ks.KEYUP,this.onKeyUp),window.removeEventListener(T.Ks.RESIZE,this.onResize,!1),window.removeEventListener(T.Ks.UNLOAD,this.onUnload,!1),window.removeEventListener(T.Ks.BLUR,this.onBlur,!1),null===(n=this.excalidrawContainerRef.current)||void 0===n||n.removeEventListener(T.Ks.DRAG_OVER,this.disableEvent,!1),null===(r=this.excalidrawContainerRef.current)||void 0===r||r.removeEventListener(T.Ks.DROP,this.disableEvent,!1),document.removeEventListener(T.Ks.GESTURE_START,this.onGestureStart,!1),document.removeEventListener(T.Ks.GESTURE_CHANGE,this.onGestureChange,!1),document.removeEventListener(T.Ks.GESTURE_END,this.onGestureEnd,!1),null===(o=this.detachIsMobileMqHandler)||void 0===o||o.call(this)}},{key:"addEventListeners",value:function(){var e,t,n,r,o,i=this;this.removeEventListeners(),document.addEventListener(T.Ks.POINTER_UP,this.removePointer),document.addEventListener(T.Ks.COPY,this.onCopy),null===(e=this.excalidrawContainerRef.current)||void 0===e||e.addEventListener(T.Ks.WHEEL,this.onWheel,{passive:!1}),this.props.handleKeyboardGlobally&&document.addEventListener(T.Ks.KEYDOWN,this.onKeyDown,!1),document.addEventListener(T.Ks.KEYUP,this.onKeyUp,{passive:!0}),document.addEventListener(T.Ks.MOUSE_MOVE,this.updateCurrentCursorPosition),null===(t=document.fonts)||void 0===t||null===(n=t.addEventListener)||void 0===n||n.call(t,"loadingdone",(function(e){var t=e.fontfaces;i.fonts.onFontsLoaded(t)})),document.addEventListener(T.Ks.GESTURE_START,this.onGestureStart,!1),document.addEventListener(T.Ks.GESTURE_CHANGE,this.onGestureChange,!1),document.addEventListener(T.Ks.GESTURE_END,this.onGestureEnd,!1),this.state.viewModeEnabled||(document.addEventListener(T.Ks.PASTE,this.pasteFromClipboard),document.addEventListener(T.Ks.CUT,this.onCut),this.props.detectScroll&&(this.nearestScrollableContainer=(0,j.Ip)(this.excalidrawContainerRef.current),this.nearestScrollableContainer.addEventListener(T.Ks.SCROLL,this.onScroll)),window.addEventListener(T.Ks.RESIZE,this.onResize,!1),window.addEventListener(T.Ks.UNLOAD,this.onUnload,!1),window.addEventListener(T.Ks.BLUR,this.onBlur,!1),null===(r=this.excalidrawContainerRef.current)||void 0===r||r.addEventListener(T.Ks.DRAG_OVER,this.disableEvent,!1),null===(o=this.excalidrawContainerRef.current)||void 0===o||o.addEventListener(T.Ks.DROP,this.disableEvent,!1))}},{key:"componentDidUpdate",value:function(e,t){var n,r,o,i=this;this.state.showWelcomeScreen||this.scene.getElementsIncludingDeleted().length||this.setState({showWelcomeScreen:!0}),this.excalidrawContainerRef.current&&e.UIOptions.dockedSidebarBreakpoint!==this.props.UIOptions.dockedSidebarBreakpoint&&this.refreshDeviceState(this.excalidrawContainerRef.current),(t.scrollX!==this.state.scrollX||t.scrollY!==this.state.scrollY)&&(null===(r=this.props)||void 0===r||null===(o=r.onScrollChange)||void 0===o||o.call(r,this.state.scrollX,this.state.scrollY)),Object.keys(this.state.selectedElementIds).length&&(0,F.EN)(this.state)&&this.setState({activeTool:(0,j.Om)(this.state,{type:"selection"})}),"eraser"===this.state.activeTool.type&&t.theme!==this.state.theme&&(0,j.OF)(this.canvas,this.state.theme),"selection"===t.activeTool.type&&"selection"!==this.state.activeTool.type&&this.state.showHyperlinkPopup&&this.setState({showHyperlinkPopup:!1}),e.langCode!==this.props.langCode&&this.updateLanguage(),e.viewModeEnabled!==this.props.viewModeEnabled&&this.setState({viewModeEnabled:!!this.props.viewModeEnabled}),t.viewModeEnabled!==this.state.viewModeEnabled&&(this.addEventListeners(),this.deselectElements()),e.zenModeEnabled!==this.props.zenModeEnabled&&this.setState({zenModeEnabled:!!this.props.zenModeEnabled}),e.theme!==this.props.theme&&this.props.theme&&this.setState({theme:this.props.theme}),e.gridModeEnabled!==this.props.gridModeEnabled&&this.setState({gridSize:this.props.gridModeEnabled?T.k:null}),this.props.name&&e.name!==this.props.name&&this.setState({name:this.props.name}),null===(n=this.excalidrawContainerRef.current)||void 0===n||n.classList.toggle("theme--dark","dark"===this.state.theme),this.state.editingLinearElement&&!this.state.selectedElementIds[this.state.editingLinearElement.elementId]&&setTimeout((function(){i.state.editingLinearElement&&i.actionManager.executeAction(k.pL)})),this.state.selectedLinearElement&&!this.state.selectedElementIds[this.state.selectedLinearElement.elementId]&&this.setState({selectedLinearElement:null});var a,s,l=t.multiElement;t.activeTool!==this.state.activeTool&&null!=l&&(0,O.N1)(this.state)&&(0,Y.Mn)(l,!1)&&(0,O.R)(l,this.state,this.scene,(0,j.AK)(K._.getPointAtIndexGlobalCoordinates(l,-1))),this.renderScene(),this.history.record(this.state,this.scene.getElementsIncludingDeleted()),this.state.isLoading||null===(a=(s=this.props).onChange)||void 0===a||a.call(s,this.scene.getElementsIncludingDeleted(),this.state,this.files)}},{key:"addTextFromPaste",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,j.dE)({clientX:Pr,clientY:Cr},this.state),r=n.x,o=n.y,a={x:r,y:o,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roundness:null,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,text:e,fontSize:this.state.currentItemFontSize,fontFamily:this.state.currentItemFontFamily,textAlign:this.state.currentItemTextAlign,verticalAlign:T.hs,locked:!1},s=10,l=o,c=t?[e]:e.split("\n"),u=c.reduce((function(e,t,n){var o=t.trim(),i=(0,De.PT)(a.fontFamily);if(o.length){var u=(0,H.VL)(ur(ur({},a),{},{x:r,y:l,text:o,lineHeight:i}));e.push(u),l+=u.height+s}else{var d;(null===(d=c[n-1])||void 0===d?void 0:d.trim())&&(l+=(0,De.Rg)(a.fontSize,i)+s)}return e}),[]);0!==u.length&&(this.scene.replaceAllElements([].concat((0,i.Z)(this.scene.getElementsIncludingDeleted()),(0,i.Z)(u))),this.setState({selectedElementIds:Object.fromEntries(u.map((function(e){return[e.id,!0]})))}),!t&&u.length>1&&!1===Rr&&!this.device.isMobile&&(this.setToast({message:(0,E.t)("toast.pasteAsSingleElement",{shortcut:(0,j.uY)("CtrlOrCmd+Shift+V")}),duration:5e3}),Rr=!0),this.history.resumeRecording())}},{key:"handleTextWysiwyg",value:function(e,t){var n=this,r=t.isExistingElement,o=void 0!==r&&r,a=function(t,r,o){n.scene.replaceAllElements((0,i.Z)(n.scene.getElementsIncludingDeleted().map((function(n){return n.id===e.id&&(0,H.iB)(n)?(0,H.N_)(n,{text:t,isDeleted:o,originalText:r}):n}))))};(0,H.b_)({id:e.id,canvas:this.canvas,getViewportCoords:function(e,t){var r=(0,j._i)({sceneX:e,sceneY:t},n.state),o=r.x,i=r.y;return[o-n.state.offsetLeft,i-n.state.offsetTop]},onChange:(0,j.tH)((function(t){a(t,t,!1),(0,H.qP)(e)&&(0,O.Ww)(e)})),onSubmit:(0,j.tH)((function(t){var r=t.text,i=t.viaKeyboard,s=t.originalText,l=!r.trim();if(a(r,s,l),!l&&i){var c=e.containerId?e.containerId:e.id;n.setState((function(e){return{selectedElementIds:ur(ur({},e.selectedElementIds),{},(0,f.Z)({},c,!0))}}))}l&&(0,O.$q)(n.scene.getNonDeletedElements(),[e]),l&&!o||n.history.resumeRecording(),n.setState({draggingElement:null,editingElement:null}),n.state.activeTool.locked&&(0,j.Uk)(n.canvas,n.state),n.focusContainer()})),element:e,excalidrawContainer:this.excalidrawContainerRef.current,app:this}),this.deselectElements(),a(e.text,e.originalText,!1)}},{key:"deselectElements",value:function(){this.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})}},{key:"getTextElementAtPosition",value:function(e,t){var n=this.getElementAtPosition(e,t,{includeBoundTextElement:!0});return n&&(0,H.iB)(n)&&!n.isDeleted?n:null}},{key:"getElementAtPosition",value:function(e,t,n){var r=this.getElementsAtPosition(e,t,null==n?void 0:n.includeBoundTextElement,null==n?void 0:n.includeLockedElements);if(r.length>1){if(null!=n&&n.preferSelected)for(var o=r.length-1;o>-1;o--)if(this.state.selectedElementIds[r[o].id])return r[o];var i=r[r.length-1];return(0,H.wB)(i,this.state,e,t)?r[r.length-2]:i}return 1===r.length?r[0]:null}},{key:"getElementsAtPosition",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=r&&o?this.scene.getNonDeletedElements():this.scene.getNonDeletedElements().filter((function(e){return(o||!e.locked)&&(r||!((0,H.iB)(e)&&e.containerId))}));return(0,ie.CJ)(i,(function(r){return(0,H.wX)(r,n.state,e,t)}))}},{key:"handleHoverSelectedLinearElement",value:function(e,t,n){var r=K._.getElement(e.elementId),o=(0,De.WJ)(r);if(r)if(this.state.selectedLinearElement){var i=-1,a=null;(0,Xn.Qu)(r,this.state,[t,n])?(i=K._.getPointIndexUnderCursor(r,this.state.zoom,t,n),a=K._.getSegmentMidpointHitCoords(e,{x:t,y:n},this.state),i>=0||a?(0,j.KJ)(this.canvas,T.oc.POINTER):(0,j.KJ)(this.canvas,T.oc.MOVE)):((0,Qn.oY)([r],this.state)&&(0,H.wB)(r,this.state,t,n)||o&&(0,H.wX)(o,this.state,t,n))&&(0,j.KJ)(this.canvas,T.oc.MOVE),this.state.selectedLinearElement.hoverPointIndex!==i&&this.setState({selectedLinearElement:ur(ur({},this.state.selectedLinearElement),{},{hoverPointIndex:i})}),K._.arePointsEqual(this.state.selectedLinearElement.segmentMidPointHoveredCoords,a)||this.setState({selectedLinearElement:ur(ur({},this.state.selectedLinearElement),{},{segmentMidPointHoveredCoords:a})})}else(0,j.KJ)(this.canvas,T.oc.AUTO)}},{key:"maybeCleanupAfterMissingPointerUp",value:function(e){null!==zr&&zr(e)}},{key:"updateGestureOnPointerDown",value:function(e){Fr.pointers.set(e.pointerId,{x:e.clientX,y:e.clientY}),2===Fr.pointers.size&&(Fr.lastCenter=G(Fr.pointers),Fr.initialScale=this.state.zoom.value,Fr.initialDistance=q(Array.from(Fr.pointers.values())))}},{key:"initialPointerDownState",value:function(e){var t=(0,j.dE)(e,this.state),n=(0,ie.eD)(this.scene.getNonDeletedElements(),this.state),r=(0,H.KP)(n),i=(0,o.Z)(r,4),a=i[0],s=i[1],l=i[2],c=i[3];return{origin:t,withCmdOrCtrl:e[P.tW.CTRL_OR_CMD],originInGrid:(0,j.AK)((0,ne.wC)(t.x,t.y,this.state.gridSize)),scrollbars:(0,ie._4)(Mr,e.clientX-this.state.offsetLeft,e.clientY-this.state.offsetTop),lastCoords:ur({},t),originalElements:this.scene.getNonDeletedElements().reduce((function(e,t){return e.set(t.id,(0,V.OL)(t)),e}),new Map),resize:{handleType:!1,isResizing:!1,offset:{x:0,y:0},arrowDirection:"origin",center:{x:(l+a)/2,y:(c+s)/2}},hit:{element:null,allHitElements:[],wasAddedToSelection:!1,hasBeenDuplicated:!1,hasHitCommonBoundingBoxOfSelectedElements:this.isHittingCommonBoundingBoxOfSelectedElements(t,n)},drag:{hasOccurred:!1,offset:null},eventListeners:{onMove:null,onUp:null,onKeyUp:null,onKeyDown:null},boxSelection:{hasOccurred:!1},elementIdsToErase:{}}}},{key:"handleDraggingScrollBar",value:function(e,t){var n=this;if(!t.scrollbars.isOverEither||this.state.multiElement)return!1;Tr=!0,t.lastCoords.x=e.clientX,t.lastCoords.y=e.clientY;var r=(0,j.$9)((function(e){e.target instanceof HTMLElement&&n.handlePointerMoveOverScrollbars(e,t)})),o=(0,j.tH)((function(){Tr=!1,(0,j.Uk)(n.canvas,n.state),zr=null,n.setState({cursorButton:"up"}),n.savePointer(e.clientX,e.clientY,"up"),window.removeEventListener(T.Ks.POINTER_MOVE,r),window.removeEventListener(T.Ks.POINTER_UP,o),r.flush()}));return zr=o,window.addEventListener(T.Ks.POINTER_MOVE,r),window.addEventListener(T.Ks.POINTER_UP,o),!0}},{key:"isASelectedElement",value:function(e){return null!=e&&this.state.selectedElementIds[e.id]}},{key:"isHittingCommonBoundingBoxOfSelectedElements",value:function(e,t){if(t.length<2)return!1;var n=10/this.state.zoom.value,r=(0,H.KP)(t),i=(0,o.Z)(r,4),a=i[0],s=i[1],l=i[2],c=i[3];return e.x>a-n&&e.x<l+n&&e.y>s-n&&e.y<c+n}},{key:"onKeyDownFromPointerDownHandler",value:function(e){var t=this;return(0,j.tH)((function(n){t.maybeHandleResize(e,n)||t.maybeDragNewGenericElement(e,n)}))}},{key:"onKeyUpFromPointerDownHandler",value:function(e){var t=this;return(0,j.tH)((function(n){n.key===P.tW.ALT&&n.preventDefault(),t.maybeHandleResize(e,n)||t.maybeDragNewGenericElement(e,n)}))}},{key:"onPointerMoveFromPointerDownHandler",value:function(e){var t=this;return(0,j.$9)((function(n){var r;if(null===e.drag.offset&&(e.drag.offset=(0,j.AK)((0,H.$V)((0,ie.eD)(t.scene.getNonDeletedElements(),t.state),e.origin.x,e.origin.y))),n.target instanceof HTMLElement&&!t.handlePointerMoveOverScrollbars(n,e)){var a=(0,j.dE)(n,t.state);if((0,F.EN)(t.state))t.handleEraser(n,e,a);else{var s=(0,ne.wC)(a.x,a.y,t.state.gridSize),l=(0,o.Z)(s,2),c=l[0],u=l[1];if(e.drag.hasOccurred||"arrow"!==t.state.activeTool.type&&"line"!==t.state.activeTool.type||!((0,ne.LW)(a.x,a.y,e.origin.x,e.origin.y)<T.f)){if(e.resize.isResizing&&(e.lastCoords.x=a.x,e.lastCoords.y=a.y,t.maybeHandleResize(e,n)))return!0;if(t.state.selectedLinearElement){var d=t.state.editingLinearElement||t.state.selectedLinearElement;if(K._.shouldAddMidpoint(t.state.selectedLinearElement,a,t.state)){var p=K._.addMidpoint(t.state.selectedLinearElement,a,t.state);if(!p)return;return void(0,b.flushSync)((function(){t.state.selectedLinearElement&&t.setState({selectedLinearElement:ur(ur({},t.state.selectedLinearElement),{},{pointerDownState:p.pointerDownState,selectedPointsIndices:p.selectedPointsIndices})}),t.state.editingLinearElement&&t.setState({editingLinearElement:ur(ur({},t.state.editingLinearElement),{},{pointerDownState:p.pointerDownState,selectedPointsIndices:p.selectedPointsIndices})})}))}if(null!==d.pointerDownState.segmentMidpoint.value&&!d.pointerDownState.segmentMidpoint.added)return;var h=K._.handlePointDragging(n,t.state,a.x,a.y,(function(e,n){t.maybeSuggestBindingsForLinearElementAtCoords(e,n)}),d);if(h)return e.lastCoords.x=a.x,e.lastCoords.y=a.y,e.drag.hasOccurred=!0,t.state.editingLinearElement&&!t.state.editingLinearElement.isDragging&&t.setState({editingLinearElement:ur(ur({},t.state.editingLinearElement),{},{isDragging:!0})}),void(t.state.selectedLinearElement.isDragging||t.setState({selectedLinearElement:ur(ur({},t.state.selectedLinearElement),{},{isDragging:!0})}))}var m=e.hit.allHitElements.some((function(e){return t.isASelectedElement(e)})),g=t.state.editingLinearElement&&n.shiftKey&&t.state.editingLinearElement.elementId===(null===(r=e.hit.element)||void 0===r?void 0:r.id);if((m||e.hit.hasHitCommonBoundingBoxOfSelectedElements)&&!g){var v=(0,ie.eD)(t.scene.getNonDeletedElements(),t.state);if(v.every((function(e){return e.locked})))return;if(e.drag.hasOccurred=!0,v.length>0&&!e.withCmdOrCtrl){var y=(0,ne.wC)(a.x-e.drag.offset.x,a.y-e.drag.offset.y,t.state.gridSize),w=(0,o.Z)(y,2),x=w[0],k=w[1],_=[Math.abs(a.x-e.origin.x),Math.abs(a.y-e.origin.y)],S=_[0],E=_[1],M=n.shiftKey;if((0,H.o8)(e,v,x,k,M,S,E,t.state),t.maybeSuggestBindingForAll(v),n.altKey&&!e.hit.hasBeenDuplicated){e.hit.hasBeenDuplicated=!0;var I,D=[],A=[],L=new Map,N=new Map,R=e.hit.element,z=t.scene.getElementsIncludingDeleted(),Z=(0,ie.eD)(z,t.state,!0).map((function(e){return e.id})),B=ar(z);try{for(B.s();!(I=B.n()).done;){var U=I.value;if(Z.includes(U.id)||U.id===(null==R?void 0:R.id)&&e.hit.wasAddedToSelection){var W=(0,H.Sy)(t.state.editingGroupId,L,U),V=(0,ne.wC)(e.origin.x-e.drag.offset.x,e.origin.y-e.drag.offset.y,t.state.gridSize),G=(0,o.Z)(V,2),q=G[0],X=G[1];(0,C.DR)(W,{x:W.x+(q-x),y:W.y+(X-k)}),D.push(W),A.push(U),N.set(U.id,W.id)}else D.push(U)}}catch(e){B.e(e)}finally{B.f()}var J=[].concat(D,A);(0,De.P7)(D,A,N),(0,O.ek)(J,A,N,"duplicatesServeAsOld"),t.scene.replaceAllElements(J)}return}}var Q=t.state.draggingElement;if(Q){if("freedraw"===Q.type){var ee=Q.points,te=a.x-Q.x,re=a.y-Q.y,oe=ee.length>0&&ee[ee.length-1];if(!oe||oe[0]!==te||oe[1]!==re){var ae=Q.simulatePressure?Q.pressures:[].concat((0,i.Z)(Q.pressures),[n.pressure]);(0,C.DR)(Q,{points:[].concat((0,i.Z)(ee),[[te,re]]),pressures:ae})}}else if((0,Y.bt)(Q)){e.drag.hasOccurred=!0;var se=Q.points,le=c-Q.x,ce=u-Q.y;if((0,P.Ge)(n)&&2===se.length){var ue=(0,H.o4)(Q.x,Q.y,a.x,a.y);le=ue.width,ce=ue.height}1===se.length?(0,C.DR)(Q,{points:[].concat((0,i.Z)(se),[[le,ce]])}):2===se.length&&(0,C.DR)(Q,{points:[].concat((0,i.Z)(se.slice(0,-1)),[[le,ce]])}),(0,Y.Mn)(Q,!1)&&t.maybeSuggestBindingsForLinearElementAtCoords(Q,[a],t.state.startBoundElement)}else e.lastCoords.x=a.x,e.lastCoords.y=a.y,t.maybeDragNewGenericElement(e,n);if("selection"===t.state.activeTool.type){e.boxSelection.hasOccurred=!0;var de=t.scene.getNonDeletedElements();if(n.shiftKey||t.state.editingLinearElement||!(0,ie.N)(de,t.state)||(e.withCmdOrCtrl&&e.hit.element?t.setState((function(n){return(0,$.bO)(ur(ur({},n),{},{selectedElementIds:(0,f.Z)({},e.hit.element.id,!0)}),t.scene.getNonDeletedElements())})):t.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})),t.state.editingLinearElement)K._.handleBoxSelection(n,t.state,t.setState.bind(t));else{var pe=(0,ie.Yp)(de,Q);t.setState((function(n){return(0,$.bO)(ur(ur({},n),{},{selectedElementIds:ur(ur(ur({},n.selectedElementIds),pe.reduce((function(e,t){return e[t.id]=!0,e}),{})),e.hit.element?(0,f.Z)({},e.hit.element.id,!pe.length):null),showHyperlinkPopup:!(1!==pe.length||!pe[0].link)&&"info",selectedLinearElement:1===pe.length&&(0,Y.bt)(pe[0])?new K._(pe[0],t.scene):null}),t.scene.getNonDeletedElements())}))}}}}}}}))}},{key:"handlePointerMoveOverScrollbars",value:function(e,t){if(t.scrollbars.isOverHorizontal){var n=e.clientX,r=n-t.lastCoords.x;return this.translateCanvas({scrollX:this.state.scrollX-r/this.state.zoom.value}),t.lastCoords.x=n,!0}if(t.scrollbars.isOverVertical){var o=e.clientY,i=o-t.lastCoords.y;return this.translateCanvas({scrollY:this.state.scrollY-i/this.state.zoom.value}),t.lastCoords.y=o,!0}return!1}},{key:"onPointerUpFromPointerDownHandler",value:function(e){var t=this;return(0,j.tH)((function(n){var r,o,a,s=t.state,l=s.draggingElement,c=s.resizingElement,u=s.multiElement,d=s.activeTool,p=s.isResizing,h=s.isRotating;if(t.setState({isResizing:!1,isRotating:!1,resizingElement:null,selectionElement:null,cursorButton:"up",editingElement:u||(0,H.iB)(t.state.editingElement)?t.state.editingElement:null}),t.savePointer(n.clientX,n.clientY,"up"),t.state.editingLinearElement)if(e.boxSelection.hasOccurred||(null===(o=e.hit)||void 0===o||null===(a=o.element)||void 0===a?void 0:a.id)===t.state.editingLinearElement.elementId){var m=K._.handlePointerUp(n,t.state.editingLinearElement,t.state);m!==t.state.editingLinearElement&&t.setState({editingLinearElement:m,suggestedBindings:[]})}else t.actionManager.executeAction(k.pL);else if(t.state.selectedLinearElement){var g,v;if((null===(g=e.hit)||void 0===g||null===(v=g.element)||void 0===v?void 0:v.id)!==t.state.selectedLinearElement.elementId)(0,ie.eD)(t.scene.getNonDeletedElements(),t.state).length>1&&t.setState({selectedLinearElement:null});else{var b=K._.handlePointerUp(n,t.state.selectedLinearElement,t.state),y=b.startBindingElement,w=b.endBindingElement,x=t.scene.getElement(b.elementId);(0,Y.Mn)(x)&&(0,O.HG)(x,y,w),b!==t.state.selectedLinearElement&&t.setState({selectedLinearElement:ur(ur({},b),{},{selectedPointsIndices:null}),suggestedBindings:[]})}}if(zr=null,e.eventListeners.onMove&&e.eventListeners.onMove.flush(),window.removeEventListener(T.Ks.POINTER_MOVE,e.eventListeners.onMove),window.removeEventListener(T.Ks.POINTER_UP,e.eventListeners.onUp),window.removeEventListener(T.Ks.KEYDOWN,e.eventListeners.onKeyDown),window.removeEventListener(T.Ks.KEYUP,e.eventListeners.onKeyUp),t.state.pendingImageElementId&&t.setState({pendingImageElementId:null}),"freedraw"===(null==l?void 0:l.type)){var _=(0,j.dE)(n,t.state),S=l.points,E=_.x-l.x,P=_.y-l.y;E===S[0][0]&&P===S[0][1]&&(P+=1e-4,E+=1e-4);var M=l.simulatePressure?[]:[].concat((0,i.Z)(l.pressures),[n.pressure]);return(0,C.DR)(l,{points:[].concat((0,i.Z)(S),[[E,P]]),pressures:M,lastCommittedPoint:[E,P]}),void t.actionManager.executeAction(k.pL)}if((0,Y.pC)(l)){var I=l;try{t.initializeImageDimensions(I),t.setState({selectedElementIds:(0,f.Z)({},I.id,!0)},(function(){t.actionManager.executeAction(k.pL)}))}catch(e){console.error(e),t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().filter((function(e){return e.id!==I.id}))),t.actionManager.executeAction(k.pL)}}else if((0,Y.bt)(l)){l.points.length>1&&t.history.resumeRecording();var D=(0,j.dE)(n,t.state);e.drag.hasOccurred||!l||u?e.drag.hasOccurred&&!u&&((0,O.N1)(t.state)&&(0,Y.Mn)(l,!1)&&(0,O.R)(l,t.state,t.scene,D),t.setState({suggestedBindings:[],startBoundElement:null}),d.locked?t.setState((function(e){return{draggingElement:null}})):((0,j.z8)(t.canvas),t.setState((function(e){return{draggingElement:null,activeTool:(0,j.Om)(t.state,{type:"selection"}),selectedElementIds:ur(ur({},e.selectedElementIds),{},(0,f.Z)({},l.id,!0)),selectedLinearElement:new K._(l,t.scene)}})))):((0,C.DR)(l,{points:[].concat((0,i.Z)(l.points),[[D.x-l.x,D.y-l.y]])}),t.setState({multiElement:l,editingElement:t.state.draggingElement}))}else{if("selection"!==d.type&&l&&(0,H.QD)(l))return t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().slice(0,-1)),void t.setState({draggingElement:null});l&&(0,C.DR)(l,(0,H.Qp)(l)),c&&t.history.resumeRecording(),c&&(0,H.QD)(c)&&t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().filter((function(e){return e.id!==c.id})));var A=e.hit.element;if((null===(r=t.state.selectedLinearElement)||void 0===r?void 0:r.elementId)!==(null==A?void 0:A.id)&&(0,Y.bt)(A)&&1===(0,ie.eD)(t.scene.getNonDeletedElements(),t.state).length&&t.setState({selectedLinearElement:new K._(A,t.scene)}),(0,F.EN)(t.state)){if(0===(0,ne.LW)(t.lastPointerDown.clientX,t.lastPointerDown.clientY,t.lastPointerUp.clientX,t.lastPointerUp.clientY)){var L=(0,j.dE)({clientX:t.lastPointerUp.clientX,clientY:t.lastPointerUp.clientY},t.state);t.getElementsAtPosition(L.x,L.y).forEach((function(t){return e.elementIdsToErase[t.id]={erase:!0,opacity:t.opacity}}))}t.eraseElements(e)}else{var N;if(Object.keys(e.elementIdsToErase).length&&t.restoreReadyToEraseElements(e),A&&!e.drag.hasOccurred&&!e.hit.wasAddedToSelection&&(!t.state.editingLinearElement||!e.boxSelection.hasOccurred))if(n.shiftKey&&!t.state.editingLinearElement)if(t.state.selectedElementIds[A.id])if((0,$.zq)(t.state,A)){var R=A.groupIds.flatMap((function(e){return(0,$.Fb)(t.scene.getNonDeletedElements(),e)})).map((function(e){return(0,f.Z)({},e.id,!1)})).reduce((function(e,t){return ur(ur({},e),t)}),{});t.setState((function(e){return{selectedGroupIds:ur(ur({},e.selectedElementIds),A.groupIds.map((function(e){return(0,f.Z)({},e,!1)})).reduce((function(e,t){return ur(ur({},e),t)}),{})),selectedElementIds:ur(ur({},e.selectedElementIds),R)}}))}else null!==(N=t.state.selectedLinearElement)&&void 0!==N&&N.isDragging||t.setState((function(e){var n=ur(ur({},e.selectedElementIds),{},(0,f.Z)({},A.id,!1)),r=(0,ie.eD)(t.scene.getNonDeletedElements(),ur(ur({},e),{},{selectedElementIds:n}));return(0,$.bO)(ur(ur({},e),{},{selectedElementIds:n,selectedLinearElement:1===r.length&&(0,Y.bt)(r[0])?new K._(r[0],t.scene):e.selectedLinearElement}),t.scene.getNonDeletedElements())}));else t.setState((function(e){return{selectedElementIds:ur(ur({},e.selectedElementIds),{},(0,f.Z)({},A.id,!0))}}));else t.setState((function(e){var n;return ur({},(0,$.bO)(ur(ur({},e),{},{selectedElementIds:(0,f.Z)({},A.id,!0),selectedLinearElement:(0,Y.bt)(A)&&(null===(n=e.selectedLinearElement)||void 0===n?void 0:n.elementId)!==A.id?new K._(A,t.scene):e.selectedLinearElement}),t.scene.getNonDeletedElements()))}));e.drag.hasOccurred||t.state.isResizing||!(A&&(0,H.wB)(A,t.state,e.origin.x,e.origin.y)||!A&&e.hit.hasHitCommonBoundingBoxOfSelectedElements)?(!d.locked&&"freedraw"!==d.type&&l&&t.setState((function(e){return{selectedElementIds:ur(ur({},e.selectedElementIds),{},(0,f.Z)({},l.id,!0))}})),("selection"!==d.type||(0,ie.N)(t.scene.getNonDeletedElements(),t.state))&&t.history.resumeRecording(),(e.drag.hasOccurred||p||h)&&((0,O.N1)(t.state)?O.el:O.H)((0,ie.eD)(t.scene.getNonDeletedElements(),t.state)),d.locked||"freedraw"===d.type?t.setState({draggingElement:null,suggestedBindings:[]}):((0,j.z8)(t.canvas),t.setState({draggingElement:null,suggestedBindings:[],activeTool:(0,j.Om)(t.state,{type:"selection"})}))):t.state.editingLinearElement?t.setState({editingLinearElement:null}):t.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})}}}))}},{key:"maybeSuggestBindingForAll",value:function(e){var t=(0,O.ZB)(e);this.setState({suggestedBindings:t})}},{key:"clearSelection",value:function(e){this.setState((function(t){return{selectedElementIds:{},selectedGroupIds:{},editingGroupId:t.editingGroupId&&null!=e&&(0,$.Nd)(e,t.editingGroupId)?t.editingGroupId:null}})),this.setState({selectedElementIds:{},previousSelectedElementIds:this.state.selectedElementIds})}},{key:"getTextWysiwygSnappedToCenterPosition",value:function(e,t,n,r){if(r){var o=r.x+r.width/2,i=r.y+r.height/2,a=(0,De.TP)(r,n);if(a&&(o=a.x,i=a.y),Math.hypot(e-o,t-i)<T.wZ){var s=(0,j._i)({sceneX:o,sceneY:i},n);return{viewportX:s.x,viewportY:s.y,elementCenterX:o,elementCenterY:i}}}}},{key:"getCanvasOffsets",value:function(){var e;if(null!==(e=this.excalidrawContainerRef)&&void 0!==e&&e.current){var t=this.excalidrawContainerRef.current.getBoundingClientRect();return{offsetLeft:t.left,offsetTop:t.top}}return{offsetLeft:0,offsetTop:0}}},{key:"updateLanguage",value:(t=(0,a.Z)(m().mark((function e(){var t,n=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=E.Mj.find((function(e){return e.code===n.props.langCode}))||E.Fp,e.next=3,(0,E.m0)(t);case 3:this.setAppState({});case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}],[{key:"resetTapTwice",value:function(){Sr=!1}}]),d}(v().Component);Zr.defaultProps={UIOptions:T.cW};var Br=function(){var e=this;this.canvas=null,this.rc=null,this.unmounted=!1,this.device=dr,this.excalidrawContainerRef=v().createRef(),this.files={},this.imageCache=new Map,this.lastPointerDown=null,this.lastPointerUp=null,this.lastScenePointer=null,this.focusContainer=function(){var t;e.props.autoFocus&&(null===(t=e.excalidrawContainerRef.current)||void 0===t||t.focus())},this.getSceneElementsIncludingDeleted=function(){return e.scene.getElementsIncludingDeleted()},this.getSceneElements=function(){return e.scene.getNonDeletedElements()},this.syncActionResult=(0,j.tH)((function(t){if(!e.unmounted&&!1!==t){var n=null;if(t.elements&&(t.elements.forEach((function(t){var r;(null===(r=e.state.editingElement)||void 0===r?void 0:r.id)===t.id&&e.state.editingElement!==t&&(0,H.qP)(t)&&(n=t)})),e.scene.replaceAllElements(t.elements),t.commitToHistory&&e.history.resumeRecording()),t.files&&(e.files=t.replaceFiles?t.files:ur(ur({},e.files),t.files),e.addNewImagesToImageCache()),t.appState||n||e.state.contextMenu){var r,o,i,a,s,l,c,u;t.commitToHistory&&e.history.resumeRecording();var d=(null==t||null===(r=t.appState)||void 0===r?void 0:r.viewModeEnabled)||!1,p=(null==t||null===(o=t.appState)||void 0===o?void 0:o.zenModeEnabled)||!1,f=(null==t||null===(i=t.appState)||void 0===i?void 0:i.gridSize)||null,h=(null==t||null===(a=t.appState)||void 0===a?void 0:a.theme)||e.props.theme||T.C6.LIGHT,m=null!==(s=null==t||null===(l=t.appState)||void 0===l?void 0:l.name)&&void 0!==s?s:e.state.name,g=null!==(c=null==t||null===(u=t.appState)||void 0===u?void 0:u.errorMessage)&&void 0!==c?c:e.state.errorMessage;void 0!==e.props.viewModeEnabled&&(d=e.props.viewModeEnabled),void 0!==e.props.zenModeEnabled&&(p=e.props.zenModeEnabled),void 0!==e.props.gridModeEnabled&&(f=e.props.gridModeEnabled?T.k:null),void 0!==e.props.name&&(m=e.props.name),e.setState((function(e){var r;return Object.assign(t.appState||{},{contextMenu:null,editingElement:n||(null===(r=t.appState)||void 0===r?void 0:r.editingElement)||null,viewModeEnabled:d,zenModeEnabled:p,gridSize:f,theme:h,name:m,errorMessage:g})}),(function(){t.syncHistory&&e.history.setCurrentState(e.state,e.scene.getElementsIncludingDeleted())}))}}})),this.onBlur=(0,j.tH)((function(){Or=!1,e.setState({isBindingEnabled:!0})})),this.onUnload=function(){e.onBlur()},this.disableEvent=function(e){e.preventDefault()},this.resetHistory=function(){e.history.clear()},this.resetScene=(0,j.tH)((function(t){e.scene.replaceAllElements([]),e.setState((function(n){return ur(ur({},(0,F.im)()),{},{isLoading:(null==t||!t.resetLoadingState)&&n.isLoading,theme:e.state.theme})})),e.resetHistory()})),this.initializeScene=(0,a.Z)(m().mark((function t(){var n,r,o,i,s;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"launchQueue"in window&&"LaunchParams"in window&&window.launchQueue.setConsumer(function(){var t=(0,a.Z)(m().mark((function t(n){var r,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.files.length){t.next=2;break}return t.abrupt("return");case 2:return r=n.files[0],t.next=5,r.getFile();case 5:o=t.sent,e.loadFileToCanvas(new File([o],o.name||"",{type:o.type}),r);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e.props.theme&&e.setState({theme:e.props.theme}),e.state.isLoading||e.setState({isLoading:!0}),o=null,t.prev=4,t.next=7,e.props.initialData;case 7:if(t.t0=t.sent,t.t0){t.next=10;break}t.t0=null;case 10:o=t.t0,null!==(i=o)&&void 0!==i&&i.libraryItems&&e.library.updateLibrary({libraryItems:o.libraryItems,merge:!0}).catch((function(e){console.error(e)})),t.next=18;break;case 14:t.prev=14,t.t1=t.catch(4),console.error(t.t1),o={appState:{errorMessage:t.t1.message||"Encountered an error during importing or restoring scene data"}};case 18:(s=(0,W.nu)(o,null,null,{repairBindings:!0})).appState=ur(ur({},s.appState),{},{theme:e.props.theme||s.appState.theme,openSidebar:(null===(n=s.appState)||void 0===n?void 0:n.openSidebar)||e.state.openSidebar,activeTool:"image"===s.appState.activeTool.type?ur(ur({},s.appState.activeTool),{},{type:"selection"}):s.appState.activeTool,isLoading:!1,toast:e.state.toast}),null!==(r=o)&&void 0!==r&&r.scrollToContent&&(s.appState=ur(ur({},s.appState),(0,ie.W)(s.elements,ur(ur({},s.appState),{},{width:e.state.width,height:e.state.height,offsetTop:e.state.offsetTop,offsetLeft:e.state.offsetLeft}),null))),e.fonts.loadFontsForElements(s.elements),e.resetHistory(),e.syncActionResult(ur(ur({},s),{},{commitToHistory:!0}));case 24:case"end":return t.stop()}}),t,null,[[4,14]])}))),this.refreshDeviceState=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height,i=null!=e.props.UIOptions.dockedSidebarBreakpoint?e.props.UIOptions.dockedSidebarBreakpoint:T.sk;e.device=(0,j.v4)(e.device,{isSmScreen:r<T.eF,isMobile:r<T.kV||o<T.Yx&&r<T.sS,canDeviceFitSidebar:r>i})},this.onResize=(0,j.tH)((function(){e.scene.getElementsIncludingDeleted().forEach((function(e){return(0,oe.bI)(e)})),e.setState({})})),this.renderScene=function(){var t={},n={},r={},o={},i={};e.state.collaborators.forEach((function(a,s){if(a.selectedElementIds)for(var l=0,c=Object.keys(a.selectedElementIds);l<c.length;l++){var u=c[l];u in r||(r[u]=[]),r[u].push(s)}a.pointer&&(a.username&&(o[s]=a.username),a.userState&&(i[s]=a.userState),n[s]=(0,j._i)({sceneX:a.pointer.x,sceneY:a.pointer.y},e.state),t[s]=a.button)}));var a=e.scene.getNonDeletedElements().filter((function(t){return!((0,Y.pC)(t)&&e.state.pendingImageElementId===t.id||e.state.editingElement&&"text"===e.state.editingElement.type&&t.id===e.state.editingElement.id)})),s=getComputedStyle(document.querySelector(".excalidraw")).getPropertyValue("--color-selection");(0,re.Eu)({elements:a,appState:e.state,scale:window.devicePixelRatio,rc:e.rc,canvas:e.canvas,renderConfig:{selectionColor:s,scrollX:e.state.scrollX,scrollY:e.state.scrollY,viewBackgroundColor:e.state.viewBackgroundColor,zoom:e.state.zoom,remotePointerViewportCoords:n,remotePointerButton:t,remoteSelectedElementIds:r,remotePointerUsernames:o,remotePointerUserStates:i,shouldCacheIgnoreZoom:e.state.shouldCacheIgnoreZoom,theme:e.state.theme,imageCache:e.imageCache,isExporting:!1,renderScrollbars:!e.device.isMobile},callback:function(t){var n=t.atLeastOneVisibleElement,r=t.scrollBars;r&&(Mr=r);var o=!(0,H.iB)(e.state.editingElement)&&!n&&a.length>0;e.state.scrolledOutside!==o&&e.setState({scrolledOutside:o}),e.scheduleImageRefresh()}},Ar&&!0===window.EXCALIDRAW_THROTTLE_RENDER),Ar||(Ar=!0)},this.onScroll=(0,j.Ds)((function(){var t=e.getCanvasOffsets(),n=t.offsetTop,r=t.offsetLeft;e.setState((function(e){return e.offsetLeft===r&&e.offsetTop===n?null:{offsetTop:n,offsetLeft:r}}))}),T.HM),this.onCut=(0,j.tH)((function(t){var n;(null===(n=e.excalidrawContainerRef.current)||void 0===n?void 0:n.contains(document.activeElement))&&!(0,j.s)(t.target)&&(e.cutAll(),t.preventDefault(),t.stopPropagation())})),this.onCopy=(0,j.tH)((function(t){var n;(null===(n=e.excalidrawContainerRef.current)||void 0===n?void 0:n.contains(document.activeElement))&&!(0,j.s)(t.target)&&(e.copyAll(),t.preventDefault(),t.stopPropagation())})),this.cutAll=function(){e.actionManager.executeAction(k.ZM,"keyboard")},this.copyAll=function(){e.actionManager.executeAction(k.uN,"keyboard")},this.onTapStart=function(t){if(T.Dt||t.preventDefault(),!Sr)return Sr=!0,clearTimeout(Er),void(Er=window.setTimeout(Zr.resetTapTwice,T.Gj));if(Sr&&1===t.touches.length){var n=(0,o.Z)(t.touches,1)[0];e.handleCanvasDoubleClick({clientX:n.clientX,clientY:n.clientY}),Sr=!1,clearTimeout(Er)}T.Dt&&t.preventDefault(),2===t.touches.length&&e.setState({selectedElementIds:{}})},this.onTapEnd=function(t){e.resetContextMenuTimer(),t.touches.length>0?e.setState({previousSelectedElementIds:{},selectedElementIds:e.state.previousSelectedElementIds}):Fr.pointers.clear()},this.pasteFromClipboard=(0,j.tH)(function(){var t=(0,a.Z)(m().mark((function t(n){var r,o,i,a,s,l,c,u,d,p,h,g,v;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=!(!Lr||!n),a=document.activeElement,s=null===(r=e.excalidrawContainerRef.current)||void 0===r?void 0:r.contains(a),!n||s){t.next=5;break}return t.abrupt("return");case 5:if(l=document.elementFromPoint(Pr,Cr),!n||l instanceof HTMLCanvasElement&&!(0,j.s)(a)){t.next=8;break}return t.abrupt("return");case 8:return c=null==n||null===(o=n.clipboardData)||void 0===o?void 0:o.files[0],t.next=11,(0,Z.mQ)(n,i);case 11:if(u=t.sent,c||!u.text||i||(d=u.text.trim()).startsWith("<svg")&&d.endsWith("</svg>")&&(c=(0,Ke.Pn)(d)),!(0,Ke.Wr)(c)||u.spreadsheet){t.next=20;break}return p=(0,j.dE)({clientX:Pr,clientY:Cr},e.state),h=p.x,g=p.y,v=e.createImageElement({sceneX:h,sceneY:g}),e.insertImageElement(v,c),e.initializeImageDimensions(v),e.setState({selectedElementIds:(0,f.Z)({},v.id,!0)}),t.abrupt("return");case 20:if(!e.props.onPaste){t.next=32;break}return t.prev=21,t.next=24,e.props.onPaste(u,n);case 24:if(t.t0=t.sent,!1!==t.t0){t.next=27;break}return t.abrupt("return");case 27:t.next=32;break;case 29:t.prev=29,t.t1=t.catch(21),console.error(t.t1);case 32:u.errorMessage?e.setState({errorMessage:u.errorMessage}):u.spreadsheet&&!i?e.setState({pasteDialog:{data:u.spreadsheet,shown:!0}}):u.elements?e.addElementsFromPasteOrLibrary({elements:u.elements,files:u.files||null,position:"cursor"}):u.text&&e.addTextFromPaste(u.text,i),e.setActiveTool({type:"selection"}),null==n||n.preventDefault();case 35:case"end":return t.stop()}}),t,null,[[21,29]])})));return function(e){return t.apply(this,arguments)}}()),this.addElementsFromPasteOrLibrary=function(t){var n=(0,W.ET)(t.elements,null),a=(0,H.KP)(n),s=(0,o.Z)(a,4),l=s[0],c=s[1],u=s[2],d=s[3],p=(0,j.TE)(l,u)/2,f=(0,j.TE)(c,d)/2,h="object"===(0,r.Z)(t.position)?t.position.clientX:"cursor"===t.position?Pr:e.state.width/2+e.state.offsetLeft,m="object"===(0,r.Z)(t.position)?t.position.clientY:"cursor"===t.position?Cr:e.state.height/2+e.state.offsetTop,g=(0,j.dE)({clientX:h,clientY:m},e.state),v=g.x-p,b=g.y-f,y=(0,ne.wC)(v,b,e.state.gridSize),w=(0,o.Z)(y,2),x=w[0],k=w[1],_=(0,V._N)(n.map((function(e){return(0,C.BE)(e,{x:e.x+x-l,y:e.y+k-c})}))),S=[].concat((0,i.Z)(e.scene.getElementsIncludingDeleted()),(0,i.Z)(_));e.scene.replaceAllElements(S),_.forEach((function(e){if((0,H.iB)(e)&&(0,Y.Xh)(e)){var t=(0,De.tl)(e);(0,H.oN)(e,t)}})),t.files&&(e.files=ur(ur({},e.files),t.files)),e.history.resumeRecording(),e.setState((0,$.bO)(ur(ur({},e.state),{},{openSidebar:e.state.openSidebar&&e.device.canDeviceFitSidebar&&e.state.isSidebarDocked?e.state.openSidebar:null,selectedElementIds:_.reduce((function(e,t){return(0,Y.Xh)(t)||(e[t.id]=!0),e}),{}),selectedGroupIds:{}}),e.scene.getNonDeletedElements()),(function(){t.files&&e.addNewImagesToImageCache()})),e.setActiveTool({type:"selection"})},this.setAppState=function(t,n){e.setState(t,n)},this.removePointer=function(t){Ir&&e.resetContextMenuTimer(),Fr.pointers.delete(t.pointerId)},this.toggleLock=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ui";e.state.activeTool.locked||(0,L.L)("toolbar","toggleLock","".concat(t," (").concat(e.device.isMobile?"mobile":"desktop",")")),e.setState((function(t){return{activeTool:ur(ur(ur({},t.activeTool),(0,j.Om)(e.state,t.activeTool.locked?{type:"selection"}:t.activeTool)),{},{locked:!t.activeTool.locked})}}))},this.togglePenMode=function(){e.setState((function(e){return{penMode:!e.penMode}}))},this.onHandToolToggle=function(){e.actionManager.executeAction(rr.eF)},this.zoomCanvas=function(t){e.setState(ur({},(0,se.E)({viewportX:e.state.width/2+e.state.offsetLeft,viewportY:e.state.height/2+e.state.offsetTop,nextZoom:(0,ie.j)(t)},e.state)))},this.cancelInProgresAnimation=null,this.scrollToContent=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.scene.getNonDeletedElements(),r=arguments.length>1?arguments[1]:void 0;null===(t=e.cancelInProgresAnimation)||void 0===t||t.call(e);var o=Array.isArray(n)?n:[n],i=e.state.zoom,a=e.state.scrollX,s=e.state.scrollY;if(null!=r&&r.fitToContent){var l=(0,rr.md)(o,e.state,!1).appState;i=l.zoom,a=l.scrollX,s=l.scrollY}else{var c=(0,ie.W)(o,e.state,e.canvas);a=c.scrollX,s=c.scrollY}if(null!=r&&r.animate){var u,d=e.state.scrollX,p=e.state.scrollY;e.zoomCanvas(i.value);var f=(0,j.B4)([d,p],[a,s],(function(t,n){return e.setState({scrollX:t,scrollY:n})}),{duration:null!==(u=null==r?void 0:r.duration)&&void 0!==u?u:500});e.cancelInProgresAnimation=function(){f(),e.cancelInProgresAnimation=null}}else e.setState({scrollX:a,scrollY:s,zoom:i})},this.translateCanvas=function(t){var n;null===(n=e.cancelInProgresAnimation)||void 0===n||n.call(e),e.setState(t)},this.setToast=function(t){e.setState({toast:t})},this.restoreFileFromShare=(0,a.Z)(m().mark((function t(){var n,r,o,i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,caches.open("web-share-target");case 3:return n=t.sent,t.next=6,n.match("shared-file");case 6:if(!(r=t.sent)){t.next=16;break}return t.next=10,r.blob();case 10:return o=t.sent,i=new File([o],o.name||"",{type:o.type}),e.loadFileToCanvas(i,null),t.next=15,n.delete("shared-file");case 15:window.history.replaceState(null,T.iC,window.location.pathname);case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(0),e.setState({errorMessage:t.t0.message});case 21:case"end":return t.stop()}}),t,null,[[0,18]])}))),this.addFiles=(0,j.tH)((function(t){var n=t.reduce((function(e,t){return e.set(t.id,t),e}),new Map);e.files=ur(ur({},e.files),Object.fromEntries(n)),e.scene.getNonDeletedElements().forEach((function(t){(0,Y.wi)(t)&&n.has(t.fileId)&&(e.imageCache.delete(t.fileId),(0,oe.bI)(t))})),e.scene.informMutation(),e.addNewImagesToImageCache()})),this.updateScene=(0,j.tH)((function(t){t.commitToHistory&&e.history.resumeRecording(),t.appState&&e.setState(t.appState),t.elements&&e.scene.replaceAllElements(t.elements),t.collaborators&&e.setState({collaborators:t.collaborators})})),this.onSceneUpdated=function(){e.setState({})},this.toggleMenu=function(t,n){return"customSidebar"!==t||e.props.renderSidebar?("library"===t||"customSidebar"===t)&&(r=void 0===n?e.state.openSidebar===t?null:t:n?t:null,e.setState({openSidebar:r}),!!r):(console.warn('attempting to toggle "customSidebar", but no "props.renderSidebar" is defined'),!1);var r},this.updateCurrentCursorPosition=(0,j.tH)((function(e){Pr=e.clientX,Cr=e.clientY})),this.onKeyDown=(0,j.tH)((function(t){if("Proxy"in window&&(!t.shiftKey&&/^[A-Z]$/.test(t.key)||t.shiftKey&&/^[a-z]$/.test(t.key))&&(t=new Proxy(t,{get:function(e,n){var r=e[n];return"function"==typeof r?r.bind(e):"key"===n?t.shiftKey?e.key.toUpperCase():e.key.toLowerCase():r}})),t[P.tW.CTRL_OR_CMD]&&t.key.toLowerCase()===P.tW.V&&(Lr=t.shiftKey,clearTimeout(Nr),Nr=window.setTimeout((function(){Lr=!1}),100)),!t[P.tW.CTRL_OR_CMD]||!(0,j.s)(t.target)||t.code!==P.aU.MINUS&&t.code!==P.aU.EQUAL){if(!((0,j.s)(t.target)&&t.key!==P.tW.ESCAPE||(0,P.Wl)(t.key)&&(0,j._Z)(t.target)))if(t.key!==P.tW.QUESTION_MARK)if(t.key.toLowerCase()===P.tW.E&&t.shiftKey&&t[P.tW.CTRL_OR_CMD])e.setState({openDialog:"imageExport"});else{if(t.key===P.tW.PAGE_UP||t.key===P.tW.PAGE_DOWN){var n=(t.shiftKey?e.state.width:e.state.height)/e.state.zoom.value;t.key===P.tW.PAGE_DOWN&&(n=-n),t.shiftKey?e.translateCanvas((function(e){return{scrollX:e.scrollX+n}})):e.translateCanvas((function(e){return{scrollY:e.scrollY+n}}))}if(!e.actionManager.handleKeyDown(t)&&!e.state.viewModeEnabled){if(t[P.tW.CTRL_OR_CMD]&&e.state.isBindingEnabled&&e.setState({isBindingEnabled:!1}),(0,P.Wl)(t.key)){var r=e.state.gridSize&&(t.shiftKey?T.$e:e.state.gridSize)||(t.shiftKey?T.Iw:T.$e),o=0,i=0;t.key===P.tW.ARROW_LEFT?o=-r:t.key===P.tW.ARROW_RIGHT?o=r:t.key===P.tW.ARROW_UP?i=-r:t.key===P.tW.ARROW_DOWN&&(i=r);var a=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state,!0);a.forEach((function(e){(0,C.DR)(e,{x:e.x+o,y:e.y+i}),(0,O.Ww)(e,{simultaneouslyUpdated:a})})),e.maybeSuggestBindingForAll(a),t.preventDefault()}else if(t.key===P.tW.ENTER){var s=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state);if(1===s.length){var l=s[0];if(t[P.tW.CTRL_OR_CMD])(0,Y.bt)(l)&&(e.state.editingLinearElement&&e.state.editingLinearElement.elementId===s[0].id||(e.history.resumeRecording(),e.setState({editingLinearElement:new K._(l,e.scene)})));else if((0,H.iB)(l)||(0,De.Zr)(l)){var c;(0,H.iB)(l)||(c=l);var u=(0,De.TP)(l,e.state),d=u.x,p=u.y;return e.startTextEditing({sceneX:d,sceneY:p,container:c}),void t.preventDefault()}}}else if(!t.ctrlKey&&!t.altKey&&!t.metaKey&&null===e.state.draggingElement){var f=function(e){var t=le.find((function(t,n){return null!=t.numericKey&&e===t.numericKey.toString()||t.key&&("string"==typeof t.key?t.key===e:t.key.includes(e))}));return(null==t?void 0:t.value)||null}(t.key);f?(e.state.activeTool.type!==f&&(0,L.L)("toolbar",f,"keyboard (".concat(e.device.isMobile?"mobile":"desktop",")")),e.setActiveTool({type:f}),t.stopPropagation()):t.key===P.tW.Q&&(e.toggleLock("keyboard"),t.stopPropagation())}if(t.key===P.tW.SPACE&&0===Fr.pointers.size&&(Or=!0,(0,j.KJ)(e.canvas,T.oc.GRAB),t.preventDefault()),!(t.key!==P.tW.G&&t.key!==P.tW.S||t.altKey||t[P.tW.CTRL_OR_CMD])){var h=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state);if("selection"===e.state.activeTool.type&&!h.length)return;t.key===P.tW.G&&((0,ie.$b)(e.state.activeTool.type)||h.some((function(e){return(0,ie.$b)(e.type)})))&&(e.setState({openPopup:"backgroundColorPicker"}),t.stopPropagation()),t.key===P.tW.S&&(e.setState({openPopup:"strokeColorPicker"}),t.stopPropagation())}!t[P.tW.CTRL_OR_CMD]||t.key!==P.tW.BACKSPACE&&t.key!==P.tW.DELETE||bn.e_.set(Dn.w,"clearCanvas")}}else e.setState({openDialog:"help"})}else t.preventDefault()})),this.onWheel=(0,j.tH)((function(e){e.target instanceof HTMLCanvasElement||!e.ctrlKey||e.preventDefault()})),this.onKeyUp=(0,j.tH)((function(t){if(t.key===P.tW.SPACE&&(e.state.viewModeEnabled?(0,j.KJ)(e.canvas,T.oc.GRAB):"selection"===e.state.activeTool.type?(0,j.z8)(e.canvas):((0,j.Uk)(e.canvas,e.state),e.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})),Or=!1),t[P.tW.CTRL_OR_CMD]||e.state.isBindingEnabled||e.setState({isBindingEnabled:!0}),(0,P.Wl)(t.key)){var n=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state);(0,O.N1)(e.state)?(0,O.el)(n):(0,O.H)(n),e.setState({suggestedBindings:[]})}})),this.setActiveTool=function(t){var n=(0,j.Om)(e.state,t);"hand"===n.type?(0,j.KJ)(e.canvas,T.oc.GRAB):Or||(0,j.Uk)(e.canvas,e.state),(0,j.wO)(document.activeElement)&&e.focusContainer(),(0,Y.dt)(n.type)||e.setState({suggestedBindings:[]}),"image"===n.type&&e.onImageAction(),"selection"!==n.type?e.setState({activeTool:n,selectedElementIds:{},selectedGroupIds:{},editingGroupId:null}):e.setState({activeTool:n})},this.setCursor=function(t){(0,j.KJ)(e.canvas,t)},this.resetCursor=function(){(0,j.z8)(e.canvas)},this.isTouchScreenMultiTouchGesture=function(){return Fr.pointers.size>=2},this.onGestureStart=(0,j.tH)((function(t){t.preventDefault(),e.isTouchScreenMultiTouchGesture()&&e.setState({selectedElementIds:{}}),Fr.initialScale=e.state.zoom.value})),this.onGestureChange=(0,j.tH)((function(t){if(t.preventDefault(),!e.isTouchScreenMultiTouchGesture()){var n=Fr.initialScale;n&&e.setState((function(e){return ur({},(0,se.E)({viewportX:Pr,viewportY:Cr,nextZoom:(0,ie.j)(n*t.scale)},e))}))}})),this.onGestureEnd=(0,j.tH)((function(t){t.preventDefault(),e.isTouchScreenMultiTouchGesture()&&e.setState({previousSelectedElementIds:{},selectedElementIds:e.state.previousSelectedElementIds}),Fr.initialScale=null})),this.startTextEditing=function(t){var n,r,o,a,s=t.sceneX,l=t.sceneY,c=t.insertAtParentCenter,u=void 0===c||c,d=t.container,p=!1,f=u&&e.getTextWysiwygSnappedToCenterPosition(s,l,e.state,d);d&&f&&(p=!0);var h,m=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state),g=(null===(n=h=1===m.length?(0,H.iB)(m[0])?m[0]:d?(0,De.WJ)(m[0]):e.getTextElementAtPosition(s,l):e.getTextElementAtPosition(s,l))||void 0===n?void 0:n.fontFamily)||e.state.currentItemFontFamily,v=(null===(r=h)||void 0===r?void 0:r.lineHeight)||(0,De.PT)(g),b=e.state.currentItemFontSize;if(!h&&p&&d&&!(0,Y.Yv)(d)){var y={fontSize:b,fontFamily:g},w=(0,De.AT)((0,j.mO)(y),v),x=(0,De.w_)(b,v),k=(0,De.HE)(d),_=Math.max(k.height,x),S=Math.max(k.width,w);(0,C.DR)(d,{height:_,width:S}),s=d.x+S/2,l=d.y+_/2,f&&(f=e.getTextWysiwygSnappedToCenterPosition(s,l,e.state,d))}var E=h||(0,H.VL)({x:f?f.elementCenterX:s,y:f?f.elementCenterY:l,strokeColor:e.state.currentItemStrokeColor,backgroundColor:e.state.currentItemBackgroundColor,fillStyle:e.state.currentItemFillStyle,strokeWidth:e.state.currentItemStrokeWidth,strokeStyle:e.state.currentItemStrokeStyle,roughness:e.state.currentItemRoughness,opacity:e.state.currentItemOpacity,text:"",fontSize:b,fontFamily:g,textAlign:f?"center":e.state.currentItemTextAlign,verticalAlign:f?T.oX.MIDDLE:T.hs,containerId:p?null==d?void 0:d.id:void 0,groupIds:null!==(o=null==d?void 0:d.groupIds)&&void 0!==o?o:[],lineHeight:v,angle:null!==(a=null==d?void 0:d.angle)&&void 0!==a?a:0});if(!h&&p&&d&&(0,C.DR)(d,{boundElements:(d.boundElements||[]).concat({type:"text",id:E.id})}),e.setState({editingElement:E}),!h)if(d&&p){var P=e.scene.getElementIndex(d.id);e.scene.insertElementAtIndex(E,P+1)}else e.scene.replaceAllElements([].concat((0,i.Z)(e.scene.getElementsIncludingDeleted()),[E]));e.setState({editingElement:E}),e.handleTextWysiwyg(E,{isExistingElement:!!h})},this.handleCanvasDoubleClick=function(t){if(!e.state.multiElement&&"selection"===e.state.activeTool.type){var n=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state);if(1===n.length&&(0,Y.bt)(n[0])){if(t[P.tW.CTRL_OR_CMD]&&(!e.state.editingLinearElement||e.state.editingLinearElement.elementId!==n[0].id))return e.history.resumeRecording(),void e.setState({editingLinearElement:new K._(n[0],e.scene)});if(e.state.editingLinearElement&&e.state.editingLinearElement.elementId===n[0].id)return}(0,j.z8)(e.canvas);var r=(0,j.dE)(t,e.state),o=r.x,i=r.y;if((0,$.iJ)(e.state).length>0){var a=e.getElementAtPosition(o,i),s=a&&(0,$.YS)(a,e.state.selectedGroupIds);if(s)return void e.setState((function(t){return(0,$.bO)(ur(ur({},t),{},{editingGroupId:s,selectedElementIds:(0,f.Z)({},a.id,!0),selectedGroupIds:{}}),e.scene.getNonDeletedElements())}))}if((0,j.z8)(e.canvas),!t[P.tW.CTRL_OR_CMD]&&!e.state.viewModeEnabled){var l=(0,De.OW)(e.scene.getNonDeletedElements(),e.state,o,i);if(l&&((0,Y.Xo)(l)||!(0,j.Qm)(l.backgroundColor)||(0,Xn.Qu)(l,e.state,[o,i]))){var c=(0,De.TP)(l,e.state);o=c.x,i=c.y}e.startTextEditing({sceneX:o,sceneY:i,insertAtParentCenter:!t.altKey,container:l})}}},this.getElementLinkAtPosition=function(t,n){var r=e.scene.getNonDeletedElements().slice().reverse(),o=1/0;return r.find((function(r,i){return n&&r.id===n.id&&(o=i),r.link&&i<=o&&(0,$n.wq)(r,e.state,[t.x,t.y],e.device.isMobile)}))},this.redirectToLink=function(t,n){var r=(0,ne.LW)(e.lastPointerDown.clientX,e.lastPointerDown.clientY,e.lastPointerUp.clientX,e.lastPointerUp.clientY);if(!(!e.hitLinkElement||n&&r>T.f||!n&&0!==r)){var o=(0,j.dE)(e.lastPointerDown,e.state),i=(0,$n.wq)(e.hitLinkElement,e.state,[o.x,o.y],e.device.isMobile),a=(0,j.dE)(e.lastPointerUp,e.state),s=(0,$n.wq)(e.hitLinkElement,e.state,[a.x,a.y],e.device.isMobile);if(i&&s){var l,c,u=e.hitLinkElement.link;if(u&&(u=(0,Jn.$)(u),e.props.onLinkOpen&&(c=(0,j.ag)(T.Ks.EXCALIDRAW_LINK,t.nativeEvent),e.props.onLinkOpen(ur(ur({},e.hitLinkElement),{},{link:u}),c)),null===(l=c)||void 0===l||!l.defaultPrevented)){var d=(0,Jn.q)(u)?"_self":"_blank",p=window.open(void 0,d);p&&(p.opener=null,p.location=u)}}}},this.handleCanvasPointerMove=function(t){e.savePointer(t.clientX,t.clientY,e.state.cursorButton),Fr.pointers.has(t.pointerId)&&Fr.pointers.set(t.pointerId,{x:t.clientX,y:t.clientY});var n=Fr.initialScale;if(2===Fr.pointers.size&&Fr.lastCenter&&n&&Fr.initialDistance){var r=G(Fr.pointers),a=r.x-Fr.lastCenter.x,s=r.y-Fr.lastCenter.y;Fr.lastCenter=r;var l=q(Array.from(Fr.pointers.values())),c="freedraw"===e.state.activeTool.type&&e.state.penMode?1:l/Fr.initialDistance,u=c?(0,ie.j)(n*c):e.state.zoom.value;e.setState((function(t){var n=(0,se.E)({viewportX:r.x,viewportY:r.y,nextZoom:u},t);e.translateCanvas({zoom:n.zoom,scrollX:n.scrollX+a/u,scrollY:n.scrollY+s/u,shouldCacheIgnoreZoom:!0})})),e.resetShouldCacheIgnoreZoomDebounced()}else Fr.lastCenter=Fr.initialDistance=Fr.initialScale=null;if(!(Or||jr||Tr||(0,F.l$)(e.state))){var d=(0,ie._4)(Mr,t.clientX-e.state.offsetLeft,t.clientY-e.state.offsetTop).isOverEither;e.state.draggingElement||e.state.multiElement||(d?(0,j.z8)(e.canvas):(0,j.Uk)(e.canvas,e.state));var p=(0,j.dE)(t,e.state),f=p.x,h=p.y;if(e.state.editingLinearElement&&!e.state.editingLinearElement.isDragging){var m=K._.handlePointerMove(t,f,h,e.state);m&&m!==e.state.editingLinearElement&&(0,b.flushSync)((function(){e.setState({editingLinearElement:m})})),null!=(null==m?void 0:m.lastUncommittedPoint)?e.maybeSuggestBindingAtCursor(p):(0,b.flushSync)((function(){e.setState({suggestedBindings:[]})}))}if((0,Y.Lx)(e.state.activeTool.type)){var g=e.state.draggingElement;(0,Y.Mn)(g,!1)?e.maybeSuggestBindingsForLinearElementAtCoords(g,[p],e.state.startBoundElement):e.maybeSuggestBindingAtCursor(p)}if(e.state.multiElement){var v=e.state.multiElement,y=v.x,w=v.y,x=v.points,k=v.lastCommittedPoint,_=x[x.length-1];if((0,j.Uk)(e.canvas,e.state),_===k)(0,ne.LW)(f-y,h-w,_[0],_[1])>=T.qx?(0,C.DR)(v,{points:[].concat((0,i.Z)(x),[[f-y,h-w]])}):(0,j.KJ)(e.canvas,T.oc.POINTER);else if(x.length>2&&k&&(0,ne.LW)(f-y,h-w,k[0],k[1])<T.qx)(0,j.KJ)(e.canvas,T.oc.POINTER),(0,C.DR)(v,{points:x.slice(0,-1)});else{var S,E=(0,ne.wC)(f,h,e.state.gridSize),O=(0,o.Z)(E,2),M=O[0],I=O[1],D=null!==(S=null==v?void 0:v.lastCommittedPoint)&&void 0!==S?S:[0,0],A=(0,o.Z)(D,2),L=A[0],N=A[1],R=M-y-L,z=I-w-N;if((0,P.Ge)(t)){var Z=(0,H.o4)(L+y,N+w,M,I);R=Z.width,z=Z.height}(0,ne.g6)(x,e.state.zoom.value)&&(0,j.KJ)(e.canvas,T.oc.POINTER),(0,C.DR)(v,{points:[].concat((0,i.Z)(x.slice(0,-1)),[[L+R,N+z]])})}}else if(!(Boolean(t.buttons)||"selection"!==e.state.activeTool.type&&"text"!==e.state.activeTool.type&&"eraser"!==e.state.activeTool.type)){var B=e.scene.getNonDeletedElements(),U=(0,ie.eD)(B,e.state);if(1!==U.length||d||e.state.editingLinearElement){if(U.length>1&&!d){var W=(0,H.n2)((0,H.KP)(U),f,h,e.state.zoom,t.pointerType);if(W)return void(0,j.KJ)(e.canvas,(0,H.Un)({transformHandleType:W}))}}else{var V=(0,H.jt)(B,e.state,f,h,e.state.zoom,t.pointerType);if(V&&V.transformHandleType)return void(0,j.KJ)(e.canvas,(0,H.Un)(V))}var X=e.getElementAtPosition(p.x,p.y);e.hitLinkElement=e.getElementLinkAtPosition(p,X),(0,F.EN)(e.state)||(e.hitLinkElement&&!e.state.selectedElementIds[e.hitLinkElement.id]?((0,j.KJ)(e.canvas,T.oc.POINTER),(0,$n.Pp)(e.hitLinkElement,e.state)):((0,$n.lV)(),X&&X.link&&e.state.selectedElementIds[X.id]&&!e.state.contextMenu&&!e.state.showHyperlinkPopup?e.setState({showHyperlinkPopup:"info"}):"text"===e.state.activeTool.type?(0,j.KJ)(e.canvas,(0,H.iB)(X)?T.oc.TEXT:T.oc.CROSSHAIR):e.state.viewModeEnabled?(0,j.KJ)(e.canvas,T.oc.GRAB):d?(0,j.KJ)(e.canvas,T.oc.AUTO):e.state.selectedLinearElement?e.handleHoverSelectedLinearElement(e.state.selectedLinearElement,f,h):t[P.tW.CTRL_OR_CMD]?(0,j.KJ)(e.canvas,T.oc.AUTO):!X&&!e.isHittingCommonBoundingBoxOfSelectedElements(p,U)||null!=X&&X.locked||(0,j.KJ)(e.canvas,T.oc.MOVE)))}}},this.handleEraser=function(t,n,r){for(var o=function(e){e.forEach((function(e){e.locked||(i.push(e.id),t.altKey?n.elementIdsToErase[e.id]&&n.elementIdsToErase[e.id].erase&&(n.elementIdsToErase[e.id].erase=!1):n.elementIdsToErase[e.id]||(n.elementIdsToErase[e.id]={erase:!0,opacity:e.opacity}))}))},i=[],a=(0,ne.LW)(n.lastCoords.x,n.lastCoords.y,r.x,r.y),s=10/e.state.zoom.value,l=ur({},n.lastCoords),c=0;c<=a&&(o(e.getElementsAtPosition(l.x,l.y)),c!==a);){var u=(c=Math.min(c+s,a))/a,d=(1-u)*l.x+u*r.x,p=(1-u)*l.y+u*r.y;l.x=d,l.y=p}var f=e.scene.getElementsIncludingDeleted().map((function(e){var r=(0,Y.Xh)(e)&&i.includes(e.containerId)?e.containerId:e.id;if(i.includes(r)){if(!t.altKey)return(0,C.BE)(e,{opacity:T.xY});if(n.elementIdsToErase[r]&&!1===n.elementIdsToErase[r].erase)return(0,C.BE)(e,{opacity:n.elementIdsToErase[r].opacity})}return e}));e.scene.replaceAllElements(f),n.lastCoords.x=r.x,n.lastCoords.y=r.y},this.handleTouchMove=function(e){Dr=!0},this.handleCanvasPointerDown=function(t){var n,r;if(e.state.contextMenu&&e.setState({contextMenu:null}),e.updateGestureOnPointerDown(t),"touch"===t.pointerType&&e.state.draggingElement&&"freedraw"===e.state.draggingElement.type){var o=e.state.draggingElement;e.updateScene(ur(ur({},o.points.length<10?{elements:e.scene.getElementsIncludingDeleted().filter((function(e){return e.id!==o.id}))}:{}),{},{appState:{draggingElement:null,editingElement:null,startBoundElement:null,suggestedBindings:[],selectedElementIds:Object.keys(e.state.selectedElementIds).filter((function(e){return e!==o.id})).reduce((function(t,n){return t[n]=e.state.selectedElementIds[n],t}),{})}}))}else{var i=document.getSelection();if(null!=i&&i.anchorNode&&i.removeAllRanges(),e.maybeOpenContextMenuAfterPointerDownOnTouchDevices(t),e.maybeCleanupAfterMissingPointerUp(t),e.state.penDetected||"pen"!==t.pointerType||e.setState((function(e){return{penMode:!0,penDetected:!0}})),!e.device.isTouchScreen&&["pen","touch"].includes(t.pointerType)&&(e.device=(0,j.v4)(e.device,{isTouchScreen:!0})),!jr&&(e.lastPointerDown=t,e.setState({lastPointerDownWith:t.pointerType,cursorButton:"down"}),e.savePointer(t.clientX,t.clientY,"down"),!e.handleCanvasPanUsingWheelOrSpaceDrag(t)&&!(t.button!==T.Oh.MAIN&&t.button!==T.Oh.TOUCH||Fr.pointers.size>1))){var a=e.initialPointerDownState(t);if(!(e.handleDraggingScrollBar(t,a)||(e.clearSelectionIfNotUsingSelection(),e.updateBindingEnabledOnPointerMove(t),e.handleSelectionOnPointerDown(t,a)||e.state.penMode&&"touch"===t.pointerType&&"selection"!==e.state.activeTool.type&&"text"!==e.state.activeTool.type&&"image"!==e.state.activeTool.type)))if("text"!==e.state.activeTool.type){if("arrow"===e.state.activeTool.type||"line"===e.state.activeTool.type)e.handleLinearElementOnPointerDown(t,e.state.activeTool.type,a);else if("image"===e.state.activeTool.type){(0,j.KJ)(e.canvas,T.oc.CROSSHAIR);var s=e.state.pendingImageElementId&&e.scene.getElement(e.state.pendingImageElementId);if(!s)return;e.setState({draggingElement:s,editingElement:s,pendingImageElementId:null,multiElement:null});var l=(0,j.dE)(t,e.state),c=l.x,u=l.y;(0,C.DR)(s,{x:c,y:u})}else"freedraw"===e.state.activeTool.type?e.handleFreeDrawElementOnPointerDown(t,e.state.activeTool.type,a):"custom"===e.state.activeTool.type?(0,j.KJ)(e.canvas,T.oc.AUTO):"eraser"!==e.state.activeTool.type&&"hand"!==e.state.activeTool.type&&e.createGenericElementOnPointerDown(e.state.activeTool.type,a);null===(n=e.props)||void 0===n||null===(r=n.onPointerDown)||void 0===r||r.call(n,e.state.activeTool,a);var d=e.onPointerMoveFromPointerDownHandler(a),p=e.onPointerUpFromPointerDownHandler(a),f=e.onKeyDownFromPointerDownHandler(a),h=e.onKeyUpFromPointerDownHandler(a);zr=p,e.state.viewModeEnabled||(window.addEventListener(T.Ks.POINTER_MOVE,d),window.addEventListener(T.Ks.POINTER_UP,p),window.addEventListener(T.Ks.KEYDOWN,f),window.addEventListener(T.Ks.KEYUP,h),a.eventListeners.onMove=d,a.eventListeners.onUp=p,a.eventListeners.onKeyUp=h,a.eventListeners.onKeyDown=f)}else e.handleTextOnPointerDown(t,a)}}},this.handleCanvasPointerUp=function(t){if(e.lastPointerUp=t,e.device.isTouchScreen){var n=(0,j.dE)({clientX:t.clientX,clientY:t.clientY},e.state),r=e.getElementAtPosition(n.x,n.y);e.hitLinkElement=e.getElementLinkAtPosition(n,r)}e.hitLinkElement&&!e.state.selectedElementIds[e.hitLinkElement.id]&&e.redirectToLink(t,e.device.isTouchScreen),e.removePointer(t)},this.maybeOpenContextMenuAfterPointerDownOnTouchDevices=function(t){"touch"===t.pointerType&&(Dr=!1,Ir?Dr=!0:Ir=window.setTimeout((function(){Ir=0,Dr||e.handleCanvasContextMenu(t)}),T.nM))},this.resetContextMenuTimer=function(){clearTimeout(Ir),Ir=0,Dr=!1},this.handleCanvasPanUsingWheelOrSpaceDrag=function(t){if(!(Fr.pointers.size<=1&&(t.button===T.Oh.WHEEL||t.button===T.Oh.MAIN&&Or||(0,F.l$)(e.state)||e.state.viewModeEnabled))||(0,H.iB)(e.state.editingElement))return!1;jr=!0,t.preventDefault();var n=!1,r=/Linux/.test(window.navigator.platform);(0,j.KJ)(e.canvas,T.oc.GRABBING);var o=t.clientX,i=t.clientY,a=(0,j.$9)((function(t){var a=o-t.clientX,s=i-t.clientY;if(o=t.clientX,i=t.clientY,r&&!n&&(Math.abs(a)>1||Math.abs(s)>1)){n=!0;var l=function e(t){document.body.removeEventListener(T.Ks.PASTE,e),t.stopPropagation()};document.body.addEventListener(T.Ks.PASTE,l),window.addEventListener(T.Ks.POINTER_UP,(function e(){setTimeout((function(){document.body.removeEventListener(T.Ks.PASTE,l),window.removeEventListener(T.Ks.POINTER_UP,e)}),100)}))}e.translateCanvas({scrollX:e.state.scrollX-a/e.state.zoom.value,scrollY:e.state.scrollY-s/e.state.zoom.value})})),s=(0,j.tH)(zr=function(){zr=null,jr=!1,Or||(e.state.viewModeEnabled?(0,j.KJ)(e.canvas,T.oc.GRAB):(0,j.Uk)(e.canvas,e.state)),e.setState({cursorButton:"up"}),e.savePointer(t.clientX,t.clientY,"up"),window.removeEventListener(T.Ks.POINTER_MOVE,a),window.removeEventListener(T.Ks.POINTER_UP,s),window.removeEventListener(T.Ks.BLUR,s),a.flush()});return window.addEventListener(T.Ks.BLUR,s),window.addEventListener(T.Ks.POINTER_MOVE,a,{passive:!0}),window.addEventListener(T.Ks.POINTER_UP,s),!0},this.clearSelectionIfNotUsingSelection=function(){"selection"!==e.state.activeTool.type&&e.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null})},this.handleSelectionOnPointerDown=function(t,n){if("selection"===e.state.activeTool.type){var r=e.scene.getNonDeletedElements(),o=(0,ie.eD)(r,e.state);if(1!==o.length||e.state.editingLinearElement)o.length>1&&(n.resize.handleType=(0,H.n2)((0,H.KP)(o),n.origin.x,n.origin.y,e.state.zoom,t.pointerType));else{var i=(0,H.jt)(r,e.state,n.origin.x,n.origin.y,e.state.zoom,t.pointerType);null!=i&&(e.setState({resizingElement:i.element}),n.resize.handleType=i.transformHandleType)}if(n.resize.handleType)(0,j.KJ)(e.canvas,(0,H.Un)({transformHandleType:n.resize.handleType})),n.resize.isResizing=!0,n.resize.offset=(0,j.AK)((0,H.xx)(n.resize.handleType,o,n.origin.x,n.origin.y)),1===o.length&&(0,Y.bt)(o[0])&&2===o[0].points.length&&(n.resize.arrowDirection=(0,H.T)(n.resize.handleType,o[0]));else{var a;if(e.state.selectedLinearElement){var s=e.state.editingLinearElement||e.state.selectedLinearElement,l=K._.handlePointerDown(t,e.state,e.history,n.origin,s);if(l.hitElement&&(n.hit.element=l.hitElement),l.linearElementEditor&&(e.setState({selectedLinearElement:l.linearElementEditor}),e.state.editingLinearElement&&e.setState({editingLinearElement:l.linearElementEditor})),l.didAddPoint)return!0}if(n.hit.element=null!==(a=n.hit.element)&&void 0!==a?a:e.getElementAtPosition(n.origin.x,n.origin.y),n.hit.element&&e.getElementLinkAtPosition({x:n.origin.x,y:n.origin.y},n.hit.element))return!1;n.hit.allHitElements=e.getElementsAtPosition(n.origin.x,n.origin.y);var c=n.hit.element,u=n.hit.allHitElements.some((function(t){return e.isASelectedElement(t)}));if(null!==c&&u||t.shiftKey||n.hit.hasHitCommonBoundingBoxOfSelectedElements||e.clearSelection(c),e.state.editingLinearElement)e.setState({selectedElementIds:(0,f.Z)({},e.state.editingLinearElement.elementId,!0)});else if(null!=c){if(t[P.tW.CTRL_OR_CMD])return e.state.selectedElementIds[c.id]||(n.hit.wasAddedToSelection=!0),e.setState((function(t){return ur(ur({},(0,$.iE)(t,c)),{},{previousSelectedElementIds:e.state.selectedElementIds})})),!1;e.state.selectedElementIds[c.id]||(e.state.editingGroupId&&!(0,$.Nd)(c,e.state.editingGroupId)&&e.setState({selectedElementIds:{},selectedGroupIds:{},editingGroupId:null}),u||n.hit.hasHitCommonBoundingBoxOfSelectedElements||(e.setState((function(t){return(0,$.bO)(ur(ur({},t),{},{selectedElementIds:ur(ur({},t.selectedElementIds),{},(0,f.Z)({},c.id,!0)),showHyperlinkPopup:!!c.link&&"info"}),e.scene.getNonDeletedElements())})),n.hit.wasAddedToSelection=!0))}e.setState({previousSelectedElementIds:e.state.selectedElementIds})}}return!1},this.handleTextOnPointerDown=function(t,n){if(!(0,H.iB)(e.state.editingElement)){var r=n.origin.x,o=n.origin.y,i=e.getElementAtPosition(r,o,{includeBoundTextElement:!0}),a=(0,De.OW)(e.scene.getNonDeletedElements(),e.state,r,o);(0,Y.Xo)(i)&&(a=i,r=i.x+i.width/2,o=i.y+i.height/2),e.startTextEditing({sceneX:r,sceneY:o,insertAtParentCenter:!t.altKey,container:a}),(0,j.z8)(e.canvas),e.state.activeTool.locked||e.setState({activeTool:(0,j.Om)(e.state,{type:"selection"})})}},this.handleFreeDrawElementOnPointerDown=function(t,n,r){var a=(0,ne.wC)(r.origin.x,r.origin.y,null),s=(0,o.Z)(a,2),l=s[0],c=s[1],u=(0,V.KE)({type:n,x:l,y:c,strokeColor:e.state.currentItemStrokeColor,backgroundColor:e.state.currentItemBackgroundColor,fillStyle:e.state.currentItemFillStyle,strokeWidth:e.state.currentItemStrokeWidth,strokeStyle:e.state.currentItemStrokeStyle,roughness:e.state.currentItemRoughness,opacity:e.state.currentItemOpacity,roundness:null,simulatePressure:.5===t.pressure,locked:!1});e.setState((function(e){return{selectedElementIds:ur(ur({},e.selectedElementIds),{},(0,f.Z)({},u.id,!1))}}));var d=u.simulatePressure?u.pressures:[].concat((0,i.Z)(u.pressures),[t.pressure]);(0,C.DR)(u,{points:[[0,0]],pressures:d});var p=(0,O.Y9)(r.origin,e.scene);e.scene.replaceAllElements([].concat((0,i.Z)(e.scene.getElementsIncludingDeleted()),[u])),e.setState({draggingElement:u,editingElement:u,startBoundElement:p,suggestedBindings:[]})},this.createImageElement=function(t){var n=t.sceneX,r=t.sceneY,i=(0,ne.wC)(n,r,e.state.gridSize),a=(0,o.Z)(i,2),s=a[0],l=a[1];return(0,H.vw)({type:"image",x:s,y:l,strokeColor:e.state.currentItemStrokeColor,backgroundColor:e.state.currentItemBackgroundColor,fillStyle:e.state.currentItemFillStyle,strokeWidth:e.state.currentItemStrokeWidth,strokeStyle:e.state.currentItemStrokeStyle,roughness:e.state.currentItemRoughness,roundness:null,opacity:e.state.currentItemOpacity,locked:!1})},this.handleLinearElementOnPointerDown=function(t,n,r){if(e.state.multiElement){var a=e.state.multiElement;if("line"===a.type&&(0,ne.g6)(a.points,e.state.zoom.value))return(0,C.DR)(a,{lastCommittedPoint:a.points[a.points.length-1]}),void e.actionManager.executeAction(k.pL);var s=a.x,l=a.y,c=a.lastCommittedPoint;if(a.points.length>1&&c&&(0,ne.LW)(r.origin.x-s,r.origin.y-l,c[0],c[1])<T.qx)return void e.actionManager.executeAction(k.pL);e.setState((function(e){return{selectedElementIds:ur(ur({},e.selectedElementIds),{},(0,f.Z)({},a.id,!0))}})),(0,C.DR)(a,{lastCommittedPoint:a.points[a.points.length-1]}),(0,j.KJ)(e.canvas,T.oc.POINTER)}else{var u=(0,ne.wC)(r.origin.x,r.origin.y,e.state.gridSize),d=(0,o.Z)(u,2),p=d[0],h=d[1],m=e.state,g=m.currentItemStartArrowhead,v=m.currentItemEndArrowhead,b="arrow"===n?[g,v]:[null,null],y=(0,o.Z)(b,2),w=y[0],x=y[1],_=(0,H.y8)({type:n,x:p,y:h,strokeColor:e.state.currentItemStrokeColor,backgroundColor:e.state.currentItemBackgroundColor,fillStyle:e.state.currentItemFillStyle,strokeWidth:e.state.currentItemStrokeWidth,strokeStyle:e.state.currentItemStrokeStyle,roughness:e.state.currentItemRoughness,opacity:e.state.currentItemOpacity,roundness:"round"===e.state.currentItemRoundness?{type:T.a6.PROPORTIONAL_RADIUS}:null,startArrowhead:w,endArrowhead:x,locked:!1});e.setState((function(e){return{selectedElementIds:ur(ur({},e.selectedElementIds),{},(0,f.Z)({},_.id,!1))}})),(0,C.DR)(_,{points:[].concat((0,i.Z)(_.points),[[0,0]])});var S=(0,O.Y9)(r.origin,e.scene);e.scene.replaceAllElements([].concat((0,i.Z)(e.scene.getElementsIncludingDeleted()),[_])),e.setState({draggingElement:_,editingElement:_,startBoundElement:S,suggestedBindings:[]})}},this.createGenericElementOnPointerDown=function(t,n){var r=(0,ne.wC)(n.origin.x,n.origin.y,e.state.gridSize),a=(0,o.Z)(r,2),s=a[0],l=a[1],c=(0,H.Up)({type:t,x:s,y:l,strokeColor:e.state.currentItemStrokeColor,backgroundColor:e.state.currentItemBackgroundColor,fillStyle:e.state.currentItemFillStyle,strokeWidth:e.state.currentItemStrokeWidth,strokeStyle:e.state.currentItemStrokeStyle,roughness:e.state.currentItemRoughness,opacity:e.state.currentItemOpacity,roundness:"round"===e.state.currentItemRoundness?{type:(0,Y.QI)(t)?T.a6.ADAPTIVE_RADIUS:T.a6.PROPORTIONAL_RADIUS}:null,locked:!1});"selection"===c.type?e.setState({selectionElement:c,draggingElement:c}):(e.scene.replaceAllElements([].concat((0,i.Z)(e.scene.getElementsIncludingDeleted()),[c])),e.setState({multiElement:null,draggingElement:c,editingElement:c}))},this.restoreReadyToEraseElements=function(t){var n=e.scene.getElementsIncludingDeleted().map((function(e){return t.elementIdsToErase[e.id]&&t.elementIdsToErase[e.id].erase?(0,C.BE)(e,{opacity:t.elementIdsToErase[e.id].opacity}):(0,Y.Xh)(e)&&t.elementIdsToErase[e.containerId]&&t.elementIdsToErase[e.containerId].erase?(0,C.BE)(e,{opacity:t.elementIdsToErase[e.containerId].opacity}):e}));e.scene.replaceAllElements(n)},this.eraseElements=function(t){var n=e.scene.getElementsIncludingDeleted().map((function(e){return t.elementIdsToErase[e.id]&&t.elementIdsToErase[e.id].erase||(0,Y.Xh)(e)&&t.elementIdsToErase[e.containerId]&&t.elementIdsToErase[e.containerId].erase?(0,C.BE)(e,{isDeleted:!0}):e}));e.history.resumeRecording(),e.scene.replaceAllElements(n)},this.initializeImage=function(){var t=(0,a.Z)(m().mark((function t(n){var r,o,i,s,l,c,u,d,p,h,g,v,b,y,w;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=n.imageFile,l=n.imageElement,c=n.showCursorImagePreview,u=void 0!==c&&c,(0,Ke.Wr)(s)){t.next=3;break}throw new Error((0,E.t)("errors.unsupportedFileType"));case 3:if(d=s.type,(0,j.KJ)(e.canvas,"wait"),d!==T.LO.svg){t.next=23;break}return t.prev=6,t.t0=Ke.Pn,t.t1=Yn.bp,t.next=11,s.text();case 11:return t.t2=t.sent,t.next=14,(0,t.t1)(t.t2);case 14:t.t3=t.sent,t.t4=s.name,s=(0,t.t0)(t.t3,t.t4),t.next=23;break;case 19:throw t.prev=19,t.t5=t.catch(6),console.warn(t.t5),new Error((0,E.t)("errors.svgImageInsertError"));case 23:return t.next=25,(null===(r=(o=e.props).generateIdForFile)||void 0===r?void 0:r.call(o,s))||(0,Ke.tW)(s);case 25:if(p=t.sent){t.next=29;break}throw console.warn("Couldn't generate file id or the supplied `generateIdForFile` didn't resolve to one."),new Error((0,E.t)("errors.imageInsertError"));case 29:if(null!=(h=e.files[p])&&h.dataURL){t.next=42;break}return t.prev=31,t.next=34,(0,Ke.Tu)(s,{maxWidthOrHeight:T.h6});case 34:s=t.sent,t.next=40;break;case 37:t.prev=37,t.t6=t.catch(31),console.error("error trying to resing image file on insertion",t.t6);case 40:if(!(s.size>T.$n)){t.next=42;break}throw new Error((0,E.t)("errors.fileTooBig",{maxSize:"".concat(Math.trunc(T.$n/1024/1024),"MB")}));case 42:if(u&&(v=null===(g=e.files[p])||void 0===g?void 0:g.dataURL,b=v&&(0,Ke.KG)(v),e.setImagePreviewCursor(b||s)),t.t7=null===(i=e.files[p])||void 0===i?void 0:i.dataURL,t.t7){t.next=48;break}return t.next=47,(0,Ke.Sf)(s);case 47:t.t7=t.sent;case 48:return y=t.t7,w=(0,C.DR)(l,{fileId:p},!1),t.abrupt("return",new Promise(function(){var t=(0,a.Z)(m().mark((function t(n,r){var o,i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e.files=ur(ur({},e.files),{},(0,f.Z)({},p,{mimeType:d,id:p,dataURL:y,created:Date.now(),lastRetrieved:Date.now()})),i=e.imageCache.get(p)){t.next=7;break}return e.addNewImagesToImageCache(),t.next=7,e.updateImageCache([w]);case 7:if(!((null==i?void 0:i.image)instanceof Promise)){t.next=10;break}return t.next=10,i.image;case 10:e.state.pendingImageElementId!==w.id&&(null===(o=e.state.draggingElement)||void 0===o?void 0:o.id)!==w.id&&e.initializeImageDimensions(w,!0),n(w),t.next=18;break;case 14:t.prev=14,t.t0=t.catch(0),console.error(t.t0),r(new Error((0,E.t)("errors.imageInsertError")));case 18:return t.prev=18,u||(0,j.z8)(e.canvas),t.finish(18);case 21:case"end":return t.stop()}}),t,null,[[0,14,18,21]])})));return function(e,n){return t.apply(this,arguments)}}()));case 51:case"end":return t.stop()}}),t,null,[[6,19],[31,37]])})));return function(e){return t.apply(this,arguments)}}(),this.insertImageElement=function(){var t=(0,a.Z)(m().mark((function t(n,r,o){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.scene.replaceAllElements([].concat((0,i.Z)(e.scene.getElementsIncludingDeleted()),[n])),t.prev=1,t.next=4,e.initializeImage({imageFile:r,imageElement:n,showCursorImagePreview:o});case 4:t.next=11;break;case 6:t.prev=6,t.t0=t.catch(1),(0,C.DR)(n,{isDeleted:!0}),e.actionManager.executeAction(k.pL),e.setState({errorMessage:t.t0.message||(0,E.t)("errors.imageInsertError")});case 11:case"end":return t.stop()}}),t,null,[[1,6]])})));return function(e,n,r){return t.apply(this,arguments)}}(),this.setImagePreviewCursor=function(){var t=(0,a.Z)(m().mark((function t(n){var r,o,i,a,s,l,c;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=96,t.next=3,(0,Ke.Tu)(n,{maxWidthOrHeight:r});case 3:return o=t.sent,t.next=6,(0,Ke.Sf)(o);case 6:if(i=t.sent,n.type!==T.LO.svg){t.next=20;break}return t.next=10,(0,Yn.PK)(i);case 10:a=t.sent,s=Math.min(a.height,r),(l=s*(a.width/a.height))>r&&(s=(l=r)*(a.height/a.width)),(c=document.createElement("canvas")).height=s,c.width=l,c.getContext("2d").drawImage(a,0,0,l,s),i=c.toDataURL(T.LO.svg);case 20:e.state.pendingImageElementId&&(0,j.KJ)(e.canvas,"url(".concat(i,") 4 4, auto"));case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.onImageAction=(0,a.Z)(m().mark((function t(){var n,r,o,i,a,s,l,c,u,d=arguments;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=d.length>0&&void 0!==d[0]?d[0]:{insertOnCanvasDirectly:!1},r=n.insertOnCanvasDirectly,t.prev=1,o=e.state.width/2+e.state.offsetLeft,i=e.state.height/2+e.state.offsetTop,a=(0,j.dE)({clientX:o,clientY:i},e.state),s=a.x,l=a.y,t.next=7,(0,Xe.I$)({description:"Image",extensions:["jpg","png","svg","gif"]});case 7:c=t.sent,u=e.createImageElement({sceneX:s,sceneY:l}),r?(e.insertImageElement(u,c),e.initializeImageDimensions(u),e.setState({selectedElementIds:(0,f.Z)({},u.id,!0)},(function(){e.actionManager.executeAction(k.pL)}))):e.setState({pendingImageElementId:u.id},(function(){e.insertImageElement(u,c,!0)})),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(1),"AbortError"!==t.t0.name?console.error(t.t0):console.warn(t.t0),e.setState({pendingImageElementId:null,editingElement:null,activeTool:(0,j.Om)(e.state,{type:"selection"})},(function(){e.actionManager.executeAction(k.pL)}));case 16:case"end":return t.stop()}}),t,null,[[1,12]])}))),this.initializeImageDimensions=function(t){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=(0,Y.wi)(t)&&(null===(n=e.imageCache.get(t.fileId))||void 0===n?void 0:n.image);if(!o||o instanceof Promise){if(t.width<T.f/e.state.zoom.value&&t.height<T.f/e.state.zoom.value){var i=100/e.state.zoom.value;(0,C.DR)(t,{x:t.x-i/2,y:t.y-i/2,width:i,height:i})}}else if(r||t.width<T.f/e.state.zoom.value&&t.height<T.f/e.state.zoom.value){var a=Math.max(e.state.height-120,160),s=Math.min(a,Math.floor(.5*e.state.height)/e.state.zoom.value),l=Math.min(o.naturalHeight,s),c=l*(o.naturalWidth/o.naturalHeight),u=t.x+t.width/2-c/2,d=t.y+t.height/2-l/2;(0,C.DR)(t,{x:u,y:d,width:c,height:l})}},this.updateImageCache=function(){var t=(0,a.Z)(m().mark((function t(n){var r,o,i,a,s,l,c,u=arguments;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:e.files,t.next=3,(0,Yn.Xx)({imageCache:e.imageCache,fileIds:n.map((function(e){return e.fileId})),files:r});case 3:if(o=t.sent,i=o.updatedFiles,a=o.erroredFiles,i.size||a.size){s=ar(n);try{for(s.s();!(l=s.n()).done;)c=l.value,i.has(c.fileId)&&(0,oe.bI)(c)}catch(e){s.e(e)}finally{s.f()}}return a.size&&e.scene.replaceAllElements(e.scene.getElementsIncludingDeleted().map((function(e){return(0,Y.wi)(e)&&a.has(e.fileId)?(0,C.BE)(e,{status:"error"}):e}))),t.abrupt("return",{updatedFiles:i,erroredFiles:a});case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.addNewImagesToImageCache=(0,a.Z)(m().mark((function t(){var n,r,o,i=arguments;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=i.length>0&&void 0!==i[0]?i[0]:(0,Yn.oA)(e.scene.getNonDeletedElements()),r=i.length>1&&void 0!==i[1]?i[1]:e.files,!(o=n.filter((function(t){return!t.isDeleted&&!e.imageCache.has(t.fileId)}))).length){t.next=9;break}return t.next=6,e.updateImageCache(o,r);case 6:t.sent.updatedFiles.size&&e.scene.informMutation();case 9:case"end":return t.stop()}}),t)}))),this.scheduleImageRefresh=qn()((function(){e.addNewImagesToImageCache()}),T.LL),this.updateBindingEnabledOnPointerMove=function(t){var n=(0,O.cz)(t);e.state.isBindingEnabled!==n&&e.setState({isBindingEnabled:n})},this.maybeSuggestBindingAtCursor=function(t){var n=(0,O.Y9)(t,e.scene);e.setState({suggestedBindings:null!=n?[n]:[]})},this.maybeSuggestBindingsForLinearElementAtCoords=function(t,n,r){if(n.length){var o=n.reduce((function(n,o){var i=(0,O.Y9)(o,e.scene);return null==i||(0,O.DK)(t,null==r?void 0:r.id,i)||n.push(i),n}),[]);e.setState({suggestedBindings:o})}},this.handleCanvasRef=function(t){var n,r,o;null!==t?(e.canvas=t,e.rc=y.Z.canvas(e.canvas),e.canvas.addEventListener(T.Ks.WHEEL,e.handleWheel,{passive:!1}),e.canvas.addEventListener(T.Ks.TOUCH_START,e.onTapStart),e.canvas.addEventListener(T.Ks.TOUCH_END,e.onTapEnd)):(null===(n=e.canvas)||void 0===n||n.removeEventListener(T.Ks.WHEEL,e.handleWheel),null===(r=e.canvas)||void 0===r||r.removeEventListener(T.Ks.TOUCH_START,e.onTapStart),null===(o=e.canvas)||void 0===o||o.removeEventListener(T.Ks.TOUCH_END,e.onTapEnd))},this.handleAppOnDrop=function(){var t=(0,a.Z)(m().mark((function t(n){var r,o,i,a,s,l,c,u,d,p;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Ke.bv)(n);case 2:if(r=t.sent,o=r.file,i=r.fileHandle,t.prev=5,!(0,Ke.Wr)(o)){t.next=26;break}if((null==o?void 0:o.type)!==T.LO.png&&(null==o?void 0:o.type)!==T.LO.svg){t.next=20;break}return t.prev=8,t.next=11,(0,B.cT)(o,e.state,e.scene.getElementsIncludingDeleted(),i);case 11:return a=t.sent,e.syncActionResult(ur(ur({},a),{},{appState:ur(ur({},a.appState||e.state),{},{isLoading:!1}),replaceFiles:!0,commitToHistory:!0})),t.abrupt("return");case 16:if(t.prev=16,t.t0=t.catch(8),"EncodingError"===t.t0.name){t.next=20;break}throw t.t0;case 20:return s=(0,j.dE)(n,e.state),l=s.x,c=s.y,u=e.createImageElement({sceneX:l,sceneY:c}),e.insertImageElement(u,o),e.initializeImageDimensions(u),e.setState({selectedElementIds:(0,f.Z)({},u.id,!0)}),t.abrupt("return");case 26:t.next=31;break;case 28:return t.prev=28,t.t1=t.catch(5),t.abrupt("return",e.setState({isLoading:!1,errorMessage:t.t1.message}));case 31:if(!(d=n.dataTransfer.getData(T.LO.excalidrawlib))||"string"!=typeof d){t.next=35;break}try{p=(0,Ke.wf)(d),e.addElementsFromPasteOrLibrary({elements:(0,U.WV)(p),position:n,files:null})}catch(t){e.setState({errorMessage:t.message})}return t.abrupt("return");case 35:if(!o){t.next=38;break}return t.next=38,e.loadFileToCanvas(o,i);case 38:case"end":return t.stop()}}),t,null,[[5,28],[8,16]])})));return function(e){return t.apply(this,arguments)}}(),this.loadFileToCanvas=function(){var t=(0,a.Z)(m().mark((function t(n,r){var o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Ke.gY)(n);case 2:return n=t.sent,t.prev=3,t.next=6,(0,Ke.ZY)(n,e.state,e.scene.getElementsIncludingDeleted(),r);case 6:if((o=t.sent).type!==T.LO.excalidraw){t.next=12;break}e.setState({isLoading:!0}),e.syncActionResult(ur(ur({},o.data),{},{appState:ur(ur({},o.data.appState||e.state),{},{isLoading:!1}),replaceFiles:!0,commitToHistory:!0})),t.next=15;break;case 12:if(o.type!==T.LO.excalidrawlib){t.next=15;break}return t.next=15,e.library.updateLibrary({libraryItems:n,merge:!0,openLibraryMenu:!0}).catch((function(t){console.error(t),e.setState({errorMessage:(0,E.t)("errors.importLibraryError")})}));case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(3),e.setState({isLoading:!1,errorMessage:t.t0.message});case 20:case"end":return t.stop()}}),t,null,[[3,17]])})));return function(e,n){return t.apply(this,arguments)}}(),this.handleCanvasContextMenu=function(t){if(t.preventDefault(),"touch"!==t.nativeEvent.pointerType&&("pen"!==t.nativeEvent.pointerType||t.button===T.Oh.SECONDARY)||"selection"===e.state.activeTool.type){var n=(0,j.dE)(t,e.state),r=n.x,o=n.y,i=e.getElementAtPosition(r,o,{preferSelected:!0,includeLockedElements:!0}),a=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state),s=e.isHittingCommonBoundingBoxOfSelectedElements({x:r,y:o},a),l=i||s?"element":"canvas",c=e.excalidrawContainerRef.current.getBoundingClientRect(),u=c.top,d=c.left,p=t.clientX-d,h=t.clientY-u;(0,L.L)("contextMenu","openContextMenu",l),e.setState(ur(ur({},i&&!e.state.selectedElementIds[i.id]?(0,$.bO)(ur(ur({},e.state),{},{selectedElementIds:(0,f.Z)({},i.id,!0),selectedLinearElement:(0,Y.bt)(i)?new K._(i,e.scene):null}),e.scene.getNonDeletedElements()):e.state),{},{showHyperlinkPopup:!1}),(function(){e.setState({contextMenu:{top:h,left:p,items:e.getContextMenuItems(l)}})}))}},this.maybeDragNewGenericElement=function(t,n){var r=e.state.draggingElement,i=t.lastCoords;if(r)if("selection"===r.type&&"eraser"!==e.state.activeTool.type)(0,H.EJ)(r,e.state.activeTool.type,t.origin.x,t.origin.y,i.x,i.y,(0,j.TE)(t.origin.x,i.x),(0,j.TE)(t.origin.y,i.y),(0,P.E0)(n),(0,P.OA)(n));else{var a,s=(0,ne.wC)(i.x,i.y,e.state.gridSize),l=(0,o.Z)(s,2),c=l[0],u=l[1],d=(0,Y.wi)(r)&&(null===(a=e.imageCache.get(r.fileId))||void 0===a?void 0:a.image),p=!d||d instanceof Promise?null:d.width/d.height;(0,H.EJ)(r,e.state.activeTool.type,t.originInGrid.x,t.originInGrid.y,c,u,(0,j.TE)(t.originInGrid.x,c),(0,j.TE)(t.originInGrid.y,u),(0,Y.pC)(r)?!(0,P.E0)(n):(0,P.E0)(n),(0,P.OA)(n),p),e.maybeSuggestBindingForAll([r])}},this.maybeHandleResize=function(t,n){var r=(0,ie.eD)(e.scene.getNonDeletedElements(),e.state),i=t.resize.handleType;e.setState({isResizing:i&&"rotation"!==i,isRotating:"rotation"===i});var a=t.lastCoords,s=(0,ne.wC)(a.x-t.resize.offset.x,a.y-t.resize.offset.y,e.state.gridSize),l=(0,o.Z)(s,2),c=l[0],u=l[1];return!!(0,H.vY)(t,i,r,t.resize.arrowDirection,(0,P.Ge)(n),(0,P.OA)(n),1===r.length&&(0,Y.pC)(r[0])?!(0,P.E0)(n):(0,P.E0)(n),c,u,t.resize.center.x,t.resize.center.y)&&(e.maybeSuggestBindingForAll(r),!0)},this.getContextMenuItems=function(t){var n=[];return n.push(k.jK,k.FA),"canvas"===t?e.state.viewModeEnabled?[].concat(n,[k.Pb,k.JN,Vn,k.u0]):[nr.yQ,Ee,k.jK,k.FA,k.zp,Ee,k.Yy,Ee,k.Pb,k.JN,Vn,k.u0]:(n.push(k.zp),e.state.viewModeEnabled?[k.uN].concat(n):[k.ZM,k.uN,nr.yQ,Ee].concat(n,[Ee,k.pw,k.W3,Ee,k.EQ,k.y7,k.vD,or.JQ,k.s,Ee,k.FL,Ee,k.V,k.yA,k.zi,k.BZ,Ee,k.jl,k.kt,Ee,k.Qs,k.nz,k.xF,k.iL,Ee,k.X9]))},this.handleWheel=(0,j.tH)((function(t){if(t.preventDefault(),!jr){var n=t.deltaX,r=t.deltaY;if(t.metaKey||t.ctrlKey){var o=Math.sign(r),i=100*T.V4,a=Math.abs(r),s=r;a>i&&(s=i*o);var l=e.state.zoom.value-s/100;return l+=Math.log10(Math.max(1,e.state.zoom.value))*-o*Math.min(1,a/20),e.translateCanvas((function(e){return ur(ur({},(0,se.E)({viewportX:Pr,viewportY:Cr,nextZoom:(0,ie.j)(l)},e)),{},{shouldCacheIgnoreZoom:!0})})),void e.resetShouldCacheIgnoreZoomDebounced()}t.shiftKey?e.translateCanvas((function(e){var t=e.zoom;return{scrollX:e.scrollX-(r||n)/t.value}})):e.translateCanvas((function(e){var t=e.zoom,o=e.scrollX,i=e.scrollY;return{scrollX:o-n/t.value,scrollY:i-r/t.value}}))}})),this.savePointer=function(t,n,r){var o,i;if(t&&n){var a=(0,j.dE)({clientX:t,clientY:n},e.state);isNaN(a.x)||isNaN(a.y),null===(o=(i=e.props).onPointerUpdate)||void 0===o||o.call(i,{pointer:a,button:r,pointersMap:Fr.pointers})}},this.resetShouldCacheIgnoreZoomDebounced=(0,j.Ds)((function(){e.unmounted||e.setState({shouldCacheIgnoreZoom:!1})}),300),this.updateDOMRect=function(t){var n;if(null!==(n=e.excalidrawContainerRef)&&void 0!==n&&n.current){var r=e.excalidrawContainerRef.current.getBoundingClientRect(),o=r.width,i=r.height,a=r.left,s=r.top,l=e.state,c=l.width,u=l.height,d=l.offsetTop,p=l.offsetLeft;if(o===c&&i===u&&a===p&&s===d)return void(t&&t());e.setState({width:o,height:i,offsetLeft:a,offsetTop:s},(function(){t&&t()}))}},this.refresh=function(){e.setState(ur({},e.getCanvasOffsets()))}};"production"!==T.Vi.TEST&&"production"!==T.Vi.DEVELOPMENT||(window.h=window.h||{},Object.defineProperties(window.h,{elements:{configurable:!0,get:function(){var e;return null===(e=this.app)||void 0===e?void 0:e.scene.getElementsIncludingDeleted()},set:function(e){var t;return null===(t=this.app)||void 0===t?void 0:t.scene.replaceAllElements(e)}}}));var Ur=Zr},3807:function(e,t,n){"use strict";n.d(t,{o:function(){return w}});var r=n(45),o=n(3646),i=n(487),a=n.n(i),s=n(631),l=n.n(s),c=n(2052),u=n.n(c),d=n(4010),p=n.n(d),f=n(1469),h=n.n(f),m=n(9329),g=n.n(m),v=n(6029),b={};b.styleTagTransform=g(),b.setAttributes=p(),b.insert=u().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=h(),a()(v.Z,b),v.Z&&v.Z.locals&&v.Z.locals;var y=n(4512),w=function(e){var t=e.children,n=e.checked,i=e.onChange,a=e.className;return(0,y.jsxs)("div",{className:(0,r.Z)("Checkbox",a,{"is-checked":n}),onClick:function(e){i(!n,e),e.currentTarget.querySelector(".Checkbox-box").focus()},children:[(0,y.jsx)("button",{className:"Checkbox-box",role:"checkbox","aria-checked":n,children:o.eQ}),(0,y.jsx)("div",{className:"Checkbox-label",children:t})]})}},4499:function(e,t,n){"use strict";n.d(t,{z:function(){return M}});var r=n(2577),o=n(9787),i=n.n(o),a=n(2891),s=n(6340),l=n(487),c=n.n(l),u=n(631),d=n.n(u),p=n(2052),f=n.n(p),h=n(4010),m=n.n(h),g=n(1469),v=n.n(g),b=n(9329),y=n.n(b),w=n(2345),x={};x.styleTagTransform=y(),x.setAttributes=m(),x.insert=f().bind(null,"head"),x.domAPI=d(),x.insertStyleElement=v(),c()(w.Z,x),w.Z&&w.Z.locals&&w.Z.locals;var k=n(6066),_=n(8211),S=n(56),E=n(4512),P=function(e,t){return!S.Z[t].includes(e)},C=function(e){var t=(new Option).style;return t.color=e,!!t.color},O=[["1","2","3","4","5"],["q","w","e","r","t"],["a","s","d","f","g"],["z","x","c","v","b"]].flat(),j=function(e){var t=e.colors,n=e.color,o=e.onChange,a=e.onClose,l=e.label,c=e.showInput,u=void 0===c||c,d=e.type,p=e.elements,f=i().useRef(),h=i().useRef(),m=i().useRef(),g=i().useRef(),v=i().useState((function(){return"canvasBackground"===d?[]:function(e,t){for(var n=[],r=e.filter((function(e){return!e.isDeleted})).sort((function(e,t){return t.updated-e.updated})),o=0,i={elementBackground:"backgroundColor",elementStroke:"strokeColor"}[t];o<r.length&&n.length<5;){var a=r[o];n.length<5&&P(a[i],t)&&!n.includes(a[i])&&n.push(a[i]),o++}return n}(p,d)})),b=(0,r.Z)(v,1)[0];i().useEffect((function(){h.current?h.current.focus():g.current?g.current.focus():m.current&&m.current.focus()}),[]);var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.map((function(e,r){var i=e.replace("#",""),a=t?O[r+15]:O[r],l=t?i:(0,_.t)("colors.".concat(i));return(0,E.jsxs)("button",{className:"color-picker-swatch",onClick:function(t){t.currentTarget.focus(),o(e)},title:"".concat(l).concat((0,s.Qm)(e)?"":" (".concat(e,")")," — ").concat(a.toUpperCase()),"aria-label":l,"aria-keyshortcuts":O[r],style:{color:e},ref:function(o){!t&&o&&0===r&&(f.current=o),o&&e===n&&(h.current=o)},onFocus:function(){o(e)},children:[(0,s.Qm)(e)?(0,E.jsx)("div",{className:"color-picker-transparent"}):void 0,(0,E.jsx)("span",{className:"color-picker-keybinding",children:a})]},e)}))};return(0,E.jsxs)("div",{className:"color-picker color-picker-type-".concat(d),role:"dialog","aria-modal":"true","aria-label":(0,_.t)("labels.colorPicker"),onKeyDown:function(e){var t=!1;if((0,k.Wl)(e.key)){var n,r,o;t=!0;var i,l=document.activeElement,c=(0,_.G3)().rtl,d=!1,p=Array.prototype.indexOf.call(null===(n=m.current.querySelector(".color-picker-content--default"))||void 0===n?void 0:n.children,l);-1===p&&-1!==(p=Array.prototype.indexOf.call(null===(i=m.current.querySelector(".color-picker-content--canvas-colors"))||void 0===i?void 0:i.children,l))&&(d=!0);var f=d?null===(r=m.current)||void 0===r?void 0:r.querySelector(".color-picker-content--canvas-colors"):null===(o=m.current)||void 0===o?void 0:o.querySelector(".color-picker-content--default");if(f&&-1!==p){var h,g=f.children.length-(u?1:0),v=e.key===(c?k.tW.ARROW_LEFT:k.tW.ARROW_RIGHT)?(p+1)%g:e.key===(c?k.tW.ARROW_RIGHT:k.tW.ARROW_LEFT)?(g+p-1)%g:d||e.key!==k.tW.ARROW_DOWN?d||e.key!==k.tW.ARROW_UP?p:(g+p-5)%g:(p+5)%g;null===(h=f.children[v])||void 0===h||h.focus()}e.preventDefault()}else if(!O.includes(e.key.toLowerCase())||e[k.tW.CTRL_OR_CMD]||e.altKey||(0,s.s)(e.target))e.key!==k.tW.ESCAPE&&e.key!==k.tW.ENTER||(t=!0,e.preventDefault(),a());else{var b,y,w;t=!0;var x=O.indexOf(e.key.toLowerCase()),S=x>=15,E=S?null==m||null===(b=m.current)||void 0===b?void 0:b.querySelector(".color-picker-content--canvas-colors"):null==m||null===(y=m.current)||void 0===y?void 0:y.querySelector(".color-picker-content--default"),P=S?x-15:x;null==E||null===(w=E.children[P])||void 0===w||w.focus(),e.preventDefault()}t&&(e.nativeEvent.stopImmediatePropagation(),e.stopPropagation())},children:[(0,E.jsx)("div",{className:"color-picker-triangle color-picker-triangle-shadow"}),(0,E.jsx)("div",{className:"color-picker-triangle"}),(0,E.jsxs)("div",{className:"color-picker-content",ref:function(e){e&&(m.current=e)},tabIndex:-1,children:[(0,E.jsx)("div",{className:"color-picker-content--default",children:y(t)}),!!b.length&&(0,E.jsxs)("div",{className:"color-picker-content--canvas",children:[(0,E.jsx)("span",{className:"color-picker-content--canvas-title",children:(0,_.t)("labels.canvasColors")}),(0,E.jsx)("div",{className:"color-picker-content--canvas-colors",children:y(b,!0)})]}),u&&(0,E.jsx)(T,{color:n,label:l,onChange:function(e){o(e)},ref:g})]})]})},T=i().forwardRef((function(e,t){var n=e.color,o=e.onChange,a=e.label,l=i().useState(n),c=(0,r.Z)(l,2),u=c[0],d=c[1],p=i().useRef(null);i().useEffect((function(){d(n)}),[n]),i().useImperativeHandle(t,(function(){return p.current}));var f=i().useCallback((function(e){var t=e.toLowerCase(),n=function(e){return(0,s.Qm)(e)?e:C("#".concat(e))?"#".concat(e):C(e)?e:null}(t);n&&o(n),d(t)}),[o]);return(0,E.jsxs)("label",{className:"color-input-container",children:[(0,E.jsx)("div",{className:"color-picker-hash",children:"#"}),(0,E.jsx)("input",{spellCheck:!1,className:"color-picker-input","aria-label":a,onChange:function(e){return f(e.target.value)},value:(u||"").replace(/^#/,""),onBlur:function(){return d(n)},ref:p})]})}));T.displayName="ColorInput";var M=function(e){var t,n=e.type,r=e.color,o=e.onChange,s=e.label,l=e.isActive,c=e.setActive,u=e.elements,d=(e.appState,i().useRef(null)),p=null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect();return(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"color-picker-control-container",children:[(0,E.jsx)("div",{className:"color-picker-label-swatch-container",children:(0,E.jsx)("button",{className:"color-picker-label-swatch","aria-label":s,style:r?{"--swatch-color":r}:void 0,onClick:function(){return c(!l)},ref:d})}),(0,E.jsx)(T,{color:r,label:s,onChange:function(e){o(e)}})]}),(0,E.jsx)(i().Suspense,{fallback:"",children:l?(0,E.jsx)("div",{className:"color-picker-popover-container",style:{position:"fixed",top:null==p?void 0:p.top,left:null==p?void 0:p.right,zIndex:1},children:(0,E.jsx)(a.J,{onCloseRequest:function(e){return e.target!==d.current&&c(!1)},children:(0,E.jsx)(j,{colors:S.Z[n],color:r||null,onChange:function(e){o(e)},onClose:function(){var e;c(!1),null===(e=d.current)||void 0===e||e.focus()},label:s,showInput:!1,type:n,elements:u})})}):null})]})}},7046:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(7169),o=n(2726),i=n(8211),a=n(8396),s=n(487),l=n.n(s),c=n(631),u=n.n(c),d=n(2052),p=n.n(d),f=n(4010),h=n.n(f),m=n(1469),g=n.n(m),v=n(9329),b=n.n(v),y=n(9393),w={};w.styleTagTransform=b(),w.setAttributes=h(),w.insert=p().bind(null,"head"),w.domAPI=u(),w.insertStyleElement=g(),l()(y.Z,w),y.Z&&y.Z.locals&&y.Z.locals;var x=n(6428),k=n(4739),_=n(9206),S=n(2134),E=n(9487),P=n(4512),C=["onConfirm","onCancel","children","confirmText","cancelText","className"];function O(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?O(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=function(e){var t=e.onConfirm,n=e.onCancel,r=e.children,s=e.confirmText,l=void 0===s?(0,i.t)("buttons.confirm"):s,c=e.cancelText,u=void 0===c?(0,i.t)("buttons.cancel"):c,d=e.className,p=void 0===d?"":d,f=(0,o.Z)(e,C),h=(0,S.n9)(),m=(0,k.b9)(_.u,E.yE);return(0,P.jsxs)(a.V,j(j({onCloseRequest:n,small:!0},f),{},{className:"confirm-dialog ".concat(p),children:[r,(0,P.jsxs)("div",{className:"confirm-dialog-buttons",children:[(0,P.jsx)(x.Z,{label:u,onClick:function(){h({openMenu:null}),m(!1),n()}}),(0,P.jsx)(x.Z,{label:l,onClick:function(){h({openMenu:null}),m(!1),t()},actionType:"danger"})]})]}))}},8396:function(e,t,n){"use strict";n.d(t,{V:function(){return N}});var r=n(2577),o=n(45),i=n(9787),a=n(8211),s=n(2134),l=n(6066),c=n(487),u=n.n(c),d=n(631),p=n.n(d),f=n(2052),h=n.n(f),m=n(4010),g=n.n(m),v=n(1469),b=n.n(v),y=n(9329),w=n.n(y),x=n(9482),k={};k.styleTagTransform=w(),k.setAttributes=g(),k.insert=h().bind(null,"head"),k.domAPI=p(),k.insertStyleElement=b(),u()(x.Z,k),x.Z&&x.Z.locals&&x.Z.locals;var _=n(3646),S=n(1881),E=n(6843),P={};P.styleTagTransform=w(),P.setAttributes=g(),P.insert=h().bind(null,"head"),P.domAPI=p(),P.insertStyleElement=b(),u()(E.Z,P),E.Z&&E.Z.locals&&E.Z.locals;var C=n(5156),O=n(2335),j=n(4512),T=function(e){var t=e.theme,n=void 0===t?O.C6.LIGHT:t,r=e.closeOnClickOutside,i=void 0===r||r,a=M(n);return a?(0,C.createPortal)((0,j.jsxs)("div",{className:(0,o.Z)("Modal",e.className),role:"dialog","aria-modal":"true",onKeyDown:function(t){t.key===l.tW.ESCAPE&&(t.nativeEvent.stopImmediatePropagation(),t.stopPropagation(),e.onCloseRequest())},"aria-labelledby":e.labelledBy,"data-prevent-outside-click":!0,children:[(0,j.jsx)("div",{className:"Modal__background",onClick:i?e.onCloseRequest:void 0}),(0,j.jsx)("div",{className:"Modal__content",style:{"--max-width":"".concat(e.maxWidth,"px")},tabIndex:0,children:e.children})]}),a):null},M=function(e){var t=(0,i.useState)(null),n=(0,r.Z)(t,2),o=n[0],a=n[1],l=(0,s.Fy)(),c=(0,i.useRef)(l.isMobile);c.current=l.isMobile;var u=(0,s.J0)().container;return(0,i.useLayoutEffect)((function(){o&&o.classList.toggle("excalidraw--mobile",l.isMobile)}),[o,l.isMobile]),(0,i.useLayoutEffect)((function(){var t=!(null==u||!u.classList.contains("theme--dark"))||"dark"===e,n=document.createElement("div");return n.classList.add("excalidraw","excalidraw-modal-container"),n.classList.toggle("excalidraw--mobile",c.current),t&&(n.classList.add("theme--dark"),n.classList.add("theme--dark-background-none")),document.body.appendChild(n),a(n),function(){document.body.removeChild(n)}}),[u,e]),o},I=n(6340),D=n(4739),A=n(9206),L=n(9487),N=function(e){var t=function(){var e=(0,i.useState)(null),t=(0,r.Z)(e,2),n=t[0],o=t[1];return[n,(0,i.useCallback)((function(e){return o(e)}),[])]}(),n=(0,r.Z)(t,2),c=n[0],u=n[1],d=(0,i.useState)(document.activeElement),p=(0,r.Z)(d,1)[0],f=(0,s.J0)().id;(0,i.useEffect)((function(){if(c){var t=(0,I.xp)(c);t.length>0&&!1!==e.autofocus&&(t[1]||t[0]).focus();var n=function(e){if(e.key===l.tW.TAB){var t=(0,I.xp)(c),n=document.activeElement,r=t.findIndex((function(e){return e===n}));0===r&&e.shiftKey?(t[t.length-1].focus(),e.preventDefault()):r!==t.length-1||e.shiftKey||(t[0].focus(),e.preventDefault())}};return c.addEventListener("keydown",n),function(){return c.removeEventListener("keydown",n)}}}),[c,e.autofocus]);var h=(0,s.n9)(),m=(0,D.b9)(A.u,L.yE),g=function(){h({openMenu:null}),m(!1),p.focus(),e.onCloseRequest()};return(0,j.jsx)(T,{className:(0,o.Z)("Dialog",e.className),labelledBy:"dialog-title",maxWidth:e.small?550:800,onCloseRequest:g,theme:e.theme,closeOnClickOutside:e.closeOnClickOutside,children:(0,j.jsxs)(S.W,{ref:u,children:[(0,j.jsxs)("h2",{id:"".concat(f,"-dialog-title"),className:"Dialog__title",children:[(0,j.jsx)("span",{className:"Dialog__titleContent",children:e.title}),(0,j.jsx)("button",{className:"Modal__close",onClick:g,title:(0,a.t)("buttons.close"),"aria-label":(0,a.t)("buttons.close"),children:(0,s.Fy)().isMobile?_.op:_.Tw})]}),(0,j.jsx)("div",{className:"Dialog__content",children:e.children})]})})}},6428:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(7169),o=n(2726),i=n(45),a=n(487),s=n.n(a),l=n(631),c=n.n(l),u=n(2052),d=n.n(u),p=n(4010),f=n.n(p),h=n(1469),m=n.n(h),g=n(9329),v=n.n(g),b=n(6148),y={};y.styleTagTransform=v(),y.setAttributes=f(),y.insert=d().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=m(),s()(b.Z,y),b.Z&&b.Z.locals&&b.Z.locals;var w=n(5644),x=n(4512),k=["label","onClick","className","children","actionType","type","isLoading"];function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=function(e){var t=e.label,n=e.onClick,r=e.className,a=e.children,s=e.actionType,l=e.type,c=void 0===l?"button":l,u=e.isLoading,d=(0,o.Z)(e,k),p=s?"Dialog__action-button--".concat(s):"";return(0,x.jsxs)("button",S(S({className:(0,i.Z)("Dialog__action-button",p,r),type:c,"aria-label":t,onClick:n},d),{},{children:[a&&(0,x.jsx)("div",{style:u?{visibility:"hidden"}:{},children:a}),(0,x.jsx)("div",{style:u?{visibility:"hidden"}:{},children:t}),u&&(0,x.jsx)("div",{style:{position:"absolute",inset:0},children:(0,x.jsx)(w.Z,{})})]}))}},1881:function(e,t,n){"use strict";n.d(t,{W:function(){return S}});var r=n(7169),o=n(487),i=n.n(o),a=n(631),s=n.n(a),l=n(2052),c=n.n(l),u=n(4010),d=n.n(u),p=n(1469),f=n.n(p),h=n(9329),m=n.n(h),g=n(7369),v={};v.styleTagTransform=m(),v.setAttributes=d(),v.insert=c().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=f(),i()(g.Z,v),g.Z&&g.Z.locals&&g.Z.locals;var b=n(9787),y=n.n(b),w=n(45),x=n(4512);function k(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=y().forwardRef((function(e,t){var n=e.children,r=e.padding,o=e.className,i=e.style;return(0,x.jsx)("div",{className:(0,w.Z)("Island",o),style:_({"--padding":r},i),ref:t,children:n})}))},9206:function(e,t,n){"use strict";n.d(t,{W:function(){return $},u:function(){return q}});var r=n(8950),o=n(2577),i=n(2975),a=n.n(i),s=n(9787),l=n(5523),c=n(7053),u=n(8211),d=n(3646),p=n(1319),f=n(1393),h=n(6340),m=n(4739),g=n(9487),v=n(7046),b=n(7169),y=n(5284),w=n(8396),x=n(3024),k=n(2335),_=n(434),S=n(6428),E=n(487),P=n.n(E),C=n(631),O=n.n(C),j=n(2052),T=n.n(j),M=n(4010),I=n.n(M),D=n(1469),A=n.n(D),L=n(9329),N=n.n(L),R=n(7589),z={};z.styleTagTransform=N(),z.setAttributes=I(),z.insert=T().bind(null,"head"),z.domAPI=O(),z.insertStyleElement=A(),P()(R.Z,z),R.Z&&R.Z.locals&&R.Z.locals;var F=n(4512);function Z(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 B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){(0,b.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return W(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)?W(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function W(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}var H="publish-library-data",K=function(){var e=(0,r.Z)(a().mark((function e(t){var n,r,i,s,l,c,u,d,p,f,m,g,v,b,w,S,E;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=6,r=128,i=Math.round(r/16),s=Math.max(Math.round(r/64),2),l=(0,h.yo)(t,n),(c=document.createElement("canvas")).width=l[0].length*r+(l[0].length+1)*(2*i)-2*i,c.height=l.length*r+(l.length+1)*(2*i)-2*i,(u=c.getContext("2d")).fillStyle=y.white,u.fillRect(0,0,c.width,c.height),d=U(t.entries()),e.prev=12,d.s();case 14:if((p=d.n()).done){e.next=28;break}return f=(0,o.Z)(p.value,2),m=f[0],g=f[1],e.next=18,(0,x.NL)({elements:g.elements,files:null,maxWidthOrHeight:r});case 18:v=e.sent,b=v.width,w=v.height,S=Math.floor(m/n)*(r+2*i),E=m%n*(r+2*i),u.drawImage(v,E+(r-b)/2+i,S+(r-w)/2+i),u.lineWidth=s,u.strokeStyle=y.gray[4],u.strokeRect(E+i/2,S+i/2,r+i,r+i);case 26:e.next=14;break;case 28:e.next=33;break;case 30:e.prev=30,e.t0=e.catch(12),d.e(e.t0);case 33:return e.prev=33,d.f(),e.finish(33);case 36:return e.t1=_.Tu,e.t2=File,e.next=40,(0,_._c)(c);case 40:return e.t3=e.sent,e.t4=[e.t3],e.t5={type:k.LO.png},e.t6=new e.t2(e.t4,"preview",e.t5),e.t7={outputType:k.LO.jpg,maxWidthOrHeight:5e3},e.next=47,(0,e.t1)(e.t6,e.t7);case 47:return e.abrupt("return",e.sent);case 48:case"end":return e.stop()}}),e,null,[[12,30,33,36]])})));return function(t){return e.apply(this,arguments)}}(),V=function(e){var t=e.libItem,n=e.appState,o=e.index,i=e.onChange,l=e.onRemove,c=(0,s.useRef)(null),f=(0,s.useRef)(null);return(0,s.useEffect)((function(){var e=c.current;e&&(0,r.Z)(a().mark((function r(){var o;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,x.$D)({elements:t.elements,appState:B(B({},n),{},{viewBackgroundColor:y.white,exportBackground:!0}),files:null});case 2:o=r.sent,e.innerHTML=o.outerHTML;case 4:case"end":return r.stop()}}),r)})))()}),[t.elements,n]),(0,F.jsxs)("div",{className:"single-library-item",children:["published"===t.status&&(0,F.jsx)("span",{className:"single-library-item-status",children:(0,u.t)("labels.statusPublished")}),(0,F.jsx)("div",{ref:c,className:"single-library-item__svg"}),(0,F.jsx)(p.V,{"aria-label":(0,u.t)("buttons.remove"),type:"button",icon:d.Tw,className:"single-library-item--remove",onClick:l.bind(null,t.id),title:(0,u.t)("buttons.remove")}),(0,F.jsxs)("div",{style:{display:"flex",margin:"0.8rem 0",width:"100%",fontSize:"14px",fontWeight:500,flexDirection:"column"},children:[(0,F.jsxs)("label",{style:{display:"flex",justifyContent:"space-between",flexDirection:"column"},children:[(0,F.jsxs)("div",{style:{padding:"0.5em 0"},children:[(0,F.jsx)("span",{style:{fontWeight:500,color:y.gray[6]},children:(0,u.t)("publishDialog.itemName")}),(0,F.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,F.jsx)("input",{type:"text",ref:f,style:{width:"80%",padding:"0.2rem"},defaultValue:t.name,placeholder:"Item name",onChange:function(e){i(e.target.value,o)}})]}),(0,F.jsx)("span",{className:"error",children:t.error})]})]})},Y=function(e){var t=e.onClose,n=e.libraryItems,i=e.appState,l=e.onSuccess,c=e.onError,d=e.updateItemsInStorage,p=e.onRemove,f=(0,s.useState)({authorName:"",githubHandle:"",name:"",description:"",twitterHandle:"",website:""}),h=(0,o.Z)(f,2),m=h[0],g=h[1],v=(0,s.useState)(!1),y=(0,o.Z)(v,2),x=y[0],_=y[1];(0,s.useEffect)((function(){var e=function(){try{var e=localStorage.getItem(H);if(e)return JSON.parse(e)}catch(e){console.error(e)}return null}();e&&g(e)}),[]);var E=(0,s.useState)(n.slice()),P=(0,o.Z)(E,2),C=P[0],O=P[1];(0,s.useEffect)((function(){O(n.slice())}),[n]);var j,T=function(e){g(B(B({},m),{},(0,b.Z)({},e.target.name,e.target.value)))},M=function(){var e=(0,r.Z)(a().mark((function e(t){var n,r,o,i,s,d,p;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),_(!0),n=[],r=!1,C.forEach((function(e){var t="";e.name||(t=(0,u.t)("publishDialog.errors.required"),r=!0),n.push(B(B({},e),{},{error:t}))})),!r){e.next=9;break}return O(n),_(!1),e.abrupt("return");case 9:return e.next=11,K(C);case 11:o=e.sent,i={type:k.r8.excalidrawLibrary,version:k.Kr.excalidrawLibrary,source:k.pb,libraryItems:C},s=JSON.stringify(i,null,2),d=new Blob([s],{type:"application/json"}),(p=new FormData).append("excalidrawLib",d),p.append("previewImage",o),p.append("previewImageType",o.type),p.append("title",m.name),p.append("authorName",m.authorName),p.append("githubHandle",m.githubHandle),p.append("name",m.name),p.append("description",m.description),p.append("twitterHandle",m.twitterHandle),p.append("website",m.website),fetch("".concat("https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries","/submit"),{method:"post",body:p}).then((function(e){return e.ok?e.json().then((function(e){var t=e.url;localStorage.removeItem(H),l({url:t,authorName:m.authorName,items:C})})):e.json().catch((function(){throw new Error(e.statusText||"something went wrong")})).then((function(t){throw new Error(t.message||e.statusText||"something went wrong")}))}),(function(e){console.error(e),c(e),_(!1)})).catch((function(e){console.error(e),c(e),_(!1)}));case 27:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=(0,s.useCallback)((function(){d(C),function(e){try{localStorage.setItem(H,JSON.stringify(e))}catch(e){console.error(e)}}(m),t()}),[C,t,d,m]),D=!!n.length,A=n.some((function(e){return"published"===e.status}));return(0,F.jsx)(w.V,{onCloseRequest:I,title:(0,u.t)("publishDialog.title"),className:"publish-library",children:D?(0,F.jsxs)("form",{onSubmit:M,children:[(0,F.jsxs)("div",{className:"publish-library-note",children:[(0,u.t)("publishDialog.noteDescription.pre"),(0,F.jsx)("a",{href:"https://libraries.excalidraw.com",target:"_blank",rel:"noopener noreferrer",children:(0,u.t)("publishDialog.noteDescription.link")})," ",(0,u.t)("publishDialog.noteDescription.post")]}),(0,F.jsxs)("span",{className:"publish-library-note",children:[(0,u.t)("publishDialog.noteGuidelines.pre"),(0,F.jsx)("a",{href:"https://github.com/excalidraw/excalidraw-libraries#guidelines",target:"_blank",rel:"noopener noreferrer",children:(0,u.t)("publishDialog.noteGuidelines.link")}),(0,u.t)("publishDialog.noteGuidelines.post")]}),(0,F.jsx)("div",{className:"publish-library-note",children:(0,u.t)("publishDialog.noteItems")}),A&&(0,F.jsx)("span",{className:"publish-library-note publish-library-warning",children:(0,u.t)("publishDialog.republishWarning")}),(j=[],C.forEach((function(e,t){j.push((0,F.jsx)("div",{className:"single-library-item-wrapper",children:(0,F.jsx)(V,{libItem:e,appState:i,index:t,onChange:function(e,t){var n=C.slice();n[t].name=e,O(n)},onRemove:p})},t))})),(0,F.jsx)("div",{className:"selected-library-items",children:j})),(0,F.jsxs)("div",{className:"publish-library__fields",children:[(0,F.jsxs)("label",{children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("span",{children:(0,u.t)("publishDialog.libraryName")}),(0,F.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,F.jsx)("input",{type:"text",name:"name",required:!0,value:m.name,onChange:T,placeholder:(0,u.t)("publishDialog.placeholder.libraryName")})]}),(0,F.jsxs)("label",{style:{alignItems:"flex-start"},children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("span",{children:(0,u.t)("publishDialog.libraryDesc")}),(0,F.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,F.jsx)("textarea",{name:"description",rows:4,required:!0,value:m.description,onChange:T,placeholder:(0,u.t)("publishDialog.placeholder.libraryDesc")})]}),(0,F.jsxs)("label",{children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("span",{children:(0,u.t)("publishDialog.authorName")}),(0,F.jsx)("span",{"aria-hidden":"true",className:"required",children:"*"})]}),(0,F.jsx)("input",{type:"text",name:"authorName",required:!0,value:m.authorName,onChange:T,placeholder:(0,u.t)("publishDialog.placeholder.authorName")})]}),(0,F.jsxs)("label",{children:[(0,F.jsx)("span",{children:(0,u.t)("publishDialog.githubUsername")}),(0,F.jsx)("input",{type:"text",name:"githubHandle",value:m.githubHandle,onChange:T,placeholder:(0,u.t)("publishDialog.placeholder.githubHandle")})]}),(0,F.jsxs)("label",{children:[(0,F.jsx)("span",{children:(0,u.t)("publishDialog.twitterUsername")}),(0,F.jsx)("input",{type:"text",name:"twitterHandle",value:m.twitterHandle,onChange:T,placeholder:(0,u.t)("publishDialog.placeholder.twitterHandle")})]}),(0,F.jsxs)("label",{children:[(0,F.jsx)("span",{children:(0,u.t)("publishDialog.website")}),(0,F.jsx)("input",{type:"text",name:"website",pattern:"https?://.+",title:(0,u.t)("publishDialog.errors.website"),value:m.website,onChange:T,placeholder:(0,u.t)("publishDialog.placeholder.website")})]}),(0,F.jsxs)("span",{className:"publish-library-note",children:[(0,u.t)("publishDialog.noteLicense.pre"),(0,F.jsx)("a",{href:"https://github.com/excalidraw/excalidraw-libraries/blob/main/LICENSE",target:"_blank",rel:"noopener noreferrer",children:(0,u.t)("publishDialog.noteLicense.link")}),(0,u.t)("publishDialog.noteLicense.post")]})]}),(0,F.jsxs)("div",{className:"publish-library__buttons",children:[(0,F.jsx)(S.Z,{label:(0,u.t)("buttons.cancel"),onClick:I,"data-testid":"cancel-clear-canvas-button"}),(0,F.jsx)(S.Z,{type:"submit",label:(0,u.t)("buttons.submit"),actionType:"primary",isLoading:x})]})]}):(0,F.jsx)("p",{style:{padding:"1em",textAlign:"center",fontWeight:500},children:(0,u.t)("publishDialog.atleastOneLibItem")})})},G=n(9127),q=(0,m.cn)(!1),X=function(e,t){return e.filter((function(e){return t.includes(e.id)}))},$=function(e){var t=e.setAppState,n=e.selectedItems,i=e.library,b=e.onRemoveFromLibrary,y=e.resetLibrary,x=e.onSelectItems,k=e.appState,_=(0,m.KO)(c.rF,g.yE),S=(0,o.Z)(_,1)[0],E=(0,m.KO)(q,g.yE),P=(0,o.Z)(E,2),C=P[0],O=P[1],j=(0,s.useCallback)((function(){var e=n.length?(0,u.t)("alerts.removeItemsFromsLibrary",{count:n.length}):(0,u.t)("alerts.resetLibrary"),t=n.length?(0,u.t)("confirmDialog.removeItemsFromLib"):(0,u.t)("confirmDialog.resetLibrary");return(0,F.jsx)(v.Z,{onConfirm:function(){n.length?b():y(),D(!1)},onCancel:function(){D(!1)},title:t,children:(0,F.jsx)("p",{children:e})})}),[n,b,y]),T=(0,s.useState)(!1),M=(0,o.Z)(T,2),I=M[0],D=M[1],A=!!n.length,L=A?S.libraryItems.filter((function(e){return n.includes(e.id)})):S.libraryItems,N=A?(0,u.t)("buttons.remove"):(0,u.t)("buttons.resetLibrary"),R=(0,s.useState)(!1),z=(0,o.Z)(R,2),Z=z[0],B=z[1],U=(0,s.useState)(null),W=(0,o.Z)(U,2),H=W[0],K=W[1],V=(0,s.useCallback)((function(){return(0,F.jsxs)(w.V,{onCloseRequest:function(){return K(null)},title:(0,u.t)("publishSuccessDialog.title"),className:"publish-library-success",small:!0,children:[(0,F.jsxs)("p",{children:[(0,u.t)("publishSuccessDialog.content",{authorName:H.authorName})," ",(0,F.jsx)("a",{href:null==H?void 0:H.url,target:"_blank",rel:"noopener noreferrer",children:(0,u.t)("publishSuccessDialog.link")})]}),(0,F.jsx)(p.V,{type:"button",title:(0,u.t)("buttons.close"),"aria-label":(0,u.t)("buttons.close"),label:(0,u.t)("buttons.close"),onClick:function(){return K(null)},"data-testid":"publish-library-success-close",className:"publish-library-success-close"})]})}),[K,H]),$=(0,s.useCallback)((function(e,t){B(!1),K({url:e.url,authorName:e.authorName});var r=t.slice();r.forEach((function(e){n.includes(e.id)&&(e.status="published")})),i.setLibrary(r)}),[B,K,n,i]),J=function(){var e=(0,r.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.updateLibrary({libraryItems:(0,f.I$)({description:"Excalidraw library files"}),merge:!0,openLibraryMenu:!0});case 3:e.next=11;break;case 5:if(e.prev=5,e.t0=e.catch(0),"AbortError"!==(null===e.t0||void 0===e.t0?void 0:e.t0.name)){e.next=10;break}return console.warn(e.t0),e.abrupt("return");case 10:t({errorMessage:(0,u.t)("errors.importLibraryError")});case 11:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),Q=function(){var e=(0,r.Z)(a().mark((function e(){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!A){e.next=4;break}e.t0=L,e.next=7;break;case 4:return e.next=6,i.getLatestLibrary();case 6:e.t0=e.sent;case 7:n=e.t0,(0,l.t1)(n).catch(h.FG).catch((function(e){t({errorMessage:e.message})}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,F.jsxs)("div",{style:{position:"relative"},children:[(0,F.jsxs)(G.Z,{open:C,children:[(0,F.jsx)(G.Z.Trigger,{className:"Sidebar__dropdown-btn",onToggle:function(){return O(!C)},children:d.YA}),(0,F.jsxs)(G.Z.Content,{onClickOutside:function(){return O(!1)},onSelect:function(){return O(!1)},className:"library-menu",children:[!A&&(0,F.jsx)(G.Z.Item,{onSelect:J,icon:d.Tl,"data-testid":"lib-dropdown--load",children:(0,u.t)("buttons.load")}),!!L.length&&(0,F.jsx)(G.Z.Item,{onSelect:Q,icon:d.Hy,"data-testid":"lib-dropdown--export",children:(0,u.t)("buttons.export")}),!!L.length&&(0,F.jsx)(G.Z.Item,{onSelect:function(){return D(!0)},icon:d.XH,children:N}),A&&(0,F.jsx)(G.Z.Item,{icon:d.Nw,onSelect:function(){return B(!0)},"data-testid":"lib-dropdown--remove",children:(0,u.t)("buttons.publishLibrary")})]})]}),n.length>0&&(0,F.jsx)("div",{className:"library-actions-counter",children:n.length}),I&&j(),Z&&(0,F.jsx)(Y,{onClose:function(){return B(!1)},libraryItems:X(S.libraryItems,n),appState:k,onSuccess:function(e){return $(e,S.libraryItems)},onError:function(e){return window.alert(e)},updateItemsInStorage:function(){return i.setLibrary(S.libraryItems)},onRemove:function(e){return x(n.filter((function(t){return t!==e})))}}),H&&V()]})}},5440:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var r=n(2577),o=n(8211),i=n(9787),a=n(5644),s=n(45),l=n(2335),c=n(4512),u=function(e){var t=e.delay,n=e.theme,u=(0,i.useState)(!!t),d=(0,r.Z)(u,2),p=d[0],f=d[1];return(0,i.useEffect)((function(){if(t){var e=setTimeout((function(){f(!1)}),t);return function(){return clearTimeout(e)}}}),[t]),p?null:(0,c.jsxs)("div",{className:(0,s.Z)("LoadingMessage",{"LoadingMessage--dark":n===l.C6.DARK}),children:[(0,c.jsx)("div",{children:(0,c.jsx)(a.Z,{})}),(0,c.jsx)("div",{className:"LoadingMessage-text",children:(0,o.t)("labels.loadingScene")})]})}},2891:function(e,t,n){"use strict";n.d(t,{J:function(){return k}});var r=n(9787),o=n(487),i=n.n(o),a=n(631),s=n.n(a),l=n(2052),c=n.n(l),u=n(4010),d=n.n(u),p=n(1469),f=n.n(p),h=n(9329),m=n.n(h),g=n(9935),v={};v.styleTagTransform=m(),v.setAttributes=d(),v.insert=c().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=f(),i()(g.Z,v),g.Z&&g.Z.locals&&g.Z.locals;var b=n(5156),y=n(6340),w=n(6066),x=n(4512),k=function(e){var t=e.children,n=e.left,o=e.top,i=e.onCloseRequest,a=e.fitInViewport,s=void 0!==a&&a,l=e.offsetLeft,c=void 0===l?0:l,u=e.offsetTop,d=void 0===u?0:u,p=e.viewportWidth,f=void 0===p?window.innerWidth:p,h=e.viewportHeight,m=void 0===h?window.innerHeight:h,g=(0,r.useRef)(null);(0,r.useEffect)((function(){var e=g.current;if(e){e.contains(document.activeElement)||e.focus();var t=function(t){if(t.key===w.tW.TAB){var n,r=(0,y.xp)(e),o=document.activeElement,i=r.findIndex((function(e){return e===o}));if(o===e)t.shiftKey?null===(n=r[r.length-1])||void 0===n||n.focus():r[0].focus(),t.preventDefault(),t.stopImmediatePropagation();else if(0===i&&t.shiftKey){var a;null===(a=r[r.length-1])||void 0===a||a.focus(),t.preventDefault(),t.stopImmediatePropagation()}else if(i===r.length-1&&!t.shiftKey){var s;null===(s=r[0])||void 0===s||s.focus(),t.preventDefault(),t.stopImmediatePropagation()}}};return e.addEventListener("keydown",t),function(){return e.removeEventListener("keydown",t)}}}),[]);var v=(0,r.useRef)(null);return(0,r.useLayoutEffect)((function(){if(s&&g.current&&null!=o&&null!=n){var e,t,r=g.current,i=r.getBoundingClientRect(),a=i.width,l=i.height;if((null===(e=v.current)||void 0===e?void 0:e.top)===o&&(null===(t=v.current)||void 0===t?void 0:t.left)===n)return;v.current={top:o,left:n},a>=f?(r.style.width="".concat(f,"px"),r.style.left="0px",r.style.overflowX="scroll"):r.style.left="".concat(n+a-c>f?f-a-10:n,"px"),l>=m?(r.style.height="".concat(m-20,"px"),r.style.top="10px",r.style.overflowY="scroll"):r.style.top="".concat(o+l-d>m?m-l:o,"px")}}),[o,n,s,f,m,c,d]),(0,r.useEffect)((function(){if(i){var e=function(e){var t;null!==(t=g.current)&&void 0!==t&&t.contains(e.target)||(0,b.unstable_batchedUpdates)((function(){return i(e)}))};return document.addEventListener("pointerdown",e,!1),function(){return document.removeEventListener("pointerdown",e,!1)}}}),[i]),(0,x.jsx)("div",{className:"popover",ref:g,tabIndex:-1,children:t})}},9430:function(e,t,n){"use strict";n.d(t,{Y:function(){return z},b:function(){return R}});var r=n(2577),o=n(9787),i=n.n(o),a=n(1881),s=n(4739),l=n(9487),c=i().createContext({}),u=n(45),d=n(8211),p=n(2134),f=n(3646),h=n(7169),m=n(4512);function g(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}var v=n(1894),b=function(e){return(0,m.jsx)("div",{className:"layer-ui__sidebar-dock-button","data-testid":"sidebar-dock",children:(0,m.jsxs)(v.u,{label:(0,d.t)("labels.sidebarLock"),children:[(0,m.jsxs)("label",{className:(0,u.Z)("ToolIcon ToolIcon__lock ToolIcon_type_floating","ToolIcon_size_medium"),children:[(0,m.jsx)("input",{className:"ToolIcon_type_checkbox",type:"checkbox",onChange:e.onChange,checked:e.checked,"aria-label":(0,d.t)("labels.sidebarLock")})," ",(0,m.jsx)("div",{className:(0,u.Z)("Sidebar__pin-btn",{"Sidebar__pin-btn--pinned":e.checked}),tabIndex:0,children:f.qQ})," "]})," "]})})},y=function(e){var t=(0,o.createContext)([!1,function(){}]),n=function(e){var n=e.children,i=(0,o.useState)(!1),a=(0,r.Z)(i,2),s=a[0],l=a[1],c=(0,o.useMemo)((function(){return[s,l]}),[s]);return(0,m.jsx)(t.Provider,{value:c,children:n})},i=function(n){var i=(0,o.useContext)(t),a=(0,r.Z)(i,2),s=a[0],l=a[1];return(0,o.useLayoutEffect)((function(){if(!n.__isFallback)return l(!0),function(){return l(!1)}}),[n.__isFallback,l]),n.__isFallback&&s?null:(0,m.jsx)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n))};return e.name&&(i.displayName="".concat(e.name,"_upstreamOverrideWrapper"),n.displayName="".concat(e.name,"_upstreamOverrideContextWrapper")),[n,i]}((function(e){var t=e.children,n=e.className,r=(0,p.Fy)(),i=(0,o.useContext)(c),a=!(!r.canDeviceFitSidebar||!i.dockable),s=!!i.onClose;return(0,m.jsxs)("div",{className:(0,u.Z)("layer-ui__sidebar__header",n),"data-testid":"sidebar-header",children:[t,(a||s)&&(0,m.jsxs)("div",{className:"layer-ui__sidebar__header__buttons",children:[a&&(0,m.jsx)(b,{checked:!!i.docked,onChange:function(){var e;null===(e=i.onDock)||void 0===e||e.call(i,!i.docked)}}),s&&(0,m.jsx)("button",{"data-testid":"sidebar-close",className:"Sidebar__close-btn",onClick:i.onClose,"aria-label":(0,d.t)("buttons.close"),children:f.Tw})]})]})})),w=(0,r.Z)(y,2),x={Context:w[0],Component:w[1]},k=n(487),_=n.n(k),S=n(631),E=n.n(S),P=n(2052),C=n.n(P),O=n(4010),j=n.n(O),T=n(1469),M=n.n(T),I=n(9329),D=n.n(I),A=n(8208),L={};L.styleTagTransform=D(),L.setAttributes=j(),L.insert=C().bind(null,"head"),L.domAPI=E(),L.insertStyleElement=M(),_()(A.Z,L),A.Z&&A.Z.locals&&A.Z.locals;var N=n(6340),R=(0,s.cn)({rendered:0,docked:0}),z=Object.assign((0,o.forwardRef)((function(e,t){var n,i=e.children,d=e.onClose,f=e.onDock,h=e.docked,g=e.initialDockedState,v=void 0===g?h:g,b=e.dockable,y=void 0===b||b,w=e.className,k=e.__isInternal,_=(0,s.KO)(R,l.yE),S=(0,r.Z)(_,2),E=S[0],P=S[1],C=(0,p.n9)(),O=(0,o.useState)(null!==(n=null!=h?h:v)&&void 0!==n&&n),j=(0,r.Z)(O,2),T=j[0],M=j[1];(0,o.useLayoutEffect)((function(){void 0===h&&C((function(e){return M(e.isSidebarDocked),null}))}),[C,h]),(0,o.useLayoutEffect)((function(){if(!k)return P((function(e){return{rendered:e.rendered+1,docked:T?e.docked+1:e.docked}})),function(){P((function(e){return{rendered:e.rendered-1,docked:T?e.docked-1:e.docked}}))}}),[k,P,T]);var I=(0,o.useRef)(d);I.current=d,(0,o.useEffect)((function(){return function(){var e;null===(e=I.current)||void 0===e||e.call(I)}}),[]);var D=(0,o.useRef)({});return D.current.onClose=function(){C({openSidebar:null})},D.current.onDock=function(e){void 0===h&&(C({isSidebarDocked:e}),M(e)),null==f||f(e)},D.current=(0,N.v4)(D.current,{docked:null!=h?h:T,dockable:y}),E.rendered>0&&k?null:(0,m.jsx)(a.W,{className:(0,u.Z)("layer-ui__sidebar",{"layer-ui__sidebar--docked":T},w),ref:t,children:(0,m.jsx)(c.Provider,{value:D.current,children:(0,m.jsxs)(x.Context,{children:[(0,m.jsx)(x.Component,{__isFallback:!0}),i]})})})})),{Header:x.Component})},5644:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(487),o=n.n(r),i=n(631),a=n.n(i),s=n(2052),l=n.n(s),c=n(4010),u=n.n(c),d=n(1469),p=n.n(d),f=n(9329),h=n.n(f),m=n(5892),g={};g.styleTagTransform=h(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p(),o()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals;var v=n(4512),b=function(e){var t=e.size,n=void 0===t?"1em":t,r=e.circleWidth,o=void 0===r?8:r;return(0,v.jsx)("div",{className:"Spinner",children:(0,v.jsx)("svg",{viewBox:"0 0 100 100",style:{width:n,height:n},children:(0,v.jsx)("circle",{cx:"50",cy:"50",r:50-o/2,strokeWidth:o,fill:"none",strokeMiterlimit:"10"})})})}},7239:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(7169),o=n(487),i=n.n(o),a=n(631),s=n.n(a),l=n(2052),c=n.n(l),u=n(4010),d=n.n(u),p=n(1469),f=n.n(p),h=n(9329),m=n.n(h),g=n(3874),v={};v.styleTagTransform=m(),v.setAttributes=d(),v.insert=c().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=f(),i()(g.Z,v),g.Z&&g.Z.locals&&g.Z.locals;var b=n(45),y=n(4512);function w(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k={Row:function(e){var t=e.children,n=e.gap,r=e.align,o=e.justifyContent,i=e.className,a=e.style;return(0,y.jsx)("div",{className:(0,b.Z)("Stack Stack_horizontal",i),style:x({"--gap":n,alignItems:r,justifyContent:o},a),children:t})},Col:function(e){var t=e.children,n=e.gap,r=e.align,o=e.justifyContent,i=e.className,a=e.style;return(0,y.jsx)("div",{className:(0,b.Z)("Stack Stack_vertical",i),style:x({"--gap":n,justifyItems:r,justifyContent:o},a),children:t})}}},1319:function(e,t,n){"use strict";n.d(t,{V:function(){return h}});var r=n(8950),o=n(2577),i=n(2975),a=n.n(i),s=(n(5422),n(9787)),l=n.n(s),c=n(45),u=n(2134),d=n(6797),p=n(5644),f=n(4512),h=l().forwardRef((function(e,t){var n=(0,u.J0)().id,i=l().useRef(null);l().useImperativeHandle(t,(function(){return i.current}));var h="ToolIcon_size_".concat(e.size),m=(0,s.useState)(!1),g=(0,o.Z)(m,2),v=g[0],b=g[1],y=(0,s.useRef)(!0),w=function(){var t=(0,r.Z)(a().mark((function t(n){var r,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(o="onClick"in e&&(null===(r=e.onClick)||void 0===r?void 0:r.call(e,n)))||!("then"in o)){t.next=18;break}return t.prev=2,b(!0),t.next=6,o;case 6:t.next=15;break;case 8:if(t.prev=8,t.t0=t.catch(2),t.t0 instanceof d._){t.next=14;break}throw t.t0;case 14:console.warn(t.t0);case 15:return t.prev=15,y.current&&b(!1),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,8,15,18]])})));return function(e){return t.apply(this,arguments)}}();(0,s.useEffect)((function(){return function(){y.current=!1}}),[]);var x=(0,s.useRef)(null);if("button"===e.type||"icon"===e.type||"submit"===e.type){var k="icon"===e.type?"button":e.type;return(0,f.jsxs)("button",{className:(0,c.Z)("ToolIcon_type_button",h,e.className,e.visible&&!e.hidden?"ToolIcon_type_button--show":"ToolIcon_type_button--hide",{ToolIcon:!e.hidden,"ToolIcon--selected":e.selected,"ToolIcon--plain":"icon"===e.type}),"data-testid":e["data-testid"],hidden:e.hidden,title:e.title,"aria-label":e["aria-label"],type:k,onClick:w,ref:i,disabled:v||e.isLoading,children:[(e.icon||e.label)&&(0,f.jsxs)("div",{className:"ToolIcon__icon","aria-hidden":"true",children:[e.icon||e.label,e.keyBindingLabel&&(0,f.jsx)("span",{className:"ToolIcon__keybinding",children:e.keyBindingLabel}),e.isLoading&&(0,f.jsx)(p.Z,{})]}),e.showAriaLabel&&(0,f.jsxs)("div",{className:"ToolIcon__label",children:[e["aria-label"]," ",v&&(0,f.jsx)(p.Z,{})]}),e.children]})}return(0,f.jsxs)("label",{className:(0,c.Z)("ToolIcon",e.className),title:e.title,onPointerDown:function(t){var n;x.current=t.pointerType||null,null===(n=e.onPointerDown)||void 0===n||n.call(e,{pointerType:t.pointerType||null})},onPointerUp:function(){requestAnimationFrame((function(){x.current=null}))},children:[(0,f.jsx)("input",{className:"ToolIcon_type_radio ".concat(h),type:"radio",name:e.name,"aria-label":e["aria-label"],"aria-keyshortcuts":e["aria-keyshortcuts"],"data-testid":e["data-testid"],id:"".concat(n,"-").concat(e.id),onChange:function(){var t;null===(t=e.onChange)||void 0===t||t.call(e,{pointerType:x.current})},checked:e.checked,ref:i}),(0,f.jsxs)("div",{className:"ToolIcon__icon",children:[e.icon,e.keyBindingLabel&&(0,f.jsx)("span",{className:"ToolIcon__keybinding",children:e.keyBindingLabel})]})]})}));h.defaultProps={visible:!0,className:"",size:"medium"},h.displayName="ToolButton"},1894:function(e,t,n){"use strict";n.d(t,{u:function(){return x},bK:function(){return y},Js:function(){return w}});var r=n(487),o=n.n(r),i=n(631),a=n.n(i),s=n(2052),l=n.n(s),c=n(4010),u=n.n(c),d=n(1469),p=n.n(d),f=n(9329),h=n.n(f),m=n(6626),g={};g.styleTagTransform=h(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p(),o()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals;var v=n(9787),b=n(4512),y=function(){var e=document.querySelector(".excalidraw-tooltip");if(e)return e;var t=document.createElement("div");return document.body.appendChild(t),t.classList.add("excalidraw-tooltip"),t},w=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"bottom",o=e.getBoundingClientRect(),i=window.innerWidth,a=window.innerHeight,s=5,l=t.left+t.width/2-o.width/2;l<0?l=s:l+o.width>=i&&(l=i-o.width-s),"bottom"===r?(n=t.top+t.height+s)+o.height>=a&&(n=t.top-o.height-s):(n=t.top-o.height-s)<0&&(n=t.top+t.height+s),Object.assign(e.style,{top:"".concat(n,"px"),left:"".concat(l,"px")})},x=function(e){var t=e.children,n=e.label,r=e.long,o=void 0!==r&&r,i=e.style;return(0,v.useEffect)((function(){return function(){return y().classList.remove("excalidraw-tooltip--visible")}}),[]),(0,b.jsx)("div",{className:"excalidraw-tooltip-wrapper",onPointerEnter:function(e){return function(e,t,n,r){t.classList.add("excalidraw-tooltip--visible"),t.style.minWidth=r?"50ch":"10ch",t.style.maxWidth=r?"50ch":"15ch",t.textContent=n;var o=e.getBoundingClientRect();w(t,o)}(e.currentTarget,y(),n,o)},onPointerLeave:function(){return y().classList.remove("excalidraw-tooltip--visible")},style:i,children:t})}},6773:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(2577),o=n(487),i=n.n(o),a=n(631),s=n.n(a),l=n(2052),c=n.n(l),u=n(4010),d=n.n(u),p=n(1469),f=n.n(p),h=n(9329),m=n.n(h),g=n(6359),v={};v.styleTagTransform=m(),v.setAttributes=d(),v.insert=c().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=f(),i()(g.Z,v),g.Z&&g.Z.locals&&g.Z.locals;var b=n(9787),y=n.n(b),w=n(45),x=n(1894),k=n(2134),_=n(4512),S=function(e){var t=e.className,n=e.mobile,o=e.collaborators,i=(0,k.eh)(),a=new Map;o.forEach((function(e,t){a.set(e.id||t,e)}));var s=a.size>0&&Array.from(a).filter((function(e){var t=(0,r.Z)(e,2),n=(t[0],t[1]);return 0!==Object.keys(n).length})).map((function(e){var t=(0,r.Z)(e,2),o=t[0],a=t[1],s=i.renderAction("goToCollaborator",[o,a]);return n?(0,_.jsx)(x.u,{label:a.username||"Unknown user",children:s},o):(0,_.jsx)(y().Fragment,{children:s},o)}));return(0,_.jsx)("div",{className:(0,w.Z)("UserList",t,{UserList_mobile:n}),children:s})}},8888:function(e,t,n){"use strict";n.d(t,{A3:function(){return u},ZC:function(){return p},R6:function(){return d}});var r=n(9787),o=n.n(r);const i=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The destroy method will be unsupported in the future version. You should use unsubscribe function returned by subscribe. Everything will be garbage collected if store is garbage collected."),n.clear()}};return t=e(r,o,i),i};var a=n(5668);const{useSyncExternalStoreWithSelector:s}=a,l=e=>{"function"!=typeof e&&console.warn('[DEPRECATED] Passing a vanilla store will be unsupported in the future version. Please use `import { useStore } from "zustand"` to use the vanilla store in React.');const t="function"==typeof e?(e=>e?i(e):i)(e):e,n=(e,n)=>function(e,t=e.getState,n){const o=s(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(t,e,n);return Object.assign(n,t),n};function c(){const e=(e=>e?l(e):l)((e=>({current:new Array,version:0,set:e})));return{In:({children:t})=>{const n=e((e=>e.set)),o=e((e=>e.version));return(0,r.useLayoutEffect)((()=>{n((e=>({version:e.version+1})))}),[]),(0,r.useLayoutEffect)((()=>(n((({current:e})=>({current:[...e,t]}))),()=>n((({current:e})=>({current:e.filter((e=>e!==t))}))))),[t,o]),null},Out:()=>{const t=e((e=>e.current));return o().createElement(o().Fragment,null,t)}}}var u=o().createContext(null),d=function(){return o().useContext(u)},p=function(){return o().useMemo((function(){return{mainMenuTunnel:c(),welcomeScreenMenuHintTunnel:c(),welcomeScreenToolbarHintTunnel:c(),welcomeScreenHelpHintTunnel:c(),welcomeScreenCenterTunnel:c(),footerCenterTunnel:c(),jotaiScope:Symbol()}}),[])}},9127:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r=n(45),o=n(2134),i=n(4512),a=function(e){var t=e.className,n=void 0===t?"":t,a=e.children,s=e.onToggle,l=(0,o.gF)(),c=(0,o.Fy)(),u=(0,r.Z)("dropdown-menu-button ".concat(n),"zen-mode-transition",{"transition-left":l.zenModeEnabled,"dropdown-menu-button--mobile":c.isMobile}).trim();return(0,i.jsx)("button",{"data-prevent-outside-click":!0,className:u,onClick:s,type:"button","data-testid":"dropdown-menu-button",children:a})},s=a;a.displayName="DropdownMenuTrigger";var l=n(2739),c=function(){return(0,i.jsx)("div",{style:{height:"1px",backgroundColor:"var(--default-border-color)",margin:".5rem 0"}})},u=c;c.displayName="DropdownMenuSeparator";var d=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=e.style,a=e.title;return(0,i.jsxs)("div",{className:"dropdown-menu-group ".concat(r),style:o,children:[a&&(0,i.jsx)("p",{className:"dropdown-menu-group-title",children:a}),t]})},p=d;d.displayName="DropdownMenuGroup";var f=n(1930),h=n(9787),m=n.n(h),g=n(1881),v=n(7239),b=n(6772),y=function(e){var t,n,a=e.children,s=e.onClickOutside,l=e.className,c=void 0===l?"":l,u=e.onSelect,d=e.style,p=(0,o.Fy)(),m=(t=function(){null==s||s()},n=(0,h.useRef)(null),(0,h.useEffect)((function(){var e=function(e){var r=n.current;!r||r.contains(e.target)||(0,f.Z)(document.querySelectorAll("[data-prevent-outside-click]")).some((function(t){return t.contains(e.target)}))||t()};return document.addEventListener("pointerdown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("pointerdown",e),document.removeEventListener("touchstart",e)}}),[n,t]),n),y=(0,r.Z)("dropdown-menu ".concat(c),{"dropdown-menu--mobile":p.isMobile}).trim();return(0,i.jsx)(b.N7.Provider,{value:{onSelect:u},children:(0,i.jsx)("div",{ref:m,className:y,style:d,"data-testid":"dropdown-menu",children:p.isMobile?(0,i.jsx)(v.Z.Col,{className:"dropdown-menu-container",children:a}):(0,i.jsx)(g.W,{className:"dropdown-menu-container",padding:2,style:{zIndex:1},children:a})})})};y.displayName="DropdownMenuContent";var w=y,x=n(4215),k=n(7169),_=n(2726),S=["children","className"];function E(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 P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){(0,k.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=n(487),O=n.n(C),j=n(631),T=n.n(j),M=n(2052),I=n.n(M),D=n(4010),A=n.n(D),L=n(1469),N=n.n(L),R=n(9329),z=n.n(R),F=n(7399),Z={};Z.styleTagTransform=z(),Z.setAttributes=A(),Z.insert=I().bind(null,"head"),Z.domAPI=T(),Z.insertStyleElement=N(),O()(F.Z,Z),F.Z&&F.Z.locals&&F.Z.locals;var B=function(e){var t=e.children,n=e.open,r=function(e){return m().Children.toArray(e).find((function(e){return m().isValidElement(e)&&"string"!=typeof e.type&&(null==e?void 0:e.type.displayName)&&"DropdownMenuTrigger"===e.type.displayName}))||null}(t),o=function(e){return m().Children.toArray(e).find((function(e){return m().isValidElement(e)&&"string"!=typeof e.type&&(null==e?void 0:e.type.displayName)&&"DropdownMenuContent"===e.type.displayName}))||null}(t);return(0,i.jsxs)(i.Fragment,{children:[r,n&&o]})};B.Trigger=s,B.Content=w,B.Item=l.Z,B.ItemLink=x.Z,B.ItemCustom=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,o=(0,_.Z)(e,S);return(0,i.jsx)("div",P(P({},o),{},{className:"dropdown-menu-item-base dropdown-menu-item-custom ".concat(r).trim(),children:t}))},B.Group=p,B.Separator=u;var U=B;B.displayName="DropdownMenu"},2739:function(e,t,n){"use strict";var r=n(7169),o=n(2726),i=n(6772),a=n(4122),s=n(4512),l=["icon","onSelect","children","shortcut","className"];function c(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t,n=e.icon,r=e.onSelect,c=e.children,d=e.shortcut,p=e.className,f=(0,o.Z)(e,l),h=(0,i.qZ)(f.onClick,r);return(0,s.jsx)("button",u(u({},f),{},{onClick:h,type:"button",className:(0,i.n)(p),title:null!==(t=f.title)&&void 0!==t?t:f["aria-label"],children:(0,s.jsx)(a.Z,{icon:n,shortcut:d,children:c})}))};t.Z=d,d.displayName="DropdownMenuItem"},4122:function(e,t,n){"use strict";var r=n(2134),o=n(4512);t.Z=function(e){var t=e.icon,n=e.shortcut,i=e.children,a=(0,r.Fy)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"dropdown-menu-item__icon",children:t}),(0,o.jsx)("div",{className:"dropdown-menu-item__text",children:i}),n&&!a.isMobile&&(0,o.jsx)("div",{className:"dropdown-menu-item__shortcut",children:n})]})}},4215:function(e,t,n){"use strict";var r=n(7169),o=n(2726),i=n(4122),a=n(6772),s=n(4512),l=["icon","shortcut","href","children","onSelect","className"];function c(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(e){var t,n=e.icon,r=e.shortcut,c=e.href,d=e.children,p=e.onSelect,f=e.className,h=void 0===f?"":f,m=(0,o.Z)(e,l),g=(0,a.qZ)(m.onClick,p);return(0,s.jsx)("a",u(u({},m),{},{href:c,target:"_blank",rel:"noreferrer",className:(0,a.n)(h),title:null!==(t=m.title)&&void 0!==t?t:m["aria-label"],onClick:g,children:(0,s.jsx)(i.Z,{icon:n,shortcut:r,children:d})}))};t.Z=d,d.displayName="DropdownMenuItemLink"},6772:function(e,t,n){"use strict";n.d(t,{N7:function(){return s},n:function(){return l},qZ:function(){return c}});var r=n(9787),o=n.n(r),i=n(2335),a=n(6340),s=o().createContext({}),l=function(){return"dropdown-menu-item dropdown-menu-item-base ".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim()},c=function(e,t){var n=(0,r.useContext)(s);return(0,a.Mj)(e,(function(e){var r,o=new CustomEvent(i.Ks.MENU_ITEM_SELECT,{bubbles:!0,cancelable:!0});null==t||t(o),o.defaultPrevented||null===(r=n.onSelect)||void 0===r||r.call(n,o)}))}},3646:function(e,t,n){"use strict";n.d(t,{$c:function(){return se},$q:function(){return z},BF:function(){return Pe},BR:function(){return re},Ct:function(){return me},D7:function(){return X},DG:function(){return oe},DJ:function(){return P},DS:function(){return Be},EO:function(){return nt},ET:function(){return q},FC:function(){return _},Gc:function(){return pe},HL:function(){return ge},Hk:function(){return at},Hy:function(){return V},IN:function(){return fe},J8:function(){return ie},Mw:function(){return C},NA:function(){return U},NW:function(){return H},Nw:function(){return it},OA:function(){return Xe},OW:function(){return j},P7:function(){return ot},Pm:function(){return L},RJ:function(){return Ce},RY:function(){return K},Re:function(){return M},ST:function(){return xe},Sd:function(){return F},TP:function(){return ae},Tl:function(){return ne},Tw:function(){return Se},UE:function(){return le},VL:function(){return N},Vl:function(){return ue},Vq:function(){return b},W2:function(){return Fe},W5:function(){return we},Wl:function(){return De},X7:function(){return Me},XB:function(){return R},XH:function(){return B},YA:function(){return w},ZA:function(){return Ie},Zm:function(){return $},_C:function(){return k},_U:function(){return E},a0:function(){return je},a1:function(){return ee},a5:function(){return Le},aA:function(){return rt},aT:function(){return Ne},bf:function(){return Re},by:function(){return Y},e0:function(){return I},eQ:function(){return J},fr:function(){return Ue},gK:function(){return ke},h0:function(){return G},il:function(){return We},j8:function(){return Ve},jn:function(){return _e},kL:function(){return W},kM:function(){return ze},lF:function(){return Oe},m:function(){return Ke},m9:function(){return Ae},mh:function(){return be},nb:function(){return T},np:function(){return Te},nq:function(){return Ge},o3:function(){return et},oQ:function(){return S},oT:function(){return tt},op:function(){return Ee},pO:function(){return y},po:function(){return te},pw:function(){return he},q0:function(){return Ye},qQ:function(){return x},rr:function(){return Qe},t5:function(){return de},tW:function(){return qe},tb:function(){return A},tn:function(){return He},uD:function(){return ye},vo:function(){return $e},wr:function(){return Ze},xL:function(){return Z},xP:function(){return Q},xs:function(){return ve},z6:function(){return Je},zG:function(){return ce},zb:function(){return D},zu:function(){return O}});var r=n(7169),o=n(2726),i=n(9787),a=n.n(i),s=n(5284),l=n(45),c=n(2335),u=n(4512),d=["width","height","mirror","style"];function p(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?p(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){return e===c.C6.LIGHT?s.white:"#1e1e1e"},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:512,n="number"==typeof t?{width:t}:t,r=n.width,i=void 0===r?512:r,a=n.height,s=void 0===a?i:a,c=n.mirror,p=n.style,h=(0,o.Z)(n,d);return(0,u.jsx)("svg",f(f({"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 ".concat(i," ").concat(s),className:(0,l.Z)({"rtl-mirror":c}),style:p},h),{},{children:"string"==typeof e?(0,u.jsx)("path",{fill:"currentColor",d:e}):e}))},g={width:24,height:24,fill:"none",strokeWidth:2,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},v={width:20,height:20,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},b=(m((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("rect",{x:3,y:8,width:18,height:4,rx:1}),(0,u.jsx)("line",{x1:12,y1:8,x2:12,y2:21}),(0,u.jsx)("path",{d:"M19 12v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-7"}),(0,u.jsx)("path",{d:"M7.5 8a2.5 2.5 0 0 1 0 -5a4.8 8 0 0 1 4.5 5a4.8 8 0 0 1 4.5 -5a2.5 2.5 0 0 1 0 5"})]}),g),m((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),(0,u.jsx)("path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0"}),(0,u.jsx)("line",{x1:"3",y1:"6",x2:"3",y2:"19"}),(0,u.jsx)("line",{x1:"12",y1:"6",x2:"12",y2:"19"}),(0,u.jsx)("line",{x1:"21",y1:"6",x2:"21",y2:"19"})]}),g)),y=m((0,u.jsxs)("svg",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,u.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),g),w=m((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,u.jsx)("circle",{cx:"12",cy:"19",r:"1"}),(0,u.jsx)("circle",{cx:"12",cy:"5",r:"1"})]}),g),x=m((0,u.jsxs)("svg",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M9 4v6l-2 4v2h10v-2l-2 -4v-6"}),(0,u.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"21"}),(0,u.jsx)("line",{x1:"8",y1:"4",x2:"16",y2:"4"})]}),g),k=m((0,u.jsxs)("g",{children:[(0,u.jsx)("path",{d:"M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,u.jsx)("path",{d:"M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,u.jsx)("mask",{id:"UnlockedIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:6,y:1,width:9,height:9,children:(0,u.jsx)("path",{stroke:"none",d:"M6.399 9.561V5.175c0-.93.401-1.823 1.116-2.48a3.981 3.981 0 0 1 2.693-1.028c1.01 0 1.98.37 2.694 1.027.715.658 1.116 1.55 1.116 2.481",fill:"#fff"})}),(0,u.jsx)("g",{mask:"url(#UnlockedIcon)",children:(0,u.jsx)("path",{stroke:"none",d:"M5.149 9.561v1.25h2.5v-1.25h-2.5Zm5.06-7.894V.417v1.25Zm2.559 3.508v1.25h2.5v-1.25h-2.5ZM7.648 8.51V5.175h-2.5V8.51h2.5Zm0-3.334c0-.564.243-1.128.713-1.561L6.668 1.775c-.959.883-1.52 2.104-1.52 3.4h2.5Zm.713-1.561a2.732 2.732 0 0 1 1.847-.697v-2.5c-1.31 0-2.585.478-3.54 1.358L8.36 3.614Zm1.847-.697c.71 0 1.374.26 1.847.697l1.694-1.839a5.231 5.231 0 0 0-3.54-1.358v2.5Zm1.847.697c.47.433.713.997.713 1.561h2.5c0-1.296-.56-2.517-1.52-3.4l-1.693 1.839Z",fill:"currentColor"})})]}),v),_=m((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M13.542 8.542H6.458a2.5 2.5 0 0 0-2.5 2.5v3.75a2.5 2.5 0 0 0 2.5 2.5h7.084a2.5 2.5 0 0 0 2.5-2.5v-3.75a2.5 2.5 0 0 0-2.5-2.5Z"}),(0,u.jsx)("path",{d:"M10 13.958a1.042 1.042 0 1 0 0-2.083 1.042 1.042 0 0 0 0 2.083Z"}),(0,u.jsx)("path",{d:"M6.667 8.333V5.417C6.667 3.806 8.159 2.5 10 2.5c1.841 0 3.333 1.306 3.333 2.917v2.916"})]}),v),S=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{d:"M38.5 83.5c-14-2-17.833-10.473-21-22.5C14.333 48.984 12 22 12 12.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m12.005 10.478 7.905 14.423L6 25.75l6.005-15.273Z",fill:"currentColor"}),(0,u.jsx)("path",{d:"M12.005 10.478c1.92 3.495 3.838 7 7.905 14.423m-7.905-14.423c3.11 5.683 6.23 11.368 7.905 14.423m0 0c-3.68.226-7.35.455-13.91.85m13.91-.85c-5.279.33-10.566.647-13.91.85m0 0c1.936-4.931 3.882-9.86 6.005-15.273M6 25.75c2.069-5.257 4.135-10.505 6.005-15.272",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:41,height:94,fill:"none"}),E=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{d:"M18.026 1.232c-5.268 13.125-5.548 33.555 3.285 42.311 8.823 8.75 33.31 12.304 42.422 13.523",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m72.181 59.247-13.058-10-2.948 13.62 16.006-3.62Z",fill:"currentColor"}),(0,u.jsx)("path",{d:"M72.181 59.247c-3.163-2.429-6.337-4.856-13.058-10m13.058 10c-5.145-3.936-10.292-7.882-13.058-10m0 0c-.78 3.603-1.563 7.196-2.948 13.62m2.948-13.62c-1.126 5.168-2.24 10.346-2.948 13.62m0 0c5.168-1.166 10.334-2.343 16.006-3.62m-16.006 3.62c5.51-1.248 11.01-2.495 16.006-3.62",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:85,height:71,fill:"none"}),P=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{d:"M1 77c14-2 31.833-11.973 35-24 3.167-12.016-6-35-9.5-43.5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m24.165 1.093-2.132 16.309 13.27-4.258-11.138-12.05Z",fill:"currentColor"}),(0,u.jsx)("path",{d:"M24.165 1.093c-.522 3.953-1.037 7.916-2.132 16.309m2.131-16.309c-.835 6.424-1.68 12.854-2.13 16.308m0 0c3.51-1.125 7.013-2.243 13.27-4.257m-13.27 4.257c5.038-1.608 10.08-3.232 13.27-4.257m0 0c-3.595-3.892-7.197-7.777-11.14-12.05m11.14 12.05c-3.837-4.148-7.667-8.287-11.14-12.05",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})]}),{width:38,height:78,fill:"none"}),C=m((0,u.jsxs)("g",{fill:"currentColor",children:[(0,u.jsx)("path",{d:"M24.296 12.214c0 .112-.134.224-.291.224-.135 0-.516.629-.808 1.392-.897 2.335-9.867 20.096-9.89 19.534 0-.292-.134-.494-.359-.494-.313 0-.358.18-.224 1.055.135 1.01.045 1.236-3.14 7.432-1.793 3.525-3.722 7.208-4.282 8.196-.584 1.032-1.032 2.155-1.077 2.626-.067.809.022.92 1.973 2.605 1.122.988 2.557 2.223 3.185 2.784 2.826 2.582 4.149 3.615 4.508 3.547.538-.09 8.858-8.823 8.88-9.317 0-.225-.403-3.638-.897-7.59-.852-6.735-1.66-14.616-1.57-15.38.068-.47-.269-2.85-.516-3.884-.201-.808-.112-1.145 1.503-4.827.942-2.178 2.176-4.85 2.714-5.928.515-1.077.964-2.02.964-2.088 0-.067-.157-.112-.336-.112-.18 0-.337.09-.337.225Zm-5.158 16.772c.247 1.572.74 5.344 1.099 8.375.695 5.568 1.503 11.742 1.727 13.314.135.786.045.943-1.413 2.56-2.534 2.851-5.225 5.658-6.145 6.376l-.852.674-4.373-4.086c-4.037-3.728-4.373-4.11-4.127-4.558a5154.2 5154.2 0 0 1 2.535-4.626 727.864 727.864 0 0 0 3.678-6.78c.784-1.46 1.502-2.717 1.637-2.785.156-.09.201 2.178.156 7.006-.09 7.207-.067 7.23.651 7.072.09 0 .157-3.637.157-8.06V35.43l2.355-4.715c1.3-2.605 2.377-4.693 2.422-4.67.045.022.27 1.347.493 2.94ZM9.562 1.818C7.903 3.143 5.346 5.388 3.328 7.32L1.735 8.823l.292 1.976c.157 1.078.449 3.188.628 4.67.202 1.482.404 2.874.47 3.077.09.269 0 .404-.246.404-.426 0-.449-.113.718 3.592.286.952.577 1.903.875 2.851.044.158.224.225.425.158.202-.09.314-.27.247-.427-.067-.18.045-.36.224-.427.247-.09.225-.269-.157-.92-.605-1.01-2.152-9.633-2.242-12.416-.067-1.976-.067-1.999.762-3.121.808-1.1 2.67-2.762 5.54-4.873.807-.605 1.614-1.28 1.839-1.504.336-.404.493-.292 3.319 2.717 1.637 1.729 3.453 3.502 4.037 3.952l1.076.808-.83 1.75c-.448.944-2.265 4.581-4.059 8.04-3.745 7.274-2.983 6.578-7.333 6.645l-2.826.023-.942 1.077c-.987 1.146-1.121 1.572-.65 2.29.18.248.313.652.313.898 0 .405.157.472 1.055.517.56.023 1.076.09 1.144.157.067.068.156 1.46.224 3.098l.09 2.965-1.503 3.232C1.735 45.422.749 47.891.749 48.7c0 .427.09.786.18.786.224 0 .224-.022 9.35-19.085a4398.495 4398.495 0 0 1 8.927-18.546c.672-1.369 1.278-2.626 1.323-2.806.045-.202-1.503-1.751-3.97-3.93-2.22-1.975-4.171-3.772-4.35-3.974-.516-.628-1.279-.426-2.647.674ZM8.441 31.231c-.18.472-.65 1.46-1.031 2.2-.629 1.258-.696 1.303-.853.786-.09-.314-.157-1.235-.18-2.066-.022-1.639-.067-1.616 1.817-1.728L8.8 30.4l-.358.831Zm1.884-3.592c-1.032 1.998-1.077 2.02-3.903 2.155-2.489.135-2.533.112-2.533-.36 0-.269-.09-.628-.203-.808-.134-.202-.044-.56.27-1.055l.493-.763H6.69c1.234-.023 2.647-.113 3.14-.202.494-.09.92-.135.965-.113.045.023-.18.54-.471 1.146Zm-.09-20.477c-.404.292-.516.584-.516 1.325 0 .875.067 1.01.673 1.257.605.247.763.224 1.458-.247.92-.629.941-.786.269-1.796-.583-.876-1.166-1.033-1.884-.54Z"}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.703 11.793c.166-.291.501-.514.93-.514.38 0 .698.161.82.283.161.162.225.35.225.54a.822.822 0 0 1-.056.289c-.08.218-.5 1.106-.983 2.116-.535 1.071-1.76 3.727-2.699 5.895-.79 1.802-1.209 2.784-1.404 3.416-.142.461-.132.665-.058.961.264 1.103.6 3.647.53 4.132-.088.756.727 8.547 1.57 15.21.5 3.997.903 7.45.903 7.676l-.001.033c-.004.087-.041.288-.211.54-.24.354-.914 1.143-1.8 2.119-2.004 2.21-5.107 5.423-6.463 6.653-.322.292-.566.485-.696.56a.884.884 0 0 1-.289.111c-.194.037-.579-.007-1.11-.349-.707-.453-1.981-1.522-4-3.366-.627-.561-2.061-1.794-3.176-2.776-.81-.699-1.308-1.138-1.612-1.466-.32-.343-.47-.61-.549-.87-.078-.257-.085-.515-.055-.874.05-.52.521-1.769 1.166-2.91.559-.985 2.48-4.654 4.269-8.17 1.579-3.071 2.392-4.663 2.792-5.612.32-.759.329-1 .277-1.387-.085-.553-.092-.891-.052-1.092a.942.942 0 0 1 .274-.52c.164-.157.384-.261.704-.261.094 0 .184.011.27.033 1.924-3.44 8.554-16.632 9.316-18.616.276-.724.64-1.336.848-1.556a.965.965 0 0 1 .32-.228Zm-5.399 16.402c-.49.942-.971 1.888-1.446 2.837l-2.28 4.565v7.871c0 4.023-.06 7.404-.136 8.04-.067.552-.474.691-.654.722l.075-.008c-.317.07-.574.063-.778-.023-.234-.098-.5-.297-.63-.857-.156-.681-.158-2.462-.103-6.893.019-2.022.022-3.592.008-4.725-.156.276-.315.562-.467.843a737.624 737.624 0 0 1-3.682 6.79 3618.972 3618.972 0 0 0-2.462 4.493c.062.088.169.231.289.364.55.61 1.631 1.623 3.624 3.462l3.931 3.674.377-.298c.907-.709 3.554-3.479 6.055-6.293.425-.47.73-.814.946-1.084.175-.22.28-.36.319-.501.031-.117.002-.227-.024-.379l-.004-.02c-.224-1.572-1.032-7.753-1.728-13.33-.358-3.022-.85-6.782-1.096-8.349l-.002-.01c-.042-.301-.087-.603-.132-.891ZM9.118 1.264C9.91.628 10.537.27 11.028.144c.727-.186 1.27.003 1.713.53.186.209 2.107 1.972 4.287 3.912 2.02 1.783 3.434 3.16 3.897 3.743.326.41.322.756.296.873a1.046 1.046 0 0 1-.005.018c-.047.188-.669 1.512-1.374 2.947a4348.55 4348.55 0 0 0-8.923 18.54c-7.335 15.32-8.808 18.396-9.217 19.015-.235.355-.419.404-.525.437a.815.815 0 0 1-.249.036.745.745 0 0 1-.647-.363C.176 49.67.04 49.222.04 48.7c0-.286.09-.754.316-1.434.452-1.356 1.466-3.722 3.225-7.53l1.432-3.083-.084-2.787a72.902 72.902 0 0 0-.156-2.53 7.307 7.307 0 0 0-.539-.046c-.463-.024-.764-.062-.96-.124-.304-.096-.48-.252-.598-.438-.105-.165-.17-.374-.17-.663 0-.134-.081-.348-.178-.481l-.019-.028c-.293-.448-.406-.831-.373-1.234.04-.484.34-1.052 1.08-1.91l.759-.869c-.103-.325-.471-1.513-.854-2.787-.737-2.339-1.004-3.238-1.018-3.578-.016-.393.134-.59.27-.715a.721.721 0 0 1 .192-.125 89.87 89.87 0 0 1-.414-2.782 231.651 231.651 0 0 0-.625-4.652l-.292-1.976a.71.71 0 0 1 .215-.62l1.589-1.501C4.87 4.86 7.446 2.599 9.118 1.264Zm-1.833 33.75a.819.819 0 0 1-.406.208.73.73 0 0 1-.491-.063l.048 1.618v.009l.849-1.773Zm5.874.697c-.035.087-.07.175-.107.261a20.92 20.92 0 0 1-.36.798.688.688 0 0 1 .457.007l.01.004v-1.07Zm.72-1.892-.015.018a.745.745 0 0 1-.407.236c.02.195.027.378 0 .592l.422-.846ZM7.7 31.175c-.268.027-.489.055-.6.07-.006.056-.013.13-.016.194-.005.19 0 .42.004.694.003.111.006.225.011.338.232-.471.459-.956.6-1.296Zm2.12-1.456a2.04 2.04 0 0 1-.415.31c.064.104.099.222.104.341l.132-.277.18-.374Zm-.14-2.374c-.654.079-1.882.153-2.974.173h-1.87l-.281.435c-.09.141-.17.331-.203.414.102.21.189.508.226.788h.007c.364.006.928-.023 1.805-.07 1.243-.06 1.88-.052 2.315-.291.154-.086.266-.215.387-.393.176-.261.354-.605.587-1.056Zm2.136-1.784c-.157.16-.331.3-.52.422a.631.631 0 0 1 .182.281l.337-.703Zm7.205-1.478c-.222.442-.445.883-.667 1.32a.787.787 0 0 1 .61.007c.036.018.145.07.243.2-.032-.165-.067-.33-.105-.493-.088-.351-.137-.633-.08-1.034h-.001ZM11.415 2.546c-.358.319-1.039.879-1.725 1.394C6.903 5.989 5.087 7.59 4.301 8.662c-.28.38-.458.605-.556.852-.15.38-.103.798-.068 1.824.063 1.923.833 6.669 1.493 9.686.262 1.199.483 2.11.654 2.394.25.426.364.71.398.894a.923.923 0 0 1-.184.764l1.27-.01c.863-.014 1.523.003 2.056-.019.424-.017.75-.052 1.034-.187.336-.159.596-.458.921-.955.62-.948 1.373-2.515 2.705-5.103 1.789-3.448 3.6-7.076 4.047-8.015l.582-1.227-.62-.466c-.595-.458-2.45-2.263-4.12-4.027a59.654 59.654 0 0 0-2.498-2.52ZM5.81 24.876v-.001l-.013-.03.013.031Zm-.71-.835.027-.011a.55.55 0 0 0-.028.011Zm19.904-11.777v.01-.01Zm.002-.016v-.034.034ZM9.82 6.587c-.587.424-.81.823-.81 1.9 0 .787.12 1.157.344 1.42.158.186.388.339.77.494.352.144.603.207.838.209.347.002.688-.12 1.285-.525.707-.483.98-.864 1.036-1.238.052-.352-.09-.812-.574-1.54-.412-.619-.853-.95-1.29-1.072-.489-.139-1.016-.05-1.586.342l-.013.01Zm2.015 2.028a6.288 6.288 0 0 0-.306-.52c-.19-.284-.326-.488-.531-.5-.113-.007-.224.058-.352.146-.218.159-.218.34-.218.745 0 .198.02.419.028.504.047.025.133.068.204.097.133.054.222.102.312.103.04 0 .071-.027.12-.054a4.29 4.29 0 0 0 .358-.225c.147-.1.299-.223.385-.296ZM9.12 1.263l-.002.002.002-.002Z"})]}),{width:26,height:62,fill:"none"}),O=m((0,u.jsxs)("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M6 6l4.153 11.793a0.365 .365 0 0 0 .331 .207a0.366 .366 0 0 0 .332 -.207l2.184 -4.793l4.787 -1.994a0.355 .355 0 0 0 .213 -.323a0.355 .355 0 0 0 -.213 -.323l-11.787 -4.36z"}),(0,u.jsx)("path",{d:"M13.5 13.5l4.5 4.5"})]}),{fill:"none",width:22,height:22,strokeWidth:1.25}),j=m((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"})]}),g),T=m((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M10.5 20.4l-6.9 -6.9c-.781 -.781 -.781 -2.219 0 -3l6.9 -6.9c.781 -.781 2.219 -.781 3 0l6.9 6.9c.781 .781 .781 2.219 0 3l-6.9 6.9c-.781 .781 -2.219 .781 -3 0z"})]}),g),M=m((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("circle",{cx:"12",cy:"12",r:"9"})]}),g),I=m((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,u.jsx)("line",{x1:"15",y1:"16",x2:"19",y2:"12"}),(0,u.jsx)("line",{x1:"15",y1:"8",x2:"19",y2:"12"})]}),g),D=m((0,u.jsx)("path",{d:"M4.167 10h11.666",strokeWidth:"1.5"}),v),A=m((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z"}),(0,u.jsx)("path",{d:"M16 7h4"}),(0,u.jsx)("path",{d:"M18 19h-13a2 2 0 1 1 0 -4h4a2 2 0 1 0 0 -4h-3"})]}),g),L=m((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{clipRule:"evenodd",d:"m7.643 15.69 7.774-7.773a2.357 2.357 0 1 0-3.334-3.334L4.31 12.357a3.333 3.333 0 0 0-.977 2.357v1.953h1.953c.884 0 1.732-.352 2.357-.977Z"}),(0,u.jsx)("path",{d:"m11.25 5.417 3.333 3.333"})]}),v),N=m((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"20",x2:"7",y2:"20"}),(0,u.jsx)("line",{x1:"14",y1:"20",x2:"21",y2:"20"}),(0,u.jsx)("line",{x1:"6.9",y1:"15",x2:"13.8",y2:"15"}),(0,u.jsx)("line",{x1:"10.2",y1:"6.3",x2:"16",y2:"20"}),(0,u.jsx)("polyline",{points:"5 20 11 4 13 4 20 20"})]}),g),R=m((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M12.5 6.667h.01"}),(0,u.jsx)("path",{d:"M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z"}),(0,u.jsx)("path",{d:"m3.333 12.5 3.334-3.333c.773-.745 1.726-.745 2.5 0l4.166 4.166"}),(0,u.jsx)("path",{d:"m11.667 11.667.833-.834c.774-.744 1.726-.744 2.5 0l1.667 1.667"})]}),v),z=m((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3"}),(0,u.jsx)("path",{d:"M18 13.3l-6.3 -6.3"})]}),g),F=m((0,u.jsx)("path",{strokeWidth:"1.25",d:"M10 4.167v11.666M4.167 10h11.666"}),v),Z=m((0,u.jsx)("path",{d:"M5 10h10",strokeWidth:"1.25"}),v),B=m((0,u.jsx)("path",{strokeWidth:"1.25",d:"M3.333 5.833h13.334M8.333 9.167v5M11.667 9.167v5M4.167 5.833l.833 10c0 .92.746 1.667 1.667 1.667h6.666c.92 0 1.667-.746 1.667-1.667l.833-10M7.5 5.833v-2.5c0-.46.373-.833.833-.833h3.334c.46 0 .833.373.833.833v2.5"}),v),U=m((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M14.375 6.458H8.958a2.5 2.5 0 0 0-2.5 2.5v5.417a2.5 2.5 0 0 0 2.5 2.5h5.417a2.5 2.5 0 0 0 2.5-2.5V8.958a2.5 2.5 0 0 0-2.5-2.5Z"}),(0,u.jsx)("path",{clipRule:"evenodd",d:"M11.667 3.125c.517 0 .986.21 1.325.55.34.338.55.807.55 1.325v1.458H8.333c-.485 0-.927.185-1.26.487-.343.312-.57.75-.609 1.24l-.005 5.357H5a1.87 1.87 0 0 1-1.326-.55 1.87 1.87 0 0 1-.549-1.325V5c0-.518.21-.987.55-1.326.338-.34.807-.549 1.325-.549h6.667Z"})]}),v),W=m((0,u.jsx)("path",{clipRule:"evenodd",d:"M10 2.5h.328a6.25 6.25 0 0 0 6.6 10.372A7.5 7.5 0 1 1 10 2.493V2.5Z",stroke:"currentColor"}),v),H=m((0,u.jsx)("g",{stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,u.jsx)("path",{d:"M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM10 4.167V2.5M14.167 5.833l1.166-1.166M15.833 10H17.5M14.167 14.167l1.166 1.166M10 15.833V17.5M5.833 14.167l-1.166 1.166M5 10H3.333M5.833 5.833 4.667 4.667"})}),v),K=m((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"6",x2:"20",y2:"6"}),(0,u.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),(0,u.jsx)("line",{x1:"4",y1:"18",x2:"20",y2:"18"})]}),g),V=m((0,u.jsx)("path",{strokeWidth:"1.25",d:"M3.333 14.167v1.666c0 .92.747 1.667 1.667 1.667h10c.92 0 1.667-.746 1.667-1.667v-1.666M5.833 9.167 10 13.333l4.167-4.166M10 3.333v10"}),v),Y=m((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,u.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"17.01"}),(0,u.jsx)("path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4"})]}),g),G=m((0,u.jsx)("path",{strokeWidth:"1.25",d:"M9.167 5.833H5.833c-1.254 0-2.5 1.282-2.5 2.5v5.834c0 1.283 1.252 2.5 2.5 2.5h5.834c1.251 0 2.5-1.25 2.5-2.5v-3.334M8.333 11.667l8.334-8.334M12.5 3.333h4.167V7.5"}),v),q=m((0,u.jsx)("path",{d:"M7.5 15.833c-3.583 1.167-3.583-2.083-5-2.5m10 4.167v-2.917c0-.833.083-1.166-.417-1.666 2.334-.25 4.584-1.167 4.584-5a3.833 3.833 0 0 0-1.084-2.667 3.5 3.5 0 0 0-.083-2.667s-.917-.25-2.917 1.084a10.25 10.25 0 0 0-5.166 0C5.417 2.333 4.5 2.583 4.5 2.583a3.5 3.5 0 0 0-.083 2.667 3.833 3.833 0 0 0-1.084 2.667c0 3.833 2.25 4.75 4.584 5-.5.5-.5 1-.417 1.666V17.5",strokeWidth:"1.25"}),v),X=m((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M7.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM12.5 10.833a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666ZM6.25 6.25c2.917-.833 4.583-.833 7.5 0M5.833 13.75c2.917.833 5.417.833 8.334 0"}),(0,u.jsx)("path",{d:"M12.917 14.167c0 .833 1.25 2.5 1.666 2.5 1.25 0 2.361-1.39 2.917-2.5.556-1.39.417-4.861-1.25-9.584-1.214-.846-2.5-1.116-3.75-1.25l-.833 2.084M7.083 14.167c0 .833-1.13 2.5-1.526 2.5-1.191 0-2.249-1.39-2.778-2.5-.529-1.39-.397-4.861 1.19-9.584 1.157-.846 2.318-1.116 3.531-1.25l.833 2.084"})]}),v),$=m((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z"})]}),g),J=m((0,u.jsx)("polyline",{fill:"none",stroke:"currentColor",points:"20 6 9 17 4 12"}),{width:24,height:24}),Q=m((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M8.333 11.667a2.917 2.917 0 0 0 4.167 0l3.333-3.334a2.946 2.946 0 1 0-4.166-4.166l-.417.416"}),(0,u.jsx)("path",{d:"M11.667 8.333a2.917 2.917 0 0 0-4.167 0l-3.333 3.334a2.946 2.946 0 0 0 4.166 4.166l.417-.416"})]}),v),ee=m("M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z",{width:448,height:512}),te=m("M252 54L203 8a28 27 0 00-20-8H28C12 0 0 12 0 27v195c0 15 12 26 28 26h204c15 0 28-11 28-26V73a28 27 0 00-8-19zM130 213c-21 0-37-16-37-36 0-19 16-35 37-35 20 0 37 16 37 35 0 20-17 36-37 36zm56-169v56c0 4-4 6-7 6H44c-4 0-7-2-7-6V42c0-4 3-7 7-7h133l4 2 3 2a7 7 0 012 5z M296 201l87 95-188 205-78 9c-10 1-19-8-18-20l9-84zm141-14l-41-44a31 31 0 00-46 0l-38 41 87 95 38-42c13-14 13-36 0-50z",{width:448,height:512}),ne=m((0,u.jsx)("path",{d:"m9.257 6.351.183.183H15.819c.34 0 .727.182 1.051.506.323.323.505.708.505 1.05v5.819c0 .316-.183.7-.52 1.035-.337.338-.723.522-1.037.522H4.182c-.352 0-.74-.181-1.058-.5-.318-.318-.499-.705-.499-1.057V5.182c0-.351.181-.736.5-1.054.32-.321.71-.503 1.057-.503H6.53l2.726 2.726Z",strokeWidth:"1.25"}),v),re=m("M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z",{width:384,height:512}),oe=m("M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"),ie=m((0,u.jsxs)("g",{strokeWidth:"1.25",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M15 8h.01"}),(0,u.jsx)("path",{d:"M12 20h-5a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v5"}),(0,u.jsx)("path",{d:"M4 15l4 -4c.928 -.893 2.072 -.893 3 0l4 4"}),(0,u.jsx)("path",{d:"M14 14l1 -1c.617 -.593 1.328 -.793 2.009 -.598"}),(0,u.jsx)("path",{d:"M19 16v6"}),(0,u.jsx)("path",{d:"M22 19l-3 3l-3 -3"})]}),g),ae=m("M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z",{width:512,height:512}),se=(m("M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",{width:448,height:512}),m("M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z",{width:448,height:512}),m("M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z")),le=(m("M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"),m((0,u.jsx)("path",{d:"M7.5 10.833 4.167 7.5 7.5 4.167M4.167 7.5h9.166a3.333 3.333 0 0 1 0 6.667H12.5",strokeWidth:"1.25"}),v)),ce=m((0,u.jsx)("path",{d:"M12.5 10.833 15.833 7.5 12.5 4.167M15.833 7.5H6.667a3.333 3.333 0 1 0 0 6.667H7.5",strokeWidth:"1.25"}),v),ue=m("M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z",{mirror:!0}),de=(m((0,u.jsx)("path",{d:"M5 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 7.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM15 17.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM7.25 8.917l5.5-2.834M7.25 11.083l5.5 2.834",strokeWidth:"1.5"}),v),m("M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-.9 2-2 2H6c-1.11 0-2-.9-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3c1.1 0 2 .89 2 2z",{width:24,height:24}),m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{fill:"currentColor",d:"M40 5.6v6.1l-4.1.7c-8.9 1.4-16.5 6.9-20.6 15C13 32 10.9 43 12.4 43c.4 0 2.4-1.3 4.4-3 5-3.9 12.1-7 18.2-7.7l5-.6v12.8l11.2-11.3L62.5 22 51.2 10.8 40-.5v6.1zm10.2 22.6L44 34.5v-6.8l-6.9.6c-3.9.3-9.8 1.7-13.2 3.1-3.5 1.4-6.5 2.4-6.7 2.2-.9-1 3-7.5 6.4-10.8C28 18.6 34.4 16 40.1 16c3.7 0 3.9-.1 3.9-3.2V9.5l6.2 6.3 6.3 6.2-6.3 6.2z"}),(0,u.jsx)("path",{stroke:"currentColor",fill:"currentColor",d:"M0 36v20h48v-6.2c0-6 0-6.1-2-4.3-1.1 1-2 2.9-2 4.2V52H4V34c0-17.3-.1-18-2-18s-2 .7-2 20z"})]}),{width:64,height:64}),m((0,u.jsx)("path",{stroke:"currentColor",strokeWidth:"40",fill:"currentColor",d:"M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z"}),{width:1024}),m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{d:"M13.889 4.167H8.333c-.767 0-1.389.622-1.389 1.389v5.555c0 .767.622 1.389 1.39 1.389h5.555c.767 0 1.389-.622 1.389-1.389V5.556c0-.767-.622-1.39-1.39-1.39Z",fill:"currentColor"}),(0,u.jsx)("path",{d:"M12.5 12.5v1.389a1.389 1.389 0 0 1-1.389 1.389H5.556a1.389 1.389 0 0 1-1.39-1.39V8.334a1.389 1.389 0 0 1 1.39-1.389h1.388"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v)),pe=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.944 12.5H12.5v1.389a1.389 1.389 0 0 1-1.389 1.389H5.556a1.389 1.389 0 0 1-1.39-1.39V8.334a1.389 1.389 0 0 1 1.39-1.389h1.388",fill:"currentColor"}),(0,u.jsx)("path",{d:"M13.889 4.167H8.333c-.767 0-1.389.621-1.389 1.389v5.555c0 .767.622 1.389 1.39 1.389h5.555c.767 0 1.389-.622 1.389-1.389V5.556c0-.768-.622-1.39-1.39-1.39Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),fe=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M8.775 6.458h2.45a2.316 2.316 0 0 1 2.317 2.316v2.452a2.316 2.316 0 0 1-2.316 2.316H8.774a2.316 2.316 0 0 1-2.317-2.316V8.774a2.316 2.316 0 0 1 2.317-2.316Z",fill:"currentColor"}),(0,u.jsx)("path",{d:"M5.441 9.792h2.451a2.316 2.316 0 0 1 2.316 2.316v2.45a2.316 2.316 0 0 1-2.316 2.317h-2.45a2.316 2.316 0 0 1-2.317-2.316v-2.451a2.316 2.316 0 0 1 2.316-2.316ZM12.108 3.125h2.45a2.316 2.316 0 0 1 2.317 2.316v2.451a2.316 2.316 0 0 1-2.316 2.316h-2.451a2.316 2.316 0 0 1-2.316-2.316v-2.45a2.316 2.316 0 0 1 2.316-2.317Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),he=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",children:[(0,u.jsx)("path",{d:"M5.441 9.792h2.451a2.316 2.316 0 0 1 2.316 2.316v2.45a2.316 2.316 0 0 1-2.316 2.317h-2.45a2.316 2.316 0 0 1-2.317-2.316v-2.451a2.316 2.316 0 0 1 2.316-2.316Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,u.jsx)("path",{d:"M5.441 9.792h2.451a2.316 2.316 0 0 1 2.316 2.316v2.45a2.316 2.316 0 0 1-2.316 2.317h-2.45a2.316 2.316 0 0 1-2.317-2.316v-2.451a2.316 2.316 0 0 1 2.316-2.316Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,u.jsx)("mask",{id:"SendToBackIcon",fill:"#fff",children:(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.167 5.833v2.06a2.941 2.941 0 0 0 2.94 2.94h2.06v.393a2.941 2.941 0 0 1-2.941 2.94h-.393v-2.058a2.941 2.941 0 0 0-2.94-2.941h-2.06v-.393a2.941 2.941 0 0 1 2.942-2.94h.392Z"})}),(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.167 5.833v2.06a2.941 2.941 0 0 0 2.94 2.94h2.06v.393a2.941 2.941 0 0 1-2.941 2.94h-.393v-2.058a2.941 2.941 0 0 0-2.94-2.941h-2.06v-.393a2.941 2.941 0 0 1 2.942-2.94h.392Z",fill:"currentColor"}),(0,u.jsx)("path",{d:"M9.167 5.833h1.25v-1.25h-1.25v1.25Zm5 5h1.25v-1.25h-1.25v1.25Zm-3.334 3.334h-1.25v1.25h1.25v-1.25Zm-5-5h-1.25v1.25h1.25v-1.25Zm2.084-3.334v2.06h2.5v-2.06h-2.5Zm0 2.06a4.191 4.191 0 0 0 4.19 4.19v-2.5a1.691 1.691 0 0 1-1.69-1.69h-2.5Zm4.19 4.19h2.06v-2.5h-2.06v2.5Zm.81-1.25v.393h2.5v-.393h-2.5Zm0 .393c0 .933-.758 1.69-1.691 1.69v2.5a4.191 4.191 0 0 0 4.19-4.19h-2.5Zm-1.691 1.69h-.393v2.5h.393v-2.5Zm.857 1.25v-2.058h-2.5v2.059h2.5Zm0-2.058a4.191 4.191 0 0 0-4.19-4.191v2.5c.933 0 1.69.757 1.69 1.69h2.5Zm-4.19-4.191h-2.06v2.5h2.06v-2.5Zm-.81 1.25v-.393h-2.5v.393h2.5Zm0-.393c0-.934.758-1.69 1.692-1.69v-2.5a4.191 4.191 0 0 0-4.192 4.19h2.5Zm1.692-1.69h.392v-2.5h-.392v2.5Z",fill:"currentColor",mask:"url(#SendToBackIcon)"}),(0,u.jsx)("path",{d:"M12.108 3.125h2.45a2.316 2.316 0 0 1 2.317 2.316v2.451a2.316 2.316 0 0 1-2.316 2.316h-2.451a2.316 2.316 0 0 1-2.316-2.316v-2.45a2.316 2.316 0 0 1 2.316-2.317Z",stroke:"currentColor",strokeWidth:"1.25"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),me=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M3.333 3.333h13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v7.083c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V8.125c0-.92-.746-1.667-1.666-1.667ZM6.875 6.458h-.417c-.92 0-1.666.747-1.666 1.667v3.75c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667v-3.75c0-.92-.747-1.667-1.667-1.667Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),ge=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M3.333 16.667h13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M6.875 3.125h-.417c-.92 0-1.666.746-1.666 1.667v7.083c0 .92.746 1.667 1.666 1.667h.417c.92 0 1.667-.746 1.667-1.667V4.792c0-.92-.747-1.667-1.667-1.667ZM13.542 5.817h-.417c-.92 0-1.667.747-1.667 1.667v4.391c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667V7.484c0-.92-.746-1.667-1.666-1.667Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),ve=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M3.333 3.333v13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M15.208 4.792H8.125c-.92 0-1.667.746-1.667 1.666v.417c0 .92.747 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM12.516 11.458H8.125c-.92 0-1.667.746-1.667 1.667v.417c0 .92.747 1.666 1.667 1.666h4.391c.92 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.667-1.667Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),be=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M16.667 3.333v13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M11.875 4.792H4.792c-.92 0-1.667.746-1.667 1.666v.417c0 .92.746 1.667 1.667 1.667h7.083c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666ZM11.683 11.458H7.292c-.92 0-1.667.746-1.667 1.667v.417c0 .92.746 1.666 1.667 1.666h4.39c.921 0 1.667-.746 1.667-1.666v-.417c0-.92-.746-1.667-1.666-1.667Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),ye=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M16.667 3.333v13.334M3.333 3.333v13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M14.375 10.208v-.416c0-.92-.746-1.667-1.667-1.667H7.292c-.92 0-1.667.746-1.667 1.667v.416c0 .92.746 1.667 1.667 1.667h5.416c.92 0 1.667-.746 1.667-1.667Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),we=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M3.333 3.333h13.334M3.333 16.667h13.334",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M10.208 5.625h-.416c-.92 0-1.667.746-1.667 1.667v5.416c0 .92.746 1.667 1.667 1.667h.416c.92 0 1.667-.746 1.667-1.667V7.292c0-.92-.746-1.667-1.667-1.667Z"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),xe=m((0,u.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M1.667 10h2.916",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M8.333 10h3.334",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M15.417 10h2.916",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M6.875 4.792h-.417c-.92 0-1.666.746-1.666 1.666v7.084c0 .92.746 1.666 1.666 1.666h.417c.92 0 1.667-.746 1.667-1.666V6.458c0-.92-.747-1.666-1.667-1.666ZM13.542 6.458h-.417c-.92 0-1.667.747-1.667 1.667v3.75c0 .92.746 1.667 1.667 1.667h.417c.92 0 1.666-.746 1.666-1.667v-3.75c0-.92-.746-1.667-1.666-1.667Z"})]}),v),ke=m((0,u.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.25",children:[(0,u.jsx)("path",{d:"M10 18.333v-2.916",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M10 11.667V8.333",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M10 4.583V1.667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M4.792 13.125v.417c0 .92.746 1.666 1.666 1.666h7.084c.92 0 1.666-.746 1.666-1.666v-.417c0-.92-.746-1.667-1.666-1.667H6.458c-.92 0-1.666.746-1.666 1.667ZM6.458 6.458v.417c0 .92.747 1.667 1.667 1.667h3.75c.92 0 1.667-.747 1.667-1.667v-.417c0-.92-.746-1.666-1.667-1.666h-3.75c-.92 0-1.667.746-1.667 1.666Z"})]}),v),_e=m((0,u.jsxs)("g",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("circle",{cx:"9",cy:"7",r:"4"}),(0,u.jsx)("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),(0,u.jsx)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}),(0,u.jsx)("path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85"})]}),g),Se=(m("M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"),m("M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"),m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,u.jsx)("path",{d:"M15 5 5 15M5 5l10 10"})}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v)),Ee=m("M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z",{width:320,height:512,style:{marginLeft:"-0.2rem"},mirror:!0}),Pe=(m("M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z",{mirror:!0}),m("M11.553 22.894a.998.998 0 00.894 0s3.037-1.516 5.465-4.097C19.616 16.987 21 14.663 21 12V5a1 1 0 00-.649-.936l-8-3a.998.998 0 00-.702 0l-8 3A1 1 0 003 5v7c0 2.663 1.384 4.987 3.088 6.797 2.428 2.581 5.465 4.097 5.465 4.097zm-1.303-8.481l6.644-6.644a.856.856 0 111.212 1.212l-7.25 7.25a.856.856 0 01-1.212 0l-3.75-3.75a.856.856 0 111.212-1.212l3.144 3.144z",{width:24}),m("M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z",{width:384,height:512}),a().memo((function(e){var t=e.theme;return m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{d:"M25 26H111V111H25",fill:"var(--icon-fill-color)"}),(0,u.jsx)("path",{d:"M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,u.jsx)("path",{d:"M100 100H160V160H100",fill:"var(--icon-fill-color)"}),(0,u.jsx)("path",{d:"M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,u.jsxs)("g",{fill:h(t),stroke:"var(--icon-fill-color)",strokeWidth:"6",children:[(0,u.jsx)("rect",{x:"2.5",y:"2.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"2.5",y:"149.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"147.5",y:"149.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"147.5",y:"2.5",width:"30",height:"30"})]})]}),{width:182,height:182,mirror:!0})}))),Ce=a().memo((function(e){var t=e.theme;return m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{d:"M25 26H111V111H25",fill:"var(--icon-fill-color)"}),(0,u.jsx)("path",{d:"M25 111C25 80.2068 25 49.4135 25 26M25 26C48.6174 26 72.2348 26 111 26H25ZM25 26C53.3671 26 81.7343 26 111 26H25ZM111 26C111 52.303 111 78.606 111 111V26ZM111 26C111 51.2947 111 76.5893 111 111V26ZM111 111C87.0792 111 63.1585 111 25 111H111ZM111 111C87.4646 111 63.9293 111 25 111H111ZM25 111C25 81.1514 25 51.3028 25 26V111Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,u.jsx)("path",{d:"M100 100H160V160H100",fill:"var(--icon-fill-color)"}),(0,u.jsx)("path",{d:"M100 160C100 144.106 100 128.211 100 100M100 100C117.706 100 135.412 100 160 100H100ZM100 100C114.214 100 128.428 100 160 100H100ZM160 100C160 120.184 160 140.369 160 160V100ZM160 100C160 113.219 160 126.437 160 160V100ZM160 160C145.534 160 131.068 160 100 160H160ZM160 160C143.467 160 126.934 160 100 160H160ZM100 160C100 143.661 100 127.321 100 100V160Z",stroke:"var(--icon-fill-color)",strokeWidth:"2"}),(0,u.jsxs)("g",{fill:h(t),stroke:"var(--icon-fill-color)",strokeWidth:"6",children:[(0,u.jsx)("rect",{x:"2.5",y:"2.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"78.5",y:"149.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"147.5",y:"149.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"147.5",y:"78.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"105.5",y:"2.5",width:"30",height:"30"}),(0,u.jsx)("rect",{x:"2.5",y:"102.5",width:"30",height:"30"})]})]}),{width:182,height:182,mirror:!0})})),Oe=m((0,u.jsx)("g",{strokeWidth:1.25,children:(0,u.jsx)("path",{d:"M5.879 2.625h8.242a3.27 3.27 0 0 1 3.254 3.254v8.242a3.27 3.27 0 0 1-3.254 3.254H5.88a3.27 3.27 0 0 1-3.254-3.254V5.88A3.27 3.27 0 0 1 5.88 2.626l-.001-.001ZM4.518 16.118l7.608-12.83m.198 13.934 5.051-9.897M2.778 9.675l9.348-6.387m-7.608 12.83 12.857-8.793"})}),v),je=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("path",{d:"M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,u.jsx)("mask",{id:"FillHachureIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:2,y:2,width:16,height:16,children:(0,u.jsx)("path",{d:"M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.25"})}),(0,u.jsx)("g",{mask:"url(#FillHachureIcon)",children:(0,u.jsx)("path",{d:"M2.258 15.156 15.156 2.258M7.324 20.222 20.222 7.325m-20.444 5.35L12.675-.222m-8.157 18.34L17.416 5.22",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})})]}),v),Te=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("g",{clipPath:"url(#a)",children:[(0,u.jsx)("path",{d:"M5.879 2.625h8.242a3.254 3.254 0 0 1 3.254 3.254v8.242a3.254 3.254 0 0 1-3.254 3.254H5.88a3.254 3.254 0 0 1-3.254-3.254V5.88a3.254 3.254 0 0 1 3.254-3.254Z",stroke:"currentColor",strokeWidth:"1.25"}),(0,u.jsx)("mask",{id:"FillCrossHatchIcon",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:-1,y:-1,width:22,height:22,children:(0,u.jsx)("path",{d:"M2.426 15.044 15.044 2.426M7.383 20 20 7.383M0 12.617 12.617 0m-7.98 17.941L17.256 5.324m-2.211 12.25L2.426 4.956M20 12.617 7.383 0m5.234 20L0 7.383m17.941 7.98L5.324 2.745",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,u.jsx)("g",{mask:"url(#FillCrossHatchIcon)",children:(0,u.jsx)("path",{d:"M14.121 2H5.88A3.879 3.879 0 0 0 2 5.879v8.242A3.879 3.879 0 0 0 5.879 18h8.242A3.879 3.879 0 0 0 18 14.121V5.88A3.879 3.879 0 0 0 14.121 2Z",fill:"currentColor"})})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),Me=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("g",{clipPath:"url(#a)",children:(0,u.jsx)("path",{d:"M4.91 2.625h10.18a2.284 2.284 0 0 1 2.285 2.284v10.182a2.284 2.284 0 0 1-2.284 2.284H4.909a2.284 2.284 0 0 1-2.284-2.284V4.909a2.284 2.284 0 0 1 2.284-2.284Z",stroke:"currentColor",strokeWidth:"1.25"})}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),f(f({},v),{},{fill:"currentColor"})),Ie=m((0,u.jsx)(u.Fragment,{children:(0,u.jsx)("path",{d:"M4.167 10h11.666",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),v),De=m((0,u.jsx)("path",{d:"M5 10h10",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),v),Ae=m((0,u.jsx)("path",{d:"M5 10h10",stroke:"currentColor",strokeWidth:"3.75",strokeLinecap:"round",strokeLinejoin:"round"}),v),Le=m((0,u.jsxs)("g",{strokeWidth:"2",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M5 12h2"}),(0,u.jsx)("path",{d:"M17 12h2"}),(0,u.jsx)("path",{d:"M11 12h2"})]}),g),Ne=m((0,u.jsxs)("g",{strokeWidth:"2",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M4 12v.01"}),(0,u.jsx)("path",{d:"M8 12v.01"}),(0,u.jsx)("path",{d:"M12 12v.01"}),(0,u.jsx)("path",{d:"M16 12v.01"}),(0,u.jsx)("path",{d:"M20 12v.01"})]}),g),Re=m((0,u.jsx)("path",{d:"M2.5 12.038c1.655-.885 5.9-3.292 8.568-4.354 2.668-1.063.101 2.821 1.32 3.104 1.218.283 5.112-1.814 5.112-1.814",strokeWidth:"1.25"}),v),ze=m((0,u.jsx)("path",{d:"M2.5 12.563c1.655-.886 5.9-3.293 8.568-4.355 2.668-1.062.101 2.822 1.32 3.105 1.218.283 5.112-1.814 5.112-1.814m-13.469 2.23c2.963-1.586 6.13-5.62 7.468-4.998 1.338.623-1.153 4.11-.132 5.595 1.02 1.487 6.133-1.43 6.133-1.43",strokeWidth:"1.25"}),v),Fe=m((0,u.jsx)("path",{d:"M2.5 11.936c1.737-.879 8.627-5.346 10.42-5.268 1.795.078-.418 5.138.345 5.736.763.598 3.53-1.789 4.235-2.147M2.929 9.788c1.164-.519 5.47-3.28 6.987-3.114 1.519.165 1 3.827 2.121 4.109 1.122.281 3.839-2.016 4.606-2.42",strokeWidth:"1.25"}),v),Ze=m((0,u.jsxs)("svg",{strokeWidth:"1.5",children:[(0,u.jsx)("path",{d:"M3.33334 9.99998V6.66665C3.33334 6.04326 3.33403 4.9332 3.33539 3.33646C4.95233 3.33436 6.06276 3.33331 6.66668 3.33331H10"}),(0,u.jsx)("path",{d:"M13.3333 3.33331V3.34331"}),(0,u.jsx)("path",{d:"M16.6667 3.33331V3.34331"}),(0,u.jsx)("path",{d:"M16.6667 6.66669V6.67669"}),(0,u.jsx)("path",{d:"M16.6667 10V10.01"}),(0,u.jsx)("path",{d:"M3.33334 13.3333V13.3433"}),(0,u.jsx)("path",{d:"M16.6667 13.3333V13.3433"}),(0,u.jsx)("path",{d:"M3.33334 16.6667V16.6767"}),(0,u.jsx)("path",{d:"M6.66666 16.6667V16.6767"}),(0,u.jsx)("path",{d:"M10 16.6667V16.6767"}),(0,u.jsx)("path",{d:"M13.3333 16.6667V16.6767"}),(0,u.jsx)("path",{d:"M16.6667 16.6667V16.6767"})]}),v),Be=m((0,u.jsxs)("g",{strokeWidth:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M4 12v-4a4 4 0 0 1 4 -4h4"}),(0,u.jsx)("line",{x1:"16",y1:"4",x2:"16",y2:"4.01"}),(0,u.jsx)("line",{x1:"20",y1:"4",x2:"20",y2:"4.01"}),(0,u.jsx)("line",{x1:"20",y1:"8",x2:"20",y2:"8.01"}),(0,u.jsx)("line",{x1:"20",y1:"12",x2:"20",y2:"12.01"}),(0,u.jsx)("line",{x1:"4",y1:"16",x2:"4",y2:"16.01"}),(0,u.jsx)("line",{x1:"20",y1:"16",x2:"20",y2:"16.01"}),(0,u.jsx)("line",{x1:"4",y1:"20",x2:"4",y2:"20.01"}),(0,u.jsx)("line",{x1:"8",y1:"20",x2:"8",y2:"20.01"}),(0,u.jsx)("line",{x1:"12",y1:"20",x2:"12",y2:"20.01"}),(0,u.jsx)("line",{x1:"16",y1:"20",x2:"16",y2:"20.01"}),(0,u.jsx)("line",{x1:"20",y1:"20",x2:"20",y2:"20.01"})]}),g),Ue=m((0,u.jsx)("path",{d:"M6 10H34",stroke:"currentColor",strokeWidth:2,fill:"none"}),{width:40,height:20}),We=a().memo((function(e){var t=e.flip,n=void 0!==t&&t;return m((0,u.jsxs)("g",{transform:n?"translate(40, 0) scale(-1, 1)":"",stroke:"currentColor",strokeWidth:2,fill:"none",children:[(0,u.jsx)("path",{d:"M34 10H6M34 10L27 5M34 10L27 15"}),(0,u.jsx)("path",{d:"M27.5 5L34.5 10L27.5 15"})]}),{width:40,height:20})})),He=a().memo((function(e){var t=e.flip,n=void 0!==t&&t;return m((0,u.jsxs)("g",{stroke:"currentColor",fill:"currentColor",transform:n?"translate(40, 0) scale(-1, 1)":"",children:[(0,u.jsx)("path",{d:"M32 10L6 10",strokeWidth:2}),(0,u.jsx)("circle",{r:"4",transform:"matrix(-1 0 0 1 30 10)"})]}),{width:40,height:20})})),Ke=a().memo((function(e){var t=e.flip,n=void 0!==t&&t;return m((0,u.jsx)("g",{transform:n?"translate(40, 0) scale(-1, 1)":"",children:(0,u.jsx)("path",{d:"M34 10H5.99996M34 10L34 5M34 10L34 15",stroke:"currentColor",strokeWidth:2,fill:"none"})}),{width:40,height:20})})),Ve=a().memo((function(e){var t=e.flip,n=void 0!==t&&t;return m((0,u.jsxs)("g",{stroke:"currentColor",fill:"currentColor",transform:n?"translate(40, 0) scale(-1, 1)":"",children:[(0,u.jsx)("path",{d:"M32 10L6 10",strokeWidth:2}),(0,u.jsx)("path",{d:"M27.5 5.5L34.5 10L27.5 14.5L27.5 5.5"})]}),{width:40,height:20})})),Ye=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("g",{clipPath:"url(#a)",children:(0,u.jsx)("path",{d:"M14.167 6.667a3.333 3.333 0 0 0-3.334-3.334H9.167a3.333 3.333 0 0 0 0 6.667h1.666a3.333 3.333 0 0 1 0 6.667H9.167a3.333 3.333 0 0 1-3.334-3.334",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),Ge=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("g",{clipPath:"url(#a)",children:(0,u.jsx)("path",{d:"M5 16.667V3.333L10 15l5-11.667v13.334",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),qe=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("g",{clipPath:"url(#a)",children:(0,u.jsx)("path",{d:"M5.833 3.333v13.334h8.334",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),Xe=m((0,u.jsx)(u.Fragment,{children:(0,u.jsx)("path",{d:"m1.667 3.333 6.666 13.334M8.333 3.333 1.667 16.667M11.667 3.333v13.334h6.666",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),v),$e=m((0,u.jsx)(u.Fragment,{children:(0,u.jsx)("g",{stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,u.jsx)("path",{d:"M5.833 16.667v-10a3.333 3.333 0 0 1 3.334-3.334h1.666a3.333 3.333 0 0 1 3.334 3.334v10M5.833 10.833h8.334"})})}),v),Je=m((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("g",{clipPath:"url(#a)",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,u.jsx)("path",{d:"M5.833 6.667 2.5 10l3.333 3.333M14.167 6.667 17.5 10l-3.333 3.333M11.667 3.333 8.333 16.667"})}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"a",children:(0,u.jsx)("path",{fill:"#fff",d:"M0 0h20v20H0z"})})})]}),v),Qe=m((0,u.jsxs)("g",{stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,u.jsx)("line",{x1:"4",y1:"12",x2:"12",y2:"12"}),(0,u.jsx)("line",{x1:"4",y1:"16",x2:"16",y2:"16"})]}),g),et=m((0,u.jsxs)("g",{stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,u.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12"}),(0,u.jsx)("line",{x1:"6",y1:"16",x2:"18",y2:"16"})]}),g),tt=m((0,u.jsxs)("g",{stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,u.jsx)("line",{x1:"10",y1:"12",x2:"20",y2:"12"}),(0,u.jsx)("line",{x1:"8",y1:"16",x2:"20",y2:"16"})]}),g),nt=a().memo((function(e){return e.theme,m((0,u.jsxs)("g",{strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"4",x2:"20",y2:"4"}),(0,u.jsx)("rect",{x:"9",y:"8",width:"6",height:"12",rx:"2"})]}),g)})),rt=a().memo((function(e){return e.theme,m((0,u.jsxs)("g",{strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20"}),(0,u.jsx)("rect",{x:"9",y:"4",width:"6",height:"12",rx:"2"})]}),g)})),ot=a().memo((function(e){return e.theme,m((0,u.jsxs)("g",{strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("line",{x1:"4",y1:"12",x2:"9",y2:"12"}),(0,u.jsx)("line",{x1:"15",y1:"12",x2:"20",y2:"12"}),(0,u.jsx)("rect",{x:"9",y:"6",width:"6",height:"12",rx:"2"})]}),g)})),it=m((0,u.jsx)("path",{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z",fill:"currentColor"}),{width:640,height:512}),at=(m((0,u.jsx)("path",{d:"M480 416C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H150.6C133.7 480 117.4 473.3 105.4 461.3L25.37 381.3C.3786 356.3 .3786 315.7 25.37 290.7L258.7 57.37C283.7 32.38 324.3 32.38 349.3 57.37L486.6 194.7C511.6 219.7 511.6 260.3 486.6 285.3L355.9 416H480zM265.4 416L332.7 348.7L195.3 211.3L70.63 336L150.6 416L265.4 416z"})),m((0,u.jsxs)("g",{strokeWidth:1.25,children:[(0,u.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5"}),(0,u.jsx)("path",{d:"M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5"}),(0,u.jsx)("path",{d:"M14 5.5a1.5 1.5 0 0 1 3 0v6.5"}),(0,u.jsx)("path",{d:"M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47"})]}),g))},4709:function(e,t,n){"use strict";n.d(t,{Z:function(){return Q}});var r={};n.r(r),n.d(r,{ChangeCanvasBackground:function(){return R},ClearCanvas:function(){return L},Export:function(){return z},Help:function(){return A},LiveCollaborationTrigger:function(){return Z},LoadScene:function(){return M},SaveAsImage:function(){return D},SaveToActiveFile:function(){return I},Socials:function(){return F},ToggleTheme:function(){return N}});var o=n(2134),i=n(9127),a=n(785),s=n(8211),l=n(3646),c=n(2739),u=n(4215),d=n(6710),p=n(487),f=n.n(p),h=n(631),m=n.n(h),g=n(2052),v=n.n(g),b=n(4010),y=n.n(b),w=n(1469),x=n.n(w),k=n(9329),_=n.n(k),S=n(4343),E={};E.styleTagTransform=_(),E.setAttributes=y(),E.insert=v().bind(null,"head"),E.domAPI=m(),E.insertStyleElement=x(),f()(S.Z,E),S.Z&&S.Z.locals&&S.Z.locals;var P=n(45),C=n(4739),O=n(6798),j=n(9487),T=n(4512),M=function(){var e=(0,s.QT)().t,t=(0,o.eh)();return t.isActionEnabled(d._d)?(0,T.jsx)(c.Z,{icon:l.Tl,onSelect:function(){return t.executeAction(d._d)},"data-testid":"load-button",shortcut:(0,a.C)("loadScene"),"aria-label":e("buttons.load"),children:e("buttons.load")}):null};M.displayName="LoadScene";var I=function(){var e=(0,s.QT)().t,t=(0,o.eh)();return t.isActionEnabled(d.ns)?(0,T.jsx)(c.Z,{shortcut:(0,a.C)("saveScene"),"data-testid":"save-button",onSelect:function(){return t.executeAction(d.ns)},icon:l.a1,"aria-label":"".concat(e("buttons.save")),children:"".concat(e("buttons.save"))}):null};I.displayName="SaveToActiveFile";var D=function(){var e=(0,o.n9)(),t=(0,s.QT)().t;return(0,T.jsx)(c.Z,{icon:l.J8,"data-testid":"image-export-button",onSelect:function(){return e({openDialog:"imageExport"})},shortcut:(0,a.C)("imageExport"),"aria-label":t("buttons.exportImage"),children:t("buttons.exportImage")})};D.displayName="SaveAsImage";var A=function(){var e=(0,s.QT)().t,t=(0,o.eh)();return(0,T.jsx)(c.Z,{"data-testid":"help-menu-item",icon:l.by,onSelect:function(){return t.executeAction(d.jY)},shortcut:"?","aria-label":e("helpDialog.title"),children:e("helpDialog.title")})};A.displayName="Help";var L=function(){var e=(0,s.QT)().t,t=(0,C.b9)(O.w,j.yE);return(0,o.eh)().isActionEnabled(d.mo)?(0,T.jsx)(c.Z,{icon:l.XH,onSelect:function(){return t("clearCanvas")},"data-testid":"clear-canvas-button","aria-label":e("buttons.clearReset"),children:e("buttons.clearReset")}):null};L.displayName="ClearCanvas";var N=function(){var e=(0,s.QT)().t,t=(0,o.gF)(),n=(0,o.eh)();return n.isActionEnabled(d.Zp)?(0,T.jsx)(c.Z,{onSelect:function(e){return e.preventDefault(),n.executeAction(d.Zp)},icon:"dark"===t.theme?l.NW:l.kL,"data-testid":"toggle-dark-mode",shortcut:(0,a.C)("toggleTheme"),"aria-label":"dark"===t.theme?e("buttons.lightMode"):e("buttons.darkMode"),children:"dark"===t.theme?e("buttons.lightMode"):e("buttons.darkMode")}):null};N.displayName="ToggleTheme";var R=function(){var e=(0,s.QT)().t,t=(0,o.gF)(),n=(0,o.eh)();return t.viewModeEnabled?null:(0,T.jsxs)("div",{style:{marginTop:"0.5rem"},children:[(0,T.jsx)("div",{style:{fontSize:".75rem",marginBottom:".5rem"},children:e("labels.canvasBackground")}),(0,T.jsx)("div",{style:{padding:"0 0.625rem"},children:n.renderAction("changeViewBackgroundColor")})]})};R.displayName="ChangeCanvasBackground";var z=function(){var e=(0,s.QT)().t,t=(0,o.n9)();return(0,T.jsx)(c.Z,{icon:l.Hy,onSelect:function(){t({openDialog:"jsonExport"})},"data-testid":"json-export-button","aria-label":e("buttons.export"),children:e("buttons.export")})};z.displayName="Export";var F=function(){return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(u.Z,{icon:l.ET,href:"https://github.com/excalidraw/excalidraw","aria-label":"GitHub",children:"GitHub"}),(0,T.jsx)(u.Z,{icon:l.D7,href:"https://discord.gg/UexuTaE","aria-label":"Discord",children:"Discord"}),(0,T.jsx)(u.Z,{icon:l.Zm,href:"https://twitter.com/excalidraw","aria-label":"Twitter",children:"Twitter"})]})};F.displayName="Socials";var Z=function(e){var t=e.onSelect,n=e.isCollaborating,r=(0,s.QT)().t;return(0,T.jsx)(c.Z,{"data-testid":"collab-button",icon:l.jn,className:(0,P.Z)({"active-collab":n}),onSelect:t,children:r("labels.liveCollaboration")})};Z.displayName="LiveCollaborationTrigger";var B=n(6773),U=n(7169),W=n(2577),H=n(9787),K=n(8888);function V(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}var Y,G,q,X,$=n(6340),J=Object.assign(("MainMenu",Y=function(e){var t=e.children,n=e.onSelect,r=(0,K.R6)().mainMenuTunnel,a=(0,o.Fy)(),c=(0,o.gF)(),u=(0,o.n9)(),d=a.isMobile?void 0:function(){return u({openMenu:null})};return(0,T.jsx)(r.In,{children:(0,T.jsxs)(i.Z,{open:"canvas"===c.openMenu,children:[(0,T.jsx)(i.Z.Trigger,{onToggle:function(){u({openMenu:"canvas"===c.openMenu?null:"canvas"})},children:l.RY}),(0,T.jsxs)(i.Z.Content,{onClickOutside:d,onSelect:(0,$.Mj)(n,(function(){u({openMenu:null})})),children:[t,a.isMobile&&c.collaborators.size>0&&(0,T.jsxs)("fieldset",{className:"UserList-Wrapper",children:[(0,T.jsx)("legend",{children:(0,s.t)("labels.collaborators")}),(0,T.jsx)(B.Z,{mobile:!0,collaborators:c.collaborators})]})]})]})})},G=(0,C.cn)(0),q=!1,X=function(e){var t=(0,K.R6)().jotaiScope,n=(0,C.KO)(G,t),r=(0,W.Z)(n,2),o=r[0],i=r[1];return(0,H.useLayoutEffect)((function(){return i((function(e){return e+1})),function(){i((function(e){return e-1}))}}),[i]),e.__fallback||(q=!0),!o&&e.__fallback&&q||o>1&&e.__fallback?null:(0,T.jsx)(Y,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){(0,U.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))},X.displayName="MainMenu",X),{Trigger:i.Z.Trigger,Item:i.Z.Item,ItemLink:i.Z.ItemLink,ItemCustom:i.Z.ItemCustom,Group:i.Z.Group,Separator:i.Z.Separator,DefaultItems:r}),Q=J},2335:function(e,t,n){"use strict";n.d(t,{jo:function(){return me},iC:function(){return P},gK:function(){return ye},$C:function(){return N},oc:function(){return D},_9:function(){return Se},HN:function(){return Ce},qy:function(){return fe},rk:function(){return B},n5:function(){return Z},h6:function(){return he},Rx:function(){return _e},Hg:function(){return U},cW:function(){return oe},hs:function(){return W},f:function(){return C},xY:function(){return ke},Iw:function(){return j},$e:function(){return T},Vi:function(){return L},Ks:function(){return v},r8:function(){return V},ZB:function(){return pe},pb:function(){return Y},ut:function(){return R},k:function(){return H},sA:function(){return ee},LL:function(){return G},EE:function(){return ue},qx:function(){return O},$n:function(){return ge},zK:function(){return de},LO:function(){return K},Zj:function(){return Q},Yx:function(){return le},sS:function(){return se},kV:function(){return ae},sk:function(){return ce},eF:function(){return ie},Oh:function(){return A},WR:function(){return Pe},a6:function(){return Ee},HM:function(){return $},ay:function(){return I},hR:function(){return ve},Gj:function(){return q},I8:function(){return xe},wZ:function(){return M},C6:function(){return z},ZF:function(){return te},nM:function(){return X},ah:function(){return re},UO:function(){return ne},Kr:function(){return be},oX:function(){return we},_D:function(){return F},V4:function(){return J},Dt:function(){return k},jP:function(){return E},Um:function(){return w},vU:function(){return _},G6:function(){return S},ED:function(){return x}});var r=n(487),o=n.n(r),i=n(631),a=n.n(i),s=n(2052),l=n.n(s),c=n(4010),u=n.n(c),d=n(1469),p=n.n(d),f=n(9329),h=n.n(f),m=n(6464),g={};g.styleTagTransform=h(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p(),o()(m.Z,g);var v,b=m.Z&&m.Z.locals?m.Z.locals:void 0,y=n(5284),w=/Mac|iPod|iPhone|iPad/.test(navigator.platform),x=/^Win/.test(navigator.platform),k=/\b(android)\b/i.test(navigator.userAgent),_="netscape"in window&&navigator.userAgent.indexOf("rv:")>1&&navigator.userAgent.indexOf("Gecko")>1,S=!(-1!==navigator.userAgent.indexOf("Chrome"))&&-1!==navigator.userAgent.indexOf("Safari"),E=function(){var e,t;return"isBrave"===(null===(e=navigator.brave)||void 0===e||null===(t=e.isBrave)||void 0===t?void 0:t.name)},P="Excalidraw",C=10,O=8,j=5,T=1,M=30,I=Math.PI/12,D={TEXT:"text",CROSSHAIR:"crosshair",GRABBING:"grabbing",GRAB:"grab",POINTER:"pointer",MOVE:"move",AUTO:""},A={MAIN:0,WHEEL:1,SECONDARY:2,TOUCH:-1};!function(e){e.COPY="copy",e.PASTE="paste",e.CUT="cut",e.KEYDOWN="keydown",e.KEYUP="keyup",e.MOUSE_MOVE="mousemove",e.RESIZE="resize",e.UNLOAD="unload",e.FOCUS="focus",e.BLUR="blur",e.DRAG_OVER="dragover",e.DROP="drop",e.GESTURE_END="gestureend",e.BEFORE_UNLOAD="beforeunload",e.GESTURE_START="gesturestart",e.GESTURE_CHANGE="gesturechange",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.STATE_CHANGE="statechange",e.WHEEL="wheel",e.TOUCH_START="touchstart",e.TOUCH_END="touchend",e.HASHCHANGE="hashchange",e.VISIBILITY_CHANGE="visibilitychange",e.SCROLL="scroll",e.EXCALIDRAW_LINK="excalidraw-link",e.MENU_ITEM_SELECT="menu.itemSelect"}(v||(v={}));var L={TEST:"test",DEVELOPMENT:"development"},N={SHAPE_ACTIONS_MENU:"App-menu__left"},R={Virgil:1,Helvetica:2,Cascadia:3},z={LIGHT:"light",DARK:"dark"},F="Segoe UI Emoji",Z=20,B=R.Virgil,U="left",W="top",H=20,K={excalidraw:"application/vnd.excalidraw+json",excalidrawlib:"application/vnd.excalidrawlib+json",json:"application/json",svg:"image/svg+xml","excalidraw.svg":"image/svg+xml",png:"image/png","excalidraw.png":"image/png",jpg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",ico:"image/x-icon",binary:"application/octet-stream"},V={excalidraw:"excalidraw",excalidrawClipboard:"excalidraw/clipboard",excalidrawLibrary:"excalidrawlib"},Y=window.EXCALIDRAW_EXPORT_SOURCE||window.location.origin,G=500,q=300,X=500,$=100,J=.1,Q=.1,ee=300,te=b.themeFilter,ne={addLibrary:"addLibrary"},re={addLibrary:"addLibrary"},oe={canvasActions:{changeViewBackgroundColor:!0,clearCanvas:!0,export:{saveFileToDisk:!0},loadScene:!0,saveToActiveFile:!0,toggleTheme:null,saveAsImage:!0}},ie=640,ae=730,se=1e3,le=500,ce=1229,ue=parseInt(b.rightSidebarWidth),de=2,pe=[1,2,3],fe=10,he=1440,me=[K.png,K.jpg,K.svg,K.gif,K.webp,K.bmp,K.ico],ge=2097152,ve="http://www.w3.org/2000/svg",be={excalidraw:2,excalidrawLibrary:2},ye=5,we={TOP:"top",MIDDLE:"middle",BOTTOM:"bottom"},xe={LEFT:"left",CENTER:"center",RIGHT:"right"},ke=20,_e=.25,Se=32,Ee={LEGACY:1,PROPORTIONAL_RADIUS:2,ADAPTIVE_RADIUS:3},Pe="__precedingElement__",Ce={strokeColor:y.black,backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:1,strokeStyle:"solid",roughness:1,opacity:100,locked:!1}},434:function(e,t,n){"use strict";n.d(t,{DQ:function(){return S},KG:function(){return A},Pn:function(){return N},Qk:function(){return _},Sf:function(){return D},Tu:function(){return L},Wr:function(){return P},ZY:function(){return C},_c:function(){return M},bv:function(){return R},cT:function(){return O},g8:function(){return E},gY:function(){return B},lV:function(){return T},tW:function(){return I},vZ:function(){return U},wf:function(){return j}});var r=n(1930),o=n(2577),i=n(7169),a=n(8950),s=n(2975),l=n.n(s),c=n(5605),u=n(8897),d=n(2335),p=n(1047),f=n(6797),h=n(8211),m=n(75),g=n(6340),v=n(1393),b=n(5523),y=n(679);function w(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=function(){var e=(0,a.Z)(l().mark((function e(t){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.type!==d.LO.png){e.next=18;break}return e.prev=1,e.next=4,Promise.resolve().then(n.bind(n,673));case 4:return e.next=6,e.sent.decodePngMetadata(t);case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(1),"INVALID"!==e.t0.message){e.next=15;break}throw new DOMException((0,h.t)("alerts.imageDoesNotContainScene"),"EncodingError");case 15:throw new DOMException((0,h.t)("alerts.cannotRestoreFromImage"),"EncodingError");case 16:e.next=43;break;case 18:if(!("text"in Blob)){e.next=24;break}return e.next=21,t.text();case 21:r=e.sent,e.next=27;break;case 24:return e.next=26,new Promise((function(e){var n=new FileReader;n.readAsText(t,"utf8"),n.onloadend=function(){n.readyState===FileReader.DONE&&e(n.result)}}));case 26:r=e.sent;case 27:if(t.type!==d.LO.svg){e.next=43;break}return e.prev=28,e.next=31,Promise.resolve().then(n.bind(n,673));case 31:return e.next=33,e.sent.decodeSvgMetadata({svg:r});case 33:return e.abrupt("return",e.sent);case 36:if(e.prev=36,e.t1=e.catch(28),"INVALID"!==e.t1.message){e.next=42;break}throw new DOMException((0,h.t)("alerts.imageDoesNotContainScene"),"EncodingError");case 42:throw new DOMException((0,h.t)("alerts.cannotRestoreFromImage"),"EncodingError");case 43:return e.abrupt("return",r);case 44:case"end":return e.stop()}}),e,null,[[1,9],[28,36]])})));return function(t){return e.apply(this,arguments)}}(),_=function(e){var t;return e&&(null===(t=e.name.match(/\.(json|excalidraw|png|svg)$/))||void 0===t?void 0:t[1])||null},S=function(e){return"png"===e||"svg"===e},E=function(e){var t=_(e);return"png"===t||"svg"===t},P=function(e){var t=(e||{}).type;return!!t&&d.jo.includes(t)},C=function(){var e=(0,a.Z)(l().mark((function e(t,n,r,o){var i,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k(t);case 2:if(i=e.sent,e.prev=3,a=JSON.parse(i),!(0,b.dS)(a)){e.next=9;break}return e.abrupt("return",{type:d.LO.excalidraw,data:(0,y.nu)({elements:(0,p._M)(a.elements||[]),appState:x(x({theme:null==n?void 0:n.theme,fileHandle:o||t.handle||null},(0,u.s)(a.appState||{})),n?(0,m.W)(a.elements||[],n,null):{}),files:a.files},n,r,{repairBindings:!0,refreshDimensions:!0})});case 9:if(!(0,b.HT)(a)){e.next=11;break}return e.abrupt("return",{type:d.LO.excalidrawlib,data:a});case 11:throw new Error((0,h.t)("alerts.couldNotLoadInvalidFile"));case 14:throw e.prev=14,e.t0=e.catch(3),console.error(e.t0.message),new Error((0,h.t)("alerts.couldNotLoadInvalidFile"));case 18:case"end":return e.stop()}}),e,null,[[3,14]])})));return function(t,n,r,o){return e.apply(this,arguments)}}(),O=function(){var e=(0,a.Z)(l().mark((function e(t,n,r,o){var i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(t,n,r,o);case 2:if((i=e.sent).type===d.LO.excalidraw){e.next=5;break}throw new Error((0,h.t)("alerts.couldNotLoadInvalidFile"));case 5:return e.abrupt("return",i.data);case 6:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unpublished",n=JSON.parse(e);if(!(0,b.HT)(n))throw new Error("Invalid library");var r=n.libraryItems||n.library;return(0,y.wJ)(r,t)},T=function(){var e=(0,a.Z)(l().mark((function e(t){var n,r=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:"unpublished",e.t0=j,e.next=4,k(t);case 4:return e.t1=e.sent,e.t2=n,e.abrupt("return",(0,e.t0)(e.t1,e.t2));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),M=function(){var e=(0,a.Z)(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){try{t.toBlob((function(t){if(!t)return n(new f.l((0,h.t)("canvasError.canvasTooBig"),"CANVAS_POSSIBLY_TOO_BIG"));e(t)}))}catch(e){n(e)}})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=(0,a.Z)(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=window.crypto.subtle,e.next=4,U(t);case 4:return e.t1=e.sent,e.next=7,e.t0.digest.call(e.t0,"SHA-1",e.t1);case 7:return n=e.sent,e.abrupt("return",(0,g.G3)(new Uint8Array(n)));case 11:return e.prev=11,e.t2=e.catch(0),console.error(e.t2),e.abrupt("return",(0,c.x0)(40));case 15:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t){return e.apply(this,arguments)}}(),D=function(){var e=(0,a.Z)(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var r=new FileReader;r.onload=function(){var t=r.result;e(t)},r.onerror=function(e){return n(e)},r.readAsDataURL(t)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),A=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.indexOf(","),r=atob(e.slice(n+1)),o=e.slice(0,n).split(":")[1].split(";")[0],i=new ArrayBuffer(r.length),a=new Uint8Array(i),s=0;s<r.length;s++)a[s]=r.charCodeAt(s);return new File([i],t,{type:o})},L=function(){var e=(0,a.Z)(l().mark((function e(t,r){var i,a,s,c,u,p;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.type!==d.LO.svg){e.next=2;break}return e.abrupt("return",t);case 2:return e.next=4,Promise.all([n.e(4736).then(n.t.bind(n,4881,23)).then((function(e){return e.default})),n.e(4736).then(n.bind(n,100)).then((function(e){return e.default}))]);case 4:if(i=e.sent,a=(0,o.Z)(i,2),s=a[0],c=a[1],u=c({pica:s({features:["js","wasm"]})}),r.outputType&&(p=r.outputType,u._create_blob=function(e){return this.pica.toBlob(e.out_canvas,p,.8).then((function(t){return e.out_blob=t,e}))}),P(t)){e.next=12;break}throw new Error((0,h.t)("errors.unsupportedFileType"));case 12:return e.t0=File,e.next=15,u.toBlob(t,{max:r.maxWidthOrHeight});case 15:return e.t1=e.sent,e.t2=[e.t1],e.t3=t.name,e.t4={type:r.outputType||t.type},e.abrupt("return",new e.t0(e.t2,e.t3,e.t4));case 20:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new File([(new TextEncoder).encode(e)],t,{type:d.LO.svg})},R=function(){var e=(0,a.Z)(l().mark((function e(t){var n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.dataTransfer.files.item(0),e.next=3,z(t);case 3:if(r=e.sent,!n){e.next=10;break}return e.next=7,B(n);case 7:e.t0=e.sent,e.next=11;break;case 10:e.t0=null;case 11:return e.t1=e.t0,e.t2=r,e.abrupt("return",{file:e.t1,fileHandle:e.t2});case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),z=function(){var e=(0,a.Z)(l().mark((function e(t){var n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!v.kr){e.next=16;break}return e.prev=1,n=t.dataTransfer.items[0],e.next=5,n.getAsFileSystemHandle();case 5:if(e.t0=e.sent,e.t0){e.next=8;break}e.t0=null;case 8:return r=e.t0,e.abrupt("return",r);case 12:return e.prev=12,e.t1=e.catch(1),console.warn(e.t1.name,e.t1.message),e.abrupt("return",null);case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t){return e.apply(this,arguments)}}(),F=function(e){var t=null,n="".concat((0,r.Z)(new Uint8Array(e).slice(0,8)).join(" ")," ");return"137 80 78 71 13 10 26 10 "===n?t=d.LO.png:n.startsWith("255 216 255 ")?t=d.LO.jpg:n.startsWith("71 73 70 56 57 97 ")&&(t=d.LO.gif),t},Z=function(e,t,n){return new File([e],n||"",{type:t})},B=function(){var e=(0,a.Z)(l().mark((function e(t){var n,r,o,i,a,s,c,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.type){e.next=28;break}if(null===(n=t)||void 0===n||null===(r=n.name)||void 0===r||!r.endsWith(".excalidrawlib")){e.next=11;break}return e.t0=Z,e.next=5,U(t);case 5:e.t1=e.sent,e.t2=d.LO.excalidrawlib,e.t3=t.name,t=(0,e.t0)(e.t1,e.t2,e.t3),e.next=26;break;case 11:if(null===(o=t)||void 0===o||null===(i=o.name)||void 0===i||!i.endsWith(".excalidraw")){e.next=21;break}return e.t4=Z,e.next=15,U(t);case 15:e.t5=e.sent,e.t6=d.LO.excalidraw,e.t7=t.name,t=(0,e.t4)(e.t5,e.t6,e.t7),e.next=26;break;case 21:return e.next=23,U(t);case 23:a=e.sent,(s=F(a))&&(t=Z(a,s,t.name));case 26:e.next=34;break;case 28:if(!P(t)){e.next=34;break}return e.next=31,U(t);case 31:c=e.sent,(u=F(c))&&u!==t.type&&(t=Z(c,u,t.name));case 34:return e.abrupt("return",t);case 35:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),U=function(e){return"arrayBuffer"in e?e.arrayBuffer():new Promise((function(t,n){var r=new FileReader;r.onload=function(e){var r;if(null===(r=e.target)||void 0===r||!r.result)return n(new Error("Couldn't convert blob to ArrayBuffer"));t(e.target.result)},r.readAsArrayBuffer(e)}))}},1393:function(e,t,n){"use strict";n.d(t,{I$:function(){return h},NL:function(){return m},kr:function(){return a}});var r=n(1930),o=n(8950),i=n(2975),a=function(){if("undefined"==typeof self)return!1;if("top"in self&&self!==top)try{top}catch(e){return!1}else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1}(),s=a?n.e(4736).then(n.bind(n,2254)):n.e(4736).then(n.bind(n,3499));function l(){return l=(0,o.Z)(i.mark((function e(){var t,n=arguments;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s;case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}a?n.e(4736).then(n.bind(n,6474)):n.e(4736).then(n.bind(n,9521));var c=a?n.e(4736).then(n.bind(n,9475)):n.e(4736).then(n.bind(n,6281));function u(){return u=(0,o.Z)(i.mark((function e(){var t,n=arguments;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c;case 2:return e.abrupt("return",(t=e.sent).default.apply(t,n));case 3:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}var d=n(2335),p=n(6797),f=n(6340),h=function(e){var t,n,o,i=null===(t=e.extensions)||void 0===t?void 0:t.reduce((function(e,t){return e.push(d.LO[t]),e}),[]),a=null===(n=e.extensions)||void 0===n?void 0:n.reduce((function(e,t){return"jpg"===t?e.concat(".jpg",".jpeg"):e.concat(".".concat(t))}),[]);return function(){return l.apply(this,arguments)}({description:e.description,extensions:a,mimeTypes:i,multiple:null!==(o=e.multiple)&&void 0!==o&&o,legacySetup:function(t,n,o){var i=(0,f.Ds)(n,500),a=function(){s(),document.addEventListener(d.Ks.KEYUP,i),document.addEventListener(d.Ks.POINTER_UP,i),i()},s=function(){var n;if(null!==(n=o.files)&&void 0!==n&&n.length){var i=e.multiple?(0,r.Z)(o.files):o.files[0];t(i)}};requestAnimationFrame((function(){window.addEventListener(d.Ks.FOCUS,a)}));var l=window.setInterval((function(){s()}),500);return function(e){clearInterval(l),i.cancel(),window.removeEventListener(d.Ks.FOCUS,a),document.removeEventListener(d.Ks.KEYUP,i),document.removeEventListener(d.Ks.POINTER_UP,i),e&&(console.warn("Opening the file was canceled (legacy-fs)."),e(new p._))}}})},m=function(e,t){return function(){return u.apply(this,arguments)}(e,{fileName:"".concat(t.name,".").concat(t.extension),description:t.description,extensions:[".".concat(t.extension)]},t.fileHandle)}},673:function(e,t,n){"use strict";n.r(t),n.d(t,{decodePngMetadata:function(){return _},decodeSvgMetadata:function(){return E},encodePngMetadata:function(){return k},encodeSvgMetadata:function(){return S},getTEXtChunk:function(){return x}});var r=n(8950),o=n(2975),i=n.n(o),a=n(2983),s=n.n(a),l=n(1194),c=n(3434),u=n.n(c),d=n(2744),p=n(2335),f=n(434),h=function(e){return new Promise((function(t,n){var r="string"==typeof e?new Blob([(new TextEncoder).encode(e)]):new Blob([e instanceof Uint8Array?e:new Uint8Array(e)]),o=new FileReader;o.onload=function(e){if(!e.target||"string"!=typeof e.target.result)return n(new Error("couldn't convert to byte string"));t(e.target.result)},o.readAsBinaryString(r)}))},m=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0,o=e.length;r<o;r++)n[r]=e.charCodeAt(r);return t},g=function(e){return new TextDecoder("utf-8").decode(m(e))},v=function(){var e=(0,r.Z)(i().mark((function e(t){var n=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.length>1&&void 0!==n[1]&&n[1])){e.next=5;break}e.t0=window.btoa(t),e.next=10;break;case 5:return e.t1=window,e.next=8,h(t);case 8:e.t2=e.sent,e.t0=e.t1.btoa.call(e.t1,e.t2);case 10:return e.abrupt("return",e.t0);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]&&r[1],e.abrupt("return",n?window.atob(t):g(window.atob(t)));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.text,!1===t.compress){e.next=11;break}return e.prev=2,e.next=5,h((0,d.deflate)(n));case 5:r=e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),console.error("encode: cannot deflate",e.t0);case 11:if(e.t1=!!r,e.t2=r,e.t2){e.next=17;break}return e.next=16,h(n);case 16:e.t2=e.sent;case 17:return e.t3=e.t2,e.abrupt("return",{version:"1",encoding:"bstring",compressed:e.t1,encoded:e.t3});case 19:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=(0,r.Z)(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.encoding,e.next="bstring"===e.t0?3:12;break;case 3:if(!t.compressed){e.next=7;break}e.t1=t.encoded,e.next=10;break;case 7:return e.next=9,g(t.encoded);case 9:e.t1=e.sent;case 10:return n=e.t1,e.abrupt("break",13);case 12:throw new Error('decode: unknown encoding "'.concat(t.encoding,'"'));case 13:if(!t.compressed){e.next=15;break}return e.abrupt("return",(0,d.inflate)(new Uint8Array(m(n)),{to:"string"}));case 15:return e.abrupt("return",n);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=s(),e.t1=Uint8Array,e.next=4,(0,f.vZ)(t);case 4:if(e.t2=e.sent,e.t3=new e.t1(e.t2),n=(0,e.t0)(e.t3),!(r=n.find((function(e){return"tEXt"===e.name})))){e.next=10;break}return e.abrupt("return",l.decode(r.data));case 10:return e.abrupt("return",null);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.blob,r=t.metadata,e.t0=s(),e.t1=Uint8Array,e.next=5,(0,f.vZ)(n);case 5:return e.t2=e.sent,e.t3=new e.t1(e.t2),o=(0,e.t0)(e.t3),e.t4=l,e.t5=p.LO.excalidraw,e.t6=JSON,e.next=13,y({text:r,compress:!0});case 13:return e.t7=e.sent,e.t8=e.t6.stringify.call(e.t6,e.t7),a=e.t4.encode.call(e.t4,e.t5,e.t8),o.splice(-1,0,a),e.abrupt("return",new Blob([u()(o)],{type:p.LO.png}));case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x(t);case 2:if((null==(n=e.sent)?void 0:n.keyword)!==p.LO.excalidraw){e.next=19;break}if(e.prev=4,"encoded"in(r=JSON.parse(n.text))){e.next=10;break}if(!("type"in r)||r.type!==p.r8.excalidraw){e.next=9;break}return e.abrupt("return",n.text);case 9:throw new Error("FAILED");case 10:return e.next=12,w(r);case 12:return e.abrupt("return",e.sent);case 15:throw e.prev=15,e.t0=e.catch(4),console.error(e.t0),new Error("FAILED");case 19:throw new Error("INVALID");case 20:case"end":return e.stop()}}),e,null,[[4,15]])})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.text,e.t0=v,e.t1=JSON,e.next=5,y({text:n});case 5:return e.t2=e.sent,e.t3=e.t1.stringify.call(e.t1,e.t2),e.next=9,(0,e.t0)(e.t3,!0);case 9:return r=e.sent,o="",o+="\x3c!-- payload-type:".concat(p.LO.excalidraw," --\x3e"),o+="\x3c!-- payload-version:2 --\x3e",o+="\x3c!-- payload-start --\x3e",o+=r,o+="\x3c!-- payload-end --\x3e",e.abrupt("return",o);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r,o,a,s,l,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.svg).includes("payload-type:".concat(p.LO.excalidraw))){e.next=26;break}if(r=n.match(/<!-- payload-start -->\s*(.+?)\s*<!-- payload-end -->/)){e.next=5;break}throw new Error("INVALID");case 5:return o=n.match(/<!-- payload-version:(\d+) -->/),a=(null==o?void 0:o[1])||"1",s="1"!==a,e.prev=8,e.next=11,b(r[1],s);case 11:if(l=e.sent,"encoded"in(c=JSON.parse(l))){e.next=17;break}if(!("type"in c)||c.type!==p.r8.excalidraw){e.next=16;break}return e.abrupt("return",l);case 16:throw new Error("FAILED");case 17:return e.next=19,w(c);case 19:return e.abrupt("return",e.sent);case 22:throw e.prev=22,e.t0=e.catch(8),console.error(e.t0),new Error("FAILED");case 26:throw new Error("INVALID");case 27:case"end":return e.stop()}}),e,null,[[8,22]])})));return function(t){return e.apply(this,arguments)}}()},9485:function(e,t,n){"use strict";n.d(t,{Um:function(){return p.Um},cT:function(){return u.cT},n8:function(){return p.n8},p1:function(){return f}});var r=n(8950),o=n(2975),i=n.n(o),a=n(6665),s=n(2335),l=n(8211),c=n(4162),u=n(434),d=n(1393),p=n(5523),f=function(){var e=(0,r.Z)(i().mark((function e(t,r,o,f,h){var m,g,v,b,y,w,x,k,_,S,E;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m=h.exportBackground,g=h.exportPadding,v=void 0===g?s.qy:g,b=h.viewBackgroundColor,y=h.name,w=h.fileHandle,x=void 0===w?null:w,0!==r.length){e.next=3;break}throw new Error((0,l.t)("alerts.cannotExportEmptyCanvas"));case 3:if("svg"!==t&&"clipboard-svg"!==t){e.next=17;break}return e.next=6,(0,c.$D)(r,{exportBackground:m,exportWithDarkMode:o.exportWithDarkMode,viewBackgroundColor:b,exportPadding:v,exportScale:o.exportScale,exportEmbedScene:o.exportEmbedScene&&"svg"===t},f);case 6:if(k=e.sent,"svg"!==t){e.next=13;break}return e.next=10,(0,d.NL)(new Blob([k.outerHTML],{type:s.LO.svg}),{description:"Export to SVG",name:y,extension:o.exportEmbedScene?"excalidraw.svg":"svg",fileHandle:x});case 10:return e.abrupt("return",e.sent);case 13:if("clipboard-svg"!==t){e.next=17;break}return e.next=16,(0,a.dd)(k.outerHTML);case 16:return e.abrupt("return");case 17:return e.next=19,(0,c.NL)(r,o,f,{exportBackground:m,viewBackgroundColor:b,exportPadding:v});case 19:if((_=e.sent).style.display="none",document.body.appendChild(_),"png"!==t){e.next=38;break}return e.next=25,(0,u._c)(_);case 25:if(S=e.sent,_.remove(),!o.exportEmbedScene){e.next=33;break}return e.next=30,Promise.resolve().then(n.bind(n,673));case 30:return e.next=32,e.sent.encodePngMetadata({blob:S,metadata:(0,p.I_)(r,o,f,"local")});case 32:S=e.sent;case 33:return e.next=35,(0,d.NL)(S,{description:"Export to PNG",name:y,extension:"png",fileHandle:x});case 35:return e.abrupt("return",e.sent);case 38:if("clipboard"!==t){e.next=60;break}return e.prev=39,E=(0,u._c)(_),e.next=43,(0,a.uR)(E);case 43:e.next=55;break;case 45:if(e.prev=45,e.t0=e.catch(39),console.warn(e.t0),"CANVAS_POSSIBLY_TOO_BIG"!==e.t0.name){e.next=50;break}throw e.t0;case 50:if(!s.vU||"TypeError"!==e.t0.name){e.next=54;break}throw new Error("".concat((0,l.t)("alerts.couldNotCopyToClipboard"),"\n\n").concat((0,l.t)("hints.firefox_clipboard_write")));case 54:throw new Error((0,l.t)("alerts.couldNotCopyToClipboard"));case 55:return e.prev=55,_.remove(),e.finish(55);case 58:e.next=62;break;case 60:throw _.remove(),new Error("Unsupported export type");case 62:case"end":return e.stop()}}),e,null,[[39,45,55,58]])})));return function(t,n,r,o,i){return e.apply(this,arguments)}}()},5523:function(e,t,n){"use strict";n.d(t,{HT:function(){return b},I_:function(){return h},NI:function(){return y},Um:function(){return m},dS:function(){return v},n8:function(){return g},t1:function(){return w}});var r=n(6655),o=n(8950),i=n(2975),a=n.n(i),s=n(1393),l=n(8897),c=n(2335),u=n(1047),d=n(434);function p(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}var f=function(e,t){var n,r={},o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{for(o.s();!(n=o.n()).done;){var i=n.value;!i.isDeleted&&"fileId"in i&&i.fileId&&t[i.fileId]&&(r[i.fileId]=t[i.fileId])}}catch(e){o.e(e)}finally{o.f()}return r},h=function(e,t,n,r){var o={type:c.r8.excalidraw,version:c.Kr.excalidraw,source:c.pb,elements:"local"===r?(0,u._M)(e):(0,u.BQ)(e),appState:"local"===r?(0,l.s)(t):(0,l.eS)(t),files:"local"===r?f(e,n):void 0};return JSON.stringify(o,null,2)},m=function(){var e=(0,o.Z)(a().mark((function e(t,n,r){var o,i,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=h(t,n,r,"local"),i=new Blob([o],{type:c.LO.excalidraw}),e.next=4,(0,s.NL)(i,{name:n.name,extension:"excalidraw",description:"Excalidraw file",fileHandle:(0,d.g8)(n.fileHandle)?null:n.fileHandle});case 4:return l=e.sent,e.abrupt("return",{fileHandle:l});case 6:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),g=function(){var e=(0,o.Z)(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.I$)({description:"Excalidraw files"});case 2:return r=e.sent,e.t0=d.cT,e.next=6,(0,d.gY)(r);case 6:return e.t1=e.sent,e.t2=t,e.t3=n,e.t4=r.handle,e.abrupt("return",(0,e.t0)(e.t1,e.t2,e.t3,e.t4));case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),v=function(e){return(null==e?void 0:e.type)===c.r8.excalidraw&&(!e.elements||Array.isArray(e.elements)&&(!e.appState||"object"===(0,r.Z)(e.appState)))},b=function(e){return"object"===(0,r.Z)(e)&&e&&e.type===c.r8.excalidrawLibrary&&(1===e.version||2===e.version)},y=function(e){var t={type:c.r8.excalidrawLibrary,version:c.Kr.excalidrawLibrary,source:c.pb,libraryItems:e};return JSON.stringify(t,null,2)},w=function(){var e=(0,o.Z)(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=y(t),e.next=3,(0,s.NL)(new Blob([n],{type:c.LO.excalidrawlib}),{name:"library",extension:"excalidrawlib",description:"Excalidraw library file"});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},7053:function(e,t,n){"use strict";n.d(t,{Di:function(){return j},WV:function(){return O},rF:function(){return _},xS:function(){return T},zh:function(){return P}});var r=n(7169),o=n(8950),i=n(5169),a=n(8821),s=n(1930),l=n(2975),c=n.n(l),u=n(434),d=n(679),p=n(4739),f=n(9487),h=n(8925),m=n(6797),g=n(8211),v=n(9787),b=n(2335);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function k(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}var _=(0,p.cn)({status:"loaded",isInitialized:!0,libraryItems:[]}),S=function(e){return JSON.parse(JSON.stringify(e))},E=function(e,t){return!e.find((function(e){return e.elements.length===t.elements.length&&e.elements.every((function(e,n){return e.id===t.elements[n].id&&e.versionNonce===t.elements[n].versionNonce}))}))},P=function(e,t){var n,r=[],o=x(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;E(e,i)&&r.push(i)}}catch(e){o.e(e)}finally{o.f()}return[].concat(r,(0,s.Z)(e))},C=(0,i.Z)((function e(t){var n=this;(0,a.Z)(this,e),this.lastLibraryItems=[],this.isInitialized=!1,this.updateQueue=[],this.getLastUpdateTask=function(){return n.updateQueue[n.updateQueue.length-1]},this.notifyListeners=function(){if(n.updateQueue.length>0)f.e_.set(_,{status:"loading",libraryItems:n.lastLibraryItems,isInitialized:n.isInitialized});else{n.isInitialized=!0,f.e_.set(_,{status:"loaded",libraryItems:n.lastLibraryItems,isInitialized:n.isInitialized});try{var e,t;null===(e=(t=n.app.props).onLibraryChange)||void 0===e||e.call(t,S(n.lastLibraryItems))}catch(e){console.error(e)}}},this.resetLibrary=function(){return n.setLibrary([])},this.getLatestLibrary=function(){return new Promise(function(){var e=(0,o.Z)(c().mark((function e(t){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getLastUpdateTask()||n.lastLibraryItems;case 3:r=e.sent,n.updateQueue.length>0?t(n.getLatestLibrary()):t(S(r)),e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",t(n.lastLibraryItems));case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}())},this.updateLibrary=function(){var e=(0,o.Z)(c().mark((function e(t){var r,i,a,s,l,p,f,h,v;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.libraryItems,i=t.prompt,a=void 0!==i&&i,s=t.merge,l=void 0!==s&&s,p=t.openLibraryMenu,f=void 0!==p&&p,h=t.defaultStatus,v=void 0===h?"unpublished":h,f&&n.app.setState({openSidebar:"library"}),e.abrupt("return",n.setLibrary((function(){return new Promise(function(){var e=(0,o.Z)(c().mark((function e(t,o){var i,s;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,"function"!=typeof r||r instanceof Blob?r:r(n.lastLibraryItems);case 3:if(!((i=e.sent)instanceof Blob)){e.next=10;break}return e.next=7,(0,u.lV)(i,v);case 7:s=e.sent,e.next=11;break;case 10:s=(0,d.wJ)(i,v);case 11:!a||window.confirm((0,g.t)("alerts.confirmAddLibrary",{numShapes:s.length}))?t(l?P(n.lastLibraryItems,s):s):o(new m._),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),o(e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(t,n){return e.apply(this,arguments)}}())})).finally((function(){n.app.focusContainer()})));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.setLibrary=function(e){var t=new Promise(function(){var t=(0,o.Z)(c().mark((function t(r,o){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.getLastUpdateTask();case 3:return"function"==typeof e&&(e=e(n.lastLibraryItems)),t.t0=S,t.next=7,e;case 7:t.t1=t.sent,n.lastLibraryItems=(0,t.t0)(t.t1),r(n.lastLibraryItems),t.next=15;break;case 12:t.prev=12,t.t2=t.catch(0),o(t.t2);case 15:case"end":return t.stop()}}),t,null,[[0,12]])})));return function(e,n){return t.apply(this,arguments)}}()).catch((function(e){if("AbortError"===e.name)return console.warn("Library update aborted by user"),n.lastLibraryItems;throw e})).finally((function(){n.updateQueue=n.updateQueue.filter((function(e){return e!==t})),n.notifyListeners()}));return n.updateQueue.push(t),n.notifyListeners(),t},this.app=t}));t.ZP=C;var O=function(e){var t,n=Math.ceil(Math.sqrt(e.length)),r=[],o=0,i=0,a=0,l=0,c=0,u=0,d=0,p=x(e);try{var f=function(){var p=t.value;c&&c%n==0&&(i+=a+50,o=0,u=0,d++),0===u&&(a=function(t){return e.slice(t*n,t*n+n).reduce((function(e,t){var n=(0,h.v2)(t.elements).height;return Math.max(e,n)}),0)}(d)),l=function(t){var r,o=0,i=0,a=0,s=x(e);try{for(s.s();!(r=s.n()).done;){var l=r.value;if(o%n==0&&(i=0),i===t){var c=(0,h.v2)(l.elements).width;a=Math.max(a,c)}o++,i++}}catch(e){s.e(e)}finally{s.f()}return a}(u);var f=(0,h.v2)(p.elements),m=f.minX,g=f.minY,v=f.width,b=f.height,y=(l-v)/2,k=(a-b)/2;r.push.apply(r,(0,s.Z)(p.elements.map((function(e){return w(w({},e),{},{x:e.x+o+y-m,y:e.y+i+k-g})})))),o+=l+50,c++,u++};for(p.s();!(t=p.n()).done;)f()}catch(e){p.e(e)}finally{p.f()}return r},j=function(){var e=new URLSearchParams(window.location.hash.slice(1)).get(b.ah.addLibrary)||new URLSearchParams(window.location.search).get(b.UO.addLibrary),t=e?new URLSearchParams(window.location.hash.slice(1)).get("token"):null;return e?{libraryUrl:e,idToken:t}:null},T=function(e){var t=e.excalidrawAPI,n=e.getInitialLibraryItems,r=(0,v.useRef)(n);(0,v.useEffect)((function(){if(t){var e=function(){var e=(0,o.Z)(c().mark((function e(n){var r,i,a,s,l,u;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.libraryUrl,i=n.idToken,a=new Promise(function(){var e=(0,o.Z)(c().mark((function e(t,n){var o,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(decodeURIComponent(r));case 3:return o=e.sent,e.next=6,o.blob();case 6:i=e.sent,t(i),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),n(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,n){return e.apply(this,arguments)}}()),s=i!==t.id,e.next=5,s&&document.hidden?new Promise((function(e){window.addEventListener("focus",(function(){return e()}),{once:!0})})):null;case 5:return e.prev=5,e.next=8,t.updateLibrary({libraryItems:a,prompt:s,merge:!0,defaultStatus:"published",openLibraryMenu:!0});case 8:e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(5),e.t0;case 13:return e.prev=13,window.location.hash.includes(b.ah.addLibrary)?((l=new URLSearchParams(window.location.hash.slice(1))).delete(b.ah.addLibrary),window.history.replaceState({},b.iC,"#".concat(l.toString()))):window.location.search.includes(b.UO.addLibrary)&&((u=new URLSearchParams(window.location.search)).delete(b.UO.addLibrary),window.history.replaceState({},b.iC,"?".concat(u.toString()))),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[5,10,13,16]])})));return function(t){return e.apply(this,arguments)}}(),n=function(t){t.preventDefault();var n=j();n&&(t.stopImmediatePropagation(),window.history.replaceState({},"",t.oldURL),e(n))};r.current&&t.updateLibrary({libraryItems:r.current()});var i=j();return i&&e(i),window.addEventListener(b.Ks.HASHCHANGE,n),function(){window.removeEventListener(b.Ks.HASHCHANGE,n)}}}),[t])}},679:function(e,t,n){"use strict";n.d(t,{ET:function(){return E},lY:function(){return O},nu:function(){return j},wJ:function(){return M}});var r=n(2577),o=n(7169),i=n(1047),a=n(1974),s=n(6954),l=n(2335),c=n(8897),u=n(6938),d=n(1935),p=n(6340),f=n(5284),h=n(5710),m=n(6794);function g(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function v(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 b(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 y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w={selection:!0,text:!0,rectangle:!0,diamond:!0,ellipse:!0,line:!0,image:!0,arrow:!0,freedraw:!0,eraser:!1,custom:!0,hand:!0},x=function(e){return Object.keys(l.ut).includes(e)?l.ut[e]:l.rk},k=function(e,t){var n,r,o,c,u,d,h,g,v,b,w,x,k,_={type:t.type||e.type,version:e.version||1,versionNonce:null!==(n=e.versionNonce)&&void 0!==n?n:0,isDeleted:null!==(r=e.isDeleted)&&void 0!==r&&r,id:e.id||(0,s.kb)(),fillStyle:e.fillStyle||"hachure",strokeWidth:e.strokeWidth||1,strokeStyle:null!==(o=e.strokeStyle)&&void 0!==o?o:"solid",roughness:null!==(c=e.roughness)&&void 0!==c?c:1,opacity:null==e.opacity?100:e.opacity,angle:e.angle||0,x:null!==(u=null!==(d=t.x)&&void 0!==d?d:e.x)&&void 0!==u?u:0,y:null!==(h=null!==(g=t.y)&&void 0!==g?g:e.y)&&void 0!==h?h:0,strokeColor:e.strokeColor||f.black,backgroundColor:e.backgroundColor||"transparent",width:e.width||0,height:e.height||0,seed:null!==(v=e.seed)&&void 0!==v?v:1,groupIds:null!==(b=e.groupIds)&&void 0!==b?b:[],roundness:e.roundness?e.roundness:"round"===e.strokeSharpness?{type:(0,a.QI)(e.type)?l.a6.LEGACY:l.a6.PROPORTIONAL_RADIUS}:null,boundElements:e.boundElementIds?e.boundElementIds.map((function(e){return{type:"arrow",id:e}})):null!==(w=e.boundElements)&&void 0!==w?w:[],updated:null!==(x=e.updated)&&void 0!==x?x:(0,p.C3)(),link:e.link?(0,m.$)(e.link):null,locked:null!==(k=e.locked)&&void 0!==k&&k};return"customData"in e&&(_.customData=e.customData),l.WR in e&&(_[l.WR]=e[l.WR]),y(y(y({},_),(0,i.Qp)(_)),t)},_=function(e,t){if(e.boundElements){var n=e.boundElements.slice(),r=new Set;e.boundElements=n.reduce((function(n,o){var i=t.get(o.id);if(i&&!r.has(o.id)){if(r.add(o.id),i.isDeleted)return n;n.push(o),(0,a.iB)(i)&&!i.containerId&&(i.containerId=e.id)}return n}),[])}},S=function(e,t){var n=e.containerId?t.get(e.containerId):null;if(n){if(!e.isDeleted&&n.boundElements&&!n.boundElements.find((function(t){return t.id===e.id}))){var r=(n.boundElements||(n.boundElements=[])).slice();r.push({type:"text",id:e.id}),n.boundElements=r}}else e.containerId=null},E=function(e,t,n){var o=new Set,c=t?(0,p.xn)(t):null,f=(e||[]).reduce((function(e,t){if("selection"!==t.type&&!(0,i.QD)(t)){var a=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"text":var a=e.fontSize,s=e.fontFamily;if("font"in e){var c=e.font.split(" "),d=(0,r.Z)(c,2),f=d[0],m=d[1];a=parseFloat(f),s=x(m)}var g=null!==(t=e.text)&&void 0!==t?t:"",v=e.lineHeight||(e.height?(0,h.$2)(e):(0,h.PT)(e.fontFamily)),b=(0,h.R8)(e.text,(0,p.mO)(e),v);return e=k(e,{fontSize:a,fontFamily:s,text:g,textAlign:e.textAlign||l.Hg,verticalAlign:e.verticalAlign||l.hs,containerId:null!==(n=e.containerId)&&void 0!==n?n:null,originalText:e.originalText||g,lineHeight:v,baseline:b}),o&&(e=y(y({},e),(0,i.JZ)(e))),e;case"freedraw":return k(e,{points:e.points,lastCommittedPoint:null,simulatePressure:e.simulatePressure,pressures:e.pressures});case"image":return k(e,{status:e.status||"pending",fileId:e.fileId,scale:e.scale||[1,1]});case"line":case"draw":case"arrow":var w=e,_=w.startArrowhead,S=void 0===_?null:_,E=w.endArrowhead,P=void 0===E?"arrow"===e.type?"arrow":null:E,C=e.x,O=e.y,j=!Array.isArray(e.points)||e.points.length<2?[[0,0],[e.width,e.height]]:e.points;if(0!==j[0][0]||0!==j[0][1]){var T=u._.getNormalizedPoints(e);j=T.points,C=T.x,O=T.y}return k(e,{type:"draw"===e.type?"line":e.type,startBinding:e.startBinding,endBinding:e.endBinding,lastCommittedPoint:null,startArrowhead:S,endArrowhead:P,points:j,x:C,y:O});case"ellipse":case"rectangle":case"diamond":return k(e,{})}}(t,null==n?void 0:n.refreshDimensions);if(a){var f=null==c?void 0:c.get(t.id);f&&f.version>a.version&&(a=(0,d.ZP)(a,f.version)),o.has(a.id)&&(a=y(y({},a),{},{id:(0,s.kb)()})),o.add(a.id),e.push(a)}}return e}),[]);if(null==n||!n.repairBindings)return f;var m,v=(0,p.xn)(f),b=g(f);try{for(b.s();!(m=b.n()).done;){var w=m.value;(0,a.iB)(w)&&w.containerId?S(w,v):w.boundElements&&_(w,v)}}catch(e){b.e(e)}finally{b.f()}return f},P=function(e,t,n){var r=t[e];return void 0!==r?r:n[e]},C={isLibraryOpen:function(e,t){return["openSidebar","isLibraryOpen"in e?e.isLibraryOpen?"library":null:P("openSidebar",e,t)]},isLibraryMenuDocked:function(e,t){var n;return["isSidebarDocked",null!==(n=e.isLibraryMenuDocked)&&void 0!==n?n:P("isSidebarDocked",e,t)]}},O=function(e,t){var n,o,i,a;e=e||{};for(var s=(0,c.im)(),l={},u=0,d=Object.keys(C);u<d.length;u++){var f=d[u];if(f in e){var h=C[f](e,s),m=(0,r.Z)(h,2),g=m[0],v=m[1];l[g]=v}}for(var b=0,x=Object.entries(s);b<x.length;b++){var k=(0,r.Z)(x[b],2),_=k[0],S=k[1],E=e[_],P=t?t[_]:void 0;l[_]=void 0!==E?E:void 0!==P?P:S}return y(y({},l),{},{cursorButton:(null==t?void 0:t.cursorButton)||"up",penDetected:null!==(n=null==t?void 0:t.penDetected)&&void 0!==n?n:!!e.penMode&&null!==(o=e.penDetected)&&void 0!==o&&o,activeTool:y(y({},(0,p.Om)(s,l.activeTool.type&&w[l.activeTool.type]?l.activeTool:{type:"selection"})),{},{lastActiveTool:null,locked:null!==(i=l.activeTool.locked)&&void 0!==i&&i}),zoom:"number"==typeof e.zoom?{value:e.zoom}:null!==(a=e.zoom)&&void 0!==a&&a.value?e.zoom:s.zoom,openSidebar:"library"===l.openSidebar?l.isSidebarDocked?"library":null:l.openSidebar})},j=function(e,t,n,r){return{elements:E(null==e?void 0:e.elements,n,r),appState:O(null==e?void 0:e.appState,t||null),files:(null==e?void 0:e.files)||{}}},T=function(e){var t=E((0,i.Lm)(e.elements),null);return t.length?y(y({},e),{},{elements:t}):null},M=function(){var e,t=arguments.length>1?arguments[1]:void 0,n=[],r=g(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);try{for(r.s();!(e=r.n()).done;){var o=e.value;if(Array.isArray(o)){var i=T({status:t,elements:o,id:(0,s.kb)(),created:Date.now()});i&&n.push(i)}else{var a=o,l=T(y(y({},a),{},{id:a.id||(0,s.kb)(),status:a.status||t,created:a.created||Date.now()}));l&&n.push(l)}}}catch(e){r.e(e)}finally{r.f()}return n}},6794:function(e,t,n){"use strict";n.d(t,{$:function(){return o},q:function(){return i}});var r=n(5779),o=function(e){return(0,r.N)(e)},i=function(e){return!!(null!=e&&e.includes(location.origin)||null!=e&&e.startsWith("/"))}},4929:function(e,t,n){"use strict";n.d(t,{rj:function(){return B},nW:function(){return W},nz:function(){return K},sw:function(){return Y},lV:function(){return J},wq:function(){return G},Pp:function(){return X}});var r=n(7169),o=n(2577),i=n(6340),a=n(1935),s=n(7901),l=n(1319),c=n(3646),u=n(8211),d=n(9787),p=n(45),f=n(6066),h=n(3063),m=n(6552),g=n(2335),v=n(1894),b=n(75),y=n(2325),w=n(1047),x=n(6794),k=n(487),_=n.n(k),S=n(631),E=n.n(S),P=n(2052),C=n.n(P),O=n(4010),j=n.n(O),T=n(1469),M=n.n(T),I=n(9329),D=n.n(I),A=n(5260),L={};L.styleTagTransform=D(),L.setAttributes=j(),L.insert=C().bind(null,"head"),L.domAPI=E(),L.insertStyleElement=M(),_()(A.Z,L),A.Z&&A.Z.locals&&A.Z.locals;var N=n(7047),R=n(2134),z=n(4512);function F(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 Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var B=document.createElement("img");B.src="data:".concat(g.LO.svg,", ").concat(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#1971c2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>'));var U=!1,W=function(e){var t=e.element,n=e.setAppState,r=e.onLinkOpen,s=(0,R.gF)(),h=t.link||"",m=(0,d.useState)(h),v=(0,o.Z)(m,2),b=v[0],y=v[1],w=(0,d.useRef)(null),k="editor"===s.showHyperlinkPopup||!h,_=(0,d.useCallback)((function(){if(w.current){var e=(0,x.$)(w.current.value);!t.link&&e&&(0,N.L)("hyperlink","create"),(0,a.DR)(t,{link:e}),n({showHyperlinkPopup:"info"})}}),[t,n]);(0,d.useLayoutEffect)((function(){return function(){_()}}),[_]),(0,d.useEffect)((function(){var e=null,r=function(r){k||(e&&clearTimeout(e),Q(t,s,[r.clientX,r.clientY])&&(e=window.setTimeout((function(){n({showHyperlinkPopup:!1})}),500)))};return window.addEventListener(g.Ks.POINTER_MOVE,r,!1),function(){window.removeEventListener(g.Ks.POINTER_MOVE,r,!1),e&&clearTimeout(e)}}),[s,t,k,n]);var S=(0,d.useCallback)((function(){(0,N.L)("hyperlink","delete"),(0,a.DR)(t,{link:null}),k&&(w.current.value=""),n({showHyperlinkPopup:!1})}),[n,t,k]),E=H(t,s),P=E.x,C=E.y;return s.draggingElement||s.resizingElement||s.isRotating||s.openMenu?null:(0,z.jsxs)("div",{className:"excalidraw-hyperlinkContainer",style:{top:"".concat(C,"px"),left:"".concat(P,"px"),width:320,padding:5},children:[k?(0,z.jsx)("input",{className:(0,p.Z)("excalidraw-hyperlinkContainer-input"),placeholder:"Type or paste your link here",ref:w,value:b,onChange:function(e){return y(e.target.value)},autoFocus:!0,onKeyDown:function(e){e.stopPropagation(),e[f.tW.CTRL_OR_CMD]&&e.key===f.tW.K&&e.preventDefault(),e.key!==f.tW.ENTER&&e.key!==f.tW.ESCAPE||_()}}):(0,z.jsx)("a",{href:(0,x.$)(t.link||""),className:(0,p.Z)("excalidraw-hyperlinkContainer-link",{"d-none":k}),target:(0,x.q)(t.link)?"_self":"_blank",onClick:function(e){if(t.link&&r){var n=(0,i.ag)(g.Ks.EXCALIDRAW_LINK,e.nativeEvent);r(Z(Z({},t),{},{link:(0,x.$)(t.link)}),n),n.defaultPrevented&&e.preventDefault()}},rel:"noopener noreferrer",children:t.link}),(0,z.jsxs)("div",{className:"excalidraw-hyperlinkContainer__buttons",children:[!k&&(0,z.jsx)(l.V,{type:"button",title:(0,u.t)("buttons.edit"),"aria-label":(0,u.t)("buttons.edit"),label:(0,u.t)("buttons.edit"),onClick:function(){(0,N.L)("hyperlink","edit","popup-ui"),n({showHyperlinkPopup:"editor"})},className:"excalidraw-hyperlinkContainer--edit",icon:c.Pm}),h&&(0,z.jsx)(l.V,{type:"button",title:(0,u.t)("buttons.remove"),"aria-label":(0,u.t)("buttons.remove"),label:(0,u.t)("buttons.remove"),onClick:S,className:"excalidraw-hyperlinkContainer--remove",icon:c.XH})]})]})},H=function(e,t){var n=(0,w.qf)(e),r=(0,o.Z)(n,2),a=r[0],s=r[1],l=(0,i._i)({sceneX:a+e.width/2,sceneY:s},t),c=l.x,u=l.y;return{x:c-t.offsetLeft-160,y:u-t.offsetTop-85}},K=(0,s.z)({name:"hyperlink",perform:function(e,t){return"editor"!==t.showHyperlinkPopup&&{elements:e,appState:Z(Z({},t),{},{showHyperlinkPopup:"editor",openMenu:null}),commitToHistory:!0}},trackEvent:{category:"hyperlink",action:"click"},keyTest:function(e){return e[f.tW.CTRL_OR_CMD]&&e.key===f.tW.K},contextItemLabel:function(e,t){return V(e,t)},predicate:function(e,t){return 1===(0,b.eD)(e,t).length},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,o=(0,b.eD)(t,n);return(0,z.jsx)(l.V,{type:"button",icon:c.xP,"aria-label":(0,u.t)(V(t,n)),title:"".concat((0,u.t)("labels.link.label")," - ").concat((0,i.uY)("CtrlOrCmd+K")),onClick:function(){return r(null)},selected:1===o.length&&!!o[0].link})}}),V=function(e,t){return(0,b.eD)(e,t)[0].link?"labels.link.edit":"labels.link.create"},Y=function(e,t,n){var r=(0,o.Z)(e,4),i=r[0],a=r[1],s=r[2],l=r[3],c=h.Dn,u=c/n.zoom.value,d=c/n.zoom.value,p=c/n.zoom.value,f=(i+s)/2,g=(a+l)/2,v=(c-8)/(2*n.zoom.value),b=4/n.zoom.value,y=s+b-v,w=a-b-p+v,x=(0,m.U1)(y+u/2,w+d/2,f,g,t),k=(0,o.Z)(x,2);return[k[0]-u/2,k[1]-d/2,u,d]},G=function(e,t,n,r){var i=(0,o.Z)(n,2),a=i[0],s=i[1];if(!e.link||t.selectedElementIds[e.id])return!1;var l=4/t.zoom.value;if(!r&&t.viewModeEnabled&&(0,y.pX)(e,[a,s],l))return!0;var c=(0,w.qf)(e),u=(0,o.Z)(c,4),d=u[0],p=u[1],f=u[2],h=u[3],m=Y([d,p,f,h],e.angle,t),g=(0,o.Z)(m,4),v=g[0],b=g[1],x=g[2],k=g[3];return a>v-l&&a<v+l+x&&s>b-l&&s<b+k+l},q=null,X=function(e,t){q&&clearTimeout(q),q=window.setTimeout((function(){return $(e,t)}),g.sA)},$=function(e,t){if(e.link){var n=(0,v.bK)();n.classList.add("excalidraw-tooltip--visible"),n.style.maxWidth="20rem",n.textContent=e.link;var r=(0,w.qf)(e),a=(0,o.Z)(r,4),s=a[0],l=a[1],c=a[2],u=a[3],d=Y([s,l,c,u],e.angle,t),p=(0,o.Z)(d,4),f=p[0],h=p[1],m=p[2],g=p[3],b=(0,i._i)({sceneX:f,sceneY:h},t);(0,v.Js)(n,{left:b.x,top:b.y,width:m,height:g},"top"),(0,N.L)("hyperlink","tooltip","link-icon"),U=!0}},J=function(){q&&clearTimeout(q),U&&(U=!1,(0,v.bK)().classList.remove("excalidraw-tooltip--visible"))},Q=function(e,t,n){var r=(0,o.Z)(n,2),a=r[0],s=r[1],l=(0,i.dE)({clientX:a,clientY:s},t),c=l.x,u=l.y,d=15/t.zoom.value;if((0,y.pX)(e,[c,u],d))return!1;var p=(0,w.qf)(e),f=(0,o.Z)(p,3),h=f[0],m=f[1],g=f[2];if(c>=h&&c<=g&&u>=m-85&&u<=m)return!1;var v=H(e,t),b=v.x,x=v.y;return!(a>=b-d&&a<=b+320+10+d&&s>=x-d&&s<=x+d+10+42)}},8290:function(e,t,n){"use strict";n.d(t,{$q:function(){return W},DK:function(){return E},H:function(){return P},HG:function(){return b},N1:function(){return g},R:function(){return k},Ww:function(){return T},Y9:function(){return O},ZB:function(){return L},cz:function(){return m},ek:function(){return B},el:function(){return w}});var r=n(7169),o=n(2577),i=n(75),a=n(1974),s=n(2325),l=n(1935),c=n(1564),u=n(6938),d=n(6340),p=n(6066),f=n(5710);function h(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}var m=function(e){return!e[p.tW.CTRL_OR_CMD]},g=function(e){return e.isBindingEnabled},v=function(e,t){var n=[];return t.forEach((function(t){var r=e.getNonDeletedElement(t);null!=r&&n.push(r)})),n},b=function(e,t,n){var r=new Set,o=new Set;y(e,t,n,"start",r,o),y(e,n,t,"end",r,o);var i=Array.from(o).filter((function(e){return!r.has(e)}));v(c.Z.getScene(e),i).forEach((function(t){var n;(0,l.DR)(t,{boundElements:null===(n=t.boundElements)||void 0===n?void 0:n.filter((function(t){return"arrow"!==t.type||t.id!==e.id}))})}))},y=function(e,t,n,r,o,i){if("keep"!==t)if(null!=t)null!=n&&("keep"===n?S(e,t,r):"start"!==r&&n.id===t.id)||(_(e,t,r),o.add(t.id));else{var a=C(e,r);null!=a&&i.add(a)}},w=function(e){e.forEach((function(e){(0,a.Mn)(e)?b(e,R(e,"start"),R(e,"end")):(0,a.f0)(e)&&x(e)}))},x=function(e){F(e).forEach((function(t){var n=(0,o.Z)(t,2),r=n[0],i=n[1];return b(r,"end"===i?"keep":e,"start"===i?"keep":e)}))},k=function(e,t,n,r){null!=t.startBoundElement&&_(e,t.startBoundElement,"start");var o=O(r,n);null==o||S(e,o,"end")||_(e,o,"end")},_=function(e,t,n){(0,l.DR)(e,(0,r.Z)({},"start"===n?"startBinding":"endBinding",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({elementId:t.id},j(e,t,n)))),(0,d.xn)(t.boundElements||[]).has(e.id)||(0,l.DR)(t,{boundElements:(t.boundElements||[]).concat({id:e.id,type:"arrow"})})},S=function(e,t,n){var r=e["start"===n?"endBinding":"startBinding"];return E(e,null==r?void 0:r.elementId,t)},E=function(e,t,n){return t===n.id&&e.points.length<3},P=function(e){e.forEach((function(e){(0,a.Mn)(e)&&b(e,null,null)}))},C=function(e,t){var n="start"===t?"startBinding":"endBinding",o=e[n];return null==o?null:((0,l.DR)(e,(0,r.Z)({},n,null)),o.elementId)},O=function(e,t){return(0,i.QG)(t.getNonDeletedElements(),(function(t){return(0,a.f0)(t,!1)&&(0,s.uu)(t,e)}))},j=function(e,t,n){var r="start"===n?-1:1,o=-1===r?0:e.points.length-1,i=o-r,a=u._.getPointAtIndexGlobalCoordinates(e,o),l=u._.getPointAtIndexGlobalCoordinates(e,i);return{focus:(0,s.T_)(t,l,a),gap:Math.max(1,(0,s.oT)(t,a))}},T=function(e,t){var n,r=(null!==(n=e.boundElements)&&void 0!==n?n:[]).filter((function(e){return"arrow"===e.type}));if(0!==r.length){var o=null!=t?t:{},i=o.newSize,s=o.simultaneouslyUpdated,u=I(s);v(c.Z.getScene(e),r.map((function(e){return e.id}))).forEach((function(t){if((0,a.bt)(t)){var n=e;if(M(t,n)){var r=A(n,t.startBinding,i),o=A(n,t.endBinding,i);u.has(t.id)?(0,l.DR)(t,{startBinding:r,endBinding:o}):(D(t,"start",r,e),D(t,"end",o,e),(0,f.WJ)(t)&&(0,f.RB)(t,!1))}}}))}},M=function(e,t){var n,r;return(null===(n=e.startBinding)||void 0===n?void 0:n.elementId)===t.id||(null===(r=e.endBinding)||void 0===r?void 0:r.elementId)===t.id},I=function(e){return new Set((e||[]).map((function(e){return e.id})))},D=function(e,t,n,o){if(!(null==n||n.elementId!==o.id&&e.points.length>2)){var i=c.Z.getScene(e).getElement(n.elementId);if(null!=i){var a,l="start"===t?-1:1,d=-1===l?0:e.points.length-1,p=d-l,f=u._.getPointAtIndexGlobalCoordinates(e,p),h=(0,s.j_)(i,n.focus,f);if(0===n.gap)a=h;else{var m=(0,s.MZ)(i,f,h,n.gap);a=0===m.length?h:m[0]}u._.movePoints(e,[{index:d,point:u._.pointFromAbsoluteCoords(e,a)}],(0,r.Z)({},"start"===t?"startBinding":"endBinding",n))}}},A=function(e,t,n){if(null==t||null==n)return t;var r=t.gap,o=t.focus,i=t.elementId,a=n.width,l=n.height,c=e.width,u=e.height;return{elementId:i,gap:Math.max(1,Math.min((0,s.fb)(e,a,l),r*(a<l?a/c:l/u))),focus:o}},L=function(e){var t=new Set(e.map((function(e){return e.id})));return e.flatMap((function(e){return(0,a.Mn)(e,!1)?N(e).filter((function(e){return!t.has(e.id)})):(0,a.f0)(e,!1)?F(e).filter((function(e){return!t.has(e[0].id)})):[]}))},N=function(e){return[R(e,"start"),R(e,"end")].filter((function(e){return null!=e}))},R=function(e,t){return O(z(e,t),c.Z.getScene(e))},z=function(e,t){var n="start"===t?0:-1;return(0,d.AK)(u._.getPointAtIndexGlobalCoordinates(e,n))},F=function(e){return c.Z.getScene(e).getNonDeletedElements().map((function(t){if(!(0,a.Mn)(t,!1))return null;var n=Z(t,"start",e),r=Z(t,"end",e);return n||r?[t,n&&r?"both":n?"start":"end",e]:null})).filter((function(e){return null!=e}))},Z=function(e,t,n){return null==e["start"===t?"startBinding":"endBinding"]&&!S(e,n,t)&&(0,s.uu)(n,z(e,t))},B=function(e,t,n,r){var o=new Set,i=new Set,s="duplicatesServeAsOld"===r;t.forEach((function(e){var t=e.boundElements;if(null!=t&&t.length>0&&(t.forEach((function(e){s&&!n.has(e.id)&&o.add(e.id)})),i.add(n.get(e.id))),(0,a.Mn)(e)){if(null!=e.startBinding){var r=e.startBinding.elementId;s&&!n.has(r)&&i.add(r)}if(null!=e.endBinding){var l=e.endBinding.elementId;s&&!n.has(l)&&i.add(l)}null==e.startBinding&&null==e.endBinding||o.add(n.get(e.id))}})),e.filter((function(e){var t=e.id;return o.has(t)})).forEach((function(e){var t=e.startBinding,r=e.endBinding;(0,l.DR)(e,{startBinding:U(t,n),endBinding:U(r,n)})})),e.filter((function(e){var t=e.id;return i.has(t)})).forEach((function(e){var t=e.boundElements;null!=t&&t.length>0&&(0,l.DR)(e,{boundElements:t.map((function(e){return n.has(e.id)?{id:n.get(e.id),type:e.type}:e}))})}))},U=function(e,t){var n;if(null==e)return null;var r=e.elementId;return{focus:e.focus,gap:e.gap,elementId:null!==(n=t.get(r))&&void 0!==n?n:r}},W=function(e,t){var n=new Set(t.map((function(e){return e.id}))),r=new Set;t.forEach((function(e){var t;(0,a.f0)(e)?null===(t=e.boundElements)||void 0===t||t.forEach((function(e){n.has(e.id)||r.add(e.id)})):(0,a.Mn)(e)&&(e.startBinding&&r.add(e.startBinding.elementId),e.endBinding&&r.add(e.endBinding.elementId))})),e.filter((function(e){var t=e.id;return r.has(t)})).forEach((function(e){(0,a.f0)(e)?(0,l.DR)(e,{boundElements:K(e.boundElements,n)}):(0,a.Mn)(e)&&(0,l.DR)(e,{startBinding:H(e.startBinding,n),endBinding:H(e.endBinding,n)})}))},H=function(e,t){return null==e||t.has(e.elementId)?null:e},K=function(e,t){return e?e.filter((function(e){return!t.has(e.id)})):null}},8925:function(e,t,n){"use strict";n.d(t,{CM:function(){return g},IX:function(){return y},KP:function(){return E},Pi:function(){return S},UC:function(){return m},Ut:function(){return C},Y5:function(){return k},os:function(){return O},qf:function(){return h},v2:function(){return j},wC:function(){return P}});var r=n(2577),o=n(1930),i=n(6552),a=n(8234),s=n(3063),l=n(1974),c=n(5001),u=n(5710),d=n(6938);function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,l.F9)(e))return x(e);if((0,l.bt)(e))return d._.getElementAbsoluteCoords(e,t);if((0,l.iB)(e)){var n=(0,u.tl)(e);if((0,l.Yv)(n)){var r=d._.getBoundTextElementPosition(n,e);return[r.x,r.y,r.x+e.width,r.y+e.height,r.x+e.width/2,r.y+e.height/2]}}return[e.x,e.y,e.x+e.width,e.y+e.height,e.x+e.width/2,e.y+e.height/2]},m=function(e){var t=Math.floor(e.width/2)+1,n=e.width,r=Math.floor(e.height/2)+1;return[t,0,n,r,t,e.height,0,r]},g=function(e){var t,n=p(e.sets);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("path"===r.type)return r.ops}}catch(e){n.e(e)}finally{n.f()}return e.sets[0].ops},v=function(e,t,n,r,o){var i=1-e;return Math.pow(i,3)*t+3*Math.pow(i,2)*e*n+3*i*Math.pow(e,2)*r+Math.pow(e,3)*o},b=function(e,t,n,r){var o=t-e,i=n-t,a=3*o-6*i+3*(r-n),s=6*i-6*o,l=3*o,c=s*s-4*a*l;if(!(c>=0))return!1;var u=null,d=null,p=1/0,f=1/0;return 0===a?p=f=-l/s:(p=(-s+Math.sqrt(c))/(2*a),f=(-s-Math.sqrt(c))/(2*a)),p>=0&&p<=1&&(u=v(p,e,t,n,r)),f>=0&&f<=1&&(d=v(f,e,t,n,r)),[u,d]},y=function(e,t){var n=[0,0],i=e.reduce((function(e,i){var a=i.op,s=i.data;if("move"===a)n=s;else if("bcurveTo"===a){var l=[s[0],s[1]],c=[s[2],s[3]],u=[s[4],s[5]],d=t?t.apply(void 0,l):l,p=t?t.apply(void 0,c):c,f=t?t.apply(void 0,u):u,h=t?t.apply(void 0,(0,o.Z)(n)):n;n=u;var m=function(e,t,n,r){var i=b(e[0],t[0],n[0],r[0]),a=b(e[1],t[1],n[1],r[1]),s=Math.min(e[0],r[0]),l=Math.max(e[0],r[0]);if(i){var c=i.filter((function(e){return null!==e}));s=Math.min.apply(Math,[s].concat((0,o.Z)(c))),l=Math.max.apply(Math,[l].concat((0,o.Z)(c)))}var u=Math.min(e[1],r[1]),d=Math.max(e[1],r[1]);if(a){var p=a.filter((function(e){return null!==e}));u=Math.min.apply(Math,[u].concat((0,o.Z)(p))),d=Math.max.apply(Math,[d].concat((0,o.Z)(p)))}return[s,u,l,d]}(h,d,p,f),g=(0,r.Z)(m,4),v=g[0],y=g[1],w=g[2],x=g[3];e.minX=Math.min(e.minX,v),e.minY=Math.min(e.minY,y),e.maxX=Math.max(e.maxX,w),e.maxY=Math.max(e.maxY,x)}return e}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return[i.minX,i.minY,i.maxX,i.maxY]},w=function(e){var t,n=1/0,o=1/0,i=-1/0,a=-1/0,s=p(e);try{for(s.s();!(t=s.n()).done;){var l=(0,r.Z)(t.value,2),c=l[0],u=l[1];n=Math.min(n,c),o=Math.min(o,u),i=Math.max(i,c),a=Math.max(a,u)}}catch(e){s.e(e)}finally{s.f()}return[n,o,i,a]},x=function(e){var t=w(e.points),n=(0,r.Z)(t,4),o=n[0],i=n[1],a=n[2],s=n[3],l=o+e.x,c=i+e.y,u=a+e.x,d=s+e.y;return[l,c,u,d,(l+u)/2,(c+d)/2]},k=function(e,t,n,o){var a=g(t[0]);if(a.length<1)return null;var s="start"===n?1:a.length-1,l=a[s].data,c=[l[4],l[5]],u=[l[2],l[3]],d=[l[0],l[1]],p=a[s-1],f=[0,0];"move"===p.op?f=p.data:"bcurveTo"===p.op&&(f=[p.data[4],p.data[5]]);var h=function(e,t){return Math.pow(1-e,3)*c[t]+3*e*Math.pow(1-e,2)*u[t]+3*Math.pow(e,2)*(1-e)*d[t]+f[t]*Math.pow(e,3)},m="start"===n?f:c,v=(0,r.Z)(m,2),b=v[0],y=v[1],w=[h(.3,0),h(.3,1)],x=w[0],k=w[1],_=Math.hypot(b-x,y-k),S=(b-x)/_,E=(y-k)/_,P={arrow:30,bar:15,dot:15,triangle:15}[o],C=0;if("arrow"===o){var O=(0,r.Z)(e.points[e.points.length-1],2),j=O[0],T=O[1],M=e.points.length>1?e.points[e.points.length-2]:[0,0],I=(0,r.Z)(M,2),D=I[0],A=I[1];C=Math.hypot(j-D,T-A)}else for(var L=0;L<e.points.length;L++){var N=e.points[L-1]||[0,0],R=(0,r.Z)(N,2),z=R[0],F=R[1],Z=(0,r.Z)(e.points[L],2),B=Z[0],U=Z[1];C+=Math.hypot(B-z,U-F)}var W=Math.min(P,C/2),H=b-S*W,K=y-E*W;if("dot"===o)return[b,y,Math.hypot(K-y,H-b)+e.strokeWidth];var V={arrow:20,bar:90,triangle:25}[o],Y=(0,i.U1)(H,K,b,y,-V*Math.PI/180),G=(0,r.Z)(Y,2),q=G[0],X=G[1],$=(0,i.U1)(H,K,b,y,V*Math.PI/180),J=(0,r.Z)($,2);return[b,y,q,X,J[0],J[1]]},_=function(e,t,n){var o;if(e.points.length<2){var l=(0,r.Z)(e.points[0],2),c=l[0],p=l[1],f=(0,i.U1)(e.x+c,e.y+p,t,n,e.angle),h=(0,r.Z)(f,2),m=h[0],v=h[1],b=[m,v,m,v],w=(0,u.WJ)(e);if(w){var x=d._.getMinMaxXYWithBoundText(e,[m,v,m,v],w);b=[x[0],x[1],x[2],x[3]]}return b}var k=null===(o=(0,s.R2)(e))||void 0===o?void 0:o[0],_=null!=k?k:function(e){var t=a.Z.generator(),n=(0,s.i)(e);return t[e.roundness?"curve":n.fill?"polygon":"linearPath"](e.points,n)}(e),S=g(_),E=y(S,(function(r,o){return(0,i.U1)(e.x+r,e.y+o,t,n,e.angle)})),P=[E[0],E[1],E[2],E[3]],C=(0,u.WJ)(e);if(C){var O=d._.getMinMaxXYWithBoundText(e,P,C);P=[O[0],O[1],O[2],O[3]]}return P},S=function(e){var t,n=h(e),o=(0,r.Z)(n,6),a=o[0],s=o[1],c=o[2],u=o[3],d=o[4],p=o[5];if((0,l.F9)(e)){var f=w(e.points.map((function(t){var n=(0,r.Z)(t,2),o=n[0],a=n[1];return(0,i.U1)(o,a,d-e.x,p-e.y,e.angle)}))),m=(0,r.Z)(f,4),g=m[0],v=m[1],b=m[2],y=m[3];return[g+e.x,v+e.y,b+e.x,y+e.y]}if((0,l.bt)(e))t=_(e,d,p);else if("diamond"===e.type){var x=(0,i.U1)(d,s,d,p,e.angle),k=(0,r.Z)(x,2),S=k[0],E=k[1],P=(0,i.U1)(d,u,d,p,e.angle),C=(0,r.Z)(P,2),O=C[0],j=C[1],T=(0,i.U1)(a,p,d,p,e.angle),M=(0,r.Z)(T,2),I=M[0],D=M[1],A=(0,i.U1)(c,p,d,p,e.angle),L=(0,r.Z)(A,2),N=L[0],R=L[1];t=[Math.min(S,O,I,N),Math.min(E,j,D,R),Math.max(S,O,I,N),Math.max(E,j,D,R)]}else if("ellipse"===e.type){var z=(c-a)/2,F=(u-s)/2,Z=Math.cos(e.angle),B=Math.sin(e.angle),U=Math.hypot(z*Z,F*B),W=Math.hypot(F*Z,z*B);t=[d-U,p-W,d+U,p+W]}else{var H=(0,i.U1)(a,s,d,p,e.angle),K=(0,r.Z)(H,2),V=K[0],Y=K[1],G=(0,i.U1)(a,u,d,p,e.angle),q=(0,r.Z)(G,2),X=q[0],$=q[1],J=(0,i.U1)(c,u,d,p,e.angle),Q=(0,r.Z)(J,2),ee=Q[0],te=Q[1],ne=(0,i.U1)(c,s,d,p,e.angle),re=(0,r.Z)(ne,2),oe=re[0],ie=re[1];t=[Math.min(V,X,ee,oe),Math.min(Y,$,te,ie),Math.max(V,X,ee,oe),Math.max(Y,$,te,ie)]}return t},E=function(e){if(!e.length)return[0,0,0,0];var t=1/0,n=-1/0,o=1/0,i=-1/0;return e.forEach((function(e){var a=S(e),s=(0,r.Z)(a,4),l=s[0],c=s[1],u=s[2],d=s[3];t=Math.min(t,l),o=Math.min(o,c),n=Math.max(n,u),i=Math.max(i,d)})),[t,o,n,i]},P=function(e,t,n,o){if(!(0,l.bt)(e)&&!(0,l.F9)(e))return[e.x,e.y,e.x+t,e.y+n];var i,u=(0,c.z)(0,t,(0,c.z)(1,n,e.points,o),o);if((0,l.F9)(e))i=w(u);else{var d=a.Z.generator(),p=e.roundness?d.curve(u,(0,s.i)(e)):d.linearPath(u,(0,s.i)(e)),f=g(p);i=y(f)}var h=i,m=(0,r.Z)(h,4),v=m[0],b=m[1],x=m[2],k=m[3];return[v+e.x,b+e.y,x+e.x,k+e.y]},C=function(e,t){var n=a.Z.generator(),o=null==e.roundness?n.linearPath(t,(0,s.i)(e)):n.curve(t,(0,s.i)(e)),i=g(o),l=y(i),c=(0,r.Z)(l,4),u=c[0],d=c[1],p=c[2],f=c[3];return[u+e.x,d+e.y,p+e.x,f+e.y]},O=function(e,t){if(!e.length)return[0,0,0,0];var n=1/0,o=e[0];return e.forEach((function(e){var a=S(e),s=(0,r.Z)(a,4),l=s[0],c=s[1],u=s[2],d=s[3],p=(0,i.LW)((l+u)/2,(c+d)/2,t.x,t.y);p<n&&(n=p,o=e)})),S(o)},j=function(e){var t=E(e),n=(0,r.Z)(t,4),o=n[0],i=n[1],a=n[2],s=n[3];return{minX:o,minY:i,maxX:a,maxY:s,width:a-o,height:s-i,midX:(o+a)/2,midY:(i+s)/2}}},2325:function(e,t,n){"use strict";n.d(t,{uu:function(){return B},T_:function(){return oe},j_:function(){return ie},oT:function(){return H},wX:function(){return N},MZ:function(){return ae},wB:function(){return R},Qu:function(){return z},pX:function(){return Z},fb:function(){return U}});var r=n(2577),o=function(e,t){return[0,0,0,0,t,e,1,0]},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[0,0,0,0,0,0,0,0];if(t<0||t>7)throw new Error("Expected `index` between 0 and 7, got `".concat(t,"`"));return 0!==e&&(n[t]=e),n},a=function(e){return[e[0],e[1],e[2],e[3],-e[4],-e[5],-e[6],-e[7]]},s=function(e,t){return h(t)?[e[0]-t,e[1],e[2],e[3],e[4],e[5],e[6],e[7]]:[e[0]-t[0],e[1]-t[1],e[2]-t[2],e[3]-t[3],e[4]-t[4],e[5]-t[5],e[6]-t[6],e[7]-t[7]]},l=function(e,t){return h(t)?[e[0]*t,e[1]*t,e[2]*t,e[3]*t,e[4]*t,e[5]*t,e[6]*t,e[7]*t]:[c(e,t),t[1]*e[0]+t[0]*e[1]-t[4]*e[2]+t[5]*e[3]+t[2]*e[4]-t[3]*e[5]-t[7]*e[6]-t[6]*e[7],t[2]*e[0]+t[0]*e[2]-t[6]*e[3]+t[3]*e[6],t[3]*e[0]+t[6]*e[2]+t[0]*e[3]-t[2]*e[6],t[4]*e[0]+t[2]*e[1]-t[1]*e[2]+t[7]*e[3]+t[0]*e[4]+t[6]*e[5]-t[5]*e[6]+t[3]*e[7],t[5]*e[0]-t[3]*e[1]+t[7]*e[2]+t[1]*e[3]-t[6]*e[4]+t[0]*e[5]+t[4]*e[6]+t[2]*e[7],t[6]*e[0]+t[3]*e[2]-t[2]*e[3]+t[0]*e[6],t[7]*e[0]+t[6]*e[1]+t[5]*e[2]+t[4]*e[3]+t[3]*e[4]+t[2]*e[5]+t[1]*e[6]+t[0]*e[7]]},c=function(e,t){return t[0]*e[0]+t[2]*e[2]+t[3]*e[3]-t[6]*e[6]},u=function(e,t){return[d(e,t),e[1]*t[7]+e[4]*t[5]-e[5]*t[4]+e[7]*t[1],e[2]*t[7]-e[4]*t[6]+e[6]*t[4]+e[7]*t[2],e[3]*t[7]+e[5]*t[6]-e[6]*t[5]+e[7]*t[3],e[4]*t[7]+e[7]*t[4],e[5]*t[7]+e[7]*t[5],e[6]*t[7]+e[7]*t[6],e[7]*t[7]]},d=function(e,t){return e[0]*t[7]+e[1]*t[6]+e[2]*t[5]+e[3]*t[4]+e[4]*t[3]+e[5]*t[2]+e[6]*t[1]+e[7]*t[0]},p=function(e){return Math.sqrt(Math.abs(e[0]*e[0]-e[2]*e[2]-e[3]*e[3]+e[6]*e[6]))},f=function(e){var t=p(e);if(0===t||1===t)return e;var n=e[6]<0?-1:1;return l(e,n/t)},h=function(e){return"number"==typeof e},m=(i(1,1),i(1,2),i(1,3),i(1,4),i(1,5),i(1,6),i(1,7),function(e,t,n){return f([0,n,e,t,0,0,0,0])}),g=function(e,t){return f(u(t,e))},v=function(e,t){return n=e,[(r=t)[0]*n[0]+r[2]*n[2]+r[3]*n[3]-r[6]*n[6],r[1]*n[0]+r[0]*n[1]-r[4]*n[2]+r[5]*n[3]+r[2]*n[4]-r[3]*n[5]-r[7]*n[6]-r[6]*n[7],r[2]*n[0]+r[0]*n[2]-r[6]*n[3]+r[3]*n[6],r[3]*n[0]+r[6]*n[2]+r[0]*n[3]-r[2]*n[6],r[4]*n[0]+r[7]*n[3]+r[0]*n[4]+r[3]*n[7],r[5]*n[0]+r[7]*n[2]+r[0]*n[5]+r[2]*n[7],r[6]*n[0]+r[0]*n[6],r[7]*n[0]+r[0]*n[7]];var n,r},b=function(e){var t=(0,r.Z)(e,2),n=t[0];return[0,0,0,0,t[1],n,1,0]},y=function(e){return[e[5],e[4]]},w=function(e,t){return f((n=e,[(r=t)[0]*n[0],r[1]*n[0]+r[0]*n[1],r[2]*n[0]+r[0]*n[2],r[3]*n[0]+r[0]*n[3],r[4]*n[0]+r[2]*n[1]-r[1]*n[2]+r[0]*n[4],r[5]*n[0]-r[3]*n[1]+r[1]*n[3]+r[0]*n[5],r[6]*n[0]+r[3]*n[2]-r[2]*n[3]+r[0]*n[6],r[7]*n[0]+r[6]*n[1]+r[5]*n[2]+r[4]*n[3]+r[3]*n[4]+r[2]*n[5]+r[1]*n[6]]));var n,r},x=function(e,t){return p(u(e,t))},k=function(e,t){return d(e,t)},_=function(e){return[0,0,0,0,e[4],e[5],0,0]},S=function(e,t){return n=l(e,Math.sin(t/2)),r=Math.cos(t/2),h(r)?[n[0]+r,n[1],n[2],n[3],n[4],n[5],n[6],n[7]]:[n[0]+r[0],n[1]+r[1],n[2]+r[2],n[3]+r[3],n[4]+r[4],n[5]+r[5],n[6]+r[6],n[7]+r[7]];var n,r},E=function(e,t){return f(l(l(e,t),a(e)))},P=n(6552),C=n(1493),O=n(8925),j=n(3063),T=n(1974),M=n(1047),I=n(6340),D=n(267),A=n(5710);function L(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}var N=function e(t,n,r,o){var i=10/n.zoom.value,a=[r,o];if(F(n,t)&&(0,D.oY)([t],n))return Z(t,a,i);var s=(0,A.WJ)(t);return!(!s||!e(s,n,r,o))||z(t,n,a)},R=function(e,t,n,r){var o=10/t.zoom.value,i=(0,A.WJ)(e);return(!i||!N(i,t,n,r))&&!z(e,t,[n,r])&&Z(e,[n,r],o)},z=function(e,t,n){var r=10/t.zoom.value,o=(0,M.iB)(e)?K:function(e){if("arrow"===e.type)return!1;if("freedraw"===e.type)return!0;var t=!(0,I.Qm)(e.backgroundColor)||(0,T.Xo)(e);return"line"===e.type?t&&(0,P.g6)(e.points):t||(0,T.pC)(e)}(e)?V:Y;return W({element:e,point:n,threshold:r,check:o})},F=function(e,t){return e.selectedElementIds[t.id]},Z=function(e,t,n){var o=(0,r.Z)(t,2),i=o[0],a=o[1],s=(0,O.qf)(e),l=(0,r.Z)(s,4),c=l[0],u=l[1],d=l[2],p=l[3],f=(c+d)/2,h=(u+p)/2,m=(0,P.U1)(i,a,f,h,-e.angle),g=(0,r.Z)(m,2),v=g[0],b=g[1];return v>c-n&&v<d+n&&b>u-n&&b<p+n},B=function(e,t){var n=t.x,r=t.y,o=U(e,e.width,e.height);return W({element:e,point:[n,r],threshold:o,check:G})},U=function(e,t,n){var r=("diamond"===e.type?1/Math.sqrt(2):1)*Math.min(t,n);return Math.max(16,Math.min(.25*r,32))},W=function(e){switch(e.element.type){case"rectangle":case"image":case"text":case"diamond":case"ellipse":var t=H(e.element,e.point);return e.check(t,e.threshold);case"freedraw":return!!e.check(q(e.element,e.point),e.threshold)&&Q(e.element,e.point,e.threshold);case"arrow":case"line":return ee(e);case"selection":return console.warn("This should not happen, we need to investigate why it does."),!1}},H=function(e,t){switch(e.type){case"rectangle":case"image":case"text":return q(e,t);case"diamond":return X(e,t);case"ellipse":return $(e,t)}},K=function(e,t){return e<0},V=function(e,t){return e<t},Y=function(e,t){return Math.abs(e)<t},G=function(e,t){return 0<=e&&e<t},q=function(e,t){var n=te(e,t),o=(0,r.Z)(n,4),i=o[1],a=o[2],s=o[3];return Math.max(k(i,m(0,1,-s)),k(i,m(1,0,-a)))},X=function(e,t){var n=te(e,t),o=(0,r.Z)(n,4),i=o[1],a=o[2],s=o[3],l=m(s,a,-s*a);return k(i,l)},$=function(e,t){var n,o=J(e,t),i=(0,r.Z)(o,2),a=i[0],s=i[1];return n=s,-Math.sign(n[1])*k(a,s)},J=function(e,t){var n=te(e,t),i=(0,r.Z)(n,4),a=i[1],s=i[2],l=i[3],c=y(a),u=(0,r.Z)(c,2),d=u[0],p=u[1],f=.707,h=.707,m=s,b=l;[0,1,2,3].forEach((function(e){var t=m*f,n=b*h,r=(m*m-b*b)*Math.pow(f,3)/m,o=(b*b-m*m)*Math.pow(h,3)/b,i=t-r,a=n-o,s=d-r,l=p-o,c=Math.hypot(a,i),u=Math.hypot(l,s);f=Math.min(1,Math.max(0,(s*c/u+r)/m)),h=Math.min(1,Math.max(0,(l*c/u+o)/b));var g=Math.hypot(h,f);f/=g,h/=g}));var w,x=o(m*f,b*h);return[a,v(g(a,w=x),w)]},Q=function(e,t,n){var o,i;if(0===e.angle)o=t[0]-e.x,i=t[1]-e.y;else{var a=(0,O.qf)(e),s=(0,r.Z)(a,4),l=s[0],c=s[1],u=s[2],d=s[3],p=(0,P.xj)(t,[l+(u-l)/2,c+(d-c)/2],-e.angle);o=p[0]-e.x,i=p[1]-e.y}var f,h=(0,r.Z)(e.points,2),m=h[0],g=h[1];if((0,P.LW)(m[0],m[1],o,i)<n||(0,P.LW)(g[0],g[1],o,i)<n)return!0;for(var v=0;v<e.points.length;v++){var b=[g[0]-m[0],g[1]-m[1]],y=Math.hypot(b[1],b[0]),w=[b[0]/y,b[1]/y],x=[o-m[0],i-m[1]],k=(x[0]*w[0]+x[1]*w[1])/Math.hypot(w[1],w[0]);f=[m[0]+w[0]*k,m[1]+w[1]*k];var _=(0,P.LW)(f[0],f[1],m[0],m[1]),S=(0,P.LW)(f[0],f[1],g[0],g[1]);if(f=S<_&&_>y?g:_<S&&S>y?m:f,Math.hypot(i-f[1],o-f[0])<n)return!0;m=g,g=e.points[v+1]}var E=(0,j.R2)(e);return!(!E||!E.sets.length)&&ge(E,o,i,n)},ee=function(e){var t=e.element,n=e.threshold;if(!(0,j.R2)(t))return!1;var o=te(e.element,e.point),i=(0,r.Z)(o,4),a=i[0],s=i[1],l=i[2],c=i[3],u=m(0,1,-c),d=m(1,0,-l);if(!V(k(s,u),n)||!V(k(s,d),n))return!1;var p=y(a),f=(0,r.Z)(p,2),h=f[0],g=f[1],v=(0,j.R2)(t);return!!v&&(!(e.check!==V||!v.some((function(e){return me(e,h,g,t.roundness?"round":"sharp")})))||v.some((function(e){return ge(e,h,g,n)})))},te=function(e,t){var n,o=b(t),i=(0,O.qf)(e),a=(0,r.Z)(i,4),l=a[0],c=a[1],u=a[2],d=a[3],p=(0,O.qf)(e),f=re([l,c,u,d]),h=S(f,e.angle),m=E(h,o),g=function(e){return[0,0,0,0,Math.abs(e[4]),Math.abs(e[5]),1,0]}(s(m,_(f))),v=(n=e.x,[0,0,0,0,e.y,n,0,0]),y=s(m,v),w=(0,r.Z)(p,4),x=w[0],k=w[1];return[y,g,(w[2]-x)/2,(w[3]-k)/2]},ne=function(e){var t=(0,O.qf)(e),n=(0,r.Z)(t,4),o=n[0],i=n[1],s=n[2],c=n[3],u=re([o,i,s,c]),d=S(u,e.angle),p=a(function(e){return[1,0,0,0,-.5*e[5],.5*e[4],0,0]}(_(u)));return l(p,d)},re=function(e){var t=(0,r.Z)(e,4),n=t[0],i=t[1],a=t[2],s=t[3];return o((n+a)/2,(i+s)/2)},oe=function(e,t,n){var r=ne(e),o=E(r,b(t)),i=E(r,b(n)),a=g(o,i),s=e.height/e.width,l=e.width/2,c=e.height/2,u=a[2],d=a[3],p=a[1],f=Math.abs(d),h=Math.abs(u);switch(e.type){case"rectangle":case"image":case"text":return p/(l*(h+s*f));case"diamond":return f<h?p/(h*l):p/(f*c);case"ellipse":return p/(l*Math.sqrt(Math.pow(u,2)+Math.pow(s,2)*Math.pow(d,2)))}},ie=function(e,t,n){if(0===t){var o=(0,O.qf)(e),i=(0,r.Z)(o,4),s=i[0],l=i[1],c=i[2],u=i[3],d=re([s,l,c,u]);return y(d)}var p,f=ne(e),h=E(f,b(n)),m=a(f);switch(e.type){case"rectangle":case"image":case"text":case"diamond":p=he(e,t,h);break;case"ellipse":p=fe(e,t,h)}return y(E(m,p))},ae=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=ne(e),i=E(o,b(t)),s=E(o,b(n)),l=g(i,s),c=a(o);return se(e,l,i,r).map((function(e){return y(E(c,e))}))},se=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;switch(e.type){case"rectangle":case"image":case"text":case"diamond":var i=le(e);r=i.flatMap((function(e,n){var r=[e,i[(n+1)%4]];return ce(t,ue(r,o))})).concat(i.flatMap((function(e){return pe(e,o,t)})));break;case"ellipse":r=de(e,o,t)}if(r.length<2)return[];var a=r.sort((function(e,t){return x(e,n)-x(t,n)}));return[a[0],a[a.length-1]]},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t*e.width/2,r=t*e.height/2;switch(e.type){case"rectangle":case"image":case"text":return[o(n,r),o(n,-r),o(-n,-r),o(-n,r)];case"diamond":return[o(0,r),o(n,0),o(0,-r),o(-n,0)]}},ce=function(e,t){var n=(0,r.Z)(t,2),o=n[0],i=n[1];return k(o,e)*k(i,e)>=0?[]:[w(e,g(o,i))]},ue=function(e,t){var n=(0,r.Z)(e,2),o=n[0],i=n[1],a=function(e,t){var n=.5*t;return[1,0,0,0,n*e[4],n*e[5],0,0]}(function(e,t){return function(e){var t=function(e){return Math.sqrt(Math.abs(e[7]*e[7]-e[5]*e[5]-e[4]*e[4]+e[1]*e[1]))}(e);return 0===t||1===t?e:l(e,1/t)}([0,0,0,0,t[4]-e[4],t[5]-e[5],0,0])}(o,i),t);return[E(a,o),E(a,i)]},de=function(e,t,n){var r=e.width/2+t,i=e.height/2+t,a=n[2],s=n[3],l=n[1],c=r*r*a*a+i*i*s*s,u=c-l*l;if(0===c||u<=0)return[];var d=Math.sqrt(u),p=-r*r*a*l,f=-i*i*s*l;return[o((p+r*i*s*d)/c,(f-r*i*a*d)/c),o((p-r*i*s*d)/c,(f+r*i*a*d)/c)]},pe=function(e,t,n){if(0===t)return 0===k(n,e)?[e]:[];var i=n[2],a=n[3],s=n[1],l=y(e),c=(0,r.Z)(l,2),u=c[0],d=c[1],p=i*i+a*a,f=t*t*p-Math.pow(i*u+a*d+s,2);if(0===p||f<=0)return[];var h=Math.sqrt(f),m=u*a*a-d*i*a-i*s,g=d*i*i-u*i*a-a*s;return[o((m+a*h)/p,(g-i*h)/p),o((m-a*h)/p,(g+i*h)/p)]},fe=function(e,t,n){var i=Math.abs(t),a=e.width*i/2,s=e.height*i/2,l=Math.sign(t),c=y(n),u=(0,r.Z)(c,2),d=u[0],p=u[1],f=0===p?1e-4:p,h=Math.pow(d,2)*Math.pow(s,2)+Math.pow(f,2)*Math.pow(a,2),m=(-d*Math.pow(s,2)+l*f*Math.sqrt(Math.max(0,h-Math.pow(a,2)*Math.pow(s,2))))/h,g=(-m*d-1)/f;0===g&&(g=.01*(Object.is(g,-0)?-1:1));var v=-Math.pow(a,2)*m/(Math.pow(g,2)*Math.pow(s,2)+Math.pow(m,2)*Math.pow(a,2));return o(v,(-m*v-1)/g)},he=function(e,t,n){var r=Math.abs(t),o=Math.sign(t),i=le(e,r),a=0,s=null;return i.forEach((function(e){var t=o*g(n,e)[1];t>a&&(a=t,s=e)})),s},me=function(e,t,n,r){var o,i=[],a=!1,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return L(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)?L(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}((0,O.CM)(e));try{for(s.s();!(o=s.n()).done;){var l=o.value;"move"===l.op?(a=!a)&&i.push([l.data[0],l.data[1]]):"bcurveTo"===l.op?a&&(i.push([l.data[0],l.data[1]]),i.push([l.data[2],l.data[3]]),i.push([l.data[4],l.data[5]])):"lineTo"===l.op&&a&&i.push([l.data[0],l.data[1]])}}catch(e){s.e(e)}finally{s.f()}if(i.length>=4){if("sharp"===r)return(0,P.c9)(i,t,n);var c=(0,C.s)(i,10,5);return(0,P.c9)(c,t,n)}return!1},ge=function(e,t,n,o){var i=(0,O.CM)(e),a=[0,0];return i.some((function(i,s){var l=i.op,c=i.data;if("move"===l)a=c;else{if("bcurveTo"===l){var u=[c[0],c[1]],d=[c[2],c[3]],p=[c[4],c[5]],f=a;a=p;var h=function(e,t,n,o,i,a){for(var s=(0,r.Z)(i,2),l=s[0],c=s[1],u=function(r,i){return Math.pow(1-r,3)*o[i]+3*r*Math.pow(1-r,2)*n[i]+3*Math.pow(r,2)*(1-r)*t[i]+e[i]*Math.pow(r,3)},d=0;d<=1;){var p=u(d,0),f=u(d,1);if(Math.sqrt(Math.pow(p-l,2)+Math.pow(f-c,2))<a)return!0;d+=.01}return!1}(f,u,d,p,[t,n],o);return h}if("lineTo"===l)return me(e,t,n,"sharp");"qcurveTo"===l&&console.warn("qcurveTo is not implemented yet")}return!1}))}},5637:function(e,t,n){"use strict";n.d(t,{PK:function(){return f},Xx:function(){return h},bp:function(){return g},oA:function(){return m}});var r=n(2577),o=n(7169),i=n(8950),a=n(2975),s=n.n(a),l=n(2335),c=n(8211),u=n(1974);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e}))},h=function(){var e=(0,i.Z)(s().mark((function e(t){var n,r,o,a,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.fileIds,r=t.files,o=t.imageCache,a=new Map,c=new Map,e.next=5,Promise.all(n.reduce((function(e,t){var n=r[t];return n&&!a.has(t)?(a.set(t,!0),e.concat((0,i.Z)(s().mark((function e(){var r,i,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n.mimeType!==l.LO.binary){e.next=3;break}throw new Error("Only images can be added to ImageCache");case 3:return r=f(n.dataURL),i={image:r,mimeType:n.mimeType},o.set(t,i),e.next=8,r;case 8:a=e.sent,o.set(t,p(p({},i),{},{image:a})),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),c.set(t,!0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})))())):e}),[]));case 5:return e.abrupt("return",{imageCache:o,updatedFiles:a,erroredFiles:c});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=function(e){return e.filter((function(e){return(0,u.wi)(e)}))},g=function(){var e=(0,i.Z)(s().mark((function e(t){var n,o,i,a,u,d,p;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(new DOMParser).parseFromString(t,l.LO.svg),o=n.querySelector("svg"),!n.querySelector("parsererror")&&"svg"===(null==(s=o)?void 0:s.nodeName.toLowerCase())){e.next=7;break}throw new Error((0,c.t)("errors.invalidSVGString"));case 7:return o.hasAttribute("xmlns")||o.setAttribute("xmlns",l.hR),o.hasAttribute("width")&&o.hasAttribute("height")||(i=o.getAttribute("viewBox"),a=o.getAttribute("width")||"50",u=o.getAttribute("height")||"50",i&&(d=i.match(/\d+ +\d+ +(\d+) +(\d+)/))&&(p=(0,r.Z)(d,3),a=p[1],u=p[2]),o.setAttribute("width",a),o.setAttribute("height",u)),e.abrupt("return",o.outerHTML);case 10:case"end":return e.stop()}var s}),e)})));return function(t){return e.apply(this,arguments)}}()},1047:function(e,t,n){"use strict";n.d(t,{ox:function(){return f.ox},BQ:function(){return B},_M:function(){return U},EJ:function(){return T},o8:function(){return C},Sy:function(){return d.Sy},os:function(){return p.os},KP:function(){return p.KP},Un:function(){return k},$V:function(){return j},qf:function(){return p.qf},Pi:function(){return p.Pi},jt:function(){return y},o4:function(){return c},Lm:function(){return z},Qp:function(){return u},T:function(){return _.T},xx:function(){return _.xx},Uo:function(){return N},n2:function(){return w},PC:function(){return f.PC},kK:function(){return f.kK},n_:function(){return R},wX:function(){return h.wX},r2:function(){return i.r2},wB:function(){return h.wB},QD:function(){return s},qP:function(){return F},iB:function(){return i.iB},Up:function(){return d.Up},vw:function(){return d.vw},y8:function(){return d.y8},VL:function(){return d.VL},oN:function(){return E.oN},JZ:function(){return d.JZ},RT:function(){return D},b_:function(){return M.b_},vY:function(){return _.vY},N_:function(){return d.N_}});var r=n(7169),o=n(1935),i=n(1974),a=n(2335),s=function(e){return(0,i.bt)(e)||(0,i.F9)(e)?e.points.length<2:0===e.width&&0===e.height},l=function(e,t,n){var r=Math.abs(t),o=Math.abs(n);if("line"===e||"arrow"===e||"freedraw"===e){var i=Math.round(Math.atan(o/r)/a.ay)*a.ay;0===i?n=0:i===Math.PI/2?t=0:n=r*Math.tan(i)*Math.sign(n)||n}else"selection"!==e&&(n=r*Math.sign(n));return{width:t,height:n}},c=function(e,t,n,r){var o=n-e,i=r-t,s=Math.round(Math.atan(i/o)/a.ay)*a.ay;if(0===s)i=0;else if(s===Math.PI/2)o=0;else{var l=Math.tan(s),c=t-l*e,u=-1/l,d=r-u*n;o=(-1*d- -1*c)/(-1*l- -1*u)-e,i=(c*u-d*l)/(-1*l- -1*u)-t}return{width:o,height:i}},u=function(e){var t={width:e.width,height:e.height,x:e.x,y:e.y};if(e.width<0){var n=Math.abs(e.width);t.width=n,t.x=e.x-n}if(e.height<0){var r=Math.abs(e.height);t.height=r,t.y=e.y-r}return t},d=n(2791),p=n(8925),f=n(267),h=n(2325),m=n(2577),g=n(2726),v=["rotation"],b=function(e,t,n){return t>=e[0]&&t<=e[0]+e[2]&&n>=e[1]&&n<=e[1]+e[3]},y=function(e,t,n,r,o,i){return e.reduce((function(e,a){if(e)return e;var s=function(e,t,n,r,o,i){if(!t.selectedElementIds[e.id])return!1;var a=(0,f.PC)(e,o,i),s=a.rotation,l=(0,g.Z)(a,v);if(s&&b(s,n,r))return"rotation";var c=Object.keys(l).filter((function(e){var t=l[e];return!!t&&b(t,n,r)}));return c.length>0&&c[0]}(a,t,n,r,o,i);return s?{element:a,transformHandleType:s}:null}),null)},w=function(e,t,n,r,o){var i=(0,m.Z)(e,4),a=i[0],s=i[1],l=i[2],c=i[3],u=(0,f.kK)([a,s,l,c,(a+l)/2,(s+c)/2],0,r,o,f.ox);return Object.keys(u).find((function(e){var r=u[e];return r&&b(r,t,n)}))||!1},x=["ns","nesw","ew","nwse"],k=function(e){var t=e.element,n=e.transformHandleType,r=t&&Math.sign(t.height)*Math.sign(t.width)==-1,o=null;switch(n){case"n":case"s":o="ns";break;case"w":case"e":o="ew";break;case"nw":case"se":o=r?"nesw":"nwse";break;case"ne":case"sw":o=r?"nwse":"nesw";break;case"rotation":return"grab"}return o&&t&&(o=function(e,t){var n=x.indexOf(e);if(n>=0){var r=Math.round(t/(Math.PI/4));e=x[(n+r)%x.length]}return e}(o,t.angle)),o?"".concat(o,"-resize"):""},_=n(8634),S=n(8290),E=n(5710),P=n(242),C=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7?arguments[7]:void 0,l=(0,p.KP)(t),c=(0,m.Z)(l,2),u={x:n-c[0],y:r-c[1]};t.forEach((function(n){if(O(o,i,a,e,n,u),!n.groupIds.length||s.editingGroupId&&!(0,P.zq)(s,n)){var r=(0,E.WJ)(n);r&&O(o,i,a,e,r,u)}(0,S.Ww)(n,{simultaneouslyUpdated:t})}))},O=function(e,t,n,r,i,a){var s,l;if(e){var c=e&&t<n,u=e&&t>n,d=r.originalElements.get(i.id);s=c&&d?d.x:i.x+a.x,l=u&&d?d.y:i.y+a.y}else s=i.x+a.x,l=i.y+a.y;(0,o.DR)(i,{x:s,y:l})},j=function(e,t,n){var r=(0,p.KP)(e),o=(0,m.Z)(r,2);return[t-o[0],n-o[1]]},T=function(e,t,n,r,i,a,s,c,u,d,p){if(u&&"selection"!==e.type)if(p)c=s/p;else{if(Math.abs(a-r)>Math.abs(i-n)){var f=l(t,c,i<n?-s:s);s=f.width,c=f.height}else{var h=l(t,s,a<r?-c:c);s=h.width,c=h.height}c<0&&(c=-c)}var m=i<n?n-s:n,g=a<r?r-c:r;d&&(m=n-(s+=s)/2,g=r-(c+=c)/2),0!==s&&0!==c&&(0,o.DR)(e,{x:m,y:g,width:s,height:c})},M=n(6906),I=n(75),D=function(e,t){return Boolean(!e.viewModeEnabled&&"custom"!==e.activeTool.type&&(e.editingElement||"selection"!==e.activeTool.type&&"eraser"!==e.activeTool.type&&"hand"!==e.activeTool.type)||(0,I.eD)(t,e).length)};function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=function(e){return e.reduce((function(e,t){return e+t.version}),0)},R=function(e){return e.filter((function(e){return!e.isDeleted&&!s(e)}))},z=function(e){return e.filter((function(e){return!e.isDeleted}))},F=function(e){return!e.isDeleted},Z=function(e){return z(e).map((function(e){return(0,i.dt)(e.type)?L(L({},e),{},{lastCommittedPoint:null}):e}))},B=function(e){return Z(e)},U=function(e){return Z(e)}},6938:function(e,t,n){"use strict";n.d(t,{_:function(){return S}});var r=n(1930),o=n(7169),i=n(2577),a=n(8821),s=n(5169),l=n(6552),c=n(1047),u=n(8925),d=n(1935),p=n(1564),f=n(8290),h=n(6340),m=n(1974),g=n(6066),v=n(5710),b=n(3063),y=n(2335);function w(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 x(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 k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _={version:null,points:[],zoom:null},S=function(){function e(t,n){(0,a.Z)(this,e),this.elementId=t.id,p.Z.mapElementToScene(this.elementId,n),e.normalizePoints(t),this.selectedPointsIndices=null,this.lastUncommittedPoint=null,this.isDragging=!1,this.pointerOffset={x:0,y:0},this.startBindingElement="keep",this.endBindingElement="keep",this.pointerDownState={prevSelectedPointsIndices:null,lastClickedPoint:-1,origin:null,segmentMidpoint:{value:null,index:null,added:!1}},this.hoverPointIndex=-1,this.segmentMidPointHoveredCoords=null}return(0,s.Z)(e,null,[{key:"getElement",value:function(e){var t;return(null===(t=p.Z.getScene(e))||void 0===t?void 0:t.getNonDeletedElement(e))||null}},{key:"handleBoxSelection",value:function(t,n,r){var o;if(!n.editingLinearElement||"selection"!==(null===(o=n.draggingElement)||void 0===o?void 0:o.type))return!1;var a=n.editingLinearElement,s=a.selectedPointsIndices,l=a.elementId,u=e.getElement(l);if(!u)return!1;var d=(0,c.qf)(n.draggingElement),p=(0,i.Z)(d,4),f=p[0],h=p[1],m=p[2],g=p[3],v=e.getPointsGlobalCoordinates(u).reduce((function(e,n,r){return(n[0]>=f&&n[0]<=m&&n[1]>=h&&n[1]<=g||t.shiftKey&&null!=s&&s.includes(r))&&e.push(r),e}),[]);r({editingLinearElement:k(k({},a),{},{selectedPointsIndices:v.length?v:null})})}},{key:"handlePointDragging",value:function(t,n,r,o,a,s){if(!s)return!1;var l=s.selectedPointsIndices,c=s.elementId,u=e.getElement(c);if(!u)return!1;var d=u.points[s.pointerDownState.lastClickedPoint];if(l&&d){if((0,g.Ge)(t)&&1===l.length&&u.points.length>1){var p=l[0],f=u.points[0===p?1:p-1],b=e._getShiftLockedDelta(u,f,[r,o],n.gridSize),y=(0,i.Z)(b,2),w=y[0],x=y[1];e.movePoints(u,[{index:p,point:[w+f[0],x+f[1]],isDragging:p===s.pointerDownState.lastClickedPoint}])}else{var k=e.createPointAt(u,r-s.pointerOffset.x,o-s.pointerOffset.y,n.gridSize),_=k[0]-d[0],S=k[1]-d[1];e.movePoints(u,l.map((function(t){return{index:t,point:t===s.pointerDownState.lastClickedPoint?e.createPointAt(u,r-s.pointerOffset.x,o-s.pointerOffset.y,n.gridSize):[u.points[t][0]+_,u.points[t][1]+S],isDragging:t===s.pointerDownState.lastClickedPoint}}))),(0,v.WJ)(u)&&(0,v.RB)(u,!1)}if((0,m.Mn)(u,!1)){var E=[];0===l[0]&&E.push((0,h.AK)(e.getPointGlobalCoordinates(u,u.points[0])));var P=l[l.length-1];P===u.points.length-1&&E.push((0,h.AK)(e.getPointGlobalCoordinates(u,u.points[P]))),E.length&&a(u,E)}return!0}return!1}},{key:"handlePointerUp",value:function(t,n,r){var o,i=n.elementId,a=n.selectedPointsIndices,s=n.isDragging,c=n.pointerDownState,u=e.getElement(i);if(!u)return n;var d={};if(s&&a){var m,g=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(a);try{for(g.s();!(m=g.n()).done;){var v=m.value;if(0===v||v===u.points.length-1){(0,l.g6)(u.points,r.zoom.value)&&e.movePoints(u,[{index:v,point:0===v?u.points[u.points.length-1]:u.points[0]}]);var b=(0,f.N1)(r)?(0,f.Y9)((0,h.AK)(e.getPointAtIndexGlobalCoordinates(u,v)),p.Z.getScene(u)):null;d[0===v?"startBindingElement":"endBindingElement"]=b}}}catch(e){g.e(e)}finally{g.f()}}return k(k(k({},n),d),{},{selectedPointsIndices:s||t.shiftKey?!s&&t.shiftKey&&null!==(o=c.prevSelectedPointsIndices)&&void 0!==o&&o.includes(c.lastClickedPoint)?a&&a.filter((function(e){return e!==c.lastClickedPoint})):a:null!=a&&a.includes(c.lastClickedPoint)?[c.lastClickedPoint]:a,isDragging:!1,pointerOffset:{x:0,y:0}})}},{key:"isSegmentTooShort",value:function(t,n,r,o){var i=(0,l.LW)(n[0],n[1],r[0],r[1]);return t.points.length>2&&t.roundness&&(i=(0,l.eH)(t,r)),i*o.value<4*e.POINT_HANDLE_SIZE}},{key:"getSegmentMidPoint",value:function(t,n,r,o){var a=(0,l.H5)(n,r);if(t.points.length>2&&t.roundness){var s=(0,l.yB)(t,t.points[o]);if(s){var c=(0,l.lk)(t,t.points[o],.5),u=(0,l.N_)(s[0],s[1],s[2],s[3],c),d=(0,i.Z)(u,2),p=d[0],f=d[1];a=e.getPointGlobalCoordinates(t,[p,f])}}return a}},{key:"getSegmentMidPointIndex",value:function(t,n,r){var o=e.getElement(t.elementId);if(!o)return-1;for(var i=e.getEditorMidPoints(o,n),a=0;a<i.length;){if(e.arePointsEqual(r,i[a]))return a+1;a++}return-1}},{key:"handlePointerDown",value:function(t,n,o,a,s){var u,h={didAddPoint:!1,hitElement:null,linearElementEditor:null};if(!s)return h;var g=s.elementId,v=e.getElement(g);if(!v)return h;var b=e.getSegmentMidpointHitCoords(s,a,n),y=null;if(b&&(y=e.getSegmentMidPointIndex(s,n,b)),t.altKey&&n.editingLinearElement)return null==s.lastUncommittedPoint&&((0,d.DR)(v,{points:[].concat((0,r.Z)(v.points),[e.createPointAt(v,a.x,a.y,n.gridSize)])}),h.didAddPoint=!0),o.resumeRecording(),h.linearElementEditor=k(k({},s),{},{pointerDownState:{prevSelectedPointsIndices:s.selectedPointsIndices,lastClickedPoint:-1,origin:{x:a.x,y:a.y},segmentMidpoint:{value:b,index:y,added:!1}},selectedPointsIndices:[v.points.length-1],lastUncommittedPoint:null,endBindingElement:(0,f.Y9)(a,p.Z.getScene(v))}),h.didAddPoint=!0,h;var w=e.getPointIndexUnderCursor(v,n.zoom,a.x,a.y);if(w>=0||b)h.hitElement=v;else{var x=s.startBindingElement,_=s.endBindingElement;(0,f.N1)(n)&&(0,m.Mn)(v)&&(0,f.HG)(v,x,_)}var S=(0,c.qf)(v),P=(0,i.Z)(S,4),C=P[0],O=P[1],j=(C+P[2])/2,T=(O+P[3])/2,M=w>-1&&(0,l.U1)(v.x+v.points[w][0],v.y+v.points[w][1],j,T,v.angle),I=w>-1||t.shiftKey?t.shiftKey||null!==(u=s.selectedPointsIndices)&&void 0!==u&&u.includes(w)?E([].concat((0,r.Z)(s.selectedPointsIndices||[]),[w])):[w]:null;return h.linearElementEditor=k(k({},s),{},{pointerDownState:{prevSelectedPointsIndices:s.selectedPointsIndices,lastClickedPoint:w,origin:{x:a.x,y:a.y},segmentMidpoint:{value:b,index:y,added:!1}},selectedPointsIndices:I,pointerOffset:M?{x:a.x-M[0],y:a.y-M[1]}:{x:0,y:0}}),h}},{key:"arePointsEqual",value:function(e,t){return!e&&!t||!(!e||!t)&&(0,l.Jj)(e,t)}},{key:"handlePointerMove",value:function(t,n,r,o){if(!o.editingLinearElement)return null;var a=o.editingLinearElement,s=a.elementId,l=a.lastUncommittedPoint,c=e.getElement(s);if(!c)return o.editingLinearElement;var u,d=c.points,p=d[d.length-1];if(!t.altKey)return p===l&&e.deletePoints(c,[d.length-1]),k(k({},o.editingLinearElement),{},{lastUncommittedPoint:null});if((0,g.Ge)(t)&&d.length>=2){var f=d[d.length-2],h=e._getShiftLockedDelta(c,f,[n,r],o.gridSize),m=(0,i.Z)(h,2),v=m[0],b=m[1];u=[v+f[0],b+f[1]]}else u=e.createPointAt(c,n-o.editingLinearElement.pointerOffset.x,r-o.editingLinearElement.pointerOffset.y,o.gridSize);return p===l?e.movePoints(c,[{index:c.points.length-1,point:u}]):e.addPoints(c,o,[{point:u}]),k(k({},o.editingLinearElement),{},{lastUncommittedPoint:c.points[c.points.length-1]})}},{key:"getPointGlobalCoordinates",value:function(e,t){var n=(0,c.qf)(e),r=(0,i.Z)(n,4),o=r[0],a=r[1],s=(o+r[2])/2,u=(a+r[3])/2,d=e.x,p=e.y,f=(0,l.U1)(d+t[0],p+t[1],s,u,e.angle),h=(0,i.Z)(f,2);return[d=h[0],p=h[1]]}},{key:"getPointsGlobalCoordinates",value:function(e){var t=(0,c.qf)(e),n=(0,i.Z)(t,4),r=n[0],o=n[1],a=n[2],s=n[3],u=(r+a)/2,d=(o+s)/2;return e.points.map((function(t){var n=e.x,r=e.y,o=(0,l.U1)(n+t[0],r+t[1],u,d,e.angle),a=(0,i.Z)(o,2);return[n=a[0],r=a[1]]}))}},{key:"getPointAtIndexGlobalCoordinates",value:function(e,t){var n=t<0?e.points.length+t:t,r=(0,c.qf)(e),o=(0,i.Z)(r,4),a=o[0],s=o[1],u=(a+o[2])/2,d=(s+o[3])/2,p=e.points[n],f=e.x,h=e.y;return p?(0,l.U1)(f+p[0],h+p[1],u,d,e.angle):(0,l.U1)(f,h,u,d,e.angle)}},{key:"pointFromAbsoluteCoords",value:function(e,t){var n=(0,c.qf)(e),r=(0,i.Z)(n,4),o=r[0],a=r[1],s=(o+r[2])/2,u=(a+r[3])/2,d=(0,l.U1)(t[0],t[1],s,u,-e.angle),p=(0,i.Z)(d,2),f=p[0],h=p[1];return[f-e.x,h-e.y]}},{key:"getPointIndexUnderCursor",value:function(t,n,r,o){for(var i=e.getPointsGlobalCoordinates(t),a=i.length;--a>-1;){var s=i[a];if((0,l.LW)(r,o,s[0],s[1])*n.value<e.POINT_HANDLE_SIZE+1)return a}return-1}},{key:"createPointAt",value:function(e,t,n,r){var o=(0,l.wC)(t,n,r),a=(0,c.qf)(e),s=(0,i.Z)(a,4),u=s[0],d=s[1],p=(u+s[2])/2,f=(d+s[3])/2,h=(0,l.U1)(o[0],o[1],p,f,-e.angle),m=(0,i.Z)(h,2),g=m[0],v=m[1];return[g-e.x,v-e.y]}},{key:"getNormalizedPoints",value:function(e){var t=e.points,n=t[0][0],r=t[0][1];return{points:t.map((function(e,t){return[e[0]-n,e[1]-r]})),x:e.x+n,y:e.y+r}}},{key:"normalizePoints",value:function(t){(0,d.DR)(t,e.getNormalizedPoints(t))}},{key:"duplicateSelectedPoints",value:function(t){if(!t.editingLinearElement)return!1;var n=t.editingLinearElement,r=n.selectedPointsIndices,o=n.elementId,i=e.getElement(o);if(!i||null===r)return!1;var a=i.points,s=[],l=!1,c=-1,u=a.reduce((function(e,t,n){if(++c,e.push(t),r.includes(n)){var o=a[n+1];o||(l=!0),e.push(o?[(t[0]+o[0])/2,(t[1]+o[1])/2]:[t[0],t[1]]),s.push(c+1),++c}return e}),[]);if((0,d.DR)(i,{points:u}),l){var p=i.points[i.points.length-1];e.movePoints(i,[{index:i.points.length-1,point:[p[0]+30,p[1]+30]}])}return{appState:k(k({},t),{},{editingLinearElement:k(k({},t.editingLinearElement),{},{selectedPointsIndices:s})})}}},{key:"deletePoints",value:function(t,n){var r=0,o=0;if(n.includes(0)){var i=t.points.find((function(e,t){return!n.includes(t)}));i&&(r=i[0],o=i[1])}var a=t.points.reduce((function(e,t,i){return n.includes(i)||e.push(e.length?[t[0]-r,t[1]-o]:[0,0]),e}),[]);e._updatePoints(t,a,r,o)}},{key:"addPoints",value:function(t,n,o){var i=[].concat((0,r.Z)(t.points),(0,r.Z)(o.map((function(e){return e.point}))));e._updatePoints(t,i,0,0)}},{key:"movePoints",value:function(t,n,r){var o=t.points,i=0,a=0,s=n.find((function(e){return 0===e.index}));s&&(i=s.point[0]+o[s.index][0],a=s.point[1]+o[s.index][1]);var l=o.map((function(e,t){var r=n.find((function(e){return e.index===t}));if(r){if(s)return e;var l=r.point[0]-o[r.index][0],c=r.point[1]-o[r.index][1];return[e[0]+l,e[1]+c]}return i||a?[e[0]-i,e[1]-a]:e}));e._updatePoints(t,l,i,a,r)}},{key:"shouldAddMidpoint",value:function(t,n,r){if(!e.getElement(t.elementId))return!1;var o=t.pointerDownState.segmentMidpoint;if(o.added||null===o.value||null===o.index||null===t.pointerDownState.origin)return!1;var i=t.pointerDownState.origin,a=(0,l.LW)(i.x,i.y,n.x,n.y);return!(!r.editingLinearElement&&a<y.f/r.zoom.value)}},{key:"addMidpoint",value:function(t,n,o){var i=e.getElement(t.elementId);if(i){var a=t.pointerDownState.segmentMidpoint,s={pointerDownState:t.pointerDownState,selectedPointsIndices:t.selectedPointsIndices},l=e.createPointAt(i,n.x,n.y,o.gridSize),c=[].concat((0,r.Z)(i.points.slice(0,a.index)),[l],(0,r.Z)(i.points.slice(a.index)));return(0,d.DR)(i,{points:c}),s.pointerDownState=k(k({},t.pointerDownState),{},{segmentMidpoint:k(k({},t.pointerDownState.segmentMidpoint),{},{added:!0}),lastClickedPoint:a.index}),s.selectedPointsIndices=[a.index],s}}},{key:"_updatePoints",value:function(e,t,n,r,o){var i=(0,u.Ut)(e,t),a=(0,u.Ut)(e,e.points),s=(i[0]+i[2])/2,c=(i[1]+i[3])/2,p=(a[0]+a[2])/2-s,f=(a[1]+a[3])/2-c,h=(0,l.U1)(n,r,p,f,e.angle);(0,d.DR)(e,k(k({},o),{},{points:t,x:e.x+h[0],y:e.y+h[1]}))}},{key:"_getShiftLockedDelta",value:function(t,n,r,o){var a=e.getPointGlobalCoordinates(t,n),s=(0,l.wC)(r[0],r[1],o),u=(0,i.Z)(s,2),d=u[0],p=u[1],f=(0,c.o4)(a[0],a[1],d,p),h=f.width,m=f.height;return(0,l.xj)([h,m],[0,0],-t.angle)}}]),e}();S.POINT_HANDLE_SIZE=10,S.getEditorMidPoints=function(e,t){var n=(0,v.WJ)(e);return!t.editingLinearElement&&e.points.length>2&&!n?[]:(_.version===e.version&&_.zoom===t.zoom.value||S.updateEditorMidPointsCache(e,t),_.points)},S.updateEditorMidPointsCache=function(e,t){for(var n=S.getPointsGlobalCoordinates(e),r=0,o=[];r<n.length-1;)if(S.isSegmentTooShort(e,e.points[r],e.points[r+1],t.zoom))o.push(null),r++;else{var i=S.getSegmentMidPoint(e,n[r],n[r+1],r+1);o.push(i),r++}_.points=o,_.version=e.version,_.zoom=t.zoom.value},S.getSegmentMidpointHitCoords=function(e,t,n){var r=e.elementId,o=S.getElement(r);if(!o)return null;if(S.getPointIndexUnderCursor(o,n.zoom,t.x,t.y)>=0)return null;if(S.getPointsGlobalCoordinates(o).length>=3&&!n.editingLinearElement)return null;var i=S.POINT_HANDLE_SIZE/n.zoom.value,a=e.segmentMidPointHoveredCoords;if(a&&(0,l.LW)(a[0],a[1],t.x,t.y)<=i)return a;for(var s=0,c=S.getEditorMidPoints(o,n);s<c.length;){if(null!==c[s]&&(0,l.LW)(c[s][0],c[s][1],t.x,t.y)<=i)return c[s];s++}return null},S.getBoundTextElementPosition=function(e,t){var n=S.getPointsGlobalCoordinates(e);n.length<2&&(0,d.DR)(t,{isDeleted:!0});var r=0,o=0;if(e.points.length%2==1){var i=Math.floor(e.points.length/2),a=S.getPointGlobalCoordinates(e,e.points[i]);r=a[0]-t.width/2,o=a[1]-t.height/2}else{var s=e.points.length/2-1,c=_.points[s];2===e.points.length&&(c=(0,l.H5)(n[0],n[1])),c&&_.version===e.version||(c=S.getSegmentMidPoint(e,n[s],n[s+1],s+1)),r=c[0]-t.width/2,o=c[1]-t.height/2}return{x:r,y:o}},S.getMinMaxXYWithBoundText=function(e,t,n){var r=(0,i.Z)(t,4),o=r[0],a=r[1],s=r[2],c=r[3],u=(o+s)/2,d=(a+c)/2,p=S.getBoundTextElementPosition(e,n),f=p.x,h=p.y,m=f+n.width,g=h+n.height,v=(0,l.xj)([o,a],[u,d],e.angle),b=(0,l.xj)([s,a],[u,d],e.angle),y=(0,l.xj)([f,h],[u,d],-e.angle),w=(0,l.xj)([m,h],[u,d],-e.angle),x=(0,l.xj)([f,g],[u,d],-e.angle),k=(0,l.xj)([m,g],[u,d],-e.angle);return v[0]<b[0]&&v[1]>=b[1]?(o=Math.min(o,x[0]),s=Math.max(s,Math.max(w[0],k[0])),a=Math.min(a,y[1]),c=Math.max(c,k[1])):v[0]>=b[0]&&v[1]>b[1]?(o=Math.min(o,k[0]),s=Math.max(s,Math.max(y[0],w[0])),a=Math.min(a,x[1]),c=Math.max(c,w[1])):v[0]>=b[0]?(o=Math.min(o,w[0]),s=Math.max(s,x[0]),a=Math.min(a,k[1]),c=Math.max(c,y[1])):v[1]<=b[1]&&(o=Math.min(o,Math.min(w[0],y[0])),s=Math.max(s,k[0]),a=Math.min(a,w[1]),c=Math.max(c,x[1])),[o,a,s,c,u,d]},S.getElementAbsoluteCoords=function(e){var t,n,r,o,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.points.length<2||!(0,b.R2)(e)){var l=e.points.reduce((function(e,t){var n=(0,i.Z)(t,2),r=n[0],o=n[1];return e.minY=Math.min(e.minY,o),e.minX=Math.min(e.minX,r),e.maxX=Math.max(e.maxX,r),e.maxY=Math.max(e.maxY,o),e}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}),c=l.minX,d=l.minY,p=l.maxX,f=l.maxY;n=c+e.x,r=d+e.y,o=p+e.x,a=f+e.y}else{var h=(0,b.R2)(e),m=(0,u.CM)(h[0]),g=(0,u.IX)(m),y=(0,i.Z)(g,4),w=y[0],x=y[1],k=y[2],_=y[3];n=w+e.x,r=x+e.y,o=k+e.x,a=_+e.y}if(t=[n,r,o,a,(n+o)/2,(r+a)/2],!s)return t;var E=(0,v.WJ)(e);return E&&(t=S.getMinMaxXYWithBoundText(e,[n,r,o,a],E)),t};var E=function(e){var t=(0,r.Z)(new Set(e.filter((function(e){return null!==e&&-1!==e}))));return(t=t.sort((function(e,t){return e-t}))).length?t:null}},1935:function(e,t,n){"use strict";n.d(t,{BE:function(){return f},DR:function(){return p},ZP:function(){return h}});var r=n(6655),o=n(7169),i=n(3063),a=n(1564),s=n(5001),l=n(6954),c=n(6340);function u(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e,t){var n,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=!1,p=t,f=p.points,h=p.fileId;for(var m in void 0!==f&&(t=d(d({},(0,s.k)(f)),t)),t){var g=t[m];if(void 0!==g){if(e[m]===g&&("object"!==(0,r.Z)(g)||null===g||"groupIds"===m||"scale"===m))continue;if("scale"===m){var v=e[m],b=g;if(v[0]===b[0]&&v[1]===b[1])continue}else if("points"===m){var y=e[m],w=g;if(y.length===w.length){for(var x=!1,k=y.length;--k;){var _=y[k],S=w[k];if(_[0]!==S[0]||_[1]!==S[1]){x=!0;break}}if(!x)continue}}e[m]=g,u=!0}}return u?(void 0===t.height&&void 0===t.width&&void 0===h&&void 0===f||(0,i.bI)(e),e.version++,e.versionNonce=(0,l.LU)(),e.updated=(0,c.C3)(),o&&(null===(n=a.Z.getScene(e))||void 0===n||n.informMutation()),e):e},f=function(e,t){var n=!1;for(var o in t){var i=t[o];if(void 0!==i){if(e[o]===i&&("object"!==(0,r.Z)(i)||null===i))continue;n=!0}}return n?d(d(d({},e),t),{},{updated:(0,c.C3)(),version:e.version+1,versionNonce:(0,l.LU)()}):e},h=function(e,t){return e.version=(null!=t?t:e.version)+1,e.versionNonce=(0,l.LU)(),e.updated=(0,c.C3)(),e}},2791:function(e,t,n){"use strict";n.d(t,{JZ:function(){return P},KE:function(){return O},N_:function(){return C},OL:function(){return I},Sy:function(){return A},Up:function(){return k},VL:function(){return S},_N:function(){return L},vw:function(){return T},y8:function(){return j}});var r=n(6655),o=n(2577),i=n(7169),a=n(2726),s=n(6340),l=n(6954),c=n(1935),u=n(242),d=n(1047),p=n(6552),f=n(8925),h=n(5710),m=n(2335),g=n(1974),v=["x","y","strokeColor","backgroundColor","fillStyle","strokeWidth","strokeStyle","roughness","opacity","width","height","angle","groupIds","roundness","boundElements","link","locked"];function b(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 y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(e,t){var n,r,o=t.x,i=t.y,c=t.strokeColor,u=void 0===c?m.HN.strokeColor:c,d=t.backgroundColor,p=void 0===d?m.HN.backgroundColor:d,f=t.fillStyle,h=void 0===f?m.HN.fillStyle:f,g=t.strokeWidth,b=void 0===g?m.HN.strokeWidth:g,y=t.strokeStyle,w=void 0===y?m.HN.strokeStyle:y,x=t.roughness,k=void 0===x?m.HN.roughness:x,_=t.opacity,S=void 0===_?m.HN.opacity:_,E=t.width,P=void 0===E?0:E,C=t.height,O=void 0===C?0:C,j=t.angle,T=void 0===j?0:j,M=t.groupIds,I=void 0===M?[]:M,D=t.roundness,A=void 0===D?null:D,L=t.boundElements,N=void 0===L?null:L,R=t.link,z=void 0===R?null:R,F=t.locked,Z=void 0===F?m.HN.locked:F,B=(0,a.Z)(t,v);return{id:B.id||(0,l.kb)(),type:e,x:o,y:i,width:P,height:O,angle:T,strokeColor:u,backgroundColor:p,fillStyle:h,strokeWidth:b,strokeStyle:w,roughness:k,opacity:S,groupIds:I,roundness:A,seed:null!==(n=B.seed)&&void 0!==n?n:(0,l.LU)(),version:B.version||1,versionNonce:null!==(r=B.versionNonce)&&void 0!==r?r:0,isDeleted:!1,boundElements:N,updated:(0,s.C3)(),link:z,locked:Z}},k=function(e){return x(e.type,e)},_=function(e,t){return{x:"center"===e.textAlign?t.width/2:"right"===e.textAlign?t.width:0,y:"middle"===e.verticalAlign?t.height/2:0}},S=function(e){var t=e.fontFamily||m.rk,n=e.fontSize||m.n5,r=e.lineHeight||(0,h.PT)(t),o=(0,h.bG)(e.text),i=(0,h.X1)(o,(0,s.mO)({fontFamily:t,fontSize:n}),r),a=e.textAlign||m.Hg,l=e.verticalAlign||m.hs,u=_({textAlign:a,verticalAlign:l},i);return(0,c.BE)(w(w({},x("text",e)),{},{text:o,fontSize:n,fontFamily:t,textAlign:a,verticalAlign:l,x:e.x-u.x,y:e.y-u.y,width:i.width,height:i.height,baseline:i.baseline,containerId:e.containerId||null,originalText:o,lineHeight:r}),{})},E=function(e,t){var n,r,i=(0,h.tl)(e),a=(0,h.X1)(t,(0,s.mO)(e),e.lineHeight),l=a.width,u=a.height,v=a.baseline,b=e.textAlign,y=e.verticalAlign;if("center"!==b||y!==m.oX.MIDDLE||e.containerId){var w=(0,d.qf)(e),x=(0,o.Z)(w,4),k=x[0],S=x[1],E=x[2],P=x[3],C=(0,f.wC)(e,l,u,!1),O=(0,o.Z)(C,4),j=(k-O[0])/2,T=(S-O[1])/2,M=(E-O[2])/2,I=(P-O[3])/2,D=(0,p.yq)({s:!0,e:"center"===b||"left"===b,w:"center"===b||"right"===b},e.x,e.y,e.angle,j,T,M,I),A=(0,o.Z)(D,2);n=A[0],r=A[1]}else{var L=(0,h.X1)(e.text,(0,s.mO)(e),e.lineHeight),N=_(e,{width:l-L.width,height:u-L.height});n=e.x-N.x,r=e.y-N.y}if(i){var R=(0,h.S)(e),z=(0,h.HE)(i),F=z.height,Z=z.width;u>F-2*R&&(F=u+2*R),l>Z-2*R&&(Z=l+2*R),(0,g.Yv)(i)||F===z.height&&Z===z.width||(0,c.DR)(i,{height:F,width:Z})}return{width:l,height:u,baseline:v,x:Number.isFinite(n)?n:e.x,y:Number.isFinite(r)?r:e.y}},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.text;if(!e.isDeleted){var n=(0,h.tl)(e);return n&&(t=(0,h.lD)(t,(0,s.mO)(e),(0,h.jd)(n))),w({text:t},E(e,t))}},C=function(e,t){t.text;var n=t.isDeleted,r=t.originalText;return(0,c.BE)(e,w({originalText:r,isDeleted:null!=n?n:e.isDeleted},P(e,r)))},O=function(e){return w(w({},x(e.type,e)),{},{points:e.points||[],pressures:[],simulatePressure:e.simulatePressure,lastCommittedPoint:null})},j=function(e){return w(w({},x(e.type,e)),{},{points:e.points||[],lastCommittedPoint:null,startBinding:null,endBinding:null,startArrowhead:e.startArrowhead,endArrowhead:e.endArrowhead})},T=function(e){var t,n,r;return w(w({},x("image",e)),{},{strokeColor:"transparent",status:null!==(t=e.status)&&void 0!==t?t:"pending",fileId:null!==(n=e.fileId)&&void 0!==n?n:null,scale:null!==(r=e.scale)&&void 0!==r?r:[1,1]})},M=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(null==t||"object"!==(0,r.Z)(t))return t;if("[object Object]"===Object.prototype.toString.call(t)){var o="function"==typeof t.constructor?Object.create(Object.getPrototypeOf(t)):{};for(var i in t)if(t.hasOwnProperty(i)){if(0===n&&("shape"===i||"canvas"===i))continue;o[i]=e(t[i],n+1)}return o}if(Array.isArray(t)){for(var a=t.length,s=new Array(a);a--;)s[a]=e(t[a],n+1);return s}return t},I=function(e){return M(e)},D=function(e){if((0,s.h2)()&&e){var t,n,r="".concat(e,"_copy");return null!==(t=window.h)&&void 0!==t&&null!==(n=t.app)&&void 0!==n&&n.getSceneElementsIncludingDeleted().find((function(e){return e.id===r}))&&(r+="_copy"),r}return(0,l.kb)()},A=function(e,t,n,r){var o=I(n);return o.id=D(o.id),o.boundElements=null,o.updated=(0,s.C3)(),o.seed=(0,l.LU)(),o.groupIds=(0,u.Qy)(o.groupIds,e,(function(e){return t.has(e)||t.set(e,D(e)),t.get(e)})),r&&(o=Object.assign(o,r)),o},L=function(e){var t,n=[],r=(0,s.xn)(e),o=new Map,i=function(e){if(o.has(e))return o.get(e);if(r.has(e)){var t=D(e);return o.set(e,t),t}return null},a=new Map,l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{for(l.s();!(t=l.n()).done;){var c=t.value,u=M(c);if(u.id=i(c.id),u.groupIds&&(u.groupIds=u.groupIds.map((function(e){return a.has(e)||a.set(e,D(e)),a.get(e)}))),"containerId"in u&&u.containerId){var d=i(u.containerId);u.containerId=d}if("boundElements"in u&&u.boundElements&&(u.boundElements=u.boundElements.reduce((function(e,t){var n=i(t.id);return n&&e.push(w(w({},t),{},{id:n})),e}),[])),"endBinding"in u&&u.endBinding){var p=i(u.endBinding.elementId);u.endBinding=p?w(w({},u.endBinding),{},{elementId:p}):null}if("startBinding"in u&&u.startBinding){var f=i(u.startBinding.elementId);u.startBinding=f?w(w({},u.startBinding),{},{elementId:f}):null}n.push(u)}}catch(e){l.e(e)}finally{l.f()}return n}},8634:function(e,t,n){"use strict";n.d(t,{LW:function(){return b},T:function(){return C},l2:function(){return _},vY:function(){return y},xx:function(){return P}});var r=n(1930),o=n(7169),i=n(2577),a=n(2335),s=n(5001),l=n(6552),c=n(8925),u=n(1974),d=n(1935),p=n(6340),f=n(8290),h=n(1564),m=n(5710);function g(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e){return e>=2*Math.PI?e-2*Math.PI:e},y=function(e,t,n,r,o,a,s,l,c,d,p){if(1===n.length){var h=(0,i.Z)(n,1)[0];return"rotation"===t?(w(h,l,c,o,e.originalElements),(0,f.Ww)(h)):!(0,u.iB)(h)||"nw"!==t&&"ne"!==t&&"sw"!==t&&"se"!==t?t&&_(e.originalElements,s,h,t,a,l,c):(k(h,t,a,l,c),(0,f.Ww)(h)),!0}if(n.length>1){if("rotation"===t)return E(e,n,l,c,o,d,p),!0;if("nw"===t||"ne"===t||"sw"===t||"se"===t)return S(e,n,t,a,l,c),!0}return!1},w=function(e,t,n,r,o){var s=(0,c.qf)(e),l=(0,i.Z)(s,4),p=l[0],f=l[1],g=(p+l[2])/2,v=(f+l[3])/2,y=5*Math.PI/2+Math.atan2(n-v,t-g);r&&(y+=a.ay/2,y-=y%a.ay),y=b(y);var w=(0,m.xB)(e);if((0,d.DR)(e,{angle:y}),w){var x,k=null===(x=h.Z.getScene(e))||void 0===x?void 0:x.getElement(w);k&&!(0,u.Yv)(e)&&(0,d.DR)(k,{angle:y})}},x=function(e,t,n){var r=e.width;if((0,u.Xh)(e)){var o=(0,m.tl)(e);o&&(r=(0,m.jd)(o))}var i=e.fontSize*(t/r);if(i<1)return null;var a=(0,m.X1)(e.text,(0,p.mO)({fontSize:i,fontFamily:e.fontFamily}),e.lineHeight);return{size:i,baseline:a.baseline+(n-a.height)}},k=function(e,t,n,r,o){var a,s=(0,c.qf)(e),u=(0,i.Z)(s,4),p=u[0],f=u[1],h=u[2],m=u[3],g=(p+h)/2,v=(f+m)/2,b=(0,l.U1)(r,o,g,v,-e.angle),y=(0,i.Z)(b,2),w=y[0],k=y[1];switch(t){case"se":a=Math.max((w-p)/(h-p),(k-f)/(m-f));break;case"nw":a=Math.max((h-w)/(h-p),(m-k)/(m-f));break;case"ne":a=Math.max((w-p)/(h-p),(m-k)/(m-f));break;case"sw":a=Math.max((h-w)/(h-p),(k-f)/(m-f))}if(a>0){var _=e.width*a,S=e.height*a,E=x(e,_,S);if(null===E)return;var P=(0,c.wC)(e,_,S,!1),C=(0,i.Z)(P,4),O=(p-C[0])/2,j=(f-C[1])/2,T=(h-C[2])/2,M=(m-C[3])/2,I=(0,l.yq)(function(e,t){return{n:/^(n|ne|nw)$/.test(e)||t&&/^(s|se|sw)$/.test(e),s:/^(s|se|sw)$/.test(e)||t&&/^(n|ne|nw)$/.test(e),w:/^(w|nw|sw)$/.test(e)||t&&/^(e|ne|se)$/.test(e),e:/^(e|ne|se)$/.test(e)||t&&/^(w|nw|sw)$/.test(e)}}(t,n),e.x,e.y,e.angle,O,j,T,M),D=(0,i.Z)(I,2),A=D[0],L=D[1];(0,d.DR)(e,{fontSize:E.size,width:_,height:S,baseline:E.baseline,x:A,y:L})}},_=function(e,t,n,o,a,h,g){var b=e.get(n.id),y=(0,c.wC)(b,b.width,b.height,!0),w=(0,i.Z)(y,4),k=[w[0],w[1]],_=[w[2],w[3]],S=(0,l.H5)(k,_),E=(0,l.xj)([h,g],S,-b.angle),P=(0,c.wC)(n,n.width,n.height,!0),C=(0,i.Z)(P,4),O=C[0],j=C[1],T=C[2]-O,M=C[3]-j,I=(_[0]-k[0])/T,D=(_[1]-k[1])/M,A={},L=(0,m.WJ)(n);o.includes("e")&&(I=(E[0]-k[0])/T),o.includes("s")&&(D=(E[1]-k[1])/M),o.includes("w")&&(I=(_[0]-E[0])/T),o.includes("n")&&(D=(_[1]-E[1])/M);var N=b.width,R=b.height,z=n.width*I,F=n.height*D;if(a&&(z=2*z-N,F=2*F-R),t){var Z=Math.abs(z)/N,B=Math.abs(F)/R;if(1===o.length&&(F*=Z,z*=B),2===o.length){var U=Math.max(Z,B);z=N*U*Math.sign(z),F=R*U*Math.sign(F)}}if(L){var W=e.get(L.id);if(W&&(A={fontSize:W.fontSize,baseline:W.baseline}),t){var H=v(v({},n),{},{width:z,height:F}),K=x(L,(0,m.jd)(H),(0,m.N2)(H));if(null===K)return;A={fontSize:K.size,baseline:K.baseline}}else{var V=(0,m.AT)((0,p.mO)(L),L.lineHeight),Y=(0,m.w_)(L.fontSize,L.lineHeight);z=Math.ceil(Math.max(z,V)),F=Math.ceil(Math.max(F,Y))}}var G=(0,c.wC)(b,z,F,!0),q=(0,i.Z)(G,4),X=q[0],$=q[1],J=q[2],Q=q[3],ee=J-X,te=Q-$,ne=[].concat(k);if(["n","w","nw"].includes(o)&&(ne=[_[0]-Math.abs(ee),_[1]-Math.abs(te)]),"ne"===o){var re=[k[0],_[1]];ne=[re[0],re[1]-Math.abs(te)]}if("sw"===o){var oe=[_[0],k[1]];ne=[oe[0]-Math.abs(ee),oe[1]]}t&&(["s","n"].includes(o)&&(ne[0]=S[0]-ee/2),["e","w"].includes(o)&&(ne[1]=S[1]-te/2)),z<0&&(o.includes("e")&&(ne[0]-=Math.abs(ee)),o.includes("w")&&(ne[0]+=Math.abs(ee))),F<0&&(o.includes("s")&&(ne[1]-=Math.abs(te)),o.includes("n")&&(ne[1]+=Math.abs(te))),a&&(ne[0]=S[0]-Math.abs(ee)/2,ne[1]=S[1]-Math.abs(te)/2);var ie,ae,se=b.angle,le=(0,l.xj)(ne,S,se),ce=[ne[0]+Math.abs(ee)/2,ne[1]+Math.abs(te)/2],ue=(0,l.xj)(ce,S,se);ne=(0,l.xj)(le,ue,-se),((0,u.bt)(n)||(0,u.F9)(n))&&(ie=(0,s.z)(1,F,b.points,!0),ae=(0,s.z)(0,z,ie,!0));var de=(0,r.Z)(ne);de[0]+=b.x-X,de[1]+=b.y-$;var pe={width:Math.abs(z),height:Math.abs(F),x:de[0],y:de[1],points:ae};"scale"in n&&"scale"in b&&(0,d.DR)(n,{scale:[(Math.sign(J-b.x)||b.scale[0])*b.scale[0],(Math.sign(Q-b.y)||b.scale[1])*b.scale[1]]}),0!==pe.width&&0!==pe.height&&Number.isFinite(pe.x)&&Number.isFinite(pe.y)&&((0,f.Ww)(n,{newSize:{width:pe.width,height:pe.height}}),(0,d.DR)(n,pe),L&&null!=A&&(0,d.DR)(L,{fontSize:A.fontSize,baseline:A.baseline}),(0,m.RB)(n,o))},S=function(e,t,n,r,o,a){var l=t.reduce((function(t,n){var r=e.originalElements.get(n.id);return r&&t.push({orig:r,latest:n}),t}),[]),p=(0,c.v2)(l.map((function(e){return e.orig}))),h=p.minX,g=p.minY,b=p.maxX,y=p.maxY,w=p.midX,k=p.midY,_=n,S=r?[w,k]:{ne:[h,y],se:[h,g],sw:[b,g],nw:[b,y]}[_],E=(0,i.Z)(S,2),P=E[0],C=E[1],O={ne:[o>=P,a<=C],se:[o>=P,a>=C],sw:[o<=P,a>=C],nw:[o<=P,a<=C]}[_].map((function(e){return e?1:-1})),j=(0,i.Z)(O,2),T=j[0],M=j[1];if(!(T<0&&M<0)){var I=Math.max(T*Math.abs(o-P)/(b-h),M*Math.abs(a-C)/(y-g))*(r?2:1);0!==I&&l.forEach((function(e){var t=e.orig.width*I,r=e.orig.height*I,o=P+(e.orig.x-P)*I,i=C+(e.orig.y-C)*I,a=function(e,t,n,r){return(0,u.bt)(e)||(0,u.F9)(e)?{points:(0,s.z)(0,t,(0,s.z)(1,n,e.points,false),false)}:{}}(e.orig,t,r),l=v({width:t,height:r,x:o,y:i},a),c=null,p=(0,m.WJ)(e.latest);if(p||(0,u.iB)(e.orig)){var h=v(v({},e.latest),{},{width:t,height:r}),g=x(null!=p?p:e.orig,p?(0,m.jd)(h):h.width,p?(0,m.N2)(h):h.height);if(!g)return;(0,u.iB)(e.orig)&&(l.fontSize=g.size,l.baseline=g.baseline),p&&(c={fontSize:g.size,baseline:g.baseline})}(0,f.Ww)(e.latest,{newSize:{width:t,height:r}}),(0,d.DR)(e.latest,l),p&&c&&((0,d.DR)(p,c),(0,m.RB)(e.latest,n))}))}},E=function(e,t,n,r,o,s,p){var f=5*Math.PI/2+Math.atan2(r-p,n-s);o&&(f+=a.ay/2,f-=f%a.ay),t.forEach((function(t){var n,r,o=(0,c.qf)(t),a=(0,i.Z)(o,4),g=a[0],v=a[1],y=(g+a[2])/2,w=(v+a[3])/2,x=null!==(n=null===(r=e.originalElements.get(t.id))||void 0===r?void 0:r.angle)&&void 0!==n?n:t.angle,k=(0,l.U1)(y,w,s,p,f+x-t.angle),_=(0,i.Z)(k,2),S=_[0],E=_[1];(0,d.DR)(t,{x:t.x+(S-y),y:t.y+(E-w),angle:b(f+x)});var P=(0,m.xB)(t);if(P){var C,O=null===(C=h.Z.getScene(t))||void 0===C?void 0:C.getElement(P);O&&!(0,u.Yv)(t)&&(0,d.DR)(O,{x:O.x+(S-y),y:O.y+(E-w),angle:b(f+x)})}}))},P=function(e,t,n,r){var o=1===t.length?(0,c.qf)(t[0]):(0,c.KP)(t),a=(0,i.Z)(o,4),s=a[0],u=a[1],d=a[2],p=a[3],f=(s+d)/2,h=(u+p)/2,m=1===t.length?t[0].angle:0,g=(0,l.U1)(n,r,f,h,-m),v=(0,i.Z)(g,2);switch(n=v[0],r=v[1],e){case"n":return(0,l.U1)(n-(s+d)/2,r-u,0,0,m);case"s":return(0,l.U1)(n-(s+d)/2,r-p,0,0,m);case"w":return(0,l.U1)(n-s,r-(u+p)/2,0,0,m);case"e":return(0,l.U1)(n-d,r-(u+p)/2,0,0,m);case"nw":return(0,l.U1)(n-s,r-u,0,0,m);case"ne":return(0,l.U1)(n-d,r-u,0,0,m);case"sw":return(0,l.U1)(n-s,r-p,0,0,m);case"se":return(0,l.U1)(n-d,r-p,0,0,m);default:return[0,0]}},C=function(e,t){var n=(0,i.Z)(t.points,2),r=(0,i.Z)(n[1],2),o=r[0],a=r[1];return"nw"===e&&(o<0||a<0)||"ne"===e&&o>=0||"sw"===e&&o<=0||"se"===e&&(o>0||a>0)?"end":"origin"}},5710:function(e,t,n){"use strict";n.d(t,{$2:function(){return j},AT:function(){return z},FE:function(){return P},HE:function(){return W},H_:function(){return V},N2:function(){return te},NS:function(){return Q},OW:function(){return X},P7:function(){return S},PT:function(){return oe},R8:function(){return O},RB:function(){return E},Rg:function(){return T},S:function(){return Y},TP:function(){return H},WJ:function(){return B},X1:function(){return C},Zr:function(){return J},aV:function(){return q},bG:function(){return x},cn:function(){return G},cw:function(){return K},eB:function(){return ne},jd:function(){return ee},lD:function(){return L},mY:function(){return D},oN:function(){return _},tl:function(){return U},w_:function(){return M},xB:function(){return Z}});var r,o=n(2577),i=n(1930),a=n(7169),s=n(6340),l=n(1935),c=n(2335),u=n(1564),d=n(1047),p=n(1974),f=n(6938),h=n(75),m=n(2325),g=n(6906);function v(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y,w,x=function(e){return e.replace(/\t/g," ").replace(/\r?\n|\r/g,"\n")},k=function(e){return x(e).split("\n")},_=function(e,t){var n=void 0,r={x:e.x,y:e.y,text:e.text,width:e.width,height:e.height,baseline:e.baseline};r.text=e.text,t&&(n=ee(t),r.text=L(e.originalText,(0,s.mO)(e),n));var o=C(r.text,(0,s.mO)(e),e.lineHeight);if(r.width=o.width,r.height=o.height,r.baseline=o.baseline,t)if((0,p.Yv)(t)){var i=e.x+e.width/2,a=e.y+e.height/2,c=o.width-e.width,u=o.height-e.height;r.x=a-(e.height+u)/2,r.y=i-(e.width+c)/2}else{var d=W(t),f=te(t),h=d.height;o.height>f&&(h=Q(o.height,t.type),(0,l.DR)(t,{height:h}),f=te(t),(0,g.h_)(t.id,h));var m=b(b({},e),r),v=P(t,m),y=v.x,w=v.y;r.x=y,r.y=w}(0,l.DR)(e,r)},S=function(e,t,n){var r=(0,s.xn)(e);t.forEach((function(e){var t=n.get(e.id),o=Z(e);if(o){var i=n.get(o);if(i){var a=r.get(t);a&&(0,l.DR)(a,{boundElements:(e.boundElements||[]).filter((function(e){return e.id!==i&&e.id!==o})).concat({type:"text",id:i})});var s=r.get(i);s&&(0,d.iB)(s)&&(0,l.DR)(s,{containerId:a?t:null})}}}))},E=function(e,t){var n=Z(e);if(n){(0,g.kT)(e.id);var r=u.Z.getScene(e).getElement(n);if(r&&r.text){if(!e)return;var o=(r=u.Z.getScene(e).getElement(n)).text,i=r.height,a=r.width,c=W(e),d=ee(e),f=te(e),h=c.height,m=r.baseline;if("n"!==t&&"s"!==t){o&&(o=L(r.originalText,(0,s.mO)(r),d));var v=C(o,(0,s.mO)(r),r.lineHeight);i=v.height,a=v.width,m=v.baseline}if(i>f){var b=(h=Q(i,e.type))-c.height,y=(0,p.Yv)(e)||"ne"!==t&&"nw"!==t&&"n"!==t?e.y:e.y-b;(0,l.DR)(e,{height:h,y})}(0,l.DR)(r,{text:o,width:a,height:i,baseline:m}),(0,p.Yv)(e)||(0,l.DR)(r,P(e,r))}}},P=function(e,t){if((0,p.Yv)(e))return f._.getBoundTextElementPosition(e,t);var n,r=K(e),o=te(e),i=ee(e);return n=t.verticalAlign===c.oX.TOP?r.y:t.verticalAlign===c.oX.BOTTOM?r.y+(o-t.height):r.y+(o/2-t.height/2),{x:t.textAlign===c.I8.LEFT?r.x:t.textAlign===c.I8.RIGHT?r.x+(i-t.width):r.x+(i/2-t.width/2),y:n}},C=function(e,t,n){e=e.split("\n").map((function(e){return e||" "})).join("\n");var r=parseFloat(t),o=A(e,r,n);return{width:D(e,t),height:o,baseline:O(e,t,n)}},O=function(e,t,n,r){var o=document.createElement("div");o.style.position="absolute",o.style.whiteSpace="pre",o.style.font=t,o.style.minHeight="1em",r&&(o.style.overflow="hidden",o.style.wordBreak="break-word",o.style.whiteSpace="pre-wrap"),o.style.lineHeight=String(n),o.innerText=e,document.body.appendChild(o);var i=document.createElement("span");i.style.display="inline-block",i.style.overflow="hidden",i.style.width="1px",i.style.height="1px",o.appendChild(i);var a=i.offsetTop+i.offsetHeight,s=o.offsetHeight;if(c.G6){var l=A(e,parseFloat(t),n),u=parseFloat(t),d=A(e,Math.round(u),n);l>s&&(a+=l-d),s>l&&(a-=d-l)}return document.body.removeChild(o),a},j=function(e){var t=k(e.text).length;return e.height/t/e.fontSize},T=function(e,t){return e*t},M=function(e,t){return T(e,t)+2*c.gK},I=function(e,t){y||(y=document.createElement("canvas"));var n=y.getContext("2d");n.font=t;var r=n.measureText(e).width;return(0,s.h2)()?10*r:r},D=function(e,t){var n=k(e),r=0;return n.forEach((function(e){r=Math.max(r,I(e,t))})),r},A=function(e,t,n){var r=k(e).length;return T(t,n)*r},L=function(e,t,n){if(!Number.isFinite(n)||n<0)return e;var r=[],o=e.split("\n"),i=I(" ",t),a="",s=0,l=function(e){e.trim()&&r.push(e)},c=function(){a="",s=0};return o.forEach((function(e){if(D(e,t)<=n)r.push(e);else{var o=function(e){var t=e.split("-");return t.length>1&&t.forEach((function(e,n){n!==t.length-1&&(t[n]=e+="-")})),t.join(" ").split(" ")}(e);c();for(var u=0;u<o.length;){var d=I(o[u],t);if(d===n)l(o[u]),u++;else if(d>n){for(l(a),c();o[u].length>0;){var p=String.fromCodePoint(o[u].codePointAt(0)),f=N.calculate(p,t);s+=f,o[u]=o[u].slice(p.length),s>=n?(l(a),a=p,s=f):a+=p}s+i>=n?(l(a),c()):a.endsWith("-")||(a+=" ",s+=i),u++}else for(;s<n&&u<o.length;){var h=o[u];if((s=I(a+h,t))>n){l(a),c();break}u++;var m=!h.endsWith("-");if(a+=h,m&&(a+=" "),s+i>=n){m?r.push(a.slice(0,-1)):r.push(a),c();break}}}" "===a.slice(-1)&&(a=a.slice(0,-1),l(a))}})),r.join("\n")},N=(w={},{calculate:function(e,t){var n=e.charCodeAt(0);if(w[t]||(w[t]=[]),!w[t][n]){var r=I(e,t);w[t][n]=r}return w[t][n]},getCache:function(e){return w[e]}}),R="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toLocaleUpperCase(),z=function(e,t){var n=F(e);return 0===n?C(R.split("").join("\n"),e,t).width+2*c.gK:n+2*c.gK},F=function(e){var t=N.getCache(e);if(!t)return 0;var n=t.filter((function(e){return void 0!==e}));return Math.max.apply(Math,(0,i.Z)(n))},Z=function(e){var t,n,r;return null!=e&&null!==(t=e.boundElements)&&void 0!==t&&t.length&&(null==e||null===(n=e.boundElements)||void 0===n||null===(r=n.filter((function(e){return"text"===e.type}))[0])||void 0===r?void 0:r.id)||null},B=function(e){if(!e)return null;var t,n=Z(e);return n&&(null===(t=u.Z.getScene(e))||void 0===t?void 0:t.getElement(n))||null},U=function(e){return e&&e.containerId&&(null===(t=u.Z.getScene(e))||void 0===t?void 0:t.getElement(e.containerId))||null;var t},W=function(e){return(0,p.Yv)(e)?{width:Math.max(e.width,300),height:e.height}:{width:e.width,height:e.height}},H=function(e,t){if(!(0,p.Yv)(e))return{x:e.x+e.width/2,y:e.y+e.height/2};var n=f._.getPointsGlobalCoordinates(e);if(n.length%2==1){var r=Math.floor(e.points.length/2),o=f._.getPointGlobalCoordinates(e,e.points[r]);return{x:o[0],y:o[1]}}var i=e.points.length/2-1,a=f._.getEditorMidPoints(e,t)[i];return a||(a=f._.getSegmentMidPoint(e,n[i],n[i+1],i+1)),{x:a[0],y:a[1]}},K=function(e){var t=c.gK,n=c.gK;return"ellipse"===e.type&&(t+=e.width/2*(1-Math.sqrt(2)/2),n+=e.height/2*(1-Math.sqrt(2)/2)),"diamond"===e.type&&(t+=e.width/4,n+=e.height/4),{x:e.x+t,y:e.y+n}},V=function(e){var t=U(e);return!t||(0,p.Yv)(t)?e.angle:t.angle},Y=function(e){var t=U(e);return t&&e?(0,p.Yv)(t)?8*c.gK:c.gK:0},G=function(e){return e.some((function(e){if((0,p.Xh)(e)){var t=U(e);return!(0,d.iB)(e)||!(0,p.Yv)(t)}return!1}))},q=function(e){return e.some((function(e){if((0,p.Xh)(e)){var t=U(e);return!(0,d.iB)(e)||!(0,p.Yv)(t)}return(0,d.iB)(e)}))},X=function(e,t,n,r){var i=(0,h.eD)(e,t);if(1===i.length)return(0,p.mG)(i[0],!1)?i[0]:null;for(var a=null,s=e.length-1;s>=0;--s)if(!e[s].isDeleted){var l=(0,d.qf)(e[s]),c=(0,o.Z)(l,4),u=c[0],f=c[1],g=c[2],v=c[3];if((0,p.Yv)(e[s])&&(0,m.Qu)(e[s],t,[n,r])){a=e[s];break}if(u<n&&n<g&&f<r&&r<v){a=e[s];break}}return(0,p.mG)(a,!1)?a:null},$=new Set(["rectangle","ellipse","diamond","image","arrow"]),J=function(e){return $.has(e.type)},Q=function(e,t){e=Math.ceil(e);var n=2*c.gK;return"ellipse"===t?Math.round((e+n)/Math.sqrt(2)*2):"arrow"===t?e+8*n:"diamond"===t?2*(e+n):e+n},ee=function(e){var t=W(e).width;if((0,p.Yv)(e)){var n=t-8*c.gK*2;if(n<=0){var r=B(e);return r?r.width:8*c.gK*2}return n}return"ellipse"===e.type?Math.round(t/2*Math.sqrt(2))-2*c.gK:"diamond"===e.type?Math.round(t/2)-2*c.gK:t-2*c.gK},te=function(e){var t=W(e).height;if((0,p.Yv)(e)){if(t-8*c.gK*2<=0){var n=B(e);return n?n.height:8*c.gK*2}return t}return"ellipse"===e.type?Math.round(t/2*Math.sqrt(2))-2*c.gK:"diamond"===e.type?Math.round(t/2)-2*c.gK:t-2*c.gK},ne=function(){return D(R,(0,s.mO)({fontSize:c.n5,fontFamily:c.rk}))>0},re=(r={},(0,a.Z)(r,c.ut.Virgil,1.25),(0,a.Z)(r,c.ut.Helvetica,1.15),(0,a.Z)(r,c.ut.Cascadia,1.2),r),oe=function(e){return e in re?re[e]:re[c.rk]}},6906:function(e,t,n){"use strict";n.d(t,{b_:function(){return P},eR:function(){return E},h_:function(){return _},kT:function(){return S}});var r=n(8950),o=n(7169),i=n(2577),a=n(2975),s=n.n(a),l=n(6066),c=n(6340),u=n(1564),d=n(1974),p=n(2335),f=n(1935),h=n(5710),m=n(6208),g=n(2416),v=n(6938),b=n(6665);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(e,t,n,r,o,i){var a=r.zoom,s=180*n/Math.PI,l=e*(a.value-1)/2,c=t*(a.value-1)/2;return e>o&&1!==a.value&&(l=o*(a.value-1)/2),t>i&&1!==a.value&&(c=i*(a.value-1)/2),"translate(".concat(l,"px, ").concat(c,"px) scale(").concat(a.value,") rotate(").concat(s,"deg)")},k={},_=function(e,t){var n=k[e]||(k[e]={height:t});return n.height=t,n},S=function(e){k[e]&&delete k[e]},E=function(e){var t,n;return null!==(t=null===(n=k[e])||void 0===n?void 0:n.height)&&void 0!==t?t:null},P=function(e){var t=e.id,n=e.onChange,o=e.onSubmit,a=e.getViewportCoords,y=e.element,S=e.canvas,E=e.excalidrawContainer,P=e.app,C=function(){var e,n=P.state,r=null===(e=u.Z.getScene(y))||void 0===e?void 0:e.getElement(t);if(r){var o=r.textAlign,s=r.verticalAlign;if(r&&(0,d.iB)(r)){var l=r.x,m=r.y,g=(0,h.tl)(r),b=r.width,S=r.height,E=r.width,C=r.height;if(g&&r.containerId){if((0,d.Yv)(g)){var j=v._.getBoundTextElementPosition(g,r);l=j.x,m=j.y}var T,M=function(e,t){if(!t.style.fontFamily||!t.style.fontSize)return!1;var n=t.style.fontFamily.replace(/"/g,"");return(0,c.$g)({fontFamily:e.fontFamily})!==n||"".concat(e.fontSize,"px")!==t.style.fontSize}(r,O),I=(0,h.HE)(g),D=Number(O.style.height.slice(0,-2));if(D>0&&(C=D),M&&(C=r.height),M?T=_(g.id,I.height):(T=k[g.id])||(T=_(g.id,I.height)),b=(0,h.jd)(g),S=(0,h.N2)(g),!(0,d.Yv)(g)&&C>S){var A=(0,h.NS)(C,g.type);return void(0,f.DR)(g,{height:A})}if(!(0,d.Yv)(g)&&I.height>T.height&&C<S){var L=(0,h.NS)(C,g.type);(0,f.DR)(g,{height:L})}else{var N=(0,h.cw)(g);s===p.oX.MIDDLE&&((0,d.Yv)(g)||(m=N.y+S/2-C/2)),s===p.oX.BOTTOM&&(m=N.y+(S-C))}}var R=a(l,m),z=(0,i.Z)(R,2),F=z[0],Z=z[1],B=O.selectionStart,U=O.selectionEnd,W=O.value.length;if(O.value=r.originalText,B===U&&U!==W){var H=W-U;O.selectionStart=O.value.length-H,O.selectionEnd=O.value.length-H}g?E+=.5:(b=(n.width-8-F)/n.zoom.value,E=Math.min(E,b));var K=r.lineHeight;p.G6&&(K=(0,h.$2)(w(w({},r),{},{fontSize:Math.round(r.fontSize)})));var V=(n.height-Z)/n.zoom.value;Object.assign(O.style,{font:(0,c.mO)(r),lineHeight:K,width:"".concat(E,"px"),height:"".concat(C,"px"),left:"".concat(F,"px"),top:"".concat(Z,"px"),transform:x(E,C,(0,h.H_)(r),n,b,V),textAlign:o,verticalAlign:s,color:r.strokeColor,opacity:r.opacity/100,filter:"var(--theme-filter)",maxHeight:"".concat(V,"px")}),O.scrollTop=0,(0,c.h2)()&&(O.style.fontFamily=(0,c.$g)(r)),(0,f.DR)(r,{x:l,y:m})}}},O=document.createElement("textarea");O.dir="auto",O.tabIndex=0,O.dataset.type="wysiwyg",O.wrap="off",O.classList.add("excalidraw-wysiwyg");var j="pre",T="normal";(0,d.Xh)(y)&&(j="pre-wrap",T="break-word"),Object.assign(O.style,{position:"absolute",display:"inline-block",minHeight:"1em",backfaceVisibility:"hidden",margin:0,padding:0,border:0,outline:0,resize:"none",background:"transparent",overflow:"hidden",zIndex:"var(--zIndex-wysiwyg)",wordBreak:T,whiteSpace:j,overflowWrap:"break-word",boxSizing:"content-box"}),C(),n&&(O.onpaste=function(){var e=(0,r.Z)(s().mark((function e(t){var n,r,o,i,a,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.mQ)(t,!0);case 2:if((n=e.sent).text){e.next=5;break}return e.abrupt("return");case 5:if(r=(0,h.bG)(n.text)){e.next=8;break}return e.abrupt("return");case 8:o=(0,h.tl)(y),i=(0,c.mO)({fontSize:P.state.currentItemFontSize,fontFamily:P.state.currentItemFontFamily}),o&&(a=(0,h.lD)("".concat(O.value).concat(r),i,(0,h.jd)(o)),l=(0,h.mY)(a,i),O.style.width="".concat(l,"px"));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O.oninput=function(){var e,r=null===(e=u.Z.getScene(y))||void 0===e?void 0:e.getElement(t),o=(0,c.mO)(r);if((0,d.Xh)(y)){var i=(0,h.tl)(y),a=(0,h.lD)((0,h.bG)(O.value),o,(0,h.jd)(i)),s=(0,h.X1)(a,o,r.lineHeight),l=s.width,p=s.height;O.style.width="".concat(l,"px"),O.style.height="".concat(p,"px")}n((0,h.bG)(O.value))}),O.onkeydown=function(e){if(!e.shiftKey&&g.Lo.keyTest(e))e.preventDefault(),P.actionManager.executeAction(g.Lo),C();else if(!e.shiftKey&&g.CZ.keyTest(e))e.preventDefault(),P.actionManager.executeAction(g.CZ),C();else if(m.Tu.keyTest(e))P.actionManager.executeAction(m.Tu);else if(m.Zq.keyTest(e))P.actionManager.executeAction(m.Zq);else if(e.key===l.tW.ESCAPE)e.preventDefault(),R=!0,z();else if(e.key===l.tW.ENTER&&e[l.tW.CTRL_OR_CMD]){if(e.preventDefault(),e.isComposing||229===e.keyCode)return;R=!0,z()}else if(e.key===l.tW.TAB||e[l.tW.CTRL_OR_CMD]&&(e.code===l.aU.BRACKET_LEFT||e.code===l.aU.BRACKET_RIGHT)){if(e.preventDefault(),e.isComposing)return;e.shiftKey||e.code===l.aU.BRACKET_LEFT?A():D(),O.dispatchEvent(new Event("input"))}};var M=" ".repeat(4),I=new RegExp("^ {1,".concat(4,"}")),D=function(){var e=O.selectionStart,t=O.selectionEnd,n=L(),r=O.value;n.forEach((function(e){var t=r.slice(0,e),n=r.slice(e);r="".concat(t).concat(M).concat(n)})),O.value=r,O.selectionStart=e+4,O.selectionEnd=t+4*n.length},A=function(){var e=O.selectionStart,t=O.selectionEnd,n=L(),r=[],o=O.value;n.forEach((function(e){var t=o.slice(e,e+4).match(I);if(t){var n=o.slice(0,e),i=o.slice(e+t[0].length);o="".concat(n).concat(i),r.push(e)}})),O.value=o,r.length&&(e>r[r.length-1]?O.selectionStart=Math.max(e-4,r[r.length-1]):O.selectionStart=e,O.selectionEnd=Math.max(O.selectionStart,t-4*r.length))},L=function(){var e=O.selectionStart,t=O.selectionEnd,n=O.value,r=n.slice(0,e).match(/[^\n]*$/)[0].length;return e-=r,n.slice(e,t).split("\n").reduce((function(t,n,r,o){return t.concat(r?t[r-1]+o[r-1].length+1:e)}),[]).reverse()},N=function(e){e.preventDefault(),e.stopPropagation()},R=!1,z=function(){var e;F();var t=null===(e=u.Z.getScene(y))||void 0===e?void 0:e.getElement(y.id);if(t){var n=O.value,r=(0,h.tl)(t);if(r){if(n=t.text,O.value.trim()){var i=(0,h.xB)(r);i&&i===y.id||(0,f.DR)(r,{boundElements:(r.boundElements||[]).concat({type:"text",id:y.id})})}else{var a;(0,f.DR)(r,{boundElements:null===(a=r.boundElements)||void 0===a?void 0:a.filter((function(e){return!(0,d.iB)(e)}))})}(0,h.oN)(t,r)}o({text:n,viaKeyboard:R,originalText:O.value})}},F=function(){W||(W=!0,O.onblur=null,O.oninput=null,O.onkeydown=null,H&&H.disconnect(),window.removeEventListener("resize",C),window.removeEventListener("wheel",N,!0),window.removeEventListener("pointerdown",B),window.removeEventListener("pointerup",Z),window.removeEventListener("blur",z),U(),O.remove())},Z=function e(t){window.removeEventListener("pointerup",e);var n=null==t?void 0:t.target,r=n instanceof HTMLInputElement&&n.closest(".color-picker-input")&&(0,c.s)(n);setTimeout((function(){O.onblur=z,n&&r&&(n.onblur=function(){O.focus()}),r||O.focus()}))},B=function(e){var t=e.target instanceof HTMLInputElement&&e.target.closest(".color-picker-input")&&(0,c.s)(e.target);((e.target instanceof HTMLElement||e.target instanceof SVGElement)&&e.target.closest(".".concat(p.$C.SHAPE_ACTIONS_MENU))&&!(0,c.s)(e.target)||t)&&(O.onblur=null,window.addEventListener("pointerup",Z),window.addEventListener("blur",z))},U=u.Z.getScene(y).addCallback((function(){var e;C(),null!==(e=document.activeElement)&&void 0!==e&&e.closest(".color-picker-input")||O.focus()})),W=!1;O.select(),Z();var H=null;S&&"ResizeObserver"in window?(H=new window.ResizeObserver((function(){C()}))).observe(S):window.addEventListener("resize",C),window.addEventListener("pointerdown",B),window.addEventListener("wheel",N,{passive:!1,capture:!0}),null==E||E.querySelector(".excalidraw-textEditorContainer").appendChild(O)}},267:function(e,t,n){"use strict";n.d(t,{PC:function(){return g},kK:function(){return m},oY:function(){return v},ox:function(){return u}});var r=n(2577),o=n(8925),i=n(6552),a=n(1047),s=n(1974),l=n(3547),c={mouse:8,pen:16,touch:28},u={e:!0,s:!0,n:!0,w:!0},d={e:!0,s:!0,n:!0,w:!0},p={e:!0,s:!0,n:!0,w:!0,nw:!0,se:!0},f={e:!0,s:!0,n:!0,w:!0},h=function(e,t,n,o,a,s,l){var c=(0,i.U1)(e+n/2,t+o/2,a,s,l),u=(0,r.Z)(c,2);return[u[0]-n/2,u[1]-o/2,n,o]},m=function(e,t,n,o){var i=(0,r.Z)(e,6),a=i[0],s=i[1],u=i[2],d=i[3],p=i[4],f=i[5],m=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4,v=c[o],b=v/n.value,y=v/n.value,w=v/n.value,x=v/n.value,k=u-a,_=d-s,S=g/n.value,E=(v-2*l.Lu)/(2*n.value),P={nw:m.nw?void 0:h(a-S-w+E,s-S-x+E,b,y,p,f,t),ne:m.ne?void 0:h(u+S-E,s-S-x+E,b,y,p,f,t),sw:m.sw?void 0:h(a-S-w+E,d+S-E,b,y,p,f,t),se:m.se?void 0:h(u+S-E,d+S-E,b,y,p,f,t),rotation:m.rotation?void 0:h(a+k/2-b/2,s-S-x+E-16/n.value,b,y,p,f,t)},C=5*c.mouse/n.value;return Math.abs(k)>C&&(m.n||(P.n=h(a+k/2-b/2,s-S-x+E,b,y,p,f,t)),m.s||(P.s=h(a+k/2-b/2,d+S-E,b,y,p,f,t))),Math.abs(_)>C&&(m.w||(P.w=h(a-S-w+E,s+_/2-y/2,b,y,p,f,t)),m.e||(P.e=h(u+S-E,s+_/2-y/2,b,y,p,f,t))),P},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mouse";if(e.locked)return{};var i={};if("freedraw"===e.type||(0,s.bt)(e)){if(2===e.points.length){var c=(0,r.Z)(e.points,2)[1];0===c[0]||0===c[1]?i=f:c[0]>0&&c[1]<0?i=p:c[0]>0&&c[1]>0?i=f:c[0]<0&&c[1]>0?i=p:c[0]<0&&c[1]<0&&(i=f)}}else(0,a.iB)(e)&&(i=d);var u=(0,s.bt)(e)?l.Lu+8:l.Lu;return m((0,o.qf)(e,!0),e.angle,t,n,i,u)},v=function(e,t){if(t.editingLinearElement)return!1;if(e.length>1)return!0;var n=e[0];return!(0,s.bt)(n)||n.points.length>2}},1974:function(e,t,n){"use strict";n.d(t,{F9:function(){return s},Lx:function(){return f},Mn:function(){return p},QI:function(){return y},UQ:function(){return x},Xh:function(){return b},Xo:function(){return v},Yv:function(){return u},bt:function(){return c},dt:function(){return d},eK:function(){return w},f0:function(){return h},iB:function(){return a},mG:function(){return m},pC:function(){return i},r2:function(){return g},wi:function(){return o}});var r=n(2335),o=function(e){return!!e&&"image"===e.type&&!!e.fileId},i=function(e){return!!e&&"image"===e.type},a=function(e){return null!=e&&"text"===e.type},s=function(e){return null!=e&&l(e.type)},l=function(e){return"freedraw"===e},c=function(e){return null!=e&&d(e.type)},u=function(e){return null!=e&&"arrow"===e.type},d=function(e){return"arrow"===e||"line"===e},p=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return null!=e&&(!e.locked||!0===t)&&f(e.type)},f=function(e){return"arrow"===e},h=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!(null==e||e.locked&&!0!==t||"rectangle"!==e.type&&"diamond"!==e.type&&"ellipse"!==e.type&&"image"!==e.type&&("text"!==e.type||e.containerId))},m=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return null!=e&&(!e.locked||!0===t)&&("rectangle"===e.type||"diamond"===e.type||"ellipse"===e.type||"image"===e.type||u(e))},g=function(e){return"text"===(null==e?void 0:e.type)||"diamond"===(null==e?void 0:e.type)||"rectangle"===(null==e?void 0:e.type)||"ellipse"===(null==e?void 0:e.type)||"arrow"===(null==e?void 0:e.type)||"freedraw"===(null==e?void 0:e.type)||"line"===(null==e?void 0:e.type)},v=function(e){var t;return m(e)&&!(null===(t=e.boundElements)||void 0===t||!t.some((function(e){return"text"===e.type})))},b=function(e){return null!==e&&"containerId"in e&&null!==e.containerId&&a(e)},y=function(e){return"rectangle"===e},w=function(e,t){return!(e!==r.a6.ADAPTIVE_RADIUS&&e!==r.a6.LEGACY||!y(t.type))||e===r.a6.PROPORTIONAL_RADIUS&&("line"===(n=t.type)||"arrow"===n||"diamond"===n);var n},x=function(e){return"arrow"===e.type||"line"===e.type||"diamond"===e.type?{type:r.a6.PROPORTIONAL_RADIUS}:"rectangle"===e.type?{type:r.a6.ADAPTIVE_RADIUS}:null}},6797:function(e,t,n){"use strict";n.d(t,{_:function(){return h},l:function(){return f}});var r=n(5169),o=n(8821),i=n(2248),a=n(7245),s=n(2312),l=n(5901);function c(){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 u(e,t,n){return u=c()?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&&(0,l.Z)(o,n.prototype),o},u.apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,(0,s.Z)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,l.Z)(r,e)},d(e)}function p(e){var t=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}}();return function(){var n,r=(0,s.Z)(e);if(t){var o=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.Z)(this,n)}}var f=function(e){(0,i.Z)(n,e);var t=p(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Couldn't export canvas.",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CANVAS_ERROR";return(0,o.Z)(this,n),(e=t.call(this)).name=i,e.message=r,e}return(0,r.Z)(n)}(d(Error)),h=function(e){(0,i.Z)(n,e);var t=p(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Request Aborted";return(0,o.Z)(this,n),t.call(this,e,"AbortError")}return(0,r.Z)(n)}(d(DOMException))},242:function(e,t,n){"use strict";n.d(t,{AI:function(){return S},F$:function(){return p},Fb:function(){return y},Nd:function(){return b},Qy:function(){return x},S_:function(){return k},YS:function(){return w},bO:function(){return g},h6:function(){return _},iE:function(){return v},iJ:function(){return m},yO:function(){return h},zq:function(){return f}});var r=n(1930),o=n(2577),i=n(7169),a=n(75),s=n(5710);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function c(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 u(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e,t,n){var r=n.filter((function(t){return t.groupIds.includes(e)}));return r.length<2?t.selectedGroupIds[e]||t.editingGroupId===e?d(d({},t),{},{selectedGroupIds:d(d({},t.selectedGroupIds),{},(0,i.Z)({},e,!1)),editingGroupId:null}):t:d(d({},t),{},{selectedGroupIds:d(d({},t.selectedGroupIds),{},(0,i.Z)({},e,!0)),selectedElementIds:d(d({},t.selectedElementIds),Object.fromEntries(r.map((function(e){return[e.id,!0]}))))})},f=function(e,t){return null!=h(e,t)},h=function(e,t){return t.groupIds.filter((function(t){return t!==e.editingGroupId})).find((function(t){return e.selectedGroupIds[t]}))},m=function(e){return Object.entries(e.selectedGroupIds).filter((function(e){var t=(0,o.Z)(e,2);return t[0],t[1]})).map((function(e){var t=(0,o.Z)(e,2),n=t[0];return t[1],n}))},g=function(e,t){var n=d(d({},e),{},{selectedGroupIds:{}}),r=(0,a.eD)(t,e);if(!r.length)return d(d({},n),{},{editingGroupId:null});var o,i=l(r);try{for(i.s();!(o=i.n()).done;){var s=o.value.groupIds;if(e.editingGroupId){var c=s.indexOf(e.editingGroupId);c>-1&&(s=s.slice(0,c))}if(s.length>0){var u=s[s.length-1];n=p(u,n,t)}}}catch(e){i.e(e)}finally{i.f()}return n},v=function(e,t){return d(d({},e),{},{editingGroupId:t.groupIds.length?t.groupIds[0]:null,selectedGroupIds:{},selectedElementIds:(0,i.Z)({},t.id,!0)})},b=function(e,t){return e.groupIds.includes(t)},y=function(e,t){return e.filter((function(e){return b(e,t)}))},w=function(e,t){return e.groupIds.find((function(e){return t[e]}))},x=function(e,t,n){for(var o=(0,r.Z)(e),i=t?e.indexOf(t):-1,a=i>-1?i:e.length,s=0;s<a;s++)o[s]=n(o[s]);return o},k=function(e,t,n){var o=(0,r.Z)(e),i=n?o.indexOf(n):-1,a=i>-1?i:o.length;return o.splice(a,0,t),o},_=function(e,t){return e.filter((function(e){return!t[e]}))},S=function(e){var t=new Map;return e.forEach((function(e){var n=0===e.groupIds.length?e.id:e.groupIds[e.groupIds.length-1],o=t.get(n)||[],i=(0,s.WJ)(e);i&&o.push(i),t.set(n,[].concat((0,r.Z)(o),[e]))})),Array.from(t.values())}},8211:function(e,t,n){"use strict";n.d(t,{Fp:function(){return d},G3:function(){return v},Mj:function(){return p},QT:function(){return x},m0:function(){return g},t:function(){return y}});var r=n(8950),o=n(2975),i=n.n(o),a=n(1463),s=n(4451),l=n(2335),c=n(9487),u=n(4739),d={code:"en",label:"English"},p=[{code:"ar-SA",label:"العربية",rtl:!0},{code:"bg-BG",label:"Български"},{code:"ca-ES",label:"Català"},{code:"cs-CZ",label:"Česky"},{code:"de-DE",label:"Deutsch"},{code:"el-GR",label:"Ελληνικά"},{code:"es-ES",label:"Español"},{code:"eu-ES",label:"Euskara"},{code:"fa-IR",label:"فارسی",rtl:!0},{code:"fi-FI",label:"Suomi"},{code:"fr-FR",label:"Français"},{code:"gl-ES",label:"Galego"},{code:"he-IL",label:"עברית",rtl:!0},{code:"hi-IN",label:"हिन्दी"},{code:"hu-HU",label:"Magyar"},{code:"id-ID",label:"Bahasa Indonesia"},{code:"it-IT",label:"Italiano"},{code:"ja-JP",label:"日本語"},{code:"kab-KAB",label:"Taqbaylit"},{code:"kk-KZ",label:"Қазақ тілі"},{code:"ko-KR",label:"한국어"},{code:"ku-TR",label:"Kurdî"},{code:"lt-LT",label:"Lietuvių"},{code:"lv-LV",label:"Latviešu"},{code:"my-MM",label:"Burmese"},{code:"nb-NO",label:"Norsk bokmål"},{code:"nl-NL",label:"Nederlands"},{code:"nn-NO",label:"Norsk nynorsk"},{code:"oc-FR",label:"Occitan"},{code:"pa-IN",label:"ਪੰਜਾਬੀ"},{code:"pl-PL",label:"Polski"},{code:"pt-BR",label:"Português Brasileiro"},{code:"pt-PT",label:"Português"},{code:"ro-RO",label:"Română"},{code:"ru-RU",label:"Русский"},{code:"sk-SK",label:"Slovenčina"},{code:"sv-SE",label:"Svenska"},{code:"sl-SI",label:"Slovenščina"},{code:"tr-TR",label:"Türkçe"},{code:"uk-UA",label:"Українська"},{code:"zh-CN",label:"简体中文"},{code:"zh-TW",label:"繁體中文"},{code:"vi-VN",label:"Tiếng Việt"},{code:"mr-IN",label:"मराठी"}].concat([d]).sort((function(e,t){return e.label>t.label?1:-1})).filter((function(e){return s[e.code]>=85})),f="__test__";"production"===l.Vi.DEVELOPMENT&&p.unshift({code:f,label:"test language"},{code:"".concat(f,".rtl"),label:"‪test language (rtl)‬",rtl:!0});var h=d,m={},g=function(){var e=(0,r.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h=t,document.documentElement.dir=h.rtl?"rtl":"ltr",document.documentElement.lang=h.code,!t.code.startsWith(f)){e.next=7;break}m={},e.next=17;break;case 7:return e.prev=7,e.next=10,n(940)("./".concat(h.code,".json"));case 10:m=e.sent,e.next=17;break;case 13:e.prev=13,e.t0=e.catch(7),console.error("Failed to load language ".concat(t.code,":"),e.t0.message),m=a;case 17:c.e_.set(w,t.code);case 18:case"end":return e.stop()}}),e,null,[[7,13]])})));return function(t){return e.apply(this,arguments)}}(),v=function(){return h},b=function(e,t){for(var n=0;n<t.length;++n){var r=t[n];if(void 0===e[r])return;e=e[r]}if("string"==typeof e)return e},y=function(e,t){if(h.code.startsWith(f)){var n=t?"".concat(e,"(").concat(JSON.stringify(t).slice(1,-1),")"):e;return"‪[[".concat(n,"]]‬")}var r=e.split("."),o=b(m,r)||b(a,r);if(void 0===o)throw new Error("Can't find translation for ".concat(e));if(t)for(var i in t)o=o.replace("{{".concat(i,"}}"),String(t[i]));return o},w=(0,u.cn)(d.code),x=function(){var e=(0,u.Dv)(w,c.yE);return{t:y,langCode:e}}},9487:function(e,t,n){"use strict";n.d(t,{e_:function(){return i},yE:function(){return o}});var r=n(4739),o=(n(9787),Symbol()),i=(0,r.Vv)()},6066:function(e,t,n){"use strict";n.d(t,{E0:function(){return l},Ge:function(){return c},OA:function(){return s},Wl:function(){return a},aU:function(){return o},tW:function(){return i}});var r=n(2335),o={EQUAL:"Equal",MINUS:"Minus",NUM_ADD:"NumpadAdd",NUM_SUBTRACT:"NumpadSubtract",NUM_ZERO:"Numpad0",BRACKET_RIGHT:"BracketRight",BRACKET_LEFT:"BracketLeft",ONE:"Digit1",TWO:"Digit2",NINE:"Digit9",QUOTE:"Quote",ZERO:"Digit0",SLASH:"Slash",C:"KeyC",D:"KeyD",H:"KeyH",V:"KeyV",Z:"KeyZ",R:"KeyR"},i={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",BACKSPACE:"Backspace",ALT:"Alt",CTRL_OR_CMD:r.Um?"metaKey":"ctrlKey",DELETE:"Delete",ENTER:"Enter",ESCAPE:"Escape",QUESTION_MARK:"?",SPACE:" ",TAB:"Tab",CHEVRON_LEFT:"<",CHEVRON_RIGHT:">",PERIOD:".",COMMA:",",A:"a",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",L:"l",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",V:"v",X:"x",Y:"y",Z:"z",K:"k",0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},a=function(e){return e===i.ARROW_LEFT||e===i.ARROW_RIGHT||e===i.ARROW_DOWN||e===i.ARROW_UP},s=function(e){return e.altKey},l=function(e){return e.shiftKey},c=function(e){return e.shiftKey}},6552:function(e,t,n){"use strict";n.d(t,{EK:function(){return S},H5:function(){return u},Jj:function(){return _},LW:function(){return c},N_:function(){return y},U1:function(){return a},c9:function(){return p},eH:function(){return x},g6:function(){return d},lk:function(){return k},wC:function(){return g},xj:function(){return s},yB:function(){return b},yW:function(){return v},yq:function(){return l}});var r=n(2335),o=n(3063),i=n(8925),a=function(e,t,n,r,o){return[(e-n)*Math.cos(o)-(t-r)*Math.sin(o)+n,(e-n)*Math.sin(o)+(t-r)*Math.cos(o)+r]},s=function(e,t,n){return a(e[0],e[1],t[0],t[1],n)},l=function(e,t,n,r,o,i,a,s){var l=Math.cos(r),c=Math.sin(r);return e.e&&e.w?t+=o+a:e.e?(t+=o*(1+l),n+=o*c,t+=a*(1-l),n+=a*-c):e.w&&(t+=o*(1-l),n+=o*-c,t+=a*(1+l),n+=a*c),e.n&&e.s?n+=i+s:e.n?(t+=i*c,n+=i*(1-l),t+=s*-c,n+=s*(1+l)):e.s&&(t+=i*-c,n+=i*(1+l),t+=s*c,n+=s*(1-l)),[t,n]},c=function(e,t,n,r){var o=n-e,i=r-t;return Math.hypot(o,i)},u=function(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2]},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e.length>=3){var n=[e[0],e[e.length-1]],o=n[0],i=n[1];return c(o[0],o[1],i[0],i[1])<=r.qx/t}return!1},p=function(e,t,n){var r=e.length;if(r<3)return!1;for(var o=[Number.MAX_SAFE_INTEGER,n],i=[t,n],a=0,s=0;s<r;s++){var l=e[s],c=e[(s+1)%r];if(m(l,c,i,o)){if(0===h(l,i,c))return f(l,i,c);a++}}return a%2==1},f=function(e,t,n){return t[0]<=Math.max(e[0],n[0])&&t[0]>=Math.min(e[0],n[0])&&t[1]<=Math.max(e[1],n[1])&&t[1]>=Math.min(e[1],n[1])},h=function(e,t,n){var r=(t[1]-e[1])*(n[0]-t[0])-(t[0]-e[0])*(n[1]-t[1]);return 0===r?0:r>0?1:2},m=function(e,t,n,r){var o=h(e,t,n),i=h(e,t,r),a=h(n,r,e),s=h(n,r,t);return o!==i&&a!==s||!(0!==o||!f(e,n,t))||!(0!==i||!f(e,r,t))||!(0!==a||!f(n,e,r))||!(0!==s||!f(n,t,r))},g=function(e,t,n){return n?[Math.round(e/n)*n,Math.round(t/n)*n]:[e,t]},v=function(e,t){var n,o,i;if((null===(n=t.roundness)||void 0===n?void 0:n.type)===r.a6.PROPORTIONAL_RADIUS||(null===(o=t.roundness)||void 0===o?void 0:o.type)===r.a6.LEGACY)return e*r.Rx;if((null===(i=t.roundness)||void 0===i?void 0:i.type)===r.a6.ADAPTIVE_RADIUS){var a,s,l=null!==(a=null===(s=t.roundness)||void 0===s?void 0:s.value)&&void 0!==a?a:r._9;return e<=l/r.Rx?e*r.Rx:l}return 0},b=function(e,t){var n=(0,o.R2)(e);if(!n)return null;for(var r=(0,i.CM)(n[0]),a=[0,0],s=0,l=1/0,u=null;s<r.length;){var d=r[s],p=d.op,f=d.data;if("move"===p&&(a=f),"bcurveTo"===p){var h=a,m=[f[0],f[1]],g=[f[2],f[3]],v=[f[4],f[5]],b=c(v[0],v[1],t[0],t[1]);b<l&&(l=b,u=[h,m,g,v]),a=v}s++}return u},y=function(e,t,n,r,o){var i=function(o,i){return Math.pow(1-o,3)*r[i]+3*o*Math.pow(1-o,2)*n[i]+3*Math.pow(o,2)*(1-o)*t[i]+e[i]*Math.pow(o,3)};return[i(o,0),i(o,1)]},w=function(e,t){var n=[];n[0]=0;for(var r=function(e,t){var n=b(e,t);if(!n)return[];for(var r=[],o=1;o>0;){var i=y(n[0],n[1],n[2],n[3],o);r.push([i[0],i[1]]),o-=.05}return r.length&&_(r.at(-1),t)&&r.push([t[0],t[1]]),r}(e,t),o=0,i=0;o<r.length-1;)i+=c(r[o][0],r[o][1],r[o+1][0],r[o+1][1]),n.push(i),o++;return n},x=function(e,t){return w(e,t).at(-1)},k=function(e,t,n){for(var r=w(e,t),o=r.length-1,i=n*r.at(-1),a=0,s=o,l=0;a<s;)r[l=Math.floor(a+(s-a)/2)]<i?a=l+1:s=l;return r[l]>i&&l--,r[l]===i?l/o:1-(l+(i-r[l])/(r[l+1]-r[l]))/o},_=function(e,t){return e[0]===t[0]&&e[1]===t[1]},S=function(e){return Math.round(e/Math.PI*1e4)%5e3==0}},3024:function(e,t,n){"use strict";n.d(t,{$D:function(){return S},Fl:function(){return _},I_:function(){return p.I_},N7:function(){return v.N7},NI:function(){return p.NI},NL:function(){return k},ZY:function(){return g.ZY},cT:function(){return g.cT},i1:function(){return E},lV:function(){return g.lV},zh:function(){return b.zh}});var r=n(8950),o=n(7169),i=n(2975),a=n.n(i),s=n(4162),l=n(8897),c=n(679),u=n(2335),d=n(673),p=n(5523),f=n(6665),h=n(1564),m=n(2791),g=n(434),v=n(3063),b=n(7053);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(e){var t=new h.Z;return t.replaceAllElements((0,m._N)(e)),t.getNonDeletedElements()},k=function(e){var t=e.elements,n=e.appState,r=e.files,o=e.maxWidthOrHeight,i=e.getDimensions,a=e.exportPadding,l=(0,c.nu)({elements:t,appState:n},null,null),u=l.elements,d=l.appState,p=d.exportBackground,f=d.viewBackgroundColor;return(0,s.NL)(x(u),w(w({},d),{},{offsetTop:0,offsetLeft:0,width:0,height:0}),r||{},{exportBackground:p,exportPadding:a,viewBackgroundColor:f},(function(e,t){var r,a=document.createElement("canvas");if(o){var s;"function"==typeof i&&console.warn("`getDimensions()` is ignored when `maxWidthOrHeight` is supplied.");var l=Math.max(e,t),c=o<l?o/l:null!==(s=null==n?void 0:n.exportScale)&&void 0!==s?s:1;return a.width=e*c,a.height=t*c,{canvas:a,scale:c}}var u=(null==i?void 0:i(e,t))||{width:e,height:t};return a.width=u.width,a.height=u.height,{canvas:a,scale:null!==(r=u.scale)&&void 0!==r?r:1}}))},_=function(){var e=(0,r.Z)(a().mark((function e(t){var n,o,i,s,l,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(o=t).mimeType,s=void 0===i?u.LO.png:i,l=o.quality,s===u.LO.png&&"number"==typeof l&&console.warn('"quality" will be ignored for "'.concat(u.LO.png,'" mimeType')),"image/jpg"===s&&(s=u.LO.jpg),s!==u.LO.jpg||null!==(n=t.appState)&&void 0!==n&&n.exportBackground||(console.warn('Defaulting "exportBackground" to "true" for "'.concat(u.LO.jpg,'" mimeType')),t=w(w({},t),{},{appState:w(w({},t.appState),{},{exportBackground:!0})})),e.next=6,k(w(w({},t),{},{elements:x(t.elements)}));case 6:return c=e.sent,l=l||(/image\/jpe?g/.test(s)?.92:.8),e.abrupt("return",new Promise((function(e,n){c.toBlob(function(){var o=(0,r.Z)(a().mark((function r(o){var i;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o){r.next=2;break}return r.abrupt("return",n(new Error("couldn't export to blob")));case 2:if(!o||s!==u.LO.png||null===(i=t.appState)||void 0===i||!i.exportEmbedScene){r.next=6;break}return r.next=5,(0,d.encodePngMetadata)({blob:o,metadata:(0,p.I_)(t.elements,t.appState,t.files||{},"local")});case 5:o=r.sent;case 6:e(o);case 7:case"end":return r.stop()}}),r)})));return function(e){return o.apply(this,arguments)}}(),s,l)})));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=(0,r.Z)(a().mark((function e(t){var n,r,o,i,u,d,f,h,m,g;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.elements,r=t.appState,o=void 0===r?(0,l.im)():r,i=t.files,u=void 0===i?{}:i,d=t.exportPadding,f=(0,c.nu)({elements:n,appState:o},null,null),h=f.elements,m=f.appState,g=w(w({},m),{},{exportPadding:d}),e.abrupt("return",(0,s.$D)(x(h),g,u,{serializeAsJSON:function(){return(0,p.I_)(h,g,u||{},"local")}}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=(0,r.Z)(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("svg"!==t.type){e.next=8;break}return e.next=3,S(t);case 3:return n=e.sent,e.next=6,(0,f.dd)(n.outerHTML);case 6:case 11:case 17:e.next=20;break;case 8:if("png"!==t.type){e.next=13;break}return e.next=11,(0,f.uR)(_(t));case 13:if("json"!==t.type){e.next=19;break}return r=w(w({offsetTop:0,offsetLeft:0,width:0,height:0},(0,l.im)()),t.appState),e.next=17,(0,f.vQ)(t.elements,r,t.files);case 19:throw new Error("Invalid export type");case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},5001:function(e,t,n){"use strict";n.d(t,{k:function(){return o},z:function(){return i}});var r=n(1930),o=function(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]}));return{width:Math.max.apply(Math,(0,r.Z)(t))-Math.min.apply(Math,(0,r.Z)(t)),height:Math.max.apply(Math,(0,r.Z)(n))-Math.min.apply(Math,(0,r.Z)(n))}},i=function(e,t,n,o){var i=n.map((function(t){return t[e]})),a=Math.max.apply(Math,(0,r.Z)(i)),s=Math.min.apply(Math,(0,r.Z)(i)),l=a-s,c=0===l?1:t/l,u=1/0,d=n.map((function(t){var n=t[e]*c,o=(0,r.Z)(t);return o[e]=n,n<u&&(u=n),o}));if(!o)return d;if(2===d.length)return d;var p=s-u;return d.map((function(t){return t.map((function(t,n){return n===e?t+p:t}))}))}},6954:function(e,t,n){"use strict";n.d(t,{LU:function(){return l},kb:function(){return c}});var r=n(8152),o=n(5605),i=n(6340),a=new r.k(Date.now()),s=0,l=function(){return Math.floor(a.next()*Math.pow(2,31))},c=function(){return(0,i.h2)()?"id".concat(s++):(0,o.x0)()}},3063:function(e,t,n){"use strict";n.d(t,{Dn:function(){return U},i:function(){return $},N7:function(){return ae},R2:function(){return G},bI:function(){return X},lw:function(){return te},Rg:function(){return re}});var r=n(1930),o=n(7169),i=n(2577),a=n(1974),s=n(8925),l=n(6340),c=n(6552),u=n(8234),d=n(8897),p=n(2335);function f(e,t,n,r=(e=>e)){return e*r(.5-t*(.5-n))}function h(e,t){return[e[0]+t[0],e[1]+t[1]]}function m(e,t){return[e[0]-t[0],e[1]-t[1]]}function g(e,t){return[e[0]*t,e[1]*t]}function v(e){return[e[1],-e[0]]}function b(e,t){return e[0]*t[0]+e[1]*t[1]}function y(e,t){return e[0]===t[0]&&e[1]===t[1]}function w(e,t){return function(e){return e[0]*e[0]+e[1]*e[1]}(m(e,t))}function x(e){return function(e,t){return[e[0]/t,e[1]/t]}(e,function(e){return Math.hypot(e[0],e[1])}(e))}function k(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function _(e,t,n){let r=Math.sin(n),o=Math.cos(n),i=e[0]-t[0],a=e[1]-t[1],s=i*r+a*o;return[i*o-a*r+t[0],s+t[1]]}function S(e,t,n){return h(e,g(m(t,e),n))}function E(e,t,n){return h(e,g(t,n))}var{min:P,PI:C}=Math,O=C+1e-4;var j=n(5710),T=n(6938),M=n(6794);function I(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 D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A="invert(100%) hue-rotate(180deg) saturate(1.25)",L=(0,d.im)(),N=function(e,t){return(0,a.wi)(e)&&!t.imageCache.has(e.fileId)},R=function(e,t){var n;return"dark"===t.theme&&(0,a.wi)(e)&&!N(e,t)&&(null===(n=t.imageCache.get(e.fileId))||void 0===n?void 0:n.mimeType)!==p.LO.svg},z=function(e){return[8,8+e]},F=function(e){return[1.5,6+e]},Z=function(e){return"freedraw"===e.type?12*e.strokeWidth:20},B=function(e,t,n){var r,o=document.createElement("canvas"),c=o.getContext("2d"),d=Z(e),p=function(e,t){var n=16777216,r=32767,o=Z(e),c=(0,s.qf)(e),u=(0,i.Z)(c,4),d=u[0],p=u[1],f=u[2],h=u[3],m=(0,a.bt)(e)||(0,a.F9)(e)?(0,l.TE)(d,f):e.width,g=(0,a.bt)(e)||(0,a.F9)(e)?(0,l.TE)(p,h):e.height,v=m*window.devicePixelRatio+2*o,b=g*window.devicePixelRatio+2*o,y=t.value;return(v*y>r||b*y>r)&&(y=Math.min(r/v,r/b)),v*b*y*y>n&&(y=Math.sqrt(n/(v*b))),{width:v=Math.floor(v*y),height:b=Math.floor(b*y),scale:y}}(e,t),f=p.width,h=p.height,m=p.scale;o.width=f,o.height=h;var g=0,v=0;if((0,a.bt)(e)||(0,a.F9)(e)){var b=(0,s.qf)(e),y=(0,i.Z)(b,2),w=y[0],x=y[1];g=e.x>w?(0,l.TE)(e.x,w)*window.devicePixelRatio*m:0,v=e.y>x?(0,l.TE)(e.y,x)*window.devicePixelRatio*m:0,c.translate(g,v)}c.save(),c.translate(d*m,d*m),c.scale(window.devicePixelRatio*m,window.devicePixelRatio*m);var k=u.Z.canvas(o);return R(e,n)&&(c.filter=A),K(e,k,c,n),c.restore(),{element:e,canvas:o,theme:n.theme,scale:m,zoomValue:t.value,canvasOffsetX:g,canvasOffsetY:v,boundTextElementVersion:(null===(r=(0,j.WJ)(e))||void 0===r?void 0:r.version)||null}},U=14,W=document.createElement("img");W.src="data:".concat(p.LO.svg,",").concat(encodeURIComponent('<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="image" class="svg-inline--fa fa-image fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#888" d="M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"></path></svg>'));var H=document.createElement("img");H.src="data:".concat(p.LO.svg,",").concat(encodeURIComponent('<svg viewBox="0 0 668 668" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2"><path d="M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48ZM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56ZM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48Z" style="fill:#888;fill-rule:nonzero" transform="matrix(.81709 0 0 .81709 124.825 145.825)"/><path d="M256 8C119.034 8 8 119.033 8 256c0 136.967 111.034 248 248 248s248-111.034 248-248S392.967 8 256 8Zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676ZM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676Z" style="fill:#888;fill-rule:nonzero" transform="matrix(.30366 0 0 .30366 506.822 60.065)"/></svg>'));var K=function(e,t,n,r){switch(n.globalAlpha=e.opacity/100,e.type){case"rectangle":case"diamond":case"ellipse":n.lineJoin="round",n.lineCap="round",t.draw(G(e));break;case"arrow":case"line":n.lineJoin="round",n.lineCap="round",G(e).forEach((function(e){t.draw(e)}));break;case"freedraw":n.save(),n.fillStyle=e.strokeColor;var o=function(e){return oe.get(e)}(e),i=G(e);i&&t.draw(i),n.fillStyle=e.strokeColor,n.fill(o),n.restore();break;case"image":var s,c=(0,a.wi)(e)?null===(s=r.imageCache.get(e.fileId))||void 0===s?void 0:s.image:void 0;null==c||c instanceof Promise?function(e,t,n){t.fillStyle="#E7E7E7",t.fillRect(0,0,e.width,e.height);var r=Math.min(e.width,e.height),o=Math.min(r,Math.min(.4*r,100));t.drawImage("error"===e.status?H:W,e.width/2-o/2,e.height/2-o/2,o,o)}(e,n,r.zoom.value):n.drawImage(c,0,0,e.width,e.height);break;default:if(!(0,a.iB)(e))throw new Error("Unimplemented type ".concat(e.type));var u=(0,l.dZ)(e.text),d=u&&!n.canvas.isConnected;d&&document.body.appendChild(n.canvas),n.canvas.setAttribute("dir",u?"rtl":"ltr"),n.save(),n.font=(0,l.mO)(e),n.fillStyle=e.strokeColor,n.textAlign=e.textAlign;for(var p=e.text.replace(/\r\n?/g,"\n").split("\n"),f="center"===e.textAlign?e.width/2:"right"===e.textAlign?e.width:0,h=(0,j.Rg)(e.fontSize,e.lineHeight),m=e.height-e.baseline,g=0;g<p.length;g++)n.fillText(p[g],f,(g+1)*h-m);n.restore(),d&&n.canvas.remove()}n.globalAlpha=1},V=new WeakMap,Y=new WeakMap,G=function(e){return Y.get(e)},q=function(e,t){return Y.set(e,t)},X=function(e){return Y.delete(e)},$=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={seed:e.seed,strokeLineDash:"dashed"===e.strokeStyle?z(e.strokeWidth):"dotted"===e.strokeStyle?F(e.strokeWidth):void 0,disableMultiStroke:"solid"!==e.strokeStyle,strokeWidth:"solid"!==e.strokeStyle?e.strokeWidth+.5:e.strokeWidth,fillWeight:e.strokeWidth/2,hachureGap:4*e.strokeWidth,roughness:e.roughness,stroke:e.strokeColor,preserveVertices:t};switch(e.type){case"rectangle":case"diamond":case"ellipse":return n.fillStyle=e.fillStyle,n.fill="transparent"===e.backgroundColor?void 0:e.backgroundColor,"ellipse"===e.type&&(n.curveFitting=1),n;case"line":case"freedraw":return(0,c.g6)(e.points)&&(n.fillStyle=e.fillStyle,n.fill="transparent"===e.backgroundColor?void 0:e.backgroundColor),n;case"arrow":return n;default:throw new Error("Unimplemented type ".concat(e.type))}},J=function(e,t){var n=Y.get(e);if(void 0===n)switch(V.delete(e),e.type){case"rectangle":if(e.roundness){var o=e.width,a=e.height,l=(0,c.yW)(Math.min(o,a),e);n=t.path("M ".concat(l," 0 L ").concat(o-l," 0 Q ").concat(o," 0, ").concat(o," ").concat(l," L ").concat(o," ").concat(a-l," Q ").concat(o," ").concat(a,", ").concat(o-l," ").concat(a," L ").concat(l," ").concat(a," Q 0 ").concat(a,", 0 ").concat(a-l," L 0 ").concat(l," Q 0 0, ").concat(l," 0"),$(e,!0))}else n=t.rectangle(0,0,e.width,e.height,$(e));q(e,n);break;case"diamond":var u=(0,s.UC)(e),d=(0,i.Z)(u,8),p=d[0],f=d[1],h=d[2],m=d[3],g=d[4],v=d[5],b=d[6],y=d[7];if(e.roundness){var w=(0,c.yW)(Math.abs(p-b),e),x=(0,c.yW)(Math.abs(m-f),e);n=t.path("M ".concat(p+w," ").concat(f+x," L ").concat(h-w," ").concat(m-x,"\n C ").concat(h," ").concat(m,", ").concat(h," ").concat(m,", ").concat(h-w," ").concat(m+x,"\n L ").concat(g+w," ").concat(v-x,"\n C ").concat(g," ").concat(v,", ").concat(g," ").concat(v,", ").concat(g-w," ").concat(v-x,"\n L ").concat(b+w," ").concat(y+x,"\n C ").concat(b," ").concat(y,", ").concat(b," ").concat(y,", ").concat(b+w," ").concat(y-x,"\n L ").concat(p-w," ").concat(f+x,"\n C ").concat(p," ").concat(f,", ").concat(p," ").concat(f,", ").concat(p+w," ").concat(f+x),$(e,!0))}else n=t.polygon([[p,f],[h,m],[g,v],[b,y]],$(e));q(e,n);break;case"ellipse":n=t.ellipse(e.width/2,e.height/2,e.width,e.height,$(e)),q(e,n);break;case"line":case"arrow":var k=$(e),_=e.points.length?e.points:[[0,0]];if(n=e.roundness?[t.curve(_,k)]:k.fill?[t.polygon(_,k)]:[t.linearPath(_,k)],"arrow"===e.type){var S=e.startArrowhead,E=void 0===S?null:S,P=e.endArrowhead,C=void 0===P?"arrow":P,O=function(e,n,r,o){var a=(0,s.Y5)(e,n,r,o);if(null===a)return[];if("dot"===o){var l=(0,i.Z)(a,3),c=l[0],u=l[1],d=l[2];return[t.circle(c,u,d,D(D({},k),{},{fill:e.strokeColor,fillStyle:"solid",stroke:"none"}))]}if("triangle"===o){var p=(0,i.Z)(a,6),f=p[0],h=p[1],m=p[2],g=p[3],v=p[4],b=p[5];return delete k.strokeLineDash,[t.polygon([[f,h],[m,g],[v,b],[f,h]],D(D({},k),{},{fill:e.strokeColor,fillStyle:"solid"}))]}var y=(0,i.Z)(a,6),w=y[0],x=y[1],_=y[2],S=y[3],E=y[4],P=y[5];if("dotted"===e.strokeStyle){var C=F(e.strokeWidth-1);k.strokeLineDash=[C[0],C[1]-1]}else delete k.strokeLineDash;return[t.line(_,S,w,x,k),t.line(E,P,w,x,k)]};if(null!==E){var j,T=O(e,n,"start",E);(j=n).push.apply(j,(0,r.Z)(T))}if(null!==C){var M,I=O(e,n,"end",C);(M=n).push.apply(M,(0,r.Z)(I))}}q(e,n);break;case"freedraw":ie(e),n=(0,c.g6)(e.points)?t.polygon(e.points,D(D({},$(e)),{},{stroke:"none"})):null,q(e,n);break;case"text":case"image":q(e,null)}},Q=function(e,t){var n,r=t?t.zoom:L.zoom,o=V.get(e),i=o&&o.zoomValue!==r.value&&!(null!=t&&t.shouldCacheIgnoreZoom),a=(null===(n=(0,j.WJ)(e))||void 0===n?void 0:n.version)||null;if(!o||i||o.theme!==t.theme||o.boundTextElementVersion!==a){var s=B(e,r,t);return V.set(e,s),s}return o},ee=function(e,t,n,r){var o=e.element,c=Z(o),u=e.scale,d=(0,s.qf)(o),f=(0,i.Z)(d,4),h=f[0],m=f[1],g=f[2],v=f[3];(0,a.F9)(o)&&(h=Math.floor(h),g=Math.ceil(g),m=Math.floor(m),v=Math.ceil(v));var b=((h+g)/2+r.scrollX)*window.devicePixelRatio,y=((m+v)/2+r.scrollY)*window.devicePixelRatio;n.save(),n.scale(1/window.devicePixelRatio,1/window.devicePixelRatio);var w=(0,j.WJ)(o);if((0,a.Yv)(o)&&w){var x=document.createElement("canvas"),k=x.getContext("2d"),_=Math.max((0,l.TE)(h,g),(0,l.TE)(m,v));x.width=_*window.devicePixelRatio*u+c*e.scale*10,x.height=_*window.devicePixelRatio*u+c*e.scale*10;var S=(x.width-e.canvas.width)/2,E=(x.height-e.canvas.height)/2;k.translate(x.width/2,x.height/2),k.rotate(o.angle),k.drawImage(e.canvas,-e.canvas.width/2,-e.canvas.height/2,e.canvas.width,e.canvas.height);var P=(0,s.qf)(w),C=(0,i.Z)(P,6),O=C[4],T=C[5];k.rotate(-o.angle);var M=x.width/2-(O-h)*window.devicePixelRatio*u-S-c*u,I=x.height/2-(T-m)*window.devicePixelRatio*u-E-c*u;k.translate(-M,-I),k.clearRect(-(w.width/2+p.gK)*window.devicePixelRatio*u,-(w.height/2+p.gK)*window.devicePixelRatio*u,(w.width+2*p.gK)*window.devicePixelRatio*u,(w.height+2*p.gK)*window.devicePixelRatio*u),n.translate(b,y),n.drawImage(x,-(g-h)/2*window.devicePixelRatio-S/u-c,-(v-m)/2*window.devicePixelRatio-E/u-c,x.width/u,x.height/u)}else if(n.translate(b,y),n.rotate(o.angle),"scale"in e.element&&!N(o,r)&&n.scale(e.element.scale[0],e.element.scale[1]),n.translate(-b,-y),n.drawImage(e.canvas,(h+r.scrollX)*window.devicePixelRatio-c*e.scale/e.scale,(m+r.scrollY)*window.devicePixelRatio-c*e.scale/e.scale,e.canvas.width/e.scale,e.canvas.height/e.scale),"true"==={REACT_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",REACT_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",REACT_APP_LIBRARY_URL:"https://libraries.excalidraw.com",REACT_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",REACT_APP_PORTAL_URL:"https://portal.excalidraw.com",REACT_APP_WS_SERVER_URL:"",REACT_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}',REACT_APP_GOOGLE_ANALYTICS_ID:"UA-387204-13",REACT_APP_MATOMO_URL:"https://excalidraw.matomo.cloud/",REACT_APP_CDN_MATOMO_TRACKER_URL:"//cdn.matomo.cloud/excalidraw.matomo.cloud/matomo.js",REACT_APP_MATOMO_SITE_ID:"1",REACT_APP_PLUS_APP:"https://app.excalidraw.com",PKG_NAME:"@excalidraw/excalidraw",PKG_VERSION:"0.15.3",IS_EXCALIDRAW_NPM_PACKAGE:!0}.REACT_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX&&(0,a.Xo)(o)){var D=(0,j.cw)(o);n.strokeStyle="#c92a2a",n.lineWidth=3,n.strokeRect((D.x+r.scrollX)*window.devicePixelRatio,(D.y+r.scrollY)*window.devicePixelRatio,(0,j.jd)(o)*window.devicePixelRatio,(0,j.N2)(o)*window.devicePixelRatio)}n.restore()},te=function(e,t,n,r,o){var d=t.generator;switch(e.type){case"selection":n.save(),n.translate(e.x+r.scrollX,e.y+r.scrollY),n.fillStyle="rgba(0, 0, 200, 0.04)";var p=.5/r.zoom.value;n.fillRect(p,p,e.width,e.height),n.lineWidth=1/r.zoom.value,n.strokeStyle="rgb(105, 101, 219)",n.strokeRect(p,p,e.width,e.height),n.restore();break;case"freedraw":if(J(e,d),r.isExporting){var f=(0,s.qf)(e),h=(0,i.Z)(f,4),m=h[0],g=h[1],v=h[2],b=h[3],y=(m+v)/2+r.scrollX,w=(g+b)/2+r.scrollY,x=(v-m)/2-(e.x-m),k=(b-g)/2-(e.y-g);n.save(),n.translate(y,w),n.rotate(e.angle),n.translate(-x,-k),K(e,t,n,r),n.restore()}else{var _=Q(e,r);ee(_,0,n,r)}break;case"rectangle":case"diamond":case"ellipse":case"line":case"arrow":case"image":case"text":if(J(e,d),r.isExporting){var S=(0,s.qf)(e),E=(0,i.Z)(S,4),P=E[0],C=E[1],O=E[2],M=E[3],I=(P+O)/2+r.scrollX,D=(C+M)/2+r.scrollY,A=(O-P)/2-(e.x-P),L=(M-C)/2-(e.y-C);if((0,a.iB)(e)){var N=(0,j.tl)(e);if((0,a.Yv)(N)){var z=T._.getBoundTextElementPosition(N,e);A=(O-P)/2-(z.x-P),L=(M-C)/2-(z.y-C)}}n.save(),n.translate(I,D),R(e,r)&&(n.filter="none");var F=(0,j.WJ)(e);if((0,a.Yv)(e)&&F){var B=document.createElement("canvas"),U=B.getContext("2d"),W=Math.max((0,l.TE)(P,O),(0,l.TE)(C,M)),H=Z(e);B.width=W*o.exportScale+10*H*o.exportScale,B.height=W*o.exportScale+10*H*o.exportScale,U.translate(B.width/2,B.height/2),U.scale(o.exportScale,o.exportScale),A=e.width/2-(e.x-P),L=e.height/2-(e.y-C),U.rotate(e.angle);var V=u.Z.canvas(B);U.translate(-A,-L),K(e,V,U,r),U.translate(A,L),U.rotate(-e.angle);var Y=(0,s.qf)(F),G=(0,i.Z)(Y,6),q=(P+O)/2-G[4],X=(C+M)/2-G[5];U.translate(-q,-X),U.clearRect(-F.width/2,-F.height/2,F.width,F.height),n.scale(1/o.exportScale,1/o.exportScale),n.drawImage(B,-B.width/2,-B.height/2,B.width,B.height)}else n.rotate(e.angle),"image"===e.type&&n.scale(e.scale[0],e.scale[1]),n.translate(-A,-L),K(e,t,n,r);n.restore()}else{var $=Q(e,r),te=n.imageSmoothingEnabled;null!=r&&r.shouldCacheIgnoreZoom||e.angle&&!(0,c.EK)(e.angle)||(n.imageSmoothingEnabled=!1),ee($,0,n,r),n.imageSmoothingEnabled=te}break;default:throw new Error("Unimplemented type ".concat(e.type))}},ne=function(e,t,n){if(void 0===n)return e.draw(t);var r={sets:t.sets,shape:t.shape,options:D(D({},t.options),{},{fixedDecimalPlaceDigits:n})};return e.draw(r)},re=function(e,t,n,r,o,u,d){var f=(0,s.qf)(e),h=(0,i.Z)(f,4),m=h[0],g=h[1],v=h[2],b=h[3],y=(v-m)/2-(e.x-m),w=(b-g)/2-(e.y-g);if((0,a.iB)(e)){var x=(0,j.tl)(e);if((0,a.Yv)(x)){var k=(0,s.qf)(x),_=(0,i.Z)(k,4),S=_[0],E=_[1],P=_[2],C=_[3],O=T._.getBoundTextElementPosition(x,e);y=(P-S)/2-(O.x-S),w=(C-E)/2-(O.y-E),o=o+O.x-e.x,u=u+O.y-e.y}}var I=180*e.angle/Math.PI,D=t.generator,L=n;if(e.link){var N=n.ownerDocument.createElementNS(p.hR,"a");N.setAttribute("href",(0,M.$)(e.link)),L.appendChild(N),L=N}switch(e.type){case"selection":throw new Error("Selection rendering is not supported for SVG");case"rectangle":case"diamond":case"ellipse":J(e,D);var R=ne(t,G(e),p.zK),z=e.opacity/100;1!==z&&(R.setAttribute("stroke-opacity","".concat(z)),R.setAttribute("fill-opacity","".concat(z))),R.setAttribute("stroke-linecap","round"),R.setAttribute("transform","translate(".concat(o||0," ").concat(u||0,") rotate(").concat(I," ").concat(y," ").concat(w,")")),L.appendChild(R);break;case"line":case"arrow":var F=(0,j.WJ)(e),Z=n.ownerDocument.createElementNS(p.hR,"mask");if(F){Z.setAttribute("id","mask-".concat(e.id));var B=n.ownerDocument.createElementNS(p.hR,"rect");o=o||0,u=u||0,B.setAttribute("x","0"),B.setAttribute("y","0"),B.setAttribute("fill","#fff"),B.setAttribute("width","".concat(e.width+100+o)),B.setAttribute("height","".concat(e.height+100+u)),Z.appendChild(B);var U=n.ownerDocument.createElementNS(p.hR,"rect"),W=T._.getBoundTextElementPosition(e,F),H=o+W.x-e.x,K=u+W.y-e.y;U.setAttribute("x",H.toString()),U.setAttribute("y",K.toString()),U.setAttribute("fill","#000"),U.setAttribute("width","".concat(F.width)),U.setAttribute("height","".concat(F.height)),U.setAttribute("opacity","1"),Z.appendChild(U)}J(e,D);var V=n.ownerDocument.createElementNS(p.hR,"g");F&&V.setAttribute("mask","url(#mask-".concat(e.id,")"));var Y=e.opacity/100;V.setAttribute("stroke-linecap","round"),G(e).forEach((function(n){var r=ne(t,n,p.zK);1!==Y&&(r.setAttribute("stroke-opacity","".concat(Y)),r.setAttribute("fill-opacity","".concat(Y))),r.setAttribute("transform","translate(".concat(o||0," ").concat(u||0,") rotate(").concat(I," ").concat(y," ").concat(w,")")),"line"===e.type&&(0,c.g6)(e.points)&&"transparent"!==e.backgroundColor&&r.setAttribute("fill-rule","evenodd"),V.appendChild(r)})),L.appendChild(V),L.append(Z);break;case"freedraw":J(e,D),ie(e);var q=e.opacity/100,X=G(e),$=X?ne(t,X,p.zK):n.ownerDocument.createElementNS(p.hR,"g");1!==q&&($.setAttribute("stroke-opacity","".concat(q)),$.setAttribute("fill-opacity","".concat(q))),$.setAttribute("transform","translate(".concat(o||0," ").concat(u||0,") rotate(").concat(I," ").concat(y," ").concat(w,")")),$.setAttribute("stroke","none");var Q=n.ownerDocument.createElementNS(p.hR,"path");Q.setAttribute("fill",e.strokeColor),Q.setAttribute("d",ae(e)),$.appendChild(Q),L.appendChild($);break;case"image":var ee=Math.round(e.width),te=Math.round(e.height),re=(0,a.wi)(e)&&r[e.fileId];if(re){var oe="image-".concat(re.id),se=n.querySelector("#".concat(oe));if(!se){(se=n.ownerDocument.createElementNS(p.hR,"symbol")).id=oe;var le=n.ownerDocument.createElementNS(p.hR,"image");le.setAttribute("width","100%"),le.setAttribute("height","100%"),le.setAttribute("href",re.dataURL),se.appendChild(le),L.prepend(se)}var ce=n.ownerDocument.createElementNS(p.hR,"use");if(ce.setAttribute("href","#".concat(oe)),d&&re.mimeType!==p.LO.svg&&ce.setAttribute("filter",A),ce.setAttribute("width","".concat(ee)),ce.setAttribute("height","".concat(te)),1!==e.scale[0]||1!==e.scale[1]){var ue=1!==e.scale[0]?-ee:0,de=1!==e.scale[1]?-te:0;ce.setAttribute("transform","scale(".concat(e.scale[0],", ").concat(e.scale[1],") translate(").concat(ue," ").concat(de,")"))}var pe=n.ownerDocument.createElementNS(p.hR,"g");pe.appendChild(ce),pe.setAttribute("transform","translate(".concat(o||0," ").concat(u||0,") rotate(").concat(I," ").concat(y," ").concat(w,")")),L.appendChild(pe)}break;default:if(!(0,a.iB)(e))throw new Error("Unimplemented type ".concat(e.type));var fe=e.opacity/100,he=n.ownerDocument.createElementNS(p.hR,"g");1!==fe&&(he.setAttribute("stroke-opacity","".concat(fe)),he.setAttribute("fill-opacity","".concat(fe))),he.setAttribute("transform","translate(".concat(o||0," ").concat(u||0,") rotate(").concat(I," ").concat(y," ").concat(w,")"));for(var me=e.text.replace(/\r\n?/g,"\n").split("\n"),ge=(0,j.Rg)(e.fontSize,e.lineHeight),ve="center"===e.textAlign?e.width/2:"right"===e.textAlign?e.width:0,be=(0,l.dZ)(e.text)?"rtl":"ltr",ye="center"===e.textAlign?"middle":"right"===e.textAlign||"rtl"===be?"end":"start",we=0;we<me.length;we++){var xe=n.ownerDocument.createElementNS(p.hR,"text");xe.textContent=me[we],xe.setAttribute("x","".concat(ve)),xe.setAttribute("y","".concat(we*ge)),xe.setAttribute("font-family",(0,l.$g)(e)),xe.setAttribute("font-size","".concat(e.fontSize,"px")),xe.setAttribute("fill",e.strokeColor),xe.setAttribute("text-anchor",ye),xe.setAttribute("style","white-space: pre;"),xe.setAttribute("direction",be),xe.setAttribute("dominant-baseline","text-before-edge"),he.appendChild(xe)}L.appendChild(he)}},oe=new WeakMap([]);function ie(e){var t=ae(e),n=new Path2D(t);return oe.set(e,n),n}function ae(e){return function(e){if(!e.length)return"";var t=e.length-1;return e.reduce((function(e,n,r,o){return r===t?e.push(n,se(n,o[0]),"L",o[0],"Z"):e.push(n,se(n,o[r+1])),e}),["M",e[0],"Q"]).join(" ").replace(le,"$1")}(function(e,t={}){return function(e,t={}){let{size:n=16,smoothing:r=.5,thinning:o=.5,simulatePressure:i=!0,easing:a=(e=>e),start:s={},end:l={},last:c=!1}=t,{cap:u=!0,easing:d=(e=>e*(2-e))}=s,{cap:p=!0,easing:y=(e=>--e*e*e+1)}=l;if(0===e.length||n<=0)return[];let k,C=e[e.length-1].runningLength,j=!1===s.taper?0:!0===s.taper?Math.max(n,C):s.taper,T=!1===l.taper?0:!0===l.taper?Math.max(n,C):l.taper,M=Math.pow(n*r,2),I=[],D=[],A=e.slice(0,10).reduce(((e,t)=>{let r=t.pressure;if(i){let o=P(1,t.distance/n),i=P(1,1-o);r=P(1,e+.275*o*(i-e))}return(e+r)/2}),e[0].pressure),L=f(n,o,e[e.length-1].pressure,a),N=e[0].vector,R=e[0].point,z=R,F=R,Z=z,B=!1;for(let t=0;t<e.length;t++){let{pressure:r}=e[t],{point:s,vector:l,distance:c,runningLength:u}=e[t];if(t<e.length-1&&C-u<3)continue;if(o){if(i){let e=P(1,c/n),t=P(1,1-e);r=P(1,A+.275*e*(t-A))}L=f(n,o,r,a)}else L=n/2;void 0===k&&(k=L);let p=u<j?d(u/j):1,x=C-u<T?y((C-u)/T):1;L=Math.max(.01,L*Math.min(p,x));let E=(t<e.length-1?e[t+1]:e[t]).vector,U=t<e.length-1?b(l,E):1,W=null!==U&&U<0;if(b(l,N)<0&&!B||W){let e=g(v(N),L);for(let t=1/13,n=0;n<=1;n+=t)F=_(m(s,e),s,O*n),I.push(F),Z=_(h(s,e),s,O*-n),D.push(Z);R=F,z=Z,W&&(B=!0);continue}if(B=!1,t===e.length-1){let e=g(v(l),L);I.push(m(s,e)),D.push(h(s,e));continue}let H=g(v(S(E,l,U)),L);F=m(s,H),(t<=1||w(R,F)>M)&&(I.push(F),R=F),Z=h(s,H),(t<=1||w(z,Z)>M)&&(D.push(Z),z=Z),A=r,N=l}let U=e[0].point.slice(0,2),W=e.length>1?e[e.length-1].point.slice(0,2):h(e[0].point,[1,1]),H=[],K=[];if(1===e.length){if(!j&&!T||c){let e=E(U,x(v(m(U,W))),-(k||L)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(_(e,U,2*O*r));return t}}else{if(!(j||T&&1===e.length))if(u)for(let e=1/13,t=e;t<=1;t+=e){let e=_(D[0],U,O*t);H.push(e)}else{let e=m(I[0],D[0]),t=g(e,.5),n=g(e,.51);H.push(m(U,t),m(U,n),h(U,n),h(U,t))}let t=v(function(e){return[-e[0],-e[1]]}(e[e.length-1].vector));if(T||j&&1===e.length)K.push(W);else if(p){let e=E(W,t,L);for(let t=1/29,n=t;n<1;n+=t)K.push(_(e,W,3*O*n))}else K.push(h(W,g(t,L)),h(W,g(t,.99*L)),m(W,g(t,.99*L)),m(W,g(t,L)))}return I.concat(K,D.reverse(),H)}(function(e,t={}){var n;let{streamline:r=.5,size:o=16,last:i=!1}=t;if(0===e.length)return[];let a=.15+.85*(1-r),s=Array.isArray(e[0])?e:e.map((({x:e,y:t,pressure:n=.5})=>[e,t,n]));if(2===s.length){let e=s[1];s=s.slice(0,-1);for(let t=1;t<5;t++)s.push(S(s[0],e,t/4))}1===s.length&&(s=[...s,[...h(s[0],[1,1]),...s[0].slice(2)]]);let l=[{point:[s[0][0],s[0][1]],pressure:s[0][2]>=0?s[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,u=0,d=l[0],p=s.length-1;for(let e=1;e<s.length;e++){let t=i&&e===p?s[e].slice(0,2):S(d.point,s[e],a);if(y(d.point,t))continue;let n=k(t,d.point);if(u+=n,e<p&&!c){if(u<o)continue;c=!0}d={point:t,pressure:s[e][2]>=0?s[e][2]:.5,vector:x(m(d.point,t)),distance:n,runningLength:u},l.push(d)}return l[0].vector=(null==(n=l[1])?void 0:n.vector)||[0,0],l}(e,t),t)}(e.simulatePressure?e.points:e.points.length?e.points.map((function(t,n){var r=(0,i.Z)(t,2);return[r[0],r[1],e.pressures[n]]})):[[0,0,.5]],{simulatePressure:e.simulatePressure,size:4.25*e.strokeWidth,thinning:.6,smoothing:.5,streamline:.5,easing:function(e){return Math.sin(e*Math.PI/2)},last:!!e.lastCommittedPoint}))}function se(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2]}var le=/(\s?[A-Z]?,?-?[0-9]*\.[0-9]{0,2})(([0-9]|e|-)*)/g},3547:function(e,t,n){"use strict";n.d(t,{Lu:function(){return E},Eu:function(){return D},M_:function(){return B}});var r,o=n(2577),i=n(1930),a=n(5284),s=n(1047),l=n(756),c=n(1868),u=n(3063),d=n(8982),p=n(6938),f=n(242),h=n(2325),m=n(8290),g=n(267),v=n(6340);!function(e){e.ACTIVE="active",e.AWAY="away",e.IDLE="idle"}(r||(r={}));var b=n(2335),y=n(4929),w=n(1974);function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function k(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}var _,S=(0,v.Q5)(),E=2,P=function(e,t,n,r,o,i,a,s){var l=arguments.length>8&&void 0!==arguments[8]&&arguments[8];e.save(),e.translate(i,a),e.rotate(s),l&&e.fillRect(t-i,n-a,r,o),e.strokeRect(t-i,n-a,r,o),e.restore()},C=function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.beginPath(),e.arc(t,n,r,0,2*Math.PI),e.fill(),o&&e.stroke()},O=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];e.strokeStyle="#5e5ad8",e.setLineDash([]),e.fillStyle="rgba(255, 255, 255, 0.9)",i?e.fillStyle="rgba(134, 131, 226, 0.9)":a&&(e.fillStyle="rgba(177, 151, 252, 0.7)"),C(e,r[0],r[1],o/n.zoom.value,!a)},j=function(e,t,n,r){if(t.selectedLinearElement){e.save(),e.translate(n.scrollX,n.scrollY),e.lineWidth=1/n.zoom.value;var o=p._.getPointsGlobalCoordinates(r),i=p._.POINT_HANDLE_SIZE,a=t.editingLinearElement?i:i/2;o.forEach((function(r,o){var i,s,l=!(null===(i=t.editingLinearElement)||void 0===i||null===(s=i.selectedPointsIndices)||void 0===s||!s.includes(o));O(e,t,n,r,a,l)})),p._.getEditorMidPoints(r,t).filter((function(e){return null!==e})).forEach((function(r){var s;null!=t&&null!==(s=t.selectedLinearElement)&&void 0!==s&&s.segmentMidPointHoveredCoords&&p._.arePointsEqual(r,t.selectedLinearElement.segmentMidPointHoveredCoords)?t.editingLinearElement?(O(e,t,n,r,a,!1),T(r,e,n)):(T(r,e,n),O(e,t,n,r,a,!1)):(t.editingLinearElement||2===o.length)&&O(e,t,n,r,i/2,!1,!0)})),e.restore()}},T=function(e,t,n){t.fillStyle="rgba(105, 101, 219, 0.4)",C(t,e[0],e[1],p._.POINT_HANDLE_SIZE/n.zoom.value,!1)},M=function(e){var t,n=e.elements,h=e.appState,v=e.scale,y=e.rc,k=e.canvas,_=e.renderConfig;if(null===k)return{atLeastOneVisibleElement:!1};var C=_.renderScrollbars,O=void 0===C||C,M=_.renderSelection,I=void 0===M||M,D=_.renderGrid,R=void 0===D||D,z=_.isExporting,B=_.selectionColor||a.black,U=k.getContext("2d");U.setTransform(1,0,0,1,0,0),U.save(),U.scale(v,v);var W=k.width/v,H=k.height/v;z&&"dark"===_.theme&&(U.filter=b.ZF),"string"==typeof _.viewBackgroundColor?(("transparent"===_.viewBackgroundColor||5===_.viewBackgroundColor.length||9===_.viewBackgroundColor.length||/(hsla|rgba)\(/.test(_.viewBackgroundColor))&&U.clearRect(0,0,W,H),U.save(),U.fillStyle=_.viewBackgroundColor,U.fillRect(0,0,W,H),U.restore()):U.clearRect(0,0,W,H),U.save(),U.scale(_.zoom.value,_.zoom.value),R&&h.gridSize&&function(e,t,n,r,o,i){e.save(),e.strokeStyle="rgba(0,0,0,0.1)",e.beginPath();for(var a=n;a<n+o+2*t;a+=t)e.moveTo(a,r-t),e.lineTo(a,r+i+2*t);for(var s=r;s<r+i+2*t;s+=t)e.moveTo(n-t,s),e.lineTo(n+o+2*t,s);e.stroke(),e.restore()}(U,h.gridSize,-Math.ceil(_.zoom.value/h.gridSize)*h.gridSize+_.scrollX%h.gridSize,-Math.ceil(_.zoom.value/h.gridSize)*h.gridSize+_.scrollY%h.gridSize,W/_.zoom.value,H/_.zoom.value);var K=n.filter((function(e){return Z(e,W,H,{zoom:_.zoom,offsetLeft:h.offsetLeft,offsetTop:h.offsetTop,scrollX:_.scrollX,scrollY:_.scrollY})})),V=void 0;if(K.forEach((function(e){try{var t;(0,u.lw)(e,y,U,_,h),(null===(t=h.editingLinearElement)||void 0===t?void 0:t.elementId)===e.id&&e&&(V=e),z||F(e,U,h)}catch(e){console.error(e)}})),V&&j(U,h,_,V),h.selectionElement)try{(0,u.lw)(h.selectionElement,y,U,_,h)}catch(e){console.error(e)}(0,m.N1)(h)&&h.suggestedBindings.filter((function(e){return null!=e})).forEach((function(e){N(U,_,e)}));var Y,G=(0,c.eD)(n,h);if(1===G.length&&(null===(t=h.editingLinearElement)||void 0===t?void 0:t.elementId)===G[0].id&&j(U,h,_,G[0]),h.selectedLinearElement&&h.selectedLinearElement.hoverPointIndex>=0&&function(e,t,n){var r,o,i=t.selectedLinearElement,a=i.elementId,s=i.hoverPointIndex;if(null===(r=t.editingLinearElement)||void 0===r||null===(o=r.selectedPointsIndices)||void 0===o||!o.includes(s)){var l=p._.getElement(a);if(l){var c=p._.getPointAtIndexGlobalCoordinates(l,s);e.save(),e.translate(n.scrollX,n.scrollY),T(c,e,n),e.restore()}}}(U,h,_),I&&!h.multiElement&&!h.editingLinearElement){var q,X=(0,g.oY)(G,h),$=G.map((function(e){return e.id}));if(1===G.length&&(0,w.bt)(G[0])&&(null===(q=h.selectedLinearElement)||void 0===q?void 0:q.elementId)===G[0].id&&!G[0].locked&&j(U,h,_,G[0]),X){var J,Q=n.reduce((function(e,t){var n=[];if($.includes(t.id)&&!(0,f.zq)(h,t)&&n.push(B),_.remoteSelectedElementIds[t.id]&&n.push.apply(n,(0,i.Z)(_.remoteSelectedElementIds[t.id].map((function(e){return(0,d.X)(e,h).background})))),n.length){var r=(0,s.qf)(t,!0),a=(0,o.Z)(r,6),l=a[0],c=a[1],u=a[2],p=a[3],m=a[4],g=a[5];e.push({angle:t.angle,elementX1:l,elementY1:c,elementX2:u,elementY2:p,selectionColors:n,dashed:!!_.remoteSelectedElementIds[t.id],cx:m,cy:g})}return e}),[]),ee=function(e){var t=(0,f.Fb)(n,e),r=(0,s.KP)(t),i=(0,o.Z)(r,4),l=i[0],c=i[1],u=i[2],d=i[3];Q.push({angle:0,elementX1:l,elementX2:u,elementY1:c,elementY2:d,selectionColors:[a.black],dashed:!0,cx:l+(u-l)/2,cy:c+(d-c)/2})},te=x((0,f.iJ)(h));try{for(te.s();!(J=te.n()).done;)ee(J.value)}catch(e){te.e(e)}finally{te.f()}h.editingGroupId&&ee(h.editingGroupId),Q.forEach((function(e){return L(U,_,e)}))}if(U.save(),U.translate(_.scrollX,_.scrollY),1===G.length){U.fillStyle=a.white;var ne=(0,s.PC)(G[0],_.zoom,"mouse");!h.viewModeEnabled&&X&&A(U,_,ne,G[0].angle)}else if(G.length>1&&!h.isRotating){var re=2*E/_.zoom.value;U.fillStyle=a.white;var oe=(0,s.KP)(G),ie=(0,o.Z)(oe,4),ae=ie[0],se=ie[1],le=ie[2],ce=ie[3],ue=U.getLineDash();U.setLineDash([2/_.zoom.value]);var de=U.lineWidth;U.lineWidth=1/_.zoom.value,U.strokeStyle=B,P(U,ae-re,se-re,le-ae+2*re,ce-se+2*re,(ae+le)/2,(se+ce)/2,0),U.lineWidth=de,U.setLineDash(ue);var pe=(0,s.kK)([ae,se,le,ce,(ae+le)/2,(se+ce)/2],0,_.zoom,"mouse",s.ox);G.some((function(e){return!e.locked}))&&A(U,_,pe,0)}U.restore()}for(var fe in U.restore(),_.remotePointerViewportCoords){var he=_.remotePointerViewportCoords[fe],me=he.x,ge=he.y;me-=h.offsetLeft,ge-=h.offsetTop;var ve=me<0||me>W-9||ge<0||ge>H-14;me=Math.max(me,0),me=Math.min(me,W-9),ge=Math.max(ge,0),ge=Math.min(ge,H-14);var be=(0,d.X)(fe,h),ye=be.background,we=be.stroke;U.save(),U.strokeStyle=we,U.fillStyle=ye;var xe=_.remotePointerUserStates[fe];(ve||xe===r.AWAY)&&(U.globalAlpha=.48),_.remotePointerButton&&"down"===_.remotePointerButton[fe]&&(U.beginPath(),U.arc(me,ge,15,0,2*Math.PI,!1),U.lineWidth=3,U.strokeStyle="#ffffff88",U.stroke(),U.closePath(),U.beginPath(),U.arc(me,ge,15,0,2*Math.PI,!1),U.lineWidth=1,U.strokeStyle=we,U.stroke(),U.closePath()),U.beginPath(),U.moveTo(me,ge),U.lineTo(me+1,ge+14),U.lineTo(me+4,ge+9),U.lineTo(me+9,ge+10),U.lineTo(me,ge),U.fill(),U.stroke();var ke=_.remotePointerUsernames[fe],_e="";xe===r.AWAY?_e=S?"⚫️":" (".concat(r.AWAY,")"):xe===r.IDLE&&(_e=S?"💤":" (".concat(r.IDLE,")"));var Se="".concat(ke||"").concat(_e?" ".concat(_e):"");if(!ve&&Se){var Ee=me+9,Pe=ge+14,Ce=U.measureText(Se),Oe=Ce.actualBoundingBoxDescent+Ce.actualBoundingBoxAscent,je=Ee-1,Te=Pe-1,Me=Ce.width+8+2,Ie=Oe+8+2;U.roundRect?(U.beginPath(),U.roundRect(je,Te,Me,Ie,4/_.zoom.value),U.fillStyle=ye,U.fill(),U.fillStyle=we,U.stroke()):(U.fillStyle=we,U.fillRect(je,Te,Me,Ie),U.fillStyle=ye,U.fillRect(Ee,Pe,Me-2,Ie-2)),U.fillStyle=a.white,U.fillText(Se,Ee+4,Pe+4+Ce.actualBoundingBoxAscent)}U.restore(),U.closePath()}return O&&(Y=(0,l.tJ)(n,W,H,_),U.save(),U.fillStyle=l.w1,U.strokeStyle="rgba(255,255,255,0.8)",[Y.horizontal,Y.vertical].forEach((function(e){e&&function(e,t,n,r,o,i){e.beginPath(),e.moveTo(t+i,n),e.lineTo(t+r-i,n),e.quadraticCurveTo(t+r,n,t+r,n+i),e.lineTo(t+r,n+o-i),e.quadraticCurveTo(t+r,n+o,t+r-i,n+o),e.lineTo(t+i,n+o),e.quadraticCurveTo(t,n+o,t,n+o-i),e.lineTo(t,n+i),e.quadraticCurveTo(t,n,t+i,n),e.closePath(),e.fill(),e.stroke()}(U,e.x,e.y,e.width,e.height,l.nn/2)})),U.restore()),U.restore(),{atLeastOneVisibleElement:K.length>0,scrollBars:Y}},I=(0,v.hR)((function(e){var t,n=M(e);null===(t=e.callback)||void 0===t||t.call(e,n)}),{trailing:!0}),D=function(e,t){var n;if(!t){var r=M(e);return null===(n=e.callback)||void 0===n||n.call(e,r),r}I(e)},A=function(e,t,n,r){Object.keys(n).forEach((function(i){var a=n[i];if(void 0!==a){var s=(0,o.Z)(a,4),l=s[0],c=s[1],u=s[2],d=s[3];e.save(),e.lineWidth=1/t.zoom.value,t.selectionColor&&(e.strokeStyle=t.selectionColor),"rotation"===i?C(e,l+u/2,c+d/2,u/2):e.roundRect?(e.beginPath(),e.roundRect(l,c,u,d,2/t.zoom.value),e.fill(),e.stroke()):P(e,l,c,u,d,l+u/2,c+d/2,r,!0),e.restore()}}))},L=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*E,o=n.angle,i=n.elementX1,a=n.elementY1,s=n.elementX2,l=n.elementY2,c=n.selectionColors,u=n.cx,d=n.cy,p=n.dashed,f=s-i,h=l-a,m=r/t.zoom.value,g=8/t.zoom.value,v=4/t.zoom.value;e.save(),e.translate(t.scrollX,t.scrollY),e.lineWidth=1/t.zoom.value;for(var b=c.length,y=0;y<b;++y)e.strokeStyle=c[y],p&&e.setLineDash([g,v+(g+v)*(b-1)]),e.lineDashOffset=(g+v)*y,P(e,i-m,a-m,f+2*m,h+2*m,u,d,o);e.restore()},N=function(e,t,n){var r=Array.isArray(n)?z:R;e.save(),e.translate(t.scrollX,t.scrollY),r(e,n),e.restore()},R=function(e,t){var n=(0,s.qf)(t),r=(0,o.Z)(n,4),i=r[0],a=r[1],l=r[2]-i,c=r[3]-a,u=(0,h.fb)(t,l,c);e.strokeStyle="rgba(0,0,0,.05)",e.lineWidth=u-4;var d=2+u/2;switch(t.type){case"rectangle":case"text":case"image":P(e,i-d,a-d,l+2*d,c+2*d,i+l/2,a+c/2,t.angle);break;case"diamond":var p=Math.hypot(l,c);!function(e,t,n,r,o,i){e.save(),e.translate(r,o),e.rotate(i),e.beginPath(),e.moveTo(0,n/2),e.lineTo(t/2,0),e.lineTo(0,-n/2),e.lineTo(-t/2,0),e.closePath(),e.stroke(),e.restore()}(e,l+d*p/c*2,c+d*p/l*2,i+l/2,a+c/2,t.angle);break;case"ellipse":!function(e,t,n,r,o,i){e.beginPath(),e.ellipse(r,o,t/2,n/2,i,0,2*Math.PI),e.stroke()}(e,l+2*d,c+2*d,i+l/2,a+c/2,t.angle)}},z=function(e,t){var n=(0,o.Z)(t,3),r=n[0],i=n[1],a=n[2],s=(0,h.fb)(a,a.width,a.height);e.strokeStyle="rgba(0,0,0,0)",e.fillStyle="rgba(0,0,0,.05)",("both"===i?[0,-1]:"start"===i?[0]:[-1]).forEach((function(t){var n=p._.getPointAtIndexGlobalCoordinates(r,t),i=(0,o.Z)(n,2),a=i[0],l=i[1];C(e,a,l,s)}))},F=function(e,t,n){if(e.link&&!n.selectedElementIds[e.id]){var r=(0,s.qf)(e),i=(0,o.Z)(r,4),a=i[0],l=i[1],c=i[2],u=i[3],d=(0,y.sw)([a,l,c,u],e.angle,n),p=(0,o.Z)(d,4),f=p[0],h=p[1],m=p[2],g=p[3],v=f+m/2,b=h+g/2;if(t.save(),t.translate(n.scrollX+v,n.scrollY+b),t.rotate(e.angle),_&&_.zoom===n.zoom.value)t.drawImage(_,f-v,h-b,m,g);else{(_=document.createElement("canvas")).zoom=n.zoom.value,_.width=m*window.devicePixelRatio*n.zoom.value,_.height=g*window.devicePixelRatio*n.zoom.value;var w=_.getContext("2d");w.scale(window.devicePixelRatio*n.zoom.value,window.devicePixelRatio*n.zoom.value),w.fillStyle="#fff",w.fillRect(0,0,m,g),w.drawImage(y.rj,0,0,m,g),w.restore(),t.drawImage(_,f-v,h-b,m,g)}t.restore()}},Z=function(e,t,n,r){var i=(0,s.Pi)(e),a=(0,o.Z)(i,4),l=a[0],c=a[1],u=a[2],d=a[3],p=(0,v.dE)({clientX:r.offsetLeft,clientY:r.offsetTop},r),f=(0,v.dE)({clientX:r.offsetLeft+t,clientY:r.offsetTop+n},r);return p.x<=u&&p.y<=d&&f.x>=l&&f.y>=c},B=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=o.offsetX,a=void 0===i?0:i,s=o.offsetY,l=void 0===s?0:s,c=o.exportWithDarkMode,d=void 0!==c&&c;n&&e.forEach((function(e,o){if(!e.isDeleted)try{(0,u.Rg)(e,t,n,r,e.x+a,e.y+l,d)}catch(e){console.error(e)}}))}},1564:function(e,t,n){"use strict";var r=n(1930),o=n(8821),i=n(5169),a=n(1047),s=function(e){return"string"==typeof e},l=function(){function e(){(0,o.Z)(this,e),this.callbacks=new Set,this.nonDeletedElements=[],this.elements=[],this.elementsMap=new Map}return(0,i.Z)(e,[{key:"getElementsIncludingDeleted",value:function(){return this.elements}},{key:"getNonDeletedElements",value:function(){return this.nonDeletedElements}},{key:"getElement",value:function(e){return this.elementsMap.get(e)||null}},{key:"getNonDeletedElement",value:function(e){var t=this.getElement(e);return t&&(0,a.qP)(t)?t:null}},{key:"mapElements",value:function(e){var t=!1,n=this.elements.map((function(n){var r=e(n);return r!==n&&(t=!0),r}));return t&&this.replaceAllElements(n),t}},{key:"replaceAllElements",value:function(t){var n=this;this.elements=t,this.elementsMap.clear(),t.forEach((function(t){n.elementsMap.set(t.id,t),e.mapElementToScene(t,n)})),this.nonDeletedElements=(0,a.Lm)(this.elements),this.informMutation()}},{key:"informMutation",value:function(){for(var e=0,t=Array.from(this.callbacks);e<t.length;e++)(0,t[e])()}},{key:"addCallback",value:function(e){var t=this;if(this.callbacks.has(e))throw new Error;return this.callbacks.add(e),function(){if(!t.callbacks.has(e))throw new Error;t.callbacks.delete(e)}}},{key:"destroy",value:function(){var t=this;e.sceneMapById.forEach((function(n,r){n===t&&e.sceneMapById.delete(r)})),this.callbacks.clear()}},{key:"insertElementAtIndex",value:function(e,t){if(!Number.isFinite(t)||t<0)throw new Error("insertElementAtIndex can only be called with index >= 0");var n=[].concat((0,r.Z)(this.elements.slice(0,t)),[e],(0,r.Z)(this.elements.slice(t)));this.replaceAllElements(n)}},{key:"getElementIndex",value:function(e){return this.elements.findIndex((function(t){return t.id===e}))}}],[{key:"mapElementToScene",value:function(e,t){s(e)?this.sceneMapById.set(e,t):(this.sceneMapByElement.set(e,t),this.sceneMapById.set(e.id,t))}},{key:"getScene",value:function(e){return s(e)?this.sceneMapById.get(e)||null:this.sceneMapByElement.get(e)||null}}]),e}();l.sceneMapByElement=new WeakMap,l.sceneMapById=new Map,t.Z=l},8120:function(e,t,n){"use strict";n.d(t,{$b:function(){return r},CJ:function(){return d},M9:function(){return a},PD:function(){return o},QG:function(){return u},Un:function(){return c},Zd:function(){return i},bZ:function(){return l},sh:function(){return s}});var r=function(e){return"rectangle"===e||"ellipse"===e||"diamond"===e||"line"===e||"freedraw"===e},o=function(e){return"image"!==e},i=function(e){return"rectangle"===e||"ellipse"===e||"diamond"===e||"freedraw"===e||"arrow"===e||"line"===e},a=function(e){return"rectangle"===e||"ellipse"===e||"diamond"===e||"arrow"===e||"line"===e},s=function(e){return"rectangle"===e||"arrow"===e||"line"===e||"diamond"===e},l=function(e){return"text"===e},c=function(e){return"arrow"===e},u=function(e,t){for(var n=null,r=e.length-1;r>=0;--r){var o=e[r];if(!o.isDeleted&&t(o)){n=o;break}}return n},d=function(e,t){return e.filter((function(e){return!e.isDeleted&&t(e)}))}},4162:function(e,t,n){"use strict";n.d(t,{$D:function(){return v},Cg:function(){return y},NL:function(){return g},oj:function(){return m}});var r=n(2577),o=n(8950),i=n(2975),a=n.n(i),s=n(8234),l=n(8925),c=n(3547),u=n(6340),d=n(2335),p=n(8897),f=n(5523),h=n(5637),m="\x3c!-- svg-source:excalidraw --\x3e",g=function(){var e=(0,o.Z)(a().mark((function e(t,n,o,i){var l,u,f,m,g,v,y,w,x,k,_,S,E,P,C,O,j,T,M=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=i.exportBackground,u=i.exportPadding,f=void 0===u?d.qy:u,m=i.viewBackgroundColor,g=M.length>4&&void 0!==M[4]?M[4]:function(e,t){var r=document.createElement("canvas");return r.width=e*n.exportScale,r.height=t*n.exportScale,{canvas:r,scale:n.exportScale}},v=b(t,f),y=(0,r.Z)(v,4),w=y[0],x=y[1],k=y[2],_=y[3],S=g(k,_),E=S.canvas,P=S.scale,C=void 0===P?1:P,O=(0,p.im)(),e.next=7,(0,h.Xx)({imageCache:new Map,fileIds:(0,h.oA)(t).map((function(e){return e.fileId})),files:o});case 7:return j=e.sent,T=j.imageCache,(0,c.Eu)({elements:t,appState:n,scale:C,rc:s.Z.canvas(E),canvas:E,renderConfig:{viewBackgroundColor:l?m:null,scrollX:-w+f,scrollY:-x+f,zoom:O.zoom,remotePointerViewportCoords:{},remoteSelectedElementIds:{},shouldCacheIgnoreZoom:!1,remotePointerUsernames:{},remotePointerUserStates:{},theme:n.exportWithDarkMode?"dark":"light",imageCache:T,renderScrollbars:!1,renderSelection:!1,renderGrid:!1,isExporting:!0}}),e.abrupt("return",E);case 11:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),v=function(){var e=(0,o.Z)(a().mark((function e(t,o,i,l){var u,p,h,g,v,y,w,x,k,_,S,E,P,C,O,j,T,M,I;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=o.exportPadding,p=void 0===u?d.qy:u,h=o.viewBackgroundColor,g=o.exportScale,v=void 0===g?1:g,y=o.exportEmbedScene,w="",!y){e.next=14;break}return e.prev=3,e.next=6,Promise.resolve().then(n.bind(n,673));case 6:return e.next=8,e.sent.encodeSvgMetadata({text:null!=l&&l.serializeAsJSON?null==l||null===(x=l.serializeAsJSON)||void 0===x?void 0:x.call(l):(0,f.I_)(t,o,i||{},"local")});case 8:w=e.sent,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),console.error(e.t0);case 14:return k=b(t,p),_=(0,r.Z)(k,4),S=_[0],E=_[1],P=_[2],C=_[3],(O=document.createElementNS(d.hR,"svg")).setAttribute("version","1.1"),O.setAttribute("xmlns",d.hR),O.setAttribute("viewBox","0 0 ".concat(P," ").concat(C)),O.setAttribute("width","".concat(P*v)),O.setAttribute("height","".concat(C*v)),o.exportWithDarkMode&&O.setAttribute("filter",d.ZF),j="https://excalidraw.com/",j=window.EXCALIDRAW_ASSET_PATH||"https://unpkg.com/".concat("@excalidraw/excalidraw","@").concat("0.15.3"),null!==(T=j)&&void 0!==T&&T.startsWith("/")&&(j=j.replace("/","".concat(window.location.origin,"/"))),j="".concat(j,"/dist/excalidraw-assets/"),O.innerHTML="\n ".concat(m,"\n ").concat(w,'\n <defs>\n <style class="style-fonts">\n @font-face {\n font-family: "Virgil";\n src: url("').concat(j,'Virgil.woff2");\n }\n @font-face {\n font-family: "Cascadia";\n src: url("').concat(j,'Cascadia.woff2");\n }\n </style>\n </defs>\n '),o.exportBackground&&h&&((M=O.ownerDocument.createElementNS(d.hR,"rect")).setAttribute("x","0"),M.setAttribute("y","0"),M.setAttribute("width","".concat(P)),M.setAttribute("height","".concat(C)),M.setAttribute("fill",h),O.appendChild(M)),I=s.Z.svg(O),(0,c.M_)(t,I,O,i||{},{offsetX:-S+p,offsetY:-E+p,exportWithDarkMode:o.exportWithDarkMode}),e.abrupt("return",O);case 29:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t,n,r,o){return e.apply(this,arguments)}}(),b=function(e,t){var n=(0,l.KP)(e),o=(0,r.Z)(n,4),i=o[0],a=o[1],s=o[2],c=o[3];return[i,a,(0,u.TE)(i,s)+2*t,(0,u.TE)(a,c)+t+t]},y=function(e,t,n){var o=b(e,t).map((function(e){return Math.trunc(e*n)})),i=(0,r.Z)(o,4);return[i[2],i[3]]}},75:function(e,t,n){"use strict";n.d(t,{$b:function(){return a.$b},CJ:function(){return a.CJ},M9:function(){return a.M9},N:function(){return o.N},PR:function(){return o.PR},QG:function(){return a.QG},Un:function(){return a.Un},W:function(){return i.W},Yp:function(){return o.Yp},Zd:function(){return a.Zd},Zs:function(){return o.Zs},_4:function(){return r._4},bZ:function(){return a.bZ},eD:function(){return o.eD},j:function(){return s.j},sh:function(){return a.sh}});var r=n(756),o=n(1868),i=n(2264),a=n(8120),s=n(746)},2264:function(e,t,n){"use strict";n.d(t,{W:function(){return s},s:function(){return a}});var r=n(2577),o=n(1047),i=n(6340),a=function(e){var t=e.scenePoint,n=e.viewportDimensions,r=e.zoom;return{scrollX:n.width/2/r.value-t.x,scrollY:n.height/2/r.value-t.y}},s=function(e,t,n){if(!(e=(0,o.n_)(e)).length)return{scrollX:0,scrollY:0};var s=(0,o.KP)(e),l=(0,r.Z)(s,4),c=l[0],u=l[1],d=l[2],p=l[3];if(function(e,t,n){var o=(0,r.Z)(n,4),a=o[0],s=o[1],l=o[2],c=o[3],u=(0,i._i)({sceneX:a,sceneY:s},e),d=u.x,p=u.y,f=(0,i._i)({sceneX:l,sceneY:c},e),h=f.x,m=f.y;return h-d>e.width||m-p>e.height}(t,0,[c,u,d,p])){var f=(0,o.os)(e,(0,i.dE)({clientX:t.scrollX,clientY:t.scrollY},t)),h=(0,r.Z)(f,4);c=h[0],u=h[1],d=h[2],p=h[3]}return a({scenePoint:{x:(c+d)/2,y:(u+p)/2},viewportDimensions:{width:t.width,height:t.height},zoom:t.zoom})}},756:function(e,t,n){"use strict";n.d(t,{WM:function(){return s},_4:function(){return d},nn:function(){return l},tJ:function(){return u},w1:function(){return c}});var r=n(2577),o=n(1047),i=n(6340),a=n(8211),s=4,l=6,c="rgba(0,0,0,0.3)",u=function(e,t,n,c){var u=c.scrollX,d=c.scrollY,p=c.zoom;if(0===e.length)return{horizontal:null,vertical:null};var f=(0,o.KP)(e),h=(0,r.Z)(f,4),m=h[0],g=h[1],v=h[2],b=h[3],y=t/p.value,w=n/p.value,x=t-y,k=n-w,_={top:parseInt((0,i.IH)("sat")),bottom:parseInt((0,i.IH)("sab")),left:parseInt((0,i.IH)("sal")),right:parseInt((0,i.IH)("sar"))},S=(0,a.G3)().rtl,E=x/2-u+_.left,P=k/2-d+_.top,C=E+y-_.right,O=P+w-_.bottom,j=Math.min(m,E),T=Math.min(g,P),M=Math.max(v,C),I=Math.max(b,O);return{horizontal:E===j&&C===M?null:{x:Math.max(_.left,s)+(E-j)/(M-j)*t,y:n-l-Math.max(s,_.bottom),width:(C-E)/(M-j)*t-Math.max(2*s,_.left+_.right),height:l},vertical:P===T&&O===I?null:{x:S?Math.max(_.left,s):t-l-Math.max(_.right,s),y:(P-T)/(I-T)*n+Math.max(_.top,s),width:l,height:(O-P)/(I-T)*n-Math.max(2*s,_.top+_.bottom)}}},d=function(e,t,n){var o=[e.horizontal,e.vertical].map((function(e){return null!=e&&e.x<=t&&t<=e.x+e.width&&e.y<=n&&n<=e.y+e.height})),i=(0,r.Z)(o,2),a=i[0],s=i[1];return{isOverEither:a||s,isOverHorizontal:a,isOverVertical:s}}},1868:function(e,t,n){"use strict";n.d(t,{N:function(){return s},PR:function(){return l},Yp:function(){return a},Zs:function(){return u},eD:function(){return c}});var r=n(2577),o=n(1047),i=n(1974),a=function(e,t){var n=(0,o.qf)(t),a=(0,r.Z)(n,4),s=a[0],l=a[1],c=a[2],u=a[3];return e.filter((function(e){var t=(0,o.Pi)(e),n=(0,r.Z)(t,4),a=n[0],d=n[1],p=n[2],f=n[3];return!1===e.locked&&"selection"!==e.type&&!(0,i.Xh)(e)&&s<=a&&l<=d&&c>=p&&u>=f}))},s=function(e,t){return e.some((function(e){return t.selectedElementIds[e.id]}))},l=function(e,t,n){var r=Array.from(new Set(c(e,t).map((function(e){return n(e)}))));return 1===r.length?r[0]:null},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.filter((function(e){return t.selectedElementIds[e.id]||n&&(0,i.Xh)(e)&&t.selectedElementIds[null==e?void 0:e.containerId]?e:null}))},u=function(e,t){return t.editingElement?[t.editingElement]:c(e,t,!0)}},746:function(e,t,n){"use strict";n.d(t,{E:function(){return i},j:function(){return o}});var r=n(2335),o=function(e){return Math.max(r.Zj,Math.min(e,30))},i=function(e,t){var n=e.viewportX,r=e.viewportY,o=e.nextZoom,i=n-t.offsetLeft,a=r-t.offsetTop,s=t.zoom.value;return{scrollX:t.scrollX+(i-i/s)+-(i-i/o),scrollY:t.scrollY+(a-a/s)+-(a-a/o),zoom:{value:o}}}},6340:function(e,t,n){"use strict";n.d(t,{$9:function(){return X},$g:function(){return y},$h:function(){return se},AK:function(){return W},B4:function(){return P},C3:function(){return te},Ds:function(){return x},FG:function(){return H},Fc:function(){return h},G3:function(){return ee},I4:function(){return re},IH:function(){return Z},Ip:function(){return J},KJ:function(){return M},Mj:function(){return de},OF:function(){return I},Om:function(){return j},Oo:function(){return m},PI:function(){return G},Pr:function(){return N},Q5:function(){return $},Qm:function(){return Y},TE:function(){return O},Uk:function(){return D},_Z:function(){return v},_i:function(){return F},ag:function(){return ie},cx:function(){return K},dE:function(){return z},dZ:function(){return U},h2:function(){return oe},hR:function(){return k},mO:function(){return w},qr:function(){return V},qz:function(){return Q},rB:function(){return A},s:function(){return b},tH:function(){return q},uY:function(){return R},v4:function(){return ae},w8:function(){return ue},wO:function(){return g},wo:function(){return L},xn:function(){return ne},xp:function(){return ce},y8:function(){return le},yo:function(){return C},z8:function(){return T}});var r=n(6655),o=n(7169),i=n(1930),a=n(2577),s=n(5284),l=n(56),c=n(2335),u=n(5156),d=n(8897);function p(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?p(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(){var e=new Date,t=e.getFullYear(),n="".concat(e.getMonth()+1).padStart(2,"0"),r="".concat(e.getDate()).padStart(2,"0"),o="".concat(e.getHours()).padStart(2,"0"),i="".concat(e.getMinutes()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o).concat(i)},m=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},g=function(e){return e instanceof HTMLElement&&e.className.includes("ToolIcon")},v=function(e){return e instanceof HTMLElement&&"wysiwyg"===e.dataset.type||e instanceof HTMLBRElement||e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement},b=function(e){return e instanceof HTMLElement&&"wysiwyg"===e.dataset.type||e instanceof HTMLBRElement||e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement&&("text"===e.type||"number"===e.type)},y=function(e){for(var t=e.fontFamily,n=0,r=Object.entries(c.ut);n<r.length;n++){var o=(0,a.Z)(r[n],2),i=o[0];if(o[1]===t)return"".concat(i,", ").concat(c._D)}return c._D},w=function(e){var t=e.fontSize,n=e.fontFamily;return"".concat(t,"px ").concat(y({fontFamily:n}))},x=function(e,t){var n=0,r=null,o=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r=i,clearTimeout(n),n=window.setTimeout((function(){r=null,e.apply(void 0,i)}),t)};return o.flush=function(){if(clearTimeout(n),r){var t=r;r=null,e.apply(void 0,(0,i.Z)(t))}},o.cancel=function(){r=null,clearTimeout(n)},o},k=function(e,t){var n=null,r=null,o=null,a=function t(a){n=window.requestAnimationFrame((function(){n=null,e.apply(void 0,(0,i.Z)(a)),r=null,o&&(r=o,o=null,t(r))}))},s=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];r=i,null===n?a(r):null!=t&&t.trailing&&(o=i)};return s.flush=function(){null!==n&&(cancelAnimationFrame(n),n=null),r&&(e.apply(void 0,(0,i.Z)(o||r)),r=o=null)},s.cancel=function(){r=o=null,null!==n&&(cancelAnimationFrame(n),n=null)},s};function _(e){return 1-Math.pow(1-e,4)}var S,E,P=function(e,t,n,r){var o,a=!1,s=0,l=(null==r?void 0:r.duration)||250,c=(null==r?void 0:r.easeFn)||_;return s=window.requestAnimationFrame((function r(u){if(!a){void 0===o&&(o=u);var d=u-o;if(d<l){var p=c(d/l),f=e.map((function(e,n){return(t[n]-e)*p+e}));n.apply(void 0,(0,i.Z)(f)),s=window.requestAnimationFrame(r)}else n.apply(void 0,(0,i.Z)(t))}})),function(){a=!0,window.cancelAnimationFrame(s)}},C=function(e,t){if(!e.length||t<1)return[];for(var n=0,r=0,o=Array(Math.ceil(e.length/t));n<e.length;)o[r++]=e.slice(n,n+=t);return o},O=function(e,t){return Math.abs(e-t)},j=function(e,t){return"custom"===t.type?f(f({},e.activeTool),{},{type:"custom",customType:t.customType}):f(f({},e.activeTool),{},{lastActiveTool:void 0===t.lastActiveToolBeforeEraser?e.activeTool.lastActiveTool:t.lastActiveToolBeforeEraser,type:t.type,customType:null})},T=function(e){e&&(e.style.cursor="")},M=function(e,t){e&&(e.style.cursor=t)},I=function(e,t){S&&S.theme===t||function(){var e=t===c.C6.DARK;(S=document.createElement("canvas")).theme=t,S.height=20,S.width=20;var n=S.getContext("2d");n.lineWidth=1,n.beginPath(),n.arc(S.width/2,S.height/2,5,0,2*Math.PI),n.fillStyle=e?s.black:s.white,n.fill(),n.strokeStyle=e?s.white:s.black,n.stroke(),E=S.toDataURL(c.LO.svg)}(),M(e,"url(".concat(E,") ").concat(10," ").concat(10,", auto"))},D=function(e,t){e&&("selection"===t.activeTool.type?T(e):(0,d.l$)(t)?e.style.cursor=c.oc.GRAB:(0,d.EN)(t)?I(e,t.theme):["image","custom"].includes(t.activeTool.type)||(e.style.cursor=c.oc.CROSSHAIR))},A=function(){var e;return"HTML"===(null===(e=document.fullscreenElement)||void 0===e?void 0:e.nodeName)},L=function(){return document.documentElement.requestFullscreen()},N=function(){return document.exitFullscreen()},R=function(e){return e=e.replace(/\bAlt\b/i,"Alt").replace(/\bShift\b/i,"Shift").replace(/\b(Enter|Return)\b/i,"Enter"),c.Um?e.replace(/\bCtrlOrCmd\b/gi,"Cmd").replace(/\bAlt\b/i,"Option"):e.replace(/\bCtrlOrCmd\b/gi,"Ctrl")},z=function(e,t){var n=e.clientX,r=e.clientY,o=t.zoom,i=t.offsetLeft,a=t.offsetTop,s=t.scrollX,l=t.scrollY;return{x:(n-i)/o.value-s,y:(r-a)/o.value-l}},F=function(e,t){var n=e.sceneX,r=e.sceneY,o=t.zoom,i=t.offsetLeft,a=t.offsetTop,s=t.scrollX,l=t.scrollY;return{x:(n+s)*o.value+i,y:(r+l)*o.value+a}},Z=function(e){return getComputedStyle(document.documentElement).getPropertyValue("--".concat(e))},B=new RegExp("^[^".concat("A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿Ⰰ-﬜﷾-﹯﻽-￿","]*[").concat("֑-߿יִ-﷽ﹰ-ﻼ","]")),U=function(e){return B.test(e)},W=function(e){var t=(0,a.Z)(e,2);return{x:t[0],y:t[1]}},H=function(e){if("AbortError"!==(null==e?void 0:e.name))throw e;console.warn(e)},K=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n<0&&(n=e.length+n);for(var r=(n=Math.min(e.length,Math.max(n,0)))-1;++r<e.length;)if(t(e[r],r,e))return r;return-1},V=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-1;n<0&&(n=e.length+n);for(var r=(n=Math.min(e.length-1,Math.max(n,0)))+1;--r>-1;)if(t(e[r],r,e))return r;return-1},Y=function(e){var t=5===e.length&&"0"===e.substr(4,1),n=9===e.length&&"00"===e.substr(7,2);return t||n||e===l.Z.elementBackground[0]},G=function(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n},q=function(e){return function(t){(0,u.unstable_batchedUpdates)(e,t)}},X=function(e){return k((function(t){(0,u.unstable_batchedUpdates)(e,t)}))},$=function(){var e=document.createElement("canvas").getContext("2d");return!!e&&(e.fillStyle="#f00",e.textBaseline="top",e.font="32px Arial",e.fillText("😀",0,0),0!==e.getImageData(12,12,1,1).data[0])},J=function(e){for(var t=e.parentElement;t;){if(t===document.body)return document;var n=window.getComputedStyle(t).overflowY;if(t.scrollHeight>t.clientHeight&&("auto"===n||"scroll"===n||"overlay"===n))return t;t=t.parentElement}return document},Q=function(e){for(var t=e.parentElement;t;){if(t.tabIndex>-1)return void t.focus();t=t.parentElement}},ee=function(e){return Array.from(e).map((function(e){return"0".concat(e.toString(16)).slice(-2)})).join("")},te=function(){return oe()?1:Date.now()},ne=function(e){return e.reduce((function(e,t){return e.set("string"==typeof t?t:t.id,t),e}),new Map)},re=function(e){return e.reduce((function(e,t,n){return e.set(t.id,[t,n]),e}),new Map)},oe=function(){return!1},ie=function(e,t){return new CustomEvent(e,{detail:{nativeEvent:t},cancelable:!0})},ae=function(e,t){var n=!1;for(var o in t){var i=t[o];if(void 0!==i){if(e[o]===i&&("object"!==(0,r.Z)(i)||null===i))continue;n=!0}}return n?f(f({},e),t):e},se=function(){try{return window.self===window.top?"top":"iframe"}catch(e){return"iframe"}},le=function(e){return!!e&&"object"===(0,r.Z)(e)&&"then"in e&&"catch"in e&&"finally"in e},ce=function(e){var t=null==e?void 0:e.querySelectorAll("button, a, input, select, textarea, div[tabindex], label[tabindex]");return t?Array.from(t).filter((function(e){return e.tabIndex>-1&&!e.disabled})):[]},ue=function(e,t){var n=Object.keys(e),r=Object.keys(e);return n.length===r.length&&n.every((function(n){return e[n]===t[n]}))},de=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).checkForDefaultPrevented,r=void 0===n||n;return function(n){if(null==e||e(n),!r||!n.defaultPrevented)return null==t?void 0:t(n)}}},9669:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg=="},7984:function(e){"use strict";e.exports='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>'},1639:function(e){"use strict";e.exports='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path fill="%23ced4da" d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>'},9729:function(e,t,n){"use strict";e.exports=n.p+"excalidraw-assets/Assistant-Bold.woff2"},1273:function(e,t,n){"use strict";e.exports=n.p+"excalidraw-assets/Assistant-Medium.woff2"},8303:function(e,t,n){"use strict";e.exports=n.p+"excalidraw-assets/Assistant-Regular.woff2"},9577:function(e,t,n){"use strict";e.exports=n.p+"excalidraw-assets/Assistant-SemiBold.woff2"},3147:function(e,t,n){"use strict";e.exports=n.p+"excalidraw-assets/Cascadia.woff2"},3940:function(e,t,n){"use strict";e.exports=n.p+"excalidraw-assets/Virgil.woff2"},9787:function(e){"use strict";e.exports=r},5156:function(e){"use strict";e.exports=o},9649:function(e,t,n){var r=n(8114).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),s=new O(r||[]);return a(i,"_invoke",{value:S(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h={};function m(){}function g(){}function v(){}var b={};d(b,l,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(j([])));w&&w!==n&&i.call(w,l)&&(b=w);var x=v.prototype=m.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,a,s,l){var c=f(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function S(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{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function E(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(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;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,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function P(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function j(e){if(e){var t=e[l];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:T}}function T(){return{value:void 0,done:!0}}return g.prototype=v,a(x,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:g,configurable:!0}),g.displayName=d(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},k(_.prototype),d(_.prototype,c,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new _(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(x),d(x,u,"Generator"),d(x,l,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,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(C),!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 s=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)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,h):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),h},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),C(n),h}},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;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8114: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},2975:function(e,t,n){var r=n(9649)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},7017:function(e,t,n){"use strict";function r(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}n.d(t,{Z:function(){return r}})},3173:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},8950:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).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 s(e){r(a,o,i,s,l,"next",e)}function l(e){r(a,o,i,s,l,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return o}})},8821:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},5169:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return o}})},7169:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},2312:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},2248:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(5901);function o(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&&(0,r.Z)(e,t)}},2726:function(e,t,n){"use strict";function r(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}n.d(t,{Z:function(){return r}})},7245:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(6655),o=n(3173);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},5901:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},2577:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9139);function o(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,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||(0,r.Z)(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.")}()}},1930:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7017),o=n(9139);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(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.")}()}},6655:function(e,t,n){"use strict";function r(e){return 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},r(e)}n.d(t,{Z:function(){return r}})},9139:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7017);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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)?(0,r.Z)(e,t):void 0}}},5605:function(e,t,n){"use strict";n.d(t,{x0:function(){return r}});let r=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"")},5284:function(e){"use strict";e.exports=JSON.parse('{"white":"#ffffff","black":"#000000","gray":["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],"red":["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],"pink":["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],"grape":["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],"violet":["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],"indigo":["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],"blue":["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],"cyan":["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],"teal":["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],"green":["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],"lime":["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],"yellow":["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],"orange":["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]}')},1463:function(e){"use strict";e.exports=JSON.parse('{"labels":{"paste":"Paste","pasteAsPlaintext":"Paste as plaintext","pasteCharts":"Paste charts","selectAll":"Select all","multiSelect":"Add element to selection","moveCanvas":"Move canvas","cut":"Cut","copy":"Copy","copyAsPng":"Copy to clipboard as PNG","copyAsSvg":"Copy to clipboard as SVG","copyText":"Copy to clipboard as text","bringForward":"Bring forward","sendToBack":"Send to back","bringToFront":"Bring to front","sendBackward":"Send backward","delete":"Delete","copyStyles":"Copy styles","pasteStyles":"Paste styles","stroke":"Stroke","background":"Background","fill":"Fill","strokeWidth":"Stroke width","strokeStyle":"Stroke style","strokeStyle_solid":"Solid","strokeStyle_dashed":"Dashed","strokeStyle_dotted":"Dotted","sloppiness":"Sloppiness","opacity":"Opacity","textAlign":"Text align","edges":"Edges","sharp":"Sharp","round":"Round","arrowheads":"Arrowheads","arrowhead_none":"None","arrowhead_arrow":"Arrow","arrowhead_bar":"Bar","arrowhead_dot":"Dot","arrowhead_triangle":"Triangle","fontSize":"Font size","fontFamily":"Font family","onlySelected":"Only selected","withBackground":"Background","exportEmbedScene":"Embed scene","exportEmbedScene_details":"Scene data will be saved into the exported PNG/SVG file so that the scene can be restored from it.\\nWill increase exported file size.","addWatermark":"Add \\"Made with Excalidraw\\"","handDrawn":"Hand-drawn","normal":"Normal","code":"Code","small":"Small","medium":"Medium","large":"Large","veryLarge":"Very large","solid":"Solid","hachure":"Hachure","zigzag":"Zigzag","crossHatch":"Cross-hatch","thin":"Thin","bold":"Bold","left":"Left","center":"Center","right":"Right","extraBold":"Extra bold","architect":"Architect","artist":"Artist","cartoonist":"Cartoonist","fileTitle":"File name","colorPicker":"Color picker","canvasColors":"Used on canvas","canvasBackground":"Canvas background","drawingCanvas":"Drawing canvas","layers":"Layers","actions":"Actions","language":"Language","liveCollaboration":"Live collaboration...","duplicateSelection":"Duplicate","untitled":"Untitled","name":"Name","yourName":"Your name","madeWithExcalidraw":"Made with Excalidraw","group":"Group selection","ungroup":"Ungroup selection","collaborators":"Collaborators","showGrid":"Show grid","addToLibrary":"Add to library","removeFromLibrary":"Remove from library","libraryLoadingMessage":"Loading library…","libraries":"Browse libraries","loadingScene":"Loading scene…","align":"Align","alignTop":"Align top","alignBottom":"Align bottom","alignLeft":"Align left","alignRight":"Align right","centerVertically":"Center vertically","centerHorizontally":"Center horizontally","distributeHorizontally":"Distribute horizontally","distributeVertically":"Distribute vertically","flipHorizontal":"Flip horizontal","flipVertical":"Flip vertical","viewMode":"View mode","toggleExportColorScheme":"Toggle export color scheme","share":"Share","showStroke":"Show stroke color picker","showBackground":"Show background color picker","toggleTheme":"Toggle theme","personalLib":"Personal Library","excalidrawLib":"Excalidraw Library","decreaseFontSize":"Decrease font size","increaseFontSize":"Increase font size","unbindText":"Unbind text","bindText":"Bind text to the container","createContainerFromText":"Wrap text in a container","link":{"edit":"Edit link","create":"Create link","label":"Link"},"lineEditor":{"edit":"Edit line","exit":"Exit line editor"},"elementLock":{"lock":"Lock","unlock":"Unlock","lockAll":"Lock all","unlockAll":"Unlock all"},"statusPublished":"Published","sidebarLock":"Keep sidebar open"},"library":{"noItems":"No items added yet...","hint_emptyLibrary":"Select an item on canvas to add it here, or install a library from the public repository, below.","hint_emptyPrivateLibrary":"Select an item on canvas to add it here."},"buttons":{"clearReset":"Reset the canvas","exportJSON":"Export to file","exportImage":"Export image...","export":"Save to...","exportToPng":"Export to PNG","exportToSvg":"Export to SVG","copyToClipboard":"Copy to clipboard","copyPngToClipboard":"Copy PNG to clipboard","scale":"Scale","save":"Save to current file","saveAs":"Save as","load":"Open","getShareableLink":"Get shareable link","close":"Close","selectLanguage":"Select language","scrollBackToContent":"Scroll back to content","zoomIn":"Zoom in","zoomOut":"Zoom out","resetZoom":"Reset zoom","menu":"Menu","done":"Done","edit":"Edit","undo":"Undo","redo":"Redo","resetLibrary":"Reset library","createNewRoom":"Create new room","fullScreen":"Full screen","darkMode":"Dark mode","lightMode":"Light mode","zenMode":"Zen mode","exitZenMode":"Exit zen mode","cancel":"Cancel","clear":"Clear","remove":"Remove","publishLibrary":"Publish","submit":"Submit","confirm":"Confirm"},"alerts":{"clearReset":"This will clear the whole canvas. Are you sure?","couldNotCreateShareableLink":"Couldn\'t create shareable link.","couldNotCreateShareableLinkTooBig":"Couldn\'t create shareable link: the scene is too big","couldNotLoadInvalidFile":"Couldn\'t load invalid file","importBackendFailed":"Importing from backend failed.","cannotExportEmptyCanvas":"Cannot export empty canvas.","couldNotCopyToClipboard":"Couldn\'t copy to clipboard.","decryptFailed":"Couldn\'t decrypt data.","uploadedSecurly":"The upload has been secured with end-to-end encryption, which means that Excalidraw server and third parties can\'t read the content.","loadSceneOverridePrompt":"Loading external drawing will replace your existing content. Do you wish to continue?","collabStopOverridePrompt":"Stopping the session will overwrite your previous, locally stored drawing. Are you sure?\\n\\n(If you want to keep your local drawing, simply close the browser tab instead.)","errorAddingToLibrary":"Couldn\'t add item to the library","errorRemovingFromLibrary":"Couldn\'t remove item from the library","confirmAddLibrary":"This will add {{numShapes}} shape(s) to your library. Are you sure?","imageDoesNotContainScene":"This image does not seem to contain any scene data. Have you enabled scene embedding during export?","cannotRestoreFromImage":"Scene couldn\'t be restored from this image file","invalidSceneUrl":"Couldn\'t import scene from the supplied URL. It\'s either malformed, or doesn\'t contain valid Excalidraw JSON data.","resetLibrary":"This will clear your library. Are you sure?","removeItemsFromsLibrary":"Delete {{count}} item(s) from library?","invalidEncryptionKey":"Encryption key must be of 22 characters. Live collaboration is disabled.","collabOfflineWarning":"No internet connection available.\\nYour changes will not be saved!"},"errors":{"unsupportedFileType":"Unsupported file type.","imageInsertError":"Couldn\'t insert image. Try again later...","fileTooBig":"File is too big. Maximum allowed size is {{maxSize}}.","svgImageInsertError":"Couldn\'t insert SVG image. The SVG markup looks invalid.","invalidSVGString":"Invalid SVG.","cannotResolveCollabServer":"Couldn\'t connect to the collab server. Please reload the page and try again.","importLibraryError":"Couldn\'t load library","collabSaveFailed":"Couldn\'t save to the backend database. If problems persist, you should save your file locally to ensure you don\'t lose your work.","collabSaveFailed_sizeExceeded":"Couldn\'t save to the backend database, the canvas seems to be too big. You should save the file locally to ensure you don\'t lose your work.","brave_measure_text_error":{"start":"Looks like you are using Brave browser with the","aggressive_block_fingerprint":"Aggressively Block Fingerprinting","setting_enabled":"setting enabled","break":"This could result in breaking the","text_elements":"Text Elements","in_your_drawings":"in your drawings","strongly_recommend":"We strongly recommend disabling this setting. You can follow","steps":"these steps","how":"on how to do so","disable_setting":" If disabling this setting doesn\'t fix the display of text elements, please open an","issue":"issue","write":"on our GitHub, or write us on","discord":"Discord"}},"toolBar":{"selection":"Selection","image":"Insert image","rectangle":"Rectangle","diamond":"Diamond","ellipse":"Ellipse","arrow":"Arrow","line":"Line","freedraw":"Draw","text":"Text","library":"Library","lock":"Keep selected tool active after drawing","penMode":"Pen mode - prevent touch","link":"Add/ Update link for a selected shape","eraser":"Eraser","hand":"Hand (panning tool)"},"headings":{"canvasActions":"Canvas actions","selectedShapeActions":"Selected shape actions","shapes":"Shapes"},"hints":{"canvasPanning":"To move canvas, hold mouse wheel or spacebar while dragging, or use the hand tool","linearElement":"Click to start multiple points, drag for single line","freeDraw":"Click and drag, release when you\'re finished","text":"Tip: you can also add text by double-clicking anywhere with the selection tool","text_selected":"Double-click or press ENTER to edit text","text_editing":"Press Escape or CtrlOrCmd+ENTER to finish editing","linearElementMulti":"Click on last point or press Escape or Enter to finish","lockAngle":"You can constrain angle by holding SHIFT","resize":"You can constrain proportions by holding SHIFT while resizing,\\nhold ALT to resize from the center","resizeImage":"You can resize freely by holding SHIFT,\\nhold ALT to resize from the center","rotate":"You can constrain angles by holding SHIFT while rotating","lineEditor_info":"Hold CtrlOrCmd and Double-click or press CtrlOrCmd + Enter to edit points","lineEditor_pointSelected":"Press Delete to remove point(s),\\nCtrlOrCmd+D to duplicate, or drag to move","lineEditor_nothingSelected":"Select a point to edit (hold SHIFT to select multiple),\\nor hold Alt and click to add new points","placeImage":"Click to place the image, or click and drag to set its size manually","publishLibrary":"Publish your own library","bindTextToElement":"Press enter to add text","deepBoxSelect":"Hold CtrlOrCmd to deep select, and to prevent dragging","eraserRevert":"Hold Alt to revert the elements marked for deletion","firefox_clipboard_write":"This feature can likely be enabled by setting the \\"dom.events.asyncClipboard.clipboardItem\\" flag to \\"true\\". To change the browser flags in Firefox, visit the \\"about:config\\" page."},"canvasError":{"cannotShowPreview":"Cannot show preview","canvasTooBig":"The canvas may be too big.","canvasTooBigTip":"Tip: try moving the farthest elements a bit closer together."},"errorSplash":{"headingMain_pre":"Encountered an error. Try ","headingMain_button":"reloading the page.","clearCanvasMessage":"If reloading doesn\'t work, try ","clearCanvasMessage_button":"clearing the canvas.","clearCanvasCaveat":" This will result in loss of work ","trackedToSentry_pre":"The error with identifier ","trackedToSentry_post":" was tracked on our system.","openIssueMessage_pre":"We were very cautious not to include your scene information on the error. If your scene is not private, please consider following up on our ","openIssueMessage_button":"bug tracker.","openIssueMessage_post":" Please include information below by copying and pasting into the GitHub issue.","sceneContent":"Scene content:"},"roomDialog":{"desc_intro":"You can invite people to your current scene to collaborate with you.","desc_privacy":"Don\'t worry, the session uses end-to-end encryption, so whatever you draw will stay private. Not even our server will be able to see what you come up with.","button_startSession":"Start session","button_stopSession":"Stop session","desc_inProgressIntro":"Live-collaboration session is now in progress.","desc_shareLink":"Share this link with anyone you want to collaborate with:","desc_exitSession":"Stopping the session will disconnect you from the room, but you\'ll be able to continue working with the scene, locally. Note that this won\'t affect other people, and they\'ll still be able to collaborate on their version.","shareTitle":"Join a live collaboration session on Excalidraw"},"errorDialog":{"title":"Error"},"exportDialog":{"disk_title":"Save to disk","disk_details":"Export the scene data to a file from which you can import later.","disk_button":"Save to file","link_title":"Shareable link","link_details":"Export as a read-only link.","link_button":"Export to Link","excalidrawplus_description":"Save the scene to your Excalidraw+ workspace.","excalidrawplus_button":"Export","excalidrawplus_exportError":"Couldn\'t export to Excalidraw+ at this moment..."},"helpDialog":{"blog":"Read our blog","click":"click","deepSelect":"Deep select","deepBoxSelect":"Deep select within box, and prevent dragging","curvedArrow":"Curved arrow","curvedLine":"Curved line","documentation":"Documentation","doubleClick":"double-click","drag":"drag","editor":"Editor","editLineArrowPoints":"Edit line/arrow points","editText":"Edit text / add label","github":"Found an issue? Submit","howto":"Follow our guides","or":"or","preventBinding":"Prevent arrow binding","tools":"Tools","shortcuts":"Keyboard shortcuts","textFinish":"Finish editing (text editor)","textNewLine":"Add new line (text editor)","title":"Help","view":"View","zoomToFit":"Zoom to fit all elements","zoomToSelection":"Zoom to selection","toggleElementLock":"Lock/unlock selection","movePageUpDown":"Move page up/down","movePageLeftRight":"Move page left/right"},"clearCanvasDialog":{"title":"Clear canvas"},"publishDialog":{"title":"Publish library","itemName":"Item name","authorName":"Author name","githubUsername":"GitHub username","twitterUsername":"Twitter username","libraryName":"Library name","libraryDesc":"Library description","website":"Website","placeholder":{"authorName":"Your name or username","libraryName":"Name of your library","libraryDesc":"Description of your library to help people understand its usage","githubHandle":"GitHub handle (optional), so you can edit the library once submitted for review","twitterHandle":"Twitter username (optional), so we know who to credit when promoting over Twitter","website":"Link to your personal website or elsewhere (optional)"},"errors":{"required":"Required","website":"Enter a valid URL"},"noteDescription":{"pre":"Submit your library to be included in the ","link":"public library repository","post":"for other people to use in their drawings."},"noteGuidelines":{"pre":"The library needs to be manually approved first. Please read the ","link":"guidelines","post":" before submitting. You will need a GitHub account to communicate and make changes if requested, but it is not strictly required."},"noteLicense":{"pre":"By submitting, you agree the library will be published under the ","link":"MIT License, ","post":"which in short means anyone can use them without restrictions."},"noteItems":"Each library item must have its own name so it\'s filterable. The following library items will be included:","atleastOneLibItem":"Please select at least one library item to get started","republishWarning":"Note: some of the selected items are marked as already published/submitted. You should only resubmit items when updating an existing library or submission."},"publishSuccessDialog":{"title":"Library submitted","content":"Thank you {{authorName}}. Your library has been submitted for review. You can track the status","link":"here"},"confirmDialog":{"resetLibrary":"Reset library","removeItemsFromLib":"Remove selected items from library"},"encrypted":{"tooltip":"Your drawings are end-to-end encrypted so Excalidraw\'s servers will never see them.","link":"Blog post on end-to-end encryption in Excalidraw"},"stats":{"angle":"Angle","element":"Element","elements":"Elements","height":"Height","scene":"Scene","selected":"Selected","storage":"Storage","title":"Stats for nerds","total":"Total","version":"Version","versionCopy":"Click to copy","versionNotAvailable":"Version not available","width":"Width"},"toast":{"addedToLibrary":"Added to library","copyStyles":"Copied styles.","copyToClipboard":"Copied to clipboard.","copyToClipboardAsPng":"Copied {{exportSelection}} to clipboard as PNG\\n({{exportColorScheme}})","fileSaved":"File saved.","fileSavedToFilename":"Saved to {filename}","canvas":"canvas","selection":"selection","pasteAsSingleElement":"Use {{shortcut}} to paste as a single element,\\nor paste into an existing text editor"},"colors":{"495057":"Gray 7","ffffff":"White","f8f9fa":"Gray 0","f1f3f5":"Gray 1","fff5f5":"Red 0","fff0f6":"Pink 0","f8f0fc":"Grape 0","f3f0ff":"Violet 0","edf2ff":"Indigo 0","e7f5ff":"Blue 0","e3fafc":"Cyan 0","e6fcf5":"Teal 0","ebfbee":"Green 0","f4fce3":"Lime 0","fff9db":"Yellow 0","fff4e6":"Orange 0","transparent":"Transparent","ced4da":"Gray 4","868e96":"Gray 6","fa5252":"Red 6","e64980":"Pink 6","be4bdb":"Grape 6","7950f2":"Violet 6","4c6ef5":"Indigo 6","228be6":"Blue 6","15aabf":"Cyan 6","12b886":"Teal 6","40c057":"Green 6","82c91e":"Lime 6","fab005":"Yellow 6","fd7e14":"Orange 6","000000":"Black","343a40":"Gray 8","c92a2a":"Red 9","a61e4d":"Pink 9","862e9c":"Grape 9","5f3dc4":"Violet 9","364fc7":"Indigo 9","1864ab":"Blue 9","0b7285":"Cyan 9","087f5b":"Teal 9","2b8a3e":"Green 9","5c940d":"Lime 9","e67700":"Yellow 9","d9480f":"Orange 9"},"welcomeScreen":{"app":{"center_heading":"All your data is saved locally in your browser.","center_heading_plus":"Did you want to go to the Excalidraw+ instead?","menuHint":"Export, preferences, languages, ..."},"defaults":{"menuHint":"Export, preferences, and more...","center_heading":"Diagrams. Made. Simple.","toolbarHint":"Pick a tool & Start drawing!","helpHint":"Shortcuts & help"}}}')},4451:function(e){"use strict";e.exports=JSON.parse('{"ar-SA":89,"bg-BG":52,"bn-BD":57,"ca-ES":96,"cs-CZ":72,"da-DK":31,"de-DE":100,"el-GR":98,"en":100,"es-ES":99,"eu-ES":99,"fa-IR":91,"fi-FI":96,"fr-FR":99,"gl-ES":99,"he-IL":99,"hi-IN":73,"hu-HU":85,"id-ID":98,"it-IT":99,"ja-JP":97,"kab-KAB":93,"kk-KZ":19,"ko-KR":99,"ku-TR":91,"lt-LT":61,"lv-LV":93,"mr-IN":100,"my-MM":40,"nb-NO":100,"nl-NL":92,"nn-NO":86,"oc-FR":94,"pa-IN":79,"pl-PL":87,"pt-BR":96,"pt-PT":99,"ro-RO":100,"ru-RU":96,"si-LK":8,"sk-SK":99,"sl-SI":100,"sv-SE":99,"ta-IN":90,"th-TH":39,"tr-TR":98,"uk-UA":93,"vi-VN":52,"zh-CN":99,"zh-HK":25,"zh-TW":100}')}},s={};function l(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,exports:{}};return a[e](n,n.exports,l),n.exports}l.m=a,l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},l.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);l.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){i[e]=function(){return n[e]}}));return i.default=function(){return n},l.d(o,i),o},l.d=function(e,t){for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.f={},l.e=function(e){return Promise.all(Object.keys(l.f).reduce((function(t,n){return l.f[n](e,t),t}),[]))},l.u=function(e){return"excalidraw-assets/"+{22:"locales/kk-KZ-json",537:"locales/th-TH-json",1204:"locales/ja-JP-json",1302:"locales/si-LK-json",1477:"locales/my-MM-json",1513:"locales/el-GR-json",1628:"locales/bg-BG-json",1690:"locales/oc-FR-json",1790:"locales/da-DK-json",2091:"locales/ar-SA-json",2312:"locales/he-IL-json",2359:"locales/nb-NO-json",2404:"locales/ta-IN-json",2943:"locales/gl-ES-json",3024:"locales/nl-NL-json",3031:"locales/ku-TR-json",3082:"locales/de-DE-json",3162:"locales/pa-IN-json",3397:"locales/mr-IN-json",3421:"locales/zh-TW-json",3512:"locales/fi-FI-json",3674:"locales/pl-PL-json",3682:"locales/fr-FR-json",3721:"locales/pt-BR-json",3808:"locales/id-ID-json",3885:"locales/nn-NO-json",4e3:"locales/vi-VN-json",4680:"locales/zh-CN-json",4736:"vendor",4977:"locales/tr-TR-json",5089:"locales/ro-RO-json",5130:"locales/ca-ES-json",5330:"locales/fa-IR-json",5395:"locales/pt-PT-json",6071:"locales/sl-SI-json",6239:"locales/it-IT-json",6265:"locales/cs-CZ-json",6768:"locales/lv-LV-json",6844:"locales/ko-KR-json",7368:"locales/hu-HU-json",7429:"locales/bn-BD-json",7759:"locales/uk-UA-json",7920:"locales/zh-HK-json",8081:"locales/eu-ES-json",8124:"locales/ru-RU-json",8340:"locales/lt-LT-json",8534:"locales/sv-SE-json",8750:"locales/sk-SK-json",8759:"locales/es-ES-json",9551:"locales/kab-KAB-json",9828:"locales/hi-IN-json"}[e]+"-"+{22:"1f9df2b51e34996bad30",537:"3a152569bbebfec7c6c0",1204:"ef6ec5abb0c3c53c7a51",1302:"db1222db995d9425e281",1477:"1a05d5c242c822079dca",1513:"79f7d66730b39df84f8e",1628:"72ac7b7548d7fefdcd2a",1690:"e90ca79174b6e1eccb72",1790:"ed85a6f48e1df51b1b46",2091:"06d4bd2f3a164162f2b8",2312:"3280be0edae615c7685f",2359:"7ea7ab2356e76889af8d",2404:"4063d11b19f24794564a",2943:"2117445509ba7c479ee0",3024:"5805f36f33a3f8e53adc",3031:"d10a4bb9ede3c08a08e1",3082:"f70dfb7201a16dc3f9fc",3162:"1854ecccf3c6f8ea9c46",3397:"c922a007bb00d3e4f3b1",3421:"c39caba2da3f001066a8",3512:"d43636fb51002f55e2a4",3674:"b4be83b26070e4cf70ca",3682:"b5ea877625968f748b7f",3721:"2e7a1690edc8d46e8842",3808:"6031eb8be253b20c28e9",3885:"8209f0f674435b52293d",4e3:"2f5b95c0011820e16f4b",4680:"2cb13b38b6615ada3097",4736:"53d1c69ef585b6dd219b",4977:"9002b1505b0931924d42",5089:"3397acad1a98b5093c8b",5130:"6108f4ae0be3d1e369a6",5330:"586a1324f942d89620b6",5395:"aba1622a80e32e465a3d",6071:"68eba9ac00ae57bae3f4",6239:"446b14f993000d0f572f",6265:"1ae99f296c9febb99f72",6768:"1e3a5e87e39d2d90274c",6844:"cf33ecf52ab95055544b",7368:"6ccf0d8a164ecec52187",7429:"759924ef13bd9e602cb3",7759:"4e345c790342b7672248",7920:"4bcbf71743fda1544a84",8081:"1cc77079b354b962615f",8124:"8ab49e8d0473e92a8ab9",8340:"08c7fc343ef2f533ec5f",8534:"36b97455521e61312a47",8750:"50dcb09552f93c2de3a4",8759:"682b92427b8b27bb0aa8",9551:"69853849c71eff277ba0",9828:"dad8ce15f9b7a435a926"}[e]+".js"},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},i="ExcalidrawLib:",l.l=function(e,t,r,o){if(n[e])n[e].push(t);else{var a,s;if(void 0!==r)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+r){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,l.nc&&a.setAttribute("nonce",l.nc),a.setAttribute("data-webpack",i+r),a.src=e),n[e]=[t];var p=function(t,r){a.onerror=a.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(e){return e(r)})),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.p="",function(){l.b=document.baseURI||self.location.href;var e={1388:0};l.f.j=function(t,n){var r=l.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=o);var i=l.p+l.u(t),a=new Error;l.l(i,(function(n){if(l.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=function(t,n){var r,o,i=n[0],a=n[1],s=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(r in a)l.o(a,r)&&(l.m[r]=a[r]);s&&s(l)}for(t&&t(n);c<i.length;c++)o=i[c],l.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkExcalidrawLib=self.webpackChunkExcalidrawLib||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),l.nc=void 0;var c={};return function(){"use strict";l.r(c),l.d(c,{Button:function(){return _e},Excalidraw:function(){return Ke},FONT_FAMILY:function(){return e.ut},Footer:function(){return H},LiveCollaborationTrigger:function(){return Te},MIME_TYPES:function(){return e.LO},MainMenu:function(){return K.Z},Sidebar:function(){return Re.Y},THEME:function(){return e.C6},WelcomeScreen:function(){return ve},bumpVersion:function(){return Le.ZP},defaultLang:function(){return O.Fp},exportToBlob:function(){return De.Fl},exportToCanvas:function(){return De.NL},exportToClipboard:function(){return De.i1},exportToSvg:function(){return De.$D},getFreeDrawSvgPath:function(){return De.N7},getNonDeletedElements:function(){return Me.Lm},getSceneVersion:function(){return Me.Uo},isInvisiblySmallElement:function(){return Me.QD},isLinearElement:function(){return Ae.bt},languages:function(){return O.Mj},loadFromBlob:function(){return De.cT},loadLibraryFromBlob:function(){return De.lV},loadSceneOrLibraryFromBlob:function(){return De.ZY},mergeLibraryItems:function(){return De.zh},mutateElement:function(){return Le.DR},newElementWith:function(){return Le.BE},normalizeLink:function(){return ze.$},parseLibraryTokensFromUrl:function(){return Ne.Di},restore:function(){return Ie.nu},restoreAppState:function(){return Ie.lY},restoreElements:function(){return Ie.ET},restoreLibraryItems:function(){return Ie.wJ},sceneCoordsToViewportCoords:function(){return I._i},serializeAsJSON:function(){return De.I_},serializeLibraryAsJSON:function(){return De.NI},useDevice:function(){return M.Fy},useHandleLibrary:function(){return Ne.xS},useI18n:function(){return O.QT},viewportCoordsToSceneCoords:function(){return I.dE}});var e=l(2335);"production"!==e.Vi.TEST&&(l.p=window.EXCALIDRAW_ASSET_PATH||"https://unpkg.com/".concat("@excalidraw/excalidraw","@").concat("0.15.3","/dist/"));var t=l(487),n=l.n(t),r=l(631),o=l.n(r),i=l(2052),a=l.n(i),s=l(4010),u=l.n(s),d=l(1469),p=l.n(d),f=l(9329),h=l.n(f),m=l(4295),g={};g.styleTagTransform=h(),g.setAttributes=u(),g.insert=a().bind(null,"head"),g.domAPI=o(),g.insertStyleElement=p(),n()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals;var v=l(6479),b=l.n(v),y=l(9713),w=l.n(y),x=l(9787),k=l.n(x),_=l(8950),S=l(2577),E=l(2975),P=l.n(E),C=l(5440),O=l(8211),j=l(4512),T=function(e){var t=(0,x.useState)(!0),n=(0,S.Z)(t,2),r=n[0],o=n[1];return(0,x.useEffect)((function(){var t=function(){var e=(0,_.Z)(P().mark((function e(){return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,O.m0)(n);case 2:o(!1);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=O.Mj.find((function(t){return t.code===e.langCode}))||O.Fp;t()}),[e.langCode]),r?(0,j.jsx)(C.z,{theme:e.theme}):e.children},M=l(2134),I=l(6340),D=l(9915),A={};A.styleTagTransform=h(),A.setAttributes=u(),A.insert=a().bind(null,"head"),A.domAPI=o(),A.insertStyleElement=p(),n()(D.Z,A),D.Z&&D.Z.locals&&D.Z.locals;var L=l(9310),N={};N.styleTagTransform=h(),N.setAttributes=u(),N.insert=a().bind(null,"head"),N.domAPI=o(),N.insertStyleElement=p(),n()(L.Z,N),L.Z&&L.Z.locals&&L.Z.locals;var R=l(4739),z=l(9487),F=l(45),Z=l(8888),B=l(8793),U={};U.styleTagTransform=h(),U.setAttributes=u(),U.insert=a().bind(null,"head"),U.domAPI=o(),U.insertStyleElement=p(),n()(B.Z,U),B.Z&&B.Z.locals&&B.Z.locals;var W=function(e){var t=e.children,n=(0,Z.R6)().footerCenterTunnel,r=(0,M.gF)();return(0,j.jsx)(n.In,{children:(0,j.jsx)("div",{className:(0,F.Z)("footer-center zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":r.zenModeEnabled}),children:t})})},H=W;W.displayName="FooterCenter";var K=l(4709),V=l(7169),Y=l(2726),G=l(6710),q=l(785),X=l(3646),$=["onSelect","children","icon","shortcut","className"],J=["children","href","icon","shortcut","className"];function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){(0,V.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var te=function(e){var t=e.icon,n=e.shortcut,r=e.children,o=(0,M.Fy)();return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:"welcome-screen-menu-item__icon",children:t}),(0,j.jsx)("div",{className:"welcome-screen-menu-item__text",children:r}),n&&!o.isMobile&&(0,j.jsx)("div",{className:"welcome-screen-menu-item__shortcut",children:n})]})};te.displayName="WelcomeScreenMenuItemContent";var ne=function(e){var t=e.onSelect,n=e.children,r=e.icon,o=e.shortcut,i=e.className,a=void 0===i?"":i,s=(0,Y.Z)(e,$);return(0,j.jsx)("button",ee(ee({},s),{},{type:"button",className:"welcome-screen-menu-item ".concat(a),onClick:t,children:(0,j.jsx)(te,{icon:r,shortcut:o,children:n})}))};ne.displayName="WelcomeScreenMenuItem";var re=function(e){var t=e.children,n=e.href,r=e.icon,o=e.shortcut,i=e.className,a=void 0===i?"":i,s=(0,Y.Z)(e,J);return(0,j.jsx)("a",ee(ee({},s),{},{className:"welcome-screen-menu-item ".concat(a),href:n,target:"_blank",rel:"noreferrer",children:(0,j.jsx)(te,{icon:r,shortcut:o,children:t})}))};re.displayName="WelcomeScreenMenuItemLink";var oe=function(e){var t=e.children,n=(0,Z.R6)().welcomeScreenCenterTunnel;return(0,j.jsx)(n.In,{children:(0,j.jsx)("div",{className:"welcome-screen-center",children:t||(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(ie,{}),(0,j.jsx)(ae,{children:(0,O.t)("welcomeScreen.defaults.center_heading")}),(0,j.jsxs)(se,{children:[(0,j.jsx)(ce,{}),(0,j.jsx)(le,{})]})]})})})};oe.displayName="Center";var ie=function(e){var t=e.children;return(0,j.jsx)("div",{className:"welcome-screen-center__logo virgil welcome-screen-decor",children:t||(0,j.jsxs)(j.Fragment,{children:[X.Mw," Excalidraw"]})})};ie.displayName="Logo";var ae=function(e){var t=e.children;return(0,j.jsx)("div",{className:"welcome-screen-center__heading welcome-screen-decor virgil",children:t})};ae.displayName="Heading";var se=function(e){var t=e.children;return(0,j.jsx)("div",{className:"welcome-screen-menu",children:t})};se.displayName="Menu";var le=function(){var e=(0,M.eh)();return(0,j.jsx)(ne,{onSelect:function(){return e.executeAction(G.jY)},shortcut:"?",icon:X.by,children:(0,O.t)("helpDialog.title")})};le.displayName="MenuItemHelp";var ce=function(){var e=(0,M.gF)(),t=(0,M.eh)();return e.viewModeEnabled?null:(0,j.jsx)(ne,{onSelect:function(){return t.executeAction(G._d)},shortcut:(0,q.C)("loadScene"),icon:X.Tl,children:(0,O.t)("buttons.load")})};ce.displayName="MenuItemLoadScene";var ue=function(e){var t=e.onSelect,n=(0,O.QT)().t;return(0,j.jsx)(ne,{shortcut:null,onSelect:t,icon:X.jn,children:n("labels.liveCollaboration")})};ue.displayName="MenuItemLiveCollaborationTrigger",oe.Logo=ie,oe.Heading=ae,oe.Menu=se,oe.MenuItem=ne,oe.MenuItemLink=re,oe.MenuItemHelp=le,oe.MenuItemLoadScene=ce,oe.MenuItemLiveCollaborationTrigger=ue;var de=function(e){var t=e.children,n=(0,Z.R6)().welcomeScreenMenuHintTunnel;return(0,j.jsx)(n.In,{children:(0,j.jsxs)("div",{className:"virgil welcome-screen-decor welcome-screen-decor-hint welcome-screen-decor-hint--menu",children:[X.oQ,(0,j.jsx)("div",{className:"welcome-screen-decor-hint__label",children:t||(0,O.t)("welcomeScreen.defaults.menuHint")})]})})};de.displayName="MenuHint";var pe=function(e){var t=e.children,n=(0,Z.R6)().welcomeScreenToolbarHintTunnel;return(0,j.jsx)(n.In,{children:(0,j.jsxs)("div",{className:"virgil welcome-screen-decor welcome-screen-decor-hint welcome-screen-decor-hint--toolbar",children:[(0,j.jsx)("div",{className:"welcome-screen-decor-hint__label",children:t||(0,O.t)("welcomeScreen.defaults.toolbarHint")}),X.DJ]})})};pe.displayName="ToolbarHint";var fe=function(e){var t=e.children,n=(0,Z.R6)().welcomeScreenHelpHintTunnel;return(0,j.jsx)(n.In,{children:(0,j.jsxs)("div",{className:"virgil welcome-screen-decor welcome-screen-decor-hint welcome-screen-decor-hint--help",children:[(0,j.jsx)("div",{children:t||(0,O.t)("welcomeScreen.defaults.helpHint")}),X._U]})})};fe.displayName="HelpHint";var he=l(1569),me={};me.styleTagTransform=h(),me.setAttributes=u(),me.insert=a().bind(null,"head"),me.domAPI=o(),me.insertStyleElement=p(),n()(he.Z,me),he.Z&&he.Z.locals&&he.Z.locals;var ge=function(e){return(0,j.jsx)(j.Fragment,{children:e.children||(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(oe,{}),(0,j.jsx)(de,{}),(0,j.jsx)(pe,{}),(0,j.jsx)(fe,{})]})})};ge.displayName="WelcomeScreen",ge.Center=oe,ge.Hints={MenuHint:de,ToolbarHint:pe,HelpHint:fe};var ve=ge,be=l(3137),ye={};ye.styleTagTransform=h(),ye.setAttributes=u(),ye.insert=a().bind(null,"head"),ye.domAPI=o(),ye.insertStyleElement=p(),n()(be.Z,ye),be.Z&&be.Z.locals&&be.Z.locals;var we=["type","onSelect","children","className"];function xe(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 ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){(0,V.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _e=function(e){var t=e.type,n=void 0===t?"button":t,r=e.onSelect,o=e.children,i=e.className,a=void 0===i?"":i,s=(0,Y.Z)(e,we);return(0,j.jsx)("button",ke(ke({onClick:function(e){var t;r(),null===(t=s.onClick)||void 0===t||t.call(s,e)},type:n,className:"excalidraw-button ".concat(a)},s),{},{children:o}))},Se=l(3397),Ee={};Ee.styleTagTransform=h(),Ee.setAttributes=u(),Ee.insert=a().bind(null,"head"),Ee.domAPI=o(),Ee.insertStyleElement=p(),n()(Se.Z,Ee),Se.Z&&Se.Z.locals&&Se.Z.locals;var Pe=["isCollaborating","onSelect"];function Ce(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 Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach((function(t){(0,V.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var je=function(e){var t=e.isCollaborating,n=e.onSelect,r=(0,Y.Z)(e,Pe),o=(0,M.gF)();return(0,j.jsxs)(_e,Oe(Oe({},r),{},{className:(0,F.Z)("collab-button",{active:t}),type:"button",onSelect:n,style:{position:"relative"},title:(0,O.t)("labels.liveCollaboration"),children:[X.jn,o.collaborators.size>0&&(0,j.jsx)("div",{className:"CollabButton-collaborators",children:o.collaborators.size})]}))},Te=je;je.displayName="LiveCollaborationTrigger";var Me=l(1047),Ie=l(679),De=l(3024),Ae=l(1974),Le=l(1935),Ne=l(7053),Re=l(9430),ze=l(6794),Fe=["initialData","UIOptions"],Ze=["initialData","UIOptions"];function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){w()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var We=function(t){var n,r,o,i=t.onChange,a=t.initialData,s=t.excalidrawRef,l=t.isCollaborating,c=void 0!==l&&l,u=t.onPointerUpdate,d=t.renderTopRightUI,p=t.renderSidebar,f=t.langCode,h=void 0===f?O.Fp.code:f,m=t.viewModeEnabled,g=t.zenModeEnabled,v=t.gridModeEnabled,b=t.libraryReturnUrl,y=t.theme,w=t.name,k=t.renderCustomStats,_=t.onPaste,S=t.detectScroll,E=void 0===S||S,P=t.handleKeyboardGlobally,C=void 0!==P&&P,I=t.onLibraryChange,D=t.autoFocus,A=void 0!==D&&D,L=t.generateIdForFile,N=t.onLinkOpen,F=t.onPointerDown,Z=t.onScrollChange,B=t.children,U=null===(n=t.UIOptions)||void 0===n?void 0:n.canvasActions,W=Ue(Ue({},t.UIOptions),{},{canvasActions:Ue(Ue({},e.cW.canvasActions),U)});return null!=U&&U.export&&(W.canvasActions.export.saveFileToDisk=null!==(r=null===(o=U.export)||void 0===o?void 0:o.saveFileToDisk)&&void 0!==r?r:e.cW.canvasActions.export.saveFileToDisk),null===W.canvasActions.toggleTheme&&void 0===y&&(W.canvasActions.toggleTheme=!0),(0,x.useEffect)((function(){var e=function(e){"number"==typeof e.scale&&1!==e.scale&&e.preventDefault()};return document.addEventListener("touchmove",e,{passive:!1}),function(){document.removeEventListener("touchmove",e)}}),[]),(0,j.jsx)(R.zt,{unstable_createStore:function(){return z.e_},scope:z.yE,children:(0,j.jsx)(T,{langCode:h,theme:y,children:(0,j.jsx)(M.ZP,{onChange:i,initialData:a,excalidrawRef:s,isCollaborating:c,onPointerUpdate:u,renderTopRightUI:d,langCode:h,viewModeEnabled:m,zenModeEnabled:g,gridModeEnabled:v,libraryReturnUrl:b,theme:y,name:w,renderCustomStats:k,UIOptions:W,onPaste:_,detectScroll:E,handleKeyboardGlobally:C,onLibraryChange:I,autoFocus:A,generateIdForFile:L,onLinkOpen:N,onPointerDown:F,onScrollChange:Z,renderSidebar:p,children:B})})})},He=(0,x.forwardRef)((function(e,t){return(0,j.jsx)(We,Ue(Ue({},e),{},{excalidrawRef:t}))})),Ke=k().memo(He,(function(e,t){if(e.children!==t.children)return!1;e.initialData;var n=e.UIOptions,r=void 0===n?{}:n,o=b()(e,Fe),i=(t.initialData,t.UIOptions),a=void 0===i?{}:i,s=b()(t,Ze),l=Object.keys(r),c=Object.keys(a);return l.length===c.length&&l.every((function(e){return"canvasActions"===e?Object.keys(r.canvasActions).every((function(e){var t,n,o,i;return"export"===e&&null!=r&&null!==(t=r.canvasActions)&&void 0!==t&&t.export&&null!=a&&null!==(n=a.canvasActions)&&void 0!==n&&n.export?r.canvasActions.export.saveFileToDisk===a.canvasActions.export.saveFileToDisk:(null==r||null===(o=r.canvasActions)||void 0===o?void 0:o[e])===(null==a||null===(i=a.canvasActions)||void 0===i?void 0:i[e])})):r[e]===a[e]}))&&(0,I.w8)(o,s)}));Ke.displayName="Excalidraw",Array.prototype.at||Object.defineProperty(Array.prototype,"at",{value:function(e){if((e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]},writable:!0,enumerable:!1,configurable:!0})}(),c}())},4474:(e,t,n)=>{e.exports=n(290)},156:e=>{self,e.exports=(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};let n,r,o,i;var a;e.d(t,{default:()=>E}),function(e){e.SetSize="set-size",e.StreamItems="stream-items",e.StreamContextItem="stream-context-item",e.SaveItems="save-items",e.SelectItem="select-item",e.AssociateItem="associate-item",e.DeassociateItem="deassociate-item",e.ClearSelection="clear-selection",e.CreateItem="create-item",e.CreateItems="create-items",e.DeleteItems="delete-items",e.SetComponentData="set-component-data",e.InstallLocalComponent="install-local-component",e.ToggleActivateComponent="toggle-activate-component",e.RequestPermissions="request-permissions",e.PresentConflictResolution="present-conflict-resolution",e.DuplicateItem="duplicate-item",e.ComponentRegistered="component-registered",e.ActivateThemes="themes",e.Reply="reply",e.SaveSuccess="save-success",e.SaveError="save-error",e.ThemesActivated="themes-activated",e.KeyDown="key-down",e.KeyUp="key-up",e.Click="click"}(n||(n={})),function(e){e[e.Web=1]="Web",e[e.Desktop=2]="Desktop",e[e.Mobile=3]="Mobile"}(r||(r={})),function(e){e.Any="*",e.Item="SF|Item",e.RootKey="SN|RootKey|NoSync",e.ItemsKey="SN|ItemsKey",e.EncryptedStorage="SN|EncryptedStorage",e.Note="Note",e.Tag="Tag",e.SmartTag="SN|SmartTag",e.Component="SN|Component",e.Editor="SN|Editor",e.ActionsExtension="Extension",e.UserPrefs="SN|UserPreferences",e.HistorySession="SN|HistorySession",e.Theme="SN|Theme",e.Mfa="SF|MFA",e.ServerExtension="SF|Extension",e.FilesafeCredentials="SN|FileSafe|Credentials",e.FilesafeFileMetadata="SN|FileSafe|FileMetadata",e.FilesafeIntegration="SN|FileSafe|Integration",e.ExtensionRepo="SN|ExtensionRepo"}(o||(o={})),function(e){e.Pinned="pinned",e.Archived="archived",e.Locked="locked",e.UserModifiedDate="client_updated_at",e.DefaultEditor="defaultEditor",e.MobileRules="mobileRules",e.NotAvailableOnMobile="notAvailableOnMobile",e.MobileActive="mobileActive",e.LastSize="lastSize",e.PrefersPlainEditor="prefersPlainEditor",e.ComponentInstallError="installError"}(i||(i={}));var s=new Uint8Array(16);function l(){if(!a&&!(a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(s)}const c=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u=function(e){return"string"==typeof e&&c.test(e)};for(var d=[],p=0;p<256;++p)d.push((p+256).toString(16).substr(1));const f=function(e,t,n){var r=(e=e||{}).random||(e.rng||l)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!u(n))throw TypeError("Stringified UUID is invalid");return n}(r)},h=e=>{var t;const n={[r.Web]:"web",[r.Desktop]:"desktop",[r.Mobile]:"mobile"};return null!==(t=n[e])&&void 0!==t?t:n[r.Web]},m=e=>null!=e,g=()=>{};class v{static get isSupported(){return!(!window.console&&!console)}static get info(){return v.isSupported&&this.enabled?console.log.bind(console):g}static get error(){return v.isSupported?console.error.bind(console):g}}var b,y,w,x;function k(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(y="enabled")in(b=v)?Object.defineProperty(b,y,{value:!1,enumerable:!0,configurable:!0,writable:!0}):b[y]=!1,function(e){e.Component="component"}(w||(w={})),function(e){e.Shift="Shift",e.Ctrl="Control",e.Meta="Meta"}(x||(x={}));class E{constructor(e){if(S(this,"contentWindow",void 0),S(this,"initialPermissions",void 0),S(this,"onReadyCallback",void 0),S(this,"component",{activeThemes:[],acceptsThemes:!0}),S(this,"sentMessages",[]),S(this,"messageQueue",[]),S(this,"lastStreamedItem",void 0),S(this,"pendingSaveItems",void 0),S(this,"pendingSaveTimeout",void 0),S(this,"pendingSaveParams",void 0),S(this,"coallesedSaving",!0),S(this,"coallesedSavingDelay",250),S(this,"messageHandler",void 0),S(this,"keyDownEventListener",void 0),S(this,"keyUpEventListener",void 0),S(this,"clickEventListener",void 0),S(this,"onThemesChangeCallback",void 0),S(this,"concernTimeouts",[]),!e||!e.targetWindow)throw new Error("contentWindow must be a valid Window object.");this.contentWindow=e.targetWindow,this.processParameters(e),this.registerMessageHandler(),this.registerKeyboardEventListeners(),this.registerMouseEventListeners()}processParameters(e){var t;const{initialPermissions:n,options:r,onReady:o,onThemesChange:i}=e;var a;n&&n.length>0&&(this.initialPermissions=n),m(null==r?void 0:r.coallesedSaving)&&(this.coallesedSaving=r.coallesedSaving),m(null==r?void 0:r.coallesedSavingDelay)&&(this.coallesedSavingDelay=r.coallesedSavingDelay),m(null==r?void 0:r.acceptsThemes)&&(this.component.acceptsThemes=null===(a=null==r?void 0:r.acceptsThemes)||void 0===a||a),m(o)&&(this.onReadyCallback=o),m(i)&&(this.onThemesChangeCallback=i),v.enabled=null!==(t=null==r?void 0:r.debug)&&void 0!==t&&t}deinit(){this.onReadyCallback=void 0,this.component={acceptsThemes:!0,activeThemes:[]},this.messageQueue=[],this.sentMessages=[],this.lastStreamedItem=void 0,this.pendingSaveItems=void 0,this.pendingSaveTimeout=void 0,this.pendingSaveParams=void 0,this.messageHandler&&(this.contentWindow.document.removeEventListener("message",this.messageHandler),this.contentWindow.removeEventListener("message",this.messageHandler)),this.keyDownEventListener&&this.contentWindow.removeEventListener("keydown",this.keyDownEventListener),this.keyUpEventListener&&this.contentWindow.removeEventListener("keyup",this.keyUpEventListener),this.clickEventListener&&this.contentWindow.removeEventListener("click",this.clickEventListener)}registerMessageHandler(){this.messageHandler=e=>{if(v.info("Components API Message received:",e.data),document.referrer&&new URL(document.referrer).origin!==new URL(e.origin).origin)return;const{data:t}=e,r=(e=>{if("string"!=typeof e)return!1;try{const t=JSON.parse(e),n=Object.prototype.toString.call(t);return"[object Object]"===n||"[object Array]"===n}catch(e){return!1}})(t)?JSON.parse(t):t;if(r){if(void 0===this.component.origin&&r.action===n.ComponentRegistered)this.component.origin=e.origin;else if(e.origin!==this.component.origin)return;this.handleMessage(r)}else v.error("Invalid data received. Skipping...")},this.contentWindow.document.addEventListener("message",this.messageHandler,!1),this.contentWindow.addEventListener("message",this.messageHandler,!1),v.info("Waiting for messages...")}registerKeyboardEventListeners(){this.keyDownEventListener=e=>{v.info("A key has been pressed: ".concat(e.key)),e.ctrlKey?this.keyDownEvent(x.Ctrl):e.shiftKey?this.keyDownEvent(x.Shift):(e.metaKey||"Meta"===e.key)&&this.keyDownEvent(x.Meta)},this.keyUpEventListener=e=>{v.info("A key has been released: ".concat(e.key)),"Control"===e.key?this.keyUpEvent(x.Ctrl):"Shift"===e.key?this.keyUpEvent(x.Shift):"Meta"===e.key&&this.keyUpEvent(x.Meta)},this.contentWindow.addEventListener("keydown",this.keyDownEventListener,!1),this.contentWindow.addEventListener("keyup",this.keyUpEventListener,!1)}registerMouseEventListeners(){this.clickEventListener=e=>{v.info("A click has been performed."),this.mouseClickEvent()},this.contentWindow.addEventListener("click",this.clickEventListener,!1)}handleMessage(e){switch(e.action){case n.ComponentRegistered:this.component.sessionKey=e.sessionKey,e.componentData&&(this.component.data=e.componentData),this.onReady(e.data),v.info("Component successfully registered with payload:",e);break;case n.ActivateThemes:this.activateThemes(e.data.themes);break;default:{var t,r;if(!e.original)return;const n=null===(t=this.sentMessages)||void 0===t?void 0:t.filter((t=>{var n;return t.messageId===(null===(n=e.original)||void 0===n?void 0:n.messageId)}))[0];if(!n){const e=this.contentWindow.document.title,t=("The extension '".concat(e,"' is attempting to communicate with Standard Notes, ")+"but an error is preventing it from doing so. Please restart this extension and try again.").replace(" "," ");return void v.info(t)}null==n||null===(r=n.callback)||void 0===r||r.call(n,e.data);break}}}onReady(e){this.component.environment=e.environment,this.component.platform=e.platform,this.component.uuid=e.uuid,this.initialPermissions&&this.initialPermissions.length>0&&this.requestPermissions(this.initialPermissions);for(const e of this.messageQueue)this.postMessage(e.action,e.data,e.callback);this.messageQueue=[],v.info("Data passed to onReady:",e),this.activateThemes(e.activeThemeUrls||[]),this.postMessage(n.ThemesActivated,{}),this.onReadyCallback&&this.onReadyCallback()}getSelfComponentUUID(){return this.component.uuid}isRunningInDesktopApplication(){return this.component.environment===h(r.Desktop)}isRunningInMobileApplication(){return this.component.environment===h(r.Mobile)}getComponentDataValueForKey(e){if(this.component.data)return this.component.data[e]}setComponentDataValueForKey(e,t){if(!this.component.data)throw new Error("The component has not been initialized.");if(!e||e&&0===e.length)throw new Error("The key for the data value should be a valid string.");this.component.data=_(_({},this.component.data),{},{[e]:t}),this.postMessage(n.SetComponentData,{componentData:this.component.data})}clearComponentData(){this.component.data={},this.postMessage(n.SetComponentData,{componentData:this.component.data})}postMessage(e,t,n){if(!this.component.sessionKey)return void this.messageQueue.push({action:e,data:t,api:w.Component,callback:n});const r={action:e,data:t,messageId:this.generateUUID(),sessionKey:this.component.sessionKey,api:w.Component},o=JSON.parse(JSON.stringify(r));let i;o.callback=n,this.sentMessages.push(o),i=this.isRunningInMobileApplication()?JSON.stringify(r):r,v.info("Posting message:",i),this.contentWindow.parent.postMessage(i,this.component.origin)}requestPermissions(e,t){this.postMessage(n.RequestPermissions,{permissions:e},(()=>{t&&t()}))}activateThemes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!this.component.acceptsThemes)return;v.info("Incoming themes:",e);const{activeThemes:t}=this.component;if(t&&t.sort().toString()==e.sort().toString())return;let n=e;const r=[];for(const o of t)e.includes(o)?n=n.filter((e=>e!==o)):r.push(o);v.info("Deactivating themes:",r),v.info("Activating themes:",n);for(const e of r)this.deactivateTheme(e);this.component.activeThemes=e;for(const e of n){if(!e)continue;const t=this.contentWindow.document.createElement("link");t.id=btoa(e),t.href=e,t.type="text/css",t.rel="stylesheet",t.media="screen,print",t.className="custom-theme",this.contentWindow.document.getElementsByTagName("head")[0].appendChild(t)}this.onThemesChangeCallback&&this.onThemesChangeCallback()}themeElementForUrl(e){return Array.from(this.contentWindow.document.getElementsByClassName("custom-theme")).slice().find((t=>t.id==btoa(e)))}deactivateTheme(e){const t=this.themeElementForUrl(e);t&&t.parentNode&&(t.setAttribute("disabled","true"),t.parentNode.removeChild(t))}generateUUID(){return f()}get platform(){return this.component.platform}get environment(){return this.component.environment}streamItems(e,t){this.postMessage(n.StreamItems,{content_types:e},(e=>{t(e.items)}))}streamContextItem(e){this.postMessage(n.StreamContextItem,{},(t=>{const{item:n}=t;(!this.lastStreamedItem||this.lastStreamedItem.uuid!==n.uuid)&&this.pendingSaveTimeout&&(clearTimeout(this.pendingSaveTimeout),this.performSavingOfItems(this.pendingSaveParams),this.pendingSaveTimeout=void 0,this.pendingSaveParams=void 0),this.lastStreamedItem=n,e(this.lastStreamedItem)}))}selectItem(e){this.postMessage(n.SelectItem,{item:this.jsonObjectForItem(e)})}clearSelection(){this.postMessage(n.ClearSelection,{content_type:o.Tag})}createItem(e,t){this.postMessage(n.CreateItem,{item:this.jsonObjectForItem(e)},(e=>{let{item:n}=e;!n&&e.items&&e.items.length>0&&(n=e.items[0]),this.associateItem(n),t&&t(n)}))}createItems(e,t){const r=e.map((e=>this.jsonObjectForItem(e)));this.postMessage(n.CreateItems,{items:r},(e=>{t&&t(e.items)}))}associateItem(e){this.postMessage(n.AssociateItem,{item:this.jsonObjectForItem(e)})}deassociateItem(e){this.postMessage(n.DeassociateItem,{item:this.jsonObjectForItem(e)})}deleteItem(e,t){this.deleteItems([e],t)}deleteItems(e,t){const r={items:e.map((e=>this.jsonObjectForItem(e)))};this.postMessage(n.DeleteItems,r,(e=>{t&&t(e)}))}sendCustomEvent(e,t,n){this.postMessage(e,t,(e=>{n&&n(e)}))}saveItem(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.saveItems([e],t,n)}saveItemWithPresave(e,t,n){this.saveItemsWithPresave([e],t,n)}saveItemsWithPresave(e,t,n){this.saveItems(e,n,!1,t)}performSavingOfItems(e){let{items:t,presave:r,callback:o}=e;const i=setTimeout((()=>{this.concernTimeouts.forEach((e=>clearTimeout(e))),alert("This editor is unable to communicate with Standard Notes. Your changes may not be saved. Please backup your changes, then restart the application and try again.")}),5e3);this.concernTimeouts.push(i),r&&r();const a=[];for(const e of t)a.push(this.jsonObjectForItem(e));this.postMessage(n.SaveItems,{items:a},(()=>{this.concernTimeouts.forEach((e=>clearTimeout(e))),null==o||o()}))}saveItems(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;if(this.pendingSaveItems||(this.pendingSaveItems=[]),this.coallesedSaving&&!n){this.pendingSaveTimeout&&clearTimeout(this.pendingSaveTimeout);const n=e.map((e=>e.uuid)),o=this.pendingSaveItems.filter((e=>!n.includes(e.uuid)));this.pendingSaveItems=o.concat(e),this.pendingSaveParams={items:this.pendingSaveItems,presave:r,callback:t},this.pendingSaveTimeout=setTimeout((()=>{this.performSavingOfItems(this.pendingSaveParams),this.pendingSaveItems=[],this.pendingSaveTimeout=void 0,this.pendingSaveParams=null}),this.coallesedSavingDelay)}else this.performSavingOfItems({items:e,presave:r,callback:t})}setSize(e,t){this.postMessage(n.SetSize,{type:"container",width:e,height:t})}keyDownEvent(e){this.postMessage(n.KeyDown,{keyboardModifier:e})}keyUpEvent(e){this.postMessage(n.KeyUp,{keyboardModifier:e})}mouseClickEvent(){this.postMessage(n.Click,{})}jsonObjectForItem(e){const t=Object.assign({},e);return t.children=null,t.parent=null,t}getItemAppDataValue(e,t){var n,r;return null==e||null===(n=e.content)||void 0===n||null===(r=n.appData)||void 0===r?void 0:r["org.standardnotes.sn"][t]}}return t.default})()},1089:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LegacySession=void 0;const r=n(2467),o=n(9851),i=n(1051);class a extends r.ValueObject{get accessToken(){return this.props.token}constructor(e){super(e)}static create(e){return i.Validator.isNotEmpty(e).isFailed()?o.Result.fail("Could not create legacy session. Token value is empty"):o.Result.ok(new a({token:e}))}}t.LegacySession=a},5327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9453:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;const r=n(2467),o=n(9851);class i extends r.ValueObject{get accessToken(){return this.props.accessToken}get refreshToken(){return this.props.refreshToken}isReadOnly(){return this.props.readonlyAccess||!1}constructor(e){super(e)}static create(e,t,n){return o.Result.ok(new i({accessToken:e,refreshToken:t,readonlyAccess:n}))}}t.Session=i},433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionToken=void 0;const r=n(2467),o=n(9851),i=n(1051);class a extends r.ValueObject{get value(){return this.props.value}get expiresAt(){return this.props.expiresAt}constructor(e){super(e)}static create(e,t){return i.Validator.isNotEmpty(e).isFailed()?o.Result.fail("Could not create session token. Token value is empty"):i.Validator.isNotEmpty(t).isFailed()?o.Result.fail("Could not create session token. Token expiration is empty"):o.Result.ok(new a({value:e,expiresAt:t}))}}t.SessionToken=a},8445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CacheEntry=void 0;const r=n(756),o=n(9851);class i extends r.Entity{constructor(e,t){super(e,t)}static create(e,t){return o.Result.ok(new i(e,t))}}t.CacheEntry=i},5499:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7735:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4333:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentType=void 0;const r=n(9851),o=n(2467);class i extends o.ValueObject{static TYPES={Any:"*",Item:"SF|Item",KeySystemItemsKey:"SN|KeySystemItemsKey",KeySystemRootKey:"SN|KeySystemRootKey",TrustedContact:"SN|TrustedContact",VaultListing:"SN|VaultListing",RootKey:"SN|RootKey|NoSync",ItemsKey:"SN|ItemsKey",EncryptedStorage:"SN|EncryptedStorage",Note:"Note",Tag:"Tag",SmartView:"SN|SmartTag",Component:"SN|Component",Editor:"SN|Editor",ActionsExtension:"Extension",UserPrefs:"SN|UserPreferences",HistorySession:"SN|HistorySession",Theme:"SN|Theme",File:"SN|File",FilesafeCredentials:"SN|FileSafe|Credentials",FilesafeFileMetadata:"SN|FileSafe|FileMetadata",FilesafeIntegration:"SN|FileSafe|Integration",ExtensionRepo:"SN|ExtensionRepo"};displayNamesMap={[i.TYPES.ActionsExtension]:"action-based extension",[i.TYPES.Component]:"component",[i.TYPES.Editor]:"editor",[i.TYPES.File]:"file",[i.TYPES.FilesafeCredentials]:"FileSafe credential",[i.TYPES.FilesafeFileMetadata]:"FileSafe file",[i.TYPES.FilesafeIntegration]:"FileSafe integration",[i.TYPES.ItemsKey]:"encryption key",[i.TYPES.Note]:"note",[i.TYPES.SmartView]:"smart view",[i.TYPES.Tag]:"tag",[i.TYPES.Theme]:"theme",[i.TYPES.UserPrefs]:"user preferences"};get value(){return this.props.value}constructor(e){super(e)}static create(e){return null===e?r.Result.ok(new i({value:null})):Object.values(this.TYPES).includes(e)?r.Result.ok(new i({value:e})):r.Result.fail(`Invalid content type: ${e}`)}getDisplayName(){return this.value?this.displayNamesMap[this.value]||this.value:null}}t.ContentType=i},7328:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dates=void 0;const r=n(9851),o=n(2467);class i extends o.ValueObject{get createdAt(){return this.props.createdAt}get updatedAt(){return this.props.updatedAt}constructor(e){super(e)}static create(e,t){return e instanceof Date?t instanceof Date?r.Result.ok(new i({createdAt:e,updatedAt:t})):r.Result.fail(`Could not create Dates. Update date should be a date object, given: ${t}`):r.Result.fail(`Could not create Dates. Creation date should be a date object, given: ${e}`)}}t.Dates=i},2832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Email=void 0;const r=n(2467),o=n(9851),i=n(1051);class a extends r.ValueObject{get value(){return this.props.value}constructor(e){super(e)}static create(e){if(i.Validator.isString(e).isFailed())return o.Result.fail("Email must be a string");const t=e.trim().toLowerCase(),n=i.Validator.isValidEmail(t);return n.isFailed()?o.Result.fail(n.getError()):o.Result.ok(new a({value:t}))}}t.Email=a},1379:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RoleName=void 0;const r=n(2467),o=n(9851);class i extends r.ValueObject{static NAMES={CoreUser:"CORE_USER",PlusUser:"PLUS_USER",ProUser:"PRO_USER",InternalTeamUser:"INTERNAL_TEAM_USER",VaultsUser:"VAULTS_USER"};get value(){return this.props.value}hasMoreOrEqualPowerTo(e){switch(this.value){case i.NAMES.InternalTeamUser:return!0;case i.NAMES.ProUser:return[i.NAMES.CoreUser,i.NAMES.PlusUser,i.NAMES.ProUser].includes(e.value);case i.NAMES.PlusUser:return[i.NAMES.CoreUser,i.NAMES.PlusUser].includes(e.value);case i.NAMES.CoreUser:case i.NAMES.VaultsUser:return[i.NAMES.CoreUser].includes(e.value);default:throw new Error(`Invalid role name: ${this.value}`)}}constructor(e){super(e)}static create(e){return Object.values(this.NAMES).includes(e)?o.Result.ok(new i({value:e})):o.Result.fail(`Invalid role name: ${e}`)}}t.RoleName=i},6319:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RoleNameCollection=void 0;const r=n(2467),o=n(9851),i=n(3222);class a extends r.ValueObject{get value(){return this.props.value}includes(e){for(const t of this.props.value)if(t.value===e.value)return!0;return!1}hasARoleNameWithMoreOrEqualPowerTo(e){for(const t of this.props.value)if(t.hasMoreOrEqualPowerTo(e))return!0;return!1}equals(e){if(this.props.value.length!==e.value.length)return!1;for(const t of e.value)if(!this.includes(t))return!1;return!0}constructor(e){super(e)}static create(e){const t=[];for(const n of e){const e=i.RoleName.create(n);if(e.isFailed())return o.Result.fail(e.getError());t.push(e.getValue())}return o.Result.ok(new a({value:t}))}}t.RoleNameCollection=a},2354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamps=void 0;const r=n(9851),o=n(2467);class i extends o.ValueObject{get createdAt(){return this.props.createdAt}get updatedAt(){return this.props.updatedAt}constructor(e){super(e)}static create(e,t){return isNaN(e)||"number"!=typeof e?r.Result.fail(`Could not create Timestamps. Creation date should be a number, given: ${e}`):isNaN(t)||"number"!=typeof t?r.Result.fail(`Could not create Timestamps. Update date should be a number, given: ${t}`):r.Result.ok(new i({createdAt:e,updatedAt:t}))}}t.Timestamps=i},7955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Username=void 0;const r=n(2467),o=n(9851),i=n(1051);class a extends r.ValueObject{get value(){return this.props.value}constructor(e){super(e)}static create(e){if(i.Validator.isString(e).isFailed())return o.Result.fail("Username must be a string");const t=e.trim().toLowerCase();return i.Validator.isNotEmpty(t).isFailed()?o.Result.fail("Username cannot be empty"):o.Result.ok(new a({value:t}))}isPotentiallyAPrivateUsernameAccount(){return 64===this.value.length&&!this.value.includes("@")}}t.Username=a},2158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1707:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Uuid=void 0;const r=n(2467),o=n(9851),i=n(1051);class a extends r.ValueObject{get value(){return this.props.value}constructor(e){super(e)}static create(e){const t=i.Validator.isValidUuid(e);return t.isFailed()?o.Result.fail(t.getError()):o.Result.ok(new a({value:e}))}}t.Uuid=a},4260:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Aggregate=void 0;const r=n(756);class o extends r.Entity{changesOnAggregateRoot=[];addChange(e){this.changesOnAggregateRoot.push(e)}flushChanges(){this.changesOnAggregateRoot=[]}getChanges(){return this.changesOnAggregateRoot}}t.Aggregate=o},1197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Change=void 0;const r=n(9851);class o{static TYPES={Add:"add",Remove:"remove",Modify:"modify"};props;constructor(e){this.props=Object.freeze(e)}static create(e){return Object.values(o.TYPES).includes(e.changeType)?r.Result.ok(new o(e)):r.Result.fail("Invalid change type")}}t.Change=o},8326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Entity=void 0;const r=n(1886);class o{props;_id;constructor(e,t){this.props=e,this._id=t||new r.UniqueEntityId}get id(){return this._id}equals(e){return null!=e&&null!=e&&(this===e||e instanceof o&&this._id.equals(e._id))}}t.Entity=o},9831:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Id=void 0,t.Id=class{value;constructor(e){this.value=e}equals(e){return null!=e&&e instanceof this.constructor&&e.toValue()===this.value}toString(){return String(this.value)}toValue(){return this.value}}},9851:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Result=void 0;class n{isSuccess;error;value;constructor(e,t,n){this.isSuccess=e,this.error=t,this.value=n,Object.freeze(this)}isFailed(){return!this.isSuccess}getValue(){if(!this.isSuccess)throw new Error(`Cannot get value of an unsuccessfull result: ${this.error}`);return this.value}getError(){if(this.isSuccess||void 0===this.error)throw new Error("Cannot get an error of a successfull result");return this.error}static ok(e){return new n(!0,void 0,e)}static fail(e){return new n(!1,e)}}t.Result=n},1886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueEntityId=void 0;const r=n(7429),o=n(9831);class i extends o.Id{constructor(e){super(e||(0,r.v4)())}}t.UniqueEntityId=i},1051:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=void 0;const r=n(9851);class o{static UUID_ANY_VERSION_AND_VARIANT_REGEX=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;static EMAIL_REGEX=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;static isValidUuid(e){return null!==String(e).toLowerCase().match(o.UUID_ANY_VERSION_AND_VARIANT_REGEX)?r.Result.ok():r.Result.fail(`Given value is not a valid uuid: ${e}`)}static isValidEmail(e){return null!==String(e).toLowerCase().match(o.EMAIL_REGEX)?r.Result.ok():r.Result.fail(`Given value is not a valid email address: ${e}`)}static isString(e){return"string"==typeof e?r.Result.ok():r.Result.fail("Given value is not a string: "+typeof e)}static isNotEmpty(e){return e instanceof Array&&0===e.length||null==e||""===e?r.Result.fail(`Given value is empty: ${e}`):r.Result.ok()}static isNotEmptyString(e){const t=o.isString(e);if(t.isFailed())return t;const n=o.isNotEmpty(e);return n.isFailed()?n:r.Result.ok()}}t.Validator=o},2467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueObject=void 0,t.ValueObject=class{props;constructor(e){this.props=Object.freeze(e)}equals(e){return null!=e&&JSON.stringify(this.props)===JSON.stringify(e.props)}}},4028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControllerContainer=void 0,t.ControllerContainer=class{controllerMethodsMap=new Map;register(e,t){this.controllerMethodsMap.set(e,t)}get(e){return this.controllerMethodsMap.get(e)}}},2187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmailLevel=void 0;const r=n(9851),o=n(2467);class i extends o.ValueObject{static LEVELS={System:"SYSTEM",SignIn:"SIGN_IN",Marketing:"MARKETING",FailedCloudBackup:"FAILED_CLOUD_BACKUP",FailedEmailBackup:"FAILED_EMAIL_BACKUP"};get value(){return this.props.value}constructor(e){super(e)}static create(e){return Object.values(this.LEVELS).includes(e)?r.Result.ok(new i({value:e})):r.Result.fail(`Invalid subscription rejection level: ${e}`)}}t.EmailLevel=i},7165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},83:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractEnv=void 0,t.AbstractEnv=class{env={};overrides;constructor(e={}){this.overrides=e}get(e,t=!1){if(this.env||this.load(),this.overrides[e])return this.overrides[e];if(!process.env[e]&&!t)throw new Error(`Environment variable ${e} not set`);return process.env[e]}getAll(){return this.env||this.load(),this.env}}},8607:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationPayload=void 0;const r=n(2467),o=n(9851),i=n(7813),a=n(1707),s=n(5755);class l extends r.ValueObject{constructor(e){super(e)}toString(){return JSON.stringify({version:this.props.version,type:this.props.type.value,primaryIdentifier:this.props.primaryIdentifier.value,primaryIndentifierType:this.props.primaryIndentifierType.value,secondaryIdentifier:this.props.secondaryIdentifier?.value,secondaryIdentifierType:this.props.secondaryIdentifierType?.value})}static createFromString(e){try{const t=JSON.parse(e),n=i.NotificationType.create(t.type);if(n.isFailed())return o.Result.fail(n.getError());const r=n.getValue(),c=a.Uuid.create(t.primaryIdentifier);if(c.isFailed())return o.Result.fail(c.getError());const u=c.getValue(),d=s.NotificationPayloadIdentifierType.create(t.primaryIndentifierType);if(d.isFailed())return o.Result.fail(d.getError());const p=d.getValue();let f,h;if(t.secondaryIdentifier){const e=a.Uuid.create(t.secondaryIdentifier);if(e.isFailed())return o.Result.fail(e.getError());f=e.getValue()}if(t.secondaryIdentifierType){const e=s.NotificationPayloadIdentifierType.create(t.secondaryIdentifierType);if(e.isFailed())return o.Result.fail(e.getError());h=e.getValue()}return l.create({version:t.version,type:r,primaryIdentifier:u,primaryIndentifierType:p,secondaryIdentifier:f,secondaryIdentifierType:h})}catch(e){return o.Result.fail(e.message)}}static create(e){return void 0===e.secondaryIdentifier&&e.type.equals(i.NotificationType.create(i.NotificationType.TYPES.SharedVaultItemRemoved).getValue())?o.Result.fail(`Item uuid is required for ${i.NotificationType.TYPES.SharedVaultItemRemoved} notification type`):o.Result.ok(new l(e))}}t.NotificationPayload=l},5755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationPayloadIdentifierType=void 0;const r=n(9851),o=n(2467);class i extends o.ValueObject{static TYPES={SharedVaultUuid:"shared_vault_uuid",UserUuid:"user_uuid",SharedVaultInviteUuid:"shared_vault_invite_uuid",ItemUuid:"item_uuid"};constructor(e){super(e)}get value(){return this.props.value}static create(e){return Object.values(this.TYPES).includes(e)?r.Result.ok(new i({value:e})):r.Result.fail(`Invalid notification payload identifier type: ${e}`)}}t.NotificationPayloadIdentifierType=i},6469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationType=void 0;const r=n(9851),o=n(2467);class i extends o.ValueObject{static TYPES={SharedVaultItemRemoved:"shared_vault_item_removed",SelfRemovedFromSharedVault:"self_removed_from_shared_vault",UserRemovedFromSharedVault:"user_removed_from_shared_vault",UserDesignatedAsSurvivor:"user_designated_as_survivor",UserAddedToSharedVault:"user_added_to_shared_vault",SharedVaultInviteCanceled:"shared_vault_invite_canceled",SharedVaultFileUploaded:"shared_vault_file_uploaded",SharedVaultFileRemoved:"shared_vault_file_removed"};get value(){return this.props.value}constructor(e){super(e)}static create(e){return Object.values(this.TYPES).includes(e)?r.Result.ok(new i({value:e})):r.Result.fail(`Invalid notification type: ${e}`)}}t.NotificationType=i},2696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9770:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceContainer=void 0,t.ServiceContainer=class{serviceMap=new Map;register(e,t){this.serviceMap.set(e.value,t)}get(e){return this.serviceMap.get(e.value)}}},7612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7273:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceIdentifier=void 0;const r=n(2467),o=n(9851);class i extends r.ValueObject{static NAMES={AnalyticsWorker:"AnalyticsWorker",AnalyticsScheduledTask:"AnalyticsScheduledTask",ApiGateway:"ApiGateway",Auth:"Auth",AuthWorker:"AuthWorker",AuthScheduledTask:"AuthScheduledTask",SyncingServer:"SyncingServer",SyncingServerWorker:"SyncingServerWorker",Revisions:"Revisions",RevisionsWorker:"RevisionsWorker",Files:"Files",FilesWorker:"FilesWorker",SchedulerWorker:"SchedulerWorker",SchedulerScheduledTask:"SchedulerScheduledTask",Email:"Email",EmailWorker:"EmailWorker",EmailBounceProcessor:"EmailBounceProcessor",EmailScheduledTask:"EmailScheduledTask",Websockets:"Websockets",WebsocketsWorker:"WebsocketsWorker"};get value(){return this.props.value}constructor(e){super(e)}static create(e){return Object.values(this.NAMES).includes(e)?o.Result.ok(new i({value:e})):o.Result.fail(`Invalid subscription plan name: ${e}`)}}t.ServiceIdentifier=i},3147:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3038:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2138:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingName=void 0;const r=n(9851),o=n(2467);class i extends o.ValueObject{static NAMES={MfaSecret:"MFA_SECRET",ExtensionKey:"EXTENSION_KEY",EmailBackupFrequency:"EMAIL_BACKUP_FREQUENCY",DropboxBackupFrequency:"DROPBOX_BACKUP_FREQUENCY",DropboxBackupToken:"DROPBOX_BACKUP_TOKEN",OneDriveBackupFrequency:"ONE_DRIVE_BACKUP_FREQUENCY",OneDriveBackupToken:"ONE_DRIVE_BACKUP_TOKEN",GoogleDriveBackupFrequency:"GOOGLE_DRIVE_BACKUP_FREQUENCY",GoogleDriveBackupToken:"GOOGLE_DRIVE_BACKUP_TOKEN",MuteFailedBackupsEmails:"MUTE_FAILED_BACKUPS_EMAILS",MuteFailedCloudBackupsEmails:"MUTE_FAILED_CLOUD_BACKUPS_EMAILS",MuteSignInEmails:"MUTE_SIGN_IN_EMAILS",MuteMarketingEmails:"MUTE_MARKETING_EMAILS",ListedAuthorSecrets:"LISTED_AUTHOR_SECRETS",LogSessionUserAgent:"LOG_SESSION_USER_AGENT",RecoveryCodes:"RECOVERY_CODES",FileUploadBytesLimit:"FILE_UPLOAD_BYTES_LIMIT",FileUploadBytesUsed:"FILE_UPLOAD_BYTES_USED"};get value(){return this.props.value}isSensitive(){return[i.NAMES.MfaSecret,i.NAMES.ExtensionKey].includes(this.props.value)}isASubscriptionSetting(){return[i.NAMES.FileUploadBytesLimit,i.NAMES.FileUploadBytesUsed,i.NAMES.MuteSignInEmails].includes(this.props.value)}isARegularOnlySubscriptionSetting(){return[i.NAMES.FileUploadBytesLimit,i.NAMES.FileUploadBytesUsed].includes(this.props.value)}isASharedAndRegularOnlySubscriptionSetting(){return[i.NAMES.MuteSignInEmails].includes(this.props.value)}constructor(e){super(e)}static create(e){return Object.values(this.NAMES).includes(e)?r.Result.ok(new i({value:e})):r.Result.fail(`Invalid setting name: ${e}`)}}t.SettingName=i},4397:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SharedVaultUser=void 0;const r=n(756),o=n(9851);class i extends r.Entity{constructor(e,t){super(e,t)}static create(e,t){return o.Result.ok(new i(e,t))}}t.SharedVaultUser=i},6688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SharedVaultUserPermission=void 0;const r=n(9851),o=n(2467);class i extends o.ValueObject{static PERMISSIONS={Read:"read",Write:"write",Admin:"admin"};get value(){return this.props.value}constructor(e){super(e)}static create(e){return Object.values(this.PERMISSIONS).includes(e)?r.Result.ok(new i({value:e})):r.Result.fail(`Invalid shared vault user permission ${e}`)}}t.SharedVaultUserPermission=i},2515:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5787:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionPlanName=void 0;const r=n(2467),o=n(9851);class i extends r.ValueObject{static NAMES={PlusPlan:"PLUS_PLAN",ProPlan:"PRO_PLAN"};get value(){return this.props.value}constructor(e){super(e)}static create(e){return Object.values(this.NAMES).includes(e)?o.Result.ok(new i({value:e})):o.Result.fail(`Invalid subscription plan name: ${e}`)}}t.SubscriptionPlanName=i},6149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},673:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6208:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1089),t),o(n(5327),t),o(n(9453),t),o(n(433),t),o(n(3646),t),o(n(8445),t),o(n(2851),t),o(n(5499),t),o(n(7735),t),o(n(4333),t),o(n(7328),t),o(n(7800),t),o(n(2832),t),o(n(5853),t),o(n(1379),t),o(n(3222),t),o(n(4143),t),o(n(6319),t),o(n(2354),t),o(n(1502),t),o(n(7955),t),o(n(2222),t),o(n(2158),t),o(n(1707),t),o(n(4260),t),o(n(9952),t),o(n(1197),t),o(n(8326),t),o(n(756),t),o(n(9831),t),o(n(9851),t),o(n(1886),t),o(n(1051),t),o(n(2467),t),o(n(4028),t),o(n(4595),t),o(n(2187),t),o(n(7376),t),o(n(7165),t),o(n(83),t),o(n(8607),t),o(n(5934),t),o(n(5755),t),o(n(6469),t),o(n(6861),t),o(n(7813),t),o(n(2696),t),o(n(8457),t),o(n(9770),t),o(n(7612),t),o(n(7273),t),o(n(3147),t),o(n(3038),t),o(n(2138),t),o(n(4397),t),o(n(5160),t),o(n(6688),t),o(n(2515),t),o(n(932),t),o(n(5787),t),o(n(6149),t),o(n(673),t),o(n(9932),t)},2656:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6208),t)},5738:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentAction=void 0,function(e){e.SetSize="set-size",e.StreamItems="stream-items",e.StreamContextItem="stream-context-item",e.SaveItems="save-items",e.CreateItem="create-item",e.CreateItems="create-items",e.DeleteItems="delete-items",e.SetComponentData="set-component-data",e.RequestPermissions="request-permissions",e.DuplicateItem="duplicate-item",e.ComponentRegistered="component-registered",e.ActivateThemes="themes",e.Reply="reply",e.ThemesActivated="themes-activated",e.KeyDown="key-down",e.KeyUp="key-up",e.Click="click"}(n||(t.ComponentAction=n={}))},6531:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentArea=void 0,function(e){e.Editor="editor-editor",e.Themes="themes",e.EditorStack="editor-stack"}(n||(t.ComponentArea=n={}))},8848:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentFlag=void 0,function(e){e.New="New",e.Deprecated="Deprecated"}(n||(t.ComponentFlag=n={}))},2031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noteTypeForEditorIdentifier=t.NoteType=void 0;const r=n(3775);var o;!function(e){e.Authentication="authentication",e.Code="code",e.Markdown="markdown",e.RichText="rich-text",e.Spreadsheet="spreadsheet",e.Task="task",e.Plain="plain-text",e.Super="super",e.Unknown="unknown"}(o||(t.NoteType=o={})),t.noteTypeForEditorIdentifier=function(e){const t=(0,r.FindNativeFeature)(e);return t&&t.note_type?t.note_type:o.Unknown}},2500:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9038:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetDeprecatedEditors=t.GetDarkThemeFeature=t.GetNativeThemes=t.GetPlainNoteFeature=t.GetSuperNoteFeature=t.GetIframeEditors=t.GetIframeAndNativeEditors=t.FindNativeTheme=t.FindNativeFeature=t.GetFeatures=void 0;const r=n(7797),o=n(6219),i=n(7314),a=n(6485),s=n(9467),l=n(2406),c=n(5754),u=n(7870),d=n(6531);function p(){return[...(0,o.serverFeatures)(),...(0,i.clientFeatures)(),...(0,c.themes)(),...(0,u.nativeEditors)(),...(0,l.IframeEditors)(),...(0,s.experimentalFeatures)(),...(0,a.GetDeprecatedFeatures)()]}function f(e){return p().find((t=>t.identifier===e))}t.GetFeatures=p,t.FindNativeFeature=f,t.FindNativeTheme=function(e){return(0,c.themes)().find((t=>t.identifier===e))},t.GetIframeAndNativeEditors=function(){return[...(0,l.IframeEditors)(),...(0,u.nativeEditors)()]},t.GetIframeEditors=function(){return(0,l.IframeEditors)()},t.GetSuperNoteFeature=function(){return f(r.NativeFeatureIdentifier.TYPES.SuperEditor)},t.GetPlainNoteFeature=function(){return f(r.NativeFeatureIdentifier.TYPES.PlainEditor)},t.GetNativeThemes=function(){return(0,c.themes)()},t.GetDarkThemeFeature=function(){return(0,c.themes)().find((e=>e.identifier===r.NativeFeatureIdentifier.TYPES.DarkTheme))},t.GetDeprecatedEditors=function(){return(0,a.GetDeprecatedFeatures)().filter((e=>e.area===d.ComponentArea.Editor))}},4726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7797:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExperimentalFeatures=t.NativeFeatureIdentifier=void 0;const r=n(2656);class o extends r.ValueObject{get value(){return this.props.value}constructor(e){super(e)}static create(e){return Object.values(this.TYPES).includes(e)?r.Result.ok(new o({value:e})):r.Result.fail(`Invalid feature identifier: ${e}`)}}t.NativeFeatureIdentifier=o,o.TYPES={DailyEmailBackup:"org.standardnotes.daily-email-backup",Files:"org.standardnotes.files",FilesLowStorageTier:"org.standardnotes.files-low-storage-tier",FilesMaximumStorageTier:"org.standardnotes.files-max-storage-tier",ListedCustomDomain:"org.standardnotes.listed-custom-domain",NoteHistory30Days:"org.standardnotes.note-history-30",NoteHistory365Days:"org.standardnotes.note-history-365",NoteHistoryUnlimited:"org.standardnotes.note-history-unlimited",SignInAlerts:"com.standardnotes.sign-in-alerts",SmartFilters:"org.standardnotes.smart-filters",TagNesting:"org.standardnotes.tag-nesting",TwoFactorAuth:"org.standardnotes.two-factor-auth",UniversalSecondFactor:"org.standardnotes.universal-second-factor",SubscriptionSharing:"org.standardnotes.subscription-sharing",AutobiographyTheme:"org.standardnotes.theme-autobiography",DynamicTheme:"org.standardnotes.theme-dynamic",DarkTheme:"org.standardnotes.theme-focus",FuturaTheme:"org.standardnotes.theme-futura",MidnightTheme:"org.standardnotes.theme-midnight",SolarizedDarkTheme:"org.standardnotes.theme-solarized-dark",TitaniumTheme:"org.standardnotes.theme-titanium",PlainEditor:"com.standardnotes.plain-text",SuperEditor:"com.standardnotes.super-editor",SheetsEditor:"org.standardnotes.standard-sheets",TokenVaultEditor:"org.standardnotes.token-vault",Clipper:"org.standardnotes.clipper",Vaults:"org.standardnotes.vaults",SharedVaults:"org.standardnotes.shared-vaults",DeprecatedCodeEditor:"org.standardnotes.code-editor",DeprecatedMarkdownProEditor:"org.standardnotes.advanced-markdown-editor",DeprecatedPlusEditor:"org.standardnotes.plus-editor",DeprecatedTaskEditor:"org.standardnotes.simple-task-editor",DeprecatedMarkdownVisualEditor:"org.standardnotes.markdown-visual-editor",DeprecatedBoldEditor:"org.standardnotes.bold-editor",DeprecatedMarkdownBasicEditor:"org.standardnotes.simple-markdown-editor",DeprecatedMarkdownMathEditor:"org.standardnotes.fancy-markdown-editor",DeprecatedMarkdownMinimistEditor:"org.standardnotes.minimal-markdown-editor",DeprecatedFoldersComponent:"org.standardnotes.folders",DeprecatedFileSafe:"org.standardnotes.file-safe",LegacyFileSafeIdentifier:"org.standardnotes.legacy.file-safe"},t.ExperimentalFeatures=[o.TYPES.Vaults]},7481:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2694:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1161:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEditorFeatureDescription=t.isIframeComponentFeatureDescription=t.isThemeFeatureDescription=void 0;const r=n(2656),o=n(6531);t.isThemeFeatureDescription=function(e){return"content_type"in e&&e.content_type===r.ContentType.TYPES.Theme},t.isIframeComponentFeatureDescription=function(e){return"content_type"in e&&e.content_type===r.ContentType.TYPES.Component&&[o.ComponentArea.Editor,o.ComponentArea.EditorStack].includes(e.area)},t.isEditorFeatureDescription=function(e){return null!=e.note_type||e.area===o.ComponentArea.Editor}},9292:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7314:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clientFeatures=void 0;const r=n(6609),o=n(7797),i=n(2656);t.clientFeatures=function(){return[{name:"Tag Nesting",availableInRoles:[i.RoleName.NAMES.PlusUser,i.RoleName.NAMES.ProUser],identifier:o.NativeFeatureIdentifier.TYPES.TagNesting,permission_name:r.PermissionName.TagNesting,description:"Organize your tags into folders."},{name:"Smart Filters",availableInRoles:[i.RoleName.NAMES.PlusUser,i.RoleName.NAMES.ProUser],identifier:o.NativeFeatureIdentifier.TYPES.SmartFilters,permission_name:r.PermissionName.SmartFilters,description:"Create smart filters for viewing notes matching specific criteria."},{name:"Encrypted files",availableInRoles:[i.RoleName.NAMES.PlusUser,i.RoleName.NAMES.ProUser],identifier:o.NativeFeatureIdentifier.TYPES.Files,permission_name:r.PermissionName.Files,description:""},{name:"Clipper",availableInRoles:[i.RoleName.NAMES.PlusUser,i.RoleName.NAMES.ProUser],identifier:o.NativeFeatureIdentifier.TYPES.Clipper,permission_name:r.PermissionName.Clipper,description:""}]}},6485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetDeprecatedFeatures=void 0;const r=n(2656),o=n(6609),i=n(7797),a=n(9814),s=n(4519),l=n(5738),c=n(6531);t.GetDeprecatedFeatures=function(){const e=(0,s.FillIframeEditorDefaults)({name:"Code",spellcheckControl:!0,identifier:i.NativeFeatureIdentifier.TYPES.DeprecatedCodeEditor,permission_name:o.PermissionName.DeprecatedCodeEditor,note_type:a.NoteType.Code,file_type:"txt",interchangeable:!0,deprecated:!0,index_path:"index.html",description:"Syntax highlighting and convenient keyboard shortcuts for over 120 programming languages. Ideal for code snippets and procedures.",thumbnail_url:"https://assets.standardnotes.com/screenshots/models/editors/code.jpg",availableInRoles:[r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser]}),t=(0,s.FillIframeEditorDefaults)({name:"Rich Text",note_type:a.NoteType.RichText,file_type:"html",identifier:i.NativeFeatureIdentifier.TYPES.DeprecatedPlusEditor,permission_name:o.PermissionName.DeprecatedPlusEditor,spellcheckControl:!0,deprecated:!0,description:"From highlighting to custom font sizes and colors, to tables and lists, this editor is perfect for crafting any document.",thumbnail_url:"https://assets.standardnotes.com/screenshots/models/editors/plus-editor.jpg",availableInRoles:[r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser]}),n=(0,s.FillIframeEditorDefaults)({name:"Markdown",identifier:i.NativeFeatureIdentifier.TYPES.DeprecatedMarkdownProEditor,note_type:a.NoteType.Markdown,file_type:"md",permission_name:o.PermissionName.DeprecatedMarkdownProEditor,spellcheckControl:!0,deprecated:!0,description:"A fully featured Markdown editor that supports live preview, a styling toolbar, and split pane support.",thumbnail_url:"https://assets.standardnotes.com/screenshots/models/editors/adv-markdown.jpg",availableInRoles:[r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser]}),u=(0,s.FillIframeEditorDefaults)({name:"Checklist",identifier:i.NativeFeatureIdentifier.TYPES.DeprecatedTaskEditor,note_type:a.NoteType.Task,spellcheckControl:!0,file_type:"md",interchangeable:!1,deprecated:!0,permission_name:o.PermissionName.DeprecatedTaskEditor,description:'A great way to manage short-term and long-term to-do"s. You can mark tasks as completed, change their order, and edit the text naturally in place.',thumbnail_url:"https://assets.standardnotes.com/screenshots/models/editors/task-editor.jpg",availableInRoles:[r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser]}),d=(0,s.FillIframeEditorDefaults)({name:"Alternative Rich Text",identifier:i.NativeFeatureIdentifier.TYPES.DeprecatedBoldEditor,note_type:a.NoteType.RichText,file_type:"html",component_permissions:[{name:l.ComponentAction.StreamContextItem,content_types:[r.ContentType.TYPES.Note]},{name:l.ComponentAction.StreamItems,content_types:[r.ContentType.TYPES.FilesafeCredentials,r.ContentType.TYPES.FilesafeFileMetadata,r.ContentType.TYPES.FilesafeIntegration]}],spellcheckControl:!0,deprecated:!0,permission_name:o.PermissionName.BoldEditor,description:"A simple and peaceful rich editor that helps you write and think clearly.",thumbnail_url:"https://assets.standardnotes.com/screenshots/models/editors/bold.jpg",availableInRoles:[r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser]}),p=(0,s.FillIframeEditorDefaults)({name:"Basic Markdown",identifier:i.NativeFeatureIdentifier.TYPES.DeprecatedMarkdownBasicEditor,note_type:a.NoteType.Markdown,spellcheckControl:!0,file_type:"md",deprecated:!0,permission_name:o.PermissionName.MarkdownBasicEditor,description:"A Markdown editor with dynamic split-pane preview.",thumbnail_url:"https://assets.standardnotes.com/screenshots/models/editors/simple-markdown.jpg",availableInRoles:[r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser]}),f=(0,s.FillIframeEditorDefaults)({name:"Markdown Alternative",identifier:i.NativeFeatureIdentifier.TYPES.DeprecatedMarkdownVisualEditor,note_type:a.NoteType.Markdown,file_type:"md",deprecated:!0,permission_name:o.PermissionName.MarkdownVisualEditor,spellcheckControl:!0,description:"A WYSIWYG-style Markdown editor that renders Markdown in preview-mode while you type without displaying any syntax.",index_path:"build/index.html",availableInRoles:[r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser]});return[e,t,n,u,d,p,(0,s.FillIframeEditorDefaults)({name:"Minimal Markdown",identifier:i.NativeFeatureIdentifier.TYPES.DeprecatedMarkdownMinimistEditor,note_type:a.NoteType.Markdown,file_type:"md",index_path:"index.html",permission_name:o.PermissionName.MarkdownMinimistEditor,spellcheckControl:!0,deprecated:!0,description:"A minimal Markdown editor with live rendering and in-text search via Ctrl/Cmd + F",thumbnail_url:"https://assets.standardnotes.com/screenshots/models/editors/min-markdown.jpg",availableInRoles:[r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser]}),(0,s.FillIframeEditorDefaults)({name:"Markdown with Math",identifier:i.NativeFeatureIdentifier.TYPES.DeprecatedMarkdownMathEditor,spellcheckControl:!0,permission_name:o.PermissionName.MarkdownMathEditor,note_type:a.NoteType.Markdown,file_type:"md",deprecated:!0,index_path:"index.html",description:"A beautiful split-pane Markdown editor with synced-scroll, LaTeX support, and colorful syntax.",thumbnail_url:"https://assets.standardnotes.com/screenshots/models/editors/fancy-markdown.jpg",availableInRoles:[r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser]}),f,(0,s.FillIframeEditorDefaults)({name:"FileSafe",identifier:i.NativeFeatureIdentifier.TYPES.DeprecatedFileSafe,component_permissions:[{name:l.ComponentAction.StreamContextItem,content_types:[r.ContentType.TYPES.Note]},{name:l.ComponentAction.StreamItems,content_types:[r.ContentType.TYPES.FilesafeCredentials,r.ContentType.TYPES.FilesafeFileMetadata,r.ContentType.TYPES.FilesafeIntegration]}],permission_name:o.PermissionName.ComponentFilesafe,area:c.ComponentArea.EditorStack,deprecated:!0,description:"Encrypted attachments for your notes using your Dropbox, Google Drive, or WebDAV server. Limited to 50MB per file.",thumbnail_url:"https://assets.standardnotes.com/screenshots/models/FileSafe-banner.png",availableInRoles:[r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser]})]}},9467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.experimentalFeatures=void 0;const r=n(2656),o=n(7797),i=n(6609);t.experimentalFeatures=function(){return[{name:"Private vaults",description:"Private vaults allow you to store notes, files and tags into separate, encrypted vaults.",availableInRoles:[r.RoleName.NAMES.CoreUser,r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser],identifier:o.NativeFeatureIdentifier.TYPES.Vaults,permission_name:i.PermissionName.Vaults}]}},2406:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IframeEditors=void 0;const r=n(6609),o=n(7797),i=n(9814),a=n(4519),s=n(2656);t.IframeEditors=function(){return[(0,a.FillIframeEditorDefaults)({name:"Authenticator",note_type:i.NoteType.Authentication,file_type:"json",interchangeable:!1,identifier:o.NativeFeatureIdentifier.TYPES.TokenVaultEditor,permission_name:r.PermissionName.TokenVaultEditor,description:"Encrypt and protect your 2FA secrets for all your internet accounts. Authenticator handles your 2FA secrets so that you never lose them again, or have to start over when you get a new device.",thumbnail_url:"https://assets.standardnotes.com/screenshots/models/editors/token-vault.png",availableInRoles:[s.RoleName.NAMES.PlusUser,s.RoleName.NAMES.ProUser]}),(0,a.FillIframeEditorDefaults)({name:"Spreadsheet",identifier:o.NativeFeatureIdentifier.TYPES.SheetsEditor,note_type:i.NoteType.Spreadsheet,file_type:"json",interchangeable:!1,permission_name:r.PermissionName.SheetsEditor,description:"A powerful spreadsheet editor with formatting and formula support. Not recommended for large data sets, as encryption of such data may decrease editor performance.",thumbnail_url:"https://assets.standardnotes.com/screenshots/models/editors/spreadsheets.png",availableInRoles:[s.RoleName.NAMES.PlusUser,s.RoleName.NAMES.ProUser]})]}},7870:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nativeEditors=void 0;const r=n(2656),o=n(9814),i=n(7797),a=n(6609);t.nativeEditors=function(){return[{name:"Super",note_type:o.NoteType.Super,identifier:i.NativeFeatureIdentifier.TYPES.SuperEditor,spellcheckControl:!0,file_type:"json",interchangeable:!1,availableInRoles:[r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser],permission_name:a.PermissionName.SuperEditor,description:"The best way to edit notes. Type / to bring up the block selection menu, or @ to embed images or link other tags and notes. Type - then space to start a list, or [] then space to start a checklist. Drag and drop an image or file to embed it in your note. Cmd/Ctrl + F to bring up search and replace."},{name:"Plain Text",note_type:o.NoteType.Plain,spellcheckControl:!0,file_type:"txt",interchangeable:!0,identifier:i.NativeFeatureIdentifier.TYPES.PlainEditor,availableInRoles:[r.RoleName.NAMES.CoreUser,r.RoleName.NAMES.PlusUser,r.RoleName.NAMES.ProUser],permission_name:a.PermissionName.PlainEditor}]}},6219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serverFeatures=void 0;const r=n(6609),o=n(7797),i=n(2656);t.serverFeatures=function(){return[{name:"Two factor authentication",identifier:o.NativeFeatureIdentifier.TYPES.TwoFactorAuth,permission_name:r.PermissionName.TwoFactorAuth,availableInRoles:[i.RoleName.NAMES.PlusUser,i.RoleName.NAMES.ProUser]},{name:"U2F authentication",identifier:o.NativeFeatureIdentifier.TYPES.UniversalSecondFactor,permission_name:r.PermissionName.UniversalSecondFactor,availableInRoles:[i.RoleName.NAMES.ProUser]},{name:"Unlimited note history",identifier:o.NativeFeatureIdentifier.TYPES.NoteHistoryUnlimited,permission_name:r.PermissionName.NoteHistoryUnlimited,availableInRoles:[i.RoleName.NAMES.ProUser]},{name:"365 days note history",identifier:o.NativeFeatureIdentifier.TYPES.NoteHistory365Days,permission_name:r.PermissionName.NoteHistory365Days,availableInRoles:[i.RoleName.NAMES.PlusUser]},{name:"Email backups",identifier:o.NativeFeatureIdentifier.TYPES.DailyEmailBackup,permission_name:r.PermissionName.DailyEmailBackup,availableInRoles:[i.RoleName.NAMES.PlusUser,i.RoleName.NAMES.ProUser]},{name:"Sign-in email alerts",identifier:o.NativeFeatureIdentifier.TYPES.SignInAlerts,permission_name:r.PermissionName.SignInAlerts,availableInRoles:[i.RoleName.NAMES.PlusUser,i.RoleName.NAMES.ProUser]},{name:"Files maximum storage tier",identifier:o.NativeFeatureIdentifier.TYPES.FilesMaximumStorageTier,permission_name:r.PermissionName.FilesMaximumStorageTier,availableInRoles:[i.RoleName.NAMES.ProUser]},{name:"Files low storage tier",identifier:o.NativeFeatureIdentifier.TYPES.FilesLowStorageTier,permission_name:r.PermissionName.FilesLowStorageTier,availableInRoles:[i.RoleName.NAMES.PlusUser]},{name:"Files medium storage tier",identifier:o.NativeFeatureIdentifier.TYPES.SubscriptionSharing,permission_name:r.PermissionName.SubscriptionSharing,availableInRoles:[i.RoleName.NAMES.ProUser]},{name:"Listed Custom Domain",identifier:o.NativeFeatureIdentifier.TYPES.ListedCustomDomain,permission_name:r.PermissionName.ListedCustomDomain,availableInRoles:[i.RoleName.NAMES.PlusUser,i.RoleName.NAMES.ProUser]},{name:"Shared Vaults",identifier:o.NativeFeatureIdentifier.TYPES.SharedVaults,permission_name:r.PermissionName.SharedVaults,availableInRoles:[i.RoleName.NAMES.InternalTeamUser]}]}},5754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.themes=void 0;const r=n(6609),o=n(7797),i=n(9022),a=n(2656);t.themes=function(){return[(0,i.FillThemeComponentDefaults)({name:"Midnight",identifier:o.NativeFeatureIdentifier.TYPES.MidnightTheme,permission_name:r.PermissionName.MidnightTheme,isDark:!0,dock_icon:{type:"circle",background_color:"#086DD6",foreground_color:"#ffffff",border_color:"#086DD6"},availableInRoles:[a.RoleName.NAMES.PlusUser,a.RoleName.NAMES.ProUser]}),(0,i.FillThemeComponentDefaults)({availableInRoles:[a.RoleName.NAMES.PlusUser,a.RoleName.NAMES.ProUser],name:"Futura",identifier:o.NativeFeatureIdentifier.TYPES.FuturaTheme,permission_name:r.PermissionName.FuturaTheme,isDark:!0,dock_icon:{type:"circle",background_color:"#fca429",foreground_color:"#ffffff",border_color:"#fca429"}}),(0,i.FillThemeComponentDefaults)({availableInRoles:[a.RoleName.NAMES.PlusUser,a.RoleName.NAMES.ProUser],name:"Solarized Dark",identifier:o.NativeFeatureIdentifier.TYPES.SolarizedDarkTheme,permission_name:r.PermissionName.SolarizedDarkTheme,isDark:!0,dock_icon:{type:"circle",background_color:"#2AA198",foreground_color:"#ffffff",border_color:"#2AA198"}}),(0,i.FillThemeComponentDefaults)({availableInRoles:[a.RoleName.NAMES.PlusUser,a.RoleName.NAMES.ProUser],name:"Autobiography",identifier:o.NativeFeatureIdentifier.TYPES.AutobiographyTheme,permission_name:r.PermissionName.AutobiographyTheme,dock_icon:{type:"circle",background_color:"#9D7441",foreground_color:"#ECE4DB",border_color:"#9D7441"}}),(0,i.FillThemeComponentDefaults)({availableInRoles:[a.RoleName.NAMES.CoreUser,a.RoleName.NAMES.PlusUser,a.RoleName.NAMES.ProUser],name:"Dark",identifier:o.NativeFeatureIdentifier.TYPES.DarkTheme,permission_name:r.PermissionName.FocusedTheme,clientControlled:!0,isDark:!0,dock_icon:{type:"circle",background_color:"#a464c2",foreground_color:"#ffffff",border_color:"#a464c2"}}),(0,i.FillThemeComponentDefaults)({availableInRoles:[a.RoleName.NAMES.PlusUser,a.RoleName.NAMES.ProUser],name:"Titanium",identifier:o.NativeFeatureIdentifier.TYPES.TitaniumTheme,permission_name:r.PermissionName.TitaniumTheme,dock_icon:{type:"circle",background_color:"#6e2b9e",foreground_color:"#ffffff",border_color:"#6e2b9e"}}),(0,i.FillThemeComponentDefaults)({availableInRoles:[a.RoleName.NAMES.PlusUser,a.RoleName.NAMES.ProUser],name:"Dynamic Panels",identifier:o.NativeFeatureIdentifier.TYPES.DynamicTheme,permission_name:r.PermissionName.ThemeDynamic,layerable:!0,no_mobile:!0})]}},4519:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FillIframeEditorDefaults=void 0;const r=n(2656),o=n(5738),i=n(6531);t.FillIframeEditorDefaults=function(e){return e.index_path||(e.index_path="dist/index.html"),e.component_permissions||(e.component_permissions=[{name:o.ComponentAction.StreamContextItem,content_types:[r.ContentType.TYPES.Note]}]),e.content_type=r.ContentType.TYPES.Component,e.area||(e.area=i.ComponentArea.Editor),null==e.interchangeable&&(e.interchangeable=!0),e}},9022:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FillThemeComponentDefaults=void 0;const r=n(2656),o=n(6531);t.FillThemeComponentDefaults=function(e){return e.index_path||(e.index_path="index.css"),e.content_type=r.ContentType.TYPES.Theme,e.area||(e.area=o.ComponentArea.Themes),e}},2606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6609:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionName=void 0,function(e){e.AccountSwitcher="app:account-switcher",e.AutobiographyTheme="theme:autobiography",e.BoldEditor="editor:bold",e.DeprecatedCodeEditor="editor:code-editor",e.ComponentFilesafe="component:filesafe",e.ComponentFolders="component:folders",e.DailyEmailBackup="server:daily-email-backup",e.Files="app:files",e.FilesMaximumStorageTier="server:files-max-storage-tier",e.FilesLowStorageTier="server:files-low-storage-tier",e.FocusedTheme="theme:focused",e.FocusMode="app:focus-mode",e.FuturaTheme="theme:futura",e.ListedCustomDomain="listed:custom-domain",e.MarkdownBasicEditor="editor:markdown-basic",e.MarkdownMathEditor="editor:markdown-math",e.MarkdownMinimistEditor="editor:markdown-minimist",e.DeprecatedMarkdownProEditor="editor:markdown-pro",e.MarkdownVisualEditor="editor:markdown-visual",e.MidnightTheme="theme:midnight",e.NoteHistory30Days="server:note-history-30-days",e.NoteHistory365Days="server:note-history-365-days",e.NoteHistoryUnlimited="server:note-history-unlimited",e.PlainEditor="editor:plain",e.DeprecatedPlusEditor="editor:plus",e.SheetsEditor="editor:sheets",e.SignInAlerts="server:sign-in-alerts",e.SmartFilters="app:smart-filters",e.SolarizedDarkTheme="theme:solarized-dark",e.TagNesting="app:tag-nesting",e.DeprecatedTaskEditor="editor:task-editor",e.ThemeDynamic="theme:dynamic",e.TitaniumTheme="theme:titanium",e.TokenVaultEditor="editor:token-vault",e.TwoFactorAuth="server:two-factor-auth",e.UniversalSecondFactor="server:universal-second-factor",e.SubscriptionSharing="server:subscription-sharing",e.SuperEditor="editor:super-editor",e.Clipper="app:clipper",e.Vaults="app:vaults",e.SharedVaults="server:shared-vaults"}(n||(t.PermissionName=n={}))},2061:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9038),t),o(n(7797),t),o(n(3775),t),o(n(3572),t),o(n(1161),t),o(n(8029),t),o(n(7481),t),o(n(4726),t),o(n(9340),t),o(n(3435),t),o(n(1762),t),o(n(2694),t),o(n(9292),t),o(n(2606),t),o(n(6609),t),o(n(5738),t),o(n(6531),t),o(n(8848),t),o(n(2031),t),o(n(9814),t),o(n(2500),t)},755:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2061),t)},1151:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1134:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3227:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5479:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentViewerEvent=void 0,function(e){e.FeatureStatusUpdated="FeatureStatusUpdated"}(n||(t.ComponentViewerEvent=n={}))},9919:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4372:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardModifier=void 0,function(e){e.Shift="Shift",e.Ctrl="Control",e.Meta="Meta"}(n||(t.KeyboardModifier=n={}))},2377:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3102:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3115:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FillItemContentSpecialized=t.FillItemContent=void 0;const r=n(1824),o=n(4750);function i(e){return e.references||(e.references=[]),e.appData||(e.appData={[r.DefaultAppDomain]:{}}),e.appData[r.DefaultAppDomain]||(e.appData[r.DefaultAppDomain]={}),e.appData[r.DefaultAppDomain][o.AppDataField.UserModifiedDate]||(e.appData[r.DefaultAppDomain][o.AppDataField.UserModifiedDate]=(new Date).toString()),e}t.FillItemContent=i,t.FillItemContentSpecialized=function(e){return i(e)}},9678:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1786:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4042:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createComponentCreatedContextPayload=void 0,t.createComponentCreatedContextPayload=function(e){return{content_type:e.content_type,content:e.content,created_at:e.created_at,deleted:!1,uuid:e.uuid}}},2497:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateComponentRetrievedContextPayload=void 0,t.CreateComponentRetrievedContextPayload=function(e){return{content_type:e.content_type,content:e.content,created_at:e.created_at,deleted:!1,uuid:e.uuid}}},9706:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkRemotePayloadAllowed=t.FilterDisallowedRemotePayloadsAndMap=void 0;const r=n(7783);function o(e){return(0,r.isCorruptTransferPayload)(e)?{disallowed:e}:(0,r.isEncryptedTransferPayload)(e)||null==e.content?{allowed:e}:{disallowed:e}}t.FilterDisallowedRemotePayloadsAndMap=function(e){const t=[],n=[];for(const i of e){const e=o(i);void 0===e.allowed?n.push(i):t.push((r=e.allowed,Object.assign(Object.assign({},r),{__passed_filter__:!0})))}var r;return{filtered:t,disallowed:n}},t.checkRemotePayloadAllowed=o},5023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateDecryptedBackupFileContextPayload=t.CreateEncryptedBackupFileContextPayload=void 0,t.CreateEncryptedBackupFileContextPayload=function(e){return{auth_hash:e.auth_hash,content_type:e.content_type,content:e.content,created_at_timestamp:e.created_at_timestamp,created_at:e.created_at,deleted:!1,duplicate_of:e.duplicate_of,enc_item_key:e.enc_item_key,items_key_id:e.items_key_id,updated_at_timestamp:e.updated_at_timestamp,updated_at:e.updated_at,uuid:e.uuid,key_system_identifier:e.key_system_identifier,shared_vault_uuid:e.shared_vault_uuid}},t.CreateDecryptedBackupFileContextPayload=function(e){return{content_type:e.content_type,content:e.content,created_at_timestamp:e.created_at_timestamp,created_at:e.created_at,deleted:!1,duplicate_of:e.duplicate_of,updated_at_timestamp:e.updated_at_timestamp,updated_at:e.updated_at,uuid:e.uuid,key_system_identifier:e.key_system_identifier,shared_vault_uuid:e.shared_vault_uuid}}},3694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateDeletedLocalStorageContextPayload=t.CreateDecryptedLocalStorageContextPayload=t.CreateEncryptedLocalStorageContextPayload=t.isEncryptedLocalStoragePayload=void 0;const r=n(9764),o=n(7783);t.isEncryptedLocalStoragePayload=function(e){return(0,o.isEncryptedTransferPayload)(e)},t.CreateEncryptedLocalStorageContextPayload=function(e){return{auth_hash:e.auth_hash,content_type:e.content_type,content:e.content,created_at_timestamp:e.created_at_timestamp,created_at:e.created_at,deleted:!1,dirty:null!=e.dirty&&e.dirty,duplicate_of:e.duplicate_of,enc_item_key:e.enc_item_key,errorDecrypting:e.errorDecrypting,items_key_id:e.items_key_id,updated_at_timestamp:e.updated_at_timestamp,updated_at:e.updated_at,uuid:e.uuid,waitingForKey:e.waitingForKey,user_uuid:e.user_uuid,key_system_identifier:e.key_system_identifier,shared_vault_uuid:e.shared_vault_uuid,last_edited_by_uuid:e.last_edited_by_uuid,signatureData:e.signatureData}},t.CreateDecryptedLocalStorageContextPayload=function(e){return{content_type:e.content_type,content:e.content,created_at_timestamp:e.created_at_timestamp,created_at:e.created_at,deleted:!1,duplicate_of:e.duplicate_of,updated_at_timestamp:e.updated_at_timestamp,updated_at:e.updated_at,uuid:e.uuid,dirty:(0,r.useBoolean)(e.dirty,!1),user_uuid:e.user_uuid,key_system_identifier:e.key_system_identifier,shared_vault_uuid:e.shared_vault_uuid,last_edited_by_uuid:e.last_edited_by_uuid,signatureData:e.signatureData}},t.CreateDeletedLocalStorageContextPayload=function(e){return{content_type:e.content_type,content:void 0,created_at_timestamp:e.created_at_timestamp,created_at:e.created_at,deleted:!0,dirty:!0,duplicate_of:e.duplicate_of,updated_at_timestamp:e.updated_at_timestamp,updated_at:e.updated_at,uuid:e.uuid,user_uuid:e.user_uuid,key_system_identifier:e.key_system_identifier,shared_vault_uuid:e.shared_vault_uuid,last_edited_by_uuid:e.last_edited_by_uuid,signatureData:e.signatureData}}},3220:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateOfflineSyncPushContextPayload=void 0;const r=n(4174);t.CreateOfflineSyncPushContextPayload=function(e){const t={content:void 0,content_type:e.content_type,created_at_timestamp:e.created_at_timestamp,created_at:e.created_at,deleted:!1,duplicate_of:e.duplicate_of,updated_at_timestamp:e.updated_at_timestamp,updated_at:e.updated_at,uuid:e.uuid};return(0,r.isDecryptedPayload)(e)?Object.assign(Object.assign({},t),{content:e.content}):Object.assign(Object.assign({},t),{deleted:e.deleted})}},2796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateOfflineSyncSavedPayload=void 0;const r=n(4174);t.CreateOfflineSyncSavedPayload=function(e){return{content_type:e.content_type,created_at_timestamp:e.created_at_timestamp,deleted:(0,r.isDeletedPayload)(e),updated_at_timestamp:e.updated_at_timestamp,updated_at:e.updated_at,uuid:e.uuid}}},4972:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateDeletedServerSyncPushPayload=t.CreateEncryptedServerSyncPushPayload=void 0,t.CreateEncryptedServerSyncPushPayload=function(e){return{content_type:e.content_type,created_at_timestamp:e.created_at_timestamp,created_at:e.created_at,deleted:!1,duplicate_of:e.duplicate_of,updated_at_timestamp:e.updated_at_timestamp,updated_at:e.updated_at,uuid:e.uuid,content:e.content,enc_item_key:e.enc_item_key,items_key_id:e.items_key_id,auth_hash:e.auth_hash,key_system_identifier:e.key_system_identifier,shared_vault_uuid:e.shared_vault_uuid}},t.CreateDeletedServerSyncPushPayload=function(e){return{content_type:e.content_type,created_at_timestamp:e.created_at_timestamp,created_at:e.created_at,deleted:!0,duplicate_of:e.duplicate_of,updated_at_timestamp:e.updated_at_timestamp,updated_at:e.updated_at,uuid:e.uuid,content:void 0,key_system_identifier:e.key_system_identifier,shared_vault_uuid:e.shared_vault_uuid}}},3829:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateServerSyncSavedPayload=void 0;const r=n(9764);t.CreateServerSyncSavedPayload=function(e){return{content_type:e.content_type,created_at_timestamp:e.created_at_timestamp,created_at:e.created_at,deleted:(0,r.useBoolean)(e.deleted,!1),updated_at_timestamp:e.updated_at_timestamp,updated_at:e.updated_at,uuid:e.uuid,key_system_identifier:e.key_system_identifier,shared_vault_uuid:e.shared_vault_uuid,user_uuid:e.user_uuid,duplicate_of:e.duplicate_of,last_edited_by_uuid:e.last_edited_by_uuid}}},1242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptedItem=void 0;const r=n(9764),o=n(4750),i=n(1824),a=n(6811),s=n(6848);class l extends a.GenericItem{constructor(e){super(e),this.protected=!1,this.trashed=!1,this.pinned=!1,this.archived=!1,this.locked=!1,this.starred=!1;const t=this.getAppDomainValueWithDefault(o.AppDataField.UserModifiedDate,this.serverUpdatedAt||0);this.userModifiedDate=new Date(t),this.conflictOf=e.content.conflict_of,this.updatedAtString=(0,r.dateToLocalizedString)(this.userModifiedDate),this.protected=(0,r.useBoolean)(this.payload.content.protected,!1),this.trashed=(0,r.useBoolean)(this.payload.content.trashed,!1),this.starred=(0,r.useBoolean)(this.payload.content.starred,!1),this.pinned=this.getAppDomainValueWithDefault(o.AppDataField.Pinned,!1),this.archived=this.getAppDomainValueWithDefault(o.AppDataField.Archived,!1),this.locked=this.getAppDomainValueWithDefault(o.AppDataField.Locked,!1)}static DefaultAppDomain(){return i.DefaultAppDomain}get content(){return this.payload.content}get references(){return this.payload.content.references||[]}isReferencingItem(e){return null!=this.references.find((t=>t.uuid===e.uuid))}getDomainData(e){const t=this.payload.content.appData;if(t)return t[e]}getAppDomainValue(e){const t=this.getDomainData(i.DefaultAppDomain);return null==t?void 0:t[e]}getAppDomainValueWithDefault(e,t){const n=this.getDomainData(i.DefaultAppDomain);return(null==n?void 0:n[e])||t}payloadRepresentation(e){return this.payload.copy(e)}contentKeysToIgnoreWhenCheckingEquality(){return["conflict_of"]}appDataContentKeysToIgnoreWhenCheckingEquality(){return[o.AppDataField.UserModifiedDate]}getContentCopy(){return JSON.parse(JSON.stringify(this.content))}isItemContentEqualWith(e){return(0,s.ItemContentsEqual)(this.payload.content,e.payload.content,this.contentKeysToIgnoreWhenCheckingEquality(),this.appDataContentKeysToIgnoreWhenCheckingEquality())}}t.DecryptedItem=l},5174:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeletedItem=void 0;const r=n(6811);class o extends r.GenericItem{constructor(e){super(e),this.deleted=!0}payloadRepresentation(e){return this.payload.copy(e)}}t.DeletedItem=o},5887:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EncryptedItem=void 0;const r=n(6811);class o extends r.GenericItem{constructor(e){super(e)}get version(){return this.payload.version}payloadRepresentation(e){return this.payload.copy(e)}get errorDecrypting(){return this.payload.errorDecrypting}get waitingForKey(){return this.payload.waitingForKey}get content(){return this.payload.content}get auth_hash(){return this.payload.auth_hash}}t.EncryptedItem=o},6811:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericItem=void 0;const r=n(9764),o=n(3514),i=n(2636),a=n(3736),s=n(6093),l=n(562);t.GenericItem=class{constructor(e){this.payload=e,this.duplicateOf=e.duplicate_of,this.createdAtString=this.created_at&&(0,r.dateToLocalizedString)(this.created_at),this.userModifiedDate=this.serverUpdatedAt||new Date,this.updatedAtString=(0,r.dateToLocalizedString)(this.userModifiedDate),setTimeout((()=>{(0,r.deepFreeze)(this)}),0)}get uuid(){return this.payload.uuid}get content_type(){return this.payload.content_type}get created_at(){return this.payload.created_at}get key_system_identifier(){return this.payload.key_system_identifier}get user_uuid(){return this.payload.user_uuid}get shared_vault_uuid(){return this.payload.shared_vault_uuid}get last_edited_by_uuid(){return this.payload.last_edited_by_uuid}get signatureData(){return this.payload.signatureData}get serverUpdatedAt(){return this.payload.serverUpdatedAt}get serverUpdatedAtTimestamp(){return this.payload.updated_at_timestamp}get updated_at(){return this.serverUpdatedAt}get dirty(){return this.payload.dirty}get lastSyncBegan(){return this.payload.lastSyncBegan}get lastSyncEnd(){return this.payload.lastSyncEnd}get duplicate_of(){return this.payload.duplicate_of}payloadRepresentation(e){return this.payload.copy(e)}get neverSynced(){return!this.serverUpdatedAt||0===this.serverUpdatedAt.getTime()}get isSingleton(){return!1}singletonPredicate(){throw"Must override SNItem.singletonPredicate"}get singletonStrategy(){return s.SingletonStrategy.KeepEarliest}strategyWhenConflictingWithItem(e,t){if((0,l.isEncryptedErroredItem)(this))return a.ConflictStrategy.KeepBaseDuplicateApply;if(this.isSingleton)return a.ConflictStrategy.KeepBase;if((0,l.isDeletedItem)(this))return a.ConflictStrategy.KeepApply;if((0,l.isDeletedItem)(e))return this.payload.source===i.PayloadSource.FileImport?a.ConflictStrategy.KeepBase:a.ConflictStrategy.KeepApply;if(!(0,l.isDecryptedItem)(e)||!(0,l.isDecryptedItem)(this))return a.ConflictStrategy.KeepBaseDuplicateApply;if(!(0,o.ItemContentsDiffer)(this,e))return a.ConflictStrategy.KeepApply;if((0,o.ItemContentsDiffer)(this,e,["references"])){if(t&&!(0,o.ItemContentsDiffer)(t.itemFromPayload(),e))return a.ConflictStrategy.KeepBase;const n=2e4;return e.payload.source===i.PayloadSource.FileImport||Date.now()-this.userModifiedDate.getTime()<n?a.ConflictStrategy.KeepBaseDuplicateApply:a.ConflictStrategy.DuplicateBaseKeepApply}return a.ConflictStrategy.KeepBaseMergeRefs}satisfiesPredicate(e){return e.matchesItem(this)}}},3033:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4872:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEncryptedErroredItem=t.isDecryptedOrDeletedItem=t.isDeletedItem=t.isNotEncryptedItem=t.isEncryptedItem=t.isDecryptedItem=void 0;const r=n(1720);function o(e){return"payload"in e&&(0,r.isDecryptedPayload)(e.payload)}function i(e){return(0,r.isEncryptedPayload)(e.payload)}function a(e){return(0,r.isDeletedPayload)(e.payload)}t.isDecryptedItem=o,t.isEncryptedItem=i,t.isNotEncryptedItem=function(e){return!i(e)},t.isDeletedItem=a,t.isDecryptedOrDeletedItem=function(e){return o(e)||a(e)},t.isEncryptedErroredItem=function(e){return i(e)&&!0===e.errorDecrypting}},7615:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7136:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptedItemMutator=void 0;const r=n(9764),o=n(3178),i=n(4750),a=n(1824),s=n(6066),l=n(2260);class c extends s.ItemMutator{constructor(e,t){super(e,t);const n=(0,r.Copy)(this.immutablePayload.content);this.mutableContent=n}getResult(){return this.type===o.MutationType.NonDirtying?this.immutablePayload.copy({content:this.mutableContent}):(this.type===o.MutationType.UpdateUserTimestamps?this.userModifiedDate=new Date:this.immutableItem.userModifiedDate||(this.userModifiedDate=new Date(this.immutableItem.serverUpdatedAt)),this.immutablePayload.copy({content:this.mutableContent,dirty:!0,dirtyIndex:(0,l.getIncrementedDirtyIndex)(),signatureData:void 0,last_edited_by_uuid:void 0}))}setBeginSync(e,t){this.immutablePayload=this.immutablePayload.copy({content:this.mutableContent,lastSyncBegan:e,globalDirtyIndexAtLastSync:t})}setCustomContent(e){this.mutableContent=(0,r.Copy)(e)}set userModifiedDate(e){this.setAppDataItem(i.AppDataField.UserModifiedDate,e)}set conflictOf(e){this.mutableContent.conflict_of=e}set protected(e){this.mutableContent.protected=e}set trashed(e){this.mutableContent.trashed=e}set starred(e){this.mutableContent.starred=e}set pinned(e){this.setAppDataItem(i.AppDataField.Pinned,e)}set archived(e){this.setAppDataItem(i.AppDataField.Archived,e)}set locked(e){this.setAppDataItem(i.AppDataField.Locked,e)}setDomainData(e,t){this.mutableContent.appData||(this.mutableContent.appData={[a.DefaultAppDomain]:{}}),this.mutableContent.appData[t]=e}setDomainDataKey(e,t,n){this.mutableContent.appData||(this.mutableContent.appData={[a.DefaultAppDomain]:{}}),this.mutableContent.appData[n]||(this.mutableContent.appData[n]={}),this.mutableContent.appData[n][e]=t}setAppDataItem(e,t){this.setDomainDataKey(e,t,a.DefaultAppDomain)}e2ePendingRefactor_addItemAsRelationship(e){const t=this.mutableContent.references||[];t.find((t=>t.uuid===e.uuid))||t.push({uuid:e.uuid,content_type:e.content_type}),this.mutableContent.references=t}removeItemAsRelationship(e){let t=this.mutableContent.references||[];t=t.filter((t=>t.uuid!==e.uuid)),this.mutableContent.references=t}}t.DecryptedItemMutator=c},6055:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteItemMutator=void 0;const r=n(4483),o=n(6066),i=n(3178),a=n(2260);class s extends o.ItemMutator{getDeletedResult(){const e=this.type!==i.MutationType.NonDirtying;return new r.DeletedPayload(Object.assign(Object.assign({},this.immutablePayload.ejected()),{deleted:!0,content:void 0,dirty:!!e||this.immutablePayload.dirty,dirtyIndex:e?(0,a.getIncrementedDirtyIndex)():this.immutablePayload.dirtyIndex}),this.immutablePayload.source)}getResult(){throw Error("Must use getDeletedResult")}}t.DeleteItemMutator=s},6066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ItemMutator=void 0;const r=n(3178),o=n(2260),i=n(7290);t.ItemMutator=class{constructor(e,t){this.immutableItem=e,this.type=t,this.immutablePayload=e.payload}getUuid(){return this.immutablePayload.uuid}getItem(){return this.immutableItem}getResult(){return this.type===r.MutationType.NonDirtying?this.immutablePayload.copy():this.immutablePayload.copy({dirty:!0,dirtyIndex:(0,o.getIncrementedDirtyIndex)()})}setBeginSync(e,t){this.immutablePayload=this.immutablePayload.copy({lastSyncBegan:e,globalDirtyIndexAtLastSync:t})}set key_system_identifier(e){if((0,i.ContentTypeUsesRootKeyEncryption)(this.immutableItem.content_type))throw new Error("Cannot set key_system_identifier on a root key encrypted item");this.immutablePayload=this.immutablePayload.copy({key_system_identifier:e})}set shared_vault_uuid(e){if((0,i.ContentTypeUsesRootKeyEncryption)(this.immutableItem.content_type))throw new Error("Cannot set shared_vault_uuid on a root key encrypted item");this.immutablePayload=this.immutablePayload.copy({shared_vault_uuid:e})}set errorDecrypting(e){throw Error("This method is no longer implemented")}set updated_at(e){throw Error("This method is no longer implemented")}set updated_at_timestamp(e){throw Error("This method is no longer implemented")}}},9499:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4750:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AppDataField=void 0,function(e){e.Pinned="pinned",e.Archived="archived",e.Locked="locked",e.UserModifiedDate="client_updated_at",e.DefaultEditor="defaultEditor",e.MobileRules="mobileRules",e.NotAvailableOnMobile="notAvailableOnMobile",e.MobileActive="mobileActive",e.LastSize="lastSize",e.LegacyPrefersPlainEditor="prefersPlainEditor",e.ComponentInstallError="installError"}(n||(t.AppDataField=n={}))},3736:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ConflictStrategy=void 0,function(e){e[e.KeepBase=1]="KeepBase",e[e.KeepApply=2]="KeepApply",e[e.KeepBaseDuplicateApply=3]="KeepBaseDuplicateApply",e[e.DuplicateBaseKeepApply=4]="DuplicateBaseKeepApply",e[e.KeepBaseMergeRefs=5]="KeepBaseMergeRefs"}(n||(t.ConflictStrategy=n={}))},1824:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentDataDomain=t.DefaultAppDomain=void 0,t.DefaultAppDomain="org.standardnotes.sn",t.ComponentDataDomain="org.standardnotes.sn.components"},4166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8777:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3178:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MutationType=void 0,function(e){e[e.UpdateUserTimestamps=1]="UpdateUserTimestamps",e[e.NoUpdateUserTimestamps=2]="NoUpdateUserTimestamps",e[e.NonDirtying=3]="NonDirtying"}(n||(t.MutationType=n={}))},6093:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SingletonStrategy=void 0,function(e){e[e.KeepEarliest=1]="KeepEarliest"}(n||(t.SingletonStrategy=n={}))},43:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5687),t),o(n(3844),t),o(n(573),t),o(n(604),t),o(n(7403),t),o(n(7444),t),o(n(7420),t),o(n(4769),t),o(n(8102),t),o(n(4077),t),o(n(4077),t),o(n(5174),t),o(n(5887),t),o(n(6811),t),o(n(3033),t),o(n(4872),t),o(n(2837),t),o(n(5091),t),o(n(562),t),o(n(7615),t),o(n(7136),t),o(n(6055),t),o(n(6066),t),o(n(9499),t),o(n(4750),t),o(n(3736),t),o(n(1824),t),o(n(4166),t),o(n(8777),t),o(n(3178),t),o(n(6093),t)},5835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptedPayload=void 0;const r=n(9764),o=n(3115),i=n(2636),a=n(760);class s extends a.PurePayload{constructor(e,t=i.PayloadSource.Constructor){super(e,t),this.content=(0,r.Copy)((0,o.FillItemContent)(e.content)),this.deleted=!1}get references(){return this.content.references||[]}getReference(e){const t=this.references.find((t=>t.uuid===e));if(!t)throw new Error("Reference not found");return t}ejected(){return Object.assign(Object.assign({},super.ejected()),{content:this.content,deleted:this.deleted})}copy(e,t=this.source){return new s(Object.assign(Object.assign({},this.ejected()),e),t)}copyAsSyncResolved(e,t=this.source){return new s(Object.assign(Object.assign({},this.ejected()),e),t)}}t.DecryptedPayload=s},4483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeletedPayload=void 0;const r=n(2636),o=n(760);class i extends o.PurePayload{constructor(e,t=r.PayloadSource.Constructor){super(e,t),this.deleted=!0,this.content=void 0}get discardable(){return!this.dirty}ejected(){return Object.assign(Object.assign({},super.ejected()),{deleted:this.deleted,content:void 0})}copy(e,t=this.source){return new i(Object.assign(Object.assign({},this.ejected()),e),t)}copyAsSyncResolved(e,t=this.source){return new i(Object.assign(Object.assign({},this.ejected()),e),t)}}t.DeletedPayload=i},4553:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EncryptedPayload=void 0;const r=n(6916),o=n(2636),i=n(760);class a extends i.PurePayload{constructor(e,t=o.PayloadSource.Constructor){super(e,t);const n=(0,r.ProtocolVersionFromEncryptedString)(e.content);if(n.isFailed())throw new Error("EncryptedPayload constructor versionResult is failed");this.auth_hash=e.auth_hash,this.content=e.content,this.deleted=!1,this.enc_item_key=e.enc_item_key,this.errorDecrypting=e.errorDecrypting,this.items_key_id=e.items_key_id,this.version=n.getValue(),this.waitingForKey=e.waitingForKey}ejected(){return Object.assign(Object.assign({},super.ejected()),{enc_item_key:this.enc_item_key,items_key_id:this.items_key_id,auth_hash:this.auth_hash,errorDecrypting:this.errorDecrypting,waitingForKey:this.waitingForKey,content:this.content,deleted:this.deleted})}copy(e,t=this.source){return new a(Object.assign(Object.assign({},this.ejected()),e),t)}copyAsSyncResolved(e,t=this.source){return new a(Object.assign(Object.assign({},this.ejected()),e),t)}}t.EncryptedPayload=a},760:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PurePayload=void 0;const r=n(9764),o=n(2636),i=n(7290);t.PurePayload=class{constructor(e,t=o.PayloadSource.Constructor){var n,a,s,l;if(!e.uuid)throw Error(`Attempting to construct payload with null uuid\n Content type: ${e.content_type}`);if(e.key_system_identifier&&(0,i.ContentTypeUsesRootKeyEncryption)(e.content_type))throw new Error("Rootkey-encrypted payload should not have a key system identifier");this.source=t,this.uuid=e.uuid,this.content=e.content,this.content_type=e.content_type,this.deleted=(0,r.useBoolean)(e.deleted,!1),this.dirty=e.dirty,this.duplicate_of=e.duplicate_of,this.updated_at=new Date(e.updated_at||0),this.updated_at_timestamp=e.updated_at_timestamp||0,this.updated_at_timestamp<0&&(this.updated_at_timestamp=0,this.updated_at=new Date(0)),this.created_at=new Date(e.created_at||new Date),this.created_at_timestamp=e.created_at_timestamp||0,this.created_at_timestamp<0&&(this.created_at_timestamp=this.updated_at_timestamp,this.created_at=this.updated_at),this.lastSyncBegan=e.lastSyncBegan?new Date(e.lastSyncBegan):void 0,this.lastSyncEnd=e.lastSyncEnd?new Date(e.lastSyncEnd):void 0,this.dirtyIndex=e.dirtyIndex,this.globalDirtyIndexAtLastSync=e.globalDirtyIndexAtLastSync,this.user_uuid=null!==(n=e.user_uuid)&&void 0!==n?n:void 0,this.key_system_identifier=null!==(a=e.key_system_identifier)&&void 0!==a?a:void 0,this.shared_vault_uuid=null!==(s=e.shared_vault_uuid)&&void 0!==s?s:void 0,this.last_edited_by_uuid=null!==(l=e.last_edited_by_uuid)&&void 0!==l?l:void 0,this.signatureData=e.signatureData,setTimeout((()=>{(0,r.deepFreeze)(this)}),0)}ejected(){return{uuid:this.uuid,content:this.content,deleted:this.deleted,content_type:this.content_type,created_at:this.created_at,updated_at:this.updated_at,created_at_timestamp:this.created_at_timestamp,updated_at_timestamp:this.updated_at_timestamp,dirty:this.dirty,duplicate_of:this.duplicate_of,dirtyIndex:this.dirtyIndex,globalDirtyIndexAtLastSync:this.globalDirtyIndexAtLastSync,lastSyncBegan:this.lastSyncBegan,lastSyncEnd:this.lastSyncEnd,key_system_identifier:this.key_system_identifier,user_uuid:this.user_uuid,shared_vault_uuid:this.shared_vault_uuid,last_edited_by_uuid:this.last_edited_by_uuid,signatureData:this.signatureData}}get serverUpdatedAt(){return this.updated_at}get serverUpdatedAtTimestamp(){return this.updated_at_timestamp}}},5384:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isErrorDecryptingPayload=t.isDeletedPayload=t.isEncryptedPayload=t.isDecryptedPayload=void 0;const r=n(7783);t.isDecryptedPayload=function(e){return(0,r.isDecryptedTransferPayload)(e)},t.isEncryptedPayload=function(e){return(0,r.isEncryptedTransferPayload)(e)},t.isDeletedPayload=function(e){return(0,r.isDeletedTransferPayload)(e)},t.isErrorDecryptingPayload=function(e){return(0,r.isErrorDecryptingTransferPayload)(e)}},8958:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6961:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PayloadTimestampDefaults=void 0,t.PayloadTimestampDefaults=function(){return{updated_at:new Date(0),created_at:new Date,updated_at_timestamp:0,created_at_timestamp:0}}},6966:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PayloadVaultOverrides=void 0,t.PayloadVaultOverrides=function(e){return e?{key_system_identifier:e.systemIdentifier,shared_vault_uuid:e.isSharedVaultListing()?e.sharing.sharedVaultUuid:void 0}:{}}},5411:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.isPayloadSourceRetrieved=t.isPayloadSourceInternalChange=t.PayloadEmitSource=void 0,function(e){e[e.InitialObserverRegistrationPush=1]="InitialObserverRegistrationPush",e[e.LocalChanged=2]="LocalChanged",e[e.LocalInserted=3]="LocalInserted",e[e.LocalDatabaseLoaded=4]="LocalDatabaseLoaded",e[e.OfflineSyncSaved=5]="OfflineSyncSaved",e[e.LocalRetrieved=6]="LocalRetrieved",e[e.FileImport=7]="FileImport",e[e.ComponentRetrieved=8]="ComponentRetrieved",e[e.ComponentCreated=9]="ComponentCreated",e[e.PreSyncSave=10]="PreSyncSave",e[e.RemoteRetrieved=11]="RemoteRetrieved",e[e.RemoteSaved=12]="RemoteSaved",e[e.DesktopComponentSync=13]="DesktopComponentSync"}(n||(t.PayloadEmitSource=n={})),t.isPayloadSourceInternalChange=function(e){return[n.RemoteSaved,n.PreSyncSave].includes(e)},t.isPayloadSourceRetrieved=function(e){return[n.RemoteRetrieved,n.ComponentRetrieved].includes(e)}},2636:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PayloadSource=void 0,function(e){e[e.Constructor=1]="Constructor",e[e.LocalDatabaseLoaded=2]="LocalDatabaseLoaded",e[e.RemoteRetrieved=3]="RemoteRetrieved",e[e.RemoteSaved=4]="RemoteSaved",e[e.FileImport=5]="FileImport"}(n||(t.PayloadSource=n={}))},4174:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(760),t),o(n(5835),t),o(n(4553),t),o(n(4483),t),o(n(5384),t),o(n(7704),t),o(n(997),t),o(n(3353),t),o(n(1720),t),o(n(8958),t),o(n(2636),t),o(n(5411),t),o(n(6961),t),o(n(6966),t)},5687:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},573:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3844:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentReferenceType=void 0,function(e){e.TagToParentTag="TagToParentTag",e.TagToFile="TagToFile",e.FileToNote="FileToNote",e.FileToFile="FileToFile",e.NoteToNote="NoteToNote"}(n||(t.ContentReferenceType=n={}))},604:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTagToParentTagReference=t.isLegacyTagToNoteReference=t.isReference=t.isLegacyAnonymousReference=void 0;const r=n(2656),o=n(3844);t.isLegacyAnonymousReference=e=>void 0===e.reference_type,t.isReference=e=>void 0!==e.reference_type,t.isLegacyTagToNoteReference=(e,t)=>{const n=e.content_type===r.ContentType.TYPES.Note,o=t.content_type===r.ContentType.TYPES.Tag;return n&&o},t.isTagToParentTagReference=e=>(0,t.isReference)(e)&&e.reference_type===o.ContentReferenceType.TagToParentTag},7444:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4769:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8102:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9999:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5326:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCorruptTransferPayload=t.isDeletedTransferPayload=t.isErrorDecryptingTransferPayload=t.isEncryptedTransferPayload=t.isDecryptedTransferPayload=void 0;const r=n(2656),o=n(9764);function i(e){return"content"in e&&(0,o.isString)(e.content)}t.isDecryptedTransferPayload=function(e){return(0,o.isObject)(e.content)},t.isEncryptedTransferPayload=i,t.isErrorDecryptingTransferPayload=function(e){return i(e)&&!0===e.errorDecrypting},t.isDeletedTransferPayload=function(e){return"deleted"in e&&!0===e.deleted},t.isCorruptTransferPayload=function(e){const t=!0===e.deleted&&null!=e.content,n=r.ContentType.create(e.content_type);return null==e.uuid||t||n.isFailed()}},7783:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9999),t),o(n(8571),t),o(n(6838),t),o(n(6365),t),o(n(5326),t)},8659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},165:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.InvitationStatus=void 0,function(e){e.Sent="sent",e.Canceled="canceled",e.Accepted="accepted",e.Declined="declined"}(n||(t.InvitationStatus=n={}))},9937:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.InviteeIdentifierType=void 0,function(e){e.Email="email",e.Hash="hash",e.Uuid="uuid"}(n||(t.InviteeIdentifierType=n={}))},9806:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.InviterIdentifierType=void 0,function(e){e.Email="email",e.Uuid="uuid"}(n||(t.InviterIdentifierType=n={}))},6070:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0,function(e){e[e.Web=1]="Web",e[e.Desktop=2]="Desktop",e[e.Mobile=3]="Mobile",e[e.Clipper=4]="Clipper"}(n||(t.Environment=n={}))},2284:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Platform=void 0,function(e){e[e.Ios=1]="Ios",e[e.Android=2]="Android",e[e.MacWeb=3]="MacWeb",e[e.MacDesktop=4]="MacDesktop",e[e.WindowsWeb=5]="WindowsWeb",e[e.WindowsDesktop=6]="WindowsDesktop",e[e.LinuxWeb=7]="LinuxWeb",e[e.LinuxDesktop=8]="LinuxDesktop"}(n||(t.Platform=n={}))},4731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9620:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.KeySystemPasswordType=void 0,function(e){e.UserInputted="user_inputted",e.Randomized="randomized"}(n||(t.KeySystemPasswordType=n={}))},6152:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4693:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6305:(e,t)=>{"use strict";var n;function r(e,t){return Number(e)-Number(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isVersionLessThanOrEqualTo=t.leftVersionGreaterThanOrEqualToRight=t.compareVersions=t.ProtocolVersionLength=t.isProtocolVersionExpired=t.ProtocolExpirationDates=t.ProtocolVersionLastNonrootItemsKey=t.ProtocolVersionLatest=t.ProtocolVersion=void 0,function(e){e.V001="001",e.V002="002",e.V003="003",e.V004="004"}(n||(t.ProtocolVersion=n={})),t.ProtocolVersionLatest=n.V004,t.ProtocolVersionLastNonrootItemsKey=n.V003,t.ProtocolExpirationDates=Object.freeze({[n.V001]:Date.parse("2018-01-01"),[n.V002]:Date.parse("2020-01-01")}),t.isProtocolVersionExpired=function(e){const n=t.ProtocolExpirationDates[e];return!!n&&(new Date).getTime()>n},t.ProtocolVersionLength=3,t.compareVersions=r,t.leftVersionGreaterThanOrEqualToRight=function(e,t){return r(e,t)>=0},t.isVersionLessThanOrEqualTo=function(e,t){return r(e,t)<=0}},6916:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolVersionFromEncryptedString=void 0;const r=n(2656),o=n(6305);t.ProtocolVersionFromEncryptedString=function(e){try{const t=e.substring(0,o.ProtocolVersionLength);if(Object.values(o.ProtocolVersion).includes(t))return r.Result.ok(t)}catch(e){return r.Result.fail(JSON.stringify(e))}return r.Result.fail(`Invalid encrypted string ${e}`)}},4684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4904:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6206:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3947:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9360:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AsymmetricMessagePayloadType=void 0,function(e){e.ContactShare="contact-share",e.SharedVaultRootKeyChanged="shared-vault-root-key-changed",e.SenderKeypairChanged="sender-keypair-changed",e.SharedVaultMetadataChanged="shared-vault-metadata-changed",e.SharedVaultInvite="shared-vault-invite"}(n||(t.AsymmetricMessagePayloadType=n={}))},4557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3891:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5992:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2518:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;const r=n(9764),o=n(6486);t.Collection=class{constructor(e=!1,t,n,o,i){this.map={},this.typedMap={},this.dirtyIndex=new Set,this.nondeletedIndex=new Set,this.invalidsIndex=new Set,this.isDecryptedElement=e=>(0,r.isObject)(e.content),this.isEncryptedElement=e=>"content"in e&&(0,r.isString)(e.content),this.isErrorDecryptingElement=e=>this.isEncryptedElement(e),this.isDeletedElement=e=>"deleted"in e&&!0===e.deleted,this.isNonDeletedElement=e=>!this.isDeletedElement(e),e?(this.map=t,this.typedMap=n,this.referenceMap=o,this.conflictMap=i):(this.referenceMap=new r.UuidMap,this.conflictMap=new r.UuidMap)}uuids(){return Object.keys(this.map)}all(e){var t;if(e){if(Array.isArray(e)){const t=[];for(const n of e)(0,r.extendArray)(t,this.typedMap[n]||[]);return t}return(null===(t=this.typedMap[e])||void 0===t?void 0:t.slice())||[]}return Object.keys(this.map).map((e=>this.map[e]))}nondeletedElements(){const e=Array.from(this.nondeletedIndex);return this.findAll(e).filter(this.isNonDeletedElement)}invalidElements(){const e=Array.from(this.invalidsIndex);return this.findAll(e)}dirtyElements(){const e=Array.from(this.dirtyIndex);return this.findAll(e)}findAll(e){const t=[];for(const n of e){const e=this.map[n];e&&t.push(e)}return t}find(e){return this.map[e]}has(e){return null!=this.find(e)}findAllIncludingBlanks(e){const t=[];for(const n of e){const e=this.map[n];t.push(e)}return t}set(e){if(0!==(e=Array.isArray(e)?e:[e]).length)for(const t of e){if(this.map[t.uuid]=t,this.setToTypedMap(t),this.isErrorDecryptingElement(t)?this.invalidsIndex.add(t.uuid):this.invalidsIndex.delete(t.uuid),this.isDecryptedElement(t)){const e=t.content.conflict_of;e&&!t.content.trashed&&this.conflictMap.establishRelationship(e,t.uuid);const n=e&&t.content.trashed,r=!e&&this.conflictMap.getInverseRelationships(t.uuid).length>0,o=this.conflictMap.existsInDirectMap(t.uuid)&&0===this.conflictMap.getDirectRelationships(t.uuid).length;(r||o||n)&&this.conflictMap.removeFromMap(t.uuid),this.referenceMap.setAllRelationships(t.uuid,t.references.map((e=>e.uuid)))}t.dirty?this.dirtyIndex.add(t.uuid):this.dirtyIndex.delete(t.uuid),t.deleted?(this.nondeletedIndex.delete(t.uuid),(this.conflictMap.existsInDirectMap(t.uuid)||this.conflictMap.existsInInverseMap(t.uuid))&&this.conflictMap.removeFromMap(t.uuid)):this.nondeletedIndex.add(t.uuid)}else console.warn("Attempting to set 0 elements onto collection")}discard(e){e=Array.isArray(e)?e:[e];for(const t of e)this.deleteFromTypedMap(t),delete this.map[t.uuid],this.conflictMap.removeFromMap(t.uuid),this.referenceMap.removeFromMap(t.uuid)}uuidReferencesForUuid(e){return this.referenceMap.getDirectRelationships(e)}uuidsThatReferenceUuid(e){return this.referenceMap.getInverseRelationships(e)}referencesForElement(e){const t=this.referenceMap.getDirectRelationships(e.uuid);return this.findAll(t)}conflictsOf(e){const t=this.conflictMap.getDirectRelationships(e);return this.findAll(t)}elementsReferencingElement(e,t){const n=this.uuidsThatReferenceUuid(e.uuid),r=this.findAll(n);return t?r.filter((e=>e.content_type===t)):r}setToTypedMap(e){const t=this.typedMap[e.content_type]||[];(0,o.remove)(t,{uuid:e.uuid}),t.push(e),this.typedMap[e.content_type]=t}deleteFromTypedMap(e){const t=this.typedMap[e.content_type]||[];(0,o.remove)(t,{uuid:e.uuid}),this.typedMap[e.content_type]=t}uuidsOfItemsWithConflicts(){return this.conflictMap.getAllDirectKeys()}}},7322:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionSort=void 0,t.CollectionSort={CreatedAt:"created_at",UpdatedAt:"userModifiedDate",Title:"title"}},3159:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ItemCollection=void 0;const r=n(562),o=n(922);class i extends o.Collection{onChange(e){const t=e.changed.concat(e.inserted);t.length>0&&this.set(t),this.discard(e.discarded)}findDecrypted(e){const t=this.find(e);if(t)return(0,r.isDecryptedItem)(t)?t:void 0}findAllDecrypted(e){return this.findAll(e).filter(r.isDecryptedItem)}findAllDecryptedWithBlanks(e){return this.findAllIncludingBlanks(e).map((e=>{if(null==e||(0,r.isDecryptedItem)(e))return e}))}allDecrypted(e){return this.all(e).filter(r.isDecryptedItem)}}t.ItemCollection=i},7618:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ItemCounter=void 0;const r=n(9764),o=n(1904),i=n(43),a=n(4416),s=n(4250),l=n(8402),c=n(871),u=n(8115),d=n(8371),p=n(2656);t.ItemCounter=class{constructor(e,t=[]){this.collection=e,this.observers=t,this.tagToItemsMap={},this.allCountableItems=new Set,this.countableItemsByType=new Map,this.isItemCountable=e=>!!(0,i.isDecryptedItem)(e)&&(this.passesAllFilters(e)&&!e.archived&&!e.trashed&&!e.conflictOf)}addCountChangeObserver(e){this.observers.push(e);const t=this.observers;return()=>{(0,r.removeFromArray)(t,e)}}setDisplayOptions(e){this.displayOptions=e,this.receiveItemChanges(this.collection.all())}setVaultDisplayOptions(e){this.vaultDisplayOptions=e,this.receiveItemChanges(this.collection.all())}allCountableItemsCount(){return this.allCountableItems.size}allCountableNotesCount(){var e;return(null===(e=this.countableItemsByType.get(p.ContentType.TYPES.Note))||void 0===e?void 0:e.size)||0}allCountableFilesCount(){var e;return(null===(e=this.countableItemsByType.get(p.ContentType.TYPES.File))||void 0===e?void 0:e.size)||0}countableItemsForTag(e){var t;return(null===(t=this.tagToItemsMap[e.uuid])||void 0===t?void 0:t.size)||0}onChange(e){const t=[...e.changed,...e.inserted,...e.discarded].filter((e=>e.content_type===p.ContentType.TYPES.Note||e.content_type===p.ContentType.TYPES.File)),n=[...e.changed,...e.inserted].filter(i.isDecryptedItem).filter(o.isTag);this.receiveItemChanges(t),this.receiveTagChanges(n)}passesAllFilters(e){if(!this.displayOptions)return!0;const t=[new a.CollectionCriteriaValidator(this.collection,e)];if(this.vaultDisplayOptions){const n=this.vaultDisplayOptions.getOptions();(0,d.isExclusionaryOptionsValue)(n)?t.push(new s.ExcludeVaultsCriteriaValidator([...n.exclude,...n.locked],e)):t.push(new l.ExclusiveVaultCriteriaValidator(n.exclusive,e))}return"hiddenContentTypes"in this.displayOptions&&this.displayOptions.hiddenContentTypes&&t.push(new c.HiddenContentCriteriaValidator(this.displayOptions.hiddenContentTypes,e)),"customFilter"in this.displayOptions&&this.displayOptions.customFilter&&t.push(new u.CustomFilterCriteriaValidator(this.displayOptions.customFilter,e)),t.every((e=>e.passes()))}notifyObservers(e){for(const t of this.observers)t(e)}receiveTagChanges(e){for(const t of e){const e=t.references.filter((e=>e.content_type===p.ContentType.TYPES.Note||e.content_type===p.ContentType.TYPES.File)).map((e=>e.uuid)).filter((e=>this.allCountableItems.has(e))),n=this.tagToItemsMap[t.uuid];this.tagToItemsMap[t.uuid]=new Set(e),(null==n?void 0:n.size)!==e.length&&this.notifyObservers(t.uuid)}}receiveItemChanges(e){var t,n;const r=this.allCountableItems.size;for(const r of e){const e=this.isItemCountable(r);e?(this.allCountableItems.add(r.uuid),this.countableItemsByType.has(r.content_type)||this.countableItemsByType.set(r.content_type,new Set),null===(t=this.countableItemsByType.get(r.content_type))||void 0===t||t.add(r.uuid)):(this.allCountableItems.delete(r.uuid),null===(n=this.countableItemsByType.get(r.content_type))||void 0===n||n.delete(r.uuid));const o=this.collection.uuidsThatReferenceUuid(r.uuid);for(const t of o){const n=this.setForTag(t),o=n.size;e?n.add(r.uuid):n.delete(r.uuid),o!==n.size&&this.notifyObservers(t)}}r!==this.allCountableItems.size&&this.notifyObservers(void 0)}setForTag(e){let t=this.tagToItemsMap[e];return t||(t=new Set,this.tagToItemsMap[e]=t),t}}},2206:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImmutablePayloadCollection=void 0;const r=n(7619);class o extends r.PayloadCollection{get payloads(){return this.all()}static WithPayloads(e=[]){const t=new o;return e.length>0&&t.set(e),Object.freeze(t),t}static FromCollection(e){const t=Object.freeze(Object.assign({},e.map)),n=Object.freeze(Object.assign({},e.typedMap)),r=Object.freeze(e.referenceMap.makeCopy()),i=Object.freeze(e.conflictMap.makeCopy()),a=new o(!0,t,n,r,i);return Object.freeze(a),a}mutableCopy(){const e=Object.assign({},this.map),t=Object.assign({},this.typedMap),n=this.referenceMap.makeCopy(),o=this.conflictMap.makeCopy();return new r.PayloadCollection(!0,e,t,n,o)}}t.ImmutablePayloadCollection=o},7619:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PayloadCollection=void 0;const r=n(922);class o extends r.Collection{integrityPayloads(){return this.nondeletedElements().map((e=>({uuid:e.uuid,updated_at_timestamp:e.serverUpdatedAtTimestamp})))}}t.PayloadCollection=o},2637:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSyncDelta=void 0;const r=n(9764);t.extendSyncDelta=function(e,t){(0,r.extendArray)(e.emits,t.emits),t.ignored&&(e.ignored||(e.ignored=[]),(0,r.extendArray)(e.ignored,t.ignored))}},7404:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConflictDelta=void 0;const r=n(9764),o=n(2656),i=n(3758),a=n(734),s=n(3736),l=n(8636),c=n(9618),u=n(1720),d=n(9574),p=n(2260);t.ConflictDelta=class{constructor(e,t,n,r){this.baseCollection=e,this.basePayload=t,this.applyPayload=n,this.historyMap=r}result(){if(this.applyPayload.content_type===o.ContentType.TYPES.ItemsKey)return new d.ItemsKeyDelta(this.baseCollection,[this.applyPayload]).result();const e=this.getConflictStrategy();return{emits:this.handleStrategy(e),ignored:[]}}getConflictStrategy(){const e=(0,u.isErrorDecryptingPayload)(this.basePayload),t=(0,u.isErrorDecryptingPayload)(this.applyPayload);if(e||t){if(e&&!t)return s.ConflictStrategy.KeepBaseDuplicateApply;if(!e&&t)return s.ConflictStrategy.DuplicateBaseKeepApply;if(e&&t)return s.ConflictStrategy.KeepApply}else{if((0,u.isDecryptedPayload)(this.basePayload)){const e=this.baseCollection.conflictsOf(this.applyPayload.uuid)[0];if(e&&(0,u.isDecryptedPayload)(e)&&(0,u.isDecryptedPayload)(this.applyPayload)&&(0,c.PayloadContentsEqual)(e,this.applyPayload))return s.ConflictStrategy.KeepBase;{const e=(0,i.CreateDecryptedItemFromPayload)(this.basePayload),t=(0,i.CreateItemFromPayload)(this.applyPayload),n=this.historyMap[this.basePayload.uuid]||[],r=a.historyMapFunctions.getNewestRevision(n);return e.strategyWhenConflictingWithItem(t,r)}}if((0,u.isDeletedPayload)(this.basePayload)||(0,u.isDeletedPayload)(this.applyPayload))return(0,u.isDeletedPayload)(this.basePayload),(0,u.isDeletedPayload)(this.applyPayload),s.ConflictStrategy.KeepApply}throw Error("Unhandled strategy in Conflict Delta getConflictStrategy")}handleStrategy(e){if(e===s.ConflictStrategy.KeepBase)return this.handleKeepBaseStrategy();if(e===s.ConflictStrategy.KeepApply)return this.handleKeepApplyStrategy();if(e===s.ConflictStrategy.KeepBaseDuplicateApply)return this.handleKeepBaseDuplicateApplyStrategy();if(e===s.ConflictStrategy.DuplicateBaseKeepApply)return this.handleDuplicateBaseKeepApply();if(e===s.ConflictStrategy.KeepBaseMergeRefs)return this.handleKeepBaseMergeRefsStrategy();throw Error("Unhandled strategy in conflict delta payloadsByHandlingStrategy")}handleKeepBaseStrategy(){const e=this.applyPayload.serverUpdatedAt,t=this.applyPayload.updated_at_timestamp;return[this.basePayload.copyAsSyncResolved({updated_at:e,updated_at_timestamp:t,dirtyIndex:(0,p.getIncrementedDirtyIndex)(),dirty:!0,lastSyncEnd:new Date},this.applyPayload.source)]}handleKeepApplyStrategy(){return[this.applyPayload.copyAsSyncResolved({lastSyncBegan:this.basePayload.lastSyncBegan,lastSyncEnd:new Date,dirty:!1},this.applyPayload.source)]}handleKeepBaseDuplicateApplyStrategy(){const e=this.applyPayload.serverUpdatedAt,t=this.applyPayload.updated_at_timestamp,n=this.basePayload.copyAsSyncResolved({updated_at:e,updated_at_timestamp:t,dirty:!0,dirtyIndex:(0,p.getIncrementedDirtyIndex)(),lastSyncEnd:new Date},this.applyPayload.source),r=(0,l.PayloadsByDuplicating)({payload:this.applyPayload,baseCollection:this.baseCollection,isConflict:!0,source:this.applyPayload.source});return[n].concat(r)}handleDuplicateBaseKeepApply(){const e=(0,l.PayloadsByDuplicating)({payload:this.basePayload,baseCollection:this.baseCollection,isConflict:!0,source:this.applyPayload.source}),t=this.applyPayload.copyAsSyncResolved({lastSyncBegan:this.basePayload.lastSyncBegan,dirty:!1,lastSyncEnd:new Date},this.applyPayload.source);return e.concat([t])}handleKeepBaseMergeRefsStrategy(){if(!(0,u.isDecryptedPayload)(this.basePayload)||!(0,u.isDecryptedPayload)(this.applyPayload))return[];const e=(0,r.uniqCombineObjArrays)(this.basePayload.content.references,this.applyPayload.content.references,["uuid","content_type"]),t=this.applyPayload.serverUpdatedAt,n=this.applyPayload.updated_at_timestamp;return[this.basePayload.copyAsSyncResolved({updated_at:t,updated_at_timestamp:n,dirty:!0,dirtyIndex:(0,p.getIncrementedDirtyIndex)(),lastSyncEnd:new Date,content:Object.assign(Object.assign({},this.basePayload.content),{references:e})},this.applyPayload.source)]}}},1205:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeltaFileImport=void 0;const r=n(7404),o=n(4174),i=n(2637),a=n(2260);t.DeltaFileImport=class{constructor(e,t,n){this.baseCollection=e,this.applyPayloads=t,this.historyMap=n}result(){const e={emits:[],ignored:[],source:o.PayloadEmitSource.FileImport};for(const t of this.applyPayloads){const n=this.resolvePayload(t,e);(0,i.extendSyncDelta)(e,n)}return e}resolvePayload(e,t){let n=t.emits.find((t=>(0,o.isDecryptedPayload)(t)&&t.content.conflict_of===e.uuid));if(n||(n=t.emits.find((t=>t.uuid===e.uuid))),!n){const t=this.baseCollection.find(e.uuid);t&&(0,o.isDecryptedPayload)(t)&&(n=t)}return n?new r.ConflictDelta(this.baseCollection,n,e,this.historyMap).result():{emits:[e.copyAsSyncResolved({dirty:!0,dirtyIndex:(0,a.getIncrementedDirtyIndex)(),lastSyncEnd:new Date(0)})],ignored:[]}}}},9574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ItemsKeyDelta=void 0;const r=n(4174),o=n(1118);t.ItemsKeyDelta=class{constructor(e,t){this.baseCollection=e,this.applyPayloads=t}result(){const e=[],t=[];for(const n of this.applyPayloads){const i=this.baseCollection.find(n.uuid);if(i)if((0,r.isEncryptedPayload)(n)&&(0,r.isDecryptedPayload)(i)){const r=i.copyAsSyncResolved({updated_at_timestamp:n.updated_at_timestamp,updated_at:n.updated_at,dirty:!1,lastSyncEnd:new Date});e.push(r),t.push(n)}else e.push((0,o.payloadByFinalizingSyncState)(n,this.baseCollection));else e.push((0,o.payloadByFinalizingSyncState)(n,this.baseCollection))}return{emits:e,ignored:t}}}},2701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeltaOfflineSaved=void 0;const r=n(4174),o=n(1118);t.DeltaOfflineSaved=class{constructor(e,t){this.baseCollection=e,this.applyContextualPayloads=t}result(){const e=[];for(const t of this.applyContextualPayloads){const n=this.baseCollection.find(t.uuid);n&&e.push((0,o.payloadByFinalizingSyncState)(n,this.baseCollection))}return{emits:e,source:r.PayloadEmitSource.OfflineSyncSaved}}}},6344:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeltaOutOfSync=void 0;const r=n(4174),o=n(1720),i=n(9618),a=n(7404),s=n(2656),l=n(9574),c=n(1118),u=n(2637);t.DeltaOutOfSync=class{constructor(e,t,n){this.baseCollection=e,this.applyCollection=t,this.historyMap=n}result(){const e={emits:[],ignored:[],source:r.PayloadEmitSource.RemoteRetrieved};for(const t of this.applyCollection.all()){if(t.content_type===s.ContentType.TYPES.ItemsKey){const n=new l.ItemsKeyDelta(this.baseCollection,[t]).result();(0,u.extendSyncDelta)(e,n);continue}const n=this.baseCollection.find(t.uuid);if(!n){e.emits.push((0,c.payloadByFinalizingSyncState)(t,this.baseCollection));continue}const r=(0,o.isDecryptedPayload)(n),d=(0,o.isDecryptedPayload)(t);if(d!==r||d&&r&&!(0,i.PayloadContentsEqual)(t,n)){const r=new a.ConflictDelta(this.baseCollection,n,t,this.historyMap);(0,u.extendSyncDelta)(e,r.result())}else e.emits.push((0,c.payloadByFinalizingSyncState)(t,this.baseCollection))}return e}}},1777:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeltaRemoteDataConflicts=void 0;const r=n(7404),o=n(4174),i=n(2637),a=n(1118);t.DeltaRemoteDataConflicts=class{constructor(e,t,n){this.baseCollection=e,this.conflicts=t,this.historyMap=n}result(){const e={emits:[],ignored:[],source:o.PayloadEmitSource.RemoteRetrieved};for(const t of this.conflicts){const n=this.baseCollection.find(t.server_item.uuid);if(null==n){e.emits.push((0,a.payloadByFinalizingSyncState)(t.server_item,this.baseCollection));continue}const o=new r.ConflictDelta(this.baseCollection,n,t.server_item,this.historyMap);(0,i.extendSyncDelta)(e,o.result())}return e}}},3105:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeltaRemoteRejected=void 0;const r=n(2636),o=n(4174),i=n(2936),a=n(2431),s=n(8636),l=n(2656);t.DeltaRemoteRejected=class{constructor(e,t){this.baseCollection=e,this.conflicts=t}result(){const e=[],t=[a.ConflictType.SharedVaultInsufficientPermissionsError,a.ConflictType.SharedVaultNotMemberError,a.ConflictType.SharedVaultInvalidState,a.ConflictType.SharedVaultSnjsVersionError];for(const n of this.conflicts)t.includes(n.type)?e.push(...this.handleVaultError(n)):(0,a.conflictParamsHasServerItemAndUnsavedItem)(n)?e.push(...this.getResultForConflictWithServerItemAndUnsavedItem(n)):(0,a.conflictParamsHasOnlyServerItem)(n)?e.push(...this.getResultForConflictWithOnlyServerItem(n)):(0,a.conflictParamsHasOnlyUnsavedItem)(n)&&e.push(...this.getResultForConflictWithOnlyUnsavedItem(n));return{emits:e,source:o.PayloadEmitSource.RemoteSaved}}handleVaultError(e){const t=this.baseCollection.find(e.unsaved_item.uuid);return t?e.type===a.ConflictType.SharedVaultNotMemberError?this.resultByDuplicatingBasePayloadAsNonVaultedAndRemovingBaseItemLocally(t):t.content_type===l.ContentType.TYPES.KeySystemItemsKey?this.discardChangesOfBasePayload(t):e.server_item?this.resultByDuplicatingBasePayloadAsNonVaultedAndTakingServerPayloadAsCanonical(t,e.server_item):this.resultByDuplicatingBasePayloadAsNonVaultedAndDiscardingChangesOfOriginal(t):[]}discardChangesOfBasePayload(e){return[e.copyAsSyncResolved({dirty:!1,lastSyncEnd:new Date},r.PayloadSource.RemoteSaved)]}getResultForConflictWithOnlyUnsavedItem(e){const t=this.baseCollection.find(e.unsaved_item.uuid);return t?[t.copyAsSyncResolved({dirty:!1,lastSyncEnd:new Date},r.PayloadSource.RemoteSaved)]:[]}getResultForConflictWithOnlyServerItem(e){const t=this.baseCollection.find(e.server_item.uuid);return t?this.resultByDuplicatingBasePayloadIntoNewUuidAndTakingServerPayloadAsCanonical(t,e.server_item):[]}getResultForConflictWithServerItemAndUnsavedItem(e){const t=this.baseCollection.find(e.server_item.uuid);return t?this.resultByDuplicatingBasePayloadIntoNewUuidAndTakingServerPayloadAsCanonical(t,e.server_item):[]}resultByDuplicatingBasePayloadIntoNewUuidAndTakingServerPayloadAsCanonical(e,t){const n=(0,s.PayloadsByDuplicating)({payload:e,baseCollection:this.baseCollection,isConflict:!0,source:t.source}),r=t.copyAsSyncResolved({lastSyncBegan:e.lastSyncBegan,dirty:!1,lastSyncEnd:new Date},t.source);return n.concat([r])}resultByDuplicatingBasePayloadAsNonVaultedAndTakingServerPayloadAsCanonical(e,t){const n=(0,s.PayloadsByDuplicating)({payload:e.copy({key_system_identifier:void 0,shared_vault_uuid:void 0}),baseCollection:this.baseCollection,isConflict:!0,source:t.source}),r=t.copyAsSyncResolved({lastSyncBegan:e.lastSyncBegan,dirty:!1,lastSyncEnd:new Date},t.source);return n.concat([r])}resultByDuplicatingBasePayloadAsNonVaultedAndDiscardingChangesOfOriginal(e){return[...(0,s.PayloadsByDuplicating)({payload:e.copy({key_system_identifier:void 0,shared_vault_uuid:void 0}),baseCollection:this.baseCollection,isConflict:!0,source:e.source}),...this.discardChangesOfBasePayload(e)]}resultByDuplicatingBasePayloadAsNonVaultedAndRemovingBaseItemLocally(e){return[...(0,s.PayloadsByDuplicating)({payload:e.copy({key_system_identifier:void 0,shared_vault_uuid:void 0}),baseCollection:this.baseCollection,isConflict:!0,source:e.source}),new o.DeletedPayload(Object.assign(Object.assign(Object.assign({},e),{content:void 0,deleted:!0,key_system_identifier:void 0,shared_vault_uuid:void 0}),(0,i.BuildSyncResolvedParams)({dirty:!1,lastSyncEnd:new Date})),r.PayloadSource.RemoteSaved)]}}},5914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeltaRemoteRetrieved=void 0;const r=n(7404),o=n(1720),i=n(4174),a=n(2656),s=n(1118),l=n(9574),c=n(2637);t.DeltaRemoteRetrieved=class{constructor(e,t,n,r){this.baseCollection=e,this.applyCollection=t,this.itemsSavedOrSaving=n,this.historyMap=r}isUuidOfPayloadCurrentlySavingOrSaved(e){return null!=this.itemsSavedOrSaving.find((t=>t.uuid===e))}result(){const e={emits:[],ignored:[],source:i.PayloadEmitSource.RemoteRetrieved},t=[];for(const n of this.applyCollection.all()){if(n.content_type===a.ContentType.TYPES.ItemsKey||n.content_type===a.ContentType.TYPES.KeySystemItemsKey){const t=new l.ItemsKeyDelta(this.baseCollection,[n]).result();(0,c.extendSyncDelta)(e,t);continue}if(this.isUuidOfPayloadCurrentlySavingOrSaved(n.uuid)){t.push(n);continue}const r=this.baseCollection.find(n.uuid);!(null==r?void 0:r.dirty)||(0,o.isErrorDecryptingPayload)(r)?e.emits.push((0,s.payloadByFinalizingSyncState)(n,this.baseCollection)):t.push(n)}for(const n of t){if(!(0,o.isDecryptedPayload)(n))continue;const t=this.baseCollection.find(n.uuid);if(!t)continue;const i=new r.ConflictDelta(this.baseCollection,t,n,this.historyMap);(0,c.extendSyncDelta)(e,i.result())}return e}}},8490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeltaRemoteSaved=void 0;const r=n(4483),o=n(2636),i=n(1720),a=n(4174),s=n(1118),l=n(2936),c=n(2260);t.DeltaRemoteSaved=class{constructor(e,t){this.baseCollection=e,this.applyContextualPayloads=t}result(){const e=[];for(const t of this.applyContextualPayloads){const n=this.baseCollection.find(t.uuid);if(n)if((0,i.isDeletedPayload)(n)){const i=!t.deleted,a=t.deleted;if(i){const n=new r.DeletedPayload(Object.assign(Object.assign(Object.assign({},t),{deleted:!0,content:void 0,dirtyIndex:(0,c.getIncrementedDirtyIndex)()}),(0,l.BuildSyncResolvedParams)({dirty:!0,lastSyncEnd:new Date})),o.PayloadSource.RemoteSaved);e.push(n)}else if(a){const r=n.copy(Object.assign(Object.assign(Object.assign({},t),{deleted:!0}),(0,l.BuildSyncResolvedParams)({dirty:!1,lastSyncEnd:new Date})),o.PayloadSource.RemoteSaved);e.push(r)}}else{const r=(0,s.payloadByFinalizingSyncState)(n.copy(Object.assign(Object.assign({},t),{deleted:!1}),o.PayloadSource.RemoteSaved),this.baseCollection);e.push(r)}else{const n=new r.DeletedPayload(Object.assign(Object.assign(Object.assign({},t),{deleted:!0,content:void 0}),(0,l.BuildSyncResolvedParams)({dirty:!1,lastSyncEnd:new Date})),o.PayloadSource.RemoteSaved);e.push(n)}}return{emits:e,source:a.PayloadEmitSource.RemoteSaved}}}},4561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeltaRemoteUuidConflicts=void 0;const r=n(9764),o=n(2206),i=n(5277),a=n(1720),s=n(4174);t.DeltaRemoteUuidConflicts=class{constructor(e,t){this.baseCollection=e,this.conflicts=t}result(){const e=[],t=this.baseCollection.mutableCopy();for(const n of this.conflicts){const s=e.find((e=>e.uuid===n.unsaved_item.uuid))||n.unsaved_item;if(!(0,a.isDecryptedPayload)(s))continue;const l=(0,i.PayloadsByAlternatingUuid)(s,o.ImmutablePayloadCollection.FromCollection(t));t.set(l),(0,r.filterFromArray)(e,(e=>(0,r.Uuids)(l).includes(e.uuid))),(0,r.extendArray)(e,l)}return{emits:e,source:s.PayloadEmitSource.RemoteRetrieved}}}},1118:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.payloadsByFinalizingSyncState=t.payloadByFinalizingSyncState=void 0;const r=n(2260);function o(e,t){const n=t.find(e.uuid);if(!n)return e.copyAsSyncResolved({dirty:!1,lastSyncEnd:new Date});const o=!(!n.dirtyIndex||!n.globalDirtyIndexAtLastSync)&&n.dirtyIndex>n.globalDirtyIndexAtLastSync;return e.copyAsSyncResolved({dirty:o,dirtyIndex:o?(0,r.getIncrementedDirtyIndex)():void 0,lastSyncEnd:new Date})}t.payloadByFinalizingSyncState=o,t.payloadsByFinalizingSyncState=function(e,t){return e.map((e=>o(e,t)))}},2936:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BuildSyncResolvedParams=void 0,t.BuildSyncResolvedParams=function(e){return e}},9740:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7404),t),o(n(1205),t),o(n(6344),t),o(n(1777),t),o(n(5914),t),o(n(8490),t),o(n(2701),t),o(n(4561),t),o(n(3105),t),o(n(2637),t)},2260:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentDirtyIndex=t.getIncrementedDirtyIndex=void 0;let n=0;t.getIncrementedDirtyIndex=function(){return n++,n},t.getCurrentDirtyIndex=function(){return n}},9482:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeFiltersForDisplayOptions=t.computeUnifiedFilterForDisplayOptions=void 0;const r=n(8823),o=n(339),i=n(7961),a=n(9193),s=n(2656);function l(e,t){var n;const l=[];let c;if(e.views&&e.views.length>0){const n=new r.CompoundPredicate("and",e.views.map((e=>e.predicate)));c=n,l.push((e=>{if(n.keypathIncludesString("tags")){const r=o.ItemWithTags.Create(e.payload,e,t.elementsReferencingElement(e,s.ContentType.TYPES.Tag));return n.matchesItem(r)}return n.matchesItem(e)}))}if(e.tags&&e.tags.length>0)for(const t of e.tags)l.push((e=>t.isReferencingItem(e)));if(!1!==e.includePinned||(null==c?void 0:c.keypathIncludesString("pinned"))||l.push((e=>!e.pinned)),!1!==e.includeProtected||(null==c?void 0:c.keypathIncludesString("protected"))||l.push((e=>!e.protected)),!1!==e.includeTrashed||(null==c?void 0:c.keypathIncludesString("trashed"))||l.push((e=>!e.trashed)),!1!==e.includeArchived||(null==c?void 0:c.keypathIncludesString("archived"))||l.push((e=>!e.archived)),e.searchQuery){const n=e.searchQuery;l.push((e=>(0,i.itemMatchesQuery)(e,n,t)))}return(null==c?void 0:c.keypathIncludesString("conflict_of"))||(null===(n=e.views)||void 0===n?void 0:n.some((e=>e.uuid===a.SystemViewId.TrashedNotes)))||l.push((e=>!e.conflictOf)),l}t.computeUnifiedFilterForDisplayOptions=function(e,t,n=[]){const r=l(e,t).concat(n);return e=>(0,i.itemPassesFilters)(e,r)},t.computeFiltersForDisplayOptions=l},4010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ItemDisplayController=void 0;const r=n(9764),o=n(43),i=n(5964),a=n(4416),s=n(8115),l=n(4250),c=n(8402),u=n(871),d=n(8371);t.ItemDisplayController=class{constructor(e,t,n,r){this.collection=e,this.contentTypes=t,this.options=n,this.vaultOptions=r,this.sortMap={},this.sortedItems=[],this.needsSort=!0,this.filterThenSortElements(this.collection.all(this.contentTypes))}items(){return this.sortedItems}hasExclusiveVaultOptions(){return!!this.vaultOptions&&!(0,d.isExclusionaryOptionsValue)(this.vaultOptions.getOptions())}getDisplayOptions(){return this.options}setVaultDisplayOptions(e){this.vaultOptions=e,this.needsSort=!0,this.filterThenSortElements(this.collection.all(this.contentTypes))}setDisplayOptions(e){this.options=Object.assign(Object.assign({},this.options),e),this.needsSort=!0,this.filterThenSortElements(this.collection.all(this.contentTypes))}onCollectionChange(e){const t=[...e.changed,...e.inserted,...e.discarded].filter((e=>this.contentTypes.includes(e.content_type)));this.filterThenSortElements(t)}passesAllFilters(e){const t=[new a.CollectionCriteriaValidator(this.collection,e)];if(this.vaultOptions){const n=this.vaultOptions.getOptions();(0,d.isExclusionaryOptionsValue)(n)?t.push(new l.ExcludeVaultsCriteriaValidator([...n.exclude,...n.locked],e)):t.push(new c.ExclusiveVaultCriteriaValidator(n.exclusive,e))}return"hiddenContentTypes"in this.options&&this.options.hiddenContentTypes&&t.push(new u.HiddenContentCriteriaValidator(this.options.hiddenContentTypes,e)),"customFilter"in this.options&&this.options.customFilter&&t.push(new s.CustomFilterCriteriaValidator(this.options.customFilter,e)),t.every((e=>e.passes()))}filterThenSortElements(e){for(const t of e){const e=this.sortMap[t.uuid],n=null!=e?this.sortedItems[e]:void 0,i=()=>{null!=e&&(delete this.sortMap[t.uuid],this.sortedItems[e]=void 0,this.needsSort=!0)};if((0,o.isDeletedItem)(t)||(0,o.isEncryptedItem)(t))i();else if(this.passesAllFilters(t))if(null!=n){const o=n[this.options.sortBy],i=t[this.options.sortBy];this.sortedItems[e]=t;const a=n.pinned!==t.pinned;(0,r.compareValues)(o,i)&&!a||(this.needsSort=!0)}else this.sortedItems.push(t),this.needsSort=!0;else i()}this.needsSort&&(this.needsSort=!1,this.resortItems())}resortItems(){const e=this.sortedItems.sort(((e,t)=>(0,i.sortTwoItems)(e,t,this.options.sortBy,this.options.sortDirection))),t=[];let n=0;for(const r of e)r&&(t.push(r),this.sortMap[r.uuid]=n,n++);this.sortedItems=t}}},339:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ItemWithTags=void 0;const r=n(9764),o=n(43);class i extends o.DecryptedItem{constructor(e,t,n){super(e),this.item=t,this.tags=n,this.transferInItemPropertiesSoRootLevelPredicateKeyPathsCanBeMatched(t),this.tags=n||e.content.tags}transferInItemPropertiesSoRootLevelPredicateKeyPathsCanBeMatched(e){Object.assign(this,(0,r.omitByCopy)(e,["title","text"]))}static Create(e,t,n){return new i(e,t,n)}get tagsCount(){var e;return(null===(e=this.tags)||void 0===e?void 0:e.length)||0}get title(){return this.item.title}get text(){return this.item.text}}t.ItemWithTags=i},7961:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.itemMatchesQuery=t.itemPassesFilters=t.notesAndFilesMatchingOptions=void 0;const r=n(2656),o=n(4884);var i;function a(e,t){for(const n of t)if(!n(e))return!1;return!0}function s(e,t){var n,r;if(0===t.length)return i.TitleAndText;const o=null===(n=e.title)||void 0===n?void 0:n.toLowerCase(),a=null===(r=e.text)||void 0===r?void 0:r.toLowerCase(),s=t.toLowerCase(),l=s.split(" "),c=function(e){const t=e.match(/"(.*?)"/);return t?t[1]:null}(s);if(c)return((null==o?void 0:o.includes(c))?i.Title:i.None)+((null==a?void 0:a.includes(c))?i.Text:i.None);if(function(e){return!!e.match(/\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b/)}(s))return e.uuid===s?i.Uuid:i.None;const u=o&&l.every((e=>o.indexOf(e)>=0)),d=a&&l.every((e=>a.indexOf(e)>=0));return(u?i.Title:0)+(d?i.Text:0)}!function(e){e[e.None=0]="None",e[e.Title=1]="Title",e[e.Text=2]="Text",e[e.TitleAndText=3]="TitleAndText",e[e.Uuid=5]="Uuid"}(i||(i={})),t.notesAndFilesMatchingOptions=function(e,t,n){const r=(0,o.computeFiltersForDisplayOptions)(e,n);return t.filter((e=>a(e,r)))},t.itemPassesFilters=a,t.itemMatchesQuery=function(e,t,n){const o=n.elementsReferencingElement(e,r.ContentType.TYPES.Tag).some((e=>s(e,t.query)!==i.None));if(e.protected&&!t.includeProtectedNoteText){const n=s(e,t.query);return n===i.Title||n===i.TitleAndText||o}return s(e,t.query)!==i.None||o}},8712:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9957:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5964:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortTwoItems=t.KeepSameOrder=t.SortRightFirst=t.SortLeftFirst=void 0;const r=n(9764),o=n(7322);t.SortLeftFirst=-1,t.SortRightFirst=1,t.KeepSameOrder=0,t.sortTwoItems=function e(n,i,a,s,l=!1){if(!n)return t.SortLeftFirst;if(!i)return t.SortRightFirst;if(!l){if(n.pinned&&i.pinned)return e(n,i,a,s,!0);if(n.pinned)return t.SortLeftFirst;if(i.pinned)return t.SortRightFirst}const c=n[a]||"",u=i[a]||"",d="asc"===s;let p=t.KeepSameOrder;p=a===o.CollectionSort.Title&&(0,r.isString)(c)&&(0,r.isString)(u)&&c.length>0&&u.length>0?c.localeCompare(u,"en",{numeric:!0}):c>u?t.SortRightFirst:c<u?t.SortLeftFirst:t.KeepSameOrder;const f=p===t.SortLeftFirst,h=p===t.SortRightFirst;return f?d?t.SortLeftFirst:t.SortRightFirst:h?d?t.SortRightFirst:t.SortLeftFirst:t.KeepSameOrder}},3167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionCriteriaValidator=void 0,t.CollectionCriteriaValidator=class{constructor(e,t){this.collection=e,this.element=t}passes(){return this.collection.has(this.element.uuid)}}},8115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomFilterCriteriaValidator=void 0,t.CustomFilterCriteriaValidator=class{constructor(e,t){this.customFilter=e,this.element=t}passes(){return this.customFilter(this.element)}}},4250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExcludeVaultsCriteriaValidator=void 0,t.ExcludeVaultsCriteriaValidator=class{constructor(e,t){this.excludeVaults=e,this.element=t}passes(){return!this.excludeVaults.some((e=>this.element.key_system_identifier===e))}}},8402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExclusiveVaultCriteriaValidator=void 0,t.ExclusiveVaultCriteriaValidator=class{constructor(e,t){this.exclusiveVault=e,this.element=t}passes(){return this.element.key_system_identifier===this.exclusiveVault}}},871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenContentCriteriaValidator=void 0,t.HiddenContentCriteriaValidator=class{constructor(e,t){this.hiddenContentTypes=e,this.element=t}passes(){return!this.hiddenContentTypes.includes(this.element.content_type)}}},590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VaultDisplayOptions=void 0;const r=n(9764),o=n(8371);function i(e){return e.map((e=>e.systemIdentifier))}class a{constructor(e){this.options=e}getOptions(){return this.options}getExclusivelyShownVault(){if((0,o.isExclusionaryOptionsValue)(this.options))throw new Error("Not in exclusive display mode");return this.options.exclusive}isInExclusiveDisplayMode(){return!(0,o.isExclusionaryOptionsValue)(this.options)}isVaultExplicitlyExcluded(e){if((0,o.isExclusionaryOptionsValue)(this.options))return this.options.exclude.some((t=>t===e.systemIdentifier));if(this.options.exclusive)return this.options.exclusive!==e.systemIdentifier;throw new Error("Invalid vault display options")}isVaultExclusivelyShown(e){return!(0,o.isExclusionaryOptionsValue)(this.options)&&this.options.exclusive===e.systemIdentifier}isVaultDisabledOrLocked(e){return!(!(0,o.isExclusionaryOptionsValue)(this.options)||!this.options.locked.find((t=>t===e.systemIdentifier)))||this.isVaultExplicitlyExcluded(e)}getPersistableValue(){return this.options}newOptionsByIntakingLockedVaults(e){return(0,o.isExclusionaryOptionsValue)(this.options)?new a({exclude:this.options.exclude,locked:i(e)}):new a({exclusive:this.options.exclusive})}newOptionsByExcludingVault(e,t){return this.newOptionsByExcludingVaults([e],t)}newOptionsByExcludingVaults(e,t){return(0,o.isExclusionaryOptionsValue)(this.options)?new a({exclude:(0,r.uniqueArray)([...this.options.exclude,...i(e)]),locked:i(t)}):new a({exclude:i(e),locked:i(t)})}newOptionsByUnexcludingVault(e,t){return(0,o.isExclusionaryOptionsValue)(this.options)?new a({exclude:this.options.exclude.filter((t=>t!==e.systemIdentifier)),locked:i(t)}):new a({exclude:[],locked:i(t)})}static FromPersistableValue(e){return new a(e)}}t.VaultDisplayOptions=a},8371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isExclusionaryOptionsValue=void 0,t.isExclusionaryOptionsValue=function(e){return"exclude"in e||"locked"in e}},9446:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9482),t),o(n(4884),t),o(n(4010),t),o(n(339),t),o(n(8712),t),o(n(7961),t),o(n(9957),t),o(n(3167),t),o(n(590),t),o(n(8371),t)},6549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentTypeUsesKeySystemRootKeyEncryption=void 0;const r=n(2656);t.ContentTypeUsesKeySystemRootKeyEncryption=function(e){return e===r.ContentType.TYPES.KeySystemItemsKey}},7290:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentTypeUsesRootKeyEncryption=void 0;const r=n(5817);t.ContentTypeUsesRootKeyEncryption=function(e){return(0,r.ContentTypesUsingRootKeyEncryption)().includes(e)}},5817:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentTypesUsingRootKeyEncryption=void 0;const r=n(2656);t.ContentTypesUsingRootKeyEncryption=function(){return[r.ContentType.TYPES.RootKey,r.ContentType.TYPES.ItemsKey,r.ContentType.TYPES.EncryptedStorage,r.ContentType.TYPES.TrustedContact,r.ContentType.TYPES.KeySystemRootKey]}},8033:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNativeFeature=t.isItemBasedFeature=t.isUIFeatureAnIframeFeature=void 0;const r=n(755);t.isUIFeatureAnIframeFeature=function(e){return(0,r.isIframeComponentFeatureDescription)(e.featureDescription)},t.isItemBasedFeature=function(e){return"uuid"in e},t.isNativeFeature=function(e){return!("uuid"in e)}},9765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UIFeature=void 0;const r=n(755),o=n(2332),i=n(2656),a=n(5788);t.UIFeature=class{constructor(e){this.item=e}get isComponent(){return(0,o.isItemBasedFeature)(this.item)}get isThemeComponent(){return(0,o.isItemBasedFeature)(this.item)&&(0,a.isTheme)(this.item)}get asComponent(){if((0,o.isItemBasedFeature)(this.item))return this.item;throw new Error("Cannot cast item to component")}get asTheme(){if((0,o.isItemBasedFeature)(this.item))return this.item;throw new Error("Cannot cast item to component")}get asFeatureDescription(){if((0,o.isNativeFeature)(this.item))return this.item;throw new Error("Cannot cast item to feature description")}get isNativeFeature(){return void 0!==(0,r.FindNativeFeature)(this.featureIdentifier)}get uniqueIdentifier(){return(0,o.isNativeFeature)(this.item)?r.NativeFeatureIdentifier.create(this.item.identifier).getValue():i.Uuid.create(this.item.uuid).getValue()}get featureIdentifier(){return this.item.identifier}get noteType(){var e;if((0,o.isNativeFeature)(this.item)&&(0,r.isEditorFeatureDescription)(this.item))return null!==(e=this.item.note_type)&&void 0!==e?e:r.NoteType.Unknown;if((0,o.isItemBasedFeature)(this.item))return this.item.noteType;throw new Error("Invalid component or feature description")}get fileType(){var e,t;if((0,o.isNativeFeature)(this.item)&&(0,r.isEditorFeatureDescription)(this.item))return this.item.file_type;if((0,o.isItemBasedFeature)(this.item)&&(0,r.isEditorFeatureDescription)(this.item.package_info))return null!==(t=null===(e=this.item.package_info)||void 0===e?void 0:e.file_type)&&void 0!==t?t:"txt";throw new Error("Invalid component or feature description")}get displayName(){var e;return(0,o.isNativeFeature)(this.item)?null!==(e=this.item.name)&&void 0!==e?e:"":this.item.displayName}get description(){var e,t;return(0,o.isNativeFeature)(this.item)?null!==(e=this.item.description)&&void 0!==e?e:"":null!==(t=this.item.package_info.description)&&void 0!==t?t:""}get deprecationMessage(){return(0,o.isNativeFeature)(this.item)?this.item.deprecation_message:this.item.deprecationMessage}get expirationDate(){return(0,o.isNativeFeature)(this.item)?this.item.expires_at?new Date(this.item.expires_at):void 0:this.item.valid_until}get featureDescription(){return(0,o.isNativeFeature)(this.item)?this.item:this.item.package_info}get acquiredPermissions(){var e;if((0,o.isNativeFeature)(this.item)&&(0,r.isIframeComponentFeatureDescription)(this.item))return null!==(e=this.item.component_permissions)&&void 0!==e?e:[];if((0,o.isItemBasedFeature)(this.item))return this.item.permissions;throw new Error("Invalid component or feature description")}get area(){return"area"in this.item?this.item.area:r.ComponentArea.Editor}get layerable(){var e;return(0,o.isItemBasedFeature)(this.item)&&(0,a.isTheme)(this.item)?this.item.layerableTheme:!!(0,r.isThemeFeatureDescription)(this.asFeatureDescription)&&null!==(e=this.asFeatureDescription.layerable)&&void 0!==e&&e}get dockIcon(){return(0,o.isItemBasedFeature)(this.item)&&(0,a.isTheme)(this.item)?this.asTheme.package_info.dock_icon:(0,r.isThemeFeatureDescription)(this.asFeatureDescription)?this.asFeatureDescription.dock_icon:void 0}}},6938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateHistoryEntryForPayload=void 0;const r=n(2656),o=n(8280),i=n(314);t.CreateHistoryEntryForPayload=function(e,t){return new(e.content_type===r.ContentType.TYPES.Note?i.NoteHistoryEntry:o.HistoryEntry)(e,t)}},8280:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryEntry=void 0;const r=n(9764),o=n(3758);t.HistoryEntry=class{constructor(e,t){var n;this.defaultContentKeyToDiffOn="text",this.payload=e.copy(),this.previousEntry=t,this.hasPreviousEntry=!(0,r.isNullOrUndefined)(t);const o=this.payload.content[this.defaultContentKeyToDiffOn];if(o)if(t){const e=(null===(n=t.payload.content[this.defaultContentKeyToDiffOn])||void 0===n?void 0:n.length)||0;this.textCharDiffLength=o.length-e}else this.textCharDiffLength=o.length;else this.textCharDiffLength=0}itemFromPayload(){return(0,o.CreateDecryptedItemFromPayload)(this.payload)}isSameAsEntry(e){if(!e)return!1;const t=this.itemFromPayload(),n=e.itemFromPayload();return!(t.userModifiedDate.getTime()!==n.userModifiedDate.getTime())&&t.isItemContentEqualWith(n)}isDiscardable(){return!1}operationVector(){return void 0!==this.textCharDiffLength?this.hasPreviousEntry&&0!==this.textCharDiffLength?this.textCharDiffLength<0?-1:1:0:1}deltaSize(){return void 0!==this.textCharDiffLength?Math.abs(this.textCharDiffLength):1}}},8719:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.historyMapFunctions=void 0,t.historyMapFunctions={getNewestRevision:e=>e[0]}},314:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoteHistoryEntry=void 0;const r=n(9764),o=n(8280);class i extends o.HistoryEntry{previewTitle(){return this.payload.updated_at.getTime()>0?this.payload.updated_at.toLocaleString():this.payload.created_at.toLocaleString()}previewSubTitle(){return this.hasPreviousEntry?this.textCharDiffLength<0?-1*this.textCharDiffLength+" characters removed":this.textCharDiffLength>0?`${this.textCharDiffLength} characters added`:"Title or metadata changed":`${this.textCharDiffLength} characters loaded`}isDiscardable(){return(0,r.isEmpty)(this.payload.content.text)}}t.NoteHistoryEntry=i},6634:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(424),t),o(n(8280),t),o(n(734),t),o(n(314),t),o(n(8719),t)},1084:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateItemDelta=void 0,t.CreateItemDelta=function(e){return{changed:e.changed||[],inserted:e.inserted||[],discarded:e.discarded||[],ignored:e.ignored||[],unerrored:e.unerrored||[]}}},9741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8823:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompoundPredicate=void 0,t.CompoundPredicate=class{constructor(e,t){this.operator=e,this.predicates=t}matchesItem(e){if("and"===this.operator){for(const t of this.predicates)if(!t.matchesItem(e))return!1;return!0}if("or"===this.operator){for(const t of this.predicates)if(t.matchesItem(e))return!0;return!1}return!1}keypathIncludesString(e){for(const t of this.predicates)if(t.keypathIncludesString(e))return!0;return!1}toJson(){return{operator:this.operator,value:this.predicates.map((e=>e.toJson()))}}}},6636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.predicateFromDSLString=t.predicateFromJson=t.includesPredicateFromArguments=t.notPredicateFromArguments=t.compoundPredicateFromArguments=t.predicateFromArguments=void 0;const r=n(8823),o=n(6024),i=n(808),a=n(9194),s=n(7689);function l(e,t,n){if(i.AllPredicateCompoundOperators.includes(t))return c(t,n);if("not"===t)return new a.NotPredicate(u(n));if("includes"===t&&e)return function(e){return!!i.SureValueNonObjectTypesAsStrings.includes(typeof e)||!!Array.isArray(e)&&!d(e)}(n)?new s.Predicate(e,t,n):new o.IncludesPredicate(e,u(n));if(e)return new s.Predicate(e,t,n);throw Error("Invalid predicate arguments")}function c(e,t){const n=t.map((e=>u(e)));return new r.CompoundPredicate(e,n)}function u(e){if(Array.isArray(e))throw Error("Invalid predicateFromJson value");return l(e.keypath,e.operator,d(e.value)?p(e.value):e.value)}function d(e){return Array.isArray(e)&&i.AllPredicateOperators.includes(e[1])}function p(e){const t=e[2];let n;if(Array.isArray(t)){const e=t;n=Array.isArray(e[0])?e.map((e=>p(e))):d(t[1])?p(e):t}else n=t;return{keypath:e[0],operator:e[1],value:n}}t.predicateFromArguments=l,t.compoundPredicateFromArguments=c,t.notPredicateFromArguments=function(e){const t=u(e);return new a.NotPredicate(t)},t.includesPredicateFromArguments=function(e,t){const n=u(t);return new o.IncludesPredicate(e,n)},t.predicateFromJson=u,t.predicateFromDSLString=function(e){try{const t=JSON.parse(e.substring(1,e.length));return t.shift(),u(p(t))}catch(e){throw Error(`Invalid smart view syntax ${JSON.stringify(e)}`)}}},6024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IncludesPredicate=void 0,t.IncludesPredicate=class{constructor(e,t){this.keypath=e,this.predicate=t}matchesItem(e){const t=this.keypath.split(".").reduce(((e,t)=>e&&e[t]),e);return!!Array.isArray(t)&&t.some((e=>this.predicate.matchesItem(e)))}keypathIncludesString(e){return this.keypath.includes(e)}toJson(){return{keypath:this.keypath,operator:"includes",value:this.predicate.toJson()}}}},808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SureValueNonObjectTypesAsStrings=t.AllPredicateOperators=t.AllNonCompoundPredicateOperators=t.AllPredicateCompoundOperators=void 0,t.AllPredicateCompoundOperators=["and","or"],t.AllNonCompoundPredicateOperators=["!=","=","<",">","<=",">=","startsWith","in","matches","not","includes"],t.AllPredicateOperators=[...t.AllPredicateCompoundOperators,...t.AllNonCompoundPredicateOperators],t.SureValueNonObjectTypesAsStrings=["number","string","boolean"]},9194:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotPredicate=void 0,t.NotPredicate=class{constructor(e){this.predicate=e}matchesItem(e){return!this.predicate.matchesItem(e)}keypathIncludesString(e){return this.predicate.keypathIncludesString(e)}toJson(){return{operator:"not",value:this.predicate.toJson()}}}},9516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueMatchesTargetValue=void 0;const r=n(9764),o=n(1415);t.valueMatchesTargetValue=function e(t,n,i){if(null==i)return!1;if("string"==typeof i&&i.includes(".ago")&&(i=(0,o.dateFromDSLDateString)(i)),"string"==typeof i&&(i=i.toLowerCase()),"string"==typeof t&&(t=t.toLowerCase()),t instanceof Date&&"string"==typeof i&&(i=new Date(i)),"not"===n)return!e(t,"=",i);if(null==t){const e=[!1,"",null,void 0,NaN].includes(i);return"!="===n?!e:e}if("="===n)return Array.isArray(t)?JSON.stringify(t)===JSON.stringify(i):t===i;if("!="===n)return Array.isArray(t)?JSON.stringify(t)!==JSON.stringify(i):t!==i;if("<"===n)return t<i;if(">"===n)return t>i;if("<="===n)return t<=i;if(">="===n)return t>=i;if("startsWith"===n)return t.startsWith(i);if("in"===n&&Array.isArray(i))return i.includes(t);if("includes"===n){if((0,r.isString)(t))return t.includes(i);if((0,r.isString)(i)&&((0,r.isString)(t)||Array.isArray(t)))return t.includes(i)}return"matches"===n&&new RegExp(i).test(t)}},7689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Predicate=void 0;const r=n(9516);t.Predicate=class{constructor(e,t,n){this.keypath=e,this.operator=t,this.targetValue=n,"true"!==this.targetValue&&"false"!==this.targetValue||(this.targetValue=JSON.parse(this.targetValue))}keypathIncludesString(e){return this.keypath.includes(e)}matchesItem(e){const t=this.keypath.split(".").reduce(((e,t)=>e&&e[t]),e);return(0,r.valueMatchesTargetValue)(t,this.operator,this.targetValue)}toJson(){return{keypath:this.keypath,operator:this.operator,value:this.targetValue}}}},1415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateFromDSLDateString=void 0,t.dateFromDSLDateString=function(e){const t=e.split("."),n=t[1],r=new Date,o=parseInt(t[0]);return"days"===n?r.setDate(r.getDate()-o):"hours"===n?r.setHours(r.getHours()-o):"months"===n?r.setMonth(r.getMonth()-o):"years"===n&&r.setFullYear(r.getFullYear()-o),r}},1293:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SNActionsExtension=void 0;const r=n(4077),o=n(3736);class i extends r.DecryptedItem{constructor(e){super(e),this.actions=[],this.name=e.content.name||"",this.description=e.content.description||"",this.url=e.content.hosted_url||e.content.url,this.supported_types=e.content.supported_types,this.package_info=this.payload.content.package_info||{},this.deprecation=e.content.deprecation,this.actions=e.content.actions}get displayName(){return this.name}get thirdPartyPackageInfo(){return this.package_info}get isListedExtension(){return"org.standardnotes.listed"===this.package_info.identifier}actionsWithContextForItem(e){return this.actions.filter((t=>t.context===e.content_type||"Item"===t.context))}strategyWhenConflictingWithItem(e,t){return o.ConflictStrategy.KeepBase}}t.SNActionsExtension=i},994:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActionsExtensionMutator=void 0;const r=n(7136);class o extends r.DecryptedItemMutator{set description(e){this.mutableContent.description=e}set supported_types(e){this.mutableContent.supported_types=e}set actions(e){this.mutableContent.actions=e}set deprecation(e){this.mutableContent.deprecation=e}}t.ActionsExtensionMutator=o},4964:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ActionVerb=t.ActionAccessType=void 0,function(e){e.Encrypted="encrypted",e.Decrypted="decrypted"}(n||(t.ActionAccessType=n={})),function(e){e.Get="get",e.Render="render",e.Show="show",e.Post="post",e.Nested="nested"}(r||(t.ActionVerb=r={}))},6379:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1293),t),o(n(994),t),o(n(4964),t)},143:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentItem=void 0;const r=n(9764),o=n(755),i=n(4750),a=n(3736),s=n(4077),l=n(7689),c=n(2656);class u extends s.DecryptedItem{constructor(e){var t,n,i;super(e),this.permissions=[],e.content.hosted_url&&(0,r.isValidUrl)(e.content.hosted_url)?this.hosted_url=e.content.hosted_url:e.content.url&&(0,r.isValidUrl)(e.content.url)?this.hosted_url=e.content.url:e.content.legacy_url&&(0,r.isValidUrl)(e.content.legacy_url)&&(this.hosted_url=e.content.legacy_url),this.local_url=e.content.local_url,this.valid_until=new Date(e.content.valid_until||0),this.offlineOnly=null!==(t=e.content.offlineOnly)&&void 0!==t&&t,this.name=e.content.name,this.content_type===c.ContentType.TYPES.Theme?this.area=o.ComponentArea.Themes:this.area=e.content.area,this.package_info=e.content.package_info||{},this.permissions=e.content.permissions||[],this.autoupdateDisabled=null!==(n=e.content.autoupdateDisabled)&&void 0!==n&&n,this.disassociatedItemIds=e.content.disassociatedItemIds||[],this.associatedItemIds=e.content.associatedItemIds||[],this.legacy_url=e.content.hosted_url?void 0:e.content.url,this.legacyComponentData=this.payload.content.componentData||{},this.legacyActive=null!==(i=e.content.active)&&void 0!==i&&i}strategyWhenConflictingWithItem(e,t){return a.ConflictStrategy.KeepBase}get isSingleton(){return!0}get displayName(){var e;return(null===(e=(0,o.FindNativeFeature)(this.identifier))||void 0===e?void 0:e.name)||this.name}singletonPredicate(){return new l.Predicate("identifier","=",this.identifier)}isTheme(){return this.content_type===c.ContentType.TYPES.Theme||this.area===o.ComponentArea.Themes}legacyIsDefaultEditor(){return!0===this.getAppDomainValue(i.AppDataField.DefaultEditor)}hasValidHostedUrl(){return null!=(this.hosted_url||this.legacy_url)}contentKeysToIgnoreWhenCheckingEquality(){return["active","disassociatedItemIds","associatedItemIds",...super.contentKeysToIgnoreWhenCheckingEquality()]}isExplicitlyEnabledForItem(e){return-1!==this.associatedItemIds.indexOf(e)}isExplicitlyDisabledForItem(e){return-1!==this.disassociatedItemIds.indexOf(e)}get isExpired(){return this.valid_until.getTime()>0&&this.valid_until<=new Date}get identifier(){return this.package_info.identifier}get thirdPartyPackageInfo(){return this.package_info}get noteType(){var e;return(0,o.isEditorFeatureDescription)(this.package_info)&&null!==(e=this.package_info.note_type)&&void 0!==e?e:o.NoteType.Unknown}get isDeprecated(){var e;let t=null!==(e=this.package_info.flags)&&void 0!==e?e:[];return t=t.map((e=>e.toLowerCase())),t.includes(o.ComponentFlag.Deprecated)}get deprecationMessage(){return this.package_info.deprecation_message}get layerableTheme(){var e;if(!this.isTheme())return!1;const t=this.package_info;return null!==(e=null==t?void 0:t.layerable)&&void 0!==e&&e}}t.ComponentItem=u},9064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentMutator=void 0;const r=n(9764),o=n(7136);class i extends o.DecryptedItemMutator{set package_info(e){this.mutableContent.package_info=e}set local_url(e){this.mutableContent.local_url=e}set hosted_url(e){this.mutableContent.hosted_url=e}set valid_until(e){this.mutableContent.valid_until=e}set permissions(e){this.mutableContent.permissions=e}set name(e){this.mutableContent.name=e}set offlineOnly(e){this.mutableContent.offlineOnly=e}associateWithItem(e){const t=this.mutableContent.associatedItemIds||[];(0,r.addIfUnique)(t,e),this.mutableContent.associatedItemIds=t}disassociateWithItem(e){const t=this.mutableContent.disassociatedItemIds||[];(0,r.addIfUnique)(t,e),this.mutableContent.disassociatedItemIds=t}removeAssociatedItemId(e){(0,r.removeFromArray)(this.mutableContent.associatedItemIds||[],e)}removeDisassociatedItemId(e){(0,r.removeFromArray)(this.mutableContent.disassociatedItemIds||[],e)}}t.ComponentMutator=i},154:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isComponentOrTheme=t.isTheme=t.isComponent=void 0;const r=n(43),o=n(2656);t.isComponent=function(e){return!!(0,r.isDecryptedItem)(e)&&e.content_type===o.ContentType.TYPES.Component},t.isTheme=function(e){return!!(0,r.isDecryptedItem)(e)&&e.content_type===o.ContentType.TYPES.Theme},t.isComponentOrTheme=function(e){return!!(0,r.isDecryptedItem)(e)&&(e.content_type===o.ContentType.TYPES.Component||e.content_type===o.ContentType.TYPES.Theme)}},5788:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(143),t),o(n(6094),t),o(n(9064),t),o(n(3462),t),o(n(154),t),o(n(5169),t)},1141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SNEditor=void 0;const r=n(4077);class o extends r.DecryptedItem{constructor(e){super(e),this.notes=[],this.data={},this.url=e.content.url,this.name=e.content.name,this.data=e.content.data||{},this.isDefault=e.content.default,this.systemEditor=e.content.systemEditor}}t.SNEditor=o},8977:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1141),t)},1287:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SNFeatureRepo=void 0;const r=n(9764),o=n(4077);class i extends o.DecryptedItem{get migratedToUserSetting(){return(0,r.useBoolean)(this.payload.content.migratedToUserSetting,!1)}get migratedToOfflineEntitlements(){return(0,r.useBoolean)(this.payload.content.migratedToOfflineEntitlements,!1)}get onlineUrl(){return this.payload.content.url}get offlineFeaturesUrl(){return this.payload.content.offlineFeaturesUrl}get offlineKey(){return this.payload.content.offlineKey}}t.SNFeatureRepo=i},7837:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureRepoMutator=void 0;const r=n(7136);class o extends r.DecryptedItemMutator{set migratedToUserSetting(e){this.mutableContent.migratedToUserSetting=e}set migratedToOfflineEntitlements(e){this.mutableContent.migratedToOfflineEntitlements=e}set offlineFeaturesUrl(e){this.mutableContent.offlineFeaturesUrl=e}set offlineKey(e){this.mutableContent.offlineKey=e}}t.FeatureRepoMutator=o},1092:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1287),t),o(n(7837),t)},8435:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileItem=t.isFile=void 0;const r=n(2656),o=n(4077),i=n(43);t.isFile=e=>e.content_type===r.ContentType.TYPES.File;class a extends o.DecryptedItem{constructor(e){super(e),this.remoteIdentifier=this.content.remoteIdentifier,this.name=this.content.name,this.key=this.content.key,this.content.size&&this.content.chunkSizes?(this.decryptedSize=this.content.size,this.encryptedChunkSizes=this.content.chunkSizes):(this.decryptedSize=this.content.decryptedSize,this.encryptedChunkSizes=this.content.encryptedChunkSizes),this.encryptionHeader=this.content.encryptionHeader,this.mimeType=this.content.mimeType}strategyWhenConflictingWithItem(e){return e.key!==this.key||e.encryptionHeader!==this.encryptionHeader||e.remoteIdentifier!==this.remoteIdentifier||JSON.stringify(e.encryptedChunkSizes)!==JSON.stringify(this.encryptedChunkSizes)?i.ConflictStrategy.KeepBaseDuplicateApply:i.ConflictStrategy.KeepBase}get encryptedSize(){return this.encryptedChunkSizes.reduce(((e,t)=>e+t),0)}get title(){return this.name}}t.FileItem=a},8137:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileMutator=void 0;const r=n(2656),o=n(3844),i=n(7136);class a extends i.DecryptedItemMutator{set name(e){this.mutableContent.name=e}set encryptionHeader(e){this.mutableContent.encryptionHeader=e}addNote(e){const t={reference_type:o.ContentReferenceType.FileToNote,content_type:r.ContentType.TYPES.Note,uuid:e.uuid},n=this.mutableContent.references||[];n.push(t),this.mutableContent.references=n}removeNote(e){const t=this.immutableItem.references.filter((t=>t.uuid!==e.uuid));this.mutableContent.references=t}addFile(e){if(this.immutableItem.isReferencingItem(e))return;const t={uuid:e.uuid,content_type:r.ContentType.TYPES.File,reference_type:o.ContentReferenceType.FileToFile};this.mutableContent.references.push(t)}removeFile(e){this.mutableContent.references=this.mutableContent.references.filter((t=>t.uuid!==e.uuid))}}t.FileMutator=a},8230:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FileProtocolV1Constants=void 0,function(e){e[e.KeySize=256]="KeySize"}(n||(t.FileProtocolV1Constants=n={}))},2725:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(8435),t),o(n(3218),t),o(n(8137),t),o(n(8230),t)},6041:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7737:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},481:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3369:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1537:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9470:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8947:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeySystemRootKey=t.isKeySystemRootKey=void 0;const r=n(43),o=n(2656);t.isKeySystemRootKey=function(e){return e.content_type===o.ContentType.TYPES.KeySystemRootKey};class i extends r.DecryptedItem{constructor(e){super(e),this.keyParams=e.content.keyParams,this.systemIdentifier=e.content.systemIdentifier,this.key=e.content.key,this.keyVersion=e.content.keyVersion,this.token=e.content.token}strategyWhenConflictingWithItem(e,t){const n=this.keyParams.creationTimestamp;return e.keyParams.creationTimestamp>n?r.ConflictStrategy.KeepApply:r.ConflictStrategy.KeepBase}get itemsKey(){return this.key}get key_system_identifier(){}get shared_vault_uuid(){}isEqual(e){return this.itemsKey===e.itemsKey&&this.token===e.token}}t.KeySystemRootKey=i},4545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5907:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeySystemRootKeyMutator=void 0;const r=n(43);class o extends r.DecryptedItemMutator{}t.KeySystemRootKeyMutator=o},668:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.KeySystemRootKeyStorageMode=void 0,function(e){e.Synced="synced",e.Local="local",e.Ephemeral="ephemeral"}(n||(t.KeySystemRootKeyStorageMode=n={}))},7677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SNNote=t.isNote=void 0;const r=n(4750),o=n(755),i=n(4077),a=n(2656);t.isNote=e=>e.content_type===a.ContentType.TYPES.Note;class s extends i.DecryptedItem{constructor(e){super(e),this.hidePreview=!1,this.title=String(this.payload.content.title||""),this.text=String(this.payload.content.text||""),this.hidePreview=Boolean(this.payload.content.hidePreview),this.preview_plain=String(this.payload.content.preview_plain||""),this.preview_html=String(this.payload.content.preview_html||""),this.spellcheck=this.payload.content.spellcheck,this.editorWidth=this.payload.content.editorWidth,this.noteType=this.payload.content.noteType,this.editorIdentifier=this.payload.content.editorIdentifier,this.authorizedForListed=this.payload.content.authorizedForListed||!1,this.noteType||this.getAppDomainValueWithDefault(r.AppDataField.LegacyPrefersPlainEditor,!1)&&(this.noteType=o.NoteType.Plain)}}t.SNNote=s},4773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},799:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoteMutator=void 0;const r=n(7136),o=n(43),i=n(2656);class a extends r.DecryptedItemMutator{set title(e){this.mutableContent.title=e}set text(e){this.mutableContent.text=e}set hidePreview(e){this.mutableContent.hidePreview=e}set preview_plain(e){this.mutableContent.preview_plain=e}set preview_html(e){this.mutableContent.preview_html=e}set spellcheck(e){this.mutableContent.spellcheck=e}set editorWidth(e){this.mutableContent.editorWidth=e}set noteType(e){this.mutableContent.noteType=e}set editorIdentifier(e){this.mutableContent.editorIdentifier=e}set authorizedForListed(e){this.mutableContent.authorizedForListed=e}toggleSpellcheck(){null==this.mutableContent.spellcheck?this.mutableContent.spellcheck=!1:this.mutableContent.spellcheck=!this.mutableContent.spellcheck}addNote(e){if(this.immutableItem.isReferencingItem(e))return;const t={uuid:e.uuid,content_type:i.ContentType.TYPES.Note,reference_type:o.ContentReferenceType.NoteToNote};this.mutableContent.references.push(t)}removeNote(e){this.mutableContent.references=this.mutableContent.references.filter((t=>t.uuid!==e.uuid))}}t.NoteMutator=a},1353:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7677),t),o(n(799),t),o(n(4773),t)},8155:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmartView=t.isSmartView=t.isSystemView=t.SMART_TAG_DSL_PREFIX=void 0;const r=n(2656),o=n(4077),i=n(6636),a=n(7817),s=n(7068);function l(e){return Object.values(a.SystemViewId).includes(e.uuid)}t.SMART_TAG_DSL_PREFIX="![",t.isSystemView=l,t.isSmartView=e=>e.content_type===r.ContentType.TYPES.SmartView;class c extends o.DecryptedItem{constructor(e){super(e),this.title=String(this.content.title||""),l(this)?this.iconString=(0,s.systemViewIcon)(this.uuid):this.iconString=this.payload.content.iconString||s.SmartViewDefaultIconName,this.preferences=this.payload.content.preferences;try{this.predicate=this.content.predicate&&(0,i.predicateFromJson)(this.content.predicate)}catch(e){console.error(e)}}}t.SmartView=c},3387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BuildSmartViews=void 0;const r=n(5835),o=n(8155),i=n(7817),a=n(3115),s=n(7689),l=n(8823),c=n(4174),u=n(2656);function d(e){const t=[new s.Predicate("content_type","=",u.ContentType.TYPES.Note)];return!1===e.includeTrashed&&t.push(new s.Predicate("trashed","=",!1)),!1===e.includeArchived&&t.push(new s.Predicate("archived","=",!1)),!1===e.includeProtected&&t.push(new s.Predicate("protected","=",!1)),!1===e.includePinned&&t.push(new s.Predicate("pinned","=",!1)),new l.CompoundPredicate("and",t)}function p(e){const t=[new s.Predicate("content_type","=",u.ContentType.TYPES.File)];return!1===e.includeTrashed&&t.push(new s.Predicate("trashed","=",!1)),!1===e.includeArchived&&t.push(new s.Predicate("archived","=",!1)),!1===e.includeProtected&&t.push(new s.Predicate("protected","=",!1)),!1===e.includePinned&&t.push(new s.Predicate("pinned","=",!1)),new l.CompoundPredicate("and",t)}function f(e){const t=[new s.Predicate("archived","=",!0),new s.Predicate("content_type","=",u.ContentType.TYPES.Note)];return!1===e.includeTrashed&&t.push(new s.Predicate("trashed","=",!1)),!1===e.includeProtected&&t.push(new s.Predicate("protected","=",!1)),!1===e.includePinned&&t.push(new s.Predicate("pinned","=",!1)),new l.CompoundPredicate("and",t)}function h(e){const t=[new s.Predicate("trashed","=",!0),new s.Predicate("content_type","=",u.ContentType.TYPES.Note)];return!1===e.includeArchived&&t.push(new s.Predicate("archived","=",!1)),!1===e.includeProtected&&t.push(new s.Predicate("protected","=",!1)),!1===e.includePinned&&t.push(new s.Predicate("pinned","=",!1)),new l.CompoundPredicate("and",t)}function m(e){const t=[new s.Predicate("content_type","=",u.ContentType.TYPES.Note),new s.Predicate("tagsCount","=",0)];return!1===e.includeArchived&&t.push(new s.Predicate("archived","=",!1)),!1===e.includeProtected&&t.push(new s.Predicate("protected","=",!1)),!1===e.includePinned&&t.push(new s.Predicate("pinned","=",!1)),new l.CompoundPredicate("and",t)}function g(e){const t=[new s.Predicate("starred","=",!0),new s.Predicate("content_type","=",u.ContentType.TYPES.Note)];return!1===e.includeTrashed&&t.push(new s.Predicate("trashed","=",!1)),!1===e.includeProtected&&t.push(new s.Predicate("protected","=",!1)),!1===e.includePinned&&t.push(new s.Predicate("pinned","=",!1)),new l.CompoundPredicate("and",t)}function v(e){const t=[new s.Predicate("content_type","=",u.ContentType.TYPES.Note)];return!1===e.includeTrashed&&t.push(new s.Predicate("trashed","=",!1)),!1===e.includeArchived&&t.push(new s.Predicate("archived","=",!1)),!1===e.includeProtected&&t.push(new s.Predicate("protected","=",!1)),!1===e.includePinned&&t.push(new s.Predicate("pinned","=",!1)),new l.CompoundPredicate("and",t)}t.BuildSmartViews=function(e){const t=new o.SmartView(new r.DecryptedPayload(Object.assign(Object.assign({uuid:i.SystemViewId.AllNotes,content_type:u.ContentType.TYPES.SmartView},(0,c.PayloadTimestampDefaults)()),{content:(0,a.FillItemContent)({title:"Notes",predicate:d(e).toJson()})}))),n=new o.SmartView(new r.DecryptedPayload(Object.assign(Object.assign({uuid:i.SystemViewId.Files,content_type:u.ContentType.TYPES.SmartView},(0,c.PayloadTimestampDefaults)()),{content:(0,a.FillItemContent)({title:"Files",predicate:p(e).toJson()})}))),s=new o.SmartView(new r.DecryptedPayload(Object.assign(Object.assign({uuid:i.SystemViewId.ArchivedNotes,content_type:u.ContentType.TYPES.SmartView},(0,c.PayloadTimestampDefaults)()),{content:(0,a.FillItemContent)({title:"Archived",predicate:f(e).toJson()})}))),l=new o.SmartView(new r.DecryptedPayload(Object.assign(Object.assign({uuid:i.SystemViewId.TrashedNotes,content_type:u.ContentType.TYPES.SmartView},(0,c.PayloadTimestampDefaults)()),{content:(0,a.FillItemContent)({title:"Trash",predicate:h(e).toJson()})}))),b=new o.SmartView(new r.DecryptedPayload(Object.assign(Object.assign({uuid:i.SystemViewId.UntaggedNotes,content_type:u.ContentType.TYPES.SmartView},(0,c.PayloadTimestampDefaults)()),{content:(0,a.FillItemContent)({title:"Untagged",predicate:m(e).toJson()})})));return[t,n,new o.SmartView(new r.DecryptedPayload(Object.assign(Object.assign({uuid:i.SystemViewId.StarredNotes,content_type:u.ContentType.TYPES.SmartView},(0,c.PayloadTimestampDefaults)()),{content:(0,a.FillItemContent)({title:"Starred",predicate:g(e).toJson()})}))),s,l,b,new o.SmartView(new r.DecryptedPayload(Object.assign(Object.assign({uuid:i.SystemViewId.Conflicts,content_type:u.ContentType.TYPES.SmartView},(0,c.PayloadTimestampDefaults)()),{content:(0,a.FillItemContent)({title:"Conflicts",predicate:v(e).toJson()})})))]}},5780:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7068:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmartViewDefaultIconName=t.systemViewIcon=t.SmartViewIcons=void 0;const r=n(7817);t.SmartViewIcons={[r.SystemViewId.AllNotes]:"notes",[r.SystemViewId.Files]:"folder",[r.SystemViewId.ArchivedNotes]:"archive",[r.SystemViewId.TrashedNotes]:"trash",[r.SystemViewId.UntaggedNotes]:"hashtag-off",[r.SystemViewId.StarredNotes]:"star-filled",[r.SystemViewId.Conflicts]:"merge"},t.systemViewIcon=function(e){return t.SmartViewIcons[e]},t.SmartViewDefaultIconName="restore"},413:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmartViewMutator=void 0;const r=n(4914);class o extends r.TagMutator{constructor(e,t){super(e,t)}set predicate(e){this.mutableContent.predicate=e}}t.SmartViewMutator=o},7817:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SystemViewId=void 0,function(e){e.AllNotes="all-notes",e.Files="files",e.ArchivedNotes="archived-notes",e.TrashedNotes="trashed-notes",e.UntaggedNotes="untagged-notes",e.StarredNotes="starred-notes",e.Conflicts="conflicts"}(n||(t.SystemViewId=n={}))},9193:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(8155),t),o(n(3387),t),o(n(7817),t),o(n(5780),t),o(n(413),t),o(n(7068),t)},1904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SNTag=t.isTag=t.DefaultTagIconName=t.TagFolderDelimitter=void 0;const r=n(4077),o=n(7403),i=n(2656);t.TagFolderDelimitter=".",t.DefaultTagIconName="hashtag",t.isTag=e=>e.content_type===i.ContentType.TYPES.Tag;class a extends r.DecryptedItem{constructor(e){super(e),this.title=this.payload.content.title||"",this.expanded=null==this.payload.content.expanded||this.payload.content.expanded,this.iconString=this.payload.content.iconString||t.DefaultTagIconName,this.preferences=this.payload.content.preferences}get isDailyEntry(){var e;return"daily"===(null===(e=this.preferences)||void 0===e?void 0:e.entryMode)}get noteReferences(){return this.payload.references.filter((e=>e.content_type===i.ContentType.TYPES.Note))}get noteCount(){return this.noteReferences.length}get parentId(){const e=this.references.find(o.isTagToParentTagReference);return null==e?void 0:e.uuid}static arrayToDisplayString(e){return e.sort(((e,t)=>e.title>t.title?1:-1)).map((e=>"#"+e.title)).join(" ")}}t.SNTag=a},1233:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagMutator=void 0;const r=n(7403),o=n(3844),i=n(7136),a=n(2656);class s extends i.DecryptedItemMutator{constructor(e,t){super(e,t),this.mutablePreferences=this.mutableContent.preferences}set title(e){this.mutableContent.title=e}set expanded(e){this.mutableContent.expanded=e}set iconString(e){this.mutableContent.iconString=e}get preferences(){return this.mutablePreferences||(this.mutableContent.preferences={},this.mutablePreferences=this.mutableContent.preferences),this.mutablePreferences}set preferences(e){this.mutablePreferences=e,this.mutableContent.preferences=this.mutablePreferences}makeChildOf(e){const t=this.immutableItem.references.filter((e=>!(0,r.isTagToParentTagReference)(e))),n={reference_type:o.ContentReferenceType.TagToParentTag,content_type:a.ContentType.TYPES.Tag,uuid:e.uuid};t.push(n),this.mutableContent.references=t}unsetParent(){this.mutableContent.references=this.immutableItem.references.filter((e=>!(0,r.isTagToParentTagReference)(e)))}addFile(e){if(this.immutableItem.isReferencingItem(e))return;const t={reference_type:o.ContentReferenceType.TagToFile,content_type:a.ContentType.TYPES.File,uuid:e.uuid};this.mutableContent.references.push(t)}removeFile(e){this.mutableContent.references=this.mutableContent.references.filter((t=>t.uuid!==e.uuid))}addNote(e){this.immutableItem.isReferencingItem(e)||this.mutableContent.references.push({uuid:e.uuid,content_type:e.content_type})}removeNote(e){this.mutableContent.references=this.mutableContent.references.filter((t=>t.uuid!==e.uuid))}}t.TagMutator=s},2980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4914:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1904),t),o(n(4032),t),o(n(1233),t),o(n(2980),t)},9136:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3235:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TrustedContactMutator=void 0;const r=n(43),o=n(9017);class i extends r.DecryptedItemMutator{set name(e){this.mutableContent.name=e}addPublicKey(e){const t=new o.ContactPublicKeySet({encryption:e.encryption,signing:e.signing,timestamp:new Date,previousKeySet:this.immutableItem.publicKeySet});this.mutableContent.publicKeySet=t}replacePublicKeySet(e){this.mutableContent.publicKeySet=e}}t.TrustedContactMutator=i},9017:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContactPublicKeySet=void 0;class n{constructor(e){this.encryption=e.encryption,this.signing=e.signing,this.timestamp=e.timestamp,this.previousKeySet=e.previousKeySet}findKeySetWithSigningKey(e){return this.signing===e?this:this.previousKeySet?this.previousKeySet.findKeySetWithSigningKey(e):void 0}findKeySetWithPublicKey(e){return this.encryption===e?this:this.previousKeySet?this.previousKeySet.findKeySetWithPublicKey(e):void 0}asJson(){return{encryption:this.encryption,signing:this.signing,timestamp:this.timestamp,previousKeySet:this.previousKeySet?this.previousKeySet.asJson():void 0}}mutableCopy(){return new n({encryption:this.encryption,signing:this.signing,timestamp:this.timestamp,previousKeySet:this.previousKeySet?n.FromJson(this.previousKeySet.asJson()):void 0})}static FromJson(e){return new n({encryption:e.encryption,signing:e.signing,timestamp:new Date(e.timestamp),previousKeySet:e.previousKeySet?n.FromJson(e.previousKeySet):void 0})}}t.ContactPublicKeySet=n},1306:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},344:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TrustedContact=void 0;const r=n(43),o=n(9017),i=n(7689),a=n(3196);class s extends r.DecryptedItem{constructor(e){super(e),this.name=e.content.name,this.contactUuid=e.content.contactUuid,this.publicKeySet=o.ContactPublicKeySet.FromJson(e.content.publicKeySet),this.isMe=e.content.isMe}get isSingleton(){return!0}singletonPredicate(){return s.singletonPredicate}hasCurrentOrPreviousSigningPublicKey(e){return void 0!==this.publicKeySet.findKeySetWithSigningKey(e)}getTrustStatusForPublicKey(e){return this.publicKeySet.encryption===e?a.PublicKeyTrustStatus.Trusted:this.publicKeySet.findKeySetWithPublicKey(e)?a.PublicKeyTrustStatus.Previous:a.PublicKeyTrustStatus.NotTrusted}getTrustStatusForSigningPublicKey(e){return this.publicKeySet.signing===e?a.PublicKeyTrustStatus.Trusted:this.publicKeySet.findKeySetWithSigningKey(e)?a.PublicKeyTrustStatus.Previous:a.PublicKeyTrustStatus.NotTrusted}strategyWhenConflictingWithItem(e,t){return r.ConflictStrategy.KeepBase}}t.TrustedContact=s,s.singletonPredicate=new i.Predicate("isMe","=",!0)},9748:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3196:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKeyTrustStatus=void 0,function(e){e.Trusted="Trusted",e.Previous="Previous",e.NotTrusted="NotTrusted"}(n||(t.PublicKeyTrustStatus=n={}))},2005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4924:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EditorFontSize=void 0,function(e){e.ExtraSmall="ExtraSmall",e.Small="Small",e.Normal="Normal",e.Medium="Medium",e.Large="Large"}(n||(t.EditorFontSize=n={}))},3378:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EditorLineHeightValues=t.EditorLineHeight=void 0,function(e){e.None="None",e.Tight="Tight",e.Snug="Snug",e.Normal="Normal",e.Relaxed="Relaxed",e.Loose="Loose"}(n||(t.EditorLineHeight=n={})),t.EditorLineHeightValues={None:1,Tight:1.25,Snug:1.375,Normal:1.5,Relaxed:1.625,Loose:2}},3557:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EditorLineWidth=void 0,function(e){e.Narrow="Narrow",e.Wide="Wide",e.Dynamic="Dynamic",e.FullWidth="FullWidth"}(n||(t.EditorLineWidth=n={}))},4457:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.NewNoteTitleFormat=void 0,function(e){e.CurrentDateAndTime="CurrentDateAndTime",e.CurrentNoteCount="CurrentNoteCount",e.CustomFormat="CustomFormat",e.Empty="Empty"}(n||(t.NewNoteTitleFormat=n={}))},4454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrefDefaults=void 0;const r=n(755),o=n(7322),i=n(4924),a=n(3378),s=n(3557),l=n(8664),c=n(4457);t.PrefDefaults={[l.PrefKey.TagsPanelWidth]:220,[l.PrefKey.NotesPanelWidth]:350,[l.PrefKey.EditorWidth]:null,[l.PrefKey.EditorLeft]:null,[l.PrefKey.EditorMonospaceEnabled]:!1,[l.PrefKey.EditorSpellcheck]:!0,[l.PrefKey.EditorResizersEnabled]:!1,[l.PrefKey.EditorLineHeight]:a.EditorLineHeight.Normal,[l.PrefKey.EditorLineWidth]:s.EditorLineWidth.FullWidth,[l.PrefKey.EditorFontSize]:i.EditorFontSize.Normal,[l.PrefKey.SortNotesBy]:o.CollectionSort.CreatedAt,[l.PrefKey.SortNotesReverse]:!1,[l.PrefKey.NotesShowArchived]:!1,[l.PrefKey.NotesShowTrashed]:!1,[l.PrefKey.NotesHidePinned]:!1,[l.PrefKey.NotesHideProtected]:!1,[l.PrefKey.NotesHideNotePreview]:!1,[l.PrefKey.NotesHideDate]:!1,[l.PrefKey.NotesHideTags]:!1,[l.PrefKey.NotesHideEditorIcon]:!1,[l.PrefKey.UseSystemColorScheme]:!1,[l.PrefKey.UseTranslucentUI]:!0,[l.PrefKey.AutoLightThemeIdentifier]:"Default",[l.PrefKey.AutoDarkThemeIdentifier]:r.NativeFeatureIdentifier.TYPES.DarkTheme,[l.PrefKey.NoteAddToParentFolders]:!0,[l.PrefKey.NewNoteTitleFormat]:c.NewNoteTitleFormat.CurrentDateAndTime,[l.PrefKey.CustomNoteTitleFormat]:"YYYY-MM-DD [at] hh:mm A",[l.PrefKey.UpdateSavingStatusIndicator]:!0,[l.PrefKey.PaneGesturesEnabled]:!0,[l.PrefKey.MomentsDefaultTagUuid]:void 0,[l.PrefKey.ClipperDefaultTagUuid]:void 0,[l.PrefKey.DefaultEditorIdentifier]:r.NativeFeatureIdentifier.TYPES.PlainEditor,[l.PrefKey.SuperNoteExportFormat]:"json",[l.PrefKey.SuperNoteExportEmbedBehavior]:"reference",[l.PrefKey.SuperNoteExportUseMDFrontmatter]:!0,[l.PrefKey.SystemViewPreferences]:{},[l.PrefKey.AuthenticatorNames]:"",[l.PrefKey.ComponentPreferences]:{},[l.PrefKey.ActiveThemes]:[],[l.PrefKey.ActiveComponents]:[],[l.PrefKey.AlwaysShowSuperToolbar]:!0,[l.PrefKey.AddImportsToTag]:!0,[l.PrefKey.AlwaysCreateNewTagForImports]:!0,[l.PrefKey.ExistingTagForImports]:void 0}},8664:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PrefKey=void 0,function(e){e.TagsPanelWidth="tagsPanelWidth",e.NotesPanelWidth="notesPanelWidth",e.EditorWidth="editorWidth",e.EditorLeft="editorLeft",e.EditorMonospaceEnabled="monospaceFont",e.EditorSpellcheck="spellcheck",e.EditorResizersEnabled="marginResizersEnabled",e.EditorLineHeight="editorLineHeight",e.EditorLineWidth="editorLineWidth",e.EditorFontSize="editorFontSize",e.SortNotesBy="sortBy",e.SortNotesReverse="sortReverse",e.NotesShowArchived="showArchived",e.NotesShowTrashed="showTrashed",e.NotesHideProtected="hideProtected",e.NotesHidePinned="hidePinned",e.NotesHideNotePreview="hideNotePreview",e.NotesHideDate="hideDate",e.NotesHideTags="hideTags",e.NotesHideEditorIcon="hideEditorIcon",e.UseSystemColorScheme="useSystemColorScheme",e.UseTranslucentUI="useTranslucentUI",e.AutoLightThemeIdentifier="autoLightThemeIdentifier",e.AutoDarkThemeIdentifier="autoDarkThemeIdentifier",e.NoteAddToParentFolders="noteAddToParentFolders",e.NewNoteTitleFormat="newNoteTitleFormat",e.CustomNoteTitleFormat="customNoteTitleFormat",e.UpdateSavingStatusIndicator="updateSavingStatusIndicator",e.DefaultEditorIdentifier="defaultEditorIdentifier",e.MomentsDefaultTagUuid="momentsDefaultTagUuid",e.ClipperDefaultTagUuid="clipperDefaultTagUuid",e.SystemViewPreferences="systemViewPreferences",e.SuperNoteExportFormat="superNoteExportFormat",e.SuperNoteExportEmbedBehavior="superNoteExportEmbedBehavior",e.SuperNoteExportUseMDFrontmatter="superNoteExportUseMDFrontmatter",e.AuthenticatorNames="authenticatorNames",e.PaneGesturesEnabled="paneGesturesEnabled",e.ComponentPreferences="componentPreferences",e.ActiveThemes="activeThemes",e.ActiveComponents="activeComponents",e.AlwaysShowSuperToolbar="alwaysShowSuperToolbar",e.AddImportsToTag="addImportsToTag",e.AlwaysCreateNewTagForImports="alwaysCreateNewTagForImports",e.ExistingTagForImports="existingTagForImports"}(n||(t.PrefKey=n={}))},5194:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SNUserPrefs=void 0;const r=n(2656),o=n(4077),i=n(7689);class a extends o.DecryptedItem{get isSingleton(){return!0}singletonPredicate(){return a.singletonPredicate}getPref(e){return this.getAppDomainValue(e)}}t.SNUserPrefs=a,a.singletonPredicate=new i.Predicate("content_type","=",r.ContentType.TYPES.UserPrefs)},3854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserPrefsMutator=void 0;const r=n(7136);class o extends r.DecryptedItemMutator{setPref(e,t){this.setAppDataItem(e,t)}}t.UserPrefsMutator=o},2100:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5194),t),o(n(3854),t),o(n(8664),t),o(n(3378),t),o(n(4924),t),o(n(3557),t),o(n(4457),t),o(n(2005),t),o(n(4454),t)},6921:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VaultListing=t.DefaultVaultIconName=void 0;const r=n(43);t.DefaultVaultIconName="safe-square";class o extends r.DecryptedItem{constructor(e){super(e),this.systemIdentifier=e.content.systemIdentifier,this.rootKeyParams=e.content.rootKeyParams,this.keyStorageMode=e.content.keyStorageMode,this.name=e.content.name,this.description=e.content.description,this.iconString=e.content.iconString||t.DefaultVaultIconName,this.sharing=e.content.sharing}strategyWhenConflictingWithItem(e,t){const n=this.rootKeyParams.creationTimestamp;return e.rootKeyParams.creationTimestamp>n?r.ConflictStrategy.KeepApply:r.ConflictStrategy.KeepBase}get keyPasswordType(){return this.rootKeyParams.passwordType}isSharedVaultListing(){return null!=this.sharing}get key_system_identifier(){}get shared_vault_uuid(){}}t.VaultListing=o},8831:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VaultListingMutator=void 0;const r=n(43);class o extends r.DecryptedItemMutator{set name(e){this.mutableContent.name=e}set description(e){this.mutableContent.description=e}set iconString(e){this.mutableContent.iconString=e}set sharing(e){this.mutableContent.sharing=e}set rootKeyParams(e){this.mutableContent.rootKeyParams=e}set keyStorageMode(e){this.mutableContent.keyStorageMode=e}}t.VaultListingMutator=o},2897:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9991:(e,t)=>{"use strict";function n(e,t){return e.find((e=>e.uuid===t))}Object.defineProperty(t,"__esModule",{value:!0}),t.SureFindItem=t.FindItem=void 0,t.FindItem=n,t.SureFindItem=function(e,t){return n(e,t)}},3514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ItemContentsDiffer=void 0;const r=n(6848);t.ItemContentsDiffer=function(e,t,n=[]){return!(0,r.ItemContentsEqual)(e.content,t.content,[...e.contentKeysToIgnoreWhenCheckingEquality(),...n],e.appDataContentKeysToIgnoreWhenCheckingEquality())}},6848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ItemContentsEqual=void 0;const r=n(9764),o=n(1824);t.ItemContentsEqual=function(e,t,n,i){const a=(0,r.sortedCopy)(e);if(a.appData){const e=a.appData[o.DefaultAppDomain];(0,r.omitInPlace)(e,i),e?0===Object.keys(e).length&&delete a.appData:delete a.appData}(0,r.omitInPlace)(a,n);const s=(0,r.sortedCopy)(t);if(s.appData){const e=s.appData[o.DefaultAppDomain];(0,r.omitInPlace)(e,i),e?0===Object.keys(e).length&&delete s.appData:delete s.appData}return(0,r.omitInPlace)(s,n),JSON.stringify(a)===JSON.stringify(s)}},3758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateItemFromPayload=t.CreateDecryptedItemFromPayload=t.RegisterItemClass=t.CreateDecryptedMutatorForItem=void 0;const r=n(5887),o=n(8435),i=n(1287),a=n(1293),s=n(143),l=n(1141),c=n(4077),u=n(7677),d=n(8155),p=n(1904),f=n(5194),h=n(3218),m=n(3854),g=n(994),v=n(6094),b=n(4032),y=n(799),w=n(7136),x=n(5174),k=n(9193),_=n(344),S=n(3235),E=n(8947),P=n(3150),C=n(6921),O=n(8853),j=n(4174),T=n(2656),M={[T.ContentType.TYPES.ActionsExtension]:{itemClass:a.SNActionsExtension,mutatorClass:g.ActionsExtensionMutator},[T.ContentType.TYPES.Component]:{itemClass:s.ComponentItem,mutatorClass:v.ComponentMutator},[T.ContentType.TYPES.KeySystemRootKey]:{itemClass:E.KeySystemRootKey,mutatorClass:P.KeySystemRootKeyMutator},[T.ContentType.TYPES.TrustedContact]:{itemClass:_.TrustedContact,mutatorClass:S.TrustedContactMutator},[T.ContentType.TYPES.VaultListing]:{itemClass:C.VaultListing,mutatorClass:O.VaultListingMutator},[T.ContentType.TYPES.Editor]:{itemClass:l.SNEditor},[T.ContentType.TYPES.ExtensionRepo]:{itemClass:i.SNFeatureRepo},[T.ContentType.TYPES.File]:{itemClass:o.FileItem,mutatorClass:h.FileMutator},[T.ContentType.TYPES.Note]:{itemClass:u.SNNote,mutatorClass:y.NoteMutator},[T.ContentType.TYPES.SmartView]:{itemClass:d.SmartView,mutatorClass:k.SmartViewMutator},[T.ContentType.TYPES.Tag]:{itemClass:p.SNTag,mutatorClass:b.TagMutator},[T.ContentType.TYPES.Theme]:{itemClass:s.ComponentItem,mutatorClass:v.ComponentMutator},[T.ContentType.TYPES.UserPrefs]:{itemClass:f.SNUserPrefs,mutatorClass:m.UserPrefsMutator}};function I(e){const t=M[e.content_type];return new(t?t.itemClass:c.DecryptedItem)(e)}t.CreateDecryptedMutatorForItem=function(e,t){var n;const r=null===(n=M[e.content_type])||void 0===n?void 0:n.mutatorClass;return r?new r(e,t):new w.DecryptedItemMutator(e,t)},t.RegisterItemClass=function(e,t,n){const r={itemClass:t,mutatorClass:n};M[e]=r},t.CreateDecryptedItemFromPayload=I,t.CreateItemFromPayload=function(e){if((0,j.isDecryptedPayload)(e))return I(e);if((0,j.isEncryptedPayload)(e))return new r.EncryptedItem(e);if((0,j.isDeletedPayload)(e))return new x.DeletedItem(e);throw Error("Unhandled case in CreateItemFromPayload")}},1301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyPayloadWithContentOverride=void 0;const r=n(392);t.CopyPayloadWithContentOverride=function(e,t){const n=Object.assign(Object.assign({},e.ejected()),{content:Object.assign(Object.assign({},e.content),t)});return(0,r.CreatePayload)(n,e.source)}},392:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreatePayload=void 0;const r=n(4553),o=n(4483),i=n(5835),a=n(7783);t.CreatePayload=function(e,t){if((0,a.isDecryptedTransferPayload)(e))return new i.DecryptedPayload(e,t);if((0,a.isEncryptedTransferPayload)(e))return new r.EncryptedPayload(e,t);if((0,a.isDeletedTransferPayload)(e))return new o.DeletedPayload(e,t);throw Error("Unhandled case in CreatePayload")}},6296:(e,t)=>{"use strict";function n(e,t){return e.find((e=>e.uuid===t))}Object.defineProperty(t,"__esModule",{value:!0}),t.SureFindPayload=t.FindPayload=void 0,t.FindPayload=n,t.SureFindPayload=function(e,t){return n(e,t)}},9618:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PayloadContentsEqual=void 0;const r=n(3758);t.PayloadContentsEqual=function(e,t){const n=(0,r.CreateDecryptedItemFromPayload)(e),o=(0,r.CreateDecryptedItemFromPayload)(t);return n.isItemContentEqualWith(o)}},1734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateNonDecryptedPayloadSplit=t.CreatePayloadSplitWithDiscardables=t.CreatePayloadSplit=void 0;const r=n(1720);t.CreatePayloadSplit=function(e){const t={encrypted:[],decrypted:[],deleted:[]};for(const n of e)if((0,r.isDecryptedPayload)(n))t.decrypted.push(n);else if((0,r.isEncryptedPayload)(n))t.encrypted.push(n);else{if(!(0,r.isDeletedPayload)(n))throw Error("Unhandled case in CreatePayloadSplit");t.deleted.push(n)}return t},t.CreatePayloadSplitWithDiscardables=function(e){const t={encrypted:[],decrypted:[],deleted:[],discardable:[]};for(const n of e)if((0,r.isDecryptedPayload)(n))t.decrypted.push(n);else if((0,r.isEncryptedPayload)(n))t.encrypted.push(n);else{if(!(0,r.isDeletedPayload)(n))throw Error("Unhandled case in CreatePayloadSplitWithDiscardables");n.discardable?t.discardable.push(n):t.deleted.push(n)}return t},t.CreateNonDecryptedPayloadSplit=function(e){const t={encrypted:[],deleted:[]};for(const n of e)if((0,r.isEncryptedPayload)(n))t.encrypted.push(n);else{if(!(0,r.isDeletedPayload)(n))throw Error("Unhandled case in CreateNonDecryptedPayloadSplit");t.deleted.push(n)}return t}},5277:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PayloadsByAlternatingUuid=void 0;const r=n(4483),o=n(9764),i=n(1720),a=n(833),s=n(2260),l=n(2656);t.PayloadsByAlternatingUuid=function(e,t){const n=[],c=e.copyAsSyncResolved({uuid:o.UuidGenerator.GenerateUuid(),dirty:!0,dirtyIndex:(0,s.getIncrementedDirtyIndex)(),lastSyncBegan:void 0,lastSyncEnd:new Date,duplicate_of:e.uuid});n.push(c);const u=(0,a.PayloadsByUpdatingReferencingPayloadReferences)(e,t,[c],[e.uuid]);if((0,o.extendArray)(n,u),e.content_type===l.ContentType.TYPES.ItemsKey){const r=t.all().filter((t=>(0,i.isEncryptedPayload)(t)&&t.items_key_id===e.uuid)).map((e=>e.copyAsSyncResolved({items_key_id:c.uuid,dirty:!0,dirtyIndex:(0,s.getIncrementedDirtyIndex)(),lastSyncEnd:new Date})));r.length>0&&(0,o.extendArray)(n,r)}const d=new r.DeletedPayload({created_at:e.created_at,updated_at:e.updated_at,created_at_timestamp:e.created_at_timestamp,updated_at_timestamp:e.updated_at_timestamp,dirty:!1,content:void 0,uuid:e.uuid,content_type:e.content_type,deleted:!0},e.source);return n.push(d),n}},8636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PayloadsByDuplicating=void 0;const r=n(9764),o=n(833),i=n(1720),a=n(2260);t.PayloadsByDuplicating=function(e){const{payload:t,baseCollection:n,isConflict:s,additionalContent:l,source:c}=e,u=[],d={uuid:r.UuidGenerator.GenerateUuid(),dirty:!0,dirtyIndex:(0,a.getIncrementedDirtyIndex)(),lastSyncBegan:void 0,lastSyncEnd:new Date,duplicate_of:t.uuid};let p;if((0,i.isDecryptedPayload)(t)){const e=Object.assign(Object.assign({},t.content),l);s&&(e.conflict_of=t.uuid),p=t.copyAsSyncResolved(Object.assign(Object.assign({},d),{content:e,deleted:!1}))}else p=t.copyAsSyncResolved(Object.assign({},d),c||t.source);if(u.push(p),(0,i.isDecryptedPayload)(t)&&(0,i.isDecryptedPayload)(p)){const e=(0,o.PayloadsByUpdatingReferencingPayloadReferences)(t,n,[p]);(0,r.extendArray)(u,e)}return u}},833:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PayloadsByUpdatingReferencingPayloadReferences=void 0;const r=n(6486),o=n(4174),i=n(2260);t.PayloadsByUpdatingReferencingPayloadReferences=function(e,t,n=[],a=[]){const s=t.elementsReferencingElement(e).filter(o.isDecryptedPayload),l=[];for(const t of s){const o=t.content.references.slice(),s=t.getReference(e.uuid);for(const e of n){const t=Object.assign(Object.assign({},s),{uuid:e.uuid,content_type:e.content_type});o.push(t)}for(const e of a)(0,r.remove)(o,{uuid:e});const c=t.copyAsSyncResolved({dirty:!0,dirtyIndex:(0,i.getIncrementedDirtyIndex)(),lastSyncEnd:new Date,content:Object.assign(Object.assign({},t.content),{references:o})});l.push(c)}return l}},3028:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1151),t),o(n(1134),t),o(n(3227),t),o(n(5479),t),o(n(9919),t),o(n(4372),t),o(n(2377),t),o(n(3102),t),o(n(1843),t),o(n(3115),t),o(n(9678),t),o(n(462),t),o(n(1786),t),o(n(4042),t),o(n(2497),t),o(n(9706),t),o(n(9032),t),o(n(5023),t),o(n(3694),t),o(n(3220),t),o(n(2796),t),o(n(4972),t),o(n(3829),t),o(n(1242),t),o(n(1085),t),o(n(43),t),o(n(4174),t),o(n(7783),t),o(n(8659),t),o(n(165),t),o(n(9937),t),o(n(9806),t),o(n(6070),t),o(n(2284),t),o(n(4731),t),o(n(9620),t),o(n(6152),t),o(n(4693),t),o(n(6305),t),o(n(6916),t),o(n(4684),t),o(n(4904),t),o(n(6206),t),o(n(3947),t),o(n(5811),t),o(n(9360),t),o(n(4557),t),o(n(304),t),o(n(3891),t),o(n(5992),t),o(n(2518),t),o(n(7322),t),o(n(3159),t),o(n(7618),t),o(n(2206),t),o(n(7619),t),o(n(9740),t),o(n(2260),t),o(n(9446),t),o(n(4010),t),o(n(3167),t),o(n(5817),t),o(n(6549),t),o(n(7290),t),o(n(8033),t),o(n(2332),t),o(n(9765),t),o(n(6938),t),o(n(6634),t),o(n(1084),t),o(n(9741),t),o(n(8823),t),o(n(6636),t),o(n(6024),t),o(n(808),t),o(n(808),t),o(n(9194),t),o(n(9516),t),o(n(7689),t),o(n(1415),t),o(n(6379),t),o(n(5788),t),o(n(8977),t),o(n(1092),t),o(n(2725),t),o(n(6041),t),o(n(7737),t),o(n(481),t),o(n(3369),t),o(n(1537),t),o(n(9470),t),o(n(8947),t),o(n(4545),t),o(n(5907),t),o(n(3150),t),o(n(668),t),o(n(1353),t),o(n(9193),t),o(n(4914),t),o(n(9136),t),o(n(3235),t),o(n(9017),t),o(n(1306),t),o(n(344),t),o(n(9748),t),o(n(9113),t),o(n(3196),t),o(n(2100),t),o(n(6921),t),o(n(8831),t),o(n(8098),t),o(n(8853),t),o(n(2897),t),o(n(8165),t),o(n(9991),t),o(n(3514),t),o(n(6848),t),o(n(3758),t),o(n(1301),t),o(n(392),t),o(n(6296),t),o(n(9618),t),o(n(5277),t),o(n(8636),t),o(n(1734),t)},5915:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3028),t)},3037:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},48:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4705:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},136:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2035:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},229:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2877:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},487:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isClientDisplayableError=t.ClientDisplayableError=void 0;const r=n(8408);class o{constructor(e,t,n){this.text=e,this.title=t,this.tag=n,console.error("Client Displayable Error:",e,t||"",n||"")}static FromError(e){return new o(e.message,void 0,e.tag)}static FromString(e){return new o(e)}static FromNetworkError(e){return new o((0,r.getErrorFromErrorResponse)(e).message)}}t.ClientDisplayableError=o,t.isClientDisplayableError=function(e){return e instanceof o}},4620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9002:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},144:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7579:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4767:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6632:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3789:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1512:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DeprecatedStatusCode=void 0,function(e){e[e.LocalValidationError=10]="LocalValidationError",e[e.CanceledMfa=11]="CanceledMfa",e[e.HttpStatusMinSuccess=200]="HttpStatusMinSuccess",e[e.HttpStatusNoContent=204]="HttpStatusNoContent",e[e.HttpStatusMaxSuccess=299]="HttpStatusMaxSuccess",e[e.HttpStatusExpiredAccessToken=498]="HttpStatusExpiredAccessToken",e[e.HttpStatusInvalidSession=401]="HttpStatusInvalidSession",e[e.HttpStatusForbidden=403]="HttpStatusForbidden",e[e.HttpBadRequest=400]="HttpBadRequest"}(n||(t.DeprecatedStatusCode=n={}))},6510:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorTag=void 0,function(e){e.MfaInvalid="mfa-invalid",e.MfaRequired="mfa-required",e.U2FRequired="u2f-required",e.RefreshTokenInvalid="invalid-refresh-token",e.RefreshTokenExpired="expired-refresh-token",e.AccessTokenExpired="expired-access-token",e.ParametersInvalid="invalid-parameters",e.RevokedSession="revoked-session",e.AuthInvalid="invalid-auth",e.ReadOnlyAccess="read-only-access",e.ExpiredItemShare="expired-item-share",e.ClientValidationError="client-validation-error",e.ClientCanceledMfa="client-canceled-mfa"}(n||(t.ErrorTag=n={}))},9207:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4538:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2395:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7471:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorFromErrorResponse=t.isErrorResponse=void 0,t.isErrorResponse=function(e){var t;return null!=(null===(t=e.data)||void 0===t?void 0:t.error)||e.status>=400},t.getErrorFromErrorResponse=function(e){return e.data.error||{message:"Unknown error"}}},9174:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6740:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.HttpStatusCode=void 0,function(e){e[e.Success=200]="Success",e[e.NoContent=204]="NoContent",e[e.MultipleChoices=300]="MultipleChoices",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.Gone=410]="Gone",e[e.ExpiredAccessToken=498]="ExpiredAccessToken",e[e.InternalServerError=500]="InternalServerError"}(n||(t.HttpStatusCode=n={}))},2723:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.HttpVerb=void 0,function(e){e.Get="GET",e.Post="POST",e.Put="PUT",e.Patch="PATCH",e.Delete="DELETE"}(n||(t.HttpVerb=n={}))},8408:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6510),t),o(n(581),t),o(n(4538),t),o(n(7512),t),o(n(2395),t),o(n(7471),t),o(n(9174),t),o(n(2723),t),o(n(9738),t),o(n(6632),t),o(n(6913),t),o(n(3789),t),o(n(1512),t),o(n(6740),t),o(n(9207),t)},3770:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ApiEndpointParam=void 0,function(e){e.LastSyncToken="sync_token",e.PaginationToken="cursor_token",e.SyncDlLimit="limit",e.SyncPayloads="items",e.ApiVersion="api",e.SharedVaultUuids="shared_vault_uuids"}(n||(t.ApiEndpointParam=n={}))},4191:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conflictParamsHasOnlyUnsavedItem=t.conflictParamsHasOnlyServerItem=t.conflictParamsHasServerItemAndUnsavedItem=void 0,t.conflictParamsHasServerItemAndUnsavedItem=function(e){return void 0!==e.server_item&&void 0!==e.unsaved_item},t.conflictParamsHasOnlyServerItem=function(e){return void 0!==e.server_item},t.conflictParamsHasOnlyUnsavedItem=function(e){return void 0!==e.unsaved_item}},7263:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ConflictType=void 0,function(e){e.ConflictingData="sync_conflict",e.UuidConflict="uuid_conflict",e.ContentTypeError="content_type_error",e.ContentError="content_error",e.ReadOnlyError="readonly_error",e.UuidError="uuid_error",e.InvalidServerItem="invalid_server_item",e.SharedVaultSnjsVersionError="shared_vault_snjs_version_error",e.SharedVaultInsufficientPermissionsError="shared_vault_insufficient_permissions_error",e.SharedVaultNotMemberError="shared_vault_not_member_error",e.SharedVaultInvalidState="shared_vault_invalid_state"}(n||(t.ConflictType=n={}))},4934:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2834:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8350:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(3770)},5191:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1049:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1758:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6710:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5705:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5353:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ValetTokenOperation=void 0,function(e){e.Read="read",e.Write="write",e.Delete="delete",e.Move="move"}(n||(t.ValetTokenOperation=n={}))},4804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4425:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1413:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6248:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6950),t),o(n(9869),t),o(n(3906),t),o(n(48),t),o(n(9288),t),o(n(4705),t),o(n(9423),t),o(n(6278),t),o(n(136),t),o(n(2035),t),o(n(4286),t),o(n(229),t),o(n(704),t),o(n(2877),t),o(n(3350),t),o(n(2510),t),o(n(402),t),o(n(5353),t),o(n(8478),t),o(n(487),t),o(n(4620),t),o(n(9002),t),o(n(511),t),o(n(9019),t),o(n(144),t),o(n(7965),t),o(n(4767),t),o(n(7579),t),o(n(8408),t),o(n(8660),t),o(n(5705),t),o(n(6710),t),o(n(3037),t),o(n(3770),t),o(n(4191),t),o(n(8104),t),o(n(7263),t),o(n(4934),t),o(n(8350),t),o(n(5191),t),o(n(1049),t),o(n(2834),t),o(n(8688),t),o(n(1758),t),o(n(9948),t),o(n(2120),t),o(n(4048),t),o(n(4804),t),o(n(6143),t),o(n(7707),t),o(n(9561),t),o(n(2314),t),o(n(4425),t),o(n(9849),t),o(n(7088),t),o(n(1413),t),o(n(6368),t),o(n(9599),t),o(n(8660),t),o(n(6710),t),o(n(5705),t)},2431:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6248),t)},8870:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addYearsToDate=t.addMonthsToDate=t.addDaysToDate=t.addHoursToDate=void 0,t.addHoursToDate=function(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n},t.addDaysToDate=function(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n},t.addMonthsToDate=function(e,t){const n=new Date(e);return n.setMonth(n.getMonth()+t),n},t.addYearsToDate=function(e,t){const n=new Date(e);return n.setFullYear(n.getFullYear()+t),n}},6829:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Deferred=void 0,t.Deferred=()=>{let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return{resolve:e,reject:t,promise:n}}},7794:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyContainer=void 0;const r=n(4779),o=n(3752);t.DependencyContainer=class{constructor(){this.factory=new Map,this.dependencies=new Map}deinit(){this.factory.clear();const e=this.getAll();for(const t of e)(0,o.isDeinitable)(t)&&t.deinit();this.dependencies.clear()}getAll(){return Array.from(this.dependencies.values()).filter(r.isNotUndefined)}bind(e,t){this.factory.set(e,t)}get(e){const t=this.dependencies.get(e);if(t)return t;const n=this.factory.get(e);if(!n)throw new Error(`No dependency maker found for ${e.toString()}`);const r=n();return r?(this.dependencies.set(e,r),r):void 0}}},3752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canBlockDeinit=t.isDeinitable=void 0,t.isDeinitable=function(e){if(!e)throw new Error("Service is undefined");return"function"==typeof e.deinit},t.canBlockDeinit=function(e){if(!e)throw new Error("Service is undefined");return"function"==typeof e.blockDeinit}},8025:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6638:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;class n{constructor(e){this.appIdentifier=e,this.level="none"}canLog(e){if("none"===this.level)return!1;const t=["debug","info","warn","error"];return t.indexOf(e)>=t.indexOf(this.level)}setLevel(e){this.level=e}debug(e,...t){this.canLog("debug")&&this.logWithColor(e,...t)}info(e,...t){this.canLog("info")&&this.logWithColor(e,...t)}warn(e,...t){this.canLog("warn")&&console.warn(e,...t)}error(e,...t){this.canLog("error")&&console.error(e,...t)}logWithColor(...e){const t=new Date,n=`${t.toLocaleTimeString().replace(" PM","").replace(" AM","")}.${t.getMilliseconds()}`;this.customLog(`%c${this.appIdentifier}%c${n}`,"color: font-weight: bold; margin-right: 4px","color: gray",...e)}customLog(...e){Function.prototype.apply.call(console.log,console,arguments)}}t.Logger=n,t.default=n},2459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1682:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classNames=void 0;const r=n(4779);t.classNames=(...e)=>e.map((e=>"string"==typeof e?e:null)).filter(r.isNotUndefined).join(" ")},5229:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0,t.debounce=function(e,t=50,n={}){var r,o;let i;const a=null!==(r=n.isImmediate)&&void 0!==r&&r,s=null!==(o=n.callback)&&void 0!==o&&o,l=n.maxWait;let c=Date.now(),u=[];const d=function(...n){const r=this;return new Promise(((o,d)=>{const p=a&&void 0===i;if(void 0!==i&&clearTimeout(i),i=setTimeout((function(){if(i=void 0,c=Date.now(),!a){const t=e.apply(r,n);s&&s(t),u.forEach((({resolve:e})=>e(t))),u=[]}}),function(){if(void 0!==l){const e=Date.now()-c;if(e+t>=l)return l-e}return t}()),p){const t=e.apply(r,n);return s&&s(t),o(t)}u.push({resolve:o,reject:d})}))};return d.cancel=function(e){void 0!==i&&clearTimeout(i),u.forEach((({reject:t})=>t(e))),u=[]},d}},4779:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.assertUnreachable=t.sleep=t.truncateHexString=t.hasGetter=t.isValidUrl=t.deepFreeze=t.pickByCopy=t.deepMerge=t.Copy=t.joinPaths=t.omitByCopy=t.omitInPlace=t.withoutLastElement=t.jsonParseEmbeddedKeys=t.topLevelCompare=t.dateSorted=t.omitUndefinedCopy=t.sortByKey=t.sortedCopy=t.objectToValueArray=t.arrayByRemovingFromIndex=t.addAtIndex=t.removeFromIndex=t.compareValues=t.compareArrayReferences=t.arrayByDifference=t.filterFromArray=t.addIfUnique=t.removeFromArray=t.subtractFromArray=t.extendArray=t.lastElement=t.uniqueArrayByKey=t.uniqueArray=t.uniqCombineObjArrays=t.greaterOfTwoDates=t.isString=t.isEmpty=t.isNotUndefined=t.isNullOrUndefined=t.isFunction=t.isObject=t.sureSearchArray=t.searchArray=t.findInArray=t.isReactNativeEnvironment=t.isWebCryptoAvailable=t.isWebEnvironment=t.dictToArray=t.getGlobalScope=void 0,t.pluralize=t.spaceSeparatedStrings=t.useBoolean=t.assert=t.logWithColor=t.log=t.secondHalfOfString=t.firstHalfOfString=t.splitString=t.nonSecureRandomIdentifier=t.dateToLocalizedString=t.sanitizeHtmlString=t.convertTimestampToMilliseconds=t.arraysEqual=t.naturalSort=t.isSameDay=void 0;const o=n(7856),i=n(6486),a="undefined"!=typeof Intl?new Intl.Collator("en",{numeric:!0}):void 0;function s(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:null}function l(){return null!==s()}function c(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function u(e,t){return(0,i.find)(e,t)}function d(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function p(e){return null==e}function f(e,t){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}function h(e,t){e.splice(t,1)}function m(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const r of n)if(e[r]!==t[r])return!1;return!0}function g(e){return e instanceof Date?new Date(e):d(e)?JSON.parse(JSON.stringify(e)):e}var v;let b;function y(e,t,...n){const r=new Date;!function(...e){Function.prototype.apply.call(console.log,console,arguments)}(`%c${e}%c${r.toLocaleTimeString().replace(" PM","").replace(" AM","")}.${r.getMilliseconds()}`,`color: ${t}; font-weight: bold; margin-right: 4px`,"color: gray",...n)}t.getGlobalScope=s,t.dictToArray=function(e){return Object.values(e)},t.isWebEnvironment=l,t.isWebCryptoAvailable=function(){return l()&&!c()&&!(document&&document.documentMode)||/Edge/.test(navigator.userAgent)&&window.crypto&&!!window.crypto.subtle},t.isReactNativeEnvironment=c,t.findInArray=function(e,t,n){return e.find((e=>e[t]===n))},t.searchArray=u,t.sureSearchArray=function(e,t){return u(e,t)},t.isObject=d,t.isFunction=function(e){return null!==e&&"function"==typeof e},t.isNullOrUndefined=p,t.isNotUndefined=function(e){return null!=e},t.isEmpty=function(e){return!e||0===e.length},t.isString=function(e){return"string"==typeof e||e instanceof String},t.greaterOfTwoDates=function(e,t){return e>t?e:t},t.uniqCombineObjArrays=function(e,t,n){return(0,i.uniqWith)(e.concat(t),((e,t)=>{for(const r of n)if(e[r]!==t[r])return!1;return!0}))},t.uniqueArray=function(e){return(0,i.uniq)(e)},t.uniqueArrayByKey=function(e,t){return(0,i.uniqWith)(e,((e,n)=>e[t]===n[t]))},t.lastElement=function(e){return e[e.length-1]},t.extendArray=function(e,t){for(const n of t)e.push(n)},t.subtractFromArray=function(e,t){for(const n of t)f(e,n)},t.removeFromArray=f,t.addIfUnique=function(e,t){return!e.includes(t)&&(e.push(t),!0)},t.filterFromArray=function(e,t){(0,i.remove)(e,t)},t.arrayByDifference=function(e,t){return e.filter((e=>!t.includes(e))).concat(t.filter((t=>!e.includes(t))))},t.compareArrayReferences=function(e,t){return e.length===t.length&&e.every(((e,n)=>e===t[n]))},t.compareValues=function(e,t){return!(e&&!t||!e&&t)&&(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e instanceof String&&t instanceof String?e===t:m(e,t))},t.removeFromIndex=h,t.addAtIndex=function(e,t,n){e.splice(n,0,t)},t.arrayByRemovingFromIndex=function(e,t){const n=e.slice();return h(n,t),n},t.objectToValueArray=function(e){const t=[];for(const n of Object.keys(e))t.push(e[n]);return t},t.sortedCopy=function(e){const t=Object.keys(e).sort(),n={};for(const r of t)n[r]=e[r];return g(n)},t.sortByKey=(e,t)=>{const n=[...e];return n.sort(((e,n)=>{const r=e[t],o=n[t];return r<o?-1:r>o?1:0})),n},t.omitUndefinedCopy=function(e){const t={};for(const n of Object.keys(e))p(e[n])||(t[n]=e[n]);return t},t.dateSorted=function(e,t,n=!0){return e.sort(((e,r)=>{const o=e[t].getTime(),i=r[t].getTime(),a=n?1:-1;return o<i?-1*a:o>i?1*a:0}))},t.topLevelCompare=m,t.jsonParseEmbeddedKeys=function(e){const t={};for(const n of Object.keys(e)){let r;try{r=JSON.parse(e[n])}catch(t){r=e[n]}t[n]=r}return t},t.withoutLastElement=e=>e.slice(0,-1),t.omitInPlace=function(e,t){if(e)for(const n of t)delete e[n]},t.omitByCopy=function(e,t){if(p(e))return;const n=Object.assign({},e);for(const e of t)delete n[e];return n},t.joinPaths=function(...e){return e.map(((e,t)=>0===t?e.trim().replace(/[/]*$/g,""):e.trim().replace(/(^[/]*|[/]*$)/g,""))).filter((e=>e.length)).join("/")},t.Copy=g,t.deepMerge=function(e,t){if(!e||!t)throw"Attempting to deepMerge with null values";return(0,i.mergeWith)(e,t,((e,t)=>{if((0,i.isArray)(e))return t})),e},t.pickByCopy=function(e,t){const n={};for(const r of t)n[r]=e[r];return g(n)},t.deepFreeze=function e(t){const n=Object.getOwnPropertyNames(t);for(const r of n){const n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)?t[r]=e(n):t[r]=n}return Object.freeze(t)},t.isValidUrl=function(e){try{return new URL(e),!0}catch(e){return!1}},t.hasGetter=function(e,t){const n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t);return n&&!p(n.get)},t.truncateHexString=function(e,t){const n=t/4;return e.substring(0,n)},t.sleep=function(e,t=!0,n=""){return r(this,void 0,void 0,(function*(){return t&&console.warn(`Sleeping for ${e}ms ${n}`),new Promise((t=>{setTimeout((function(){t()}),e)}))}))},t.assertUnreachable=function(e){throw Error("Unchecked case "+e)},t.isSameDay=function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()},t.naturalSort=function(e,t,n="asc"){switch(n){case"asc":return[...e].sort(a?(e,n)=>a.compare(e[t],n[t]):(e,n)=>e[t].localeCompare(n[t],"en",{numeric:!0}));case"desc":return[...e].sort(a?(e,n)=>a.compare(n[t],e[t]):(e,n)=>n[t].localeCompare(e[t],"en",{numeric:!0}))}},t.arraysEqual=function(e,t){return e.length===t.length&&e.every((e=>t.includes(e)))&&t.every((t=>e.includes(t)))},function(e){e[e.Seconds=10]="Seconds",e[e.Milliseconds=13]="Milliseconds",e[e.Microseconds=16]="Microseconds"}(v||(v={})),t.convertTimestampToMilliseconds=function(e){switch(String(e).length){case v.Seconds:return 1e3*e;case v.Milliseconds:return e;case v.Microseconds:return Math.floor(e/1e3);default:throw`Unhandled timestamp precision: ${e}`}},t.sanitizeHtmlString=function(e){return(0,o.sanitize)(e)},t.dateToLocalizedString=function(e){if("undefined"!=typeof Intl&&Intl.DateTimeFormat&&"undefined"!=typeof navigator){if(!b){const e=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language;b=new Intl.DateTimeFormat(e,{year:"numeric",month:"short",day:"2-digit",weekday:"long",hour:"2-digit",minute:"2-digit"})}return b.format(e)}return e.toDateString()+" "+e.toLocaleTimeString()},t.nonSecureRandomIdentifier=function(){return(""+100*Math.random()).replace(".","")},t.splitString=function(e,t){const n=e.length/t,r=[];for(let o=0;o<t;o++){const t=e.slice(n*o,n*(o+1));r.push(t)}return r},t.firstHalfOfString=function(e){return e.substring(0,e.length/2)},t.secondHalfOfString=function(e){return e.substring(e.length/2,e.length)},t.log=function(e,...t){y(e,"black",...t)},t.logWithColor=y,t.assert=function(e){if(void 0===e)throw new Error("Assertion failed; value must be defined")},t.useBoolean=function(e,t){return null!=e?e:t},t.spaceSeparatedStrings=function(...e){return e.join(" ")},t.pluralize=function(e,t,n){return 1===e?t:n}},3601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Uuids=void 0,t.Uuids=function(e){return e.map((e=>e.uuid))}},9838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UuidGenerator=void 0,t.UuidGenerator=class{static SetGenerator(e){this.syncUuidFunc=e}static GenerateUuid(){return this.syncUuidFunc()}}},1497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UuidMap=void 0;const r=n(4779);class o{constructor(){this.directMap=new Map,this.inverseMap=new Map}get directMapSize(){return this.directMap.size}get inverseMapSize(){return this.inverseMap.size}makeCopy(){const e=new o;return e.directMap=new Map(this.directMap),e.inverseMap=new Map(this.inverseMap),e}existsInDirectMap(e){return this.directMap.has(e)}existsInInverseMap(e){return this.inverseMap.has(e)}getDirectRelationships(e){return this.directMap.get(e)||[]}getAllDirectKeys(){return Array.from(this.directMap.keys())}getInverseRelationships(e){return this.inverseMap.get(e)||[]}establishRelationship(e,t){this.establishDirectRelationship(e,t),this.establishInverseRelationship(e,t)}deestablishRelationship(e,t){this.deestablishDirectRelationship(e,t),this.deestablishInverseRelationship(e,t)}setAllRelationships(e,t){const n=this.directMap.get(e)||[];this.directMap.set(e,t);for(const t of n)this.deestablishInverseRelationship(e,t);for(const n of t)this.establishInverseRelationship(e,n)}removeFromMap(e){const t=this.directMap.get(e)||[];for(const n of t)(0,r.removeFromArray)(this.inverseMap.get(n)||[],e);this.directMap.delete(e);const n=this.inverseMap.get(e)||[];for(const t of n)(0,r.removeFromArray)(this.directMap.get(t)||[],e);this.inverseMap.delete(e)}establishDirectRelationship(e,t){const n=this.directMap.get(e)||[];(0,r.addIfUnique)(n,t),this.directMap.set(e,n)}establishInverseRelationship(e,t){const n=this.inverseMap.get(t)||[];(0,r.addIfUnique)(n,e),this.inverseMap.set(t,n)}deestablishDirectRelationship(e,t){const n=this.directMap.get(e)||[];(0,r.removeFromArray)(n,t),this.directMap.set(e,n)}deestablishInverseRelationship(e,t){const n=this.inverseMap.get(t)||[];(0,r.removeFromArray)(n,e),this.inverseMap.set(t,n)}}t.UuidMap=o},530:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(8870),t),o(n(6829),t),o(n(7794),t),o(n(3752),t),o(n(6638),t),o(n(2459),t),o(n(8025),t),o(n(1682),t),o(n(5229),t),o(n(4779),t),o(n(3601),t),o(n(9838),t),o(n(1497),t)},9764:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(530),t)},6251:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,"@charset \"UTF-8\";\n/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n/* Document\n ========================================================================== */\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\nhtml {\n line-height: 1.15;\n /* 1 */\n -webkit-text-size-adjust: 100%;\n /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n/**\n * Remove the margin in all browsers.\n */\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\nhr {\n box-sizing: content-box;\n /* 1 */\n height: 0;\n /* 1 */\n overflow: visible;\n /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\npre {\n font-family: monospace, monospace;\n /* 1 */\n font-size: 1em;\n /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n/**\n * Remove the gray background on active links in IE 10.\n */\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\nabbr[title] {\n border-bottom: none;\n /* 1 */\n text-decoration: underline;\n /* 2 */\n text-decoration: underline dotted;\n /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace;\n /* 1 */\n font-size: 1em;\n /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n/**\n * Remove the border on images inside links in IE 10.\n */\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n /* 1 */\n font-size: 100%;\n /* 1 */\n line-height: 1.15;\n /* 1 */\n margin: 0;\n /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\nlegend {\n box-sizing: border-box;\n /* 1 */\n color: inherit;\n /* 2 */\n display: table;\n /* 1 */\n max-width: 100%;\n /* 1 */\n padding: 0;\n /* 3 */\n white-space: normal;\n /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box;\n /* 1 */\n padding: 0;\n /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n[type=\"search\"] {\n -webkit-appearance: textfield;\n /* 1 */\n outline-offset: -2px;\n /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n /* 1 */\n font: inherit;\n /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n/**\n * Add the correct display in IE 10+.\n */\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n[hidden] {\n display: none;\n}\n\n:root {\n --sn-stylekit-base-font-size: 0.8125rem;\n --sn-stylekit-font-size-p: 0.8125rem;\n --sn-stylekit-font-size-editor: 0.983125rem;\n --sn-stylekit-font-size-h6: 0.65rem;\n --sn-stylekit-font-size-h5: 0.73125rem;\n --sn-stylekit-font-size-h4: 0.8125rem;\n --sn-stylekit-font-size-h3: 0.89375rem;\n --sn-stylekit-font-size-h2: 0.975rem;\n --sn-stylekit-font-size-h1: 1.05625rem;\n --sn-stylekit-neutral-color: #989898;\n --sn-stylekit-neutral-contrast-color: #ffffff;\n --sn-stylekit-info-color: #086DD6;\n --sn-stylekit-info-color-darkened: #065cb5;\n --sn-stylekit-info-contrast-color: #ffffff;\n --sn-stylekit-info-backdrop-color: #2b6fcf0f;\n --sn-stylekit-success-color: #007662;\n --sn-stylekit-success-contrast-color: #ffffff;\n --sn-stylekit-warning-color: #EBAD00;\n --sn-stylekit-warning-contrast-color: #ffffff;\n --sn-stylekit-danger-color: #cc2128;\n --sn-stylekit-danger-contrast-color: #ffffff;\n --sn-stylekit-shadow-color: #c8c8c8;\n --sn-stylekit-background-color: #ffffff;\n --sn-stylekit-border-color: #dfe1e4;\n --sn-stylekit-foreground-color: #000000;\n --sn-stylekit-contrast-background-color: #f6f6f6;\n --sn-stylekit-contrast-foreground-color: #2e2e2e;\n --sn-stylekit-contrast-border-color: #e3e3e3;\n --sn-stylekit-secondary-background-color: #f6f6f6;\n --sn-stylekit-secondary-foreground-color: #2e2e2e;\n --sn-stylekit-secondary-border-color: #e3e3e3;\n --sn-stylekit-secondary-contrast-background-color: #e3e3e3;\n --sn-stylekit-secondary-contrast-foreground-color: #2e2e2e;\n --sn-stylekit-secondary-contrast-border-color: #a2a2a2;\n --sn-stylekit-editor-background-color: var(--sn-stylekit-background-color);\n --sn-stylekit-editor-foreground-color: var(--sn-stylekit-foreground-color);\n --sn-stylekit-paragraph-text-color: #454545;\n --sn-stylekit-input-placeholder-color: #a8a8a8;\n --sn-stylekit-input-border-color: #e3e3e3;\n --sn-stylekit-scrollbar-thumb-color: #dfdfdf;\n --sn-stylekit-scrollbar-track-border-color: #e7e7e7;\n --sn-stylekit-menu-border: none;\n --sn-stylekit-general-border-radius: 2px;\n --sn-stylekit-simplified-chinese-font: 'Microsoft Yahei', '微软雅黑体';\n --sn-stylekit-monospace-font: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, 'Ubuntu Mono', 'Courier New',\n monospace;\n --sn-stylekit-sans-serif-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', var(--sn-stylekit-simplified-chinese-font), sans-serif;\n --sn-stylekit-editor-font-family: var(--sn-stylekit-sans-serif-font);\n --sn-stylekit-theme-type: light;\n --sn-stylekit-theme-name: sn-light;\n --sn-stylekit-passive-color-0: #515357;\n --sn-stylekit-passive-color-1: #72767e;\n --sn-stylekit-passive-color-2: #bbbec4;\n --sn-stylekit-passive-color-3: #dfe1e4;\n --sn-stylekit-passive-color-4: #eeeff1;\n --sn-stylekit-passive-color-4-opacity-variant: #bbbec43d;\n --sn-stylekit-passive-color-5: #f4f5f7;\n --sn-stylekit-passive-color-6: #e5e5e5;\n --sn-stylekit-passive-color-super-light: #f9f9f9;\n --sn-stylekit-accessory-tint-color-1: #086dd6;\n --sn-stylekit-accessory-tint-color-2: #ea6595;\n --sn-stylekit-accessory-tint-color-3: #ebad00;\n --sn-stylekit-accessory-tint-color-4: #7049cf;\n --sn-stylekit-accessory-tint-color-5: #1aa772;\n --sn-stylekit-accessory-tint-color-6: #f28c52;\n}\n\n.sn-component {\n /**\n * Do not use these rules without explicitly handling focus in a different\n * way, otherwise keyboard focus will break.\n */\n /**\n * A button that is just an icon. Separated from .sn-button because there\n * is almost no style overlap.\n */\n font-family: var(--sn-stylekit-sans-serif-font);\n -webkit-font-smoothing: antialiased;\n color: var(--sn-stylekit-foreground-color);\n}\n\n.sn-component .sk-panel {\n box-shadow: 0px 2px 5px var(--sn-stylekit-shadow-color);\n background-color: var(--sn-stylekit-background-color);\n border: 1px solid var(--sn-stylekit-border-color);\n border-radius: var(--sn-stylekit-general-border-radius);\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-grow: 1;\n}\n\n.sn-component .sk-panel a:hover {\n text-decoration: underline;\n}\n\n.sn-component .sk-panel.static {\n box-shadow: none;\n border: none;\n border-radius: 0;\n}\n\n.sn-component .sk-panel .sk-panel-header {\n flex-shrink: 0;\n /* Don't allow to condense in height */\n display: flex;\n justify-content: space-between;\n padding: 0.89375rem 1.625rem;\n border-bottom: 1px solid var(--sn-stylekit-contrast-border-color);\n background-color: var(--sn-stylekit-contrast-background-color);\n color: var(--sn-stylekit-contrast-foreground-color);\n align-items: center;\n}\n\n.sn-component .sk-panel .sk-panel-header .sk-panel-header-title {\n font-size: var(--sn-stylekit-font-size-h1);\n font-weight: 500;\n}\n\n.sn-component .sk-panel .sk-panel-header .close-button {\n font-weight: bold;\n}\n\n.sn-component .sk-panel .sk-footer,\n.sn-component .sk-panel .sk-panel-footer {\n padding: 0.8125rem 1.625rem;\n border-top: 1px solid var(--sn-stylekit-border-color);\n box-sizing: border-box;\n}\n\n.sn-component .sk-panel .sk-footer.extra-padding,\n.sn-component .sk-panel .sk-panel-footer.extra-padding {\n padding: 1.625rem 1.625rem;\n}\n\n.sn-component .sk-panel .sk-footer .left,\n.sn-component .sk-panel .sk-panel-footer .left {\n text-align: left;\n display: block;\n}\n\n.sn-component .sk-panel .sk-footer .right,\n.sn-component .sk-panel .sk-panel-footer .right {\n text-align: right;\n display: block;\n}\n\n.sn-component .sk-panel .sk-panel-content {\n padding: 1.3rem 1.625rem;\n padding-bottom: 0;\n flex-grow: 1;\n overflow: scroll;\n height: 100%;\n overflow-y: auto !important;\n overflow-x: auto !important;\n}\n\n.sn-component .sk-panel .sk-panel-content .sk-p,\n.sn-component .sk-panel .sk-panel-content .sk-li {\n color: var(--sn-stylekit-paragraph-text-color);\n line-height: 1.3;\n}\n\n.sn-component .sk-panel-section {\n padding-bottom: 1.3rem;\n display: flex;\n flex-direction: column;\n}\n\n.sn-component .sk-panel-section.sk-panel-hero {\n text-align: center;\n}\n\n.sn-component .sk-panel-section .sk-p:last-child {\n margin-bottom: 0;\n}\n\n.sn-component .sk-panel-section:not(:last-child) {\n margin-bottom: 1.21875rem;\n border-bottom: 1px solid var(--sn-stylekit-border-color);\n}\n\n.sn-component .sk-panel-section:not(:last-child).no-border {\n border-bottom: none;\n}\n\n.sn-component .sk-panel-section:last-child {\n margin-bottom: 0.5rem;\n}\n\n.sn-component .sk-panel-section.no-bottom-pad {\n padding-bottom: 0;\n margin-bottom: 0;\n}\n\n.sn-component .sk-panel-section .sk-panel-section-title {\n margin-bottom: 0.40625rem;\n font-weight: bold;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-panel-section .sk-panel-section-outer-title {\n border-bottom: 1px solid var(--sn-stylekit-border-color);\n padding-bottom: 0.73125rem;\n margin-top: 1.70625rem;\n margin-bottom: 15px;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-panel-section .sk-panel-section-subtitle {\n font-size: var(--sn-stylekit-font-size-h5);\n margin-bottom: 2px;\n}\n\n.sn-component .sk-panel-section .sk-panel-section-subtitle.subtle {\n font-weight: normal;\n opacity: 0.6;\n}\n\n.sn-component .sk-panel-section .text-content .sk-p {\n margin-bottom: 0.8175rem;\n}\n\n.sn-component .sk-panel-section .text-content p:first-child {\n margin-top: 0.24375rem;\n}\n\n.sn-component .sk-panel-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-top: 0.325rem;\n}\n\n.sn-component .sk-panel-row.centered {\n justify-content: center;\n}\n\n.sn-component .sk-panel-row.justify-right {\n justify-content: flex-end;\n}\n\n.sn-component .sk-panel-row.justify-left {\n justify-content: flex-start;\n}\n\n.sn-component .sk-panel-row.align-top {\n align-items: flex-start;\n}\n\n.sn-component .sk-panel-row .sk-panel-column.stretch {\n width: 100%;\n}\n\n.sn-component .sk-panel-row.default-padding, .sn-component .sk-panel-row:not(:last-child) {\n padding-bottom: 0.325rem;\n}\n\n.sn-component .sk-panel-row.condensed {\n padding-top: 0.1625rem;\n padding-bottom: 0.1625rem;\n}\n\n.sn-component .sk-panel-row .sk-p {\n margin: 0;\n padding: 0;\n}\n\n.sn-component .vertical-rule {\n background-color: var(--sn-stylekit-border-color);\n height: 1.21875rem;\n width: 1px;\n}\n\n.sn-component .sk-panel-form {\n width: 100%;\n}\n\n.sn-component .sk-panel-form.half {\n width: 50%;\n}\n\n.sn-component .sk-panel-form .form-submit {\n margin-top: 0.121875rem;\n}\n\n.sn-component .right-aligned {\n justify-content: flex-end;\n text-align: right;\n}\n\n.sn-component .sk-menu-panel {\n background-color: var(--sn-stylekit-background-color);\n border: 1px solid var(--sn-stylekit-contrast-border-color);\n border-radius: var(--sn-stylekit-general-border-radius);\n overflow: scroll;\n user-select: none;\n overflow-y: auto !important;\n overflow-x: auto !important;\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-header {\n padding: 0.65rem 0.8125rem;\n border-bottom: 1px solid var(--sn-stylekit-contrast-border-color);\n background-color: var(--sn-stylekit-contrast-background-color);\n color: var(--sn-stylekit-contrast-foreground-color);\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-header-title {\n font-weight: bold;\n font-size: var(--sn-stylekit-font-size-h4);\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-header-subtitle {\n margin-top: 0.1625rem;\n opacity: 0.6;\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-row {\n padding: 0.8125rem 0.8125rem;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n border-bottom: 1px solid var(--sn-stylekit-border-color);\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-row:hover {\n background-color: var(--sn-stylekit-contrast-background-color);\n color: var(--sn-stylekit-contrast-foreground-color);\n border-color: var(--sn-stylekit-contrast-border-color);\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-row .sk-menu-panel-column {\n display: flex;\n justify-content: center;\n flex-direction: column;\n /* Nested row */\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-row .sk-menu-panel-column:not(:first-child) {\n padding-left: 1rem;\n padding-right: 0.121875rem;\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-row .sk-menu-panel-column.stretch {\n width: 100%;\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-row .sk-menu-panel-column .sk-menu-panel-subrows {\n margin-top: 0.8125rem;\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-row .sk-menu-panel-column .sk-menu-panel-row,\n.sn-component .sk-menu-panel .sk-menu-panel-row .sk-menu-panel-column .sk-menu-panel-subrow {\n border: 1px solid var(--sn-stylekit-contrast-border-color);\n margin-top: -1px;\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-row .sk-menu-panel-column .sk-menu-panel-row:hover,\n.sn-component .sk-menu-panel .sk-menu-panel-row .sk-menu-panel-column .sk-menu-panel-subrow:hover {\n background-color: var(--sn-stylekit-background-color);\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-row .sk-menu-panel-column .left {\n display: flex;\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-row .sk-button .sk-label, .sn-component .sk-menu-panel .sk-menu-panel-row .sk-box .sk-label, .sn-component .sk-menu-panel .sk-menu-panel-row .sk-button .sk-panel-section .sk-panel-section-subtitle, .sn-component .sk-panel-section .sk-menu-panel .sk-menu-panel-row .sk-button .sk-panel-section-subtitle, .sn-component .sk-menu-panel .sk-menu-panel-row .sk-box .sk-panel-section .sk-panel-section-subtitle, .sn-component .sk-panel-section .sk-menu-panel .sk-menu-panel-row .sk-box .sk-panel-section-subtitle {\n font-size: var(--sn-stylekit-font-size-h6);\n font-weight: normal;\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-row .sk-label, .sn-component .sk-menu-panel .sk-menu-panel-row .sk-panel-section .sk-panel-section-subtitle, .sn-component .sk-panel-section .sk-menu-panel .sk-menu-panel-row .sk-panel-section-subtitle {\n font-size: var(--sn-stylekit-font-size-p);\n font-weight: bold;\n}\n\n.sn-component .sk-menu-panel .sk-menu-panel-row .sk-sublabel {\n font-size: var(--sn-stylekit-font-size-h5);\n margin-top: 0.1625rem;\n opacity: 0.6;\n}\n\n.sn-component .red {\n color: var(--sn-stylekit-danger-color);\n}\n\n.sn-component .tinted {\n color: var(--sn-stylekit-info-color);\n}\n\n.sn-component .selectable {\n user-select: text !important;\n -ms-user-select: text !important;\n -moz-user-select: text !important;\n -webkit-user-select: text !important;\n}\n\n.sn-component .sk-h1,\n.sn-component .sk-h2,\n.sn-component .sk-h3,\n.sn-component .sk-h4,\n.sn-component .sk-h5 {\n margin: 0;\n padding: 0;\n font-weight: normal;\n}\n\n.sn-component .sk-h1 {\n font-weight: 500;\n font-size: var(--sn-stylekit-font-size-h1);\n line-height: 1.54375rem;\n}\n\n.sn-component .sk-h2 {\n font-size: var(--sn-stylekit-font-size-h2);\n line-height: 1.4625rem;\n}\n\n.sn-component .sk-h3 {\n font-size: var(--sn-stylekit-font-size-h3);\n line-height: 1.38125rem;\n}\n\n.sn-component .sk-h4 {\n font-size: var(--sn-stylekit-font-size-p);\n line-height: 1.1375rem;\n}\n\n.sn-component .sk-h5 {\n font-size: var(--sn-stylekit-font-size-h5);\n}\n\n.sn-component .sk-bold {\n font-weight: bold;\n}\n\n.sn-component .sk-font-small {\n font-size: var(--sn-stylekit-font-size-h5);\n}\n\n.sn-component .sk-font-normal {\n font-size: var(--sn-stylekit-font-size-p);\n}\n\n.sn-component .sk-font-large {\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component a.sk-a {\n cursor: pointer;\n user-select: none;\n}\n\n.sn-component a.sk-a.disabled {\n color: var(--sn-stylekit-neutral-color);\n opacity: 0.6;\n}\n\n.sn-component a.sk-a.boxed {\n border-radius: var(--sn-stylekit-general-border-radius);\n padding: 0.24375rem 0.325rem;\n}\n\n.sn-component a.sk-a.boxed:hover {\n text-decoration: none;\n}\n\n.sn-component a.sk-a.boxed.neutral {\n background-color: var(--sn-stylekit-neutral-color);\n color: var(--sn-stylekit-neutral-contrast-color);\n}\n\n.sn-component a.sk-a.boxed.info {\n background-color: var(--sn-stylekit-info-color);\n color: var(--sn-stylekit-info-contrast-color);\n}\n\n.sn-component a.sk-a.boxed.warning {\n background-color: var(--sn-stylekit-warning-color);\n color: var(--sn-stylekit-warning-contrast-color);\n}\n\n.sn-component a.sk-a.boxed.danger {\n background-color: var(--sn-stylekit-danger-color);\n color: var(--sn-stylekit-danger-contrast-color);\n}\n\n.sn-component a.sk-a.boxed.success {\n background-color: var(--sn-stylekit-success-color);\n color: var(--sn-stylekit-success-contrast-color);\n}\n\n.sn-component .wrap {\n word-wrap: break-word;\n}\n\n.sn-component *.sk-base {\n color: var(--sn-stylekit-foreground-color);\n}\n\n.sn-component *.contrast {\n color: var(--sn-stylekit-contrast-foreground-color);\n}\n\n.sn-component *.neutral {\n color: var(--sn-stylekit-neutral-color);\n}\n\n.sn-component *.info {\n color: var(--sn-stylekit-info-color);\n}\n\n.sn-component *.info-contrast {\n color: var(--sn-stylekit-info-contrast-color);\n}\n\n.sn-component *.warning {\n color: var(--sn-stylekit-warning-color);\n}\n\n.sn-component *.danger {\n color: var(--sn-stylekit-danger-color);\n}\n\n.sn-component *.success {\n color: var(--sn-stylekit-success-color);\n}\n\n.sn-component *.info-i {\n color: var(--sn-stylekit-info-color) !important;\n}\n\n.sn-component *.warning-i {\n color: var(--sn-stylekit-warning-color) !important;\n}\n\n.sn-component *.danger-i {\n color: var(--sn-stylekit-danger-color) !important;\n}\n\n.sn-component *.success-i {\n color: var(--sn-stylekit-success-color) !important;\n}\n\n.sn-component *.clear {\n background-color: transparent;\n border: none;\n}\n\n.sn-component .center-text {\n text-align: center !important;\n justify-content: center !important;\n}\n\n.sn-component p.sk-p {\n margin: 0.40625rem 0;\n}\n\n.sn-component input.sk-input {\n box-sizing: border-box;\n padding: 0.56875rem 0.65rem;\n margin: 0.24375rem 0;\n border: none;\n font-size: var(--sn-stylekit-font-size-h3);\n width: 100%;\n outline: 0;\n resize: none;\n}\n\n.sn-component input.sk-input.clear {\n color: var(--sn-stylekit-foreground-color);\n background-color: transparent;\n border: none;\n}\n\n.sn-component input.sk-input.no-border {\n border: none;\n}\n\n.sn-component .sk-label, .sn-component .sk-panel-section .sk-panel-section-subtitle {\n font-weight: bold;\n}\n\n.sn-component .sk-label.no-bold, .sn-component .sk-panel-section .no-bold.sk-panel-section-subtitle {\n font-weight: normal;\n}\n\n.sn-component label.sk-label, .sn-component .sk-panel-section label.sk-panel-section-subtitle {\n margin: 0.56875rem 0;\n display: block;\n}\n\n.sn-component label.sk-label input[type='checkbox'], .sn-component .sk-panel-section label.sk-panel-section-subtitle input[type='checkbox'],\n.sn-component input[type='radio'] {\n width: auto;\n margin-right: 0.365625rem;\n /* Space after checkbox */\n vertical-align: middle;\n}\n\n.sn-component .sk-horizontal-group > *, .sn-component .sk-input-group > * {\n display: inline-block;\n vertical-align: middle;\n}\n\n.sn-component .sk-horizontal-group > *:not(:first-child), .sn-component .sk-input-group > *:not(:first-child) {\n margin-left: 0.73125rem;\n}\n\n.sn-component .sk-border-bottom {\n border-bottom: 1px solid var(--sn-stylekit-border-color);\n}\n\n.sn-component .sk-checkbox-group {\n padding-top: 0.40625rem;\n padding-bottom: 0.24375rem;\n}\n\n.sn-component ::placeholder {\n /* Chrome, Firefox, Opera, Safari 10.1+ */\n color: var(--sn-stylekit-input-placeholder-color);\n}\n\n.sn-component :-ms-input-placeholder {\n /* Internet Explorer 10-11 */\n color: var(--sn-stylekit-input-placeholder-color);\n}\n\n.sn-component ::-ms-input-placeholder {\n /* Microsoft Edge */\n color: var(--sn-stylekit-input-placeholder-color);\n}\n\n.sn-component .sk-button-group.stretch {\n display: flex;\n width: 100%;\n}\n\n.sn-component .sk-button-group.stretch .sk-button, .sn-component .sk-button-group.stretch .sk-box {\n display: block;\n flex-grow: 1;\n text-align: center;\n}\n\n.sn-component .sk-button-group .sk-button, .sn-component .sk-button-group .sk-box {\n display: inline-block;\n vertical-align: middle;\n}\n\n.sn-component .sk-button-group .sk-button:not(:last-child), .sn-component .sk-button-group .sk-box:not(:last-child) {\n margin-right: 5px;\n}\n\n.sn-component .sk-button-group .sk-button:not(:last-child).featured, .sn-component .sk-button-group .sk-box:not(:last-child).featured {\n margin-right: 8px;\n}\n\n.sn-component .sk-segmented-buttons {\n display: flex;\n flex-direction: row;\n}\n\n.sn-component .sk-segmented-buttons .sk-button, .sn-component .sk-segmented-buttons .sk-box {\n border-radius: 0;\n white-space: nowrap;\n margin: 0;\n margin-left: 0 !important;\n margin-right: 0 !important;\n}\n\n.sn-component .sk-segmented-buttons .sk-button:not(:last-child), .sn-component .sk-segmented-buttons .sk-box:not(:last-child) {\n border-right: none;\n border-radius: 0;\n}\n\n.sn-component .sk-segmented-buttons .sk-button:first-child, .sn-component .sk-segmented-buttons .sk-box:first-child {\n border-top-left-radius: var(--sn-stylekit-general-border-radius);\n border-bottom-left-radius: var(--sn-stylekit-general-border-radius);\n border-right: none;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.sn-component .sk-segmented-buttons .sk-button:last-child, .sn-component .sk-segmented-buttons .sk-box:last-child {\n border-top-right-radius: var(--sn-stylekit-general-border-radius);\n border-bottom-right-radius: var(--sn-stylekit-general-border-radius);\n border-left: none;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.sn-component .sk-box-group .sk-box {\n display: inline-block;\n}\n\n.sn-component .sk-box-group .sk-box:not(:last-child) {\n margin-right: 5px;\n}\n\n.sn-component .sk-a.button {\n text-decoration: none;\n}\n\n.sn-component .sk-button, .sn-component .sk-box {\n display: table;\n padding: 0.40625rem 0.56875rem;\n font-size: var(--sn-stylekit-font-size-h5);\n cursor: pointer;\n text-align: center;\n user-select: none;\n}\n\n.sn-component .sk-button.no-hover-border:after, .sn-component .no-hover-border.sk-box:after {\n color: transparent !important;\n}\n\n.sn-component .sk-button.wide, .sn-component .wide.sk-box {\n padding: 0.24375rem 1.38125rem;\n}\n\n.sn-component .sk-button > .sk-label, .sn-component .sk-box > .sk-label, .sn-component .sk-panel-section .sk-button > .sk-panel-section-subtitle, .sn-component .sk-panel-section .sk-box > .sk-panel-section-subtitle {\n font-weight: bold;\n display: block;\n text-align: center;\n}\n\n.sn-component .sk-button.big, .sn-component .big.sk-box {\n font-size: var(--sn-stylekit-font-size-h3);\n padding: 0.56875rem 2.03125rem;\n}\n\n.sn-component .sk-box {\n padding: 2.03125rem 1.21875rem;\n}\n\n.sn-component .sk-button.sk-base, .sn-component .sk-base.sk-box,\n.sn-component .sk-box.sk-base,\n.sn-component .sk-circle.sk-base {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-foreground-color);\n position: relative;\n background-color: var(--sn-stylekit-background-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-background-color);\n}\n\n.sn-component .sk-button.sk-base *, .sn-component .sk-base.sk-box *,\n.sn-component .sk-box.sk-base *,\n.sn-component .sk-circle.sk-base * {\n position: relative;\n}\n\n.sn-component .sk-button.sk-base:before, .sn-component .sk-base.sk-box:before,\n.sn-component .sk-box.sk-base:before,\n.sn-component .sk-circle.sk-base:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-background-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-button.sk-base:after, .sn-component .sk-base.sk-box:after,\n.sn-component .sk-box.sk-base:after,\n.sn-component .sk-circle.sk-base:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-background-color);\n}\n\n.sn-component .sk-button.sk-base:hover:before, .sn-component .sk-base.sk-box:hover:before,\n.sn-component .sk-box.sk-base:hover:before,\n.sn-component .sk-circle.sk-base:hover:before {\n filter: brightness(130%);\n}\n\n.sn-component .sk-button.sk-base.no-bg, .sn-component .sk-base.no-bg.sk-box,\n.sn-component .sk-box.sk-base.no-bg,\n.sn-component .sk-circle.sk-base.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-button.sk-base.no-bg:before, .sn-component .sk-base.no-bg.sk-box:before,\n.sn-component .sk-box.sk-base.no-bg:before,\n.sn-component .sk-circle.sk-base.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-button.sk-base.featured, .sn-component .sk-base.featured.sk-box,\n.sn-component .sk-box.sk-base.featured,\n.sn-component .sk-circle.sk-base.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-button.sk-base.featured:before, .sn-component .sk-base.featured.sk-box:before,\n.sn-component .sk-box.sk-base.featured:before,\n.sn-component .sk-circle.sk-base.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-button.contrast, .sn-component .contrast.sk-box,\n.sn-component .sk-box.contrast,\n.sn-component .sk-circle.contrast {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-contrast-foreground-color);\n position: relative;\n background-color: var(--sn-stylekit-contrast-background-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-contrast-background-color);\n}\n\n.sn-component .sk-button.contrast *, .sn-component .contrast.sk-box *,\n.sn-component .sk-box.contrast *,\n.sn-component .sk-circle.contrast * {\n position: relative;\n}\n\n.sn-component .sk-button.contrast:before, .sn-component .contrast.sk-box:before,\n.sn-component .sk-box.contrast:before,\n.sn-component .sk-circle.contrast:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-contrast-background-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-button.contrast:after, .sn-component .contrast.sk-box:after,\n.sn-component .sk-box.contrast:after,\n.sn-component .sk-circle.contrast:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-contrast-background-color);\n}\n\n.sn-component .sk-button.contrast:hover:before, .sn-component .contrast.sk-box:hover:before,\n.sn-component .sk-box.contrast:hover:before,\n.sn-component .sk-circle.contrast:hover:before {\n filter: brightness(130%);\n}\n\n.sn-component .sk-button.contrast.no-bg, .sn-component .contrast.no-bg.sk-box,\n.sn-component .sk-box.contrast.no-bg,\n.sn-component .sk-circle.contrast.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-button.contrast.no-bg:before, .sn-component .contrast.no-bg.sk-box:before,\n.sn-component .sk-box.contrast.no-bg:before,\n.sn-component .sk-circle.contrast.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-button.contrast.featured, .sn-component .contrast.featured.sk-box,\n.sn-component .sk-box.contrast.featured,\n.sn-component .sk-circle.contrast.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-button.contrast.featured:before, .sn-component .contrast.featured.sk-box:before,\n.sn-component .sk-box.contrast.featured:before,\n.sn-component .sk-circle.contrast.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-button.sk-secondary, .sn-component .sk-secondary.sk-box,\n.sn-component .sk-box.sk-secondary,\n.sn-component .sk-circle.sk-secondary {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-secondary-foreground-color);\n position: relative;\n background-color: var(--sn-stylekit-secondary-background-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-secondary-background-color);\n}\n\n.sn-component .sk-button.sk-secondary *, .sn-component .sk-secondary.sk-box *,\n.sn-component .sk-box.sk-secondary *,\n.sn-component .sk-circle.sk-secondary * {\n position: relative;\n}\n\n.sn-component .sk-button.sk-secondary:before, .sn-component .sk-secondary.sk-box:before,\n.sn-component .sk-box.sk-secondary:before,\n.sn-component .sk-circle.sk-secondary:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-secondary-background-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-button.sk-secondary:after, .sn-component .sk-secondary.sk-box:after,\n.sn-component .sk-box.sk-secondary:after,\n.sn-component .sk-circle.sk-secondary:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-secondary-background-color);\n}\n\n.sn-component .sk-button.sk-secondary:hover:before, .sn-component .sk-secondary.sk-box:hover:before,\n.sn-component .sk-box.sk-secondary:hover:before,\n.sn-component .sk-circle.sk-secondary:hover:before {\n filter: brightness(130%);\n}\n\n.sn-component .sk-button.sk-secondary.no-bg, .sn-component .sk-secondary.no-bg.sk-box,\n.sn-component .sk-box.sk-secondary.no-bg,\n.sn-component .sk-circle.sk-secondary.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-button.sk-secondary.no-bg:before, .sn-component .sk-secondary.no-bg.sk-box:before,\n.sn-component .sk-box.sk-secondary.no-bg:before,\n.sn-component .sk-circle.sk-secondary.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-button.sk-secondary.featured, .sn-component .sk-secondary.featured.sk-box,\n.sn-component .sk-box.sk-secondary.featured,\n.sn-component .sk-circle.sk-secondary.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-button.sk-secondary.featured:before, .sn-component .sk-secondary.featured.sk-box:before,\n.sn-component .sk-box.sk-secondary.featured:before,\n.sn-component .sk-circle.sk-secondary.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-button.sk-secondary-contrast, .sn-component .sk-secondary-contrast.sk-box,\n.sn-component .sk-box.sk-secondary-contrast,\n.sn-component .sk-circle.sk-secondary-contrast {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-secondary-contrast-foreground-color);\n position: relative;\n background-color: var(--sn-stylekit-secondary-contrast-background-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-secondary-contrast-background-color);\n}\n\n.sn-component .sk-button.sk-secondary-contrast *, .sn-component .sk-secondary-contrast.sk-box *,\n.sn-component .sk-box.sk-secondary-contrast *,\n.sn-component .sk-circle.sk-secondary-contrast * {\n position: relative;\n}\n\n.sn-component .sk-button.sk-secondary-contrast:before, .sn-component .sk-secondary-contrast.sk-box:before,\n.sn-component .sk-box.sk-secondary-contrast:before,\n.sn-component .sk-circle.sk-secondary-contrast:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-secondary-contrast-background-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-button.sk-secondary-contrast:after, .sn-component .sk-secondary-contrast.sk-box:after,\n.sn-component .sk-box.sk-secondary-contrast:after,\n.sn-component .sk-circle.sk-secondary-contrast:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-secondary-contrast-background-color);\n}\n\n.sn-component .sk-button.sk-secondary-contrast:hover:before, .sn-component .sk-secondary-contrast.sk-box:hover:before,\n.sn-component .sk-box.sk-secondary-contrast:hover:before,\n.sn-component .sk-circle.sk-secondary-contrast:hover:before {\n filter: brightness(130%);\n}\n\n.sn-component .sk-button.sk-secondary-contrast.no-bg, .sn-component .sk-secondary-contrast.no-bg.sk-box,\n.sn-component .sk-box.sk-secondary-contrast.no-bg,\n.sn-component .sk-circle.sk-secondary-contrast.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-button.sk-secondary-contrast.no-bg:before, .sn-component .sk-secondary-contrast.no-bg.sk-box:before,\n.sn-component .sk-box.sk-secondary-contrast.no-bg:before,\n.sn-component .sk-circle.sk-secondary-contrast.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-button.sk-secondary-contrast.featured, .sn-component .sk-secondary-contrast.featured.sk-box,\n.sn-component .sk-box.sk-secondary-contrast.featured,\n.sn-component .sk-circle.sk-secondary-contrast.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-button.sk-secondary-contrast.featured:before, .sn-component .sk-secondary-contrast.featured.sk-box:before,\n.sn-component .sk-box.sk-secondary-contrast.featured:before,\n.sn-component .sk-circle.sk-secondary-contrast.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-button.neutral, .sn-component .neutral.sk-box,\n.sn-component .sk-box.neutral,\n.sn-component .sk-circle.neutral {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-neutral-contrast-color);\n position: relative;\n background-color: var(--sn-stylekit-neutral-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-neutral-color);\n}\n\n.sn-component .sk-button.neutral *, .sn-component .neutral.sk-box *,\n.sn-component .sk-box.neutral *,\n.sn-component .sk-circle.neutral * {\n position: relative;\n}\n\n.sn-component .sk-button.neutral:before, .sn-component .neutral.sk-box:before,\n.sn-component .sk-box.neutral:before,\n.sn-component .sk-circle.neutral:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-neutral-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-button.neutral:after, .sn-component .neutral.sk-box:after,\n.sn-component .sk-box.neutral:after,\n.sn-component .sk-circle.neutral:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-neutral-color);\n}\n\n.sn-component .sk-button.neutral:hover:before, .sn-component .neutral.sk-box:hover:before,\n.sn-component .sk-box.neutral:hover:before,\n.sn-component .sk-circle.neutral:hover:before {\n filter: brightness(130%);\n}\n\n.sn-component .sk-button.neutral.no-bg, .sn-component .neutral.no-bg.sk-box,\n.sn-component .sk-box.neutral.no-bg,\n.sn-component .sk-circle.neutral.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-button.neutral.no-bg:before, .sn-component .neutral.no-bg.sk-box:before,\n.sn-component .sk-box.neutral.no-bg:before,\n.sn-component .sk-circle.neutral.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-button.neutral.featured, .sn-component .neutral.featured.sk-box,\n.sn-component .sk-box.neutral.featured,\n.sn-component .sk-circle.neutral.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-button.neutral.featured:before, .sn-component .neutral.featured.sk-box:before,\n.sn-component .sk-box.neutral.featured:before,\n.sn-component .sk-circle.neutral.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-button.info, .sn-component .info.sk-box,\n.sn-component .sk-box.info,\n.sn-component .sk-circle.info {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-info-contrast-color);\n position: relative;\n background-color: var(--sn-stylekit-info-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-info-color);\n}\n\n.sn-component .sk-button.info *, .sn-component .info.sk-box *,\n.sn-component .sk-box.info *,\n.sn-component .sk-circle.info * {\n position: relative;\n}\n\n.sn-component .sk-button.info:before, .sn-component .info.sk-box:before,\n.sn-component .sk-box.info:before,\n.sn-component .sk-circle.info:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-info-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-button.info:after, .sn-component .info.sk-box:after,\n.sn-component .sk-box.info:after,\n.sn-component .sk-circle.info:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-info-color);\n}\n\n.sn-component .sk-button.info:hover:before, .sn-component .info.sk-box:hover:before,\n.sn-component .sk-box.info:hover:before,\n.sn-component .sk-circle.info:hover:before {\n filter: brightness(130%);\n}\n\n.sn-component .sk-button.info.no-bg, .sn-component .info.no-bg.sk-box,\n.sn-component .sk-box.info.no-bg,\n.sn-component .sk-circle.info.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-button.info.no-bg:before, .sn-component .info.no-bg.sk-box:before,\n.sn-component .sk-box.info.no-bg:before,\n.sn-component .sk-circle.info.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-button.info.featured, .sn-component .info.featured.sk-box,\n.sn-component .sk-box.info.featured,\n.sn-component .sk-circle.info.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-button.info.featured:before, .sn-component .info.featured.sk-box:before,\n.sn-component .sk-box.info.featured:before,\n.sn-component .sk-circle.info.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-button.warning, .sn-component .warning.sk-box,\n.sn-component .sk-box.warning,\n.sn-component .sk-circle.warning {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-warning-contrast-color);\n position: relative;\n background-color: var(--sn-stylekit-warning-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-warning-color);\n}\n\n.sn-component .sk-button.warning *, .sn-component .warning.sk-box *,\n.sn-component .sk-box.warning *,\n.sn-component .sk-circle.warning * {\n position: relative;\n}\n\n.sn-component .sk-button.warning:before, .sn-component .warning.sk-box:before,\n.sn-component .sk-box.warning:before,\n.sn-component .sk-circle.warning:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-warning-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-button.warning:after, .sn-component .warning.sk-box:after,\n.sn-component .sk-box.warning:after,\n.sn-component .sk-circle.warning:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-warning-color);\n}\n\n.sn-component .sk-button.warning:hover:before, .sn-component .warning.sk-box:hover:before,\n.sn-component .sk-box.warning:hover:before,\n.sn-component .sk-circle.warning:hover:before {\n filter: brightness(130%);\n}\n\n.sn-component .sk-button.warning.no-bg, .sn-component .warning.no-bg.sk-box,\n.sn-component .sk-box.warning.no-bg,\n.sn-component .sk-circle.warning.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-button.warning.no-bg:before, .sn-component .warning.no-bg.sk-box:before,\n.sn-component .sk-box.warning.no-bg:before,\n.sn-component .sk-circle.warning.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-button.warning.featured, .sn-component .warning.featured.sk-box,\n.sn-component .sk-box.warning.featured,\n.sn-component .sk-circle.warning.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-button.warning.featured:before, .sn-component .warning.featured.sk-box:before,\n.sn-component .sk-box.warning.featured:before,\n.sn-component .sk-circle.warning.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-button.danger, .sn-component .danger.sk-box,\n.sn-component .sk-box.danger,\n.sn-component .sk-circle.danger {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-danger-contrast-color);\n position: relative;\n background-color: var(--sn-stylekit-danger-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-danger-color);\n}\n\n.sn-component .sk-button.danger *, .sn-component .danger.sk-box *,\n.sn-component .sk-box.danger *,\n.sn-component .sk-circle.danger * {\n position: relative;\n}\n\n.sn-component .sk-button.danger:before, .sn-component .danger.sk-box:before,\n.sn-component .sk-box.danger:before,\n.sn-component .sk-circle.danger:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-danger-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-button.danger:after, .sn-component .danger.sk-box:after,\n.sn-component .sk-box.danger:after,\n.sn-component .sk-circle.danger:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-danger-color);\n}\n\n.sn-component .sk-button.danger:hover:before, .sn-component .danger.sk-box:hover:before,\n.sn-component .sk-box.danger:hover:before,\n.sn-component .sk-circle.danger:hover:before {\n filter: brightness(130%);\n}\n\n.sn-component .sk-button.danger.no-bg, .sn-component .danger.no-bg.sk-box,\n.sn-component .sk-box.danger.no-bg,\n.sn-component .sk-circle.danger.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-button.danger.no-bg:before, .sn-component .danger.no-bg.sk-box:before,\n.sn-component .sk-box.danger.no-bg:before,\n.sn-component .sk-circle.danger.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-button.danger.featured, .sn-component .danger.featured.sk-box,\n.sn-component .sk-box.danger.featured,\n.sn-component .sk-circle.danger.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-button.danger.featured:before, .sn-component .danger.featured.sk-box:before,\n.sn-component .sk-box.danger.featured:before,\n.sn-component .sk-circle.danger.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-button.success, .sn-component .success.sk-box,\n.sn-component .sk-box.success,\n.sn-component .sk-circle.success {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-success-contrast-color);\n position: relative;\n background-color: var(--sn-stylekit-success-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-success-color);\n}\n\n.sn-component .sk-button.success *, .sn-component .success.sk-box *,\n.sn-component .sk-box.success *,\n.sn-component .sk-circle.success * {\n position: relative;\n}\n\n.sn-component .sk-button.success:before, .sn-component .success.sk-box:before,\n.sn-component .sk-box.success:before,\n.sn-component .sk-circle.success:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-success-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-button.success:after, .sn-component .success.sk-box:after,\n.sn-component .sk-box.success:after,\n.sn-component .sk-circle.success:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-success-color);\n}\n\n.sn-component .sk-button.success:hover:before, .sn-component .success.sk-box:hover:before,\n.sn-component .sk-box.success:hover:before,\n.sn-component .sk-circle.success:hover:before {\n filter: brightness(130%);\n}\n\n.sn-component .sk-button.success.no-bg, .sn-component .success.no-bg.sk-box,\n.sn-component .sk-box.success.no-bg,\n.sn-component .sk-circle.success.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-button.success.no-bg:before, .sn-component .success.no-bg.sk-box:before,\n.sn-component .sk-box.success.no-bg:before,\n.sn-component .sk-circle.success.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-button.success.featured, .sn-component .success.featured.sk-box,\n.sn-component .sk-box.success.featured,\n.sn-component .sk-circle.success.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-button.success.featured:before, .sn-component .success.featured.sk-box:before,\n.sn-component .sk-box.success.featured:before,\n.sn-component .sk-circle.success.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-notification.contrast,\n.sn-component .sk-input.contrast {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-contrast-foreground-color);\n position: relative;\n background-color: var(--sn-stylekit-contrast-background-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-contrast-border-color);\n border: 1px solid var(--sn-stylekit-contrast-border-color);\n}\n\n.sn-component .sk-notification.contrast *,\n.sn-component .sk-input.contrast * {\n position: relative;\n}\n\n.sn-component .sk-notification.contrast:before,\n.sn-component .sk-input.contrast:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-contrast-background-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-notification.contrast:after,\n.sn-component .sk-input.contrast:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n color: var(--sn-stylekit-contrast-border-color);\n border-color: var(--sn-stylekit-contrast-border-color);\n}\n\n.sn-component .sk-notification.contrast.no-bg,\n.sn-component .sk-input.contrast.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-notification.contrast.no-bg:before,\n.sn-component .sk-input.contrast.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-notification.contrast.featured,\n.sn-component .sk-input.contrast.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-notification.contrast.featured:before,\n.sn-component .sk-input.contrast.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-notification.sk-secondary,\n.sn-component .sk-input.sk-secondary {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-secondary-foreground-color);\n position: relative;\n background-color: var(--sn-stylekit-secondary-background-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-secondary-border-color);\n border: 1px solid var(--sn-stylekit-secondary-border-color);\n}\n\n.sn-component .sk-notification.sk-secondary *,\n.sn-component .sk-input.sk-secondary * {\n position: relative;\n}\n\n.sn-component .sk-notification.sk-secondary:before,\n.sn-component .sk-input.sk-secondary:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-secondary-background-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-notification.sk-secondary:after,\n.sn-component .sk-input.sk-secondary:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n color: var(--sn-stylekit-secondary-border-color);\n border-color: var(--sn-stylekit-secondary-border-color);\n}\n\n.sn-component .sk-notification.sk-secondary.no-bg,\n.sn-component .sk-input.sk-secondary.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-notification.sk-secondary.no-bg:before,\n.sn-component .sk-input.sk-secondary.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-notification.sk-secondary.featured,\n.sn-component .sk-input.sk-secondary.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-notification.sk-secondary.featured:before,\n.sn-component .sk-input.sk-secondary.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-notification.sk-secondary-contrast,\n.sn-component .sk-input.sk-secondary-contrast {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-secondary-contrast-foreground-color);\n position: relative;\n background-color: var(--sn-stylekit-secondary-contrast-background-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-secondary-contrast-border-color);\n border: 1px solid var(--sn-stylekit-secondary-contrast-border-color);\n}\n\n.sn-component .sk-notification.sk-secondary-contrast *,\n.sn-component .sk-input.sk-secondary-contrast * {\n position: relative;\n}\n\n.sn-component .sk-notification.sk-secondary-contrast:before,\n.sn-component .sk-input.sk-secondary-contrast:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-secondary-contrast-background-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-notification.sk-secondary-contrast:after,\n.sn-component .sk-input.sk-secondary-contrast:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n color: var(--sn-stylekit-secondary-contrast-border-color);\n border-color: var(--sn-stylekit-secondary-contrast-border-color);\n}\n\n.sn-component .sk-notification.sk-secondary-contrast.no-bg,\n.sn-component .sk-input.sk-secondary-contrast.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-notification.sk-secondary-contrast.no-bg:before,\n.sn-component .sk-input.sk-secondary-contrast.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-notification.sk-secondary-contrast.featured,\n.sn-component .sk-input.sk-secondary-contrast.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-notification.sk-secondary-contrast.featured:before,\n.sn-component .sk-input.sk-secondary-contrast.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-notification.sk-base,\n.sn-component .sk-input.sk-base {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-foreground-color);\n position: relative;\n background-color: var(--sn-stylekit-background-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-border-color);\n border: 1px solid var(--sn-stylekit-border-color);\n}\n\n.sn-component .sk-notification.sk-base *,\n.sn-component .sk-input.sk-base * {\n position: relative;\n}\n\n.sn-component .sk-notification.sk-base:before,\n.sn-component .sk-input.sk-base:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-background-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-notification.sk-base:after,\n.sn-component .sk-input.sk-base:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n color: var(--sn-stylekit-border-color);\n border-color: var(--sn-stylekit-border-color);\n}\n\n.sn-component .sk-notification.sk-base.no-bg,\n.sn-component .sk-input.sk-base.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-notification.sk-base.no-bg:before,\n.sn-component .sk-input.sk-base.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-notification.sk-base.featured,\n.sn-component .sk-input.sk-base.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-notification.sk-base.featured:before,\n.sn-component .sk-input.sk-base.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-notification.neutral,\n.sn-component .sk-input.neutral {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-neutral-contrast-color);\n position: relative;\n background-color: var(--sn-stylekit-neutral-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-neutral-color);\n}\n\n.sn-component .sk-notification.neutral *,\n.sn-component .sk-input.neutral * {\n position: relative;\n}\n\n.sn-component .sk-notification.neutral:before,\n.sn-component .sk-input.neutral:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-neutral-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-notification.neutral:after,\n.sn-component .sk-input.neutral:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-neutral-color);\n}\n\n.sn-component .sk-notification.neutral.no-bg,\n.sn-component .sk-input.neutral.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-notification.neutral.no-bg:before,\n.sn-component .sk-input.neutral.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-notification.neutral.featured,\n.sn-component .sk-input.neutral.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-notification.neutral.featured:before,\n.sn-component .sk-input.neutral.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-notification.info,\n.sn-component .sk-input.info {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-info-contrast-color);\n position: relative;\n background-color: var(--sn-stylekit-info-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-info-color);\n}\n\n.sn-component .sk-notification.info *,\n.sn-component .sk-input.info * {\n position: relative;\n}\n\n.sn-component .sk-notification.info:before,\n.sn-component .sk-input.info:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-info-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-notification.info:after,\n.sn-component .sk-input.info:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-info-color);\n}\n\n.sn-component .sk-notification.info.no-bg,\n.sn-component .sk-input.info.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-notification.info.no-bg:before,\n.sn-component .sk-input.info.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-notification.info.featured,\n.sn-component .sk-input.info.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-notification.info.featured:before,\n.sn-component .sk-input.info.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-notification.warning,\n.sn-component .sk-input.warning {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-warning-contrast-color);\n position: relative;\n background-color: var(--sn-stylekit-warning-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-warning-color);\n}\n\n.sn-component .sk-notification.warning *,\n.sn-component .sk-input.warning * {\n position: relative;\n}\n\n.sn-component .sk-notification.warning:before,\n.sn-component .sk-input.warning:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-warning-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-notification.warning:after,\n.sn-component .sk-input.warning:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-warning-color);\n}\n\n.sn-component .sk-notification.warning.no-bg,\n.sn-component .sk-input.warning.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-notification.warning.no-bg:before,\n.sn-component .sk-input.warning.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-notification.warning.featured,\n.sn-component .sk-input.warning.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-notification.warning.featured:before,\n.sn-component .sk-input.warning.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-notification.danger,\n.sn-component .sk-input.danger {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-danger-contrast-color);\n position: relative;\n background-color: var(--sn-stylekit-danger-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-danger-color);\n}\n\n.sn-component .sk-notification.danger *,\n.sn-component .sk-input.danger * {\n position: relative;\n}\n\n.sn-component .sk-notification.danger:before,\n.sn-component .sk-input.danger:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-danger-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-notification.danger:after,\n.sn-component .sk-input.danger:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-danger-color);\n}\n\n.sn-component .sk-notification.danger.no-bg,\n.sn-component .sk-input.danger.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-notification.danger.no-bg:before,\n.sn-component .sk-input.danger.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-notification.danger.featured,\n.sn-component .sk-input.danger.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-notification.danger.featured:before,\n.sn-component .sk-input.danger.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-notification.success,\n.sn-component .sk-input.success {\n /*\n If $border-color is supplied, we use traditional borders for rect.\n Only sk-notification and sk-input will supply their own border color because inputs don't seem to support inset shadow borders.\n If not, and we're inerferring border from other colors, we use box-shadow, so that we get rounded borders\n */\n color: var(--sn-stylekit-success-contrast-color);\n position: relative;\n background-color: var(--sn-stylekit-success-color);\n overflow: hidden;\n border-radius: var(--sn-stylekit-general-border-radius);\n /*\n We use box-shadow instead of border so that the borders are rounded properly around the rect.\n We keep border-color as well incase the individual elements want a border in some cases.\n */\n border-color: var(--sn-stylekit-success-color);\n}\n\n.sn-component .sk-notification.success *,\n.sn-component .sk-input.success * {\n position: relative;\n}\n\n.sn-component .sk-notification.success:before,\n.sn-component .sk-input.success:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-success-color);\n opacity: 1;\n border-radius: var(--sn-stylekit-general-border-radius);\n}\n\n.sn-component .sk-notification.success:after,\n.sn-component .sk-input.success:after {\n content: '';\n display: block;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n border-radius: var(--sn-stylekit-general-border-radius);\n pointer-events: none;\n box-shadow: inset 0 0 0 1px;\n color: var(--sn-stylekit-success-color);\n}\n\n.sn-component .sk-notification.success.no-bg,\n.sn-component .sk-input.success.no-bg {\n background-color: transparent;\n}\n\n.sn-component .sk-notification.success.no-bg:before,\n.sn-component .sk-input.success.no-bg:before {\n content: none;\n}\n\n.sn-component .sk-notification.success.featured,\n.sn-component .sk-input.success.featured {\n border: none;\n padding: 0.609375rem 1.015625rem;\n font-size: var(--sn-stylekit-font-size-h3);\n}\n\n.sn-component .sk-notification.success.featured:before,\n.sn-component .sk-input.success.featured:before {\n opacity: 1;\n}\n\n.sn-component .sk-notification {\n padding: 0.89375rem 0.8125rem;\n margin: 1.1375rem 0;\n text-align: left;\n cursor: default;\n}\n\n.sn-component .sk-notification.one-line {\n padding: 0rem 0.325rem;\n}\n\n.sn-component .sk-notification.stretch {\n width: 100%;\n}\n\n.sn-component .sk-notification.dashed {\n border-style: dashed;\n border-width: 2px;\n}\n\n.sn-component .sk-notification.dashed:after {\n box-shadow: none;\n}\n\n.sn-component .sk-notification .sk-notification-title {\n font-size: var(--sn-stylekit-font-size-h1);\n font-weight: bold;\n line-height: 1.54375rem;\n}\n\n.sn-component .sk-notification .sk-notification-text {\n line-height: 1.21875rem;\n font-size: var(--sn-stylekit-font-size-p);\n text-align: left;\n font-weight: normal;\n}\n\n.sn-component .sk-circle {\n border: 1px solid;\n cursor: pointer;\n border-color: var(--sn-stylekit-contrast-foreground-color);\n background-color: var(--sn-stylekit-contrast-background-color);\n padding: 0;\n border-radius: 50% !important;\n flex-shrink: 0;\n}\n\n.sn-component .sk-circle:before {\n border-radius: 50% !important;\n}\n\n.sn-component .sk-circle:after {\n border-radius: 50% !important;\n}\n\n.sn-component .sk-circle.small {\n width: 11px;\n height: 11px;\n}\n\n.sn-component .sk-spinner {\n border: 1px solid var(--sn-stylekit-neutral-color);\n border-radius: 50%;\n animation: rotate 0.8s infinite linear;\n border-right-color: transparent;\n}\n\n.sn-component .sk-spinner.small {\n width: 12px;\n height: 12px;\n}\n\n.sn-component .sk-spinner.info-contrast {\n border-color: var(--sn-stylekit-info-contrast-color);\n border-right-color: transparent;\n}\n\n.sn-component .sk-spinner.info {\n border-color: var(--sn-stylekit-info-color);\n border-right-color: transparent;\n}\n\n.sn-component .sk-spinner.warning {\n border-color: var(--sn-stylekit-warning-color);\n border-right-color: transparent;\n}\n\n.sn-component .sk-spinner.danger {\n border-color: var(--sn-stylekit-danger-color);\n border-right-color: transparent;\n}\n\n.sn-component .sk-spinner.success {\n border-color: var(--sn-stylekit-success-color);\n border-right-color: transparent;\n}\n\n.sn-component .spinner-info {\n border-color: var(--sn-stylekit-info-color);\n border-right-color: transparent;\n}\n\n@keyframes rotate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.sn-component svg.sk-circular-progress {\n height: 18px;\n width: 18px;\n}\n\n.sn-component svg.sk-circular-progress circle.background {\n cx: 9px;\n cy: 9px;\n r: 7.6px;\n fill: none;\n stroke: var(--sn-stylekit-contrast-border-color);\n stroke-width: 2.8px;\n}\n\n.sn-component svg.sk-circular-progress circle.progress {\n cx: 9px;\n cy: 9px;\n r: 7.6px;\n fill: none;\n stroke: var(--sn-stylekit-info-color);\n stroke-linecap: round;\n stroke-width: 2.8px;\n transition: all 0.5s;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n}\n\n.sn-component svg.sk-circular-progress circle.progress.p-0, .sn-component svg.sk-circular-progress circle.progress.sn-icon-button {\n stroke-dasharray: 0px 47.75221px;\n}\n\n.sn-component svg.sk-circular-progress circle.progress.p-10 {\n stroke-dasharray: 4.77522px 42.97699px;\n}\n\n.sn-component svg.sk-circular-progress circle.progress.p-20 {\n stroke-dasharray: 9.55044px 38.20177px;\n}\n\n.sn-component svg.sk-circular-progress circle.progress.p-30 {\n stroke-dasharray: 14.32566px 33.42655px;\n}\n\n.sn-component svg.sk-circular-progress circle.progress.p-40 {\n stroke-dasharray: 19.10088px 28.65133px;\n}\n\n.sn-component svg.sk-circular-progress circle.progress.p-50 {\n stroke-dasharray: 23.8761px 23.8761px;\n}\n\n.sn-component svg.sk-circular-progress circle.progress.p-60 {\n stroke-dasharray: 28.65133px 19.10088px;\n}\n\n.sn-component svg.sk-circular-progress circle.progress.p-70 {\n stroke-dasharray: 33.42655px 14.32566px;\n}\n\n.sn-component svg.sk-circular-progress circle.progress.p-80 {\n stroke-dasharray: 38.20177px 9.55044px;\n}\n\n.sn-component svg.sk-circular-progress circle.progress.p-90 {\n stroke-dasharray: 42.97699px 4.77522px;\n}\n\n.sn-component svg.sk-circular-progress circle.progress.p-100 {\n stroke-dasharray: 47.75221px 0px;\n}\n\n.sn-component .sk-app-bar {\n display: flex;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.65rem;\n background-color: var(--sn-stylekit-contrast-background-color);\n color: var(--sn-stylekit-contrast-foreground-color);\n justify-content: space-between;\n align-items: center;\n border: 1px solid var(--sn-stylekit-contrast-border-color);\n user-select: none;\n}\n\n.sn-component .sk-app-bar.no-edges {\n border-left: 0;\n border-right: 0;\n}\n\n.sn-component .sk-app-bar.no-bottom-edge {\n border-bottom: 0;\n}\n\n.sn-component .sk-app-bar .left,\n.sn-component .sk-app-bar .right {\n display: flex;\n height: 100%;\n}\n\n.sn-component .sk-app-bar .sk-app-bar-item {\n flex-grow: 1;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.sn-component .sk-app-bar .sk-app-bar-item:not(:first-child) {\n margin-left: 0.8125rem;\n}\n\n.sn-component .sk-app-bar .sk-app-bar-item.border {\n border-left: 1px solid var(--sn-stylekit-contrast-border-color);\n}\n\n.sn-component .sk-app-bar .sk-app-bar-item > .sk-app-bar-item-column {\n height: 100%;\n display: flex;\n align-items: center;\n}\n\n.sn-component .sk-app-bar .sk-app-bar-item > .sk-app-bar-item-column:not(:first-child) {\n margin-left: 0.40625rem;\n}\n\n.sn-component .sk-app-bar .sk-app-bar-item > .sk-app-bar-item-column.underline {\n border-bottom: 2px solid var(--sn-stylekit-info-color);\n}\n\n.sn-component .sk-app-bar .sk-app-bar-item.no-pointer {\n cursor: default;\n}\n\n.sn-component .sk-app-bar .sk-app-bar-item:hover > .sk-label:not(.subtle), .sn-component .sk-app-bar .sk-panel-section .sk-app-bar-item:hover > .sk-panel-section-subtitle:not(.subtle), .sn-component .sk-panel-section .sk-app-bar .sk-app-bar-item:hover > .sk-panel-section-subtitle:not(.subtle),\n.sn-component .sk-app-bar .sk-app-bar-item:hover > .sk-sublabel:not(.subtle),\n.sn-component .sk-app-bar .sk-app-bar-item:hover > .sk-app-bar-item-column > .sk-label:not(.subtle),\n.sn-component .sk-app-bar .sk-panel-section .sk-app-bar-item:hover > .sk-app-bar-item-column > .sk-panel-section-subtitle:not(.subtle),\n.sn-component .sk-panel-section .sk-app-bar .sk-app-bar-item:hover > .sk-app-bar-item-column > .sk-panel-section-subtitle:not(.subtle),\n.sn-component .sk-app-bar .sk-app-bar-item:hover > .sk-app-bar-item-column > .sk-sublabel:not(.subtle) {\n color: var(--sn-stylekit-info-color);\n}\n\n.sn-component .sk-app-bar .sk-app-bar-item > .sk-label, .sn-component .sk-app-bar .sk-panel-section .sk-app-bar-item > .sk-panel-section-subtitle, .sn-component .sk-panel-section .sk-app-bar .sk-app-bar-item > .sk-panel-section-subtitle,\n.sn-component .sk-app-bar .sk-app-bar-item > .sk-app-bar-item-column > .sk-label,\n.sn-component .sk-app-bar .sk-panel-section .sk-app-bar-item > .sk-app-bar-item-column > .sk-panel-section-subtitle,\n.sn-component .sk-panel-section .sk-app-bar .sk-app-bar-item > .sk-app-bar-item-column > .sk-panel-section-subtitle {\n font-weight: bold;\n font-size: var(--sn-stylekit-font-size-h5);\n white-space: nowrap;\n}\n\n.sn-component .sk-app-bar .sk-app-bar-item > .sk-sublabel,\n.sn-component .sk-app-bar .sk-app-bar-item > .sk-app-bar-item-column > .sk-sublabel {\n font-size: var(--sn-stylekit-font-size-h5);\n font-weight: normal;\n white-space: nowrap;\n}\n\n.sn-component .sk-app-bar .sk-app-bar-item .subtle {\n font-weight: normal;\n opacity: 0.6;\n}\n\n.sn-component .sk-panel-table {\n display: flex;\n flex-wrap: wrap;\n padding-left: 1px;\n padding-top: 1px;\n}\n\n.sn-component .sk-panel-table .sk-panel-table-item {\n flex: 45%;\n flex-flow: wrap;\n border: 1px solid var(--sn-stylekit-border-color);\n padding: 0.8125rem;\n margin-left: -1px;\n margin-top: -1px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n.sn-component .sk-panel-table .sk-panel-table-item img {\n max-width: 100%;\n margin-bottom: 0.8125rem;\n}\n\n.sn-component .sk-panel-table .sk-panel-table-item .sk-panel-table-item-content {\n display: flex;\n flex-direction: row;\n}\n\n.sn-component .sk-panel-table .sk-panel-table-item .sk-panel-table-item-column {\n align-items: center;\n}\n\n.sn-component .sk-panel-table .sk-panel-table-item .sk-panel-table-item-column.stretch {\n width: 100%;\n}\n\n.sn-component .sk-panel-table .sk-panel-table-item .sk-panel-table-item-column:not(:first-child) {\n padding-left: 0.609375rem;\n}\n\n.sn-component .sk-panel-table .sk-panel-table-item .sk-panel-table-item-column.quarter {\n flex-basis: 25%;\n}\n\n.sn-component .sk-panel-table .sk-panel-table-item .sk-panel-table-item-column.three-quarters {\n flex-basis: 75%;\n}\n\n.sn-component .sk-panel-table .sk-panel-table-item .sk-panel-table-item-footer {\n margin-top: 1.015625rem;\n}\n\n.sn-component .sk-panel-table .sk-panel-table-item.no-border {\n border: none;\n}\n\n.sn-component .sk-modal {\n position: fixed;\n margin-left: auto;\n margin-right: auto;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 10000;\n width: 100vw;\n height: 100vh;\n background-color: transparent;\n color: var(--sn-stylekit-contrast-foreground-color);\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.sn-component .sk-modal .sn-component {\n height: 100%;\n}\n\n.sn-component .sk-modal .sn-component .sk-panel {\n height: 100%;\n}\n\n.sn-component .sk-modal.auto-height > .sk-modal-content {\n height: auto !important;\n}\n\n.sn-component .sk-modal.large > .sk-modal-content {\n width: 900px;\n height: 600px;\n}\n\n.sn-component .sk-modal.medium > .sk-modal-content {\n width: 700px;\n height: 500px;\n}\n\n.sn-component .sk-modal.small > .sk-modal-content {\n width: 700px;\n height: 344px;\n}\n\n.sn-component .sk-modal .sk-modal-background {\n position: absolute;\n z-index: -1;\n width: 100%;\n height: 100%;\n background-color: var(--sn-stylekit-contrast-background-color);\n opacity: 0.7;\n}\n\n.sn-component .sk-modal > .sk-modal-content {\n overflow-y: auto;\n width: auto;\n padding: 0;\n padding-bottom: 0;\n min-width: 300px;\n -webkit-box-shadow: 0px 2px 35px 0px rgba(0, 0, 0, 0.19);\n -moz-box-shadow: 0px 2px 35px 0px rgba(0, 0, 0, 0.19);\n box-shadow: 0px 2px 35px 0px rgba(0, 0, 0, 0.19);\n}\n\n@keyframes slide-down {\n 0% {\n opacity: 0;\n transform: translateY(-10px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n.sn-component .slide-down-animation, .sn-component .sn-dropdown-menu-list, .sn-component .sn-select-popover {\n animation: slide-down 0.2s ease;\n}\n\n@keyframes slide-in-right {\n 0% {\n opacity: 0;\n transform: translateX(10px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0);\n }\n}\n\n.sn-component .slide-in-right-animation {\n animation: slide-in-right 0.2s ease;\n}\n\n@keyframes slide-out-left {\n 0% {\n opacity: 1;\n transform: translateX(0);\n }\n 100% {\n opacity: 0;\n transform: translateX(-10px);\n }\n}\n\n.sn-component .slide-out-left-animation {\n animation: slide-out-left 0.2s ease;\n}\n\n@keyframes fade-out {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n.sn-component .fade-out-animation {\n animation: fade-out 0.2s ease;\n}\n\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.sn-component .fade-in-animation {\n animation: fade-in 0.2s ease;\n}\n\n.sn-component .animation-fill-forwards {\n animation-fill-mode: forwards;\n}\n\n.sn-component .no-border {\n border: none;\n}\n\n.sn-component .border-0, .sn-component .sn-button, .sn-component .sn-dropdown-menu, .sn-component .sn-select, .sn-component .sn-select-button, .sn-component .sn-select-popover {\n border-width: 0px;\n}\n\n.sn-component .border-1, .sn-component .sn-button.outlined, .sn-component .sn-dropdown-menu, .sn-component .sn-select, .sn-component .sn-icon-button {\n border-width: 1px;\n}\n\n.sn-component .border-2 {\n border-width: 2px;\n}\n\n.sn-component .border-b-1 {\n border-bottom-width: 1px;\n}\n\n.sn-component .border-main, .sn-component .sn-button.outlined, .sn-component .sn-dropdown-menu, .sn-component .sn-dropdown-menu-list, .sn-component .sn-select, .sn-component .sn-select-list, .sn-component .sn-select-popover, .sn-component .sn-icon-button {\n border-color: var(--sn-stylekit-border-color);\n}\n\n.sn-component .border-background {\n border-color: var(--sn-stylekit-background-color);\n}\n\n.sn-component .border-transparent {\n border-color: transparent;\n}\n\n.sn-component .border-info {\n border-color: var(--sn-stylekit-info-color);\n}\n\n.sn-component .border-neutral {\n border-color: var(--sn-stylekit-neutral-color);\n}\n\n.sn-component .border-rounded-md {\n border-radius: 0.375rem;\n}\n\n.sn-component .rounded, .sn-component .sn-button, .sn-component .sn-dropdown-menu, .sn-component .sn-dropdown-menu-list, .sn-component .sn-select, .sn-component .sn-select-list, .sn-component .sn-select-popover, .sn-component .toast-progress-bar, .sn-component .toast-progress-bar__value {\n border-radius: 0.25rem;\n}\n\n.sn-component .rounded-full, .sn-component .sn-icon-button {\n border-radius: 9999px;\n}\n\n.sn-component .border-solid, .sn-component .sn-button, .sn-component .sn-dropdown-menu, .sn-component .sn-select, .sn-component .sn-icon-button {\n border-style: solid;\n}\n\n.sn-component .border-bottom-solid {\n border-bottom-style: solid;\n}\n\n.sn-component .border-box, .sn-component .sn-select {\n box-sizing: border-box;\n}\n\n.sn-component .ring-info, .sn-component .focus\\:ring-info:focus, .sn-component .sn-icon-button:focus, .sn-component .focus-within\\:ring-info:focus-within {\n box-shadow: 0 0 0 2px var(--sn-stylekit-info-color);\n}\n\n.sn-component .inner-ring-info, .sn-component .focus\\:inner-ring-info:focus {\n box-shadow: inset 0 0 0 2px var(--sn-stylekit-info-color);\n}\n\n.sn-component .shadow-overlay {\n box-shadow: 0px 4px 24px 0px #00000029;\n}\n\n.sn-component .border-bottom-1-gray {\n border-bottom-color: var(--sn-stylekit-border-color);\n}\n\n.sn-component .bg-default, .sn-component .sn-button.outlined, .sn-component .sn-dropdown-menu, .sn-component .sn-dropdown-menu-list, .sn-component .sn-select, .sn-component .sn-select-list, .sn-component .toast-progress-bar {\n background-color: var(--sn-stylekit-background-color);\n}\n\n.sn-component .bg-contrast, .sn-component .hover\\:bg-contrast:hover, .sn-component .sn-icon-button:hover, .sn-component .focus\\:bg-contrast:focus, .sn-component .sn-icon-button:focus {\n background-color: var(--sn-stylekit-contrast-background-color);\n}\n\n.sn-component .bg-border {\n background-color: var(--sn-stylekit-border-color);\n}\n\n.sn-component .bg-secondary-contrast, .sn-component .hover\\:bg-secondary-contrast:hover, .sn-component .focus\\:bg-secondary-contrast:focus {\n background-color: var(--sn-stylekit-secondary-contrast-background-color);\n}\n\n.sn-component .bg-clip-padding, .sn-component .sn-icon-button {\n background-clip: padding-box;\n}\n\n.sn-component .bg-transparent, .sn-component .sn-icon-button {\n background-color: transparent;\n}\n\n.sn-component .bg-neutral {\n background-color: var(--sn-stylekit-neutral-color);\n}\n\n.sn-component .color-neutral, .sn-component .sn-icon-button {\n color: var(--sn-stylekit-neutral-color);\n}\n\n.sn-component .bg-text {\n background-color: var(--sn-stylekit-contrast-foreground-color);\n}\n\n.sn-component .color-text, .sn-component .hover\\:color-text:hover, .sn-component .sn-icon-button:hover, .sn-component .focus\\:color-text:focus, .sn-component .sn-icon-button:focus, .sn-component .sn-button.outlined, .sn-component .sn-dropdown-menu, .sn-component .sn-dropdown-menu-list, .sn-component .sn-select, .sn-component .sn-select-list {\n color: var(--sn-stylekit-contrast-foreground-color);\n}\n\n.sn-component .bg-foreground {\n background-color: var(--sn-stylekit-foreground-color);\n}\n\n.sn-component .color-foreground {\n color: var(--sn-stylekit-foreground-color);\n}\n\n.sn-component .bg-danger {\n background-color: var(--sn-stylekit-danger-color);\n}\n\n.sn-component .color-danger {\n color: var(--sn-stylekit-danger-color);\n}\n\n.sn-component .bg-info, .sn-component .sn-button.info, .sn-component .sn-icon-button.info, .sn-component .toast-progress-bar__value {\n background-color: var(--sn-stylekit-info-color);\n}\n\n.sn-component .color-info {\n color: var(--sn-stylekit-info-color);\n}\n\n.sn-component .bg-info-contrast {\n background-color: var(--sn-stylekit-info-contrast-color);\n}\n\n.sn-component .color-info-contrast, .sn-component .sn-button.info, .sn-component .sn-icon-button.info, .sn-component .sn-icon-button.info:hover, .sn-component .sn-icon-button.info:focus {\n color: var(--sn-stylekit-info-contrast-color);\n}\n\n.sn-component .bg-info-dark, .sn-component .hover\\:bg-info-dark:hover, .sn-component .focus\\:bg-info-dark:focus, .sn-component .sn-icon-button.info:hover, .sn-component .sn-icon-button.info:focus {\n background-color: var(--sn-stylekit-info-color-darkened);\n}\n\n.sn-component .color-info-dark {\n color: var(--sn-stylekit-info-color-darkened);\n}\n\n.sn-component .bg-success {\n background-color: var(--sn-stylekit-success-color);\n}\n\n.sn-component .color-success {\n color: var(--sn-stylekit-success-color);\n}\n\n.sn-component .bg-passive-0 {\n background-color: var(--sn-stylekit-passive-color-0);\n}\n\n.sn-component .color-passive-0 {\n color: var(--sn-stylekit-passive-color-0);\n}\n\n.sn-component .bg-passive-1 {\n background-color: var(--sn-stylekit-passive-color-1);\n}\n\n.sn-component .color-passive-1 {\n color: var(--sn-stylekit-passive-color-1);\n}\n\n.sn-component .bg-passive-2 {\n background-color: var(--sn-stylekit-passive-color-2);\n}\n\n.sn-component .color-passive-2 {\n color: var(--sn-stylekit-passive-color-2);\n}\n\n.sn-component .bg-passive-3 {\n background-color: var(--sn-stylekit-passive-color-3);\n}\n\n.sn-component .color-passive-3 {\n color: var(--sn-stylekit-passive-color-3);\n}\n\n.sn-component .bg-passive-4 {\n background-color: var(--sn-stylekit-passive-color-4);\n}\n\n.sn-component .color-passive-4 {\n color: var(--sn-stylekit-passive-color-4);\n}\n\n.sn-component .bg-passive-4-opacity-variant {\n background-color: var(--sn-stylekit-passive-color-4-opacity-variant);\n}\n\n.sn-component .color-passive-4-opacity-variant {\n color: var(--sn-stylekit-passive-color-4-opacity-variant);\n}\n\n.sn-component .bg-passive-5 {\n background-color: var(--sn-stylekit-passive-color-5);\n}\n\n.sn-component .color-passive-5 {\n color: var(--sn-stylekit-passive-color-5);\n}\n\n.sn-component .bg-passive-6 {\n background-color: var(--sn-stylekit-passive-color-6);\n}\n\n.sn-component .color-passive-6 {\n color: var(--sn-stylekit-passive-color-6);\n}\n\n.sn-component .bg-passive-super-light {\n background-color: var(--sn-stylekit-passive-color-super-light);\n}\n\n.sn-component .color-passive-super-light {\n color: var(--sn-stylekit-passive-color-super-light);\n}\n\n.sn-component .bg-accessory-tint-1 {\n background-color: var(--sn-stylekit-accessory-tint-color-1);\n}\n\n.sn-component .color-accessory-tint-1 {\n color: var(--sn-stylekit-accessory-tint-color-1);\n}\n\n.sn-component .bg-accessory-tint-2 {\n background-color: var(--sn-stylekit-accessory-tint-color-2);\n}\n\n.sn-component .color-accessory-tint-2 {\n color: var(--sn-stylekit-accessory-tint-color-2);\n}\n\n.sn-component .bg-accessory-tint-3 {\n background-color: var(--sn-stylekit-accessory-tint-color-3);\n}\n\n.sn-component .color-accessory-tint-3 {\n color: var(--sn-stylekit-accessory-tint-color-3);\n}\n\n.sn-component .bg-accessory-tint-4 {\n background-color: var(--sn-stylekit-accessory-tint-color-4);\n}\n\n.sn-component .color-accessory-tint-4 {\n color: var(--sn-stylekit-accessory-tint-color-4);\n}\n\n.sn-component .bg-accessory-tint-5 {\n background-color: var(--sn-stylekit-accessory-tint-color-5);\n}\n\n.sn-component .color-accessory-tint-5 {\n color: var(--sn-stylekit-accessory-tint-color-5);\n}\n\n.sn-component .bg-accessory-tint-6 {\n background-color: var(--sn-stylekit-accessory-tint-color-6);\n}\n\n.sn-component .color-accessory-tint-6 {\n color: var(--sn-stylekit-accessory-tint-color-6);\n}\n\n.sn-component .selected\\:bg-color[data-selected], .sn-component .sn-dropdown-menu-list-item[data-selected], .sn-component .sn-select-list-option[data-selected],\n.sn-component .selected\\:bg-color[aria-selected='true'],\n.sn-component .sn-dropdown-menu-list-item[aria-selected='true'],\n.sn-component .sn-select-list-option[aria-selected='true'] {\n background-color: var(--sn-stylekit-passive-color-5);\n}\n\n.sn-component .selected\\:fg-color[data-selected], .sn-component .sn-dropdown-menu-list-item[data-selected], .sn-component .sn-select-list-option[data-selected],\n.sn-component .selected\\:fg-color[aria-selected='true'],\n.sn-component .sn-dropdown-menu-list-item[aria-selected='true'],\n.sn-component .sn-select-list-option[aria-selected='true'] {\n color: var(--sn-stylekit-contrast-foreground-color);\n}\n\n.sn-component .fill-current, .sn-component .sn-icon {\n fill: currentColor;\n}\n\n.sn-component .inline-flex, .sn-component .sn-dropdown-menu, .sn-component .sn-select, .sn-component .sn-select-button {\n display: inline-flex;\n}\n\n.sn-component .block {\n display: block;\n}\n\n.sn-component .flex, .sn-component .sn-dropdown-menu-list-item, .sn-component .sn-icon-button {\n display: flex;\n}\n\n.sn-component .flex-col {\n flex-direction: column;\n}\n\n.sn-component .flex-row {\n flex-direction: row;\n}\n\n.sn-component .flex-grow {\n flex-grow: 1;\n}\n\n.sn-component .flex-shrink {\n flex-shrink: 1;\n}\n\n.sn-component .flex-shrink-0 {\n flex-shrink: 0;\n}\n\n.sn-component .flex-wrap {\n flex-wrap: wrap;\n}\n\n.sn-component .grid {\n display: grid;\n}\n\n.sn-component .items-center, .sn-component .sn-dropdown-menu, .sn-component .sn-dropdown-menu-list-item, .sn-component .sn-select, .sn-component .sn-select-button, .sn-component .sn-icon-button {\n align-items: center;\n}\n\n.sn-component .items-start {\n align-items: flex-start;\n}\n\n.sn-component .items-end {\n align-items: flex-end;\n}\n\n.sn-component .items-stretch {\n align-items: stretch;\n}\n\n.sn-component .justify-center, .sn-component .sn-dropdown-menu, .sn-component .sn-select, .sn-component .sn-select-button, .sn-component .sn-icon-button {\n justify-content: center;\n}\n\n.sn-component .justify-between {\n justify-content: space-between;\n}\n\n.sn-component .justify-start {\n justify-content: flex-start;\n}\n\n.sn-component .justify-end {\n justify-content: flex-end;\n}\n\n.sn-component .gap-1 {\n grid-gap: 0.25rem;\n gap: 0.25rem;\n}\n\n.sn-component .gap-2 {\n grid-gap: 0.5rem;\n gap: 0.5rem;\n}\n\n.sn-component .gap-3 {\n grid-gap: 0.75rem;\n gap: 0.75rem;\n}\n\n.sn-component .gap-4 {\n grid-gap: 1rem;\n gap: 1rem;\n}\n\n.sn-component .absolute, .sn-component .sn-dropdown-menu-list, .sn-component .sn-full-screen {\n position: absolute;\n}\n\n.sn-component .fixed {\n position: fixed;\n}\n\n.sn-component .cursor-pointer, .sn-component .sn-button, .sn-component .sn-dropdown-menu, .sn-component .sn-dropdown-menu-list-item, .sn-component .sn-select, .sn-component .sn-select-button, .sn-component .sn-select-list-option, .sn-component .sn-icon-button {\n cursor: pointer;\n}\n\n.sn-component .origin-top-right, .sn-component .sn-dropdown-menu-list, .sn-component .sn-select-list {\n transform-origin: top right;\n}\n\n.sn-component .overflow-auto {\n overflow: auto;\n}\n\n.sn-component .overflow-y-auto {\n overflow-y: auto;\n}\n\n.sn-component .overflow-hidden, .sn-component .toast-progress-bar {\n overflow: hidden;\n}\n\n.sn-component .overflow-ellipsis {\n text-overflow: ellipsis;\n}\n\n.sn-component .flex-basis-55 {\n flex-basis: 13.75rem;\n}\n\n.sn-component .opacity-0 {\n opacity: 0;\n}\n\n.sn-component .hover\\:bg-passive-3:hover {\n background-color: var(--sn-stylekit-passive-color-3);\n}\n\n.sn-component .hover\\:brightness-130:hover, .sn-component .sn-button:hover {\n filter: brightness(130%);\n}\n\n.sn-component .focus\\:brightness-130:focus, .sn-component .sn-button:focus {\n filter: brightness(130%);\n}\n\n.sn-component .hover\\:bg-highlight:hover, .sn-component .sn-button.outlined:hover, .sn-component .sn-dropdown-menu:hover, .sn-component .sn-dropdown-menu-list-item:hover, .sn-component .sn-select:hover {\n background-color: var(--sn-stylekit-passive-color-5);\n}\n\n.sn-component .focus\\:bg-highlight:focus, .sn-component .sn-button.outlined:focus {\n background-color: var(--sn-stylekit-passive-color-5);\n}\n\n.sn-component .focus\\:padded-ring-info:focus {\n box-shadow: 0 0 0 2px var(--sn-stylekit-background-color), 0 0 0 4px var(--sn-stylekit-info-color);\n}\n\n.sn-component .focus\\:border-bottom:focus {\n border-bottom: 2px solid var(--sn-stylekit-info-color);\n}\n\n.sn-component .focus-within\\:padded-ring-info:focus-within {\n box-shadow: 0 0 0 2px var(--sn-stylekit-background-color), 0 0 0 4px var(--sn-stylekit-info-color);\n}\n\n.sn-component .focus-within\\:border-background:focus-within {\n border-color: var(--sn-stylekit-background-color);\n}\n\n.sn-component .box-shadow, .sn-component .sn-dropdown-menu-list, .sn-component .sn-select-popover,\n.sn-component .box-shadow:focus,\n.sn-component .sn-dropdown-menu-list:focus,\n.sn-component .sn-select-popover:focus,\n.sn-component .box-shadow:focus-within,\n.sn-component .sn-dropdown-menu-list:focus-within,\n.sn-component .sn-select-popover:focus-within {\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.12), 0px 2px 8px rgba(0, 0, 0, 0.04);\n}\n\n.sn-component .focus\\:outline-none:focus, .sn-component .sn-button:focus, .sn-component .sn-dropdown-menu:focus, .sn-component .sn-dropdown-menu-list:focus, .sn-component .sn-dropdown-menu-list-item:focus, .sn-component .sn-select:focus, .sn-component .sn-select-button:focus, .sn-component .sn-select-list:focus, .sn-component .sn-select-popover:focus, .sn-component .sn-icon-button:focus {\n outline: none;\n}\n\n.sn-component .focus\\:shadow-none:focus, .sn-component .sn-button.outlined:focus, .sn-component .sn-dropdown-menu:focus, .sn-component .sn-dropdown-menu-list-item:focus, .sn-component .sn-select:focus, .sn-component .sn-select-button:focus, .sn-component .sn-select-list:focus, .sn-component .sn-select-popover:focus {\n box-shadow: none;\n}\n\n.sn-component .focus-within\\:outline-none:focus-within {\n outline: none;\n}\n\n.sn-component .focus-within\\:shadow-none:focus-within {\n box-shadow: none;\n}\n\n.sn-component .capitalize, .sn-component .sn-button {\n text-transform: capitalize;\n}\n\n.sn-component .font-normal, .sn-component .sn-dropdown-menu, .sn-component .sn-dropdown-menu-list, .sn-component .sn-select, .sn-component .sn-select-list-option {\n font-weight: 300;\n}\n\n.sn-component .font-semibold {\n font-weight: 600;\n}\n\n.sn-component .font-bold, .sn-component .sn-button {\n font-weight: 700;\n}\n\n.sn-component .text-left {\n text-align: left;\n}\n\n.sn-component .text-center {\n text-align: center;\n}\n\n.sn-component .text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n\n.sn-component .text-sm, .sn-component .sn-dropdown-menu, .sn-component .sn-dropdown-menu-list-item, .sn-component .sn-select, .sn-component .sn-select-list, .sn-component .sn-select-list-option {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n\n.sn-component .text-input {\n font-size: 0.875rem;\n line-height: 1.125rem;\n}\n\n.sn-component .text-base {\n font-size: 1rem;\n}\n\n.sn-component .text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n\n.sn-component .text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n\n.sn-component .text-3xl {\n font-size: 1.875rem;\n line-height: 2.25rem;\n}\n\n.sn-component .font-medium {\n font-weight: 500;\n}\n\n.sn-component .leading-4, .sn-component .sn-dropdown-menu, .sn-component .sn-select {\n line-height: 1rem;\n}\n\n.sn-component .whitespace-pre-wrap {\n white-space: pre-wrap;\n}\n\n.sn-component .whitespace-nowrap {\n white-space: nowrap;\n}\n\n.sn-component .h-auto {\n height: auto;\n}\n\n.sn-component .h-full {\n height: 100%;\n}\n\n.sn-component .h-100vh, .sn-component .sn-full-screen {\n height: 100vh;\n}\n\n.sn-component .h-90vh {\n height: 90vh;\n}\n\n.sn-component .h-0 {\n height: 0;\n}\n\n.sn-component .h-2, .sn-component .toast-progress-bar__value {\n height: 0.5rem;\n}\n\n.sn-component .h-3\\.5, .sn-component .sn-icon.sn-icon--small {\n height: 0.875rem;\n}\n\n.sn-component .h-4, .sn-component .sn-icon.sn-icon--mid {\n height: 1rem;\n}\n\n.sn-component .h-4\\.5 {\n height: 1.125rem;\n}\n\n.sn-component .h-5, .sn-component .sn-icon {\n height: 1.25rem;\n}\n\n.sn-component .h-6 {\n height: 1.5rem;\n}\n\n.sn-component .h-7 {\n height: 1.75rem;\n}\n\n.sn-component .h-8, .sn-component .sn-icon-button {\n height: 2rem;\n}\n\n.sn-component .h-9 {\n height: 2.25rem;\n}\n\n.sn-component .h-10 {\n height: 2.5rem;\n}\n\n.sn-component .h-14 {\n height: 3.5rem;\n}\n\n.sn-component .h-18 {\n height: 4.5rem;\n}\n\n.sn-component .h-25 {\n height: 6.25rem;\n}\n\n.sn-component .h-1px {\n height: 1px;\n}\n\n.sn-component .h-20px {\n height: 20px;\n}\n\n.sn-component .min-h-0 {\n min-height: 0;\n}\n\n.sn-component .min-h-5 {\n min-height: 1.25rem;\n}\n\n.sn-component .m-h-32, .sn-component .sn-dropdown-menu, .sn-component .sn-dropdown-menu-list-item, .sn-component .sn-select {\n min-height: 2rem;\n}\n\n.sn-component .min-h-20px {\n height: 20px;\n}\n\n.sn-component .max-h-120 {\n max-height: 30rem;\n}\n\n.sn-component .m-0, .sn-component .sn-icon-button {\n margin: 0;\n}\n\n.sn-component .my-1 {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n}\n\n.sn-component .my-2 {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n\n.sn-component .my-3 {\n margin-top: 0.75rem;\n margin-bottom: 0.75rem;\n}\n\n.sn-component .-mt-1 {\n margin-top: -0.25rem;\n}\n\n.sn-component .mt-1 {\n margin-top: 0.25rem;\n}\n\n.sn-component .mt-2, .sn-component .sn-dropdown-menu-list, .sn-component .sn-select-popover {\n margin-top: 0.5rem;\n}\n\n.sn-component .mt-3 {\n margin-top: 0.75rem;\n}\n\n.sn-component .mt-4 {\n margin-top: 1rem;\n}\n\n.sn-component .mb-1 {\n margin-bottom: 0.25rem;\n}\n\n.sn-component .mb-3 {\n margin-bottom: 0.75rem;\n}\n\n.sn-component .-mr-2 {\n margin-right: -0.5rem;\n}\n\n.sn-component .mr-1 {\n margin-right: 0.25rem;\n}\n\n.sn-component .mr-1\\.5 {\n margin-right: 0.375rem;\n}\n\n.sn-component .mr-2, .sn-component .sn-dropdown-menu > .sn-icon:first-child, .sn-component .sn-dropdown-menu-list-item > .sn-icon {\n margin-right: 0.5rem;\n}\n\n.sn-component .mr-10 {\n margin-right: 2.5rem;\n}\n\n.sn-component .ml-1 {\n margin-left: 0.25rem;\n}\n\n.sn-component .ml-1\\.5 {\n margin-left: 0.375rem;\n}\n\n.sn-component .ml-2, .sn-component .sn-dropdown-menu > .sn-icon:last-child, .sn-component .sn-select-button > .sn-icon:last-child {\n margin-left: 0.5rem;\n}\n\n.sn-component .ml-4 {\n margin-left: 1rem;\n}\n\n.sn-component .ml-6 {\n margin-left: 1.5rem;\n}\n\n.sn-component .p-0, .sn-component .sn-icon-button {\n padding-top: 0;\n padding-bottom: 0;\n padding-left: 0;\n padding-right: 0;\n}\n\n.sn-component .p-2 {\n padding: 0.5rem;\n}\n\n.sn-component .p-3 {\n padding: 0.75rem;\n}\n\n.sn-component .py-1, .sn-component .sn-dropdown-menu, .sn-component .sn-select-button {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n\n.sn-component .py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n\n.sn-component .py-1\\.75 {\n padding-top: 0.4375rem;\n padding-bottom: 0.4375rem;\n}\n\n.sn-component .py-2, .sn-component .sn-dropdown-menu-list, .sn-component .sn-select-list-option {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.sn-component .py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n\n.sn-component .py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n\n.sn-component .py-6 {\n padding-top: 1.5rem;\n padding-bottom: 1.5rem;\n}\n\n.sn-component .py-8 {\n padding-top: 2rem;\n padding-bottom: 2rem;\n}\n\n.sn-component .px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.sn-component .px-2, .sn-component .sn-dropdown-menu, .sn-component .sn-dropdown-menu-list-item {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n\n.sn-component .px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n.sn-component .px-3\\.5 {\n padding-left: 0.875rem;\n padding-right: 0.875rem;\n}\n\n.sn-component .px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n\n.sn-component .px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n\n.sn-component .pt-4 {\n padding-top: 1rem;\n}\n\n.sn-component .pb-3 {\n padding-bottom: 0.75rem;\n}\n\n.sn-component .pr-2 {\n padding-right: 0.5rem;\n}\n\n.sn-component .pl-1 {\n padding-left: 0.25rem;\n}\n\n.sn-component .pl-3 {\n padding-left: 0.75rem;\n}\n\n.sn-component .w-auto, .sn-component .sn-dropdown-menu, .sn-component .sn-select {\n width: auto;\n}\n\n.sn-component .w-full, .sn-component .toast-progress-bar {\n width: 100%;\n}\n\n.sn-component .w-100vw, .sn-component .sn-full-screen {\n width: 100vw;\n}\n\n.sn-component .fit-content {\n width: -moz-fit-content;\n width: fit-content;\n}\n\n.sn-component .w-0 {\n width: 0;\n}\n\n.sn-component .w-2 {\n width: 0.5rem;\n}\n\n.sn-component .w-3\\.5, .sn-component .sn-icon.sn-icon--small {\n width: 0.875rem;\n}\n\n.sn-component .w-4, .sn-component .sn-icon.sn-icon--mid {\n width: 1rem;\n}\n\n.sn-component .w-5, .sn-component .sn-icon {\n width: 1.25rem;\n}\n\n.sn-component .w-8 {\n width: 2rem;\n}\n\n.sn-component .w-25 {\n width: 6.25rem;\n}\n\n.sn-component .w-30 {\n width: 7.5rem;\n}\n\n.sn-component .w-55 {\n width: 13.75rem;\n}\n\n.sn-component .w-56, .sn-component .sn-dropdown-menu-list {\n width: 14rem;\n}\n\n.sn-component .w-70 {\n width: 17.5rem;\n}\n\n.sn-component .w-80 {\n width: 20rem;\n}\n\n.sn-component .w-103 {\n width: 25.75rem;\n}\n\n.sn-component .w-125 {\n width: 31.25rem;\n}\n\n.sn-component .w-160 {\n width: 40rem;\n}\n\n.sn-component .w-20px {\n width: 20px;\n}\n\n.sn-component .min-w-265px, .sn-component .sn-dropdown-menu-list {\n min-width: 265px;\n}\n\n.sn-component .min-w-20px {\n min-width: 20px;\n}\n\n.sn-component .min-w-0 {\n min-width: 0;\n}\n\n.sn-component .min-w-4 {\n min-width: 1rem;\n}\n\n.sn-component .min-w-5 {\n min-width: 1.25rem;\n}\n\n.sn-component .min-w-8, .sn-component .sn-icon-button {\n min-width: 2rem;\n}\n\n.sn-component .min-w-20 {\n min-width: 5rem;\n}\n\n.sn-component .min-w-40 {\n min-width: 10rem;\n}\n\n.sn-component .min-w-42 {\n min-width: 10.5rem;\n}\n\n.sn-component .min-w-55 {\n min-width: 13.75rem;\n}\n\n.sn-component .min-w-80 {\n min-width: 20rem;\n}\n\n.sn-component .min-w-max {\n min-width: max-content;\n}\n\n.sn-component .max-w-xs {\n max-width: 20rem;\n}\n\n.sn-component .max-w-md {\n max-width: 28rem;\n}\n\n.sn-component .max-w-40 {\n max-width: 10rem;\n}\n\n.sn-component .max-w-80 {\n max-width: 20rem;\n}\n\n.sn-component .max-w-125 {\n max-width: 31.25rem;\n}\n\n.sn-component .max-w-290px {\n max-width: 290px;\n}\n\n.sn-component .duration-150 {\n transition-duration: 150ms;\n}\n\n.sn-component .ease-out {\n transition-timing-function: ease-out;\n}\n\n.sn-component .transition-background {\n transition-property: background;\n}\n\n.sn-component .transition-transform {\n transition-property: transform;\n}\n\n.sn-component .cursor-pointer, .sn-component .sn-button, .sn-component .sn-dropdown-menu, .sn-component .sn-dropdown-menu-list-item, .sn-component .sn-select, .sn-component .sn-select-button, .sn-component .sn-select-list-option, .sn-component .sn-icon-button {\n cursor: pointer;\n}\n\n.sn-component .top-0, .sn-component .top-left-0, .sn-component .sn-full-screen {\n top: 0;\n}\n\n.sn-component .left-0, .sn-component .top-left-0, .sn-component .sn-full-screen {\n left: 0;\n}\n\n.sn-component .bottom-0 {\n bottom: 0;\n}\n\n.sn-component .bottom-6 {\n bottom: 1.5rem;\n}\n\n.sn-component .right-0 {\n right: 0;\n}\n\n.sn-component .right-6 {\n right: 1.5rem;\n}\n\n.sn-component .-top-10 {\n top: -2.5rem;\n}\n\n.sn-component .-left-51 {\n left: -12.75rem;\n}\n\n.sn-component .z-index-toast {\n z-index: 11000;\n}\n\n.sn-component .sn-button {\n font-size: 0.8125rem;\n padding: 0.609375rem;\n min-height: 1.8125rem;\n}\n\n.sn-component .sn-button.small {\n font-size: 0.7109375rem;\n padding: 0.40625rem 0.609375rem;\n}\n\n.sn-component .sn-button.contrast {\n background-color: var(--sn-stylekit-contrast-foreground-color);\n color: var(--sn-stylekit-contrast-background-color);\n}\n\n.sn-component .sn-button.neutral {\n background-color: var(--sn-stylekit-neutral-color);\n color: var(--sn-stylekit-neutral-contrast-color);\n}\n\n.sn-component .sn-button.warning {\n background-color: var(--sn-stylekit-warning-color);\n color: var(--sn-stylekit-warning-contrast-color);\n}\n\n.sn-component .sn-button.danger {\n background-color: var(--sn-stylekit-danger-color);\n color: var(--sn-stylekit-danger-contrast-color);\n}\n\n.sn-component .sn-button.success {\n background-color: var(--sn-stylekit-success-color);\n color: var(--sn-stylekit-success-contrast-color);\n}\n\n.sn-component .toast-progress-bar {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n.sn-component .toast-progress-bar__value {\n border-top-left-radius: 0;\n transition: width 0.1s;\n}\n\n.sn-component [data-reach-custom-checkbox-container] {\n margin: 0;\n}\n\n.sn-component.no-select,\n.sn-component .select-none {\n user-select: none;\n}\n\n/* Goes outside of .sn-component declaration, as following properties are global */\ninput,\ntextarea,\n[contenteditable] {\n caret-color: var(--sn-stylekit-editor-foreground-color);\n}\n\n.windows-web,\n.windows-desktop,\n.linux-web,\n.linux-desktop {\n scrollbar-width: thin;\n}\n\n.windows-web ::-webkit-scrollbar,\n.windows-desktop ::-webkit-scrollbar,\n.linux-web ::-webkit-scrollbar,\n.linux-desktop ::-webkit-scrollbar {\n width: 17px;\n height: 18px;\n border-left: none;\n}\n\n.windows-web ::-webkit-scrollbar-thumb,\n.windows-desktop ::-webkit-scrollbar-thumb,\n.linux-web ::-webkit-scrollbar-thumb,\n.linux-desktop ::-webkit-scrollbar-thumb {\n border: 4px solid rgba(0, 0, 0, 0);\n background-clip: padding-box;\n -webkit-border-radius: 10px;\n background-color: var(--sn-stylekit-scrollbar-thumb-color);\n -webkit-box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.05), inset 1px 1px 0px rgba(0, 0, 0, 0.05);\n}\n\n.windows-web ::-webkit-scrollbar-button,\n.windows-desktop ::-webkit-scrollbar-button,\n.linux-web ::-webkit-scrollbar-button,\n.linux-desktop ::-webkit-scrollbar-button {\n width: 0;\n height: 0;\n display: none;\n}\n\n.windows-web ::-webkit-scrollbar-corner,\n.windows-desktop ::-webkit-scrollbar-corner,\n.linux-web ::-webkit-scrollbar-corner,\n.linux-desktop ::-webkit-scrollbar-corner {\n background-color: transparent;\n}\n\n:root {\n --reach-listbox: 1;\n}\n\n[data-reach-listbox-popover] {\n display: block;\n position: absolute;\n min-width: -moz-fit-content;\n min-width: -webkit-min-content;\n min-width: min-content;\n padding: 0.25rem 0;\n background: white;\n outline: none;\n border: solid 1px rgba(0, 0, 0, 0.25);\n}\n\n[data-reach-listbox-popover]:focus-within {\n box-shadow: 0 0 4px Highlight;\n outline: -webkit-focus-ring-color auto 4px;\n}\n\n[data-reach-listbox-popover][hidden] {\n display: none;\n}\n\n[data-reach-listbox-list] {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n[data-reach-listbox-list]:focus {\n box-shadow: none;\n outline: none;\n}\n\n[data-reach-listbox-option] {\n display: block;\n margin: 0;\n padding: 0.25rem 0.5rem;\n white-space: nowrap;\n user-select: none;\n}\n\n[data-reach-listbox-option][data-current-nav] {\n background: #1672d4;\n color: white;\n}\n\n[data-reach-listbox-option][data-current-selected] {\n font-weight: bolder;\n}\n\n[data-reach-listbox-option][data-current-selected][data-confirming] {\n animation: flash 100ms;\n animation-iteration-count: 1;\n}\n\n[data-reach-listbox-option][aria-disabled=\"true\"] {\n opacity: 0.5;\n}\n\n[data-reach-listbox-button] {\n display: inline-flex;\n align-items: center;\n justify-content: space-between;\n padding: 1px 10px 2px;\n border: 1px solid;\n border-color: #d8d8d8 #d1d1d1 #bababa;\n cursor: default;\n user-select: none;\n}\n\n[data-reach-listbox-button][aria-disabled=\"true\"] {\n opacity: 0.5;\n}\n\n[data-reach-listbox-arrow] {\n margin-left: 0.5rem;\n display: block;\n font-size: 0.5em;\n}\n\n[data-reach-listbox-group-label] {\n display: block;\n margin: 0;\n padding: 0.25rem 0.5rem;\n white-space: nowrap;\n user-select: none;\n font-weight: bolder;\n}\n\n@keyframes flash {\n 0% {\n background: #1159a6;\n color: white;\n opacity: 1;\n }\n 50% {\n opacity: 0.5;\n background: inherit;\n color: inherit;\n }\n 100% {\n background: #1159a6;\n color: white;\n opacity: 1;\n }\n}\n\n",""]);const s=a},1424:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i),s=n(6251),l=a()(o());l.i(s.Z),l.push([e.id,"body,\nhtml {\n margin: 0;\n padding: 0;\n width: 100%;\n}\n\n.main {\n height: 100vh;\n}\n",""]);const c=l},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},7856:function(e){e.exports=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(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){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 r(e,o,i){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(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 i(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}var a=Object.hasOwnProperty,s=Object.setPrototypeOf,l=Object.isFrozen,c=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,d=Object.freeze,p=Object.seal,f=Object.create,h="undefined"!=typeof Reflect&&Reflect,m=h.apply,g=h.construct;m||(m=function(e,t,n){return e.apply(t,n)}),d||(d=function(e){return e}),p||(p=function(e){return e}),g||(g=function(e,t){return r(e,o(t))});var v,b=j(Array.prototype.forEach),y=j(Array.prototype.pop),w=j(Array.prototype.push),x=j(String.prototype.toLowerCase),k=j(String.prototype.toString),_=j(String.prototype.match),S=j(String.prototype.replace),E=j(String.prototype.indexOf),P=j(String.prototype.trim),C=j(RegExp.prototype.test),O=(v=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(v,t)});function j(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return m(e,t,r)}}function T(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:x,s&&s(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var a=n(i);a!==i&&(l(t)||(t[o]=a),i=a)}e[i]=!0}return e}function M(e){var t,n=f(null);for(t in e)!0===m(a,e,[t])&&(n[t]=e[t]);return n}function I(e,t){for(;null!==e;){var n=u(e,t);if(n){if(n.get)return j(n.get);if("function"==typeof n.value)return j(n.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var D=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),A=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),N=d(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),z=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=d(["#text"]),Z=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),B=d(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=d(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),K=p(/<%[\w\W]*|[\w\W]*%>/gm),V=p(/\${[\w\W]*}/gm),Y=p(/^data-[\-\w.\u00B7-\uFFFF]/),G=p(/^aria-[\-\w]+$/),q=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=p(/^(?:\w+script|data):/i),$=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=p(/^html$/i),Q=function(){return"undefined"==typeof window?null:window},ee=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),r=function(e){return t(e)};if(r.version="2.4.7",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,a=n.document,s=n.DocumentFragment,l=n.HTMLTemplateElement,c=n.Node,u=n.Element,p=n.NodeFilter,f=n.NamedNodeMap,h=void 0===f?n.NamedNodeMap||n.MozNamedAttrMap:f,m=n.HTMLFormElement,g=n.DOMParser,v=n.trustedTypes,j=u.prototype,te=I(j,"cloneNode"),ne=I(j,"nextSibling"),re=I(j,"childNodes"),oe=I(j,"parentNode");if("function"==typeof l){var ie=a.createElement("template");ie.content&&ie.content.ownerDocument&&(a=ie.content.ownerDocument)}var ae=ee(v,i),se=ae?ae.createHTML(""):"",le=a,ce=le.implementation,ue=le.createNodeIterator,de=le.createDocumentFragment,pe=le.getElementsByTagName,fe=i.importNode,he={};try{he=M(a).documentMode?a.documentMode:{}}catch(e){}var me={};r.isSupported="function"==typeof oe&&ce&&void 0!==ce.createHTMLDocument&&9!==he;var ge,ve,be=H,ye=K,we=V,xe=Y,ke=G,_e=X,Se=$,Ee=q,Pe=null,Ce=T({},[].concat(o(D),o(A),o(L),o(R),o(F))),Oe=null,je=T({},[].concat(o(Z),o(B),o(U),o(W))),Te=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Me=null,Ie=null,De=!0,Ae=!0,Le=!1,Ne=!0,Re=!1,ze=!1,Fe=!1,Ze=!1,Be=!1,Ue=!1,We=!1,He=!0,Ke=!1,Ve="user-content-",Ye=!0,Ge=!1,qe={},Xe=null,$e=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Je=null,Qe=T({},["audio","video","img","source","image","track"]),et=null,tt=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml",it=ot,at=!1,st=null,lt=T({},[nt,rt,ot],k),ct=["application/xhtml+xml","text/html"],ut="text/html",dt=null,pt=a.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},ht=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=M(t),ge=ge=-1===ct.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===ge?k:x,Pe="ALLOWED_TAGS"in t?T({},t.ALLOWED_TAGS,ve):Ce,Oe="ALLOWED_ATTR"in t?T({},t.ALLOWED_ATTR,ve):je,st="ALLOWED_NAMESPACES"in t?T({},t.ALLOWED_NAMESPACES,k):lt,et="ADD_URI_SAFE_ATTR"in t?T(M(tt),t.ADD_URI_SAFE_ATTR,ve):tt,Je="ADD_DATA_URI_TAGS"in t?T(M(Qe),t.ADD_DATA_URI_TAGS,ve):Qe,Xe="FORBID_CONTENTS"in t?T({},t.FORBID_CONTENTS,ve):$e,Me="FORBID_TAGS"in t?T({},t.FORBID_TAGS,ve):{},Ie="FORBID_ATTR"in t?T({},t.FORBID_ATTR,ve):{},qe="USE_PROFILES"in t&&t.USE_PROFILES,De=!1!==t.ALLOW_ARIA_ATTR,Ae=!1!==t.ALLOW_DATA_ATTR,Le=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Re=t.SAFE_FOR_TEMPLATES||!1,ze=t.WHOLE_DOCUMENT||!1,Be=t.RETURN_DOM||!1,Ue=t.RETURN_DOM_FRAGMENT||!1,We=t.RETURN_TRUSTED_TYPE||!1,Ze=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Ke=t.SANITIZE_NAMED_PROPS||!1,Ye=!1!==t.KEEP_CONTENT,Ge=t.IN_PLACE||!1,Ee=t.ALLOWED_URI_REGEXP||Ee,it=t.NAMESPACE||ot,Te=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(Ae=!1),Ue&&(Be=!0),qe&&(Pe=T({},o(F)),Oe=[],!0===qe.html&&(T(Pe,D),T(Oe,Z)),!0===qe.svg&&(T(Pe,A),T(Oe,B),T(Oe,W)),!0===qe.svgFilters&&(T(Pe,L),T(Oe,B),T(Oe,W)),!0===qe.mathMl&&(T(Pe,R),T(Oe,U),T(Oe,W))),t.ADD_TAGS&&(Pe===Ce&&(Pe=M(Pe)),T(Pe,t.ADD_TAGS,ve)),t.ADD_ATTR&&(Oe===je&&(Oe=M(Oe)),T(Oe,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&T(et,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Xe===$e&&(Xe=M(Xe)),T(Xe,t.FORBID_CONTENTS,ve)),Ye&&(Pe["#text"]=!0),ze&&T(Pe,["html","head","body"]),Pe.table&&(T(Pe,["tbody"]),delete Me.tbody),d&&d(t),dt=t)},mt=T({},["mi","mo","mn","ms","mtext"]),gt=T({},["foreignobject","desc","title","annotation-xml"]),vt=T({},["title","style","font","a","script"]),bt=T({},A);T(bt,L),T(bt,N);var yt=T({},R);T(yt,z);var wt=function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=x(e.tagName),r=x(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===ot?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||mt[r]):Boolean(bt[n]):e.namespaceURI===nt?t.namespaceURI===ot?"math"===n:t.namespaceURI===rt?"math"===n&&gt[r]:Boolean(yt[n]):e.namespaceURI===ot?!(t.namespaceURI===rt&&!gt[r])&&!(t.namespaceURI===nt&&!mt[r])&&!yt[n]&&(vt[n]||!bt[n]):!("application/xhtml+xml"!==ge||!st[e.namespaceURI]))},xt=function(e){w(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},kt=function(e,t){try{w(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){w(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Oe[e])if(Be||Ue)try{xt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},_t=function(e){var t,n;if(Ze)e="<remove></remove>"+e;else{var r=_(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&it===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(it===ot)try{t=(new g).parseFromString(o,ge)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?se:o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),it===ot?pe.call(t,ze?"html":"body")[0]:ze?t.documentElement:i},St=function(e){return ue.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},Et=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Pt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Ct=function(e,t,n){me[e]&&b(me[e],(function(e){e.call(r,t,n,dt)}))},Ot=function(e){var t;if(Ct("beforeSanitizeElements",e,null),Et(e))return xt(e),!0;if(C(/[\u0080-\uFFFF]/,e.nodeName))return xt(e),!0;var n=ve(e.nodeName);if(Ct("uponSanitizeElement",e,{tagName:n,allowedTags:Pe}),e.hasChildNodes()&&!Pt(e.firstElementChild)&&(!Pt(e.content)||!Pt(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return xt(e),!0;if("select"===n&&C(/<template/i,e.innerHTML))return xt(e),!0;if(!Pe[n]||Me[n]){if(!Me[n]&&Tt(n)){if(Te.tagNameCheck instanceof RegExp&&C(Te.tagNameCheck,n))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))return!1}if(Ye&&!Xe[n]){var o=oe(e)||e.parentNode,i=re(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(te(i[a],!0),ne(e))}return xt(e),!0}return e instanceof u&&!wt(e)?(xt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(Re&&3===e.nodeType&&(t=e.textContent,t=S(t,be," "),t=S(t,ye," "),t=S(t,we," "),e.textContent!==t&&(w(r.removed,{element:e.cloneNode()}),e.textContent=t)),Ct("afterSanitizeElements",e,null),!1):(xt(e),!0)},jt=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in a||n in pt))return!1;if(Ae&&!Ie[t]&&C(xe,t));else if(De&&C(ke,t));else if(!Oe[t]||Ie[t]){if(!(Tt(e)&&(Te.tagNameCheck instanceof RegExp&&C(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&C(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&C(Te.tagNameCheck,n)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))))return!1}else if(et[t]);else if(C(Ee,S(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Je[e])if(Le&&!C(_e,S(n,Se,"")));else if(n)return!1;return!0},Tt=function(e){return e.indexOf("-")>0},Mt=function(t){var n,o,i,a;Ct("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};for(a=s.length;a--;){var c=n=s[a],u=c.name,d=c.namespaceURI;if(o="value"===u?n.value:P(n.value),i=ve(u),l.attrName=i,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,Ct("uponSanitizeAttribute",t,l),o=l.attrValue,!l.forceKeepAttr&&(kt(u,t),l.keepAttr))if(Ne||!C(/\/>/i,o)){Re&&(o=S(o,be," "),o=S(o,ye," "),o=S(o,we," "));var p=ve(t.nodeName);if(jt(p,i,o)){if(!Ke||"id"!==i&&"name"!==i||(kt(u,t),o=Ve+o),ae&&"object"===e(v)&&"function"==typeof v.getAttributeType)if(d);else switch(v.getAttributeType(p,i)){case"TrustedHTML":o=ae.createHTML(o);break;case"TrustedScriptURL":o=ae.createScriptURL(o)}try{d?t.setAttributeNS(d,u,o):t.setAttribute(u,o),y(r.removed)}catch(e){}}}else kt(u,t)}Ct("afterSanitizeAttributes",t,null)}},It=function e(t){var n,r=St(t);for(Ct("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ct("uponSanitizeShadowNode",n,null),Ot(n)||(n.content instanceof s&&e(n.content),Mt(n));Ct("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t){var o,a,l,u,d,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((at=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Pt(t)){if("function"!=typeof t.toString)throw O("toString is not a function");if("string"!=typeof(t=t.toString()))throw O("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(Pt(t))return n.toStaticHTML(t.outerHTML)}return t}if(Fe||ht(p),r.removed=[],"string"==typeof t&&(Ge=!1),Ge){if(t.nodeName){var f=ve(t.nodeName);if(!Pe[f]||Me[f])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(a=(o=_t("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!Be&&!Re&&!ze&&-1===t.indexOf("<"))return ae&&We?ae.createHTML(t):t;if(!(o=_t(t)))return Be?null:We?se:""}o&&Ze&&xt(o.firstChild);for(var h=St(Ge?t:o);l=h.nextNode();)3===l.nodeType&&l===u||Ot(l)||(l.content instanceof s&&It(l.content),Mt(l),u=l);if(u=null,Ge)return t;if(Be){if(Ue)for(d=de.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return(Oe.shadowroot||Oe.shadowrootmod)&&(d=fe.call(i,d,!0)),d}var m=ze?o.outerHTML:o.innerHTML;return ze&&Pe["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&C(J,o.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+m),Re&&(m=S(m,be," "),m=S(m,ye," "),m=S(m,we," ")),ae&&We?ae.createHTML(m):m},r.setConfig=function(e){ht(e),Fe=!0},r.clearConfig=function(){dt=null,Fe=!1},r.isValidAttribute=function(e,t,n){dt||ht({});var r=ve(e),o=ve(t);return jt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(me[e]=me[e]||[],w(me[e],t))},r.removeHook=function(e){if(me[e])return y(me[e])},r.removeHooks=function(e){me[e]&&(me[e]=[])},r.removeAllHooks=function(){me={}},r}()}()},6486:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,c=128,u=1/0,d=9007199254740991,p=NaN,f=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",b="[object Date]",y="[object Error]",w="[object Function]",x="[object GeneratorFunction]",k="[object Map]",_="[object Number]",S="[object Object]",E="[object Promise]",P="[object RegExp]",C="[object Set]",O="[object String]",j="[object Symbol]",T="[object WeakMap]",M="[object ArrayBuffer]",I="[object DataView]",D="[object Float32Array]",A="[object Float64Array]",L="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",z="[object Uint8Array]",F="[object Uint8ClampedArray]",Z="[object Uint16Array]",B="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,Y=RegExp(K.source),G=RegExp(V.source),q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,we=/['\n\r\u2028\u2029\\]/g,xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ee="["+Se+"]",Pe="["+xe+"]",Ce="\\d+",Oe="["+ke+"]",je="[^\\ud800-\\udfff"+Se+Ce+"\\u2700-\\u27bf"+ke+_e+"]",Te="\\ud83c[\\udffb-\\udfff]",Me="[^\\ud800-\\udfff]",Ie="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Ae="["+_e+"]",Le="(?:"+Oe+"|"+je+")",Ne="(?:"+Ae+"|"+je+")",Re="(?:['’](?:d|ll|m|re|s|t|ve))?",ze="(?:['’](?:D|LL|M|RE|S|T|VE))?",Fe="(?:"+Pe+"|"+Te+")?",Ze="[\\ufe0e\\ufe0f]?",Be=Ze+Fe+"(?:\\u200d(?:"+[Me,Ie,De].join("|")+")"+Ze+Fe+")*",Ue="(?:"+["[\\u2700-\\u27bf]",Ie,De].join("|")+")"+Be,We="(?:"+[Me+Pe+"?",Pe,Ie,De,"[\\ud800-\\udfff]"].join("|")+")",He=RegExp("['’]","g"),Ke=RegExp(Pe,"g"),Ve=RegExp(Te+"(?="+Te+")|"+We+Be,"g"),Ye=RegExp([Ae+"?"+Oe+"+"+Re+"(?="+[Ee,Ae,"$"].join("|")+")",Ne+"+"+ze+"(?="+[Ee,Ae+Le,"$"].join("|")+")",Ae+"?"+Le+"+"+Re,Ae+"+"+ze,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,Ue].join("|"),"g"),Ge=RegExp("[\\u200d\\ud800-\\udfff"+xe+"\\ufe0e\\ufe0f]"),qe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$e=-1,Je={};Je[D]=Je[A]=Je[L]=Je[N]=Je[R]=Je[z]=Je[F]=Je[Z]=Je[B]=!0,Je[m]=Je[g]=Je[M]=Je[v]=Je[I]=Je[b]=Je[y]=Je[w]=Je[k]=Je[_]=Je[S]=Je[P]=Je[C]=Je[O]=Je[T]=!1;var Qe={};Qe[m]=Qe[g]=Qe[M]=Qe[I]=Qe[v]=Qe[b]=Qe[D]=Qe[A]=Qe[L]=Qe[N]=Qe[R]=Qe[k]=Qe[_]=Qe[S]=Qe[P]=Qe[C]=Qe[O]=Qe[j]=Qe[z]=Qe[F]=Qe[Z]=Qe[B]=!0,Qe[y]=Qe[w]=Qe[T]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,lt=st&&st.exports===at,ct=lt&&rt.process,ut=function(){try{return st&&st.require&&st.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),dt=ut&&ut.isArrayBuffer,pt=ut&&ut.isDate,ft=ut&&ut.isMap,ht=ut&&ut.isRegExp,mt=ut&&ut.isSet,gt=ut&&ut.isTypedArray;function vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function bt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function yt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function kt(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}function _t(e,t){return!(null==e||!e.length)&&Dt(e,t,0)>-1}function St(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Et(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Pt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Ct(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ot(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function jt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Tt=Rt("length");function Mt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function It(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Dt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):It(e,Lt,n)}function At(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Lt(e){return e!=e}function Nt(e,t){var n=null==e?0:e.length;return n?Zt(e,t)/n:p}function Rt(e){return function(t){return null==t?o:t[e]}}function zt(e){return function(t){return null==e?o:e[t]}}function Ft(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Zt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Bt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ut(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Wt(e){return function(t){return e(t)}}function Ht(e,t){return Et(t,(function(t){return e[t]}))}function Kt(e,t){return e.has(t)}function Vt(e,t){for(var n=-1,r=e.length;++n<r&&Dt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length;n--&&Dt(t,e[n],0)>-1;);return n}function Gt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var qt=zt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Xt=zt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function $t(e){return"\\"+et[e]}function Jt(e){return Ge.test(e)}function Qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Jt(e)?function(e){for(var t=Ve.lastIndex=0;Ve.test(e);)++t;return t}(e):Tt(e)}function an(e){return Jt(e)?function(e){return e.match(Ve)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var ln=zt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),cn=function e(t){var n,r=(t=null==t?it:cn.defaults(it.Object(),t,cn.pick(it,Xe))).Array,oe=t.Date,xe=t.Error,ke=t.Function,_e=t.Math,Se=t.Object,Ee=t.RegExp,Pe=t.String,Ce=t.TypeError,Oe=r.prototype,je=ke.prototype,Te=Se.prototype,Me=t["__core-js_shared__"],Ie=je.toString,De=Te.hasOwnProperty,Ae=0,Le=(n=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ne=Te.toString,Re=Ie.call(Se),ze=it._,Fe=Ee("^"+Ie.call(De).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=lt?t.Buffer:o,Be=t.Symbol,Ue=t.Uint8Array,We=Ze?Ze.allocUnsafe:o,Ve=en(Se.getPrototypeOf,Se),Ge=Se.create,et=Te.propertyIsEnumerable,rt=Oe.splice,ot=Be?Be.isConcatSpreadable:o,at=Be?Be.iterator:o,st=Be?Be.toStringTag:o,ct=function(){try{var e=ui(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,Tt=oe&&oe.now!==it.Date.now&&oe.now,zt=t.setTimeout!==it.setTimeout&&t.setTimeout,un=_e.ceil,dn=_e.floor,pn=Se.getOwnPropertySymbols,fn=Ze?Ze.isBuffer:o,hn=t.isFinite,mn=Oe.join,gn=en(Se.keys,Se),vn=_e.max,bn=_e.min,yn=oe.now,wn=t.parseInt,xn=_e.random,kn=Oe.reverse,_n=ui(t,"DataView"),Sn=ui(t,"Map"),En=ui(t,"Promise"),Pn=ui(t,"Set"),Cn=ui(t,"WeakMap"),On=ui(Se,"create"),jn=Cn&&new Cn,Tn={},Mn=Fi(_n),In=Fi(Sn),Dn=Fi(En),An=Fi(Pn),Ln=Fi(Cn),Nn=Be?Be.prototype:o,Rn=Nn?Nn.valueOf:o,zn=Nn?Nn.toString:o;function Fn(e){if(ns(e)&&!Ka(e)&&!(e instanceof Wn)){if(e instanceof Un)return e;if(De.call(e,"__wrapped__"))return Zi(e)}return new Un(e)}var Zn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Bn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Kn(e);this.size=t.size}function qn(e,t){var n=Ka(e),r=!n&&Ha(e),o=!n&&!r&&qa(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Bt(e.length,Pe):[],l=s.length;for(var c in e)!t&&!De.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,l))||s.push(c);return s}function Xn(e){var t=e.length;return t?e[Vr(0,t-1)]:o}function $n(e,t){return Ai(Oo(e),ar(t,0,e.length))}function Jn(e){return Ai(Oo(e))}function Qn(e,t,n){(n!==o&&!Ba(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];De.call(e,t)&&Ba(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function nr(e,t,n,r){return dr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&jo(t,Is(t),e)}function or(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Cs(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var d=Ka(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&De.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Oo(e,s)}else{var p=fi(e),f=p==w||p==x;if(qa(e))return ko(e,l);if(p==S||p==m||f&&!i){if(s=c||f?{}:mi(e),!l)return c?function(e,t){return jo(e,pi(e),t)}(e,function(e,t){return e&&jo(t,Ds(t),e)}(s,e)):function(e,t){return jo(e,di(e),t)}(e,rr(s,e))}else{if(!Qe[p])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case M:return _o(e);case v:case b:return new o(+e);case I:return function(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case A:case L:case N:case R:case z:case F:case Z:case B:return So(e,n);case k:return new o;case _:case O:return new o(e);case P:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new o;case j:return r=e,Rn?Se(Rn.call(r)):{}}}(e,p,l)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,o){s.set(o,sr(r,t,n,o,e,a))}));var g=d?o:(u?c?ri:ni:c?Ds:Is)(e);return yt(g||e,(function(r,o){g&&(r=e[o=r]),er(s,o,sr(r,t,n,o,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Ce(i);return Ti((function(){e.apply(o,n)}),t)}function ur(e,t,n,r){var o=-1,i=_t,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Et(t,Wt(n))),r?(i=St,a=!1):t.length>=200&&(i=Kt,a=!1,t=new Yn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Fn.templateSettings={escape:q,evaluate:X,interpolate:$,variable:"",imports:{_:Fn}},Fn.prototype=Bn.prototype,Fn.prototype.constructor=Fn,Un.prototype=Zn(Bn.prototype),Un.prototype.constructor=Un,Wn.prototype=Zn(Bn.prototype),Wn.prototype.constructor=Wn,Hn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===a?o:n}return De.call(t,e)?t[e]:o},Hn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==o:De.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===o?a:t,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},Kn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},Kn.prototype.has=function(e){return tr(this.__data__,e)>-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Sn||Kn),string:new Hn}},Vn.prototype.delete=function(e){var t=li(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return li(this,e).get(e)},Vn.prototype.has=function(e){return li(this,e).has(e)},Vn.prototype.set=function(e,t){var n=li(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(e,t),this.size=n.size,this};var dr=Io(yr),pr=Io(wr,!0);function fr(e,t){var n=!0;return dr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s==s&&!cs(s):n(s,l)))var l=s,c=a}return c}function mr(e,t){var n=[];return dr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function gr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=gi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?gr(s,t-1,n,r,o):Pt(o,s):r||(o[o.length]=s)}return o}var vr=Do(),br=Do(!0);function yr(e,t){return e&&vr(e,t,Is)}function wr(e,t){return e&&br(e,t,Is)}function xr(e,t){return kt(t,(function(t){return Ja(e[t])}))}function kr(e,t){for(var n=0,r=(t=bo(t,e)).length;null!=e&&n<r;)e=e[zi(t[n++])];return n&&n==r?e:o}function _r(e,t,n){var r=t(e);return Ka(e)?r:Pt(r,n(e))}function Sr(e){return null==e?e===o?"[object Undefined]":"[object Null]":st&&st in Se(e)?function(e){var t=De.call(e,st),n=e[st];try{e[st]=o;var r=!0}catch(e){}var i=Ne.call(e);return r&&(t?e[st]=n:delete e[st]),i}(e):function(e){return Ne.call(e)}(e)}function Er(e,t){return e>t}function Pr(e,t){return null!=e&&De.call(e,t)}function Cr(e,t){return null!=e&&t in Se(e)}function Or(e,t,n){for(var i=n?St:_t,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Et(p,Wt(t))),u=bn(p.length,u),c[l]=!n&&(t||a>=120&&p.length>=120)?new Yn(l&&p):o}p=e[0];var f=-1,h=c[0];e:for(;++f<a&&d.length<u;){var m=p[f],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?Kt(h,g):i(d,g,n))){for(l=s;--l;){var v=c[l];if(!(v?Kt(v,g):i(e[l],g,n)))continue e}h&&h.push(g),d.push(m)}}return d}function jr(e,t,n){var r=null==(e=Pi(e,t=bo(t,e)))?e:e[zi($i(t))];return null==r?o:vt(r,e,n)}function Tr(e){return ns(e)&&Sr(e)==m}function Mr(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Ka(e),l=Ka(t),c=s?g:fi(e),u=l?g:fi(t),d=(c=c==m?S:c)==S,p=(u=u==m?S:u)==S,f=c==u;if(f&&qa(e)){if(!qa(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new Gn),s||us(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case v:case b:case _:return Ba(+e,+t);case y:return e.name==t.name&&e.message==t.message;case P:case O:return e==t+"";case k:var s=Qt;case C:var l=1&r;if(s||(s=nn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ei(s(e),s(t),r,o,i,a);return a.delete(e),u;case j:if(Rn)return Rn.call(e)==Rn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var h=d&&De.call(e,"__wrapped__"),w=p&&De.call(t,"__wrapped__");if(h||w){var x=h?e.value():e,E=w?t.value():t;return a||(a=new Gn),i(x,E,n,r,a)}}return!!f&&(a||(a=new Gn),function(e,t,n,r,i,a){var s=1&n,l=ni(e),c=l.length;if(c!=ni(t).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in t:De.call(t,d)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<c;){var g=e[d=l[u]],v=t[d];if(r)var b=s?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(!(b===o?g===v||i(g,v,n,r,a):b)){h=!1;break}m||(m="constructor"==d)}if(h&&!m){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Mr,i))}function Ir(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Se(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var p=new Gn;if(r)var f=r(u,d,c,e,t,p);if(!(f===o?Mr(d,u,3,r,p):f))return!1}}return!0}function Dr(e){return!(!ts(e)||(t=e,Le&&Le in t))&&(Ja(e)?Fe:me).test(Fi(e));var t}function Ar(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Ka(e)?Fr(e[0],e[1]):zr(e):fl(e)}function Lr(e){if(!ki(e))return gn(e);var t=[];for(var n in Se(e))De.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Nr(e,t){return e<t}function Rr(e,t){var n=-1,o=Ya(e)?r(e.length):[];return dr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function zr(e){var t=ci(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(n){return n===e||Ir(n,e,t)}}function Fr(e,t){return yi(e)&&_i(t)?Si(zi(e),t):function(n){var r=Cs(n,e);return r===o&&r===t?Os(n,e):Mr(t,r,3)}}function Zr(e,t,n,r,i){e!==t&&vr(t,(function(a,s){if(i||(i=new Gn),ts(a))!function(e,t,n,r,i,a,s){var l=Oi(e,n),c=Oi(t,n),u=s.get(c);if(u)Qn(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):o,p=d===o;if(p){var f=Ka(c),h=!f&&qa(c),m=!f&&!h&&us(c);d=c,f||h||m?Ka(l)?d=l:Ga(l)?d=Oo(l):h?(p=!1,d=ko(c,!0)):m?(p=!1,d=So(c,!0)):d=[]:is(c)||Ha(c)?(d=l,Ha(l)?d=bs(l):ts(l)&&!Ja(l)||(d=mi(c))):p=!1}p&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),Qn(e,n,d)}}(e,t,s,n,Zr,r,i);else{var l=r?r(Oi(e,s),a,s+"",e,t,i):o;l===o&&(l=a),Qn(e,s,l)}}),Ds)}function Br(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?Et(t,(function(e){return Ka(e)?function(t){return kr(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;t=Et(t,Wt(si()));var o=Rr(e,(function(e,n,o){var i=Et(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=Eo(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=kr(e,a);n(s,a)&&$r(i,bo(a,e),s)}return i}function Hr(e,t,n,r){var o=r?At:Dt,i=-1,a=t.length,s=e;for(e===t&&(t=Oo(t)),n&&(s=Et(e,Wt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&rt.call(s,l,1),rt.call(e,l,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?rt.call(e,o,1):co(e,o)}}return e}function Vr(e,t){return e+dn(xn()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=dn(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Mi(Ei(e,t,ol),e+"")}function qr(e){return Xn(Bs(e))}function Xr(e,t){var n=Bs(e);return Ai(n,ar(t,0,n.length))}function $r(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=bo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=zi(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):o)===o&&(u=ts(d)?d:vi(t[i+1])?[]:{})}er(l,c,u),l=l[c]}return e}var Jr=jn?function(e,t){return jn.set(e,t),e}:ol,Qr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:ol;function eo(e){return Ai(Bs(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return dr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,ol,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=cs(t),u=t===o;i<a;){var d=dn((i+a)/2),p=n(e[d]),f=p!==o,h=null===p,m=p==p,g=cs(p);if(s)var v=r||m;else v=u?m&&(r||f):l?m&&f&&(r||!h):c?m&&f&&!h&&(r||!g):!h&&!g&&(r?p<=t:p<t);v?i=d+1:a=d}return bn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ba(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:cs(e)?p:+e}function so(e){if("string"==typeof e)return e;if(Ka(e))return Et(e,so)+"";if(cs(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lo(e,t,n){var r=-1,o=_t,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=St;else if(i>=200){var c=t?null:Go(e);if(c)return nn(c);a=!1,o=Kt,l=new Yn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function co(e,t){return null==(e=Pi(e,t=bo(t,e)))||delete e[zi($i(t))]}function uo(e,t,n,r){return $r(e,t,n(kr(e,t)),r)}function po(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function fo(e,t){var n=e;return n instanceof Wn&&(n=n.value()),Ct(t,(function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))}),n)}function ho(e,t,n){var o=e.length;if(o<2)return o?lo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=ur(a[i]||s,e[l],t,n));return lo(gr(a,1),t,n)}function mo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function go(e){return Ga(e)?e:[]}function vo(e){return"function"==typeof e?e:ol}function bo(e,t){return Ka(e)?e:yi(e,t)?[e]:Ri(ys(e))}var yo=Gr;function wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var xo=ut||function(e){return it.clearTimeout(e)};function ko(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function _o(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function So(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Eo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=cs(e),s=t!==o,l=null===t,c=t==t,u=cs(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}function Po(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,c=t.length,u=vn(a-s,0),d=r(c+u),p=!o;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function Co(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=vn(a-l,0),p=r(d+u),f=!o;++i<d;)p[i]=e[i];for(var h=i;++c<u;)p[h+c]=t[c];for(;++s<l;)(f||i<a)&&(p[h+n[s]]=e[i++]);return p}function Oo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function jo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?or(n,l,c):er(n,l,c)}return n}function To(e,t){return function(n,r){var o=Ka(n)?bt:nr,i=t?t():{};return o(n,e,si(r,2),i)}}function Mo(e){return Gr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&bi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Se(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Io(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Se(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Do(e){return function(t,n,r){for(var o=-1,i=Se(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function Ao(e){return function(t){var n=Jt(t=ys(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?wo(n,1).join(""):t.slice(1);return r[e]()+i}}function Lo(e){return function(t){return Ct(Js(Hs(t).replace(He,"")),e,"")}}function No(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Zn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Ro(e){return function(t,n,r){var i=Se(t);if(!Ya(t)){var a=si(n,3);t=Is(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function zo(e){return ti((function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ce(i);if(a&&!l&&"wrapper"==ii(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=ii(s=t[r]),u="wrapper"==c?oi(s):o;l=u&&wi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ii(u[0])].apply(l,u[3]):1==s.length&&wi(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ka(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Fo(e,t,n,i,a,s,l,u,d,p){var f=t&c,h=1&t,m=2&t,g=24&t,v=512&t,b=m?o:No(e);return function o(){for(var c=arguments.length,y=r(c),w=c;w--;)y[w]=arguments[w];if(g)var x=ai(o),k=Gt(y,x);if(i&&(y=Po(y,i,a,g)),s&&(y=Co(y,s,l,g)),c-=k,g&&c<p){var _=tn(y,x);return Vo(e,t,Fo,o.placeholder,n,y,_,u,d,p-c)}var S=h?n:this,E=m?S[e]:e;return c=y.length,u?y=Ci(y,u):v&&c>1&&y.reverse(),f&&d<c&&(y.length=d),this&&this!==it&&this instanceof o&&(E=b||No(E)),E.apply(S,y)}}function Zo(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Bo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function Uo(e){return ti((function(t){return t=Et(t,Wt(si())),Gr((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Wo(e,t){var n=(t=t===o?" ":so(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,un(e/on(t)));return Jt(t)?wo(an(r),0,e).join(""):r.slice(0,e)}function Ho(e){return function(t,n,i){return i&&"number"!=typeof i&&bi(t,n,i)&&(n=i=o),t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n,o){for(var i=-1,a=vn(un((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:hs(i),e)}}function Ko(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Vo(e,t,n,r,i,a,s,c,u,d){var p=8&t;t|=p?l:64,4&(t&=~(p?64:l))||(t&=-4);var f=[e,t,i,p?a:o,p?s:o,p?o:a,p?o:s,c,u,d],h=n.apply(o,f);return wi(e)&&ji(h,f),h.placeholder=r,Ii(h,e,t)}function Yo(e){var t=_e[e];return function(e,n){if(e=vs(e),(n=null==n?0:bn(ms(n),292))&&hn(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Go=Pn&&1/nn(new Pn([,-0]))[1]==u?function(e){return new Pn(e)}:cl;function qo(e){return function(t){var n=fi(t);return n==k?Qt(t):n==C?rn(t):function(e,t){return Et(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xo(e,t,n,a,u,d,p,f){var h=2&t;if(!h&&"function"!=typeof e)throw new Ce(i);var m=a?a.length:0;if(m||(t&=-97,a=u=o),p=p===o?p:vn(ms(p),0),f=f===o?f:ms(f),m-=u?u.length:0,64&t){var g=a,v=u;a=u=o}var b=h?o:oi(e),y=[e,t,n,a,u,g,v,d,p,f];if(b&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Po(u,l,t[4]):l,e[4]=u?tn(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Co(u,l,t[6]):l,e[6]=u?tn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&c&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(y,b),e=y[0],t=y[1],n=y[2],a=y[3],u=y[4],!(f=y[9]=y[9]===o?h?0:e.length:vn(y[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=No(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=ai(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:tn(l,u);return(s-=d.length)<n?Vo(e,t,Fo,a.placeholder,o,l,d,o,o,n-s):vt(this&&this!==it&&this instanceof a?i:e,this,l)}}(e,t,f):t!=l&&33!=t||u.length?Fo.apply(o,y):function(e,t,n,o){var i=1&t,a=No(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=r(u+l),p=this&&this!==it&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return vt(p,i?n:this,d)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=No(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ii((b?Jr:ji)(w,y),e,t)}function $o(e,t,n,r){return e===o||Ba(e,Te[n])&&!De.call(r,n)?t:e}function Jo(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Zr(e,t,o,Jo,a),a.delete(t)),e}function Qo(e){return is(e)?o:e}function ei(e,t,n,r,i,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++p<l;){var m=e[p],g=t[p];if(r)var v=s?r(g,m,p,t,e,a):r(m,g,p,e,t,a);if(v!==o){if(v)continue;f=!1;break}if(h){if(!jt(t,(function(e,t){if(!Kt(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){f=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function ti(e){return Mi(Ei(e,o,Vi),e+"")}function ni(e){return _r(e,Is,di)}function ri(e){return _r(e,Ds,pi)}var oi=jn?function(e){return jn.get(e)}:cl;function ii(e){for(var t=e.name+"",n=Tn[t],r=De.call(Tn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(De.call(Fn,"placeholder")?Fn:e).placeholder}function si(){var e=Fn.iteratee||il;return e=e===il?Ar:e,arguments.length?e(arguments[0],arguments[1]):e}function li(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ci(e){for(var t=Is(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,_i(o)]}return t}function ui(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Dr(n)?n:o}var di=pn?function(e){return null==e?[]:(e=Se(e),kt(pn(e),(function(t){return et.call(e,t)})))}:gl,pi=pn?function(e){for(var t=[];e;)Pt(t,di(e)),e=Ve(e);return t}:gl,fi=Sr;function hi(e,t,n){for(var r=-1,o=(t=bo(t,e)).length,i=!1;++r<o;){var a=zi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&vi(a,o)&&(Ka(e)||Ha(e))}function mi(e){return"function"!=typeof e.constructor||ki(e)?{}:Zn(Ve(e))}function gi(e){return Ka(e)||Ha(e)||!!(ot&&e&&e[ot])}function vi(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function bi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&vi(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function yi(e,t){if(Ka(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||Q.test(e)||!J.test(e)||null!=t&&e in Se(t)}function wi(e){var t=ii(e),n=Fn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(_n&&fi(new _n(new ArrayBuffer(1)))!=I||Sn&&fi(new Sn)!=k||En&&fi(En.resolve())!=E||Pn&&fi(new Pn)!=C||Cn&&fi(new Cn)!=T)&&(fi=function(e){var t=Sr(e),n=t==S?e.constructor:o,r=n?Fi(n):"";if(r)switch(r){case Mn:return I;case In:return k;case Dn:return E;case An:return C;case Ln:return T}return t});var xi=Me?Ja:vl;function ki(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Te)}function _i(e){return e==e&&!ts(e)}function Si(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Se(n))}}function Ei(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),vt(e,this,l)}}function Pi(e,t){return t.length<2?e:kr(e,to(t,0,-1))}function Ci(e,t){for(var n=e.length,r=bn(t.length,n),i=Oo(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ji=Di(Jr),Ti=zt||function(e,t){return it.setTimeout(e,t)},Mi=Di(Qr);function Ii(e,t,n){var r=t+"";return Mi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return yt(h,(function(n){var r="_."+n[0];t&n[1]&&!_t(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Di(e){var t=0,n=0;return function(){var r=yn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ai(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Vr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Li,Ni,Ri=(Li=La((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(ue,"$1"):n||e)})),t}),(function(e){return 500===Ni.size&&Ni.clear(),e})),Ni=Li.cache,Li);function zi(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return Ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Zi(e){if(e instanceof Wn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Gr((function(e,t){return Ga(e)?ur(e,gr(t,1,Ga,!0)):[]})),Ui=Gr((function(e,t){var n=$i(t);return Ga(n)&&(n=o),Ga(e)?ur(e,gr(t,1,Ga,!0),si(n,2)):[]})),Wi=Gr((function(e,t){var n=$i(t);return Ga(n)&&(n=o),Ga(e)?ur(e,gr(t,1,Ga,!0),o,n):[]}));function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=vn(r+o,0)),It(e,si(t,3),o)}function Ki(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ms(n),i=n<0?vn(r+i,0):bn(i,r-1)),It(e,si(t,3),i,!0)}function Vi(e){return null!=e&&e.length?gr(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Gi=Gr((function(e){var t=Et(e,go);return t.length&&t[0]===e[0]?Or(t):[]})),qi=Gr((function(e){var t=$i(e),n=Et(e,go);return t===$i(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Or(n,si(t,2)):[]})),Xi=Gr((function(e){var t=$i(e),n=Et(e,go);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Or(n,o,t):[]}));function $i(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ji=Gr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Kr(e,Et(t,(function(e){return vi(e,n)?+e:e})).sort(Eo)),r}));function ta(e){return null==e?e:kn.call(e)}var na=Gr((function(e){return lo(gr(e,1,Ga,!0))})),ra=Gr((function(e){var t=$i(e);return Ga(t)&&(t=o),lo(gr(e,1,Ga,!0),si(t,2))})),oa=Gr((function(e){var t=$i(e);return t="function"==typeof t?t:o,lo(gr(e,1,Ga,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=kt(e,(function(e){if(Ga(e))return t=vn(e.length,t),!0})),Bt(t,(function(t){return Et(e,Rt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:Et(n,(function(e){return vt(t,o,e)}))}var sa=Gr((function(e,t){return Ga(e)?ur(e,t):[]})),la=Gr((function(e){return ho(kt(e,Ga))})),ca=Gr((function(e){var t=$i(e);return Ga(t)&&(t=o),ho(kt(e,Ga),si(t,2))})),ua=Gr((function(e){var t=$i(e);return t="function"==typeof t?t:o,ho(kt(e,Ga),o,t)})),da=Gr(ia),pa=Gr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function fa(e){var t=Fn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ga=To((function(e,t,n){De.call(e,n)?++e[n]:or(e,n,1)})),va=Ro(Hi),ba=Ro(Ki);function ya(e,t){return(Ka(e)?yt:dr)(e,si(t,3))}function wa(e,t){return(Ka(e)?wt:pr)(e,si(t,3))}var xa=To((function(e,t,n){De.call(e,n)?e[n].push(t):or(e,n,[t])})),ka=Gr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ya(e)?r(e.length):[];return dr(e,(function(e){a[++o]=i?vt(t,e,n):jr(e,t,n)})),a})),_a=To((function(e,t,n){or(e,n,t)}));function Sa(e,t){return(Ka(e)?Et:Rr)(e,si(t,3))}var Ea=To((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Pa=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&bi(e,t[0],t[1])?t=[]:n>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,gr(t,1),[])})),Ca=Tt||function(){return it.Date.now()};function Oa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Xo(e,c,o,o,o,o,t)}function ja(e,t){var n;if("function"!=typeof t)throw new Ce(i);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ta=Gr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(Ta));r|=l}return Xo(e,r,t,n,o)})),Ma=Gr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Ma));r|=l}return Xo(t,r,e,n,o)}));function Ia(e,t,n){var r,a,s,l,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ce(i);function m(t){var n=r,i=a;return r=a=o,d=t,l=e.apply(i,n)}function g(e){return d=e,c=Ti(b,t),p?m(e):l}function v(e){var n=e-u;return u===o||n>=t||n<0||f&&e-d>=s}function b(){var e=Ca();if(v(e))return y(e);c=Ti(b,function(e){var n=t-(e-u);return f?bn(n,s-(e-d)):n}(e))}function y(e){return c=o,h&&r?m(e):(r=a=o,l)}function w(){var e=Ca(),n=v(e);if(r=arguments,a=this,u=e,n){if(c===o)return g(u);if(f)return xo(c),c=Ti(b,t),m(u)}return c===o&&(c=Ti(b,t)),l}return t=vs(t)||0,ts(n)&&(p=!!n.leading,s=(f="maxWait"in n)?vn(vs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),w.cancel=function(){c!==o&&xo(c),d=0,r=u=a=c=o},w.flush=function(){return c===o?l:y(Ca())},w}var Da=Gr((function(e,t){return cr(e,1,t)})),Aa=Gr((function(e,t,n){return cr(e,vs(t)||0,n)}));function La(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(La.Cache||Vn),n}function Na(e){if("function"!=typeof e)throw new Ce(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}La.Cache=Vn;var Ra=yo((function(e,t){var n=(t=1==t.length&&Ka(t[0])?Et(t[0],Wt(si())):Et(gr(t,1),Wt(si()))).length;return Gr((function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return vt(e,this,r)}))})),za=Gr((function(e,t){var n=tn(t,ai(za));return Xo(e,l,o,t,n)})),Fa=Gr((function(e,t){var n=tn(t,ai(Fa));return Xo(e,64,o,t,n)})),Za=ti((function(e,t){return Xo(e,256,o,o,o,t)}));function Ba(e,t){return e===t||e!=e&&t!=t}var Ua=Ko(Er),Wa=Ko((function(e,t){return e>=t})),Ha=Tr(function(){return arguments}())?Tr:function(e){return ns(e)&&De.call(e,"callee")&&!et.call(e,"callee")},Ka=r.isArray,Va=dt?Wt(dt):function(e){return ns(e)&&Sr(e)==M};function Ya(e){return null!=e&&es(e.length)&&!Ja(e)}function Ga(e){return ns(e)&&Ya(e)}var qa=fn||vl,Xa=pt?Wt(pt):function(e){return ns(e)&&Sr(e)==b};function $a(e){if(!ns(e))return!1;var t=Sr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Ja(e){if(!ts(e))return!1;var t=Sr(e);return t==w||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=ft?Wt(ft):function(e){return ns(e)&&fi(e)==k};function os(e){return"number"==typeof e||ns(e)&&Sr(e)==_}function is(e){if(!ns(e)||Sr(e)!=S)return!1;var t=Ve(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ie.call(n)==Re}var as=ht?Wt(ht):function(e){return ns(e)&&Sr(e)==P},ss=mt?Wt(mt):function(e){return ns(e)&&fi(e)==C};function ls(e){return"string"==typeof e||!Ka(e)&&ns(e)&&Sr(e)==O}function cs(e){return"symbol"==typeof e||ns(e)&&Sr(e)==j}var us=gt?Wt(gt):function(e){return ns(e)&&es(e.length)&&!!Je[Sr(e)]},ds=Ko(Nr),ps=Ko((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ya(e))return ls(e)?an(e):Oo(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=fi(e);return(t==k?Qt:t==C?nn:Bs)(e)}function hs(e){return e?(e=vs(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?ar(ms(e),0,f):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return p;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ut(e);var n=he.test(e);return n||ge.test(e)?nt(e.slice(2),n?2:8):fe.test(e)?p:+e}function bs(e){return jo(e,Ds(e))}function ys(e){return null==e?"":so(e)}var ws=Mo((function(e,t){if(ki(t)||Ya(t))jo(t,Is(t),e);else for(var n in t)De.call(t,n)&&er(e,n,t[n])})),xs=Mo((function(e,t){jo(t,Ds(t),e)})),ks=Mo((function(e,t,n,r){jo(t,Ds(t),e,r)})),_s=Mo((function(e,t,n,r){jo(t,Is(t),e,r)})),Ss=ti(ir),Es=Gr((function(e,t){e=Se(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&bi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ds(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===o||Ba(d,Te[u])&&!De.call(e,u))&&(e[u]=a[u])}return e})),Ps=Gr((function(e){return e.push(o,Jo),vt(Ls,o,e)}));function Cs(e,t,n){var r=null==e?o:kr(e,t);return r===o?n:r}function Os(e,t){return null!=e&&hi(e,t,Cr)}var js=Zo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),tl(ol)),Ts=Zo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),De.call(e,t)?e[t].push(n):e[t]=[n]}),si),Ms=Gr(jr);function Is(e){return Ya(e)?qn(e):Lr(e)}function Ds(e){return Ya(e)?qn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=ki(e),n=[];for(var r in e)("constructor"!=r||!t&&De.call(e,r))&&n.push(r);return n}(e)}var As=Mo((function(e,t,n){Zr(e,t,n)})),Ls=Mo((function(e,t,n,r){Zr(e,t,n,r)})),Ns=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=Et(t,(function(t){return t=bo(t,e),r||(r=t.length>1),t})),jo(e,ri(e),n),r&&(n=sr(n,7,Qo));for(var o=t.length;o--;)co(n,t[o]);return n})),Rs=ti((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Os(e,n)}))}(e,t)}));function zs(e,t){if(null==e)return{};var n=Et(ri(e),(function(e){return[e]}));return t=si(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Fs=qo(Is),Zs=qo(Ds);function Bs(e){return null==e?[]:Ht(e,Is(e))}var Us=Lo((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return $s(ys(e).toLowerCase())}function Hs(e){return(e=ys(e))&&e.replace(be,qt).replace(Ke,"")}var Ks=Lo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=Lo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Ao("toLowerCase"),Gs=Lo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),qs=Lo((function(e,t,n){return e+(n?" ":"")+$s(t)})),Xs=Lo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),$s=Ao("toUpperCase");function Js(e,t,n){return e=ys(e),(t=n?o:t)===o?function(e){return qe.test(e)}(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Qs=Gr((function(e,t){try{return vt(e,o,t)}catch(e){return $a(e)?e:new xe(e)}})),el=ti((function(e,t){return yt(t,(function(t){t=zi(t),or(e,t,Ta(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=zo(),rl=zo(!0);function ol(e){return e}function il(e){return Ar("function"==typeof e?e:sr(e,1))}var al=Gr((function(e,t){return function(n){return jr(n,e,t)}})),sl=Gr((function(e,t){return function(n){return jr(e,n,t)}}));function ll(e,t,n){var r=Is(t),o=xr(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=xr(t,Is(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Ja(e);return yt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Oo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})})),e}function cl(){}var ul=Uo(Et),dl=Uo(xt),pl=Uo(jt);function fl(e){return yi(e)?Rt(zi(e)):function(e){return function(t){return kr(t,e)}}(e)}var hl=Ho(),ml=Ho(!0);function gl(){return[]}function vl(){return!1}var bl,yl=Bo((function(e,t){return e+t}),0),wl=Yo("ceil"),xl=Bo((function(e,t){return e/t}),1),kl=Yo("floor"),_l=Bo((function(e,t){return e*t}),1),Sl=Yo("round"),El=Bo((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Ce(i);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Oa,Fn.assign=ws,Fn.assignIn=xs,Fn.assignInWith=ks,Fn.assignWith=_s,Fn.at=Ss,Fn.before=ja,Fn.bind=Ta,Fn.bindAll=el,Fn.bindKey=Ma,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ka(e)?e:[e]},Fn.chain=fa,Fn.chunk=function(e,t,n){t=(n?bi(e,t,n):t===o)?1:vn(ms(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(un(i/t));a<i;)l[s++]=to(e,a,a+=t);return l},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Pt(Ka(n)?Oo(n):[n],gr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?Et(e,(function(e){if("function"!=typeof e[1])throw new Ce(i);return[n(e[0]),e[1]]})):[],Gr((function(n){for(var r=-1;++r<t;){var o=e[r];if(vt(o[0],this,n))return vt(o[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Is(e);return function(n){return lr(n,e,t)}}(sr(e,1))},Fn.constant=tl,Fn.countBy=ga,Fn.create=function(e,t){var n=Zn(e);return null==t?n:rr(n,t)},Fn.curry=function e(t,n,r){var i=Xo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Fn.curryRight=function e(t,n,r){var i=Xo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Fn.debounce=Ia,Fn.defaults=Es,Fn.defaultsDeep=Ps,Fn.defer=Da,Fn.delay=Aa,Fn.difference=Bi,Fn.differenceBy=Ui,Fn.differenceWith=Wi,Fn.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:ms(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:ms(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?po(e,si(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?po(e,si(t,3),!0):[]},Fn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&bi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ms(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ms(r))<0&&(r+=i),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fn.filter=function(e,t){return(Ka(e)?kt:mr)(e,si(t,3))},Fn.flatMap=function(e,t){return gr(Sa(e,t),1)},Fn.flatMapDeep=function(e,t){return gr(Sa(e,t),u)},Fn.flatMapDepth=function(e,t,n){return n=n===o?1:ms(n),gr(Sa(e,t),n)},Fn.flatten=Vi,Fn.flattenDeep=function(e){return null!=e&&e.length?gr(e,u):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===o?1:ms(t)):[]},Fn.flip=function(e){return Xo(e,512)},Fn.flow=nl,Fn.flowRight=rl,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Fn.functions=function(e){return null==e?[]:xr(e,Is(e))},Fn.functionsIn=function(e){return null==e?[]:xr(e,Ds(e))},Fn.groupBy=xa,Fn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Fn.intersection=Gi,Fn.intersectionBy=qi,Fn.intersectionWith=Xi,Fn.invert=js,Fn.invertBy=Ts,Fn.invokeMap=ka,Fn.iteratee=il,Fn.keyBy=_a,Fn.keys=Is,Fn.keysIn=Ds,Fn.map=Sa,Fn.mapKeys=function(e,t){var n={};return t=si(t,3),yr(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Fn.mapValues=function(e,t){var n={};return t=si(t,3),yr(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Fn.matches=function(e){return zr(sr(e,1))},Fn.matchesProperty=function(e,t){return Fr(e,sr(t,1))},Fn.memoize=La,Fn.merge=As,Fn.mergeWith=Ls,Fn.method=al,Fn.methodOf=sl,Fn.mixin=ll,Fn.negate=Na,Fn.nthArg=function(e){return e=ms(e),Gr((function(t){return Br(t,e)}))},Fn.omit=Ns,Fn.omitBy=function(e,t){return zs(e,Na(si(t)))},Fn.once=function(e){return ja(2,e)},Fn.orderBy=function(e,t,n,r){return null==e?[]:(Ka(t)||(t=null==t?[]:[t]),Ka(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Fn.over=ul,Fn.overArgs=Ra,Fn.overEvery=dl,Fn.overSome=pl,Fn.partial=za,Fn.partialRight=Fa,Fn.partition=Ea,Fn.pick=Rs,Fn.pickBy=zs,Fn.property=fl,Fn.propertyOf=function(e){return function(t){return null==e?o:kr(e,t)}},Fn.pull=Ji,Fn.pullAll=Qi,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,si(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,o,n):e},Fn.pullAt=ea,Fn.range=hl,Fn.rangeRight=ml,Fn.rearg=Za,Fn.reject=function(e,t){return(Ka(e)?kt:mr)(e,Na(si(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Kr(e,o),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Ce(i);return Gr(e,t=t===o?t:ms(t))},Fn.reverse=ta,Fn.sampleSize=function(e,t,n){return t=(n?bi(e,t,n):t===o)?1:ms(t),(Ka(e)?$n:Xr)(e,t)},Fn.set=function(e,t,n){return null==e?e:$r(e,t,n)},Fn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:$r(e,t,n,r)},Fn.shuffle=function(e){return(Ka(e)?Jn:eo)(e)},Fn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&bi(e,t,n)?(t=0,n=r):(t=null==t?0:ms(t),n=n===o?r:ms(n)),to(e,t,n)):[]},Fn.sortBy=Pa,Fn.sortedUniq=function(e){return e&&e.length?io(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?io(e,si(t,2)):[]},Fn.split=function(e,t,n){return n&&"number"!=typeof n&&bi(e,t,n)&&(t=n=o),(n=n===o?f:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=so(t))&&Jt(e)?wo(an(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Ce(i);return t=null==t?0:vn(ms(t),0),Gr((function(n){var r=n[t],o=wo(n,0,t);return r&&Pt(o,r),vt(e,this,o)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:ms(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:ms(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?po(e,si(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?po(e,si(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ce(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ia(e,t,{leading:r,maxWait:t,trailing:o})},Fn.thru=ha,Fn.toArray=fs,Fn.toPairs=Fs,Fn.toPairsIn=Zs,Fn.toPath=function(e){return Ka(e)?Et(e,zi):cs(e)?[e]:Oo(Ri(ys(e)))},Fn.toPlainObject=bs,Fn.transform=function(e,t,n){var r=Ka(e),o=r||qa(e)||us(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Ja(i)?Zn(Ve(e)):{}}return(o?yt:yr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Fn.unary=function(e){return Oa(e,1)},Fn.union=na,Fn.unionBy=ra,Fn.unionWith=oa,Fn.uniq=function(e){return e&&e.length?lo(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?lo(e,si(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?lo(e,o,t):[]},Fn.unset=function(e,t){return null==e||co(e,t)},Fn.unzip=ia,Fn.unzipWith=aa,Fn.update=function(e,t,n){return null==e?e:uo(e,t,vo(n))},Fn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:uo(e,t,vo(n),r)},Fn.values=Bs,Fn.valuesIn=function(e){return null==e?[]:Ht(e,Ds(e))},Fn.without=sa,Fn.words=Js,Fn.wrap=function(e,t){return za(vo(t),e)},Fn.xor=la,Fn.xorBy=ca,Fn.xorWith=ua,Fn.zip=da,Fn.zipObject=function(e,t){return mo(e||[],t||[],er)},Fn.zipObjectDeep=function(e,t){return mo(e||[],t||[],$r)},Fn.zipWith=pa,Fn.entries=Fs,Fn.entriesIn=Zs,Fn.extend=xs,Fn.extendWith=ks,ll(Fn,Fn),Fn.add=yl,Fn.attempt=Qs,Fn.camelCase=Us,Fn.capitalize=Ws,Fn.ceil=wl,Fn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vs(n))==n?n:0),t!==o&&(t=(t=vs(t))==t?t:0),ar(vs(e),t,n)},Fn.clone=function(e){return sr(e,4)},Fn.cloneDeep=function(e){return sr(e,5)},Fn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Fn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Fn.conformsTo=function(e,t){return null==t||lr(e,t,Is(t))},Fn.deburr=Hs,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=xl,Fn.endsWith=function(e,t,n){e=ys(e),t=so(t);var r=e.length,i=n=n===o?r:ar(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Fn.eq=Ba,Fn.escape=function(e){return(e=ys(e))&&G.test(e)?e.replace(V,Xt):e},Fn.escapeRegExp=function(e){return(e=ys(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Fn.every=function(e,t,n){var r=Ka(e)?xt:fr;return n&&bi(e,t,n)&&(t=o),r(e,si(t,3))},Fn.find=va,Fn.findIndex=Hi,Fn.findKey=function(e,t){return Mt(e,si(t,3),yr)},Fn.findLast=ba,Fn.findLastIndex=Ki,Fn.findLastKey=function(e,t){return Mt(e,si(t,3),wr)},Fn.floor=kl,Fn.forEach=ya,Fn.forEachRight=wa,Fn.forIn=function(e,t){return null==e?e:vr(e,si(t,3),Ds)},Fn.forInRight=function(e,t){return null==e?e:br(e,si(t,3),Ds)},Fn.forOwn=function(e,t){return e&&yr(e,si(t,3))},Fn.forOwnRight=function(e,t){return e&&wr(e,si(t,3))},Fn.get=Cs,Fn.gt=Ua,Fn.gte=Wa,Fn.has=function(e,t){return null!=e&&hi(e,t,Pr)},Fn.hasIn=Os,Fn.head=Yi,Fn.identity=ol,Fn.includes=function(e,t,n,r){e=Ya(e)?e:Bs(e),n=n&&!r?ms(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Dt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=vn(r+o,0)),Dt(e,t,o)},Fn.inRange=function(e,t,n){return t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n){return e>=bn(t,n)&&e<vn(t,n)}(e=vs(e),t,n)},Fn.invoke=Ms,Fn.isArguments=Ha,Fn.isArray=Ka,Fn.isArrayBuffer=Va,Fn.isArrayLike=Ya,Fn.isArrayLikeObject=Ga,Fn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Sr(e)==v},Fn.isBuffer=qa,Fn.isDate=Xa,Fn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(Ka(e)||"string"==typeof e||"function"==typeof e.splice||qa(e)||us(e)||Ha(e)))return!e.length;var t=fi(e);if(t==k||t==C)return!e.size;if(ki(e))return!Lr(e).length;for(var n in e)if(De.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Mr(e,t)},Fn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Mr(e,t,o,n):!!r},Fn.isError=$a,Fn.isFinite=function(e){return"number"==typeof e&&hn(e)},Fn.isFunction=Ja,Fn.isInteger=Qa,Fn.isLength=es,Fn.isMap=rs,Fn.isMatch=function(e,t){return e===t||Ir(e,t,ci(t))},Fn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Ir(e,t,ci(t),n)},Fn.isNaN=function(e){return os(e)&&e!=+e},Fn.isNative=function(e){if(xi(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=os,Fn.isObject=ts,Fn.isObjectLike=ns,Fn.isPlainObject=is,Fn.isRegExp=as,Fn.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=d},Fn.isSet=ss,Fn.isString=ls,Fn.isSymbol=cs,Fn.isTypedArray=us,Fn.isUndefined=function(e){return e===o},Fn.isWeakMap=function(e){return ns(e)&&fi(e)==T},Fn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Sr(e)},Fn.join=function(e,t){return null==e?"":mn.call(e,t)},Fn.kebabCase=Ks,Fn.last=$i,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ms(n))<0?vn(r+i,0):bn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):It(e,Lt,i,!0)},Fn.lowerCase=Vs,Fn.lowerFirst=Ys,Fn.lt=ds,Fn.lte=ps,Fn.max=function(e){return e&&e.length?hr(e,ol,Er):o},Fn.maxBy=function(e,t){return e&&e.length?hr(e,si(t,2),Er):o},Fn.mean=function(e){return Nt(e,ol)},Fn.meanBy=function(e,t){return Nt(e,si(t,2))},Fn.min=function(e){return e&&e.length?hr(e,ol,Nr):o},Fn.minBy=function(e,t){return e&&e.length?hr(e,si(t,2),Nr):o},Fn.stubArray=gl,Fn.stubFalse=vl,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=_l,Fn.nth=function(e,t){return e&&e.length?Br(e,ms(t)):o},Fn.noConflict=function(){return it._===this&&(it._=ze),this},Fn.noop=cl,Fn.now=Ca,Fn.pad=function(e,t,n){e=ys(e);var r=(t=ms(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(dn(o),n)+e+Wo(un(o),n)},Fn.padEnd=function(e,t,n){e=ys(e);var r=(t=ms(t))?on(e):0;return t&&r<t?e+Wo(t-r,n):e},Fn.padStart=function(e,t,n){e=ys(e);var r=(t=ms(t))?on(e):0;return t&&r<t?Wo(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(ys(e).replace(re,""),t||0)},Fn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hs(e),t===o?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=xn();return bn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return Vr(e,t)},Fn.reduce=function(e,t,n){var r=Ka(e)?Ct:Ft,o=arguments.length<3;return r(e,si(t,4),n,o,dr)},Fn.reduceRight=function(e,t,n){var r=Ka(e)?Ot:Ft,o=arguments.length<3;return r(e,si(t,4),n,o,pr)},Fn.repeat=function(e,t,n){return t=(n?bi(e,t,n):t===o)?1:ms(t),Yr(ys(e),t)},Fn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,i=(t=bo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[zi(t[r])];a===o&&(r=i,a=n),e=Ja(a)?a.call(e):a}return e},Fn.round=Sl,Fn.runInContext=e,Fn.sample=function(e){return(Ka(e)?Xn:qr)(e)},Fn.size=function(e){if(null==e)return 0;if(Ya(e))return ls(e)?on(e):e.length;var t=fi(e);return t==k||t==C?e.size:Lr(e).length},Fn.snakeCase=Gs,Fn.some=function(e,t,n){var r=Ka(e)?jt:no;return n&&bi(e,t,n)&&(t=o),r(e,si(t,3))},Fn.sortedIndex=function(e,t){return ro(e,t)},Fn.sortedIndexBy=function(e,t,n){return oo(e,t,si(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&Ba(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ro(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return oo(e,t,si(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},Fn.startCase=qs,Fn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:ar(ms(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Fn.subtract=El,Fn.sum=function(e){return e&&e.length?Zt(e,ol):0},Fn.sumBy=function(e,t){return e&&e.length?Zt(e,si(t,2)):0},Fn.template=function(e,t,n){var r=Fn.templateSettings;n&&bi(e,t,n)&&(t=o),e=ys(e),t=ks({},t,r,$o);var i,a,s=ks({},t.imports,r.imports,$o),l=Is(s),c=Ht(s,l),u=0,d=t.interpolate||ye,p="__p += '",f=Ee((t.escape||ye).source+"|"+d.source+"|"+(d===$?de:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),h="//# sourceURL="+(De.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$e+"]")+"\n";e.replace(f,(function(t,n,r,o,s,l){return r||(r=o),p+=e.slice(u,l).replace(we,$t),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var m=De.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(U,""):p).replace(W,"$1").replace(H,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Qs((function(){return ke(l,h+"return "+p).apply(o,c)}));if(g.source=p,$a(g))throw g;return g},Fn.times=function(e,t){if((e=ms(e))<1||e>d)return[];var n=f,r=bn(e,f);t=si(t),e-=f;for(var o=Bt(r,t);++n<e;)t(n);return o},Fn.toFinite=hs,Fn.toInteger=ms,Fn.toLength=gs,Fn.toLower=function(e){return ys(e).toLowerCase()},Fn.toNumber=vs,Fn.toSafeInteger=function(e){return e?ar(ms(e),-9007199254740991,d):0===e?e:0},Fn.toString=ys,Fn.toUpper=function(e){return ys(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=ys(e))&&(n||t===o))return Ut(e);if(!e||!(t=so(t)))return e;var r=an(e),i=an(t);return wo(r,Vt(r,i),Yt(r,i)+1).join("")},Fn.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.slice(0,sn(e)+1);if(!e||!(t=so(t)))return e;var r=an(e);return wo(r,0,Yt(r,an(t))+1).join("")},Fn.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=so(t)))return e;var r=an(e);return wo(r,Vt(r,an(t))).join("")},Fn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?ms(t.length):n,r="omission"in t?so(t.omission):r}var a=(e=ys(e)).length;if(Jt(e)){var s=an(e);a=s.length}if(n>=a)return e;var l=n-on(r);if(l<1)return r;var c=s?wo(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),as(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Ee(i.source,ys(pe.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===o?l:p)}}else if(e.indexOf(so(i),l)!=l){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r},Fn.unescape=function(e){return(e=ys(e))&&Y.test(e)?e.replace(K,ln):e},Fn.uniqueId=function(e){var t=++Ae;return ys(e)+t},Fn.upperCase=Xs,Fn.upperFirst=$s,Fn.each=ya,Fn.eachRight=wa,Fn.first=Yi,ll(Fn,(bl={},yr(Fn,(function(e,t){De.call(Fn.prototype,t)||(bl[t]=e)})),bl),{chain:!1}),Fn.VERSION="4.17.21",yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),yt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===o?1:vn(ms(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),yt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),yt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),yt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ol)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return jr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Na(si(e)))},Wn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(f)},yr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Fn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Wn,c=s[0],u=l||Ka(t),d=function(e){var t=i.apply(Fn,Pt([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=a&&!p,m=l&&!f;if(!a&&u){t=m?t:new Wn(this);var g=e.apply(t,s);return g.__actions__.push({func:ha,args:[d],thisArg:o}),new Un(g,p)}return h&&m?e.apply(this,s):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})})),yt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ka(o)?o:[],e)}return this[n]((function(n){return t.apply(Ka(n)?n:[],e)}))}})),yr(Wn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";De.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[Fo(o,2).name]=[{name:"wrapper",func:o}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ka(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,f=bn(l,this.__takeCount__);if(!n||!r&&o==l&&f==l)return fo(e,this.__actions__);var h=[];e:for(;l--&&p<f;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],b=v.iteratee,y=v.type,w=b(g);if(2==y)g=w;else if(!w){if(1==y)continue e;break e}}h[p++]=g}return h},Fn.prototype.at=ma,Fn.prototype.chain=function(){return fa(this)},Fn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===o&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=Zi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ta)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,at&&(Fn.prototype[at]=function(){return this}),Fn}();it._=cn,(r=function(){return cn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},4448:(e,t,n)=>{"use strict";var r=n(7294),o=n(3840);function i(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 a=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++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[: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]*$/,f={},h={};function m(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 g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[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];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[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){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=g.hasOwnProperty(t)?g[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||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!!d.call(h,e)||!d.call(f,e)&&(p.test(e)?h[e]=!0:(f[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(v,b);g[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(v,b);g[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(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),k=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),C=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var N,R=Object.assign;function z(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var F=!1;function Z(e,t){if(!e||F)return"";F=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function B(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 Z(e.type,!1);case 11:return Z(e.type.render,!1);case 1:return Z(e.type,!0);default:return""}}function U(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 _:return"Fragment";case k:return"Portal";case E:return"Profiler";case S:return"StrictMode";case j:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case M:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return U(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==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 Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return R({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(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 $(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function J(e,t){$(e,t);var n=H(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")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(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 ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(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=""+H(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 re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return R({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(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 ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.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 ue(e,t)}))}:ue);function pe(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 fe={animationIterationCount:!0,aspectRatio:!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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ve=R({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 be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ye(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}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,_e=null,Se=null;function Ee(e){if(e=wo(e)){if("function"!=typeof ke)throw Error(i(280));var t=e.stateNode;t&&(t=ko(t),ke(e.stateNode,e.type,t))}}function Pe(e){_e?Se?Se.push(e):Se=[e]:_e=e}function Ce(){if(_e){var e=_e,t=Se;if(Se=_e=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Oe(e,t){return e(t)}function je(){}var Te=!1;function Me(e,t,n){if(Te)return e(t,n);Te=!0;try{return Oe(e,t,n)}finally{Te=!1,(null!==_e||null!==Se)&&(je(),Ce())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=ko(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(i(231,t,typeof n));return n}var De=!1;if(u)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){De=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ue){De=!1}function Le(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Ne=!1,Re=null,ze=!1,Fe=null,Ze={onError:function(e){Ne=!0,Re=e}};function Be(e,t,n,r,o,i,a,s,l){Ne=!1,Re=null,Le.apply(Ze,arguments)}function Ue(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(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 He(e){if(Ue(e)!==e)throw Error(i(188))}function Ke(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,qe=o.unstable_shouldYield,Xe=o.unstable_requestPaint,$e=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Qe=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!=(i&=a)&&(r=dt(i))}else 0!=(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var xt,kt,_t,St,Et,Pt=!1,Ct=[],Ot=null,jt=null,Tt=null,Mt=new Map,It=new Map,Dt=[],At="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 Lt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Nt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Rt(e){var t=yo(e.target);if(null!==t){var n=Ue(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Et(e.priority,(function(){_t(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Zt(){Pt=!1,null!==Ot&&zt(Ot)&&(Ot=null),null!==jt&&zt(jt)&&(jt=null),null!==Tt&&zt(Tt)&&(Tt=null),Mt.forEach(Ft),It.forEach(Ft)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Pt||(Pt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Zt)))}function Ut(e){function t(t){return Bt(t,e)}if(0<Ct.length){Bt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&Bt(Ot,e),null!==jt&&Bt(jt,e),null!==Tt&&Bt(Tt,e),Mt.forEach(t),It.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;)Rt(n),null===n.blockedOn&&Dt.shift()}var Wt=w.ReactCurrentBatchConfig,Ht=!0;function Kt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=1,Yt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Vt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=4,Yt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Yt(e,t,n,r){if(Ht){var o=qt(e,t,n,r);if(null===o)Hr(e,t,r,Gt,n),Lt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ot=Nt(Ot,e,t,n,r,o),!0;case"dragenter":return jt=Nt(jt,e,t,n,r,o),!0;case"mouseover":return Tt=Nt(Tt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Mt.set(i,Nt(Mt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Nt(It.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=qt(e,t,n,r))&&Hr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function qt(e,t,n,r){if(Gt=null,null!==(e=yo(e=xe(r))))if(null===(t=Ue(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Qe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var $t=null,Jt=null,Qt=null;function en(){if(Qt)return Qt;var e,t,n=Jt,r=n.length,o="value"in $t?$t.value:$t.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 Qt=o.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function on(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)?nn:rn,this.isPropagationStopped=rn,this}return R(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=R({},cn,{view:0,detail:0}),pn=on(dn),fn=R({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,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!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(fn),mn=on(R({},fn,{dataTransfer:0})),gn=on(R({},dn,{relatedTarget:0})),vn=on(R({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=R({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),wn=on(R({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={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"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function En(){return Sn}var Pn=R({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=on(Pn),On=on(R({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jn=on(R({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Tn=on(R({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=R({},fn,{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}),In=on(Mn),Dn=[9,13,27,32],An=u&&"CompositionEvent"in window,Ln=null;u&&"documentMode"in document&&(Ln=document.documentMode);var Nn=u&&"TextEvent"in window&&!Ln,Rn=u&&(!An||Ln&&8<Ln&&11>=Ln),zn=String.fromCharCode(32),Fn=!1;function Zn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1,Wn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Kn(e,t,n,r){Pe(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Yn=null;function Gn(e){zr(e,0)}function qn(e){if(Y(xo(e)))return e}function Xn(e,t){if("change"===e)return t}var $n=!1;if(u){var Jn;if(u){var Qn="oninput"in document;if(!Qn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Qn="function"==typeof er.oninput}Jn=Qn}else Jn=!1;$n=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Yn=Vn=null)}function nr(e){if("value"===e.propertyName&&qn(Yn)){var t=[];Kn(t,Yn,e,xe(e)),Me(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Yn)}function ir(e,t){if("click"===e)return qn(t)}function ar(e,t){if("input"===e||"change"===e)return qn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(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++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(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=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function fr(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)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,br=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==G(r)||(r="selectionStart"in(r=gr)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Vr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},_r={},Sr={};function Er(e){if(_r[e])return _r[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return _r[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Pr=Er("animationend"),Cr=Er("animationiteration"),Or=Er("animationstart"),jr=Er("transitionend"),Tr=new Map,Mr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Tr.set(e,t),l(t,[e])}for(var Dr=0;Dr<Mr.length;Dr++){var Ar=Mr[Dr];Ir(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Ir(Pr,"onAnimationEnd"),Ir(Cr,"onAnimationIteration"),Ir(Or,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(jr,"onTransitionEnd"),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 Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Rr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(Be.apply(this,arguments),Ne){if(!Ne)throw Error(i(198));var u=Re;Ne=!1,Re=null,ze||(ze=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function zr(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 s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Rr(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Rr(o,s,c),i=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Zr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Nr.has(t)||Zr(t,!1,e),Zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Zr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Xt(t)){case 1:var o=Kt;break;case 4:o=Vt;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!De||"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 Hr(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 s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=yo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Me((function(){var r=i,o=xe(n),a=[];e:{var s=Tr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;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":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=jn;break;case Pr:case Cr:case Or:l=vn;break;case jr:l=Tn;break;case"scroll":l=pn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=On}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&null!=(m=Ie(h,p))&&u.push(Kr(h,m,f))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!yo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yo(c):null)&&(c!==(d=Ue(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=On,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:xo(l),f=null==c?s:xo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=f,m=null,yo(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,h=0,f=u=l;f;f=Yr(f))h++;for(f=0,m=p;m;m=Yr(m))f++;for(;0<h-f;)u=Yr(u),h--;for(;0<f-h;)p=Yr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Yr(u),p=Yr(p)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?xo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Hn(s))if($n)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Kn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?xo(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,br=null);break;case"focusout":br=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var b;if(An)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Un?Zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Rn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==y?"onCompositionEnd"===y&&Un&&(b=en()):(Jt="value"in($t=o)?$t.value:$t.textContent,Un=!0)),0<(v=Vr(r,y)).length&&(y=new wn(y,e,null,n,o),a.push({event:y,listeners:v}),(b||null!==(b=Bn(n)))&&(y.data=b))),(b=Nn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!An&&Zn(e,t)?(e=en(),Qt=Jt=$t=null,Un=!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 Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Vr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b)}zr(a,t)}))}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(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=Ie(e,n))&&r.unshift(Kr(e,i,o)),null!=(i=Ie(e,t))&&r.push(Kr(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Ie(n,i))&&a.unshift(Kr(n,l,s)):o||null!=(l=Ie(n,i))&&a.push(Kr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function $r(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Xr,"")}function Jr(e,t,n){if(t=$r(t),$r(e)!==t&&n)throw Error(i(425))}function Qr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ut(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(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 po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,vo="__reactListeners$"+po,bo="__reactHandles$"+po;function yo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[fo]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function ko(e){return e[ho]||null}var _o=[],So=-1;function Eo(e){return{current:e}}function Po(e){0>So||(e.current=_o[So],_o[So]=null,So--)}function Co(e,t){So++,_o[So]=e.current,e.current=t}var Oo={},jo=Eo(Oo),To=Eo(!1),Mo=Oo;function Io(e,t){var n=e.type.contextTypes;if(!n)return Oo;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 Do(e){return null!=e.childContextTypes}function Ao(){Po(To),Po(jo)}function Lo(e,t,n){if(jo.current!==Oo)throw Error(i(168));Co(jo,t),Co(To,n)}function No(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,W(e)||"Unknown",o));return R({},n,r)}function Ro(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Mo=jo.current,Co(jo,e),Co(To,To.current),!0}function zo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=No(e,t,Mo),r.__reactInternalMemoizedMergedChildContext=e,Po(To),Po(jo),Co(jo,e)):Po(To),Co(To,n)}var Fo=null,Zo=!1,Bo=!1;function Uo(e){null===Fo?Fo=[e]:Fo.push(e)}function Wo(){if(!Bo&&null!==Fo){Bo=!0;var e=0,t=yt;try{var n=Fo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Zo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ye(Qe,Wo),t}finally{yt=t,Bo=!1}}return null}var Ho=[],Ko=0,Vo=null,Yo=0,Go=[],qo=0,Xo=null,$o=1,Jo="";function Qo(e,t){Ho[Ko++]=Yo,Ho[Ko++]=Vo,Vo=e,Yo=t}function ei(e,t,n){Go[qo++]=$o,Go[qo++]=Jo,Go[qo++]=Xo,Xo=e;var r=$o;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,$o=1<<32-at(t)+o|n<<o|r,Jo=i+e}else $o=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Qo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Ho[--Ko],Ho[Ko]=null,Yo=Ho[--Ko],Ho[Ko]=null;for(;e===Xo;)Xo=Go[--qo],Go[qo]=null,Jo=Go[--qo],Go[qo]=null,$o=Go[--qo],Go[qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Mc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(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,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:$o,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function pi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw fi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function fi(){for(var e=oi;e;)e=co(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bi=Eo(null),yi=null,wi=null,xi=null;function ki(){xi=wi=yi=null}function _i(e){var t=bi.current;Po(bi),e._currentValue=t}function Si(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){yi=e,xi=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(xi!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===yi)throw Error(i(308));wi=e,yi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Ci=null;function Oi(e){null===Ci?Ci=[e]:Ci.push(e)}function ji(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Oi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ti(e,r)}function Ti(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}var Mi=!1;function Ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Di(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 Ai(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Li(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ol)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ti(e,n)}return null===(o=r.interleaved)?(t.next=t,Oi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ti(e,n)}function Ni(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ri(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 zi(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&(s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l)}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=R({},d,p);break e;case 2:Mi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Nl|=a,e.lanes=a,e.memoizedState=d}}function Fi(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(i(191,o));o.call(r)}}}var Zi=(new r.Component).refs;function Bi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:R({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ui={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ai(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Li(e,i,o))&&(nc(t,e,o,r),Ni(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ai(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Li(e,i,o))&&(nc(t,e,o,r),Ni(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Ai(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Li(e,o,r))&&(nc(t,e,r,n),Ni(t,e,r))}};function Wi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function Hi(e,t,n){var r=!1,o=Oo,i=t.contextType;return"object"==typeof i&&null!==i?i=Pi(i):(o=Do(t)?Mo:jo.current,i=(r=null!=(r=t.contextTypes))?Io(e,o):Oo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ui,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ki(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&&Ui.enqueueReplaceState(t,t.state,null)}function Vi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Zi,Ii(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Pi(i):(i=Do(t)?Mo:jo.current,o.context=Io(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Bi(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&&Ui.enqueueReplaceState(o,o.state,null),zi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Yi(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(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Zi&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qi(e){return(0,e._init)(e._payload)}function Xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}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=Dc(e,t)).index=0,e.sibling=null,e}function a(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):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Rc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===I&&qi(i)===t.type)?((r=o(t,n.props)).ref=Yi(e,t,n),r.return=e,r):((r=Ac(n.type,n.key,n.props,null,e.mode,r)).ref=Yi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Lc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Rc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=Yi(e,null,t),n.return=e,n;case k:return(t=zc(t,e.mode,n)).return=e,t;case I:return p(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Lc(t,e.mode,n,null)).return=e,t;Gi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case k:return n.key===o?u(e,t,n,r):null;case I:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||L(n))return null!==o?null:d(e,t,n,r,null);Gi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||L(r))return d(t,e=e.get(n)||null,r,o,null);Gi(t,r)}return null}function m(o,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),ii&&Qo(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(o,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Qo(o,m),c}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),ii&&Qo(o,m),c}function g(o,s,l,c){var u=L(l);if("function"!=typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,m=s,g=s=0,v=null,b=l.next();null!==m&&!b.done;g++,b=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=f(o,m,b.value,c);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y,m=v}if(b.done)return n(o,m),ii&&Qo(o,g),u;if(null===m){for(;!b.done;g++,b=l.next())null!==(b=p(o,b.value,c))&&(s=a(b,s,g),null===d?u=b:d.sibling=b,d=b);return ii&&Qo(o,g),u}for(m=r(o,m);!b.done;g++,b=l.next())null!==(b=h(m,o,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(o,e)})),ii&&Qo(o,g),u}return function e(r,i,a,l){if("object"==typeof a&&null!==a&&a.type===_&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===_){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===I&&qi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=Yi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===_?((i=Lc(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Ac(a.type,a.key,a.props,null,r.mode,l)).ref=Yi(r,i,a),l.return=r,r=l)}return s(r);case k:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=zc(a,r.mode,l)).return=r,r=i}return s(r);case I:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(L(a))return g(r,i,a,l);Gi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Rc(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var $i=Xi(!0),Ji=Xi(!1),Qi={},ea=Eo(Qi),ta=Eo(Qi),na=Eo(Qi);function ra(e){if(e===Qi)throw Error(i(174));return e}function oa(e,t){switch(Co(na,t),Co(ta,e),Co(ea,Qi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Po(ea),Co(ea,t)}function ia(){Po(ea),Po(ta),Po(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(Co(ta,e),Co(ea,n))}function sa(e){ta.current===e&&(Po(ea),Po(ta))}var la=Eo(0);function ca(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!=(128&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 ua=[];function da(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var pa=w.ReactCurrentDispatcher,fa=w.ReactCurrentBatchConfig,ha=0,ma=null,ga=null,va=null,ba=!1,ya=!1,wa=0,xa=0;function ka(){throw Error(i(321))}function _a(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Sa(e,t,n,r,o,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pa.current=null===e||null===e.memoizedState?ss:ls,e=n(r,o),ya){a=0;do{if(ya=!1,wa=0,25<=a)throw Error(i(301));a+=1,va=ga=null,t.updateQueue=null,pa.current=cs,e=n(r,o)}while(ya)}if(pa.current=as,t=null!==ga&&null!==ga.next,ha=0,va=ga=ma=null,ba=!1,t)throw Error(i(300));return e}function Ea(){var e=0!==wa;return wa=0,e}function Pa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ma.memoizedState=va=e:va=va.next=e,va}function Ca(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===va?ma.memoizedState:va.next;if(null!==t)va=t,ga=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===va?ma.memoizedState=va=e:va=va.next=e}return va}function Oa(e,t){return"function"==typeof t?t(e):t}function ja(e){var t=Ca(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ga,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((ha&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,ma.lanes|=d,Nl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ma.lanes|=a,Nl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ta(e){var t=Ca(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ma(){}function Ia(e,t){var n=ma,r=Ca(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,ws=!0),r=r.queue,Ha(La.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,Fa(9,Aa.bind(null,n,r,o,t),void 0,null),null===jl)throw Error(i(349));0!=(30&ha)||Da(n,t,o)}return o}function Da(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Aa(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&Ra(e)}function La(e,t,n){return n((function(){Na(t)&&Ra(e)}))}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ra(e){var t=Ti(e,1);null!==t&&nc(t,e,1,-1)}function za(e){var t=Pa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function Fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.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 Za(){return Ca().memoizedState}function Ba(e,t,n,r){var o=Pa();ma.flags|=e,o.memoizedState=Fa(1|t,n,void 0,void 0===r?null:r)}function Ua(e,t,n,r){var o=Ca();r=void 0===r?null:r;var i=void 0;if(null!==ga){var a=ga.memoizedState;if(i=a.destroy,null!==r&&_a(r,a.deps))return void(o.memoizedState=Fa(t,n,i,r))}ma.flags|=e,o.memoizedState=Fa(1|t,n,i,r)}function Wa(e,t){return Ba(8390656,8,e,t)}function Ha(e,t){return Ua(2048,8,e,t)}function Ka(e,t){return Ua(4,2,e,t)}function Va(e,t){return Ua(4,4,e,t)}function Ya(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ga(e,t,n){return n=null!=n?n.concat([e]):null,Ua(4,4,Ya.bind(null,t,e),n)}function qa(){}function Xa(e,t){var n=Ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_a(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=Ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_a(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 0==(21&ha)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),ma.lanes|=n,Nl|=n,e.baseState=!0),t)}function Qa(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=fa.transition;fa.transition={};try{e(!1),t()}finally{yt=n,fa.transition=r}}function es(){return Ca().memoizedState}function ts(e,t,n){var r=tc(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?os(t,n):null!==(n=ji(e,t,n,r))&&(nc(n,e,r,ec()),is(n,t,r))}function ns(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))os(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Oi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=ji(e,t,o,r))&&(nc(n,e,r,o=ec()),is(n,t,r))}}function rs(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function os(e,t){ya=ba=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function is(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var as={readContext:Pi,useCallback:ka,useContext:ka,useEffect:ka,useImperativeHandle:ka,useInsertionEffect:ka,useLayoutEffect:ka,useMemo:ka,useReducer:ka,useRef:ka,useState:ka,useDebugValue:ka,useDeferredValue:ka,useTransition:ka,useMutableSource:ka,useSyncExternalStore:ka,useId:ka,unstable_isNewReconciler:!1},ss={readContext:Pi,useCallback:function(e,t){return Pa().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:Wa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4194308,4,Ya.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=Pa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Pa().memoizedState=e},useState:za,useDebugValue:qa,useDeferredValue:function(e){return Pa().memoizedState=e},useTransition:function(){var e=za(!1),t=e[0];return e=Qa.bind(null,e[1]),Pa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,o=Pa();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===jl)throw Error(i(349));0!=(30&ha)||Da(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Wa(La.bind(null,r,a,e),[e]),r.flags|=2048,Fa(9,Aa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Pa(),t=jl.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=($o&~(1<<32-at($o)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Pi,useCallback:Xa,useContext:Pi,useEffect:Ha,useImperativeHandle:Ga,useInsertionEffect:Ka,useLayoutEffect:Va,useMemo:$a,useReducer:ja,useRef:Za,useState:function(){return ja(Oa)},useDebugValue:qa,useDeferredValue:function(e){return Ja(Ca(),ga.memoizedState,e)},useTransition:function(){return[ja(Oa)[0],Ca().memoizedState]},useMutableSource:Ma,useSyncExternalStore:Ia,useId:es,unstable_isNewReconciler:!1},cs={readContext:Pi,useCallback:Xa,useContext:Pi,useEffect:Ha,useImperativeHandle:Ga,useInsertionEffect:Ka,useLayoutEffect:Va,useMemo:$a,useReducer:Ta,useRef:Za,useState:function(){return Ta(Oa)},useDebugValue:qa,useDeferredValue:function(e){var t=Ca();return null===ga?t.memoizedState=e:Ja(t,ga.memoizedState,e)},useTransition:function(){return[Ta(Oa)[0],Ca().memoizedState]},useMutableSource:Ma,useSyncExternalStore:Ia,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Ai(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Kl=r),ps(0,t)},n}function ms(e,t,n){(n=Ai(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ps(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ps(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ai(-1,1)).tag=2,Li(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=w.ReactCurrentOwner,ws=!1;function xs(e,t,n,r){t.child=null===e?Ji(t,null,n,r):$i(t,e.child,n,r)}function ks(e,t,n,r,o){n=n.render;var i=t.ref;return Ei(t,o),r=Sa(e,t,n,r,i,o),n=Ea(),null===e||ws?(ii&&n&&ti(t),t.flags|=1,xs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function _s(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ic(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ac(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ss(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Dc(i,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!=(131072&e.flags)&&(ws=!0)}}return Cs(e,t,n,r,o)}function Es(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(Dl,Il),Il|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Co(Dl,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Co(Dl,Il),Il|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Co(Dl,Il),Il|=r;return xs(e,t,o,n),t.child}function Ps(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,o){var i=Do(n)?Mo:jo.current;return i=Io(t,i),Ei(t,o),n=Sa(e,t,n,r,i,o),r=Ea(),null===e||ws?(ii&&r&&ti(t),t.flags|=1,xs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Os(e,t,n,r,o){if(Do(n)){var i=!0;Ro(t)}else i=!1;if(Ei(t,o),null===t.stateNode)Ws(e,t),Hi(t,n,r),Vi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;c="object"==typeof c&&null!==c?Pi(c):Io(t,c=Do(n)?Mo:jo.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Ki(t,a,r,c),Mi=!1;var p=t.memoizedState;a.state=p,zi(t,r,a,o),l=t.memoizedState,s!==r||p!==l||To.current||Mi?("function"==typeof u&&(Bi(t,n,u,r),l=t.memoizedState),(s=Mi||Wi(t,n,s,r,p,l,c))?(d||"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|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Di(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:vi(t.type,s),a.props=c,d=t.pendingProps,p=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Pi(l):Io(t,l=Do(n)?Mo:jo.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&Ki(t,a,r,l),Mi=!1,p=t.memoizedState,a.state=p,zi(t,r,a,o);var h=t.memoizedState;s!==d||p!==h||To.current||Mi?("function"==typeof f&&(Bi(t,n,f,r),h=t.memoizedState),(c=Mi||Wi(t,n,c,r,p,h,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return js(e,t,n,r,i,o)}function js(e,t,n,r,o,i){Ps(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&zo(t,n,!1),Hs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=$i(t,e.child,null,i),t.child=$i(t,null,s,i)):xs(e,t,s,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Lo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lo(0,t.context,!1),oa(e,t.containerInfo)}function Ms(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xs(e,t,n,r),t.child}var Is,Ds,As,Ls={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rs(e,t,n){var r,o=t.pendingProps,a=la.current,s=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Co(la,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Nc(l,o,0,null),e=Lc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(n),t.memoizedState=Ls,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=ds(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Nc({mode:"visible",children:r.children},o,0,null),(a=Lc(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&$i(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=Ls,a);if(0==(1&t.mode))return Fs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=ds(a=Error(i(419)),r,void 0))}if(l=0!=(s&e.childLanes),ws||l){if(null!==(r=jl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ti(e,o),nc(r,e,o,-1))}return mc(),Fs(e,t,s,r=ds(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Cc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[qo++]=$o,Go[qo++]=Jo,Go[qo++]=Xo,$o=e.id,Jo=e.overflow,Xo=t),(t=zs(t,r.children)).flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Dc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Dc(r,s):(s=Lc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ns(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ls,o}return e=(s=e.child).sibling,o=Dc(s,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function zs(e,t){return(t=Nc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),$i(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Si(e.return,t,n)}function Bs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Us(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xs(e,t,r.children,n),0!=(2&(r=la.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Zs(e,n,t);else if(19===e.tag)Zs(e,n,t);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(Co(la,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ca(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ca(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bs(t,!0,n,null,i);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ws(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ks(e,t){if(!ii)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 Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ys(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Do(t.type)&&Ao(),Vs(t),null;case 3:return r=t.stateNode,ia(),Po(To),Po(jo),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Vs(t),null;case 5:sa(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Vs(t),null}if(e=ra(ea.current),pi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fo]=t,r[ho]=a,e=0!=(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<Lr.length;o++)Fr(Lr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":X(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":oe(r,a),Fr("invalid",r)}for(var l in be(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":V(r),Q(r,a,!0);break;case"textarea":V(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Qr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"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[fo]=t,e[ho]=r,Is(e,t),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Lr.length;o++)Fr(Lr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":X(e,r),o=q(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=R({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(a in be(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&y(e,a,u,l))}switch(n){case"input":V(e),Q(e,r,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Qr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)As(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return Vs(t),null;case 13:if(Po(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))fi(),hi(),t.flags|=98560,a=!1;else if(a=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[fo]=t}else hi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&la.current)?0===Al&&(Al=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return ia(),null===e&&Ur(t.stateNode.containerInfo),Vs(t),null;case 10:return _i(t.type._context),Vs(t),null;case 19:if(Po(la),null===(a=t.memoizedState))return Vs(t),null;if(r=0!=(128&t.flags),null===(l=a.rendering))if(r)Ks(a,!1);else{if(0!==Al||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ca(e))){for(t.flags|=128,Ks(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Co(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&$e()>Ul&&(t.flags|=128,r=!0,Ks(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ca(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ks(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Vs(t),null}else 2*$e()-a.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,Ks(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=$e(),t.sibling=null,n=la.current,Co(la,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Il)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return Do(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),Po(To),Po(jo),da(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Po(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Po(la),null;case 4:return ia(),null;case 10:return _i(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=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}},Ds=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=q(e,o),r=q(e,r),a=[];break;case"select":o=R({},o,{value:void 0}),r=R({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Qr)}for(u in be(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},As=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Xs=!1,$s="function"==typeof WeakSet?WeakSet:Set,Js=null;function Qs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Sc(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Sc(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[go],delete t[vo],delete t[bo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,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)||null!==t.onclick||(t.onclick=Qr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xs||Qs(n,t);case 6:var r=ul,o=dl;ul=null,pl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ut(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Xs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&el(n,t,a),o=o.next}while(o!==r)}pl(e,t,n);break;case 1:if(!Xs&&(Qs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Sc(n,t,e)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,pl(e,t,n),Xs=r):pl(e,t,n);break;default:pl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new $s),t.forEach((function(t){var r=Oc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));fl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){Sc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Sc(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Sc(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Qs(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Qs(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){Sc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&$(o,a),ye(l,s);var u=ye(l,a);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ge(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):y(o,d,p,u)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):f!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Sc(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Sc(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(t){Sc(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bl=$e())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(u=Xs)||d,ml(t,e),Xs=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Js=e,d=e.child;null!==d;){for(p=Js=d;null!==Js;){switch(h=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Qs(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Sc(r,n,e)}}break;case 5:Qs(f,f.return);break;case 22:if(null!==f.memoizedState){xl(p);continue}}null!==h?(h.return=f,Js=h):xl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(t){Sc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Sc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),vl(e),4&r&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(t){Sc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Js=e,yl(e,t,n)}function yl(e,t,n){for(var r=0!=(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=qs;var c=Xs;if(qs=a,(Xs=l)&&!c)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?kl(o):null!==l?(l.return=a,Js=l):kl(o);for(;null!==i;)Js=i,yl(i,t,n),i=i.sibling;Js=o,qs=s,Xs=c}wl(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Js=i):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Fi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ut(p)}}}break;default:throw Error(i(163))}Xs||512&t.flags&&ol(t)}catch(e){Sc(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function kl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Sc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Sc(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Sc(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Sc(t,a,e)}}}catch(e){Sc(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var _l,Sl=Math.ceil,El=w.ReactCurrentDispatcher,Pl=w.ReactCurrentOwner,Cl=w.ReactCurrentBatchConfig,Ol=0,jl=null,Tl=null,Ml=0,Il=0,Dl=Eo(0),Al=0,Ll=null,Nl=0,Rl=0,zl=0,Fl=null,Zl=null,Bl=0,Ul=1/0,Wl=null,Hl=!1,Kl=null,Vl=null,Yl=!1,Gl=null,ql=0,Xl=0,$l=null,Jl=-1,Ql=0;function ec(){return 0!=(6&Ol)?$e():-1!==Jl?Jl:Jl=$e()}function tc(e){return 0==(1&e.mode)?1:0!=(2&Ol)&&0!==Ml?Ml&-Ml:null!==gi.transition?(0===Ql&&(Ql=mt()),Ql):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function nc(e,t,n,r){if(50<Xl)throw Xl=0,$l=null,Error(i(185));vt(e,n,r),0!=(2&Ol)&&e===jl||(e===jl&&(0==(2&Ol)&&(Rl|=n),4===Al&&sc(e,Ml)),rc(e,r),1===n&&0===Ol&&0==(1&t.mode)&&(Ul=$e()+500,Zo&&Wo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!=(s&n)&&0==(s&r)||(o[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=pt(e,e===jl?Ml:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Zo=!0,Uo(e)}(lc.bind(null,e)):Uo(lc.bind(null,e)),ao((function(){0==(6&Ol)&&Wo()})),n=null;else{switch(wt(r)){case 1:n=Qe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=jc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,Ql=0,0!=(6&Ol))throw Error(i(327));var n=e.callbackNode;if(kc()&&e.callbackNode!==n)return null;var r=pt(e,e===jl?Ml:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var o=Ol;Ol|=2;var a=hc();for(jl===e&&Ml===t||(Wl=null,Ul=$e()+500,pc(e,t));;)try{bc();break}catch(t){fc(e,t)}ki(),El.current=a,Ol=o,null!==Tl?t=0:(jl=null,Ml=0,t=Al)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=ic(e,o)),1===t)throw n=Ll,pc(e,0),sc(e,r),rc(e,$e()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gc(e,r))&&0!==(a=ht(e))&&(r=a,t=ic(e,a)),1===t))throw n=Ll,pc(e,0),sc(e,r),rc(e,$e()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xc(e,Zl,Wl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Bl+500-$e())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,Zl,Wl),t);break}xc(e,Zl,Wl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=$e()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Zl,Wl),r);break}xc(e,Zl,Wl);break;default:throw Error(i(329))}}}return rc(e,$e()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Zl,Zl=n,null!==t&&ac(t)),e}function ac(e){null===Zl?Zl=e:Zl.push.apply(Zl,e)}function sc(e,t){for(t&=~zl,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!=(6&Ol))throw Error(i(327));kc();var t=pt(e,0);if(0==(1&t))return rc(e,$e()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Ll,pc(e,0),sc(e,t),rc(e,$e()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Zl,Wl),rc(e,$e()),null}function cc(e,t){var n=Ol;Ol|=1;try{return e(t)}finally{0===(Ol=n)&&(Ul=$e()+500,Zo&&Wo())}}function uc(e){null!==Gl&&0===Gl.tag&&0==(6&Ol)&&kc();var t=Ol;Ol|=1;var n=Cl.transition,r=yt;try{if(Cl.transition=null,yt=1,e)return e()}finally{yt=r,Cl.transition=n,0==(6&(Ol=t))&&Wo()}}function dc(){Il=Dl.current,Po(Dl)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ao();break;case 3:ia(),Po(To),Po(jo),da();break;case 5:sa(r);break;case 4:ia();break;case 13:case 19:Po(la);break;case 10:_i(r.type._context);break;case 22:case 23:dc()}n=n.return}if(jl=e,Tl=e=Dc(e.current,null),Ml=Il=t,Al=0,Ll=null,zl=Rl=Nl=0,Zl=Fl=null,null!==Ci){for(t=0;t<Ci.length;t++)if(null!==(r=(n=Ci[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ci=null}return e}function fc(e,t){for(;;){var n=Tl;try{if(ki(),pa.current=as,ba){for(var r=ma.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ba=!1}if(ha=0,va=ga=ma=null,ya=!1,wa=0,Pl.current=null,null===n||null===n.return){Al=1,Ll=t,Tl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Ml,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vs(s);if(null!==h){h.flags&=-257,bs(h,s,l,0,t),1&h.mode&&gs(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0==(1&t)){gs(a,u,t),mc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=vs(s);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),bs(v,s,l,0,t),mi(us(c,l));break e}}a=c=us(c,l),4!==Al&&(Al=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ri(a,hs(0,c,t));break e;case 1:l=c;var b=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Vl||!Vl.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Ri(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(e){t=e,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function hc(){var e=El.current;return El.current=as,null===e?as:e}function mc(){0!==Al&&3!==Al&&2!==Al||(Al=4),null===jl||0==(268435455&Nl)&&0==(268435455&Rl)||sc(jl,Ml)}function gc(e,t){var n=Ol;Ol|=2;var r=hc();for(jl===e&&Ml===t||(Wl=null,pc(e,t));;)try{vc();break}catch(t){fc(e,t)}if(ki(),Ol=n,El.current=r,null!==Tl)throw Error(i(261));return jl=null,Ml=0,Al}function vc(){for(;null!==Tl;)yc(Tl)}function bc(){for(;null!==Tl&&!qe();)yc(Tl)}function yc(e){var t=_l(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?wc(e):Tl=t,Pl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ys(n,t,Il)))return void(Tl=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Al=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Al&&(Al=5)}function xc(e,t,n){var r=yt,o=Cl.transition;try{Cl.transition=null,yt=1,function(e,t,n,r){do{kc()}while(null!==Gl);if(0!=(6&Ol))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===jl&&(Tl=jl=null,Ml=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Yl||(Yl=!0,jc(tt,(function(){return kc(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Cl.transition,Cl.transition=null;var s=yt;yt=1;var l=Ol;Ol|=4,Pl.current=null,function(e,t){if(eo=Ht,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==a||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===o&&(l=s),f===a&&++d===r&&(c=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:vi(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){Sc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),gl(n,e),hr(to),Ht=!!eo,to=eo=null,e.current=n,bl(n,e,o),Xe(),Ol=l,yt=s,Cl.transition=a}else e.current=n;if(Yl&&(Yl=!1,Gl=e,ql=o),0===(a=e.pendingLanes)&&(Vl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),rc(e,$e()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Kl,Kl=null,e;0!=(1&ql)&&0!==e.tag&&kc(),0!=(1&(a=e.pendingLanes))?e===$l?Xl++:(Xl=0,$l=e):Xl=0,Wo()}(e,t,n,r)}finally{Cl.transition=o,yt=r}return null}function kc(){if(null!==Gl){var e=wt(ql),t=Cl.transition,n=yt;try{if(Cl.transition=null,yt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,ql=0,0!=(6&Ol))throw Error(i(331));var o=Ol;for(Ol|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!=(16&Js.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var p=d.child;if(null!==p)p.return=d,Js=p;else for(;null!==Js;){var f=(d=Js).sibling,h=d.return;if(il(d),d===u){Js=null;break}if(null!==f){f.return=h,Js=f;break}Js=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!=(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Js=b;break e}Js=a.return}}var y=e.current;for(Js=y;null!==Js;){var w=(s=Js).child;if(0!=(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=y;null!==Js;){if(0!=(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Sc(l,l.return,e)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(Ol=o,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,Cl.transition=t}}return!1}function _c(e,t,n){e=Li(e,t=hs(0,t=us(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Li(t,e=ms(t,e=us(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,jl===e&&(Ml&n)===n&&(4===Al||3===Al&&(130023424&Ml)===Ml&&500>$e()-Bl?pc(e,0):zl|=n),rc(e,t)}function Pc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Ti(e,t))&&(vt(e,t,n),rc(e,n))}function Cc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pc(e,n)}function Oc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Pc(e,n)}function jc(e,t){return Ye(e,t)}function Tc(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mc(e,t,n,r){return new Tc(e,t,n,r)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Mc(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.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,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 Ac(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Ic(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case _:return Lc(n.children,o,a,t);case S:s=8,o|=8;break;case E:return(e=Mc(12,n,t,2|o)).elementType=E,e.lanes=a,e;case j:return(e=Mc(13,n,t,o)).elementType=j,e.lanes=a,e;case T:return(e=Mc(19,n,t,o)).elementType=T,e.lanes=a,e;case D:return Nc(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:s=10;break e;case C:s=9;break e;case O:s=11;break e;case M:s=14;break e;case I:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Mc(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Lc(e,t,n,r){return(e=Mc(7,e,r,t)).lanes=n,e}function Nc(e,t,n,r){return(e=Mc(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Rc(e,t,n){return(e=Mc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Mc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Zc(e,t,n,r,o,i,a,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Mc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ii(i),e}function Bc(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 Uc(e){if(!e)return Oo;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Do(n))return No(e,n,t)}return t}function Wc(e,t,n,r,o,i,a,s,l){return(e=Zc(n,r,!0,e,0,i,0,s,l)).context=Uc(null),n=e.current,(i=Ai(r=ec(),o=tc(n))).callback=null!=t?t:null,Li(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function Hc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ai(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Li(o,t,a))&&(nc(e,o,a,i),Ni(e,o,a)),a}function Kc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}_l=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||To.current)ws=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),hi();break;case 5:aa(t);break;case 1:Do(t.type)&&Ro(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Co(bi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Co(la,1&la.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Rs(e,t,n):(Co(la,1&la.current),null!==(e=Hs(e,t,n))?e.sibling:null);Co(la,1&la.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Us(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Co(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Hs(e,t,n)}(e,t,n);ws=0!=(131072&e.flags)}else ws=!1,ii&&0!=(1048576&t.flags)&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ws(e,t),e=t.pendingProps;var o=Io(t,jo.current);Ei(t,n),o=Sa(null,t,r,e,o,n);var a=Ea();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(r)?(a=!0,Ro(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ii(t),o.updater=Ui,t.stateNode=o,o._reactInternals=t,Vi(t,r,e,n),t=js(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),xs(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ic(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===M)return 14}return 2}(r),e=vi(r,e),o){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=_s(null,t,r,vi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Cs(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Os(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 3:e:{if(Ts(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Di(e,t),zi(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ms(e,t,r,n,o=us(Error(i(423)),t));break e}if(r!==o){t=Ms(e,t,r,n,o=us(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ji(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Hs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Ps(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Rs(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=$i(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ks(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Co(bi,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!To.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Ai(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Si(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Si(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ei(t,n),r=r(o=Pi(o)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return o=vi(r=t.type,t.pendingProps),_s(e,t,r,o=vi(r.type,o),n);case 15:return Ss(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vi(r,o),Ws(e,t),t.tag=1,Do(r)?(e=!0,Ro(t)):e=!1,Ei(t,n),Hi(t,r,o),Vi(t,r,o,n),js(null,t,r,!0,e,n);case 19:return Us(e,t,n);case 22:return Es(e,t,n)}throw Error(i(156,t.tag))};var Gc="function"==typeof reportError?reportError:function(e){console.error(e)};function qc(e){this._internalRoot=e}function Xc(e){this._internalRoot=e}function $c(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function eu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Kc(a);s.call(e)}}Hc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Kc(a);i.call(e)}}var a=Wc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=a,e[mo]=a.current,Ur(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Kc(l);s.call(e)}}var l=Zc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=l,e[mo]=l.current,Ur(8===e.nodeType?e.parentNode:e),uc((function(){Hc(t,l,n,r)})),l}(n,t,e,o,r);return Kc(a)}Xc.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hc(e,t,null,null)},Xc.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Hc(null,e,null,null)})),t[mo]=null}},Xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Rt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rc(t,$e()),0==(6&Ol)&&(Ul=$e()+500,Wo()))}break;case 13:uc((function(){var t=Ti(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Yc(e,1)}},kt=function(e){if(13===e.tag){var t=Ti(e,134217728);null!==t&&nc(t,e,134217728,ec()),Yc(e,134217728)}},_t=function(e){if(13===e.tag){var t=tc(e),n=Ti(e,t);null!==n&&nc(n,e,t,ec()),Yc(e,t)}},St=function(){return yt},Et=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ke=function(e,t,n){switch(t){case"input":if(J(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=ko(r);if(!o)throw Error(i(90));Y(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Oe=cc,je=uc;var tu={usingClientEntryPoint:!1,Events:[wo,xo,ko,Pe,Ce,cc]},nu={findFiberByHostInstance:yo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(ru),it=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$c(t))throw Error(i(200));return Bc(e,t,null,n)},t.createRoot=function(e,t){if(!$c(e))throw Error(i(299));var n=!1,r="",o=Gc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Zc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Ur(8===e.nodeType?e.parentNode:e),new qc(t)},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(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ke(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(i(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!$c(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Gc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,Ur(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(i(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(3935);t.s=r.createRoot,r.hydrateRoot},3935:(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(e){console.error(e)}}(),e.exports=n(4448)},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var w=y.prototype=new b;w.constructor=y,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,_={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:_.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function O(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,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+O(l,0):i,x(a)?(o="",null!=e&&(o=e.replace(C,"$&/")+"/"),j(a,t,o,"",(function(e){return e}))):null!=a&&(P(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+O(s=e[c],c);l+=j(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=j(s=s.value,t,o,u=i+O(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(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 M(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},D={transition:null},A={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:D,ReactCurrentOwner:_};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=_.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!S.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=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:M}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,D(k);else{var t=r(u);null!==t&&A(x,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,b(P),P=-1),h=!0;var i=f;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!j());){var a=p.callback;if("function"==typeof a){p.callback=null,f=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&o(c),w(n)}else o(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&A(x,d.startTime-n),l=!1}return l}finally{p=null,f=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,S=!1,E=null,P=-1,C=5,O=-1;function j(){return!(t.unstable_now()-O<C)}function T(){if(null!==E){var e=t.unstable_now();O=e;var n=!0;try{n=E(!0,e)}finally{n?_():(S=!1,E=null)}}else S=!1}if("function"==typeof y)_=function(){y(T)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,I=M.port2;M.port1.onmessage=T,_=function(){I.postMessage(null)}}else _=function(){v(T,0)};function D(e){E=e,S||(S=!0,_())}function A(e,n){P=v((function(){e(t.unstable_now())}),n)}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(){m||h||(m=!0,D(k))},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"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,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:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(b(P),P=-1):g=!0,A(x,i-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,D(k))),e},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},3379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var p=n(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},7429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return l.default}});var r=p(n(3990)),o=p(n(8237)),i=p(n(5355)),a=p(n(3764)),s=p(n(6314)),l=p(n(8464)),c=p(n(6435)),u=p(n(4008)),d=p(n(8222));function p(e){return e&&e.__esModule?e:{default:e}}},4163:(e,t)=>{"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r((s=r(r(t,e),r(o,a)))<<(l=i)|s>>>32-l,n);var s,l}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function l(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let o=1732584193,c=-271733879,u=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const n=o,p=c,f=u,h=d;o=i(o,c,u,d,e[t],7,-680876936),d=i(d,o,c,u,e[t+1],12,-389564586),u=i(u,d,o,c,e[t+2],17,606105819),c=i(c,u,d,o,e[t+3],22,-1044525330),o=i(o,c,u,d,e[t+4],7,-176418897),d=i(d,o,c,u,e[t+5],12,1200080426),u=i(u,d,o,c,e[t+6],17,-1473231341),c=i(c,u,d,o,e[t+7],22,-45705983),o=i(o,c,u,d,e[t+8],7,1770035416),d=i(d,o,c,u,e[t+9],12,-1958414417),u=i(u,d,o,c,e[t+10],17,-42063),c=i(c,u,d,o,e[t+11],22,-1990404162),o=i(o,c,u,d,e[t+12],7,1804603682),d=i(d,o,c,u,e[t+13],12,-40341101),u=i(u,d,o,c,e[t+14],17,-1502002290),c=i(c,u,d,o,e[t+15],22,1236535329),o=a(o,c,u,d,e[t+1],5,-165796510),d=a(d,o,c,u,e[t+6],9,-1069501632),u=a(u,d,o,c,e[t+11],14,643717713),c=a(c,u,d,o,e[t],20,-373897302),o=a(o,c,u,d,e[t+5],5,-701558691),d=a(d,o,c,u,e[t+10],9,38016083),u=a(u,d,o,c,e[t+15],14,-660478335),c=a(c,u,d,o,e[t+4],20,-405537848),o=a(o,c,u,d,e[t+9],5,568446438),d=a(d,o,c,u,e[t+14],9,-1019803690),u=a(u,d,o,c,e[t+3],14,-187363961),c=a(c,u,d,o,e[t+8],20,1163531501),o=a(o,c,u,d,e[t+13],5,-1444681467),d=a(d,o,c,u,e[t+2],9,-51403784),u=a(u,d,o,c,e[t+7],14,1735328473),c=a(c,u,d,o,e[t+12],20,-1926607734),o=s(o,c,u,d,e[t+5],4,-378558),d=s(d,o,c,u,e[t+8],11,-2022574463),u=s(u,d,o,c,e[t+11],16,1839030562),c=s(c,u,d,o,e[t+14],23,-35309556),o=s(o,c,u,d,e[t+1],4,-1530992060),d=s(d,o,c,u,e[t+4],11,1272893353),u=s(u,d,o,c,e[t+7],16,-155497632),c=s(c,u,d,o,e[t+10],23,-1094730640),o=s(o,c,u,d,e[t+13],4,681279174),d=s(d,o,c,u,e[t],11,-358537222),u=s(u,d,o,c,e[t+3],16,-722521979),c=s(c,u,d,o,e[t+6],23,76029189),o=s(o,c,u,d,e[t+9],4,-640364487),d=s(d,o,c,u,e[t+12],11,-421815835),u=s(u,d,o,c,e[t+15],16,530742520),c=s(c,u,d,o,e[t+2],23,-995338651),o=l(o,c,u,d,e[t],6,-198630844),d=l(d,o,c,u,e[t+7],10,1126891415),u=l(u,d,o,c,e[t+14],15,-1416354905),c=l(c,u,d,o,e[t+5],21,-57434055),o=l(o,c,u,d,e[t+12],6,1700485571),d=l(d,o,c,u,e[t+3],10,-1894986606),u=l(u,d,o,c,e[t+10],15,-1051523),c=l(c,u,d,o,e[t+1],21,-2054922799),o=l(o,c,u,d,e[t+8],6,1873313359),d=l(d,o,c,u,e[t+15],10,-30611744),u=l(u,d,o,c,e[t+6],15,-1560198380),c=l(c,u,d,o,e[t+13],21,1309151649),o=l(o,c,u,d,e[t+4],6,-145523070),d=l(d,o,c,u,e[t+11],10,-1120210379),u=l(u,d,o,c,e[t+2],15,718787259),c=l(c,u,d,o,e[t+9],21,-343485551),o=r(o,n),c=r(c,p),u=r(u,f),d=r(d,h)}return[o,c,u,d]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}},4790:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=n},6314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},8222:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(6435))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},58:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},3319:(e,t)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};const r=new Uint8Array(16)},3757:(e,t)=>{"use strict";function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let t=0;t<a;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];s[t]=n}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<a;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=s[e][t];for(let e=16;e<80;++e)i[e]=r(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let a=o[0],l=o[1],c=o[2],u=o[3],d=o[4];for(let e=0;e<80;++e){const o=Math.floor(e/20),s=r(a,5)+n(o,l,c,u)+d+t[o]+i[e]>>>0;d=u,u=c,c=r(l,30)>>>0,l=a,a=s}o[0]=o[0]+a>>>0,o[1]=o[1]+l>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+u>>>0,o[4]=o[4]+d>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},4008:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,o=(r=n(6435))&&r.__esModule?r:{default:r};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}t.default=function(e,t=0){const n=a(e,t);if(!(0,o.default)(n))throw TypeError("Stringified UUID is invalid");return n}},3990:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(3319))&&r.__esModule?r:{default:r},i=n(4008);let a,s,l=0,c=0;t.default=function(e,t,n){let r=t&&n||0;const u=t||new Array(16);let d=(e=e||{}).node||a,p=void 0!==e.clockseq?e.clockseq:s;if(null==d||null==p){const t=e.random||(e.rng||o.default)();null==d&&(d=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=s=16383&(t[6]<<8|t[7]))}let f=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:c+1;const m=f-l+(h-c)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||f>l)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=f,c=h,s=p,f+=122192928e5;const g=(1e4*(268435455&f)+h)%4294967296;u[r++]=g>>>24&255,u[r++]=g>>>16&255,u[r++]=g>>>8&255,u[r++]=255&g;const v=f/4294967296*1e4&268435455;u[r++]=v>>>8&255,u[r++]=255&v,u[r++]=v>>>24&15|16,u[r++]=v>>>16&255,u[r++]=p>>>8|128,u[r++]=255&p;for(let e=0;e<6;++e)u[r+e]=d[e];return t||(0,i.unsafeStringify)(u)}},8237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(7925)),o=i(n(4163));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v3",48,o.default);t.default=a},7925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,a,s){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,i.default)(r)),16!==(null===(l=r)||void 0===l?void 0:l.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,a){s=s||0;for(let e=0;e<16;++e)a[s+e]=c[e];return a}return(0,o.unsafeStringify)(c)}try{r.name=e}catch(e){}return r.DNS=a,r.URL=s,r};var r,o=n(4008),i=(r=n(8222))&&r.__esModule?r:{default:r};const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s},5355:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(4790)),o=a(n(3319)),i=n(4008);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();const a=(e=e||{}).random||(e.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}return(0,i.unsafeStringify)(a)}},3764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(7925)),o=i(n(3757));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v5",80,o.default);t.default=a},6435:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(58))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&o.default.test(e)}},8464:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(6435))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}}},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=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0,(()=>{"use strict";var e=n(7294),t=n(3379),r=n.n(t),o=n(7795),i=n.n(o),a=n(569),s=n.n(a),l=n(3565),c=n.n(l),u=n(9216),d=n.n(u),p=n(4589),f=n.n(p),h=n(1424),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=d(),r()(h.Z,m),h.Z&&h.Z.locals&&h.Z.locals;var g=n(745);const v=function(t){var n=t.eraseFn;return e.createElement("div",{className:"main"},e.createElement("p",null,"The existing note is not compatible with this editor. You have two options:"),e.createElement("p",null,"1. Switch to a different editor. Your data will be maintained."),e.createElement("p",null,'2. Click the "Erase and Continue" button below to erase your note data and start using this editor.'),e.createElement("p",null,e.createElement("button",{onClick:n},"Erase and Continue")))};var b=n(4474);const y=function(){var t,n=C(),r=n.data,o=n.saveNote,i=n.isLocked,a=(0,e.useRef)(),s=(0,b.getSceneVersion)(r.elements),l=(null===(t=r.libraryItems)||void 0===t?void 0:t.length)||0;return e.createElement("div",{className:"main"},e.createElement(b.Excalidraw,{ref:a,key:Math.random(),initialData:r,theme:"dark",onChange:function(e,t,n){var i=(0,b.getSceneVersion)(e);i>s&&(s=i,r.elements=e,0!==Object.keys(n).length&&(r.files=n),o())},onLibraryChange:function(e){var t=e.length;t!==l&&(l=t,r.libraryItems=e,o())},viewModeEnabled:i,UIOptions:{canvasActions:{toggleTheme:!0}}}))};function w(e){return w="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},w(e)}function x(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 k(e,t,n){var r;return r=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t,"string"),(t="symbol"==w(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(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,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(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)?S(e,t):void 0}}(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 S(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}var E,P=(0,e.createContext)({data:null,saveNote:null,saveNoteAndRefresh:null,isLocked:!1}),C=function(){return(0,e.useContext)(P)},O=function(t){var n=t.text,r=t.save,o=t.isLocked,i=_((0,e.useState)(null),2),a=i[0],s=i[1],l=_((0,e.useState)(!1),2),c=l[0],u=l[1],d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;r(e)};return(0,e.useEffect)((function(){if(n){var e=function(e){if(0===e.indexOf("{"))try{var t=JSON.parse(e);if(t.elements&&t.appState)return t}catch(e){console.error(e)}}(n);e?(s(e),u(!1)):(s(null),u(!0))}else{var t={elements:[],appState:{},scrollToContent:!0};s(t),u(!1),d(t)}}),[n]),e.createElement(P.Provider,{value:{data:a,saveNote:d,saveNoteAndRefresh:function(){s(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a)),d()},isLocked:o}},a?e.createElement(y,null):c?e.createElement(v,{eraseFn:function(){u(!1);var e={elements:[],appState:{},scrollToContent:!0};s(e),d(e)}}):e.createElement("div",null,"Loading..."))},j=n(156),T=n.n(j),M=n(5915),I=new(T())({targetWindow:window,options:{coallesedSaving:!0,coallesedSavingDelay:400,debug:!1}}),D=(0,g.s)(document.getElementById("root"));I.streamContextItem((function(t){var n;if(E=t,!t.isMetadataUpdate){var r=(null===(n=t.content)||void 0===n?void 0:n.text)||"",o=I.getItemAppDataValue(t,M.AppDataField.Locked);D.render(e.createElement(e.StrictMode,null,e.createElement(O,{text:r,save:A,isLocked:o})))}}));var A=function(e){I.saveItemWithPresave(E,(function(){E.content.text=JSON.stringify(e),E.content.preview_plain=""}))}})()})();